spree_auth_devise 3.3.3 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spree_auth_devise might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e902c04485979a2fa5edef1ee2030009f72b7bdd
4
- data.tar.gz: 1693dcc6df3d9d607141148bdf046d12d94e1486
3
+ metadata.gz: 72b63b113f23fe2ff681bffdd430e616de92a4da
4
+ data.tar.gz: 253e30bae89b04b54f15ea8bdf3bc1f48140b1cf
5
5
  SHA512:
6
- metadata.gz: 62a8aa9e430c10648caa3ad8f0fc67ca7c34c2b5c5750004cbabf2fbaad9ded6d0c57f69d3ed2bcd1bbbf10c3a8011de9b9d1ac4631debe77a8ff66e17948ed4
7
- data.tar.gz: 19dab7108baddae24a3d3f4acba1c0d5d07ae3f339a9b4e44eebe3bf03e0d403e4c588df0b47d5e58e70ac5ac20899a15a8c9f2403b31cafae1b1e1e225d976a
6
+ metadata.gz: 78c9dd93e1af15d08a44ce4a0ad8b09f5e592fc1a7d6c7468883b2db908c7d7f3f68636899d265fc4da7ec49728b9801d739fb74561aadb1f669d4f73ccd1d9a
7
+ data.tar.gz: 5c295a34dbe244c6688bc5a37e4116c3fe64adaa54e17cc6a309261f486c5de23853de96b750edad8533134053fccc0007044627ef3ff747fec754a394df584a
data/.travis.yml CHANGED
@@ -5,6 +5,9 @@ script:
5
5
  - bundle exec rake test_app
6
6
  - bundle exec rake spec
7
7
 
8
+ addons:
9
+ chrome: stable
10
+
8
11
  env:
9
12
  - DB=mysql
10
13
  - DB=postgres
@@ -12,13 +15,14 @@ env:
12
15
  language: ruby
13
16
 
14
17
  rvm:
15
- - 2.4.2
16
- - 2.3.1
17
- - 2.2.7
18
+ - 2.5.1
19
+ - 2.4.4
20
+ - 2.3.7
18
21
 
19
22
  gemfile:
20
- - gemfiles/spree_3_1.gemfile
21
23
  - gemfiles/spree_3_2.gemfile
24
+ - gemfiles/spree_3_5.gemfile
25
+ - gemfiles/spree_3_6.gemfile
22
26
  - gemfiles/spree_master.gemfile
23
27
 
24
28
  matrix:
@@ -27,3 +31,9 @@ matrix:
27
31
 
28
32
  before_install:
29
33
  - mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"
34
+ - wget -N https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip -P ~/
35
+ - unzip ~/chromedriver_linux64.zip -d ~/
36
+ - rm ~/chromedriver_linux64.zip
37
+ - sudo mv -f ~/chromedriver /usr/local/share/
38
+ - sudo chmod +x /usr/local/share/chromedriver
39
+ - sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
data/Appraisals CHANGED
@@ -1,12 +1,18 @@
1
- appraise 'spree-3-1' do
2
- gem 'spree', '~> 3.1.0'
3
- end
4
-
5
1
  appraise 'spree-3-2' do
6
2
  gem 'spree', '~> 3.2.0'
7
3
  gem 'rails-controller-testing'
8
4
  end
9
5
 
6
+ appraise 'spree-3-5' do
7
+ gem 'spree', '~> 3.5.0'
8
+ gem 'rails-controller-testing'
9
+ end
10
+
11
+ appraise 'spree-3-6' do
12
+ gem 'spree', '~> 3.6.0'
13
+ gem 'rails-controller-testing'
14
+ end
15
+
10
16
  appraise 'spree-master' do
11
17
  gem 'spree', github: 'spree/spree', branch: 'master'
12
18
  gem 'rails-controller-testing'
data/README.md CHANGED
@@ -115,6 +115,14 @@ Inside of your host application you can then use CanCan like you normally would.
115
115
 
