spree_auth_devise 1.3.1 → 3.0.5
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 +7 -0
- data/.gitignore +10 -0
- data/.rspec +3 -0
- data/.travis.yml +11 -0
- data/Gemfile +5 -0
- data/{LICENSE → LICENSE.md} +1 -1
- data/README.md +86 -10
- data/Rakefile +15 -0
- data/Versionfile +5 -0
- data/app/controllers/metal_decorator.rb +6 -0
- data/app/mailers/spree/user_mailer.rb +12 -5
- data/app/models/spree/auth_configuration.rb +1 -0
- data/app/models/spree/user.rb +17 -50
- data/app/overrides/spree/admin/shared/_header/auth_admin_login_navigation_bar.html.erb.deface +4 -0
- data/bin/rails +7 -0
- data/circle.yml +11 -0
- data/config.ru +4 -0
- data/config/initializers/devise.rb +3 -8
- data/config/initializers/warden.rb +14 -0
- data/config/locales/de.yml +40 -37
- data/config/locales/en.yml +48 -39
- data/config/locales/es.yml +49 -0
- data/config/locales/fr.yml +49 -0
- data/config/locales/it.yml +76 -0
- data/config/locales/nl.yml +41 -46
- data/config/locales/pt-BR.yml +51 -0
- data/config/locales/tr.yml +49 -0
- data/config/routes.rb +32 -15
- data/db/default/users.rb +13 -6
- data/db/migrate/20140904000425_add_deleted_at_to_users.rb +6 -0
- data/db/migrate/20141002154641_add_confirmable_to_users.rb +7 -0
- data/lib/assets/javascripts/spree/backend/spree_auth.js.erb +1 -0
- data/lib/assets/javascripts/spree/frontend/spree_auth.js.erb +1 -0
- data/lib/assets/stylesheets/spree/backend/spree_auth.css.erb +3 -0
- data/lib/assets/stylesheets/spree/frontend/spree_auth.css.erb +3 -0
- data/lib/controllers/backend/spree/admin/admin_controller_decorator.rb +26 -0
- data/lib/controllers/backend/spree/admin/admin_orders_controller_decorator.rb +20 -0
- data/{app/controllers → lib/controllers/backend}/spree/admin/admin_resource_controller_decorator.rb +0 -0
- data/{app/controllers/spree/admin/admin_orders_controller_decorator.rb → lib/controllers/backend/spree/admin/orders/customer_details_controller_decorator.rb} +3 -2
- data/lib/controllers/backend/spree/admin/user_passwords_controller.rb +42 -0
- data/lib/controllers/backend/spree/admin/user_sessions_controller.rb +53 -0
- data/{app/controllers → lib/controllers/frontend}/spree/checkout_controller_decorator.rb +8 -15
- data/lib/controllers/frontend/spree/user_confirmations_controller.rb +14 -0
- data/{app/controllers → lib/controllers/frontend}/spree/user_passwords_controller.rb +10 -9
- data/{app/controllers → lib/controllers/frontend}/spree/user_registrations_controller.rb +18 -15
- data/lib/controllers/frontend/spree/user_sessions_controller.rb +46 -0
- data/{app/controllers → lib/controllers/frontend}/spree/users_controller.rb +13 -9
- data/lib/generators/spree/auth/install/install_generator.rb +26 -0
- data/lib/generators/spree/auth/install/templates/config/initializers/devise.rb +1 -0
- data/lib/spree/auth.rb +2 -1
- data/lib/spree/auth/devise.rb +7 -0
- data/lib/spree/auth/engine.rb +57 -2
- data/lib/spree/authentication_helpers.rb +1 -1
- data/lib/spree_auth_devise.rb +3 -0
- data/lib/views/backend/spree/admin/user_passwords/edit.html.erb +15 -0
- data/lib/views/backend/spree/admin/user_passwords/new.html.erb +17 -0
- data/lib/views/backend/spree/admin/user_sessions/authorization_failure.html.erb +4 -0
- data/lib/views/backend/spree/admin/user_sessions/new.html.erb +38 -0
- data/lib/views/backend/spree/layouts/admin/_login_nav.html.erb +33 -0
- data/lib/views/backend/spree/layouts/login.html.erb +25 -0
- data/lib/views/frontend/spree/checkout/_new_user.html.erb +20 -0
- data/lib/views/frontend/spree/checkout/registration.html.erb +27 -0
- data/{app/views → lib/views/frontend}/spree/shared/_flashes.html.erb +0 -0
- data/lib/views/frontend/spree/shared/_login.html.erb +18 -0
- data/lib/views/frontend/spree/shared/_login_bar.html.erb +6 -0
- data/lib/views/frontend/spree/shared/_user_form.html.erb +13 -0
- data/lib/views/frontend/spree/user_mailer/confirmation_instructions.text.erb +5 -0
- data/lib/views/frontend/spree/user_mailer/reset_password_instructions.text.erb +10 -0
- data/lib/views/frontend/spree/user_passwords/edit.html.erb +22 -0
- data/lib/views/frontend/spree/user_passwords/new.html.erb +21 -0
- data/lib/views/frontend/spree/user_registrations/new.html.erb +22 -0
- data/lib/views/frontend/spree/user_sessions/new.html.erb +20 -0
- data/lib/views/frontend/spree/users/edit.html.erb +17 -0
- data/lib/views/frontend/spree/users/show.html.erb +43 -0
- data/spec/controllers/spree/admin/orders_controller_spec.rb +14 -0
- data/spec/controllers/spree/checkout_controller_spec.rb +141 -0
- data/spec/controllers/spree/products_controller_spec.rb +21 -0
- data/spec/controllers/spree/user_passwords_controller_spec.rb +44 -0
- data/spec/controllers/spree/user_registrations_controller_spec.rb +13 -0
- data/spec/controllers/spree/user_sessions_controller_spec.rb +56 -0
- data/spec/controllers/spree/users_controller_spec.rb +38 -0
- data/spec/factories/confirmed_user.rb +7 -0
- data/spec/features/account_spec.rb +58 -0
- data/spec/features/admin/orders_spec.rb +28 -0
- data/spec/features/admin/password_reset_spec.rb +24 -0
- data/spec/features/admin/products_spec.rb +9 -0
- data/spec/features/admin/sign_in_spec.rb +45 -0
- data/spec/features/admin/sign_out_spec.rb +22 -0
- data/spec/features/admin_permissions_spec.rb +46 -0
- data/spec/features/change_email_spec.rb +24 -0
- data/spec/features/checkout_spec.rb +160 -0
- data/spec/features/confirmation_spec.rb +28 -0
- data/spec/features/order_spec.rb +62 -0
- data/spec/features/password_reset_spec.rb +24 -0
- data/spec/features/sign_in_spec.rb +54 -0
- data/spec/features/sign_out_spec.rb +25 -0
- data/spec/features/sign_up_spec.rb +30 -0
- data/spec/mailers/user_mailer_spec.rb +46 -0
- data/spec/models/order_spec.rb +26 -0
- data/spec/models/user_spec.rb +58 -0
- data/spec/spec_helper.rb +24 -0
- data/spec/support/ability.rb +15 -0
- data/spec/support/authentication_helpers.rb +14 -0
- data/spec/support/capybara.rb +7 -0
- data/spec/support/confirm_helpers.rb +11 -0
- data/spec/support/database_cleaner.rb +18 -0
- data/spec/support/email.rb +5 -0
- data/spec/support/factory_girl.rb +5 -0
- data/spec/support/spree.rb +26 -0
- data/spree_auth_devise.gemspec +48 -0
- metadata +441 -79
- data/app/assets/javascripts/admin/spree_auth.js +0 -1
- data/app/assets/javascripts/store/spree_auth.js +0 -1
- data/app/assets/stylesheets/admin/spree_auth.css +0 -3
- data/app/assets/stylesheets/store/spree_auth.css +0 -3
- data/app/controllers/spree/admin/admin_controller_decorator.rb +0 -7
- data/app/controllers/spree/admin/admin_users_controller_decorator.rb +0 -21
- data/app/controllers/spree/admin/users_controller.rb +0 -77
- data/app/controllers/spree/base_controller_decorator.rb +0 -18
- data/app/controllers/spree/orders_controller_decorator.rb +0 -15
- data/app/controllers/spree/user_sessions_controller.rb +0 -54
- data/app/helpers/spree/users_helper.rb +0 -15
- data/app/models/spree/current_order_decorator.rb +0 -12
- data/app/overrides/admin_tab.rb +0 -6
- data/app/overrides/auth_admin_login_navigation_bar.rb +0 -5
- data/app/overrides/auth_user_login_form.rb +0 -6
- data/app/views/spree/admin/users/_form.html.erb +0 -37
- data/app/views/spree/admin/users/edit.html.erb +0 -28
- data/app/views/spree/admin/users/index.html.erb +0 -53
- data/app/views/spree/admin/users/new.html.erb +0 -23
- data/app/views/spree/admin/users/show.html.erb +0 -21
- data/app/views/spree/layouts/admin/_login_nav.html.erb +0 -8
- data/app/views/spree/shared/_login.html.erb +0 -20
- data/app/views/spree/shared/_login_bar.html.erb +0 -6
- data/app/views/spree/shared/_user_form.html.erb +0 -17
- data/app/views/spree/user_mailer/reset_password_instructions.text.erb +0 -10
- data/app/views/spree/user_passwords/edit.html.erb +0 -15
- data/app/views/spree/user_passwords/new.html.erb +0 -15
- data/app/views/spree/user_registrations/new.html.erb +0 -22
- data/app/views/spree/user_sessions/authorization_failure.html.erb +0 -4
- data/app/views/spree/user_sessions/new.html.erb +0 -13
- data/app/views/spree/users/edit.html.erb +0 -11
- data/app/views/spree/users/show.html.erb +0 -43
- data/config/initializers/spree.rb +0 -1
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'database_cleaner'
|
2
|
+
|
3
|
+
RSpec.configure do |config|
|
4
|
+
|
5
|
+
config.before(:suite) do
|
6
|
+
DatabaseCleaner.strategy = :transaction
|
7
|
+
DatabaseCleaner.clean_with :truncation
|
8
|
+
end
|
9
|
+
|
10
|
+
config.before do
|
11
|
+
DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction
|
12
|
+
DatabaseCleaner.start
|
13
|
+
end
|
14
|
+
|
15
|
+
config.after do
|
16
|
+
DatabaseCleaner.clean
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'spree/testing_support/factories'
|
2
|
+
require 'spree/testing_support/url_helpers'
|
3
|
+
require 'spree/testing_support/controller_requests'
|
4
|
+
require 'spree/testing_support/authorization_helpers'
|
5
|
+
require 'spree/testing_support/capybara_ext'
|
6
|
+
|
7
|
+
# Monkey patch for pending: https://github.com/spree/spree/pull/5182
|
8
|
+
module Spree
|
9
|
+
module TestingSupport
|
10
|
+
module AuthorizationHelpers
|
11
|
+
module Controller
|
12
|
+
def stub_authorization!(&block)
|
13
|
+
ability_class = build_ability(&block)
|
14
|
+
before do
|
15
|
+
allow(controller).to receive(:current_ability).and_return(ability_class.new(nil))
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
RSpec.configure do |config|
|
24
|
+
config.include Spree::TestingSupport::UrlHelpers
|
25
|
+
config.include Spree::TestingSupport::ControllerRequests, type: :controller
|
26
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.platform = Gem::Platform::RUBY
|
5
|
+
s.name = 'spree_auth_devise'
|
6
|
+
s.version = '3.0.5'
|
7
|
+
s.summary = 'Provides authentication and authorization services for use with Spree by using Devise and CanCan.'
|
8
|
+
s.description = s.summary
|
9
|
+
|
10
|
+
s.required_ruby_version = '>= 2.1.0'
|
11
|
+
|
12
|
+
s.author = 'Sean Schofield'
|
13
|
+
s.email = 'sean@spreecommerce.com'
|
14
|
+
s.homepage = 'http://spreecommerce.com'
|
15
|
+
s.license = %q{BSD-3}
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- spec/*`.split("\n")
|
19
|
+
s.require_path = 'lib'
|
20
|
+
s.requirements << 'none'
|
21
|
+
|
22
|
+
spree_version = '~> 3.0.0'
|
23
|
+
|
24
|
+
s.add_dependency 'devise', '~> 3.4.1'
|
25
|
+
s.add_dependency 'devise-encryptable', '0.1.2'
|
26
|
+
s.add_dependency 'json'
|
27
|
+
s.add_dependency 'multi_json'
|
28
|
+
s.add_dependency 'spree_core', spree_version
|
29
|
+
|
30
|
+
s.add_development_dependency 'capybara', '~> 2.4.1'
|
31
|
+
s.add_development_dependency 'coffee-rails', '~> 4.0.0'
|
32
|
+
s.add_development_dependency 'database_cleaner', '~> 1.2.0'
|
33
|
+
s.add_development_dependency 'email_spec', '~> 1.5.0'
|
34
|
+
s.add_development_dependency 'factory_girl', '~> 4.4'
|
35
|
+
s.add_development_dependency 'ffaker'
|
36
|
+
s.add_development_dependency 'launchy'
|
37
|
+
s.add_development_dependency 'mysql2'
|
38
|
+
s.add_development_dependency 'pg'
|
39
|
+
s.add_development_dependency 'poltergeist', '~> 1.5'
|
40
|
+
s.add_development_dependency 'pry'
|
41
|
+
s.add_development_dependency 'rspec-rails', '~> 3.4.1'
|
42
|
+
s.add_development_dependency 'sass-rails', '~> 5.0.0'
|
43
|
+
s.add_development_dependency 'shoulda-matchers', '~> 2.6.2'
|
44
|
+
s.add_development_dependency 'simplecov', '~> 0.9.0'
|
45
|
+
s.add_development_dependency 'spree_backend', spree_version
|
46
|
+
s.add_development_dependency 'spree_frontend', spree_version
|
47
|
+
s.add_development_dependency 'sqlite3'
|
48
|
+
end
|
metadata
CHANGED
@@ -1,158 +1,520 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_auth_devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 3.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sean Schofield
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: devise
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.4.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.4.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: devise-encryptable
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.1.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
20
46
|
- !ruby/object:Gem::Version
|
21
47
|
version: '0'
|
22
48
|
type: :runtime
|
23
49
|
prerelease: false
|
24
50
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
51
|
requirements:
|
27
|
-
- -
|
52
|
+
- - ">="
|
28
53
|
- !ruby/object:Gem::Version
|
29
54
|
version: '0'
|
30
55
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
56
|
+
name: multi_json
|
32
57
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
58
|
requirements:
|
35
|
-
- -
|
59
|
+
- - ">="
|
36
60
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
61
|
+
version: '0'
|
38
62
|
type: :runtime
|
39
63
|
prerelease: false
|
40
64
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
65
|
requirements:
|
43
|
-
- -
|
66
|
+
- - ">="
|
44
67
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
68
|
+
version: '0'
|
46
69
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
70
|
+
name: spree_core
|
48
71
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
72
|
requirements:
|
51
|
-
- -
|
73
|
+
- - "~>"
|
52
74
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
75
|
+
version: 3.0.0
|
54
76
|
type: :runtime
|
55
77
|
prerelease: false
|
56
78
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
79
|
requirements:
|
59
|
-
- -
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.0.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: capybara
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.4.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.4.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coffee-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 4.0.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 4.0.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: database_cleaner
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.2.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.2.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: email_spec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.5.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.5.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: factory_girl
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '4.4'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '4.4'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: ffaker
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: launchy
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: mysql2
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: pg
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: poltergeist
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '1.5'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '1.5'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: pry
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: rspec-rails
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - "~>"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 3.4.1
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: 3.4.1
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: sass-rails
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - "~>"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: 5.0.0
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - "~>"
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: 5.0.0
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: shoulda-matchers
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - "~>"
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: 2.6.2
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - "~>"
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 2.6.2
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: simplecov
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - "~>"
|
60
284
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
|
285
|
+
version: 0.9.0
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - "~>"
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: 0.9.0
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: spree_backend
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - "~>"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: 3.0.0
|
300
|
+
type: :development
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - "~>"
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: 3.0.0
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: spree_frontend
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - "~>"
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: 3.0.0
|
314
|
+
type: :development
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - "~>"
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: 3.0.0
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: sqlite3
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">="
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0'
|
328
|
+
type: :development
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - ">="
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0'
|
335
|
+
description: Provides authentication and authorization services for use with Spree
|
336
|
+
by using Devise and CanCan.
|
63
337
|
email: sean@spreecommerce.com
|
64
338
|
executables: []
|
65
339
|
extensions: []
|
66
340
|
extra_rdoc_files: []
|
67
341
|
files:
|
68
|
-
-
|
342
|
+
- ".gitignore"
|
343
|
+
- ".rspec"
|
344
|
+
- ".travis.yml"
|
345
|
+
- Gemfile
|
346
|
+
- LICENSE.md
|
69
347
|
- README.md
|
70
|
-
-
|
71
|
-
-
|
72
|
-
- app/
|
73
|
-
- app/assets/stylesheets/store/spree_auth.css
|
74
|
-
- app/controllers/spree/admin/admin_controller_decorator.rb
|
75
|
-
- app/controllers/spree/admin/admin_orders_controller_decorator.rb
|
76
|
-
- app/controllers/spree/admin/admin_resource_controller_decorator.rb
|
77
|
-
- app/controllers/spree/admin/admin_users_controller_decorator.rb
|
78
|
-
- app/controllers/spree/admin/users_controller.rb
|
79
|
-
- app/controllers/spree/base_controller_decorator.rb
|
80
|
-
- app/controllers/spree/checkout_controller_decorator.rb
|
81
|
-
- app/controllers/spree/orders_controller_decorator.rb
|
82
|
-
- app/controllers/spree/user_passwords_controller.rb
|
83
|
-
- app/controllers/spree/user_registrations_controller.rb
|
84
|
-
- app/controllers/spree/user_sessions_controller.rb
|
85
|
-
- app/controllers/spree/users_controller.rb
|
86
|
-
- app/helpers/spree/users_helper.rb
|
348
|
+
- Rakefile
|
349
|
+
- Versionfile
|
350
|
+
- app/controllers/metal_decorator.rb
|
87
351
|
- app/mailers/spree/user_mailer.rb
|
88
352
|
- app/models/spree/auth_configuration.rb
|
89
|
-
- app/models/spree/current_order_decorator.rb
|
90
353
|
- app/models/spree/user.rb
|
91
|
-
- app/overrides/admin_tab.rb
|
92
|
-
- app/overrides/auth_admin_login_navigation_bar.rb
|
93
354
|
- app/overrides/auth_shared_login_bar.rb
|
94
|
-
- app/overrides/
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
- app/views/spree/admin/users/new.html.erb
|
99
|
-
- app/views/spree/admin/users/show.html.erb
|
100
|
-
- app/views/spree/layouts/admin/_login_nav.html.erb
|
101
|
-
- app/views/spree/shared/_flashes.html.erb
|
102
|
-
- app/views/spree/shared/_login.html.erb
|
103
|
-
- app/views/spree/shared/_login_bar.html.erb
|
104
|
-
- app/views/spree/shared/_user_form.html.erb
|
105
|
-
- app/views/spree/user_mailer/reset_password_instructions.text.erb
|
106
|
-
- app/views/spree/user_passwords/edit.html.erb
|
107
|
-
- app/views/spree/user_passwords/new.html.erb
|
108
|
-
- app/views/spree/user_registrations/new.html.erb
|
109
|
-
- app/views/spree/user_sessions/authorization_failure.html.erb
|
110
|
-
- app/views/spree/user_sessions/new.html.erb
|
111
|
-
- app/views/spree/users/edit.html.erb
|
112
|
-
- app/views/spree/users/show.html.erb
|
355
|
+
- app/overrides/spree/admin/shared/_header/auth_admin_login_navigation_bar.html.erb.deface
|
356
|
+
- bin/rails
|
357
|
+
- circle.yml
|
358
|
+
- config.ru
|
113
359
|
- config/initializers/devise.rb
|
114
|
-
- config/initializers/
|
360
|
+
- config/initializers/warden.rb
|
115
361
|
- config/locales/de.yml
|
116
362
|
- config/locales/en.yml
|
363
|
+
- config/locales/es.yml
|
364
|
+
- config/locales/fr.yml
|
365
|
+
- config/locales/it.yml
|
117
366
|
- config/locales/nl.yml
|
367
|
+
- config/locales/pt-BR.yml
|
368
|
+
- config/locales/tr.yml
|
118
369
|
- config/routes.rb
|
119
|
-
- lib/spree/auth/devise.rb
|
120
|
-
- lib/spree/auth/engine.rb
|
121
|
-
- lib/spree/auth.rb
|
122
|
-
- lib/spree/authentication_helpers.rb
|
123
|
-
- lib/spree_auth_devise.rb
|
124
|
-
- lib/tasks/auth.rake
|
125
370
|
- db/default/users.rb
|
126
371
|
- db/migrate/20101026184949_create_users.rb
|
127
372
|
- db/migrate/20101026184950_rename_columns_for_devise.rb
|
128
373
|
- db/migrate/20101214150824_convert_user_remember_field.rb
|
129
374
|
- db/migrate/20120203010234_add_reset_password_sent_at_to_spree_users.rb
|
130
375
|
- db/migrate/20120605211305_make_users_email_index_unique.rb
|
376
|
+
- db/migrate/20140904000425_add_deleted_at_to_users.rb
|
377
|
+
- db/migrate/20141002154641_add_confirmable_to_users.rb
|
131
378
|
- db/seeds.rb
|
379
|
+
- lib/assets/javascripts/spree/backend/spree_auth.js.erb
|
380
|
+
- lib/assets/javascripts/spree/frontend/spree_auth.js.erb
|
381
|
+
- lib/assets/stylesheets/spree/backend/spree_auth.css.erb
|
382
|
+
- lib/assets/stylesheets/spree/frontend/spree_auth.css.erb
|
383
|
+
- lib/controllers/backend/spree/admin/admin_controller_decorator.rb
|
384
|
+
- lib/controllers/backend/spree/admin/admin_orders_controller_decorator.rb
|
385
|
+
- lib/controllers/backend/spree/admin/admin_resource_controller_decorator.rb
|
386
|
+
- lib/controllers/backend/spree/admin/orders/customer_details_controller_decorator.rb
|
387
|
+
- lib/controllers/backend/spree/admin/user_passwords_controller.rb
|
388
|
+
- lib/controllers/backend/spree/admin/user_sessions_controller.rb
|
389
|
+
- lib/controllers/frontend/spree/checkout_controller_decorator.rb
|
390
|
+
- lib/controllers/frontend/spree/user_confirmations_controller.rb
|
391
|
+
- lib/controllers/frontend/spree/user_passwords_controller.rb
|
392
|
+
- lib/controllers/frontend/spree/user_registrations_controller.rb
|
393
|
+
- lib/controllers/frontend/spree/user_sessions_controller.rb
|
394
|
+
- lib/controllers/frontend/spree/users_controller.rb
|
395
|
+
- lib/generators/spree/auth/install/install_generator.rb
|
396
|
+
- lib/generators/spree/auth/install/templates/config/initializers/devise.rb
|
397
|
+
- lib/spree/auth.rb
|
398
|
+
- lib/spree/auth/devise.rb
|
399
|
+
- lib/spree/auth/engine.rb
|
400
|
+
- lib/spree/authentication_helpers.rb
|
401
|
+
- lib/spree_auth_devise.rb
|
402
|
+
- lib/tasks/auth.rake
|
403
|
+
- lib/views/backend/spree/admin/user_passwords/edit.html.erb
|
404
|
+
- lib/views/backend/spree/admin/user_passwords/new.html.erb
|
405
|
+
- lib/views/backend/spree/admin/user_sessions/authorization_failure.html.erb
|
406
|
+
- lib/views/backend/spree/admin/user_sessions/new.html.erb
|
407
|
+
- lib/views/backend/spree/layouts/admin/_login_nav.html.erb
|
408
|
+
- lib/views/backend/spree/layouts/login.html.erb
|
409
|
+
- lib/views/frontend/spree/checkout/_new_user.html.erb
|
410
|
+
- lib/views/frontend/spree/checkout/registration.html.erb
|
411
|
+
- lib/views/frontend/spree/shared/_flashes.html.erb
|
412
|
+
- lib/views/frontend/spree/shared/_login.html.erb
|
413
|
+
- lib/views/frontend/spree/shared/_login_bar.html.erb
|
414
|
+
- lib/views/frontend/spree/shared/_user_form.html.erb
|
415
|
+
- lib/views/frontend/spree/user_mailer/confirmation_instructions.text.erb
|
416
|
+
- lib/views/frontend/spree/user_mailer/reset_password_instructions.text.erb
|
417
|
+
- lib/views/frontend/spree/user_passwords/edit.html.erb
|
418
|
+
- lib/views/frontend/spree/user_passwords/new.html.erb
|
419
|
+
- lib/views/frontend/spree/user_registrations/new.html.erb
|
420
|
+
- lib/views/frontend/spree/user_sessions/new.html.erb
|
421
|
+
- lib/views/frontend/spree/users/edit.html.erb
|
422
|
+
- lib/views/frontend/spree/users/show.html.erb
|
423
|
+
- spec/controllers/spree/admin/orders_controller_spec.rb
|
424
|
+
- spec/controllers/spree/checkout_controller_spec.rb
|
425
|
+
- spec/controllers/spree/products_controller_spec.rb
|
426
|
+
- spec/controllers/spree/user_passwords_controller_spec.rb
|
427
|
+
- spec/controllers/spree/user_registrations_controller_spec.rb
|
428
|
+
- spec/controllers/spree/user_sessions_controller_spec.rb
|
429
|
+
- spec/controllers/spree/users_controller_spec.rb
|
430
|
+
- spec/factories/confirmed_user.rb
|
431
|
+
- spec/features/account_spec.rb
|
432
|
+
- spec/features/admin/orders_spec.rb
|
433
|
+
- spec/features/admin/password_reset_spec.rb
|
434
|
+
- spec/features/admin/products_spec.rb
|
435
|
+
- spec/features/admin/sign_in_spec.rb
|
436
|
+
- spec/features/admin/sign_out_spec.rb
|
437
|
+
- spec/features/admin_permissions_spec.rb
|
438
|
+
- spec/features/change_email_spec.rb
|
439
|
+
- spec/features/checkout_spec.rb
|
440
|
+
- spec/features/confirmation_spec.rb
|
441
|
+
- spec/features/order_spec.rb
|
442
|
+
- spec/features/password_reset_spec.rb
|
443
|
+
- spec/features/sign_in_spec.rb
|
444
|
+
- spec/features/sign_out_spec.rb
|
445
|
+
- spec/features/sign_up_spec.rb
|
446
|
+
- spec/mailers/user_mailer_spec.rb
|
447
|
+
- spec/models/order_spec.rb
|
448
|
+
- spec/models/user_spec.rb
|
449
|
+
- spec/spec_helper.rb
|
450
|
+
- spec/support/ability.rb
|
451
|
+
- spec/support/authentication_helpers.rb
|
452
|
+
- spec/support/capybara.rb
|
453
|
+
- spec/support/confirm_helpers.rb
|
454
|
+
- spec/support/database_cleaner.rb
|
455
|
+
- spec/support/email.rb
|
456
|
+
- spec/support/factory_girl.rb
|
457
|
+
- spec/support/spree.rb
|
458
|
+
- spree_auth_devise.gemspec
|
132
459
|
homepage: http://spreecommerce.com
|
133
|
-
licenses:
|
460
|
+
licenses:
|
461
|
+
- BSD-3
|
462
|
+
metadata: {}
|
134
463
|
post_install_message:
|
135
464
|
rdoc_options: []
|
136
465
|
require_paths:
|
137
466
|
- lib
|
138
467
|
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
468
|
requirements:
|
141
|
-
- -
|
469
|
+
- - ">="
|
142
470
|
- !ruby/object:Gem::Version
|
143
|
-
version: 1.
|
471
|
+
version: 2.1.0
|
144
472
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
473
|
requirements:
|
147
|
-
- -
|
474
|
+
- - ">="
|
148
475
|
- !ruby/object:Gem::Version
|
149
476
|
version: '0'
|
150
477
|
requirements:
|
151
478
|
- none
|
152
479
|
rubyforge_project:
|
153
|
-
rubygems_version:
|
480
|
+
rubygems_version: 2.4.8
|
154
481
|
signing_key:
|
155
|
-
specification_version:
|
482
|
+
specification_version: 4
|
156
483
|
summary: Provides authentication and authorization services for use with Spree by
|
157
484
|
using Devise and CanCan.
|
158
|
-
test_files:
|
485
|
+
test_files:
|
486
|
+
- spec/controllers/spree/admin/orders_controller_spec.rb
|
487
|
+
- spec/controllers/spree/checkout_controller_spec.rb
|
488
|
+
- spec/controllers/spree/products_controller_spec.rb
|
489
|
+
- spec/controllers/spree/user_passwords_controller_spec.rb
|
490
|
+
- spec/controllers/spree/user_registrations_controller_spec.rb
|
491
|
+
- spec/controllers/spree/user_sessions_controller_spec.rb
|
492
|
+
- spec/controllers/spree/users_controller_spec.rb
|
493
|
+
- spec/factories/confirmed_user.rb
|
494
|
+
- spec/features/account_spec.rb
|
495
|
+
- spec/features/admin/orders_spec.rb
|
496
|
+
- spec/features/admin/password_reset_spec.rb
|
497
|
+
- spec/features/admin/products_spec.rb
|
498
|
+
- spec/features/admin/sign_in_spec.rb
|
499
|
+
- spec/features/admin/sign_out_spec.rb
|
500
|
+
- spec/features/admin_permissions_spec.rb
|
501
|
+
- spec/features/change_email_spec.rb
|
502
|
+
- spec/features/checkout_spec.rb
|
503
|
+
- spec/features/confirmation_spec.rb
|
504
|
+
- spec/features/order_spec.rb
|
505
|
+
- spec/features/password_reset_spec.rb
|
506
|
+
- spec/features/sign_in_spec.rb
|
507
|
+
- spec/features/sign_out_spec.rb
|
508
|
+
- spec/features/sign_up_spec.rb
|
509
|
+
- spec/mailers/user_mailer_spec.rb
|
510
|
+
- spec/models/order_spec.rb
|
511
|
+
- spec/models/user_spec.rb
|
512
|
+
- spec/spec_helper.rb
|
513
|
+
- spec/support/ability.rb
|
514
|
+
- spec/support/authentication_helpers.rb
|
515
|
+
- spec/support/capybara.rb
|
516
|
+
- spec/support/confirm_helpers.rb
|
517
|
+
- spec/support/database_cleaner.rb
|
518
|
+
- spec/support/email.rb
|
519
|
+
- spec/support/factory_girl.rb
|
520
|
+
- spec/support/spree.rb
|