devise-remote-user 0.4.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +21 -1
  4. data/Gemfile +36 -1
  5. data/README.md +1 -1
  6. data/Rakefile +5 -8
  7. data/{devise_remote_user.gemspec → devise-remote-user.gemspec} +3 -3
  8. data/lib/devise-remote-user.rb +1 -0
  9. data/lib/devise_remote_user.rb +11 -13
  10. data/lib/devise_remote_user/version.rb +1 -1
  11. data/spec/controllers/application_controller_spec.rb +11 -11
  12. data/spec/controllers/devise/sessions_controller_spec.rb +2 -3
  13. data/spec/examples.txt +15 -0
  14. data/spec/lib/devise_remote_user_spec.rb +3 -3
  15. data/spec/spec_helper.rb +33 -8
  16. data/spec/{dummy/db/migrate → test_app_templates}/20131101184256_add_name_fields_to_user.rb +0 -0
  17. data/spec/test_app_templates/lib/generators/test_app_generator.rb +34 -0
  18. metadata +41 -153
  19. data/spec/controllers/application_controller_spec.rb~ +0 -9
  20. data/spec/controllers/devise/sessions_controller_spec.rb~ +0 -20
  21. data/spec/dummy/README.rdoc +0 -28
  22. data/spec/dummy/Rakefile +0 -6
  23. data/spec/dummy/app/assets/images/.keep +0 -0
  24. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  25. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  26. data/spec/dummy/app/controllers/application_controller.rb +0 -13
  27. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  28. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  29. data/spec/dummy/app/mailers/.keep +0 -0
  30. data/spec/dummy/app/models/.keep +0 -0
  31. data/spec/dummy/app/models/concerns/.keep +0 -0
  32. data/spec/dummy/app/models/user.rb +0 -4
  33. data/spec/dummy/app/models/user.rb~ +0 -6
  34. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  35. data/spec/dummy/bin/bundle +0 -3
  36. data/spec/dummy/bin/rails +0 -4
  37. data/spec/dummy/bin/rake +0 -4
  38. data/spec/dummy/config.ru +0 -4
  39. data/spec/dummy/config/application.rb +0 -23
  40. data/spec/dummy/config/boot.rb +0 -5
  41. data/spec/dummy/config/database.yml +0 -25
  42. data/spec/dummy/config/environment.rb +0 -5
  43. data/spec/dummy/config/environments/development.rb +0 -29
  44. data/spec/dummy/config/environments/production.rb +0 -80
  45. data/spec/dummy/config/environments/test.rb +0 -36
  46. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  47. data/spec/dummy/config/initializers/devise.rb +0 -258
  48. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  49. data/spec/dummy/config/initializers/inflections.rb +0 -16
  50. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  51. data/spec/dummy/config/initializers/secret_token.rb +0 -12
  52. data/spec/dummy/config/initializers/session_store.rb +0 -3
  53. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  54. data/spec/dummy/config/locales/devise.en.yml +0 -60
  55. data/spec/dummy/config/locales/en.yml +0 -23
  56. data/spec/dummy/config/routes.rb +0 -4
  57. data/spec/dummy/db/migrate/20131101150807_devise_create_users.rb +0 -42
  58. data/spec/dummy/db/migrate/20131101184256_add_name_fields_to_user.rb~ +0 -4
  59. data/spec/dummy/db/schema.rb +0 -38
  60. data/spec/dummy/lib/assets/.keep +0 -0
  61. data/spec/dummy/log/.keep +0 -0
  62. data/spec/dummy/public/404.html +0 -58
  63. data/spec/dummy/public/422.html +0 -58
  64. data/spec/dummy/public/500.html +0 -57
  65. data/spec/dummy/public/favicon.ico +0 -0
  66. data/spec/dummy/spec/features/#logout_spec.rb# +0 -1
  67. data/spec/factories/user_factories.rb~ +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d130e55069c15e3ae651fbd092c6a18a05c158a4
4
- data.tar.gz: 9d611dc308392e070c1c787afba128a75744efd2
3
+ metadata.gz: aab12f2759e6c350adbd4c037be2290e95b408ae
4
+ data.tar.gz: 9dea14310c1ba531b8bf0da6a94eeb3559550662
5
5
  SHA512:
6
- metadata.gz: 63fd339cc6677a7163a6f29a64e7034b0100ad6a4a118a3bc8fd258570ba2c6da0db9c137758ea8441843ce20caea13e2804baaddf1752b4a7d5a85857835c17
7
- data.tar.gz: 53575355c94a924900b5c706f8aa294cdc2fdf93575eb2865c60ccc44c757232472cc4d995b2aafbf4a1b3de7de0bdc5f409d20375bc2144b22d447cde71dcfa
6
+ metadata.gz: d2e75c1ac8b983007f8f2ff22d5d16ef82dcd4cc2ee592025e6cb45b9e7d2d5a0fb7ac49777090fb8f20360a38c0af86d079875d971e03f30d3688c799e3b528
7
+ data.tar.gz: a9794f5bca35f544719e248ae742b887564e1c8201d7fa5c5c60f402491b06d77e8af8ec5e20096a47b924c67cf469a663aa3b4decb350d2434ba536bb0d1e02
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ tmp
21
21
  .yardoc
22
22
  _yardoc
23
23
  doc/
24
+ .internal_test_app
data/.travis.yml CHANGED
@@ -1,2 +1,22 @@
1
+ language: ruby
2
+ sudo: false
3
+
4
+ notifications:
5
+ email: false
6
+
1
7
  rvm:
2
- - 2.1.1
8
+ - 2.3.1
9
+
10
+ matrix:
11
+ include:
12
+ - rvm: 2.3.1
13
+ env: "RAILS_VERSION=4.2.7"
14
+
15
+ before_install:
16
+ - gem install bundler
17
+
18
+ env:
19
+ - "RAILS_VERSION=5.0.0"
20
+
21
+ global_env:
22
+ - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
data/Gemfile CHANGED
@@ -2,4 +2,39 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem "coveralls", require: false
5
+ gem "coveralls", require: false
6
+
7
+ # BEGIN ENGINE_CART BLOCK
8
+ # engine_cart: 0.10.0
9
+ # engine_cart stanza: 0.10.0
10
+ # the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app.
11
+ file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_app', File.dirname(__FILE__)))
12
+ if File.exist?(file)
13
+ begin
14
+ eval_gemfile file
15
+ rescue Bundler::GemfileError => e
16
+ Bundler.ui.warn '[EngineCart] Skipping Rails application dependencies:'
17
+ Bundler.ui.warn e.message
18
+ end
19
+ else
20
+ Bundler.ui.warn "[EngineCart] Unable to find test application dependencies in #{file}, using placeholder dependencies"
21
+
22
+ if ENV['RAILS_VERSION']
23
+ if ENV['RAILS_VERSION'] == 'edge'
24
+ gem 'rails', github: 'rails/rails'
25
+ ENV['ENGINE_CART_RAILS_OPTIONS'] = '--edge --skip-turbolinks'
26
+ else
27
+ gem 'rails', ENV['RAILS_VERSION']
28
+ end
29
+ end
30
+
31
+ case ENV['RAILS_VERSION']
32
+ when /^4.2/
33
+ gem 'responders', '~> 2.0'
34
+ gem 'sass-rails', '>= 5.0'
35
+ gem 'coffee-rails', '~> 4.1.0'
36
+ when /^4.[01]/
37
+ gem 'sass-rails', '< 5.0'
38
+ end
39
+ end
40
+ # END ENGINE_CART BLOCK
data/README.md CHANGED
@@ -51,4 +51,4 @@ end
51
51
 
52
52
  ## Tests
53
53
 
54
- `rake spec` runs the test suite.
54
+ `rake ci` runs the test suite.
data/Rakefile CHANGED
@@ -4,17 +4,14 @@ rescue LoadError
4
4
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
5
  end
6
6
 
7
- APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
8
- load 'rails/tasks/engine.rake'
9
-
10
7
  Bundler::GemHelper.install_tasks
11
8
 
12
- Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f }
9
+ task default: :ci
13
10
 
14
- require 'rspec/core'
15
11
  require 'rspec/core/rake_task'
