solidus_social 1.0.0 → 1.4.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.
Files changed (82) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +35 -0
  3. data/.gem_release.yml +5 -0
  4. data/.gitignore +6 -8
  5. data/.rspec +3 -3
  6. data/.rubocop.yml +3 -7
  7. data/.rubocop_todo.yml +42 -0
  8. data/CHANGELOG.md +34 -4
  9. data/Gemfile +23 -0
  10. data/{LICENSE.md → LICENSE} +2 -2
  11. data/README.md +133 -78
  12. data/Rakefile +4 -13
  13. data/app/controllers/spree/admin/authentication_methods_controller.rb +2 -12
  14. data/app/controllers/spree/omniauth_callbacks_controller.rb +46 -42
  15. data/app/controllers/spree/user_authentications_controller.rb +3 -1
  16. data/app/core/spree/permission_sets/authentication_method_display.rb +11 -0
  17. data/app/core/spree/permission_sets/authentication_method_management.rb +11 -0
  18. data/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb +27 -0
  19. data/app/decorators/models/solidus_social/spree/user_decorator.rb +28 -0
  20. data/app/helpers/spree/omniauth_callbacks_helper.rb +2 -0
  21. data/app/models/spree/authentication_method.rb +8 -2
  22. data/app/models/spree/social_configuration.rb +3 -0
  23. data/app/models/spree/user_authentication.rb +3 -1
  24. data/app/overrides/add_authentications_to_account_summary.rb +2 -0
  25. data/app/overrides/admin_configuration_decorator.rb +9 -2
  26. data/app/overrides/user_registrations_decorator.rb +2 -0
  27. data/app/views/spree/admin/authentication_methods/_form.html.erb +6 -22
  28. data/app/views/spree/admin/authentication_methods/edit.html.erb +5 -3
  29. data/app/views/spree/admin/authentication_methods/index.html.erb +22 -18
  30. data/app/views/spree/admin/authentication_methods/new.html.erb +5 -3
  31. data/app/views/spree/shared/_social.html.erb +5 -5
  32. data/app/views/spree/shared/_user_form.html.erb +3 -3
  33. data/app/views/spree/users/_new-customer.html.erb +2 -2
  34. data/app/views/spree/users/_social.html.erb +24 -22
  35. data/bin/console +17 -0
  36. data/bin/rails +15 -4
  37. data/bin/rake +7 -0
  38. data/bin/sandbox +72 -0
  39. data/bin/setup +8 -0
  40. data/config/locales/en.yml +1 -0
  41. data/config/locales/es-MX.yml +8 -4
  42. data/config/locales/es.yml +30 -0
  43. data/config/locales/it.yml +26 -0
  44. data/config/routes.rb +7 -5
  45. data/db/migrate/20120120163432_create_user_authentications.rb +3 -1
  46. data/db/migrate/20120123163222_create_authentication_methods.rb +3 -1
  47. data/lib/generators/solidus_social/install/install_generator.rb +13 -5
  48. data/lib/generators/solidus_social/install/templates/config/initializers/solidus_social.rb +50 -0
  49. data/lib/solidus_social.rb +24 -8
  50. data/lib/solidus_social/engine.rb +29 -55
  51. data/lib/solidus_social/facebook_omniauth_strategy_ext.rb +25 -0
  52. data/lib/solidus_social/factories.rb +4 -0
  53. data/lib/solidus_social/version.rb +3 -16
  54. data/solidus_social.gemspec +43 -46
  55. data/spec/controllers/spree/omniauth_callbacks_controller_spec.rb +42 -9
  56. data/spec/features/spree/admin/authentication_methods_configuration_spec.rb +21 -27
  57. data/spec/features/spree/sign_in_spec.rb +27 -19
  58. data/spec/lib/solidus_social/engine_spec.rb +9 -0
  59. data/spec/lib/solidus_social_speec.rb +25 -0
  60. data/spec/lib/spree/social_config_spec.rb +11 -0
  61. data/spec/models/spree/authentication_method_spec.rb +19 -0
  62. data/spec/models/spree/social_configuration_spec.rb +6 -0
  63. data/spec/models/spree/user_decorator_spec.rb +25 -2
  64. data/spec/spec_helper.rb +17 -29
  65. data/spec/support/omniauth.rb +4 -0
  66. metadata +71 -198
  67. data/.hound.yml +0 -26
  68. data/.travis.yml +0 -19
  69. data/Guardfile +0 -10
  70. data/app/assets/javascripts/spree/backend/solidus_social.js +0 -1
  71. data/app/assets/javascripts/spree/frontend/solidus_social.js +0 -1
  72. data/app/assets/stylesheets/spree/backend/solidus_social.css +0 -3
  73. data/app/controllers/spree/user_registrations_controller_decorator.rb +0 -15
  74. data/app/models/spree/user_decorator.rb +0 -16
  75. data/app/views/spree/admin/shared/_configurations_menu.html.erb +0 -4
  76. data/config/initializers/devise.rb +0 -13
  77. data/spec/lib/spree_social/engine_spec.rb +0 -16
  78. data/spec/support/capybara.rb +0 -18
  79. data/spec/support/database_cleaner.rb +0 -24
  80. data/spec/support/devise.rb +0 -3
  81. data/spec/support/factory_girl.rb +0 -7
  82. data/spec/support/spree.rb +0 -8