116
116
  This methodology can also be used by gems that extend spree and want/need to add permissions.
117
117
 
118
+ ### Ruby 2.5 issues
119
+
120
+ If you encounter issues when using Ruby 2.5, please run:
121
+
122
+ ```
123
+ bundle update devise
124
+ ```
125
+
118
126
  ## Testing
119
127
 
120
128
  You need to do a quick one-time creation of a test application and then you can use it to run the tests.
@@ -1,6 +1,10 @@
1
1
  # For the API
2
2
  ActionController::Metal.class_eval do
3
3
  def spree_current_user
4
- @spree_current_user ||= env['warden'].user
4
+ @spree_current_user ||= if defined? env
5
+ env['warden'].user
6
+ else
7
+ request.env['warden'].user
8
+ end
5
9
  end
6
10
  end
@@ -3,5 +3,6 @@ module Spree
3
3
  preference :registration_step, :boolean, default: true
4
4
  preference :signout_after_password_change, :boolean, default: true
5
5
  preference :confirmable, :boolean, default: false
6
+ preference :validatable, :boolean, default: true
6
7
  end
7
8
  end
@@ -5,8 +5,9 @@ module Spree
5
5
  include UserPaymentSource
6
6
 
7
7
  devise :database_authenticatable, :registerable, :recoverable,
8
- :rememberable, :trackable, :validatable, :encryptable, encryptor: 'authlogic_sha512'
8
+ :rememberable, :trackable, :encryptable, encryptor: 'authlogic_sha512'
9
9
  devise :confirmable if Spree::Auth::Config[:confirmable]
10
+ devise :validatable if Spree::Auth::Config[:validatable]
10
11
 
11
12
  acts_as_paranoid
12
13
  after_destroy :scramble_email_and_password
@@ -1,14 +1,20 @@
1
1
  # Merges users orders to their account after sign in and sign up.
2
2
  Warden::Manager.after_set_user except: :fetch do |user, auth, _opts|
3
- if auth.cookies.signed[:guest_token].present?
4
- if user.is_a?(Spree::User)
5
- Spree::Order.incomplete.where(guest_token: auth.cookies.signed[:guest_token], user_id: nil).each do |order|
6
- order.associate_user!(user)
7
- end
3
+ guest_token = auth.cookies.signed[:guest_token]
4
+ token = auth.cookies.signed[:token]
5
+
6
+ if token.present? && user.is_a?(Spree::User)
7
+ Spree::Order.incomplete.where(token: token, user_id: nil).each do |order|
8
+ order.associate_user!(user)
9
+ end
10
+ elsif guest_token.present? && user.is_a?(Spree::User)
11
+ Spree::Order.incomplete.where(guest_token: guest_token, user_id: nil).each do |order|
12
+ order.associate_user!(user)
8
13
  end
9
14
  end
10
15
  end
11
16
 
12
17
  Warden::Manager.before_logout do |_user, auth, _opts|
13
- auth.cookies.delete :guest_token
18
+ auth.cookies.delete(:guest_token)
19
+ auth.cookies.delete(:token)
14
20
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "spree", "~> 3.2.0"
6
5
  gem "rails-controller-testing"
6
+ gem "spree", "~> 3.2.0"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails-controller-testing"
6
+ gem "spree", "~> 3.5.0"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails-controller-testing"
6
+ gem "spree", "~> 3.6.0"
7
+
8
+ gemspec path: "../"
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "spree", :github => "spree/spree", :branch => "master"
6
5
  gem "rails-controller-testing"
6
+ gem "spree", github: "spree/spree", branch: "master"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -28,7 +28,11 @@ class Spree::Admin::UserSessionsController < Devise::SessionsController
28
28
  end
29
29
  end
30
30
 
31
- def authorization_failure; end
31
+ def authorization_failure
32
+ return if try_spree_current_user
33
+ store_location
34
+ return redirect_to spree.admin_login_path
35
+ end
32
36
 
