devise-authy 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +5 -13
  2. data/.travis.yml +4 -0
  3. data/Gemfile +29 -13
  4. data/README.md +8 -6
  5. data/VERSION +1 -1
  6. data/app/controllers/devise/devise_authy_controller.rb +3 -3
  7. data/authy-devise-demo/Gemfile +39 -28
  8. data/authy-devise-demo/Gemfile.lock +166 -113
  9. data/authy-devise-demo/README.md +1 -1
  10. data/authy-devise-demo/app/controllers/welcome_controller.rb +2 -2
  11. data/authy-devise-demo/app/models/admin.rb +0 -3
  12. data/authy-devise-demo/app/models/user.rb +0 -3
  13. data/authy-devise-demo/config/application.rb +5 -41
  14. data/authy-devise-demo/config/environments/development.rb +21 -17
  15. data/authy-devise-demo/config/environments/production.rb +45 -33
  16. data/authy-devise-demo/config/environments/test.rb +18 -13
  17. data/authy-devise-demo/config/initializers/session_store.rb +1 -1
  18. data/authy-devise-demo/config/locales/devise.authy.en.yml +4 -4
  19. data/authy-devise-demo/config/secrets.yml +22 -0
  20. data/authy-devise-demo/db/migrate/20160906221739_add_sessions_table.rb +12 -0
  21. data/authy-devise-demo/db/schema.rb +32 -22
  22. data/config/locales/en.yml +4 -4
  23. data/devise-authy.gemspec +44 -47
  24. data/lib/devise-authy/controllers/helpers.rb +1 -1
  25. data/lib/devise-authy/controllers/view_helpers.rb +8 -2
  26. data/lib/devise-authy/mapping.rb +3 -7
  27. data/lib/devise-authy/models/authy_authenticatable.rb +1 -1
  28. data/lib/devise-authy/rails.rb +1 -1
  29. data/lib/generators/devise_authy/install_generator.rb +7 -0
  30. data/spec/controllers/devise_authy_controller_spec.rb +61 -60
  31. data/spec/controllers/passwords_controller_spec.rb +15 -15
  32. data/spec/features/authy_authenticatable_spec.rb +23 -23
  33. data/spec/features/authy_lockable_spec.rb +6 -6
  34. data/spec/generators_spec.rb +11 -9
  35. data/spec/models/authy_authenticatable_spec.rb +3 -3
  36. data/spec/models/authy_lockable_spec.rb +7 -7
  37. data/spec/rails-app/Gemfile +4 -3
  38. data/spec/rails-app/Gemfile.lock +116 -91
  39. data/spec/rails-app/app/controllers/welcome_controller.rb +1 -1
  40. data/spec/rails-app/app/models/user.rb +0 -3
  41. data/spec/rails-app/config/application.rb +15 -34
  42. data/spec/rails-app/config/environments/development.rb +21 -17
  43. data/spec/rails-app/config/environments/production.rb +45 -33
  44. data/spec/rails-app/config/environments/test.rb +18 -13
  45. data/spec/rails-app/config/secrets.yml +22 -0
  46. data/spec/routing/routes_spec.rb +7 -7
  47. data/spec/spec_helper.rb +17 -0
  48. data/spec/support/helpers.rb +3 -1
  49. metadata +34 -59
  50. data/Gemfile.lock +0 -194
@@ -1,5 +1,5 @@
1
1
  class WelcomeController < ApplicationController
2
- before_filter :authenticate_scope!
2
+ before_action :authenticate_scope!
3
3
 
4
4
  def index
5
5
  end
@@ -5,7 +5,4 @@ class User < ActiveRecord::Base
5
5
  devise :authy_authenticatable, :database_authenticatable, :registerable,
6
6
  :recoverable, :rememberable, :trackable, :validatable
7
7
 
8
- # Setup accessible (or protected) attributes for your model
9
- attr_accessible :authy_id, :last_sign_in_with_authy, :email, :password, :password_confirmation, :remember_me
10
- # attr_accessible :authy_id, :last_sign_in_with_authy, :title, :body
11
8
  end
@@ -1,18 +1,10 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- require "action_controller/railtie"
4
- require "action_mailer/railtie"
5
- require "active_resource/railtie"
6
- require "active_record/railtie"
7
- require 'sprockets/railtie'
3
+ require 'rails/all'
8
4
 