@@ -1,13 +1,15 @@
1
- RSpec.feature 'signing in using Omniauth', :js do
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe 'Signing in using Omniauth', :js do
2
4
  context 'facebook' do
3
- background do
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
- OmniAuth.config.test_mode = true
11
+ active: true
12
+ )
11
13
  OmniAuth.config.mock_auth[:facebook] = {
12
14
  'provider' => 'facebook',
13
15
  'uid' => '123545',
@@ -23,36 +25,43 @@ RSpec.feature 'signing in using Omniauth', :js do
23
25
  }
24
26
  end
25
27
 
26
- scenario 'going to sign in' do
27
- visit spree.root_path
28
- click_link 'Login'
29
- find('a[title="Login with facebook"]').trigger('click')
28
+ it 'going to sign in' do
29
+ visit spree.login_path
30
+ click_on 'Login with facebook'
30
31
  expect(page).to have_text 'You are now signed in with your facebook account.'
31
32
  click_link 'Logout'
32
33
  click_link 'Login'
33
- find('a[title="Login with facebook"]').trigger('click')
34
+ click_on 'Login with facebook'
34
35
  expect(page).to have_text 'You are now signed in with your facebook account.'
35
36
  end
36
37
 
37
38
  # Regression test for #91
38
- scenario "attempting to view 'My Account' works" do
39
- visit spree.root_path
40
- click_link 'Login'
41
- find('a[title="Login with facebook"]').trigger('click')
39
+ it "attempting to view 'My Account' works" do
40
+ visit spree.login_path
41
+ click_on 'Login with facebook'
42
42
  expect(page).to have_text 'You are now signed in with your facebook account.'
43
43
  click_link 'My Account'
44
44
  expect(page).to have_text 'My Account'
45
45
  end
46
+
47
+ it "view 'My Account'" do
48
+ visit spree.login_path
49
+ click_on 'Login with facebook'
50
+ expect(page).to have_text 'You are now signed in with your facebook account.'
51
+ click_link 'My Account'
52
+ expect(page).not_to have_selector 'div#social-signin-links'
53
+ end
46
54
  end
47
55
 
48
56
  context 'twitter' do
49
- background do
57
+ before do
50
58
  Spree::AuthenticationMethod.create!(
51
59
  provider: 'twitter',
52
60
  api_key: 'fake',
53
61
  api_secret: 'fake',
54
62
  environment: Rails.env,
55
- active: true)
63
+ active: true
64
+ )
56
65
  OmniAuth.config.test_mode = true
57
66
  OmniAuth.config.mock_auth[:twitter] = {
58
67
  'provider' => 'twitter',
@@ -68,10 +77,9 @@ RSpec.feature 'signing in using Omniauth', :js do
68
77
  }
69
78
  end
70
79
 
71
- scenario 'going to sign in' do
72
- visit spree.root_path
73
- click_link 'Login'
74
- find('a[title="Login with twitter"]').trigger('click')
80
+ it 'going to sign in' do
81
+ visit spree.login_path
82
+ click_on 'Login with twitter'
75
83
  expect(page).to have_text 'Please confirm your email address to continue'.upcase
76
84
  fill_in 'Email', with: 'user@example.com'