33
37
  protected
34
38
 
@@ -9,7 +9,7 @@ Spree::CheckoutController.class_eval do
9
9
 
10
10
  def update_registration
11
11
  if order_params[:email] =~ Devise.email_regexp && current_order.update_attribute(:email, order_params[:email])
12
- redirect_to spree.checkout_path
12
+ redirect_to spree.checkout_state_path(:address)
13
13
  else
14
14
  flash[:error] = t(:email_is_invalid, scope: [:errors, :messages])
15
15
  @user = Spree::User.new
@@ -5,16 +5,13 @@
5
5
  <h3 class="panel-title"><%= Spree.t(:login_as_existing) %></h3>
6
6
  </div>
7
7
  <div id="existing-customer" class="panel-body" data-hook="login">
8
- <% if flash[:alert] %>
9
- <div class="alert alert-danger"><%= flash[:alert] %></div>
10
- <% end %>
11
8
  <%= render :partial => 'spree/shared/login' %>
12
9
  <div class="text-center">
13
- <%= Spree.t(:or) %>
10
+ <%= Spree.t(:or) %>
14
11
  <%= link_to Spree.t(:create_a_new_account), spree.signup_path %> |
15
12
  <%= link_to Spree.t(:forgot_password), spree.recover_password_path %>
16
13
  </div>
17
14
  <div data-hook="login_extras"></div>
18
15
  </div>
19
16
  </div>
20
- </div>
17
+ </div>
@@ -0,0 +1,17 @@
1
+ RSpec.describe Spree::Admin::UserSessionsController, type: :controller do
2
+ before { @request.env['devise.mapping'] = Devise.mappings[:spree_user] }
3
+
4
+ describe '#authorization_failure' do
5
+ subject { spree_get :authorization_failure }
6
+
7
+ context 'user signed in' do
8
+ before { allow(controller).to receive(:spree_current_user) { build_stubbed(:user) } }
9
+
10
+ it { is_expected.to render_template 'authorization_failure' }
11
+ end
12
+
13
+ context 'user not signed in' do
14
+ it { is_expected.to redirect_to spree.admin_login_path }
15
+ end
16
+ end
17
+ end
@@ -127,7 +127,7 @@ RSpec.describe Spree::CheckoutController, type: :controller do
127
127
  allow(order).to receive(:update_attributes) { true }
128
128
  allow(controller).to receive(:check_authorization)
129
129
  spree_put :update_registration, { order: { email: 'jobs@spreecommerce.com' } }
130
- expect(response).to redirect_to spree.checkout_path
130
+ expect(response).to redirect_to spree.checkout_state_path(:address)
131
131
  end
132
132
 
133
133
  it 'checks if the user is authorized for :edit' do
@@ -1,20 +1,31 @@
1
1
  RSpec.describe Spree::ProductsController, type: :controller do
2
2
  let!(:product) { create(:product, available_on: 1.year.from_now) }
3
- let!(:user) { build(:user, spree_api_key: 'fake') }
3
+ let!(:user) { build_stubbed(:user, spree_api_key: 'fake') }
4
4
 
5
- it 'allows admins to view non-active products' do
5
+ subject(:request) { spree_get :show, id: product.to_param }
6
+
7
+ before do
6
8
  allow(controller).to receive(:before_save_new_order)
7
9
  allow(controller).to receive(:spree_current_user) { user }
10
+ end
11
+
12
+ it 'allows admins to view non-active products' do
8
13
  allow(user).to receive(:has_spree_role?) { true }
9
- spree_get :show, id: product.to_param
14
+
15
+ request
10
16
  expect(response.status).to eq(200)
11
17
  end
12
18
 
13
19
  it 'cannot view non-active products' do
14
- allow(controller).to receive(:before_save_new_order)
15
- allow(controller).to receive(:spree_current_user) { user }
16
20
  allow(user).to receive(:has_spree_role?) { false }