12
+ RSpec::Core::RakeTask.new(:spec)
16
13
 
17
- desc "Run all specs in spec directory (excluding plugin specs)"
18
- RSpec::Core::RakeTask.new(:spec => ['app:db:migrate', 'app:db:test:prepare'])
14
+ require 'engine_cart/rake_task'
15
+ EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc
19
16
 
20
- task :default => :spec
17
+ task ci: ['engine_cart:generate', 'spec']
@@ -18,10 +18,10 @@ Gem::Specification.new do |s|
18
18
  s.test_files = Dir["spec/**/*"]
19
19
  s.extra_rdoc_files = ["LICENSE", "README.md"]
20
20
  s.require_paths = ["lib"]
21
- s.add_dependency "rails", ">= 3.2", "< 5.0"
22
21
  s.add_dependency "devise"
23
22
  s.add_development_dependency "sqlite3"
24
- s.add_development_dependency "rspec-rails", "~> 2.14.1"
23
+ s.add_development_dependency "rspec-rails", "~> 3.4"
25
24
  s.add_development_dependency "factory_girl_rails"
26
25
  s.add_development_dependency "capybara"
27
- end
26
+ s.add_development_dependency "engine_cart"
27
+ end
@@ -0,0 +1 @@
1
+ require 'devise_remote_user'
@@ -3,34 +3,32 @@ require 'devise_remote_user/engine'
3
3
  require 'devise_remote_user/controller_behavior'
4
4
 
5
5
  module DeviseRemoteUser
6
+ class << self
7
+ attr_accessor :env_key, :auto_create, :auto_update, :auth_key, :attribute_map, :logout_url
8
+ end
6
9
 
7
10
  # request.env key for remote user name
8
11
  # Set to 'HTTP_REMOTE_USER' in config/initializers/devise.rb if behind reverse proxy
9
- mattr_accessor :env_key
10
- @@env_key = 'REMOTE_USER'
11
-
12
+ self.env_key = 'REMOTE_USER'
13
+
12
14
  # Enable user auto-creation of user from remote user attributes
13
- mattr_accessor :auto_create
14
- @@auto_create = false
15
+ self.auto_create = false
15
16
 
16
17
  # Enable user auto-update of user attributes from remote user attributes
17
- mattr_accessor :auto_update
18
- @@auto_update = false
18
+ self.auto_update = false
19
19
 
20
20
  # User attribute used for lookup of remote user
21
21
  # Defaults to Devise.authentication_keys.first
22
- mattr_accessor :auth_key
23
- @@auth_key = nil
22
+ self.auth_key = nil
24
23
 
25
24
  # Map of User model attributes to request.env keys for updating a local user when auto-creation is enabled.
26
- mattr_accessor :attribute_map
27
- @@attribute_map = {}
25
+ self.attribute_map = {}
28
26
 
29
27
  # Settings for redirecting to the remote user logout URL
30
28
  # Enable by including DeviseRemoteUser::Controllers::Helpers in ApplicationController
31
29
  # (it overrides Devise's after_sign_out_path_for method).
32
- mattr_accessor :logout_url
33
- @@logout_url = '/'
30
+ self.logout_url = '/'
31
+
34
32
 
35
33
  def self.configure
36
34
  yield self
@@ -1,3 +1,3 @@
1
1
  module DeviseRemoteUser
2
- VERSION = '0.4.1'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe ApplicationController do
3
+ RSpec.describe ApplicationController, type: :controller do
4
4
 
5
5
  controller do
6
6
  def remote_user_name=(user_name)
@@ -21,7 +21,7 @@ describe ApplicationController do
21
21
  before { controller.remote_user_name = user.email }
22
22
  it "should login the remote user" do
23
23
  get :index
24
- expect(controller.user_signed_in?).to be_true
24
+ expect(controller.user_signed_in?).to eq true
25
25
  expect(controller.current_user).to eq(user)
26
26
  end
27
27
  end
@@ -30,7 +30,7 @@ describe ApplicationController do
30
30
  before { controller.remote_user_name = nil }
31
31
  it "should do nothing" do
32
32
  get :index