77
85
  click_button 'Create'
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe SolidusSocial::Engine do
4
+ describe 'USER_DECORATOR_PATH' do
5
+ it 'is pointing to the correct file' do
6
+ expect(File.exist? described_class::USER_DECORATOR_PATH).to eq(true)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe SolidusSocial do
4
+ describe '.configured_providers' do
5
+ subject { described_class.configured_providers }
6
+
7
+ it { is_expected.to match_array(["amazon", "facebook", "github", "google_oauth2", "twitter"]) }
8
+ end
9
+
10
+ describe '.init_providers' do
11
+ subject { described_class.init_providers }
12
+
13
+ around do |example|
14
+ previous_providers = Spree::SocialConfig.providers
15
+ Spree::SocialConfig.providers = { facebook: { api_key: "secret_key", api_secret: "secret_secret" } }
16
+ example.run
17
+ Spree::SocialConfig.providers = previous_providers
18
+ end
19
+
20
+ it "sets up Devise for the given providers" do
21
+ expect(described_class).to receive(:setup_key_for).with(:facebook, "secret_key", "secret_secret")
22
+ subject
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe Spree::SocialConfig do
4
+ it "changing a preference does not create a Spree::Preference" do
5
+ expect { subject.path_prefix = 'customer' }.not_to change(Spree::Preference, :count)
6
+ end
7
+
8
+ it "holds configuration for the five default providers" do
9
+ expect(subject.providers.keys).to match_array([:amazon, :facebook, :github, :google_oauth2, :twitter])
10
+ end
11
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe Spree::AuthenticationMethod do
4
+ describe '.provider_options' do
5
+ subject { described_class.provider_options }
6
+
7
+ let(:expected_provider_options) do
8
+ [
9
+ %w(Amazon amazon),
10
+ %w(Facebook facebook),
11
+ %w(Twitter twitter),
12
+ %w(Github github),
13
+ %w(Google google_oauth2)
14
+ ]
15
+ end
16
+
17
+ it { is_expected.to match_array(expected_provider_options) }
18
+ end
19
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe Spree::SocialConfiguration do
4
+ it { is_expected.to respond_to(:path_prefix) }
5
+ it { is_expected.to respond_to(:providers) }
6
+ 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
- context '.apply_omniauth' do
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
@@ -21,9 +23,30 @@ RSpec.describe Spree::User, type: :model do
21
23
  expect(user.email).to eq 'test@example.com'
22
24
  end
23
25
  end
26
+
27
+ context 'instance is valid' do
28
+ let(:user) { create(:user) { |user| user.email = nil } }
29
+ let(:omni_params) do
30
+ {
31
+ 'provider' => 'any_provider',
32
+ 'uid' => 12_345,
33
+ 'info' => { 'email' => 'test@example.com' }
34
+ }
35
+ end
36
+
37
+ before do
38
+ allow(auths).to receive(:build)
39
+ allow(auths).to receive(:empty?).and_return(false)
40
+ end
41
+
42
+ it 'builds a valid user' do
43
+ user.apply_omniauth(omni_params)
44
+ expect(user).to be_valid
45
+ end
46
+ end
24
47
  end
25
48
 
26
- context '.password_required?' do
49
+ describe '.password_required?' do
27
50
  before { user.password = nil }
28
51
 
29
52
  context 'user authentications is empty' do
data/spec/spec_helper.rb CHANGED
@@ -1,36 +1,24 @@
1
- require 'simplecov'
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
- ENV['RAILS_ENV'] ||= 'test'
3
+ # Configure Rails Environment
4
+ ENV['RAILS_ENV'] = 'test'
12
5
 
