Permalink
Browse files

Release v2.1.0 and switch to using jeweler instead of Hoe

  • Loading branch information...
1 parent 87ef371 commit e3662aaeed9953aafab5518631a53a0250a20723 @binarylogic committed Jun 27, 2009
Showing with 49 additions and 190 deletions.
  1. +1 −1 CHANGELOG.rdoc
  2. +1 −1 MIT-LICENSE → LICENSE
  3. +0 −118 Manifest.txt
  4. +47 −18 Rakefile
  5. +0 −1 lib/authlogic.rb
  6. +0 −51 lib/authlogic/version.rb
View
2 CHANGELOG.rdoc
@@ -1,4 +1,4 @@
-== 2.0.15
+== 2.1.0 released 2009-6-27
* Fixed bug when using act_like_restful_authentication and setting passwords, needed to add a 2nd parameter to tell if to check against the database or not.
* Don't save record if they are read only.
View
2 MIT-LICENSE → LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2007 Ben Johnson of Binary Logic (binarylogic.com)
+Copyright (c) 2009 Ben Johnson of Binary Logic
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
118 Manifest.txt
@@ -1,118 +0,0 @@
-CHANGELOG.rdoc
-MIT-LICENSE
-Manifest.txt
-README.rdoc
-Rakefile
-generators/session/session_generator.rb
-generators/session/templates/session.rb
-init.rb
-lib/authlogic.rb
-lib/authlogic/acts_as_authentic/base.rb
-lib/authlogic/acts_as_authentic/email.rb
-lib/authlogic/acts_as_authentic/logged_in_status.rb
-lib/authlogic/acts_as_authentic/login.rb
-lib/authlogic/acts_as_authentic/magic_columns.rb
-lib/authlogic/acts_as_authentic/password.rb
-lib/authlogic/acts_as_authentic/perishable_token.rb
-lib/authlogic/acts_as_authentic/persistence_token.rb
-lib/authlogic/acts_as_authentic/restful_authentication.rb
-lib/authlogic/acts_as_authentic/session_maintenance.rb
-lib/authlogic/acts_as_authentic/single_access_token.rb
-lib/authlogic/acts_as_authentic/validations_scope.rb
-lib/authlogic/authenticates_many/association.rb
-lib/authlogic/authenticates_many/base.rb
-lib/authlogic/controller_adapters/abstract_adapter.rb
-lib/authlogic/controller_adapters/merb_adapter.rb
-lib/authlogic/controller_adapters/rails_adapter.rb
-lib/authlogic/crypto_providers/aes256.rb
-lib/authlogic/crypto_providers/bcrypt.rb
-lib/authlogic/crypto_providers/md5.rb
-lib/authlogic/crypto_providers/sha1.rb
-lib/authlogic/crypto_providers/sha512.rb
-lib/authlogic/i18n.rb
-lib/authlogic/random.rb
-lib/authlogic/regex.rb
-lib/authlogic/session/activation.rb
-lib/authlogic/session/active_record_trickery.rb
-lib/authlogic/session/base.rb
-lib/authlogic/session/brute_force_protection.rb
-lib/authlogic/session/callbacks.rb
-lib/authlogic/session/cookies.rb
-lib/authlogic/session/existence.rb
-lib/authlogic/session/foundation.rb
-lib/authlogic/session/http_auth.rb
-lib/authlogic/session/id.rb
-lib/authlogic/session/klass.rb
-lib/authlogic/session/magic_columns.rb
-lib/authlogic/session/magic_states.rb
-lib/authlogic/session/params.rb
-lib/authlogic/session/password.rb
-lib/authlogic/session/perishable_token.rb
-lib/authlogic/session/persistence.rb
-lib/authlogic/session/priority_record.rb
-lib/authlogic/session/scopes.rb
-lib/authlogic/session/session.rb
-lib/authlogic/session/timeout.rb
-lib/authlogic/session/unauthorized_record.rb
-lib/authlogic/session/validation.rb
-lib/authlogic/test_case.rb
-lib/authlogic/test_case/mock_controller.rb
-lib/authlogic/test_case/mock_cookie_jar.rb
-lib/authlogic/test_case/mock_logger.rb
-lib/authlogic/test_case/mock_request.rb
-lib/authlogic/test_case/rails_request_adapter.rb
-lib/authlogic/version.rb
-rails/init.rb
-shoulda_macros/authlogic.rb
-test/acts_as_authentic_test/base_test.rb
-test/acts_as_authentic_test/email_test.rb
-test/acts_as_authentic_test/logged_in_status_test.rb
-test/acts_as_authentic_test/login_test.rb
-test/acts_as_authentic_test/magic_columns_test.rb
-test/acts_as_authentic_test/password_test.rb
-test/acts_as_authentic_test/perishable_token_test.rb
-test/acts_as_authentic_test/persistence_token_test.rb
-test/acts_as_authentic_test/restful_authentication_test.rb
-test/acts_as_authentic_test/session_maintenance_test.rb
-test/acts_as_authentic_test/single_access_test.rb
-test/authenticates_many_test.rb
-test/crypto_provider_test/aes256_test.rb
-test/crypto_provider_test/bcrypt_test.rb
-test/crypto_provider_test/sha1_test.rb
-test/crypto_provider_test/sha512_test.rb
-test/fixtures/companies.yml
-test/fixtures/employees.yml
-test/fixtures/projects.yml
-test/fixtures/users.yml
-test/libs/affiliate.rb
-test/libs/company.rb
-test/libs/employee.rb
-test/libs/employee_session.rb
-test/libs/ldaper.rb
-test/libs/ordered_hash.rb
-test/libs/project.rb
-test/libs/user.rb
-test/libs/user_session.rb
-test/random_test.rb
-test/session_test/activation_test.rb
-test/session_test/active_record_trickery_test.rb
-test/session_test/brute_force_protection_test.rb
-test/session_test/callbacks_test.rb
-test/session_test/cookies_test.rb
-test/session_test/credentials_test.rb
-test/session_test/existence_test.rb
-test/session_test/http_auth_test.rb
-test/session_test/id_test.rb
-test/session_test/klass_test.rb
-test/session_test/magic_columns_test.rb
-test/session_test/magic_states_test.rb
-test/session_test/params_test.rb
-test/session_test/password_test.rb
-test/session_test/perishability_test.rb
-test/session_test/persistence_test.rb
-test/session_test/scopes_test.rb
-test/session_test/session_test.rb
-test/session_test/timeout_test.rb
-test/session_test/unauthorized_record_test.rb
-test/session_test/validation_test.rb
-test/test_helper.rb
View
65 Rakefile
@@ -1,20 +1,49 @@
-ENV['RDOCOPT'] = "-S -f html -T hanna"
+require 'rubygems'
+require 'rake'
-require "rubygems"
-require "hoe"
-require File.dirname(__FILE__) << "/lib/authlogic/version"
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "authlogic"
+ gem.summary = "A clean, simple, and unobtrusive ruby authentication solution."
+ gem.email = "bjohnson@binarylogic.com"
+ gem.homepage = "http://github.com/binarylogic/authlogic"
+ gem.authors = ["Ben Johnson of Binary Logic"]
+ gem.rubyforge_project = "authlogic"
+ gem.add_dependency "activesupport"
+ end
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+end
-Hoe.new("Authlogic", Authlogic::Version::STRING) do |p|
- p.name = "authlogic"
- p.author = "Ben Johnson of Binary Logic"
- p.email = 'bjohnson@binarylogic.com'
- p.summary = "A clean, simple, and unobtrusive ruby authentication solution."
- p.description = "A clean, simple, and unobtrusive ruby authentication solution."
- p.url = "http://github.com/binarylogic/authlogic"
- p.history_file = "CHANGELOG.rdoc"
- p.readme_file = "README.rdoc"
- p.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc"]
- p.remote_rdoc_dir = ''
- p.test_globs = ["test/*/test_*.rb", "test/*_test.rb", "test/*/*_test.rb"]
- p.extra_deps = %w(activesupport)
-end
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = true
+end
+
+begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = true
+ end
+rescue LoadError
+ task :rcov do
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+ end
+end
+
+task :default => :test
+
+begin
+ require 'rake/contrib/sshpublisher'
+ namespace :rubyforge do
+ desc "Release gem to RubyForge"
+ task :release => ["rubyforge:release:gem"]
+ end
+rescue LoadError
+ puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
+end
View
1 lib/authlogic.rb
@@ -1,6 +1,5 @@
require "active_support"
-require File.dirname(__FILE__) + "/authlogic/version"
require File.dirname(__FILE__) + "/authlogic/i18n"
require File.dirname(__FILE__) + "/authlogic/random"
require File.dirname(__FILE__) + "/authlogic/regex"
View
51 lib/authlogic/version.rb
@@ -1,51 +0,0 @@
-module Authlogic # :nodoc:
- # A class for describing the current version of a library. The version
- # consists of three parts: the +major+ number, the +minor+ number, and the
- # +tiny+ (or +patch+) number.
- class Version
- include Comparable
-
- # A convenience method for instantiating a new Version instance with the
- # given +major+, +minor+, and +tiny+ components.
- def self.[](major, minor, tiny)
- new(major, minor, tiny)
- end
-
- attr_reader :major, :minor, :tiny
-
- # Create a new Version object with the given components.
- def initialize(major, minor, tiny)
- @major, @minor, @tiny = major, minor, tiny
- end
-
- # Compare this version to the given +version+ object.
- def <=>(version)
- to_i <=> version.to_i
- end
-
- # Converts this version object to a string, where each of the three
- # version components are joined by the '.' character. E.g., 2.0.0.
- def to_s
- @to_s ||= [@major, @minor, @tiny].join(".")
- end
-
- # Converts this version to a canonical integer that may be compared
- # against other version objects.
- def to_i
- @to_i ||= @major * 1_000_000 + @minor * 1_000 + @tiny
- end
-
- def to_a
- [@major, @minor, @tiny]
- end
-
- MAJOR = 2
- MINOR = 0
- TINY = 14
-
- # The current version as a Version instance
- CURRENT = new(MAJOR, MINOR, TINY)
- # The current version as a String
- STRING = CURRENT.to_s
- end
-end

0 comments on commit e3662aa

Please sign in to comment.