This repository has been archived by the owner on May 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This means we need to administer the gemspec directly, but in modern gemspecs that is more straightforward. The new gemspec was built based on the template that bundler creates when you generate a new gem. All the dependencies were brought from the Gemfile into the gemspec and the other spec attributes transformed from the Jeweler config in the Rakefile.
- Loading branch information
Showing
6 changed files
with
42 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
require 'rubygems' | ||
require 'bundler' | ||
require 'bundler/gem_tasks' | ||
begin | ||
Bundler.setup(:default, :development) | ||
rescue Bundler::BundlerError => e | ||
|
@@ -11,20 +12,6 @@ rescue Bundler::BundlerError => e | |
end | ||
require 'rake' | ||
|
||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options | ||
gem.name = "devise-authy" | ||
gem.homepage = "https://github.com/authy/authy-devise" | ||
gem.license = "MIT" | ||
gem.summary = %Q{Authy plugin for Devise} | ||
gem.description = %Q{Authy plugin for Devise} | ||
gem.email = "[email protected]" | ||
gem.authors = ["Authy Inc."] | ||
# dependencies defined in Gemfile | ||
end | ||
Jeweler::RubygemsDotOrgTasks.new | ||
|
||
require 'rspec/core' | ||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) do |spec| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,243 +1,40 @@ | ||
# Generated by jeweler | ||
# DO NOT EDIT THIS FILE DIRECTLY | ||
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' | ||
# -*- encoding: utf-8 -*- | ||
# stub: devise-authy 1.8.3 ruby lib | ||
# frozen_string_literal: true | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "devise-authy".freeze | ||
s.version = "1.8.3" | ||
lib = File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require "devise-authy/version" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= | ||
s.require_paths = ["lib".freeze] | ||
s.authors = ["Authy Inc.".freeze] | ||
s.date = "2018-07-05" | ||
s.description = "Authy plugin for Devise".freeze | ||
s.email = "[email protected]".freeze | ||
s.extra_rdoc_files = [ | ||
"LICENSE.txt", | ||
"README.md" | ||
] | ||
s.files = [ | ||
".document", | ||
".rspec", | ||
".travis.yml", | ||
"CHANGELOG.md", | ||
"Gemfile", | ||
"LICENSE.txt", | ||
"README.md", | ||
"Rakefile", | ||
"VERSION", | ||
"app/assets/javascripts/devise_authy.js", | ||
"app/assets/stylesheets/devise_authy.css", | ||
"app/assets/stylesheets/devise_authy.sass", | ||
"app/controllers/devise/devise_authy_controller.rb", | ||
"app/controllers/devise_authy/passwords_controller.rb", | ||
"app/views/devise/enable_authy.html.erb", | ||
"app/views/devise/enable_authy.html.haml", | ||
"app/views/devise/verify_authy.html.erb", | ||
"app/views/devise/verify_authy.html.haml", | ||
"app/views/devise/verify_authy_installation.html.erb", | ||
"app/views/devise/verify_authy_installation.html.haml", | ||
"authy-devise-demo/.gitignore", | ||
"authy-devise-demo/Gemfile", | ||
"authy-devise-demo/Gemfile.lock", | ||
"authy-devise-demo/README.md", | ||
"authy-devise-demo/Rakefile", | ||
"authy-devise-demo/app/assets/images/rails.png", | ||
"authy-devise-demo/app/assets/javascripts/application.js", | ||
"authy-devise-demo/app/assets/javascripts/devise_authy.js", | ||
"authy-devise-demo/app/assets/javascripts/welcome.js.coffee", | ||
"authy-devise-demo/app/assets/stylesheets/application.css", | ||
"authy-devise-demo/app/assets/stylesheets/devise_authy.css", | ||
"authy-devise-demo/app/assets/stylesheets/welcome.css.scss", | ||
"authy-devise-demo/app/controllers/application_controller.rb", | ||
"authy-devise-demo/app/controllers/welcome_controller.rb", | ||
"authy-devise-demo/app/helpers/application_helper.rb", | ||
"authy-devise-demo/app/helpers/welcome_helper.rb", | ||
"authy-devise-demo/app/mailers/.gitkeep", | ||
"authy-devise-demo/app/models/.gitkeep", | ||
"authy-devise-demo/app/models/admin.rb", | ||
"authy-devise-demo/app/models/user.rb", | ||
"authy-devise-demo/app/views/devise/devise_authy/enable_authy.html.erb", | ||
"authy-devise-demo/app/views/devise/devise_authy/verify_authy.html.erb", | ||
"authy-devise-demo/app/views/devise/devise_authy/verify_authy_installation.html.erb", | ||
"authy-devise-demo/app/views/layouts/application.html.erb", | ||
"authy-devise-demo/app/views/welcome/admin_page.html.erb", | ||
"authy-devise-demo/app/views/welcome/index.html.erb", | ||
"authy-devise-demo/app/views/welcome/user_page.html.erb", | ||
"authy-devise-demo/config.ru", | ||
"authy-devise-demo/config/application.rb", | ||
"authy-devise-demo/config/boot.rb", | ||
"authy-devise-demo/config/database.yml", | ||
"authy-devise-demo/config/environment.rb", | ||
"authy-devise-demo/config/environments/development.rb", | ||
"authy-devise-demo/config/environments/production.rb", | ||
"authy-devise-demo/config/environments/test.rb", | ||
"authy-devise-demo/config/initializers/authy.rb", | ||
"authy-devise-demo/config/initializers/backtrace_silencers.rb", | ||
"authy-devise-demo/config/initializers/devise.rb", | ||
"authy-devise-demo/config/initializers/inflections.rb", | ||
"authy-devise-demo/config/initializers/mime_types.rb", | ||
"authy-devise-demo/config/initializers/secret_token.rb", | ||
"authy-devise-demo/config/initializers/session_store.rb", | ||
"authy-devise-demo/config/initializers/wrap_parameters.rb", | ||
"authy-devise-demo/config/locales/devise.authy.en.yml", | ||
"authy-devise-demo/config/locales/devise.en.yml", | ||
"authy-devise-demo/config/locales/en.yml", | ||
"authy-devise-demo/config/routes.rb", | ||
"authy-devise-demo/config/secrets.yml", | ||
"authy-devise-demo/db/migrate/20130409234357_devise_create_users.rb", | ||
"authy-devise-demo/db/migrate/20141202000744_devise_create_admins.rb", | ||
"authy-devise-demo/db/migrate/20141202004246_devise_authy_add_to_admins.rb", | ||
"authy-devise-demo/db/migrate/20160906221739_add_sessions_table.rb", | ||
"authy-devise-demo/db/schema.rb", | ||
"authy-devise-demo/db/seeds.rb", | ||
"authy-devise-demo/lib/assets/.gitkeep", | ||
"authy-devise-demo/lib/tasks/.gitkeep", | ||
"authy-devise-demo/log/.gitkeep", | ||
"authy-devise-demo/public/404.html", | ||
"authy-devise-demo/public/422.html", | ||
"authy-devise-demo/public/500.html", | ||
"authy-devise-demo/public/favicon.ico", | ||
"authy-devise-demo/public/robots.txt", | ||
"authy-devise-demo/script/rails", | ||
"authy-devise-demo/test/fixtures/.gitkeep", | ||
"authy-devise-demo/test/fixtures/users.yml", | ||
"authy-devise-demo/test/functional/.gitkeep", | ||
"authy-devise-demo/test/functional/welcome_controller_test.rb", | ||
"authy-devise-demo/test/integration/.gitkeep", | ||
"authy-devise-demo/test/performance/browsing_test.rb", | ||
"authy-devise-demo/test/test_helper.rb", | ||
"authy-devise-demo/test/unit/.gitkeep", | ||
"authy-devise-demo/test/unit/helpers/welcome_helper_test.rb", | ||
"authy-devise-demo/test/unit/user_test.rb", | ||
"authy-devise-demo/vendor/assets/javascripts/.gitkeep", | ||
"authy-devise-demo/vendor/assets/stylesheets/.gitkeep", | ||
"authy-devise-demo/vendor/plugins/.gitkeep", | ||
"config/locales/en.yml", | ||
"devise-authy.gemspec", | ||
"lib/devise-authy.rb", | ||
"lib/devise-authy/controllers/helpers.rb", | ||
"lib/devise-authy/controllers/view_helpers.rb", | ||
"lib/devise-authy/hooks/authy_authenticatable.rb", | ||
"lib/devise-authy/mapping.rb", | ||
"lib/devise-authy/models/authy_authenticatable.rb", | ||
"lib/devise-authy/models/authy_lockable.rb", | ||
"lib/devise-authy/rails.rb", | ||
"lib/devise-authy/routes.rb", | ||
"lib/generators/active_record/devise_authy_generator.rb", | ||
"lib/generators/active_record/templates/migration.rb", | ||
"lib/generators/devise_authy/devise_authy_generator.rb", | ||
"lib/generators/devise_authy/install_generator.rb", | ||
"spec/controllers/devise_authy_controller_spec.rb", | ||
"spec/controllers/passwords_controller_spec.rb", | ||
"spec/features/authy_authenticatable_spec.rb", | ||
"spec/features/authy_lockable_spec.rb", | ||
"spec/generators_spec.rb", | ||
"spec/models/authy_authenticatable_spec.rb", | ||
"spec/models/authy_lockable_spec.rb", | ||
"spec/orm/active_record.rb", | ||
"spec/rails-app/Gemfile", | ||
"spec/rails-app/Gemfile.lock", | ||
"spec/rails-app/Rakefile", | ||
"spec/rails-app/app/assets/images/rails.png", | ||
"spec/rails-app/app/assets/javascripts/application.js", | ||
"spec/rails-app/app/assets/javascripts/devise_authy.js", | ||
"spec/rails-app/app/assets/javascripts/welcome.js", | ||
"spec/rails-app/app/assets/stylesheets/application.css", | ||
"spec/rails-app/app/assets/stylesheets/devise_authy.css", | ||
"spec/rails-app/app/assets/stylesheets/welcome.css.scss", | ||
"spec/rails-app/app/controllers/application_controller.rb", | ||
"spec/rails-app/app/controllers/welcome_controller.rb", | ||
"spec/rails-app/app/helpers/application_helper.rb", | ||
"spec/rails-app/app/helpers/welcome_helper.rb", | ||
"spec/rails-app/app/mailers/.gitkeep", | ||
"spec/rails-app/app/models/.gitkeep", | ||
"spec/rails-app/app/models/lockable_user.rb", | ||
"spec/rails-app/app/models/user.rb", | ||
"spec/rails-app/app/views/devise/devise_authy/enable_authy.html.erb", | ||
"spec/rails-app/app/views/devise/devise_authy/verify_authy.html.erb", | ||
"spec/rails-app/app/views/devise/devise_authy/verify_authy_installation.html.erb", | ||
"spec/rails-app/app/views/layouts/application.html.erb", | ||
"spec/rails-app/app/views/welcome/index.html.erb", | ||
"spec/rails-app/config.ru", | ||
"spec/rails-app/config/application.rb", | ||
"spec/rails-app/config/boot.rb", | ||
"spec/rails-app/config/database.yml", | ||
"spec/rails-app/config/environment.rb", | ||
"spec/rails-app/config/environments/development.rb", | ||
"spec/rails-app/config/environments/production.rb", | ||
"spec/rails-app/config/environments/test.rb", | ||
"spec/rails-app/config/initializers/authy.rb", | ||
"spec/rails-app/config/initializers/backtrace_silencers.rb", | ||
"spec/rails-app/config/initializers/devise.rb", | ||
"spec/rails-app/config/initializers/inflections.rb", | ||
"spec/rails-app/config/initializers/mime_types.rb", | ||
"spec/rails-app/config/initializers/secret_token.rb", | ||
"spec/rails-app/config/initializers/session_store.rb", | ||
"spec/rails-app/config/initializers/wrap_parameters.rb", | ||
"spec/rails-app/config/locales/devise.authy.en.yml", | ||
"spec/rails-app/config/locales/devise.en.yml", | ||
"spec/rails-app/config/locales/en.yml", | ||
"spec/rails-app/config/routes.rb", | ||
"spec/rails-app/config/secrets.yml", | ||
"spec/rails-app/db/development.sqlite3", | ||
"spec/rails-app/db/migrate/20130419164907_devise_create_users.rb", | ||
"spec/rails-app/db/migrate/20130419164936_devise_authy_add_to_users.rb", | ||
"spec/rails-app/db/schema.rb", | ||
"spec/rails-app/db/seeds.rb", | ||
"spec/rails-app/lib/assets/.gitkeep", | ||
"spec/rails-app/lib/tasks/.gitkeep", | ||
"spec/rails-app/public/404.html", | ||
"spec/rails-app/public/422.html", | ||
"spec/rails-app/public/500.html", | ||
"spec/rails-app/public/favicon.ico", | ||
"spec/rails-app/public/robots.txt", | ||
"spec/rails-app/script/rails", | ||
"spec/routing/routes_spec.rb", | ||
"spec/spec_helper.rb", | ||
"spec/support/helpers.rb" | ||
] | ||
s.homepage = "https://github.com/authy/authy-devise".freeze | ||
s.licenses = ["MIT".freeze] | ||
s.rubygems_version = "2.7.6".freeze | ||
s.summary = "Authy plugin for Devise".freeze | ||
Gem::Specification.new do |spec| | ||
spec.name = "devise-authy" | ||
spec.version = DeviseAuthy::VERSION | ||
spec.authors = ["Authy Inc."] | ||
spec.email = ["[email protected]"] | ||
|
||
if s.respond_to? :specification_version then | ||
s.specification_version = 4 | ||
spec.summary = %q{Authy plugin for Devise.} | ||
spec.description = %q{Authy plugin to add two factor authentication to Devise.} | ||
spec.homepage = "https://github.com/authy/authy-devise" | ||
spec.license = "MIT" | ||
|
||
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then | ||
s.add_runtime_dependency(%q<devise>.freeze, [">= 3.0.0"]) | ||
s.add_runtime_dependency(%q<authy>.freeze, [">= 2.7.2"]) | ||
s.add_development_dependency(%q<rspec>.freeze, ["> 3.0.0"]) | ||
s.add_development_dependency(%q<yard>.freeze, ["~> 0.9.11"]) | ||
s.add_development_dependency(%q<rdoc>.freeze, [">= 0"]) | ||
s.add_development_dependency(%q<bundler>.freeze, [">= 0"]) | ||
s.add_development_dependency(%q<jeweler>.freeze, [">= 2.0.1"]) | ||
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"]) | ||
s.add_development_dependency(%q<byebug>.freeze, [">= 0"]) | ||
else | ||
s.add_dependency(%q<devise>.freeze, [">= 3.0.0"]) | ||
s.add_dependency(%q<authy>.freeze, [">= 2.7.2"]) | ||
s.add_dependency(%q<rspec>.freeze, ["> 3.0.0"]) | ||
s.add_dependency(%q<yard>.freeze, ["~> 0.9.11"]) | ||
s.add_dependency(%q<rdoc>.freeze, [">= 0"]) | ||
s.add_dependency(%q<bundler>.freeze, [">= 0"]) | ||
s.add_dependency(%q<jeweler>.freeze, [">= 2.0.1"]) | ||
s.add_dependency(%q<simplecov>.freeze, [">= 0"]) | ||
s.add_dependency(%q<byebug>.freeze, [">= 0"]) | ||
end | ||
else | ||
s.add_dependency(%q<devise>.freeze, [">= 3.0.0"]) | ||
s.add_dependency(%q<authy>.freeze, [">= 2.7.2"]) | ||
s.add_dependency(%q<rspec>.freeze, ["> 3.0.0"]) | ||
s.add_dependency(%q<yard>.freeze, ["~> 0.9.11"]) | ||
s.add_dependency(%q<rdoc>.freeze, [">= 0"]) | ||
s.add_dependency(%q<bundler>.freeze, [">= 0"]) | ||
s.add_dependency(%q<jeweler>.freeze, [">= 2.0.1"]) | ||
s.add_dependency(%q<simplecov>.freeze, [">= 0"]) | ||
s.add_dependency(%q<byebug>.freeze, [">= 0"]) | ||
spec.metadata = { | ||
"bug_tracker_uri" => "https://github.com/authy/authy-devise/issues", | ||
"change_log_uri" => "https://github.com/authy/authy-devise/blob/master/CHANGELOG.md", | ||
"documentation_uri" => "https://github.com/authy/authy-devise", | ||
"homepage_uri" => "https://github.com/authy/authy-devise", | ||
"source_code_uri" => "https://github.com/authy/authy-devise" | ||
} | ||
|
||
spec.files = `git ls-files -z`.split("\x0").reject do |f| | ||
f.match(%r{^(test|spec|features)/}) | ||
end | ||
end | ||
spec.require_paths = ["lib"] | ||
|
||
spec.add_dependency "devise", ">= 3.0.0" | ||
spec.add_dependency "authy", ">= 2.7.2" | ||
|
||
spec.add_development_dependency "bundler", "~> 1.16" | ||
spec.add_development_dependency "rake", "~> 10.0" | ||
spec.add_development_dependency "rspec", "~> 3.0" | ||
spec.add_development_dependency "yard", "~> 0.9.11" | ||
spec.add_development_dependency "rdoc", "~> 4.3.0" | ||
spec.add_development_dependency "simplecov", "~> 0.16.1" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module DeviseAuthy | ||
VERSION = '1.8.3' | ||
end |