13
- begin
14
- require File.expand_path('../dummy/config/environment', __FILE__)
15
- rescue LoadError
16
- puts 'Could not load dummy application. Please ensure you have run `bundle exec rake test_app`'
17
- exit
18
- end
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
- require 'rspec/rails'
21
- require 'ffaker'
22
- require 'pry'
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 }
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ OmniAuth.config.test_mode = true
4
+ OmniAuth.config.logger = Rails.logger
metadata CHANGED
@@ -1,31 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_social
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Dyer
8
- autorequire:
9
- bindir: bin
8
+ autorequire:
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-10 00:00:00.000000000 Z
11
+ date: 2021-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: solidus_core
14
+ name: deface
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: omniauth
28
+ name: oa-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: oa-core
42
+ name: omniauth
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: omniauth-twitter
56
+ name: omniauth-amazon
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: omniauth-amazon
112
+ name: omniauth-twitter
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -123,69 +123,13 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: capybara
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 2.4.1
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 2.4.1
139
- - !ruby/object:Gem::Dependency
140
- name: database_cleaner
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - '='
144
- - !ruby/object:Gem::Version
145
- version: 1.3.0
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - '='
151
- - !ruby/object:Gem::Version
152
- version: 1.3.0
153
- - !ruby/object:Gem::Dependency
154
- name: rspec-rails
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 3.1.0
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: 3.1.0
167
- - !ruby/object:Gem::Dependency
168
- name: factory_girl
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '4.4'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '4.4'
181
- - !ruby/object:Gem::Dependency
182
- name: pry-rails
126
+ name: solidus_auth_devise
183
127
  requirement: !ruby/object:Gem::Requirement
184
128
  requirements:
185
129
  - - ">="
186
130
  - !ruby/object:Gem::Version
187
131
  version: '0'
188
- type: :development
132
+ type: :runtime
189
133
  prerelease: false
190
134
  version_requirements: !ruby/object:Gem::Requirement
191
135
  requirements:
@@ -193,91 +137,41 @@ dependencies:
193
137
  - !ruby/object:Gem::Version
194
138
  version: '0'
195
139
  - !ruby/object:Gem::Dependency
196
- name: selenium-webdriver
140
+ name: solidus_core
197
141
  requirement: !ruby/object:Gem::Requirement
198
142
  requirements:
199
143
  - - ">="
200
144
  - !ruby/object:Gem::Version
201
- version: 2.41.0
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: 2.41.0
209
- - !ruby/object:Gem::Dependency
210
- name: poltergeist
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - "~>"
145
+ version: 2.0.0
146
+ - - "<"
214
147
  - !ruby/object:Gem::Version
215
- version: 1.5.0
216
- type: :development
148
+ version: '4'
149
+ type: :runtime
217
150
  prerelease: false
218
151
  version_requirements: !ruby/object:Gem::Requirement
219
152
  requirements:
220
- - - "~>"
221
- - !ruby/object:Gem::Version
222
- version: 1.5.0
223
- - !ruby/object:Gem::Dependency
224
- name: simplecov
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - "~>"
153
+ - - ">="
228
154
  - !ruby/object:Gem::Version
229
- version: 0.9.0
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - "~>"
155
+ version: 2.0.0
156
+ - - "<"
235
157
  - !ruby/object:Gem::Version
236
- version: 0.9.0
158
+ version: '4'
237
159
  - !ruby/object:Gem::Dependency
238
- name: sqlite3
160
+ name: solidus_support
239
161
  requirement: !ruby/object:Gem::Requirement
240
162
  requirements:
241
163
  - - "~>"
242
164
  - !ruby/object:Gem::Version
243
- version: 1.3.10
244
- type: :development
165
+ version: '0.5'
166
+ type: :runtime
245
167
  prerelease: false
246
168
  version_requirements: !ruby/object:Gem::Requirement
247
169
  requirements:
248
170
  - - "~>"
249
171
  - !ruby/object:Gem::Version
250
- version: 1.3.10
251
- - !ruby/object:Gem::Dependency
252
- name: coffee-rails
253
- requirement: !ruby/object:Gem::Requirement
254
- requirements:
255
- - - ">="
256
- - !ruby/object:Gem::Version
257
- version: '0'
258
- type: :development
259
- prerelease: false
260
- version_requirements: !ruby/object:Gem::Requirement
261
- requirements:
262
- - - ">="
263
- - !ruby/object:Gem::Version
264
- version: '0'
265
- - !ruby/object:Gem::Dependency
266
- name: sass-rails
267
- requirement: !ruby/object:Gem::Requirement
268
- requirements:
269
- - - ">="
270
- - !ruby/object:Gem::Version
271
- version: '0'
272
- type: :development
273
- prerelease: false
274
- version_requirements: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - ">="
277
- - !ruby/object:Gem::Version
278
- version: '0'
172
+ version: '0.5'
279
173
  - !ruby/object:Gem::Dependency
280
- name: guard-rspec
174
+ name: solidus_dev_support
281
175
  requirement: !ruby/object:Gem::Requirement
282
176
  requirements:
283
177
  - - ">="