17
- spree_get :show, id: product.to_param
18
- expect(response.status).to eq(404)
21
+
22
+ # this behaviour was introduced in rails 5.1 & Spree 3.5
23
+ # https://github.com/spree/spree/commit/acf52960f5b9582cdfe01f0cb563766b44aabbd5
24
+ if Spree.version.to_f > 3.4
25
+ expect { request }.to raise_error(ActiveRecord::RecordNotFound)
26
+ else
27
+ request
28
+ expect(response.status).to eq(404)
29
+ end
19
30
  end
20
31
  end
@@ -5,6 +5,58 @@ RSpec.describe Spree::UserSessionsController, type: :controller do
5
5
 
6
6
  context "#create" do
7
7
  context "using correct login information" do
8
+ if Gem.loaded_specs['spree_core'].version >= Gem::Version.create('3.7.0')
9
+ #regression tests for https://github.com/spree/spree_auth_devise/pull/438
10
+ context 'with a token present' do
11
+ before do
12
+ request.cookie_jar.signed[:token] = 'ABC'
13
+ end
14
+
15
+ it 'assigns orders with the correct token and no user present' do
16
+ order = create(:order, email: user.email, token: 'ABC', user_id: nil, created_by_id: nil)
17
+ spree_post :create, spree_user: { email: user.email, password: 'secret' }
18
+
19
+ order.reload
20
+ expect(order.user_id).to eq user.id
21
+ expect(order.created_by_id).to eq user.id
22
+ end
23
+
24
+ it 'assigns orders with the correct token and no user or email present' do
25
+ order = create(:order, token: 'ABC', user_id: nil, created_by_id: nil)
26
+ spree_post :create, spree_user: { email: user.email, password: 'secret' }
27
+
28
+ order.reload
29
+ expect(order.user_id).to eq user.id
30
+ expect(order.created_by_id).to eq user.id
31
+ end
32
+
33
+ it 'does not assign completed orders' do
34
+ order = create(:order, email: user.email, token: 'ABC',
35
+ user_id: nil, created_by_id: nil,
36
+ completed_at: 1.minute.ago)
37
+ spree_post :create, spree_user: { email: user.email, password: 'secret' }
38
+
39
+ order.reload
40
+ expect(order.user_id).to be_nil
41
+ expect(order.created_by_id).to be_nil
42
+ end
43
+
44
+ it 'does not assign orders with an existing user' do
45
+ order = create(:order, token: 'ABC', user_id: 200)
46
+ spree_post :create, spree_user: { email: user.email, password: 'secret' }
47
+
48
+ expect(order.reload.user_id).to eq 200
49
+ end
50
+
51
+ it 'does not assign orders with a different token' do
52
+ order = create(:order, token: 'DEF', user_id: nil, created_by_id: nil)
53
+ spree_post :create, spree_user: { email: user.email, password: 'secret' }
54
+
55
+ expect(order.reload.user_id).to be_nil
56
+ end
57
+ end
58
+ end
59
+
8
60
  context 'with a guest token present' do
9
61
  before do
10
62
  request.cookie_jar.signed[:guest_token] = 'ABC'
@@ -1,6 +1,10 @@
1
1
  RSpec.feature 'Accounts', type: :feature do
2
- context 'editing' do
3
- scenario 'can edit an admin user', js: true do
2
+ describe 'editing', js: true do
3
+ before do
4
+ allow_bypass_sign_in
5
+ end
6
+
7
+ scenario 'can edit an admin user' do
4
8
  user = create(:admin_user, email: 'admin@person.com', password: 'password', password_confirmation: 'password')
5
9
  visit spree.login_path
6
10
 
@@ -12,8 +16,7 @@ RSpec.feature 'Accounts', type: :feature do
12
16
  expect(page).to have_text 'admin@person.com'
13
17
  end
14
18
 