33
- expect(controller.user_signed_in?).to be_false
33
+ expect(controller.user_signed_in?).to eq false
34
34
  end
35
35
  end
36
36
 
@@ -43,18 +43,18 @@ describe ApplicationController do
43
43
  it "should create and sign in a new user" do
44
44
  get :index
45
45
  expect(response).to be_successful
46
- expect(controller.user_signed_in?).to be_true
46
+ expect(controller.user_signed_in?).to eq true
47
47
  expect(User.find_by_email(email)).to eq(controller.current_user)
48
48
  end
49
49
  end
50
50
 
51
51
  describe "and auto-creation is disabled" do
52
- before { allow(DeviseRemoteUser).to receive(:auto_create) { false } }
52
+ before { allow(DeviseRemoteUser).to receive(:auto_create).and_return(false) }
53
53
  it "should not create a user for the remote user" do
54
54
  get :index
55
- response.should_not be_successful
56
- controller.user_signed_in?.should be_false
57
- User.find_by_email(email).should be_nil
55
+ expect(response).to_not be_successful
56
+ expect(controller.user_signed_in?).to eq false
57
+ expect(User.find_by_email(email)).to be_nil
58
58
  end
59
59
  end
60
60
  end
@@ -62,7 +62,7 @@ describe ApplicationController do
62
62
  describe "when a local database user is already signed in" do
63
63
  let(:local_user) { FactoryGirl.create(:user) }
64
64
  before do
65
- allow(DeviseRemoteUser).to receive(:auto_create) { true }
65
+ allow(DeviseRemoteUser).to receive(:auto_create).and_return(true)
66
66
  controller.remote_user_name = remote_user.email
67
67
  sign_in local_user
68
68
  end
@@ -100,7 +100,7 @@ describe ApplicationController do
100
100
 
101
101
  describe "when auto-creation is disabled" do
102
102
  before do
103
- allow(DeviseRemoteUser).to receive(:auto_update) { false }
103
+ allow(DeviseRemoteUser).to receive(:auto_update).and_return(false)
104
104
  controller.remote_user_name = user.email