@@ -290,66 +184,37 @@ dependencies:
290
184
  - - ">="
291
185
  - !ruby/object:Gem::Version
292
186
  version: '0'
293
- - !ruby/object:Gem::Dependency
294
- name: rubocop
295
- requirement: !ruby/object:Gem::Requirement
296
- requirements:
297
- - - ">="
298
- - !ruby/object:Gem::Version
299
- version: 0.24.1
300
- type: :development
301
- prerelease: false
302
- version_requirements: !ruby/object:Gem::Requirement
303
- requirements:
304
- - - ">="
305
- - !ruby/object:Gem::Version
306
- version: 0.24.1
307
- - !ruby/object:Gem::Dependency
308
- name: rake
309
- requirement: !ruby/object:Gem::Requirement
310
- requirements:
311
- - - "<"
312
- - !ruby/object:Gem::Version
313
- version: '11'
314
- type: :development
315
- prerelease: false
316
- version_requirements: !ruby/object:Gem::Requirement
317
- requirements:
318
- - - "<"
319
- - !ruby/object:Gem::Version
320
- version: '11'
321
- description: Adds social network login services (OAuth) to Spree
187
+ description:
322
188
  email: jdyer@spreecommerce.com
323
189
  executables: []
324
190
  extensions: []
325
191
  extra_rdoc_files: []
326
192
  files:
193
+ - ".circleci/config.yml"
194
+ - ".gem_release.yml"
327
195
  - ".gitignore"
328
- - ".hound.yml"
329
196
  - ".rspec"
330
197
  - ".rubocop.yml"
331
- - ".travis.yml"
198
+ - ".rubocop_todo.yml"
332
199
  - CHANGELOG.md
333
200
  - CONTRIBUTING.md
334
201
  - Gemfile
335
- - Guardfile
336
- - LICENSE.md
202
+ - LICENSE
337
203
  - README.md
338
204
  - Rakefile
339
- - app/assets/javascripts/spree/backend/solidus_social.js
340
- - app/assets/javascripts/spree/frontend/solidus_social.js
341
- - app/assets/stylesheets/spree/backend/solidus_social.css
342
205
  - app/assets/stylesheets/spree/frontend/fontello.css
343
206
  - app/assets/stylesheets/spree/frontend/solidus_social.css
344
207
  - app/controllers/spree/admin/authentication_methods_controller.rb
345
208
  - app/controllers/spree/omniauth_callbacks_controller.rb
346
209
  - app/controllers/spree/user_authentications_controller.rb
347
- - app/controllers/spree/user_registrations_controller_decorator.rb
210
+ - app/core/spree/permission_sets/authentication_method_display.rb
211
+ - app/core/spree/permission_sets/authentication_method_management.rb
212
+ - app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb
213
+ - app/decorators/models/solidus_social/spree/user_decorator.rb
348
214
  - app/helpers/spree/omniauth_callbacks_helper.rb
349
215
  - app/models/spree/authentication_method.rb
350
216
  - app/models/spree/social_configuration.rb
351
217
  - app/models/spree/user_authentication.rb
352
- - app/models/spree/user_decorator.rb
353
218
  - app/overrides/add_authentications_to_account_summary.rb
354
219
  - app/overrides/admin_configuration_decorator.rb
355
220
  - app/overrides/user_registrations_decorator.rb
@@ -357,17 +222,21 @@ files:
357
222
  - app/views/spree/admin/authentication_methods/edit.html.erb
358
223
  - app/views/spree/admin/authentication_methods/index.html.erb
359
224
  - app/views/spree/admin/authentication_methods/new.html.erb
360
- - app/views/spree/admin/shared/_configurations_menu.html.erb
361
225
  - app/views/spree/shared/_social.html.erb
362
226
  - app/views/spree/shared/_user_form.html.erb
363
227
  - app/views/spree/users/_new-customer.html.erb
364
228
  - app/views/spree/users/_social.html.erb
229
+ - bin/console
365
230
  - bin/rails
366
- - config/initializers/devise.rb
231
+ - bin/rake
232
+ - bin/sandbox
233
+ - bin/setup
367
234
  - config/locales/de.yml
368
235
  - config/locales/en.yml
369
236
  - config/locales/es-MX.yml
237
+ - config/locales/es.yml
370
238
  - config/locales/fr.yml