9
- if defined?(Bundler)
10
- #binding.pry
11
- # If you precompile assets before deploying to production, use this line
12
- Bundler.require(*Rails.groups(:assets => %w(development test)))
13
- # If you want your assets lazily compiled in production, use this line
14
- # Bundler.require(:default, :assets, Rails.env)
15
- end
5
+ # Require the gems listed in Gemfile, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(*Rails.groups)
16
8
 
17
9
  require "devise"
18
10
  require "devise/rails"
@@ -20,30 +12,19 @@ require "devise-authy"
20
12
 
21
13
  module RailsApp
22
14
  class Application < Rails::Application
23
- # Configure the default encoding used in templates for Ruby 1.9.
24
- config.encoding = "utf-8"
25
-
26
- # Configure sensitive parameters which will be filtered from the log file.
27
- config.filter_parameters += [:password]
28
-
29
- # Enable escaping HTML in JSON.
30
- config.active_support.escape_html_entities_in_json = true
31
-
32
- # Use SQL instead of Active Record's schema dumper when creating the database.
33
- # This is necessary if your schema can't be completely dumped by the schema dumper,
34
- # like if you have constraints or database-specific column types
35
- # config.active_record.schema_format = :sql
15
+ # Settings in config/environments/* take precedence over those specified here.
16
+ # Application configuration should go into files in config/initializers
17
+ # -- all .rb files in that directory are automatically loaded.
36
18
 
37
- # Enforce whitelist mode for mass assignment.
38
- # This will create an empty whitelist of attributes available for mass-assignment for all models
39
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
40
- # parameters by using an attr_accessible or attr_protected declaration.
41
- config.active_record.whitelist_attributes = true
19
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
20
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
21
+ # config.time_zone = 'Central Time (US & Canada)'
42
22
 
43
- # Enable the asset pipeline
44
- config.assets.enabled = true
23
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
24
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
25
+ # config.i18n.default_locale = :de
45
26
 
46
- # Version of your assets, change this if you want to expire all your assets
47
- config.assets.version = '1.0'
27
+ # Do not swallow errors in after_commit/after_rollback callbacks.
28
+ config.active_record.raise_in_transactional_callbacks = true
48
29
  end
49
30
  end
@@ -1,39 +1,43 @@
1
1
  RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # In the development environment your application's code is reloaded on
5
5
  # every request. This slows down response time but is perfect for development
6
6
  # since you don't have to restart the web server when you make code changes.
7
7
  config.cache_classes = false
8
8
 
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
11
 
12
- # Show full error reports and disable caching
12
+ # Show full error reports and disable caching.
13
13
  config.consider_all_requests_local = true
14
14
  config.action_controller.perform_caching = false
15
15
 
16
- # Don't care if the mailer can't send
16
+ # Don't care if the mailer can't send.
17
17
  config.action_mailer.raise_delivery_errors = false
18
18
 
19
- # Print deprecation notices to the Rails logger
19
+ # Print deprecation notices to the Rails logger.
20
20
  config.active_support.deprecation = :log
21
21
 
22
- # Only use best-standards-support built into browsers
23
- config.action_dispatch.best_standards_support = :builtin
22
+ # Raise an error on page load if there are pending migrations.
23
+ config.active_record.migration_error = :page_load
24
24
 
25
- # Raise exception on mass assignment protection for Active Record models
26
- config.active_record.mass_assignment_sanitizer = :strict
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
28
+ config.assets.debug = true
27
29
 
28
- # Log the query plan for queries taking more than this (works
29
- # with SQLite, MySQL, and PostgreSQL)
30
- config.active_record.auto_explain_threshold_in_seconds = 0.5
30
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
+ # yet still be able to expire them through the digest params.
32
+ config.assets.digest = true
31
33
 
32
- # Do not compress assets
33
- config.assets.compress = false
34
+ # Adds additional error checking when serving assets at runtime.
35
+ # Checks for improperly declared sprockets dependencies.
36
+ # Raises helpful error messages.
37
+ config.assets.raise_runtime_errors = true
34
38
 
35
- # Expands the lines which load the assets
36
- config.assets.debug = true
39
+ # Raises error for missing translations
40
+ # config.action_view.raise_on_missing_translations = true
37
41
 
38
42
  config.action_mailer.default_url_options = { :host => 'localhost:3000' }
39
43
  end
@@ -1,67 +1,79 @@
1
1
  RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
- # Code is not reloaded between requests
4
+ # Code is not reloaded between requests.
5
5
  config.cache_classes = true
