Skip to content
This repository
Browse code

Initial attempt at re-gemification

  • Loading branch information...
commit 8cffaf6f8e99d263664ca7a402fb09dc39f606a7 1 parent 5846e65
Grant Goodale ggoodale authored
1  .gitignore
... ... @@ -1,3 +1,4 @@
  1 +pkg
1 2 Icon?
2 3 .DS_Store
3 4 TAGS
10 Rakefile
... ... @@ -1,6 +1,7 @@
1 1 require 'rake'
2 2 require 'rake/testtask'
3 3 require 'rake/rdoctask'
  4 +require 'rake/gempackagetask'
4 5
5 6 desc 'Default: run unit tests.'
6 7 task :default => :test
@@ -20,3 +21,12 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
20 21 rdoc.rdoc_files.include('README')
21 22 rdoc.rdoc_files.include('lib/**/*.rb')
22 23 end
  24 +
  25 +gemspec = eval(File.read("#{File.dirname(__FILE__)}/restful-authentication.gemspec"))
  26 +PKG_NAME = gemspec.name
  27 +PKG_VERSION = gemspec.version
  28 +
  29 +Rake::GemPackageTask.new(gemspec) do |pkg|
  30 + pkg.need_zip = true
  31 + pkg.need_tar = true
  32 +end
4 init.rb
... ... @@ -1,3 +1 @@
1   -require File.dirname(__FILE__) + '/lib/authentication'
2   -require File.dirname(__FILE__) + '/lib/authentication/by_password'
3   -require File.dirname(__FILE__) + '/lib/authentication/by_cookie_token'
  1 +require File.join(File.dirname(__FILE__), "rails", "init")
3  rails/init.rb
... ... @@ -0,0 +1,3 @@
  1 +require File.join(File.dirname(__FILE__), "..", "lib", "authentication")
  2 +require File.join(File.dirname(__FILE__), "..", "lib", "authentication", "by_password")
  3 +require File.join(File.dirname(__FILE__), "..", "lib", "authentication", "by_cookie_token")
33 restful-authentication.gemspec
... ... @@ -0,0 +1,33 @@
  1 +# -*- encoding: utf-8 -*-
  2 +
  3 +Gem::Specification.new do |s|
  4 + s.name = %q{restful-authentication}
  5 + s.version = "1.1"
  6 +
  7 + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  8 + s.authors = ["RailsJedi", "Rick Olson"]
  9 + s.date = %q{2008-07-04}
  10 + s.description = %q{This widely-used plugin provides a foundation for securely managing user.}
  11 + s.email = %q{railsjedi@gmail.com}
  12 + s.extra_rdoc_files = ["README.textile"]
  13 + s.files = ["CHANGELOG", "README.textile", "Rakefile", "TODO", "generators/authenticated/authenticated_generator.rb", "generators/authenticated/lib/insert_routes.rb", "generators/authenticated/templates/_model_partial.html.erb", "generators/authenticated/templates/activation.erb", "generators/authenticated/templates/authenticated_system.rb", "generators/authenticated/templates/authenticated_test_helper.rb", "generators/authenticated/templates/controller.rb", "generators/authenticated/templates/helper.rb", "generators/authenticated/templates/login.html.erb", "generators/authenticated/templates/mailer.rb", "generators/authenticated/templates/migration.rb", "generators/authenticated/templates/model.rb", "generators/authenticated/templates/model_controller.rb", "generators/authenticated/templates/model_helper.rb", "generators/authenticated/templates/model_helper_spec.rb", "generators/authenticated/templates/observer.rb", "generators/authenticated/templates/signup.html.erb", "generators/authenticated/templates/signup_notification.erb", "generators/authenticated/templates/site_keys.rb", "generators/authenticated/templates/spec/controllers/access_control_spec.rb", "generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb", "generators/authenticated/templates/spec/controllers/sessions_controller_spec.rb", "generators/authenticated/templates/spec/controllers/users_controller_spec.rb", "generators/authenticated/templates/spec/fixtures/users.yml", "generators/authenticated/templates/spec/helpers/users_helper_spec.rb", "generators/authenticated/templates/spec/models/user_spec.rb", "generators/authenticated/templates/stories/rest_auth_stories.rb", "generators/authenticated/templates/stories/rest_auth_stories_helper.rb", "generators/authenticated/templates/stories/steps/ra_navigation_steps.rb", "generators/authenticated/templates/stories/steps/ra_resource_steps.rb", "generators/authenticated/templates/stories/steps/ra_response_steps.rb", "generators/authenticated/templates/stories/steps/user_steps.rb", "generators/authenticated/templates/stories/users/accounts.story", "generators/authenticated/templates/stories/users/sessions.story", "generators/authenticated/templates/test/functional_test.rb", "generators/authenticated/templates/test/mailer_test.rb", "generators/authenticated/templates/test/model_functional_test.rb", "generators/authenticated/templates/test/unit_test.rb", "generators/authenticated/USAGE", "init.rb", "lib/authentication/by_cookie_token.rb", "lib/authentication/by_password.rb", "lib/authentication.rb", "lib/authorization/aasm_roles.rb", "lib/authorization/stateful_roles.rb", "lib/authorization.rb", "lib/trustification/email_validation.rb", "lib/trustification.rb", "rails/init.rb"]
  14 + s.has_rdoc = true
  15 + s.homepage = %q{http://github.com/technoweenie/restful-authentication}
  16 + s.rdoc_options = ["--main", "README.textile"]
  17 + s.require_paths = ["lib"]
  18 + s.rubygems_version = %q{1.3.0}
  19 + s.summary = %q{Generates code for user login and authentication}
  20 +
  21 + if s.respond_to? :specification_version then
  22 + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
  23 + s.specification_version = 2
  24 +
  25 + if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
  26 + s.add_runtime_dependency(%q<rails>, ["~> 2.1.0"])
  27 + else
  28 + s.add_dependency(%q<rails>, ["~> 2.1.0"])
  29 + end
  30 + else
  31 + s.add_dependency(%q<rails>, ["~> 2.1.0"])
  32 + end
  33 +end

0 comments on commit 8cffaf6

Please sign in to comment.
Something went wrong with that request. Please try again.