239
+ - config/locales/it.yml
371
240
  - config/locales/nl.yml
372
241
  - config/locales/pt-BR.yml
373
242
  - config/locales/sv.yml
@@ -375,26 +244,32 @@ files:
375
244
  - db/migrate/20120120163432_create_user_authentications.rb
376
245
  - db/migrate/20120123163222_create_authentication_methods.rb
377
246
  - lib/generators/solidus_social/install/install_generator.rb
247
+ - lib/generators/solidus_social/install/templates/config/initializers/solidus_social.rb
378
248
  - lib/solidus_social.rb
379
249
  - lib/solidus_social/engine.rb
250
+ - lib/solidus_social/facebook_omniauth_strategy_ext.rb
251
+ - lib/solidus_social/factories.rb
380
252
  - lib/solidus_social/version.rb
381
253
  - solidus_social.gemspec
382
254
  - spec/controllers/spree/omniauth_callbacks_controller_spec.rb
383
255
  - spec/features/spree/admin/authentication_methods_configuration_spec.rb
384
256
  - spec/features/spree/sign_in_spec.rb
385
- - spec/lib/spree_social/engine_spec.rb
257
+ - spec/lib/solidus_social/engine_spec.rb
258
+ - spec/lib/solidus_social_speec.rb
259
+ - spec/lib/spree/social_config_spec.rb
260
+ - spec/models/spree/authentication_method_spec.rb
261
+ - spec/models/spree/social_configuration_spec.rb
386
262
  - spec/models/spree/user_decorator_spec.rb
387
263
  - spec/spec_helper.rb
388
- - spec/support/capybara.rb
389
- - spec/support/database_cleaner.rb
390
- - spec/support/devise.rb
391
- - spec/support/factory_girl.rb
392
- - spec/support/spree.rb
393
- homepage: http://www.spreecommerce.com
264
+ - spec/support/omniauth.rb
265
+ homepage: https://github.com/solidusio-contrib/solidus_social#readme
394
266
  licenses:
395
- - BSD-3
396
- metadata: {}
397
- post_install_message:
267
+ - BSD-3-Clause
268
+ metadata:
269
+ homepage_uri: https://github.com/solidusio-contrib/solidus_social#readme
270
+ source_code_uri: https://github.com/solidusio-contrib/solidus_social
271
+ changelog_uri: https://github.com/solidusio-contrib/solidus_social/blob/master/CHANGELOG.md
272
+ post_install_message:
398
273
  rdoc_options: []
399
274
  require_paths:
400
275
  - lib
@@ -402,28 +277,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
402
277
  requirements:
403
278
  - - ">="
404
279
  - !ruby/object:Gem::Version
405
- version: 1.9.3
280
+ version: '2.4'
406
281
  required_rubygems_version: !ruby/object:Gem::Requirement
407
282
  requirements:
408
283
  - - ">="
409
284
  - !ruby/object:Gem::Version
410
285
  version: '0'
411
- requirements:
412
- - none
413
- rubyforge_project:
414
- rubygems_version: 2.4.5.1
415
- signing_key:
286
+ requirements: []
287
+ rubygems_version: 3.1.4
288
+ signing_key:
416
289
  specification_version: 4
417
- summary: Adds social network login services (OAuth) to Spree
290
+ summary: Adds social network login services (OAuth) to Solidus
418
291
  test_files:
419
292
  - spec/controllers/spree/omniauth_callbacks_controller_spec.rb
420
293
  - spec/features/spree/admin/authentication_methods_configuration_spec.rb
421
294
  - spec/features/spree/sign_in_spec.rb
422
- - spec/lib/spree_social/engine_spec.rb
295
+ - spec/lib/solidus_social/engine_spec.rb
296
+ - spec/lib/solidus_social_speec.rb
297
+ - spec/lib/spree/social_config_spec.rb
298
+ - spec/models/spree/authentication_method_spec.rb
299
+ - spec/models/spree/social_configuration_spec.rb
423
300
  - spec/models/spree/user_decorator_spec.rb
424
301
  - spec/spec_helper.rb
425
- - spec/support/capybara.rb
426
- - spec/support/database_cleaner.rb
427
- - spec/support/devise.rb
428
- - spec/support/factory_girl.rb
429
- - spec/support/spree.rb
302
+ - spec/support/omniauth.rb