6
6
 
7
- # Full error reports are disabled and caching is turned on
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both threaded web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
8
14
  config.consider_all_requests_local = false
9
15
  config.action_controller.perform_caching = true
10
16
 
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
12
- config.serve_static_assets = false
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like
20
+ # NGINX, varnish or squid.
21
+ # config.action_dispatch.rack_cache = true
22
+
23
+ # Disable serving static files from the `/public` folder by default since
24
+ # Apache or NGINX already handles this.
25
+ config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
13
26
 
14
- # Compress JavaScripts and CSS
15
- config.assets.compress = true
27
+ # Compress JavaScripts and CSS.
28
+ config.assets.js_compressor = :uglifier
29
+ # config.assets.css_compressor = :sass
16
30
 
17
- # Don't fallback to assets pipeline if a precompiled asset is missed
31
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
18
32
  config.assets.compile = false
19
33
 
20
- # Generate digests for assets URLs
34
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
+ # yet still be able to expire them through the digest params.
21
36
  config.assets.digest = true
22
37
 
23
- # Defaults to nil and saved in location specified by config.assets.prefix
24
- # config.assets.manifest = YOUR_PATH
38
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
25
39
 
26
- # Specifies the header that your server uses for sending files
27
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
40
+ # Specifies the header that your server uses for sending files.
41
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
29
43
 
30
44
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
45
  # config.force_ssl = true
32
46
 
33
- # See everything in the log (default is :info)
34
- # config.log_level = :debug
47
+ # Use the lowest log level to ensure availability of diagnostic information
48
+ # when problems arise.
49
+ config.log_level = :debug
35
50
 
36
- # Prepend all log lines with the following tags
51
+ # Prepend all log lines with the following tags.
37
52
  # config.log_tags = [ :subdomain, :uuid ]
38
53
 
39
- # Use a different logger for distributed setups
54
+ # Use a different logger for distributed setups.
40
55
  # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
56
 
42
- # Use a different cache store in production
57
+ # Use a different cache store in production.
43
58
  # config.cache_store = :mem_cache_store
44
59
 
45
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
- # config.action_controller.asset_host = "http://assets.example.com"
47
-
48
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
- # config.assets.precompile += %w( search.js )
60
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
+ # config.action_controller.asset_host = 'http://assets.example.com'
50
62
 
51
- # Disable delivery errors, bad email addresses will be ignored
63
+ # Ignore bad email addresses and do not raise email delivery errors.
64
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
52
65
  # config.action_mailer.raise_delivery_errors = false
53
66
 
54
- # Enable threaded mode
55
- # config.threadsafe!
56
-
57
67
  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
- # the I18n.default_locale when a translation can not be found)
68
+ # the I18n.default_locale when a translation cannot be found).
59
69
  config.i18n.fallbacks = true
60
70
 
61
- # Send deprecation notices to registered listeners
71
+ # Send deprecation notices to registered listeners.
62
72
  config.active_support.deprecation = :notify
63
73
 
64
- # Log the query plan for queries taking more than this (works
65
- # with SQLite, MySQL, and PostgreSQL)
66
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
74
+ # Use default logging formatter so that PID and timestamp are not suppressed.
75
+ config.log_formatter = ::Logger::Formatter.new
76
+
77
+ # Do not dump schema after migrations.
78
+ config.active_record.dump_schema_after_migration = false
67
79
  end
@@ -1,5 +1,5 @@
1
1
  RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
5
5
  # test suite. You never need to work with it otherwise. Remember that
@@ -7,33 +7,38 @@ RailsApp::Application.configure do
7
7
  # and recreated between test runs. Don't rely on the data there!
8
8
  config.cache_classes = true
9
9
 
10
- # Configure static asset server for tests with Cache-Control for performance
11
- config.serve_static_assets = true
12
- config.static_cache_control = "public, max-age=3600"
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
13
14
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
16
18
 
17
- # Show full error reports and disable caching
19
+ # Show full error reports and disable caching.
18
20
  config.consider_all_requests_local = true
19
21
  config.action_controller.perform_caching = false
20
22
 
21
- # Raise exceptions instead of rendering exception templates
23
+ # Raise exceptions instead of rendering exception templates.
22
24
  config.action_dispatch.show_exceptions = false
23
25
 
24
- # Disable request forgery protection in test environment
25
- config.action_controller.allow_forgery_protection = false
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
26
28
 