15
- scenario 'can edit a new user', js: true do
16
- Spree::Auth::Config.set(signout_after_password_change: false)
19
+ scenario 'can edit a new user' do
17
20
  visit spree.signup_path
18
21
 
19
22
  fill_in 'Email', with: 'email@person.com'
@@ -33,8 +36,7 @@ RSpec.feature 'Accounts', type: :feature do
33
36
  expect(page).to have_text 'Account updated'
34
37
  end
35
38
 
36
- scenario 'can edit an existing user account', js: true do
37
- Spree::Auth::Config.set(signout_after_password_change: false)
39
+ scenario 'can edit an existing user account' do
38
40
  user = create(:user, email: 'email@person.com', password: 'secret', password_confirmation: 'secret')
39
41
  visit spree.login_path
40
42
 
@@ -1,6 +1,8 @@
1
1
  RSpec.feature 'Change email', type: :feature do
2
2
  background do
3
- user = create(:user)
3
+ allow_bypass_sign_in
4
+
5
+ user = create(:user, email: 'old@spree.com', password: 'secret')
4
6
  visit spree.root_path
5
7
  click_link 'Login'
6
8
 
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- feature 'Confirmation' do
3
+ RSpec.feature 'Confirmation', type: :feature, reload_user: true do
4
4
  before do
5
5
  set_confirmable_option(true)
6
6
  Spree::UserMailer.stub(:confirmation_instructions).and_return(double(deliver: true))
@@ -1,6 +1,6 @@
1
- RSpec.feature 'Sign Out', type: :feature do
1
+ RSpec.feature 'Sign Out', type: :feature, js: true do
2
2
  given!(:user) do