105
105
  controller.remote_user_attributes = {
106
106
  'givenName' => 'Fleece',
@@ -121,7 +121,7 @@ describe ApplicationController do
121
121
 
122
122
  describe "when auto-creation is enabled" do
123
123
  before do
124
- allow(DeviseRemoteUser).to receive(:auto_update) { true }
124
+ allow(DeviseRemoteUser).to receive(:auto_update).and_return(true)
125
125
  controller.remote_user_attributes = {
126
126
  'givenName' => 'Fleece',
127
127
  'sn' => 'Vest',
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe Devise::SessionsController do
3
+ RSpec.describe Devise::SessionsController, type: :controller do
4
4
  before { @request.env["devise.mapping"] = Devise.mappings[:user] }
5
5
  describe "logout" do
6
6
  let(:user) { FactoryGirl.create(:user) }
@@ -12,9 +12,8 @@ describe Devise::SessionsController do
12
12
  end
13
13
  describe "when user is not remotely authenticated" do
14
14
  it "should redirect to the root path (Devise default)" do
15
- expect(get :destroy).to redirect_to(root_path)
15
+ expect(get :destroy).to redirect_to('/')
16
16
  end
17
17
  end
18
18
  end
19
-
20
19
  end
data/spec/examples.txt ADDED
@@ -0,0 +1,15 @@
1
+ example_id | status | run_time |
2
+ -------------------------------------------------------------- | ------ | --------------- |
3
+ ./spec/controllers/application_controller_spec.rb[1:1:1:1] | passed | 0.01553 seconds |
4
+ ./spec/controllers/application_controller_spec.rb[1:1:2:1] | passed | 0.02204 seconds |
5
+ ./spec/controllers/application_controller_spec.rb[1:1:3:1:1] | passed | 0.01634 seconds |
6
+ ./spec/controllers/application_controller_spec.rb[1:1:3:2:1] | passed | 0.00825 seconds |
7
+ ./spec/controllers/application_controller_spec.rb[1:1:4:1:1] | passed | 0.02137 seconds |
8
+ ./spec/controllers/application_controller_spec.rb[1:1:4:2:1] | passed | 0.07335 seconds |
9
+ ./spec/controllers/application_controller_spec.rb[1:1:5:1:1] | passed | 0.01888 seconds |
10
+ ./spec/controllers/application_controller_spec.rb[1:1:5:2:1:1] | passed | 0.01406 seconds |
11
+ ./spec/controllers/application_controller_spec.rb[1:1:5:2:2:1] | passed | 0.01957 seconds |
12
+ ./spec/controllers/devise/sessions_controller_spec.rb[1:1:1:1] | passed | 0.00927 seconds |
13
+ ./spec/controllers/devise/sessions_controller_spec.rb[1:1:2:1] | passed | 0.00217 seconds |
14
+ ./spec/lib/devise_remote_user_spec.rb[1:1:1:1] | passed | 0.00054 seconds |
15
+ ./spec/lib/devise_remote_user_spec.rb[1:1:2:1] | passed | 0.00065 seconds |
@@ -1,11 +1,11 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe DeviseRemoteUser do
3
+ RSpec.describe DeviseRemoteUser do
4
4
  context ".remote_user_id" do
5
5
  let(:mock_env) { { 'REMOTE_USER' => 'some-id' } }
6
6
  context "with a string for the env_key" do
7
7
  before do
8
- DeviseRemoteUser.env_key = "REMOTE_USER"
8
+ allow(DeviseRemoteUser).to receive(:env_key).and_return("REMOTE_USER")
9
9
  end
10
10
 
11
11
  it "should retrieve the key from the env" do
@@ -15,7 +15,7 @@ describe DeviseRemoteUser do
15
15
 
16
16
  context "with a proc for the env_key" do
17
17
  before do
18
- DeviseRemoteUser.env_key = lambda { |env| "#{env['REMOTE_USER']}@example.com" }
18
+ allow(DeviseRemoteUser).to receive(:env_key).and_return lambda { |env| "#{env['REMOTE_USER']}@example.com" }
19
19
  end
20
20
 
21
21
  it "should retrieve the key from the env" do
data/spec/spec_helper.rb CHANGED
@@ -3,9 +3,10 @@ ENV['RAILS_ENV'] ||= 'test'
3
3
  require "coveralls"
4
4
  Coveralls.wear!("rails")
5
5
 
6
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
6
+ require 'engine_cart'
7
+ EngineCart.load_application!
8
+
7
9
  require 'rspec/rails'
8
- require 'rspec/autorun'
9
10
  require 'factory_girl_rails'
10
11
 
11
12
  Rails.backtrace_cleaner.remove_silencers!
@@ -14,11 +15,35 @@ Rails.backtrace_cleaner.remove_silencers!
14
15
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
15
16
 
16
17
  RSpec.configure do |config|
17
- config.mock_with :rspec
18
- config.use_transactional_fixtures = true
19
- config.infer_base_class_for_anonymous_controllers = false
20
- config.order = "random"
18
+ config.expect_with :rspec do |expectations|
19
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
20
+ end
21
+
22
+ config.mock_with :rspec do |mocks|
23
+ mocks.verify_partial_doubles = true
24
+ end
25
+
26
+ config.shared_context_metadata_behavior = :apply_to_host_groups
27
+
28
+ config.filter_run_when_matching :focus
29
+
30
+ config.example_status_persistence_file_path = "spec/examples.txt"
31
+
32
+ config.disable_monkey_patching!
33
+
34
+ config.default_formatter = 'doc' if config.files_to_run.one?
35
+
36
+ config.order = :random
37
+
38
+ Kernel.srand config.seed
21
39
 
22
- config.include Devise::TestHelpers, :type => :controller
23
- config.include Warden::Test::Helpers
40
+ if defined? Devise::Test::ControllerHelpers
41
+ config.include Devise::Test::ControllerHelpers, type: :controller
42
+ else
43
+ config.include Devise::TestHelpers, type: :controller
44
+ end
45
+ if Rails::VERSION::MAJOR >= 5
46
+ config.include ::Rails.application.routes.url_helpers
47
+ config.include ::Rails.application.routes.mounted_helpers
48
+ end
24
49
  end
@@ -0,0 +1,34 @@
1
+ require 'rails/generators'
2
+
3
+ class TestAppGenerator < Rails::Generators::Base
4
+ source_root '../spec/test_app_templates'
5
+
6
+ def add_devise
7
+ gem 'devise'
8
+ generate "devise:install"
9
+ generate "devise", "User"
10
+ rake 'db:migrate'
11
+ end
12
+
13
+ def add_devise_remote_user
14
+ insert_into_file("app/models/user.rb", after: /^\s*devise /) do
15
+ ":remote_user_authenticatable, "
16
+ end
17
+
18
+ insert_into_file("app/controllers/application_controller.rb", before: /end(\n| )*$/) do
19
+ "\n include DeviseRemoteUser::ControllerBehavior\n"
20
+ end
21
+ end
22
+
23
+ def add_test_action
24
+ insert_into_file("app/controllers/application_controller.rb", before: /end(\n| )*$/) do
25
+ "\n before_action :authenticate_user!\n" \
26
+ "\n def index; render plain: 'You have reached your destination!'; end\n"
27
+ end
28
+ end
29
+
30
+ def add_user_metadata_migrations
31
+ copy_file "20131101184256_add_name_fields_to_user.rb", "db/migrate/20131101184256_add_name_fields_to_user.rb"
32
+ rake 'db:migrate'
33
+ end
34
+ end
metadata CHANGED
@@ -1,103 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-remote-user
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chandek-Stark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-17 00:00:00.000000000 Z
11
+ date: 2016-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: devise
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '3.2'
20
- - - <
17
+ - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: '5.0'
19
+ version: '0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '3.2'
30
- - - <
31
- - !ruby/object:Gem::Version
32
- version: '5.0'
26
+ version: '0'
33
27
  - !ruby/object:Gem::Dependency
34
- name: devise
28
+ name: sqlite3
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - '>='
31
+ - - ">="
38
32
  - !ruby/object:Gem::Version
39
33
  version: '0'
40
- type: :runtime
34
+ type: :development
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
- - - '>='
38
+ - - ">="
45
39
  - !ruby/object:Gem::Version
46
40
  version: '0'
47
41
  - !ruby/object:Gem::Dependency
48
- name: sqlite3
42
+ name: rspec-rails
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
- - - '>='
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '0'
47
+ version: '3.4'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
- - - '>='
52
+ - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: '0'
54
+ version: '3.4'
61
55
  - !ruby/object:Gem::Dependency
62
- name: rspec-rails
56
+ name: factory_girl_rails
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
- - - ~>
59
+ - - ">="
66
60
  - !ruby/object:Gem::Version
67
- version: 2.14.1
61
+ version: '0'
68
62
  type: :development
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
- - - ~>
66
+ - - ">="
73
67
  - !ruby/object:Gem::Version
74
- version: 2.14.1
68
+ version: '0'
75
69
  - !ruby/object:Gem::Dependency
76
- name: factory_girl_rails
70
+ name: capybara
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - '>='
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
75
  version: '0'
82
76
  type: :development
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
- - - '>='
80
+ - - ">="
87
81
  - !ruby/object:Gem::Version
88
82
  version: '0'
89
83
  - !ruby/object:Gem::Dependency
90
- name: capybara
84
+ name: engine_cart
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
- - - '>='
87
+ - - ">="
94
88
  - !ruby/object:Gem::Version
95
89
  version: '0'
96
90
  type: :development
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
- - - '>='
94
+ - - ">="
101
95
  - !ruby/object:Gem::Version
102
96
  version: '0'
103
97
  description: A devise extension for remote user authentication.
@@ -109,15 +103,16 @@ extra_rdoc_files:
109
103
  - LICENSE
110
104
  - README.md
111
105
  files:
112
- - .gitignore
113
- - .rspec
114
- - .travis.yml
106
+ - ".gitignore"
107
+ - ".rspec"
108
+ - ".travis.yml"
115
109
  - CONTRIBUTING.md
116
110
  - Gemfile
117
111
  - LICENSE
118
112
  - README.md
119
113
  - Rakefile
120
- - devise_remote_user.gemspec
114
+ - devise-remote-user.gemspec
115
+ - lib/devise-remote-user.rb
121
116
  - lib/devise_remote_user.rb
122
117
  - lib/devise_remote_user/controller_behavior.rb
123
118
  - lib/devise_remote_user/engine.rb
@@ -126,70 +121,13 @@ files:
126
121
  - lib/devise_remote_user/strategy.rb
127
122
  - lib/devise_remote_user/version.rb
128
123
  - spec/controllers/application_controller_spec.rb
129
- - spec/controllers/application_controller_spec.rb~
130
124
  - spec/controllers/devise/sessions_controller_spec.rb
131
- - spec/controllers/devise/sessions_controller_spec.rb~
132
- - spec/dummy/README.rdoc
133
- - spec/dummy/Rakefile
134
- - spec/dummy/app/assets/images/.keep
135
- - spec/dummy/app/assets/javascripts/application.js
136
- - spec/dummy/app/assets/stylesheets/application.css
137
- - spec/dummy/app/controllers/application_controller.rb
138
- - spec/dummy/app/controllers/concerns/.keep
139
- - spec/dummy/app/helpers/application_helper.rb
140
- - spec/dummy/app/mailers/.keep
141
- - spec/dummy/app/models/.keep
142
- - spec/dummy/app/models/concerns/.keep
143
- - spec/dummy/app/models/user.rb
144
- - spec/dummy/app/models/user.rb~
145
- - spec/dummy/app/views/layouts/application.html.erb
146
- - spec/dummy/bin/bundle
147
- - spec/dummy/bin/rails
148
- - spec/dummy/bin/rake
149
- - spec/dummy/config.ru
150
- - spec/dummy/config/application.rb
151
- - spec/dummy/config/boot.rb
152
- - spec/dummy/config/database.yml
153
- - spec/dummy/config/environment.rb
154
- - spec/dummy/config/environments/development.rb
155
- - spec/dummy/config/environments/production.rb
156
- - spec/dummy/config/environments/test.rb
157
- - spec/dummy/config/initializers/backtrace_silencers.rb
158
- - spec/dummy/config/initializers/devise.rb
159
- - spec/dummy/config/initializers/filter_parameter_logging.rb
160
- - spec/dummy/config/initializers/inflections.rb
161
- - spec/dummy/config/initializers/mime_types.rb
162
- - spec/dummy/config/initializers/secret_token.rb
163
- - spec/dummy/config/initializers/session_store.rb
164
- - spec/dummy/config/initializers/wrap_parameters.rb
165
- - spec/dummy/config/locales/devise.en.yml
166
- - spec/dummy/config/locales/en.yml
167
- - spec/dummy/config/routes.rb
168
- - spec/dummy/db/development.sqlite3
169
- - spec/dummy/db/migrate/20131101150807_devise_create_users.rb
170
- - spec/dummy/db/migrate/20131101184256_add_name_fields_to_user.rb
171
- - spec/dummy/db/migrate/20131101184256_add_name_fields_to_user.rb~
172
- - spec/dummy/db/schema.rb
173
- - spec/dummy/db/test.sqlite3
174
- - spec/dummy/lib/assets/.keep
175
- - spec/dummy/log/.keep
176
- - spec/dummy/log/development.log
177
- - spec/dummy/log/test.log
178
- - spec/dummy/public/404.html
179
- - spec/dummy/public/422.html
180
- - spec/dummy/public/500.html
181
- - spec/dummy/public/favicon.ico
182
- - spec/dummy/spec/features/#logout_spec.rb#
183
- - spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
184
- - spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
185
- - spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
186
- - spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
187
- - spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
188
- - spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
125
+ - spec/examples.txt
189
126
  - spec/factories/user_factories.rb
190
- - spec/factories/user_factories.rb~
191
127
  - spec/lib/devise_remote_user_spec.rb
192
128
  - spec/spec_helper.rb
129
+ - spec/test_app_templates/20131101184256_add_name_fields_to_user.rb
130
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
193
131
  homepage: http://github.com/duke-libraries/devise-remote-user
194
132
  licenses:
195
133
  - BSD
@@ -200,76 +138,26 @@ require_paths:
200
138
  - lib
201
139
  required_ruby_version: !ruby/object:Gem::Requirement
202
140
  requirements:
203
- - - '>='
141
+ - - ">="
204
142
  - !ruby/object:Gem::Version
205
143
  version: '0'
206
144
  required_rubygems_version: !ruby/object:Gem::Requirement
207
145
  requirements:
208
- - - '>='
146
+ - - ">="
209
147
  - !ruby/object:Gem::Version
210
148
  version: '0'
211
149
  requirements: []
212
150
  rubyforge_project:
213
- rubygems_version: 2.2.2
151
+ rubygems_version: 2.5.1
214
152
  signing_key:
215
153
  specification_version: 4
216
154
  summary: A devise extension for remote user authentication.
217
155
  test_files:
218
156
  - spec/controllers/application_controller_spec.rb
219
- - spec/controllers/application_controller_spec.rb~
220
157
  - spec/controllers/devise/sessions_controller_spec.rb
221
- - spec/controllers/devise/sessions_controller_spec.rb~
222
- - spec/dummy/app/assets/javascripts/application.js
223
- - spec/dummy/app/assets/stylesheets/application.css
224
- - spec/dummy/app/controllers/application_controller.rb
225
- - spec/dummy/app/helpers/application_helper.rb
226
- - spec/dummy/app/models/user.rb
227
- - spec/dummy/app/models/user.rb~
228
- - spec/dummy/app/views/layouts/application.html.erb
229
- - spec/dummy/bin/bundle
230
- - spec/dummy/bin/rails
231
- - spec/dummy/bin/rake
232
- - spec/dummy/config/application.rb
233
- - spec/dummy/config/boot.rb
234
- - spec/dummy/config/database.yml
235
- - spec/dummy/config/environment.rb
236
- - spec/dummy/config/environments/development.rb
237
- - spec/dummy/config/environments/production.rb
238
- - spec/dummy/config/environments/test.rb
239
- - spec/dummy/config/initializers/backtrace_silencers.rb
240
- - spec/dummy/config/initializers/devise.rb
241
- - spec/dummy/config/initializers/filter_parameter_logging.rb
242
- - spec/dummy/config/initializers/inflections.rb
243
- - spec/dummy/config/initializers/mime_types.rb
244
- - spec/dummy/config/initializers/secret_token.rb
245
- - spec/dummy/config/initializers/session_store.rb
246
- - spec/dummy/config/initializers/wrap_parameters.rb
247
- - spec/dummy/config/locales/devise.en.yml
248
- - spec/dummy/config/locales/en.yml
249
- - spec/dummy/config/routes.rb
250
- - spec/dummy/config.ru
251
- - spec/dummy/db/development.sqlite3
252
- - spec/dummy/db/migrate/20131101150807_devise_create_users.rb
253
- - spec/dummy/db/migrate/20131101184256_add_name_fields_to_user.rb
254
- - spec/dummy/db/migrate/20131101184256_add_name_fields_to_user.rb~
255
- - spec/dummy/db/schema.rb
256
- - spec/dummy/db/test.sqlite3
257
- - spec/dummy/log/development.log
258
- - spec/dummy/log/test.log
259
- - spec/dummy/public/404.html
260
- - spec/dummy/public/422.html
261
- - spec/dummy/public/500.html
262
- - spec/dummy/public/favicon.ico
263
- - spec/dummy/Rakefile
264
- - spec/dummy/README.rdoc
265
- - spec/dummy/spec/features/#logout_spec.rb#
266
- - spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
267
- - spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
268
- - spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
269
- - spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
270
- - spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
271
- - spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
158
+ - spec/examples.txt
272
159
  - spec/factories/user_factories.rb
273
- - spec/factories/user_factories.rb~
274
160
  - spec/lib/devise_remote_user_spec.rb
275
161
  - spec/spec_helper.rb
162
+ - spec/test_app_templates/20131101184256_add_name_fields_to_user.rb
163
+ - spec/test_app_templates/lib/generators/test_app_generator.rb