27
29
  # Tell Action Mailer not to deliver emails to the real world.
28
30
  # The :test delivery method accumulates sent emails in the
29
31
  # ActionMailer::Base.deliveries array.
30
32
  config.action_mailer.delivery_method = :test
31
33
 
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
34
36
 
35
- # Print deprecation notices to the stderr
37
+ # Print deprecation notices to the stderr.
36
38
  config.active_support.deprecation = :stderr
37
39
 
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+
38
43
  config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
39
44
  end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 48cb81d1fc128524d6f560261d71ed58c50d82faf6cac54fb4860ea66549826c7d03fb748e466d25dc8bbb09a9a570963c155f5004e08d03f09f16851359d981
15
+
16
+ test:
17
+ secret_key_base: 59b24997aac1cc4ac9b807b5075f7fcbc59c49aa2fecda9dab34daecbc4423b7fe2d536b55c7063f0880625c864fe742e510502a2b1d08c9156ce928d2d2de18
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -2,30 +2,30 @@ require 'spec_helper'
2
2
 
3
3
  describe "routes for devise_authy" do
4
4
  it "route to devise_authy#GET_verify_authy" do
5
- get('/users/verify_authy').should route_to("devise/devise_authy#GET_verify_authy")
5
+ expect(get('/users/verify_authy')).to route_to("devise/devise_authy#GET_verify_authy")
6
6
  end
7
7
 
8
8
  it "routes to devise_authy#POST_verify_authy" do
9
- post('/users/verify_authy').should route_to("devise/devise_authy#POST_verify_authy")
9
+ expect(post('/users/verify_authy')).to route_to("devise/devise_authy#POST_verify_authy")
10
10
  end
11
11
 
12
12
  it "routes to devise_authy#GET_enable_authy" do
13
- get('/users/enable_authy').should route_to("devise/devise_authy#GET_enable_authy")
13
+ expect(get('/users/enable_authy')).to route_to("devise/devise_authy#GET_enable_authy")
14
14
  end
15
15
 
16
16
  it "routes to devise_authy#POST_enable_authy" do
17
- post('/users/enable_authy').should route_to("devise/devise_authy#POST_enable_authy")
17
+ expect(post('/users/enable_authy')).to route_to("devise/devise_authy#POST_enable_authy")
18
18
  end
19
19
 
20
20
  it "route to devise_authy#GET_verify_authy_installation" do
21
- get('/users/verify_authy_installation').should route_to("devise/devise_authy#GET_verify_authy_installation")
21
+ expect(get('/users/verify_authy_installation')).to route_to("devise/devise_authy#GET_verify_authy_installation")
22
22
  end
23
23
 
24
24
  it "routes to devise_authy#POST_verify_authy_installation" do
25
- post('/users/verify_authy_installation').should route_to("devise/devise_authy#POST_verify_authy_installation")
25
+ expect(post('/users/verify_authy_installation')).to route_to("devise/devise_authy#POST_verify_authy_installation")
26
26
  end
27
27
 
28
28
  it "routes to devise_authy#request_sms" do
29
- post('/users/request-sms').should route_to("devise/devise_authy#request_sms")
29
+ expect(post('/users/request-sms')).to route_to("devise/devise_authy#request_sms")
30
30
  end
31
31
  end
@@ -1,4 +1,8 @@
1
1
  ENV["RAILS_ENV"] ||= 'test'
2
+
3
+ require 'simplecov'
4
+ SimpleCov.start
5
+
2
6
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
7
  $LOAD_PATH.unshift(File.dirname(__FILE__))
4
8
 
@@ -26,4 +30,17 @@ RSpec.configure do |config|
26
30
  config.after :each do
27
31
  DatabaseCleaner.clean
28
32
  end
33
+
34
+ config.include Capybara::DSL
35
+
36
+ # rspec-rails 3 will no longer automatically infer an example group's spec type
37
+ # from the file location. You can explicitly opt-in to the feature using this
38
+ # config option.
39
+ # To explicitly tag specs without using automatic inference, set the `:type`
40
+ # metadata manually:
41
+ #
42
+ # describe ThingsController, :type => :controller do
43
+ # # Equivalent to being in spec/controllers
44
+ # end
45
+ config.infer_spec_type_from_file_location!
29
46
  end
@@ -27,11 +27,13 @@ def fill_sign_in_form(email, password, form_selector = nil, sign_in_path = nil)
27
27
  sign_in_path ||= new_user_session_path
