diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 2c2d7cd..6d5e44d 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -8,6 +8,7 @@ * SimpleForm generators removed. SimpleForm (https://github.com/plataformatec/simple_form) has its own generators. * Erubis generator removed. * Formtastic generators removed. Formtastic (https://github.com/justinfrench/formtastic) has its own generators. + * Authlogic generators removed. Authlogic (https://github.com/binarylogic/authlogic) has its own generators. == 0.17.5 * optimize diff --git a/README.rdoc b/README.rdoc index 6ac7075..ec91c86 100644 --- a/README.rdoc +++ b/README.rdoc @@ -24,6 +24,8 @@ The SimpleForm generators moved to {the simple_form gem}[https://github.com/plat The Formtastic generators moved to {the fortastic gem}[https://github.com/justinfrench/formtastic]. +The Authlogic generators moved to {the authlogic gem}[https://github.com/binarylogic/authlogic]. + == Note on Patches/Pull Requests * Fork the project. diff --git a/lib/generators/authlogic.rb b/lib/generators/authlogic.rb deleted file mode 100644 index 1d2fafc..0000000 --- a/lib/generators/authlogic.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'rails/generators/named_base' - -module Authlogic - module Generators - class Base < Rails::Generators::NamedBase - def self.source_root - @_authlogic_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'authlogic', generator_name, 'templates')) - end - end - end -end \ No newline at end of file diff --git a/lib/generators/authlogic/session/session_generator.rb b/lib/generators/authlogic/session/session_generator.rb deleted file mode 100644 index 3318a15..0000000 --- a/lib/generators/authlogic/session/session_generator.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'generators/authlogic' - -module Authlogic - module Generators - class SessionGenerator < Base - desc "Builds an Authlogic session model" - - check_class_collision - - def create_session_file - template 'session.rb', File.join('app', 'models', class_path, "#{file_name}.rb") - end - - # HACK: make test_framework generator for this generator. - hook_for :test_framework, :as => :model - end - end -end - diff --git a/lib/generators/authlogic/session/templates/session.rb b/lib/generators/authlogic/session/templates/session.rb deleted file mode 100644 index c42df98..0000000 --- a/lib/generators/authlogic/session/templates/session.rb +++ /dev/null @@ -1,2 +0,0 @@ -class <%= class_name %> < Authlogic::Session::Base -end \ No newline at end of file diff --git a/lib/rails3-generators.rb b/lib/rails3-generators.rb index 47216b4..d6455b5 100644 --- a/lib/rails3-generators.rb +++ b/lib/rails3-generators.rb @@ -1,4 +1,4 @@ -require 'rails/generators' +require "rails/generators" module Rails3Generators end diff --git a/rails3-generators.gemspec b/rails3-generators.gemspec index fe25bd2..fad0f31 100644 --- a/rails3-generators.gemspec +++ b/rails3-generators.gemspec @@ -36,6 +36,8 @@ SimpleForm generators removed. SimpleForm (https://github.com/plataformatec/simp Formtastic generators removed. Formtastic (https://github.com/justinfrench/formtastic) has its onw generators. +Authlogic generators removed. Authlogic (https://github.com/binarylogic/authlogic) has its onw generators. + Be sure to check out the wiki, https://wiki.github.com/indirect/rails3-generators/, for information about recent changes to this project. } diff --git a/test/lib/generators/authlogic/session_generator_test.rb b/test/lib/generators/authlogic/session_generator_test.rb deleted file mode 100644 index 59f9aa8..0000000 --- a/test/lib/generators/authlogic/session_generator_test.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'test_helper' - -class Authlogic::Generators::SessionGeneratorTest < Rails::Generators::TestCase - destination File.join(Rails.root) - tests Authlogic::Generators::SessionGenerator - arguments %w(user_session) - - setup :prepare_destination - - test 'Authlogic is installed' do - content = run_generator - assert_file "app/models/user_session.rb" - end -end diff --git a/test/test_helper.rb b/test/test_helper.rb index 167c3fd..bfea8fe 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -48,7 +48,6 @@ def assert_class(klass, content) def generator_list { :rails => ['scaffold', 'controller'], - :authlogic => ['session'], :koala => ['install'], :shoulda => ['controller', 'scaffold'] }