3
- create(:user,
3
+ create(:user,
4
4
  email: 'email@person.com',
5
5
  password: 'secret',
6
6
  password_confirmation: 'secret')
@@ -15,10 +15,42 @@ RSpec.feature 'Sign Out', type: :feature do
15
15
  click_button 'Login'
16
16
  end
17
17
 
18
- scenario 'allow a signed in user to logout', js: true do
18
+ scenario 'allow a signed in user to logout' do
19
19
  click_link 'Logout'
20
20
  visit spree.root_path
21
21
  expect(page).to have_text 'Login'
22
22
  expect(page).not_to have_text 'Logout'
23
23
  end
24
+
25
+ describe 'before_logout' do
26
+ before do
27
+ create(:product, name: 'RoR Mug')
28
+ create(:product, name: 'RoR Shirt')
29
+ end
30
+
31
+ let!(:other_user) { create(:user) }
32
+
33
+ it 'clears token cookies' do
34
+ visit spree.root_path
35
+
36
+ click_link 'RoR Mug'
37
+ click_button 'Add To Cart'
38
+
39
+ click_link 'Cart'
40
+ expect(page).to have_text 'RoR Mug'
41
+
42
+ click_link 'Logout'
43
+
44
+ click_link 'Cart'
45
+ expect(page).to have_text Spree.t(:your_cart_is_empty)
46
+
47
+ visit spree.login_path
48
+ fill_in 'Email', with: other_user.email
49
+ fill_in 'Password', with: other_user.password
50
+ click_button 'Login'
51
+
52
+ click_link 'Cart'
53
+ expect(page).to have_text Spree.t(:your_cart_is_empty)
54
+ end
55
+ end
24
56
  end
@@ -63,7 +63,7 @@ RSpec.describe Spree::User, type: :model do
63
63
  end
64
64
  end
65
65
 
66
- describe "confirmable" do
66
+ describe "confirmable", reload_user: true do
67
67
  it "is confirmable if the confirmable option is enabled" do
68
68
  set_confirmable_option(true)
69
69
  Spree::UserMailer.stub(:confirmation_instructions).and_return(double(deliver: true))
data/spec/spec_helper.rb CHANGED
@@ -19,6 +19,9 @@ RSpec.configure do |config|
19
19
  config.mock_with :rspec do |mock|
20
20
  mock.syntax = [:should, :expect]
21
21
  end
22
+
23
+ config.order = :random
24
+ Kernel.srand(config.seed)
22
25
  end
23
26
 
24
27
  Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
@@ -0,0 +1,5 @@
1
+ RSpec.configure do |config|
2
+ config.before do
3
+ Rails.cache.clear
4
+ end
5
+ end
@@ -1,9 +1,16 @@
1
1
  require 'capybara/rspec'
2
2
  require 'capybara/rails'
3
- require 'capybara/poltergeist'
4
3
  require 'capybara-screenshot/rspec'
4
+ require 'selenium-webdriver'
5
5
 
6
6
  RSpec.configure do |_config|
7
- Capybara.javascript_driver = :poltergeist
8
7
  Capybara.save_and_open_page_path = ENV['CIRCLE_ARTIFACTS'] if ENV['CIRCLE_ARTIFACTS']
8
+
9
+ Capybara.register_driver :chrome do |app|
10
+ Capybara::Selenium::Driver.new app,
11
+ browser: :chrome,
12
+ options: Selenium::WebDriver::Chrome::Options.new(args: %w[disable-popup-blocking headless disable-gpu window-size=1920,1080])
13
+ end
14
+
15
+ Capybara.javascript_driver = :chrome
9
16
  end
@@ -0,0 +1,9 @@
1
+ module ConfigurationHelpers
2
+ def allow_bypass_sign_in
3
+ Spree::Auth::Config.set(signout_after_password_change: false)
4
+ end
5
+ end
6
+
7
+ RSpec.configure do |config|
8
+ config.include ConfigurationHelpers
9
+ end
@@ -0,0 +1,11 @@
1
+ RSpec.configure do |config|
2
+ # allows to keep user const after reload
3
+ config.around :each, :reload_user do |example|
4
+ old_user = Spree::User
5
+
6
+ example.run
7
+
8
+ Spree.send(:remove_const, 'User')
9
+ Spree.const_set('User', old_user)
10
+ end
11
+ end
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |s|
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.name = 'spree_auth_devise'
6
- s.version = '3.3.3'
6
+ s.version = '3.4.0'
7
7
  s.summary = 'Provides authentication and authorization services for use with Spree by using Devise and CanCan.'
8
8
  s.description = s.summary
9
9
 
@@ -34,9 +34,9 @@ Gem::Specification.new do |s|
34
34
  s.add_development_dependency 'factory_bot', '~> 4.7'
35
35
  s.add_development_dependency 'ffaker'
36
36
  s.add_development_dependency 'launchy'
37
- s.add_development_dependency 'mysql2'
37
+ s.add_development_dependency 'mysql2', '~> 0.5.1'
38
38
  s.add_development_dependency 'pg', '~> 0.18'
39
- s.add_development_dependency 'poltergeist', '~> 1.6'
39
+ s.add_development_dependency 'selenium-webdriver'
40
40
  s.add_development_dependency 'pry'
41
41
  s.add_development_dependency 'rspec-rails', '~> 3.5'
42
42
  s.add_development_dependency 'shoulda-matchers', '~> 3.1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_auth_devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2018-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -188,16 +188,16 @@ dependencies:
188
188
  name: mysql2
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
- - - ">="
191
+ - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: '0'
193
+ version: 0.5.1
194
194
  type: :development
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
- - - ">="
198
+ - - "~>"
199
199
  - !ruby/object:Gem::Version
200
- version: '0'
200
+ version: 0.5.1
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: pg
203
203
  requirement: !ruby/object:Gem::Requirement
@@ -213,19 +213,19 @@ dependencies:
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0.18'
215
215
  - !ruby/object:Gem::Dependency
216
- name: poltergeist
216
+ name: selenium-webdriver
217
217
  requirement: !ruby/object:Gem::Requirement
218
218
  requirements:
219
- - - "~>"
219
+ - - ">="
220
220
  - !ruby/object:Gem::Version
221
- version: '1.6'
221
+ version: '0'
222
222
  type: :development
223
223
  prerelease: false
224
224
  version_requirements: !ruby/object:Gem::Requirement
225
225
  requirements:
226
- - - "~>"
226
+ - - ">="
227
227
  - !ruby/object:Gem::Version
228
- version: '1.6'
228
+ version: '0'
229
229
  - !ruby/object:Gem::Dependency
230
230
  name: pry
231
231
  requirement: !ruby/object:Gem::Requirement
@@ -397,8 +397,9 @@ files:
397
397
  - db/migrate/20141002154641_add_confirmable_to_users.rb
398
398
  - db/migrate/20150416152553_add_missing_indices_on_user.rb
399
399
  - db/seeds.rb
400
- - gemfiles/spree_3_1.gemfile
401
400
  - gemfiles/spree_3_2.gemfile
401
+ - gemfiles/spree_3_5.gemfile
402
+ - gemfiles/spree_3_6.gemfile
402
403
  - gemfiles/spree_master.gemfile
403
404
  - lib/assets/javascripts/spree/backend/spree_auth.js.erb
404
405
  - lib/assets/javascripts/spree/frontend/account.js
@@ -448,6 +449,7 @@ files:
448
449
  - lib/views/frontend/spree/users/edit.html.erb
449
450
  - lib/views/frontend/spree/users/show.html.erb
450
451
  - spec/controllers/spree/admin/orders_controller_spec.rb
452
+ - spec/controllers/spree/admin/user_sessions_controller_spec.rb
451
453
  - spec/controllers/spree/checkout_controller_spec.rb
452
454
  - spec/controllers/spree/products_controller_spec.rb
453
455
  - spec/controllers/spree/user_passwords_controller_spec.rb
@@ -476,12 +478,15 @@ files:
476
478
  - spec/spec_helper.rb
477
479
  - spec/support/ability.rb
478
480
  - spec/support/authentication_helpers.rb
481
+ - spec/support/cache_helpers.rb
479
482
  - spec/support/capybara.rb
483
+ - spec/support/configuration_helpers.rb
480
484
  - spec/support/confirm_helpers.rb
481
485
  - spec/support/database_cleaner.rb
482
486
  - spec/support/email.rb
483
487
  - spec/support/factory_girl.rb
484
488
  - spec/support/spree.rb
489
+ - spec/support/user_helper.rb
485
490
  - spree_auth_devise.gemspec
486
491
  homepage: https://spreecommerce.org
487
492
  licenses:
@@ -511,6 +516,7 @@ summary: Provides authentication and authorization services for use with Spree b
511
516
  using Devise and CanCan.
512
517
  test_files:
513
518
  - spec/controllers/spree/admin/orders_controller_spec.rb
519
+ - spec/controllers/spree/admin/user_sessions_controller_spec.rb
514
520
  - spec/controllers/spree/checkout_controller_spec.rb
515
521
  - spec/controllers/spree/products_controller_spec.rb
516
522
  - spec/controllers/spree/user_passwords_controller_spec.rb
@@ -539,9 +545,12 @@ test_files:
539
545
  - spec/spec_helper.rb
540
546
  - spec/support/ability.rb
541
547
  - spec/support/authentication_helpers.rb
548
+ - spec/support/cache_helpers.rb
542
549
  - spec/support/capybara.rb
550
+ - spec/support/configuration_helpers.rb
543
551
  - spec/support/confirm_helpers.rb
544
552
  - spec/support/database_cleaner.rb
545
553
  - spec/support/email.rb
546
554
  - spec/support/factory_girl.rb
547
555
  - spec/support/spree.rb
556
+ - spec/support/user_helper.rb
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "spree", "~> 3.1.0"
6
-
7
- gemspec :path => "../"