28
28
 
29
29
  visit sign_in_path
30
+
31
+ # save_and_open_page
30
32
  within(form_selector) do
31
33
  fill_in 'Email', :with => email
32
34
  fill_in 'Password', :with => password
33
35
  end
34
- click_on 'Sign in'
36
+ click_button 'Log in'
35
37
  end
36
38
 
37
39
  def fill_verify_token_form(token)
metadata CHANGED
@@ -1,167 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-authy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Authy Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-22 00:00:00.000000000 Z
11
+ date: 2016-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: authy
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 3.0.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 3.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: yard
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rdoc
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: jeweler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: 2.0.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: 2.0.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ! '>='
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: sass-rails
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ! '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ! '>='
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: jquery-rails
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ! '>='
115
+ - - ">="
144
116
  - !ruby/object:Gem::Version
145
117
  version: '0'
146
118
  type: :development
147
119
  prerelease: false
148
120
  version_requirements: !ruby/object:Gem::Requirement
149
121
  requirements:
150
- - - ! '>='
122
+ - - ">="
151
123
  - !ruby/object:Gem::Version
152
124
  version: '0'
153
125
  - !ruby/object:Gem::Dependency
154
- name: pry
126
+ name: byebug
155
127
  requirement: !ruby/object:Gem::Requirement
156
128
  requirements:
157
- - - ! '>='
129
+ - - ">="
158
130
  - !ruby/object:Gem::Version
159
131
  version: '0'
160
132
  type: :development
161
133
  prerelease: false
162
134
  version_requirements: !ruby/object:Gem::Requirement
163
135
  requirements:
164
- - - ! '>='
136
+ - - ">="
165
137
  - !ruby/object:Gem::Version
166
138
  version: '0'
167
139
  description: Authy plugin for Devise
@@ -172,10 +144,10 @@ extra_rdoc_files:
172
144
  - LICENSE.txt
173
145
  - README.md
174
146
  files:
175
- - .document
176
- - .rspec
147
+ - ".document"
148
+ - ".rspec"
149
+ - ".travis.yml"
177
150
  - Gemfile
178
- - Gemfile.lock
179
151
  - LICENSE.txt
180
152
  - README.md
181
153
  - Rakefile
@@ -238,9 +210,11 @@ files:
238
210
  - authy-devise-demo/config/locales/devise.en.yml
239
211
  - authy-devise-demo/config/locales/en.yml
240
212
  - authy-devise-demo/config/routes.rb
213
+ - authy-devise-demo/config/secrets.yml
241
214
  - authy-devise-demo/db/migrate/20130409234357_devise_create_users.rb
242
215
  - authy-devise-demo/db/migrate/20141202000744_devise_create_admins.rb
243
216
  - authy-devise-demo/db/migrate/20141202004246_devise_authy_add_to_admins.rb
217
+ - authy-devise-demo/db/migrate/20160906221739_add_sessions_table.rb
244
218
  - authy-devise-demo/db/schema.rb
245
219
  - authy-devise-demo/db/seeds.rb
246
220
  - authy-devise-demo/lib/assets/.gitkeep
@@ -331,6 +305,7 @@ files:
331
305
  - spec/rails-app/config/locales/devise.en.yml
332
306
  - spec/rails-app/config/locales/en.yml
333
307
  - spec/rails-app/config/routes.rb
308
+ - spec/rails-app/config/secrets.yml
334
309
  - spec/rails-app/db/development.sqlite3
335
310
  - spec/rails-app/db/migrate/20130419164907_devise_create_users.rb
336
311
  - spec/rails-app/db/migrate/20130419164936_devise_authy_add_to_users.rb
@@ -357,17 +332,17 @@ require_paths:
357
332
  - lib
358
333
  required_ruby_version: !ruby/object:Gem::Requirement
359
334
  requirements:
360
- - - ! '>='
335
+ - - ">="
361
336
  - !ruby/object:Gem::Version
362
337
  version: '0'
363
338
  required_rubygems_version: !ruby/object:Gem::Requirement
364
339
  requirements:
365
- - - ! '>='
340
+ - - ">="
366
341
  - !ruby/object:Gem::Version
367
342
  version: '0'
368
343
  requirements: []
369
344
  rubyforge_project:
370
- rubygems_version: 2.4.8
345
+ rubygems_version: 2.6.7
371
346
  signing_key:
372
347
  specification_version: 4
373
348
  summary: Authy plugin for Devise