solidus_social 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.circleci/config.yml +35 -0
- data/.gem_release.yml +5 -0
- data/.github/stale.yml +17 -0
- data/.gitignore +6 -8
- data/.rspec +3 -3
- data/.rubocop.yml +3 -149
- data/.rubocop_todo.yml +42 -0
- data/CHANGELOG.md +31 -9
- data/Gemfile +21 -20
- data/{LICENSE.md → LICENSE} +2 -2
- data/README.md +56 -14
- data/Rakefile +4 -19
- data/app/controllers/spree/admin/authentication_methods_controller.rb +2 -0
- data/app/controllers/spree/omniauth_callbacks_controller.rb +8 -6
- data/app/controllers/spree/user_authentications_controller.rb +3 -1
- data/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb +27 -0
- data/app/decorators/models/solidus_social/spree/user_decorator.rb +28 -0
- data/app/helpers/spree/omniauth_callbacks_helper.rb +2 -0
- data/app/models/spree/authentication_method.rb +3 -1
- data/app/models/spree/social_configuration.rb +2 -0
- data/app/models/spree/user_authentication.rb +3 -1
- data/app/overrides/add_authentications_to_account_summary.rb +2 -0
- data/app/overrides/admin_configuration_decorator.rb +3 -1
- data/app/overrides/user_registrations_decorator.rb +2 -0
- data/app/views/spree/admin/authentication_methods/_form.html.erb +4 -4
- data/app/views/spree/admin/authentication_methods/edit.html.erb +2 -2
- data/app/views/spree/admin/authentication_methods/index.html.erb +10 -10
- data/app/views/spree/admin/authentication_methods/new.html.erb +2 -2
- data/app/views/spree/shared/_social.html.erb +5 -5
- data/app/views/spree/shared/_user_form.html.erb +3 -3
- data/app/views/spree/users/_new-customer.html.erb +2 -2
- data/app/views/spree/users/_social.html.erb +5 -5
- data/bin/console +17 -0
- data/bin/rails +15 -4
- data/bin/rake +7 -0
- data/bin/sandbox +72 -0
- data/bin/setup +8 -0
- data/config/locales/en.yml +1 -0
- data/config/routes.rb +6 -4
- data/db/migrate/20120120163432_create_user_authentications.rb +2 -0
- data/db/migrate/20120123163222_create_authentication_methods.rb +2 -0
- data/lib/generators/solidus_social/install/install_generator.rb +7 -5
- data/lib/generators/solidus_social/install/templates/config/initializers/solidus_social.rb +3 -1
- data/lib/solidus_social.rb +22 -7
- data/lib/solidus_social/engine.rb +29 -54
- data/lib/solidus_social/facebook_omniauth_strategy_ext.rb +25 -0
- data/lib/solidus_social/factories.rb +4 -0
- data/lib/solidus_social/version.rb +3 -16
- data/solidus_social.gemspec +43 -46
- data/spec/controllers/spree/omniauth_callbacks_controller_spec.rb +14 -9
- data/spec/features/spree/admin/authentication_methods_configuration_spec.rb +13 -10
- data/spec/features/spree/sign_in_spec.rb +13 -10
- data/spec/lib/solidus_social/engine_spec.rb +9 -0
- data/spec/lib/{spree_social/engine_spec.rb → solidus_social_speec.rb} +3 -1
- data/spec/lib/spree/social_config_spec.rb +2 -0
- data/spec/models/spree/authentication_method_spec.rb +4 -2
- data/spec/models/spree/social_configuration_spec.rb +2 -0
- data/spec/models/spree/user_decorator_spec.rb +5 -3
- data/spec/spec_helper.rb +17 -29
- data/spec/support/omniauth.rb +4 -0
- metadata +56 -196
- data/.hound.yml +0 -26
- data/.travis.yml +0 -32
- data/app/assets/javascripts/spree/backend/solidus_social.js +0 -1
- data/app/assets/javascripts/spree/frontend/solidus_social.js +0 -1
- data/app/assets/stylesheets/spree/backend/solidus_social.css +0 -3
- data/app/controllers/spree/user_registrations_controller_decorator.rb +0 -15
- data/app/models/spree/user_decorator.rb +0 -16
- data/spec/support/capybara.rb +0 -11
- data/spec/support/database_cleaner.rb +0 -23
- data/spec/support/devise.rb +0 -3
- data/spec/support/factory_girl.rb +0 -7
- data/spec/support/spree.rb +0 -8
@@ -1,8 +1,10 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.describe 'Admin Authentication Methods', :js do
|
2
4
|
stub_authorization!
|
3
5
|
|
4
6
|
context 'elements' do
|
5
|
-
|
7
|
+
it 'has configuration tab' do
|
6
8
|
visit spree.admin_path
|
7
9
|
click_link 'Settings'
|
8
10
|
expect(page).to have_text(/Social Authentication Methods/i)
|
@@ -10,13 +12,13 @@ RSpec.feature 'Admin Authentication Methods', :js do
|
|
10
12
|
end
|
11
13
|
|
12
14
|
context 'when no auth methods exists' do
|
13
|
-
|
15
|
+
before do
|
14
16
|
visit spree.admin_path
|
15
17
|
click_link 'Settings'
|
16
18
|
click_link 'Social Authentication Methods'
|
17
19
|
end
|
18
20
|
|
19
|
-
|
21
|
+
it 'can create new' do
|
20
22
|
expect(page).to have_text /NO AUTHENTICATION METHODS FOUND, ADD ONE!/i
|
21
23
|
|
22
24
|
click_link 'New Authentication Method'
|
@@ -30,22 +32,23 @@ RSpec.feature 'Admin Authentication Methods', :js do
|
|
30
32
|
end
|
31
33
|
|
32
34
|
context 'when auth method exists' do
|
33
|
-
|
35
|
+
let!(:authentication_method) do
|
34
36
|
Spree::AuthenticationMethod.create!(
|
35
37
|
provider: 'facebook',
|
36
38
|
api_key: 'fake',
|
37
39
|
api_secret: 'fake',
|
38
40
|
environment: Rails.env,
|
39
|
-
active: true
|
41
|
+
active: true
|
42
|
+
)
|
40
43
|
end
|
41
44
|
|
42
|
-
|
45
|
+
before do
|
43
46
|
visit spree.admin_path
|
44
47
|
click_link 'Settings'
|
45
48
|
click_link 'Social Authentication Methods'
|
46
49
|
end
|
47
50
|
|
48
|
-
|
51
|
+
it 'can be updated' do
|
49
52
|
within_row(1) do
|
50
53
|
click_icon :edit
|
51
54
|
end
|
@@ -56,8 +59,8 @@ RSpec.feature 'Admin Authentication Methods', :js do
|
|
56
59
|
expect(page).to have_text 'successfully updated!'
|
57
60
|
end
|
58
61
|
|
59
|
-
|
60
|
-
|
62
|
+
it 'can be deleted' do
|
63
|
+
accept_confirm do
|
61
64
|
within_row(1) do
|
62
65
|
click_icon :trash
|
63
66
|
end
|
@@ -1,13 +1,15 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.describe 'Signing in using Omniauth', :js do
|
2
4
|
context 'facebook' do
|
3
|
-
|
5
|
+
before do
|
4
6
|
Spree::AuthenticationMethod.create!(
|
5
7
|
provider: 'facebook',
|
6
8
|
api_key: 'fake',
|
7
9
|
api_secret: 'fake',
|
8
10
|
environment: Rails.env,
|
9
|
-
active: true
|
10
|
-
|
11
|
+
active: true
|
12
|
+
)
|
11
13
|
OmniAuth.config.mock_auth[:facebook] = {
|
12
14
|
'provider' => 'facebook',
|
13
15
|
'uid' => '123545',
|
@@ -23,7 +25,7 @@ RSpec.feature 'signing in using Omniauth', :js do
|
|
23
25
|
}
|
24
26
|
end
|
25
27
|
|
26
|
-
|
28
|
+
it 'going to sign in' do
|
27
29
|
visit spree.login_path
|
28
30
|
click_on 'Login with facebook'
|
29
31
|
expect(page).to have_text 'You are now signed in with your facebook account.'
|
@@ -34,7 +36,7 @@ RSpec.feature 'signing in using Omniauth', :js do
|
|
34
36
|
end
|
35
37
|
|
36
38
|
# Regression test for #91
|
37
|
-
|
39
|
+
it "attempting to view 'My Account' works" do
|
38
40
|
visit spree.login_path
|
39
41
|
click_on 'Login with facebook'
|
40
42
|
expect(page).to have_text 'You are now signed in with your facebook account.'
|
@@ -42,7 +44,7 @@ RSpec.feature 'signing in using Omniauth', :js do
|
|
42
44
|
expect(page).to have_text 'My Account'
|
43
45
|
end
|
44
46
|
|
45
|
-
|
47
|
+
it "view 'My Account'" do
|
46
48
|
visit spree.login_path
|
47
49
|
click_on 'Login with facebook'
|
48
50
|
expect(page).to have_text 'You are now signed in with your facebook account.'
|
@@ -52,13 +54,14 @@ RSpec.feature 'signing in using Omniauth', :js do
|
|
52
54
|
end
|
53
55
|
|
54
56
|
context 'twitter' do
|
55
|
-
|
57
|
+
before do
|
56
58
|
Spree::AuthenticationMethod.create!(
|
57
59
|
provider: 'twitter',
|
58
60
|
api_key: 'fake',
|
59
61
|
api_secret: 'fake',
|
60
62
|
environment: Rails.env,
|
61
|
-
active: true
|
63
|
+
active: true
|
64
|
+
)
|
62
65
|
OmniAuth.config.test_mode = true
|
63
66
|
OmniAuth.config.mock_auth[:twitter] = {
|
64
67
|
'provider' => 'twitter',
|
@@ -74,7 +77,7 @@ RSpec.feature 'signing in using Omniauth', :js do
|
|
74
77
|
}
|
75
78
|
end
|
76
79
|
|
77
|
-
|
80
|
+
it 'going to sign in' do
|
78
81
|
visit spree.login_path
|
79
82
|
click_on 'Login with twitter'
|
80
83
|
expect(page).to have_text 'Please confirm your email address to continue'.upcase
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
RSpec.describe SolidusSocial do
|
2
4
|
describe '.configured_providers' do
|
3
5
|
subject { described_class.configured_providers }
|
@@ -16,7 +18,7 @@ RSpec.describe SolidusSocial do
|
|
16
18
|
end
|
17
19
|
|
18
20
|
it "sets up Devise for the given providers" do
|
19
|
-
expect(
|
21
|
+
expect(described_class).to receive(:setup_key_for).with(:facebook, "secret_key", "secret_secret")
|
20
22
|
subject
|
21
23
|
end
|
22
24
|
end
|
@@ -1,5 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
RSpec.describe Spree::AuthenticationMethod do
|
2
4
|
describe '.provider_options' do
|
5
|
+
subject { described_class.provider_options }
|
6
|
+
|
3
7
|
let(:expected_provider_options) do
|
4
8
|
[
|
5
9
|
%w(Amazon amazon),
|
@@ -10,8 +14,6 @@ RSpec.describe Spree::AuthenticationMethod do
|
|
10
14
|
]
|
11
15
|
end
|
12
16
|
|
13
|
-
subject { described_class.provider_options }
|
14
|
-
|
15
17
|
it { is_expected.to match_array(expected_provider_options) }
|
16
18
|
end
|
17
19
|
end
|
@@ -1,9 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
RSpec.describe Spree::User, type: :model do
|
2
4
|
let(:user) { create(:user) }
|
3
5
|
let(:omni_params) { { 'provider' => 'twitter', 'uid' => 12_345 } }
|
4
6
|
let(:auths) { double 'auths' }
|
5
7
|
|
6
|
-
|
8
|
+
describe '.apply_omniauth' do
|
7
9
|
before { allow(user).to receive(:user_authentications).and_return(auths) }
|
8
10
|
|
9
11
|
it 'builds an associated auth source' do
|
@@ -39,12 +41,12 @@ RSpec.describe Spree::User, type: :model do
|
|
39
41
|
|
40
42
|
it 'builds a valid user' do
|
41
43
|
user.apply_omniauth(omni_params)
|
42
|
-
expect(user
|
44
|
+
expect(user).to be_valid
|
43
45
|
end
|
44
46
|
end
|
45
47
|
end
|
46
48
|
|
47
|
-
|
49
|
+
describe '.password_required?' do
|
48
50
|
before { user.password = nil }
|
49
51
|
|
50
52
|
context 'user authentications is empty' do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,36 +1,24 @@
|
|
1
|
-
|
2
|
-
SimpleCov.start do
|
3
|
-
add_filter 'spec'
|
4
|
-
add_group 'Controllers', 'app/controllers'
|
5
|
-
add_group 'Helpers', 'app/helpers'
|
6
|
-
add_group 'Overrides', 'app/overrides'
|
7
|
-
add_group 'Models', 'app/models'
|
8
|
-
add_group 'Libraries', 'lib'
|
9
|
-
end
|
1
|
+
# frozen_string_literal: true
|
10
2
|
|
11
|
-
|
3
|
+
# Configure Rails Environment
|
4
|
+
ENV['RAILS_ENV'] = 'test'
|
12
5
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
6
|
+
# Run Coverage report
|
7
|
+
require 'solidus_dev_support/rspec/coverage'
|
8
|
+
|
9
|
+
require File.expand_path('dummy/config/environment.rb', __dir__)
|
10
|
+
|
11
|
+
# Requires factories and other useful helpers defined in spree_core.
|
12
|
+
require 'solidus_dev_support/rspec/feature_helper'
|
19
13
|
|
20
|
-
|
21
|
-
|
22
|
-
|
14
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
15
|
+
# in spec/support/ and its subdirectories.
|
16
|
+
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
|
17
|
+
|
18
|
+
# Requires factories defined in lib/solidus_social/factories.rb
|
19
|
+
require 'solidus_social/factories'
|
23
20
|
|
24
21
|
RSpec.configure do |config|
|
25
|
-
config.fail_fast = false
|
26
|
-
config.filter_run focus: true
|
27
|
-
config.run_all_when_everything_filtered = true
|
28
|
-
config.raise_errors_for_deprecations!
|
29
22
|
config.infer_spec_type_from_file_location!
|
30
|
-
|
31
|
-
config.expect_with :rspec do |expectations|
|
32
|
-
expectations.syntax = :expect
|
33
|
-
end
|
23
|
+
config.use_transactional_fixtures = false
|
34
24
|
end
|
35
|
-
|
36
|
-
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |file| require file }
|
metadata
CHANGED
@@ -1,37 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_social
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Dyer
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.0'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '3'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.0'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '3'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: solidus_support
|
14
|
+
name: deface
|
35
15
|
requirement: !ruby/object:Gem::Requirement
|
36
16
|
requirements:
|
37
17
|
- - ">="
|
@@ -45,7 +25,7 @@ dependencies:
|
|
45
25
|
- !ruby/object:Gem::Version
|
46
26
|
version: '0'
|
47
27
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
28
|
+
name: oa-core
|
49
29
|
requirement: !ruby/object:Gem::Requirement
|
50
30
|
requirements:
|
51
31
|
- - ">="
|
@@ -73,21 +53,7 @@ dependencies:
|
|
73
53
|
- !ruby/object:Gem::Version
|
74
54
|
version: '0'
|
75
55
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - ">="
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '0'
|
82
|
-
type: :runtime
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '0'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: omniauth-twitter
|
56
|
+
name: omniauth-amazon
|
91
57
|
requirement: !ruby/object:Gem::Requirement
|
92
58
|
requirements:
|
93
59
|
- - ">="
|
@@ -143,7 +109,7 @@ dependencies:
|
|
143
109
|
- !ruby/object:Gem::Version
|
144
110
|
version: '0'
|
145
111
|
- !ruby/object:Gem::Dependency
|
146
|
-
name: omniauth-
|
112
|
+
name: omniauth-twitter
|
147
113
|
requirement: !ruby/object:Gem::Requirement
|
148
114
|
requirements:
|
149
115
|
- - ">="
|
@@ -157,27 +123,13 @@ dependencies:
|
|
157
123
|
- !ruby/object:Gem::Version
|
158
124
|
version: '0'
|
159
125
|
- !ruby/object:Gem::Dependency
|
160
|
-
name:
|
161
|
-
requirement: !ruby/object:Gem::Requirement
|
162
|
-
requirements:
|
163
|
-
- - "~>"
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '2.4'
|
166
|
-
type: :development
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
requirements:
|
170
|
-
- - "~>"
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: '2.4'
|
173
|
-
- !ruby/object:Gem::Dependency
|
174
|
-
name: capybara-screenshot
|
126
|
+
name: solidus_auth_devise
|
175
127
|
requirement: !ruby/object:Gem::Requirement
|
176
128
|
requirements:
|
177
129
|
- - ">="
|
178
130
|
- !ruby/object:Gem::Version
|
179
131
|
version: '0'
|
180
|
-
type: :
|
132
|
+
type: :runtime
|
181
133
|
prerelease: false
|
182
134
|
version_requirements: !ruby/object:Gem::Requirement
|
183
135
|
requirements:
|
@@ -185,63 +137,41 @@ dependencies:
|
|
185
137
|
- !ruby/object:Gem::Version
|
186
138
|
version: '0'
|
187
139
|
- !ruby/object:Gem::Dependency
|
188
|
-
name:
|
140
|
+
name: solidus_core
|
189
141
|
requirement: !ruby/object:Gem::Requirement
|
190
142
|
requirements:
|
191
|
-
- -
|
192
|
-
- !ruby/object:Gem::Version
|
193
|
-
version: '1.3'
|
194
|
-
type: :development
|
195
|
-
prerelease: false
|
196
|
-
version_requirements: !ruby/object:Gem::Requirement
|
197
|
-
requirements:
|
198
|
-
- - '='
|
143
|
+
- - ">="
|
199
144
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
201
|
-
-
|
202
|
-
name: rspec-rails
|
203
|
-
requirement: !ruby/object:Gem::Requirement
|
204
|
-
requirements:
|
205
|
-
- - "~>"
|
145
|
+
version: 2.0.0
|
146
|
+
- - "<"
|
206
147
|
- !ruby/object:Gem::Version
|
207
|
-
version: '3
|
208
|
-
type: :
|
148
|
+
version: '3'
|
149
|
+
type: :runtime
|
209
150
|
prerelease: false
|
210
151
|
version_requirements: !ruby/object:Gem::Requirement
|
211
152
|
requirements:
|
212
|
-
- - "
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: 2.0.0
|
156
|
+
- - "<"
|
213
157
|
- !ruby/object:Gem::Version
|
214
|
-
version: '3
|
158
|
+
version: '3'
|
215
159
|
- !ruby/object:Gem::Dependency
|
216
|
-
name:
|
160
|
+
name: solidus_support
|
217
161
|
requirement: !ruby/object:Gem::Requirement
|
218
162
|
requirements:
|
219
163
|
- - "~>"
|
220
164
|
- !ruby/object:Gem::Version
|
221
|
-
version:
|
222
|
-
type: :
|
165
|
+
version: 0.4.0
|
166
|
+
type: :runtime
|
223
167
|
prerelease: false
|
224
168
|
version_requirements: !ruby/object:Gem::Requirement
|
225
169
|
requirements:
|
226
170
|
- - "~>"
|
227
171
|
- !ruby/object:Gem::Version
|
228
|
-
version:
|
229
|
-
- !ruby/object:Gem::Dependency
|
230
|
-
name: selenium-webdriver
|
231
|
-
requirement: !ruby/object:Gem::Requirement
|
232
|
-
requirements:
|
233
|
-
- - ">="
|
234
|
-
- !ruby/object:Gem::Version
|
235
|
-
version: 2.41.0
|
236
|
-
type: :development
|
237
|
-
prerelease: false
|
238
|
-
version_requirements: !ruby/object:Gem::Requirement
|
239
|
-
requirements:
|
240
|
-
- - ">="
|
241
|
-
- !ruby/object:Gem::Version
|
242
|
-
version: 2.41.0
|
172
|
+
version: 0.4.0
|
243
173
|
- !ruby/object:Gem::Dependency
|
244
|
-
name:
|
174
|
+
name: solidus_dev_support
|
245
175
|
requirement: !ruby/object:Gem::Requirement
|
246
176
|
requirements:
|
247
177
|
- - ">="
|
@@ -254,107 +184,36 @@ dependencies:
|
|
254
184
|
- - ">="
|
255
185
|
- !ruby/object:Gem::Version
|
256
186
|
version: '0'
|
257
|
-
|
258
|
-
name: poltergeist
|
259
|
-
requirement: !ruby/object:Gem::Requirement
|
260
|
-
requirements:
|
261
|
-
- - "~>"
|
262
|
-
- !ruby/object:Gem::Version
|
263
|
-
version: '1.5'
|
264
|
-
type: :development
|
265
|
-
prerelease: false
|
266
|
-
version_requirements: !ruby/object:Gem::Requirement
|
267
|
-
requirements:
|
268
|
-
- - "~>"
|
269
|
-
- !ruby/object:Gem::Version
|
270
|
-
version: '1.5'
|
271
|
-
- !ruby/object:Gem::Dependency
|
272
|
-
name: simplecov
|
273
|
-
requirement: !ruby/object:Gem::Requirement
|
274
|
-
requirements:
|
275
|
-
- - "~>"
|
276
|
-
- !ruby/object:Gem::Version
|
277
|
-
version: 0.9.0
|
278
|
-
type: :development
|
279
|
-
prerelease: false
|
280
|
-
version_requirements: !ruby/object:Gem::Requirement
|
281
|
-
requirements:
|
282
|
-
- - "~>"
|
283
|
-
- !ruby/object:Gem::Version
|
284
|
-
version: 0.9.0
|
285
|
-
- !ruby/object:Gem::Dependency
|
286
|
-
name: sqlite3
|
287
|
-
requirement: !ruby/object:Gem::Requirement
|
288
|
-
requirements:
|
289
|
-
- - "~>"
|
290
|
-
- !ruby/object:Gem::Version
|
291
|
-
version: 1.3.10
|
292
|
-
type: :development
|
293
|
-
prerelease: false
|
294
|
-
version_requirements: !ruby/object:Gem::Requirement
|
295
|
-
requirements:
|
296
|
-
- - "~>"
|
297
|
-
- !ruby/object:Gem::Version
|
298
|
-
version: 1.3.10
|
299
|
-
- !ruby/object:Gem::Dependency
|
300
|
-
name: rubocop
|
301
|
-
requirement: !ruby/object:Gem::Requirement
|
302
|
-
requirements:
|
303
|
-
- - "~>"
|
304
|
-
- !ruby/object:Gem::Version
|
305
|
-
version: 0.39.0
|
306
|
-
type: :development
|
307
|
-
prerelease: false
|
308
|
-
version_requirements: !ruby/object:Gem::Requirement
|
309
|
-
requirements:
|
310
|
-
- - "~>"
|
311
|
-
- !ruby/object:Gem::Version
|
312
|
-
version: 0.39.0
|
313
|
-
- !ruby/object:Gem::Dependency
|
314
|
-
name: rake
|
315
|
-
requirement: !ruby/object:Gem::Requirement
|
316
|
-
requirements:
|
317
|
-
- - "<"
|
318
|
-
- !ruby/object:Gem::Version
|
319
|
-
version: '11'
|
320
|
-
type: :development
|
321
|
-
prerelease: false
|
322
|
-
version_requirements: !ruby/object:Gem::Requirement
|
323
|
-
requirements:
|
324
|
-
- - "<"
|
325
|
-
- !ruby/object:Gem::Version
|
326
|
-
version: '11'
|
327
|
-
description: Adds social network login services (OAuth) to Spree
|
187
|
+
description:
|
328
188
|
email: jdyer@spreecommerce.com
|
329
189
|
executables: []
|
330
190
|
extensions: []
|
331
191
|
extra_rdoc_files: []
|
332
192
|
files:
|
193
|
+
- ".circleci/config.yml"
|
194
|
+
- ".gem_release.yml"
|
195
|
+
- ".github/stale.yml"
|
333
196
|
- ".gitignore"
|
334
|
-
- ".hound.yml"
|
335
197
|
- ".rspec"
|
336
198
|
- ".rubocop.yml"
|
337
|
-
- ".
|
199
|
+
- ".rubocop_todo.yml"
|
338
200
|
- CHANGELOG.md
|
339
201
|
- CONTRIBUTING.md
|
340
202
|
- Gemfile
|
341
|
-
- LICENSE
|
203
|
+
- LICENSE
|
342
204
|
- README.md
|
343
205
|
- Rakefile
|
344
|
-
- app/assets/javascripts/spree/backend/solidus_social.js
|
345
|
-
- app/assets/javascripts/spree/frontend/solidus_social.js
|
346
|
-
- app/assets/stylesheets/spree/backend/solidus_social.css
|
347
206
|
- app/assets/stylesheets/spree/frontend/fontello.css
|
348
207
|
- app/assets/stylesheets/spree/frontend/solidus_social.css
|
349
208
|
- app/controllers/spree/admin/authentication_methods_controller.rb
|
350
209
|
- app/controllers/spree/omniauth_callbacks_controller.rb
|
351
210
|
- app/controllers/spree/user_authentications_controller.rb
|
352
|
-
- app/controllers/spree/user_registrations_controller_decorator.rb
|
211
|
+
- app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb
|
212
|
+
- app/decorators/models/solidus_social/spree/user_decorator.rb
|
353
213
|
- app/helpers/spree/omniauth_callbacks_helper.rb
|
354
214
|
- app/models/spree/authentication_method.rb
|
355
215
|
- app/models/spree/social_configuration.rb
|
356
216
|
- app/models/spree/user_authentication.rb
|
357
|
-
- app/models/spree/user_decorator.rb
|
358
217
|
- app/overrides/add_authentications_to_account_summary.rb
|
359
218
|
- app/overrides/admin_configuration_decorator.rb
|
360
219
|
- app/overrides/user_registrations_decorator.rb
|
@@ -366,7 +225,11 @@ files:
|
|
366
225
|
- app/views/spree/shared/_user_form.html.erb
|
367
226
|
- app/views/spree/users/_new-customer.html.erb
|
368
227
|
- app/views/spree/users/_social.html.erb
|
228
|
+
- bin/console
|
369
229
|
- bin/rails
|
230
|
+
- bin/rake
|
231
|
+
- bin/sandbox
|
232
|
+
- bin/setup
|
370
233
|
- config/locales/de.yml
|
371
234
|
- config/locales/en.yml
|
372
235
|
- config/locales/es-MX.yml
|
@@ -382,59 +245,56 @@ files:
|
|
382
245
|
- lib/generators/solidus_social/install/templates/config/initializers/solidus_social.rb
|
383
246
|
- lib/solidus_social.rb
|
384
247
|
- lib/solidus_social/engine.rb
|
248
|
+
- lib/solidus_social/facebook_omniauth_strategy_ext.rb
|
249
|
+
- lib/solidus_social/factories.rb
|
385
250
|
- lib/solidus_social/version.rb
|
386
251
|
- solidus_social.gemspec
|
387
252
|
- spec/controllers/spree/omniauth_callbacks_controller_spec.rb
|
388
253
|
- spec/features/spree/admin/authentication_methods_configuration_spec.rb
|
389
254
|
- spec/features/spree/sign_in_spec.rb
|
255
|
+
- spec/lib/solidus_social/engine_spec.rb
|
256
|
+
- spec/lib/solidus_social_speec.rb
|
390
257
|
- spec/lib/spree/social_config_spec.rb
|
391
|
-
- spec/lib/spree_social/engine_spec.rb
|
392
258
|
- spec/models/spree/authentication_method_spec.rb
|
393
259
|
- spec/models/spree/social_configuration_spec.rb
|
394
260
|
- spec/models/spree/user_decorator_spec.rb
|
395
261
|
- spec/spec_helper.rb
|
396
|
-
- spec/support/
|
397
|
-
|
398
|
-
- spec/support/devise.rb
|
399
|
-
- spec/support/factory_girl.rb
|
400
|
-
- spec/support/spree.rb
|
401
|
-
homepage: http://www.spreecommerce.com
|
262
|
+
- spec/support/omniauth.rb
|
263
|
+
homepage: https://github.com/solidusio-contrib/solidus_social#readme
|
402
264
|
licenses:
|
403
|
-
- BSD-3
|
404
|
-
metadata:
|
265
|
+
- BSD-3-Clause
|
266
|
+
metadata:
|
267
|
+
homepage_uri: https://github.com/solidusio-contrib/solidus_social#readme
|
268
|
+
source_code_uri: https://github.com/solidusio-contrib/solidus_social
|
269
|
+
changelog_uri: https://github.com/solidusio-contrib/solidus_social/blob/master/CHANGELOG.md
|
405
270
|
post_install_message:
|
406
271
|
rdoc_options: []
|
407
272
|
require_paths:
|
408
273
|
- lib
|
409
274
|
required_ruby_version: !ruby/object:Gem::Requirement
|
410
275
|
requirements:
|
411
|
-
- - "
|
276
|
+
- - "~>"
|
412
277
|
- !ruby/object:Gem::Version
|
413
|
-
version:
|
278
|
+
version: '2.4'
|
414
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
415
280
|
requirements:
|
416
281
|
- - ">="
|
417
282
|
- !ruby/object:Gem::Version
|
418
283
|
version: '0'
|
419
|
-
requirements:
|
420
|
-
|
421
|
-
rubyforge_project:
|
422
|
-
rubygems_version: 2.6.11
|
284
|
+
requirements: []
|
285
|
+
rubygems_version: 3.0.3
|
423
286
|
signing_key:
|
424
287
|
specification_version: 4
|
425
|
-
summary: Adds social network login services (OAuth) to
|
288
|
+
summary: Adds social network login services (OAuth) to Solidus
|
426
289
|
test_files:
|
427
290
|
- spec/controllers/spree/omniauth_callbacks_controller_spec.rb
|
428
291
|
- spec/features/spree/admin/authentication_methods_configuration_spec.rb
|
429
292
|
- spec/features/spree/sign_in_spec.rb
|
293
|
+
- spec/lib/solidus_social/engine_spec.rb
|
294
|
+
- spec/lib/solidus_social_speec.rb
|
430
295
|
- spec/lib/spree/social_config_spec.rb
|
431
|
-
- spec/lib/spree_social/engine_spec.rb
|
432
296
|
- spec/models/spree/authentication_method_spec.rb
|
433
297
|
- spec/models/spree/social_configuration_spec.rb
|
434
298
|
- spec/models/spree/user_decorator_spec.rb
|
435
299
|
- spec/spec_helper.rb
|
436
|
-
- spec/support/
|
437
|
-
- spec/support/database_cleaner.rb
|
438
|
-
- spec/support/devise.rb
|
439
|
-
- spec/support/factory_girl.rb
|
440
|
-
- spec/support/spree.rb
|
300
|
+
- spec/support/omniauth.rb
|