solidus_social 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.hound.yml +26 -0
  4. data/.rspec +3 -0
  5. data/.rubocop.yml +8 -0
  6. data/.travis.yml +19 -0
  7. data/CHANGELOG.md +5 -0
  8. data/CONTRIBUTING.md +31 -0
  9. data/Gemfile +7 -0
  10. data/Guardfile +10 -0
  11. data/LICENSE.md +26 -0
  12. data/README.md +148 -0
  13. data/Rakefile +15 -0
  14. data/app/assets/javascripts/spree/backend/solidus_social.js +1 -0
  15. data/app/assets/javascripts/spree/frontend/solidus_social.js +1 -0
  16. data/app/assets/stylesheets/spree/backend/solidus_social.css +3 -0
  17. data/app/assets/stylesheets/spree/frontend/fontello.css +64 -0
  18. data/app/assets/stylesheets/spree/frontend/solidus_social.css +4 -0
  19. data/app/controllers/spree/admin/authentication_methods_controller.rb +18 -0
  20. data/app/controllers/spree/omniauth_callbacks_controller.rb +67 -0
  21. data/app/controllers/spree/user_authentications_controller.rb +12 -0
  22. data/app/controllers/spree/user_registrations_controller_decorator.rb +15 -0
  23. data/app/helpers/spree/omniauth_callbacks_helper.rb +5 -0
  24. data/app/models/spree/authentication_method.rb +13 -0
  25. data/app/models/spree/social_configuration.rb +5 -0
  26. data/app/models/spree/user_authentication.rb +3 -0
  27. data/app/models/spree/user_decorator.rb +16 -0
  28. data/app/overrides/add_authentications_to_account_summary.rb +5 -0
  29. data/app/overrides/admin_configuration_decorator.rb +5 -0
  30. data/app/overrides/user_registrations_decorator.rb +17 -0
  31. data/app/views/spree/admin/authentication_methods/_form.html.erb +45 -0
  32. data/app/views/spree/admin/authentication_methods/edit.html.erb +18 -0
  33. data/app/views/spree/admin/authentication_methods/index.html.erb +54 -0
  34. data/app/views/spree/admin/authentication_methods/new.html.erb +18 -0
  35. data/app/views/spree/admin/shared/_configurations_menu.html.erb +4 -0
  36. data/app/views/spree/shared/_social.html.erb +11 -0
  37. data/app/views/spree/shared/_user_form.html.erb +19 -0
  38. data/app/views/spree/users/_new-customer.html.erb +5 -0
  39. data/app/views/spree/users/_social.html.erb +28 -0
  40. data/bin/rails +7 -0
  41. data/config/initializers/devise.rb +13 -0
  42. data/config/locales/de.yml +26 -0
  43. data/config/locales/en.yml +26 -0
  44. data/config/locales/es-MX.yml +26 -0
  45. data/config/locales/fr.yml +26 -0
  46. data/config/locales/nl.yml +26 -0
  47. data/config/locales/pt-BR.yml +26 -0
  48. data/config/locales/sv.yml +26 -0
  49. data/config/routes.rb +14 -0
  50. data/db/migrate/20120120163432_create_user_authentications.rb +10 -0
  51. data/db/migrate/20120123163222_create_authentication_methods.rb +13 -0
  52. data/lib/generators/solidus_social/install/install_generator.rb +24 -0
  53. data/lib/solidus_social.rb +10 -0
  54. data/lib/solidus_social/engine.rb +70 -0
  55. data/lib/solidus_social/version.rb +18 -0
  56. data/solidus_social.gemspec +47 -0
  57. data/spec/controllers/spree/omniauth_callbacks_controller_spec.rb +160 -0
  58. data/spec/features/spree/admin/authentication_methods_configuration_spec.rb +79 -0
  59. data/spec/features/spree/sign_in_spec.rb +81 -0
  60. data/spec/lib/spree_social/engine_spec.rb +16 -0
  61. data/spec/models/spree/user_decorator_spec.rb +54 -0
  62. data/spec/spec_helper.rb +36 -0
  63. data/spec/support/capybara.rb +18 -0
  64. data/spec/support/database_cleaner.rb +24 -0
  65. data/spec/support/devise.rb +3 -0
  66. data/spec/support/factory_girl.rb +7 -0
  67. data/spec/support/spree.rb +8 -0
  68. metadata +429 -0
@@ -0,0 +1,79 @@
1
+ RSpec.feature 'Admin Authentication Methods', :js do
2
+ stub_authorization!
3
+
4
+ context 'elements' do
5
+ scenario 'has configuration tab' do
6
+ visit spree.admin_path
7
+ click_link 'Settings'
8
+ expect(page).to have_text 'SOCIAL AUTHENTICATION METHODS'
9
+ end
10
+ end
11
+
12
+ context 'when no auth methods exists' do
13
+ background do
14
+ visit spree.admin_path
15
+ click_link 'Settings'
16
+ click_link 'Social Authentication Methods'
17
+ end
18
+
19
+ scenario 'can create new' do
20
+ expect(page).to have_text 'NO AUTHENTICATION METHODS FOUND, ADD ONE!'
21
+
22
+ click_link 'New Authentication Method'
23
+ expect(page).to have_text 'BACK TO AUTHENTICATION METHODS LIST'
24
+ select 'Test', from: 'authentication_method[environment]'
25
+ select2 'Github', from: 'Social Provider'
26
+ fill_in 'API Key', with: 'KEY123'
27
+ fill_in 'API Secret', with: 'SEC123'
28
+
29
+ click_button 'Create'
30
+ expect(page).to have_text 'successfully created!'
31
+ end
32
+
33
+ scenario 'does not save with empty fields' do
34
+ click_link 'New Authentication Method'
35
+ click_button 'Create'
36
+ expect(page).to have_text 'errors prohibited this record from being saved'
37
+ end
38
+ end
39
+
40
+ context 'when auth method exists' do
41
+ given!(:authentication_method) do
42
+ Spree::AuthenticationMethod.create!(
43
+ provider: 'facebook',
44
+ api_key: 'fake',
45
+ api_secret: 'fake',
46
+ environment: Rails.env,
47
+ active: true)
48
+ end
49
+
50
+ background do
51
+ visit spree.admin_path
52
+ click_link 'Settings'
53
+ click_link 'Social Authentication Methods'
54
+ end
55
+
56
+ scenario 'can be updated' do
57
+ within_row(1) do
58
+ click_icon :edit
59
+ end
60
+
61
+ fill_in 'API Key', with: 'fake'
62
+ fill_in 'API Secret', with: 'fake'
63
+
64
+ click_button 'Update'
65
+ expect(page).to have_text 'successfully updated!'
66
+ end
67
+
68
+ scenario 'can be deleted' do
69
+ within_row(1) do
70
+ click_icon :trash
71
+ end
72
+
73
+ page.driver.browser.switch_to.alert.accept unless Capybara.javascript_driver == :poltergeist
74
+
75
+ expect(page).to have_text 'successfully removed!'
76
+ expect(page).not_to have_text authentication_method.provider
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,81 @@
1
+ RSpec.feature 'signing in using Omniauth', :js do
2
+ context 'facebook' do
3
+ background do
4
+ Spree::AuthenticationMethod.create!(
5
+ provider: 'facebook',
6
+ api_key: 'fake',
7
+ api_secret: 'fake',
8
+ environment: Rails.env,
9
+ active: true)
10
+ OmniAuth.config.test_mode = true
11
+ OmniAuth.config.mock_auth[:facebook] = {
12
+ 'provider' => 'facebook',
13
+ 'uid' => '123545',
14
+ 'info' => {
15
+ 'name' => 'mockuser',
16
+ 'email' => 'mockuser@example.com',
17
+ 'image' => 'mock_user_thumbnail_url'
18
+ },
19
+ 'credentials' => {
20
+ 'token' => 'mock_token',
21
+ 'secret' => 'mock_secret'
22
+ }
23
+ }
24
+ end
25
+
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')
30
+ expect(page).to have_text 'You are now signed in with your facebook account.'
31
+ click_link 'Logout'
32
+ click_link 'Login'
33
+ find('a[title="Login with facebook"]').trigger('click')
34
+ expect(page).to have_text 'You are now signed in with your facebook account.'
35
+ end
36
+
37
+ # 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')
42
+ expect(page).to have_text 'You are now signed in with your facebook account.'
43
+ click_link 'My Account'
44
+ expect(page).to have_text 'My Account'
45
+ end
46
+ end
47
+
48
+ context 'twitter' do
49
+ background do
50
+ Spree::AuthenticationMethod.create!(
51
+ provider: 'twitter',
52
+ api_key: 'fake',
53
+ api_secret: 'fake',
54
+ environment: Rails.env,
55
+ active: true)
56
+ OmniAuth.config.test_mode = true
57
+ OmniAuth.config.mock_auth[:twitter] = {
58
+ 'provider' => 'twitter',
59
+ 'uid' => '123545',
60
+ 'info' => {
61
+ 'name' => 'mockuser',
62
+ 'image' => 'mock_user_thumbnail_url'
63
+ },
64
+ 'credentials' => {
65
+ 'token' => 'mock_token',
66
+ 'secret' => 'mock_secret'
67
+ }
68
+ }
69
+ end
70
+
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')
75
+ expect(page).to have_text 'Please confirm your email address to continue'.upcase
76
+ fill_in 'Email', with: 'user@example.com'
77
+ click_button 'Create'
78
+ expect(page).to have_text 'Welcome! You have signed up successfully.'
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,16 @@
1
+ RSpec.describe SolidusSocial do
2
+ context 'constants' do
3
+ it { is_expected.to be_const_defined(:OAUTH_PROVIDERS) }
4
+
5
+ it 'contain all providers' do
6
+ oauth_providers = [
7
+ %w(Amazon amazon),
8
+ %w(Facebook facebook),
9
+ %w(Twitter twitter),
10
+ %w(Github github),
11
+ %w(Google google_oauth2)
12
+ ]
13
+ expect(described_class::OAUTH_PROVIDERS).to match_array oauth_providers
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,54 @@
1
+ RSpec.describe Spree::User, type: :model do
2
+ let(:user) { create(:user) }
3
+ let(:omni_params) { { 'provider' => 'twitter', 'uid' => 12_345 } }
4
+ let(:auths) { double 'auths' }
5
+
6
+ context '.apply_omniauth' do
7
+ before { allow(user).to receive(:user_authentications).and_return(auths) }
8
+
9
+ it 'builds an associated auth source' do
10
+ expect(auths).to receive(:build)
11
+ user.apply_omniauth(omni_params)
12
+ end
13
+
14
+ context 'omniauth params contains email' do
15
+ let(:user) { create(:user) { |user| user.email = nil } }
16
+ let(:omni_params) { { 'provider' => 'google_oauth2', 'uid' => 12_345, 'info' => { 'email' => 'test@example.com' } } }
17
+
18
+ it 'sets email from omniauth params' do
19
+ expect(auths).to receive(:build)
20
+ user.apply_omniauth(omni_params)
21
+ expect(user.email).to eq 'test@example.com'
22
+ end
23
+ end
24
+ end
25
+
26
+ context '.password_required?' do
27
+ before { user.password = nil }
28
+
29
+ context 'user authentications is empty' do
30
+ it 'returns true' do
31
+ expect(user.password_required?).to be(true)
32
+ end
33
+ end
34
+
35
+ context 'user authentications is not empty' do
36
+ before do
37
+ allow(user).to receive(:user_authentications).and_return(auths)
38
+ allow(auths).to receive(:empty?).and_return(false)
39
+ end
40
+
41
+ it 'returns false' do
42
+ expect(user.password_required?).to be(false)
43
+ end
44
+ end
45
+
46
+ context 'when the password has been set' do
47
+ before { user.password = 'foobar' }
48
+
49
+ it 'returns true' do
50
+ expect(user.password_required?).to be(true)
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,36 @@
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
10
+
11
+ ENV['RAILS_ENV'] ||= 'test'
12
+
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
19
+
20
+ require 'rspec/rails'
21
+ require 'ffaker'
22
+ require 'pry'
23
+
24
+ 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
+ config.infer_spec_type_from_file_location!
30
+
31
+ config.expect_with :rspec do |expectations|
32
+ expectations.syntax = :expect
33
+ end
34
+ end
35
+
36
+ Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |file| require file }
@@ -0,0 +1,18 @@
1
+ require 'capybara/rspec'
2
+ require 'capybara/rails'
3
+ require 'capybara/poltergeist'
4
+
5
+ RSpec.configure do |config|
6
+ config.include Rack::Test::Methods, type: :requests
7
+
8
+ Capybara.javascript_driver = :poltergeist
9
+ Capybara.register_driver(:poltergeist) do |app|
10
+ Capybara::Poltergeist::Driver.new app, js_errors: true, timeout: 60
11
+ end
12
+
13
+ config.before(:each, :js) do
14
+ if Capybara.javascript_driver == :selenium
15
+ page.driver.browser.manage.window.maximize
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,24 @@
1
+ require 'database_cleaner'
2
+
3
+ RSpec.configure do |config|
4
+
5
+ config.before(:suite) do
6
+ DatabaseCleaner.clean_with :truncation
7
+ end
8
+
9
+ config.before do
10
+ DatabaseCleaner.strategy = :transaction
11
+ end
12
+
13
+ config.before(:each, :js) do
14
+ DatabaseCleaner.strategy = :truncation
15
+ end
16
+
17
+ config.before do
18
+ DatabaseCleaner.start
19
+ end
20
+
21
+ config.after do
22
+ DatabaseCleaner.clean
23
+ end
24
+ end
@@ -0,0 +1,3 @@
1
+ RSpec.configure do |config|
2
+ config.include Devise::TestHelpers, type: :controller
3
+ end
@@ -0,0 +1,7 @@
1
+ require 'factory_girl'
2
+
3
+ FactoryGirl.find_definitions
4
+
5
+ RSpec.configure do |config|
6
+ config.include FactoryGirl::Syntax::Methods
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'spree/testing_support/factories'
2
+ require 'spree/testing_support/authorization_helpers'
3
+ require 'spree/testing_support/url_helpers'
4
+ require 'spree/testing_support/capybara_ext'
5
+
6
+ RSpec.configure do |config|
7
+ config.include Spree::TestingSupport::UrlHelpers
8
+ end
metadata ADDED
@@ -0,0 +1,429 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: solidus_social
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - John Dyer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: solidus_core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: omniauth
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: oa-core
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: omniauth-twitter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: omniauth-facebook
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: omniauth-github
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: omniauth-google-oauth2
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: omniauth-amazon
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
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
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: selenium-webdriver
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !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
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: 1.5.0
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.0
223
+ - !ruby/object:Gem::Dependency
224
+ name: simplecov
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !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
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: 0.9.0
237
+ - !ruby/object:Gem::Dependency
238
+ name: sqlite3
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: 1.3.10
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !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'
279
+ - !ruby/object:Gem::Dependency
280
+ name: guard-rspec
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: '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'
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
322
+ email: jdyer@spreecommerce.com
323
+ executables: []
324
+ extensions: []
325
+ extra_rdoc_files: []
326
+ files:
327
+ - ".gitignore"
328
+ - ".hound.yml"
329
+ - ".rspec"
330
+ - ".rubocop.yml"
331
+ - ".travis.yml"
332
+ - CHANGELOG.md
333
+ - CONTRIBUTING.md
334
+ - Gemfile
335
+ - Guardfile
336
+ - LICENSE.md
337
+ - README.md
338
+ - 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
+ - app/assets/stylesheets/spree/frontend/fontello.css
343
+ - app/assets/stylesheets/spree/frontend/solidus_social.css
344
+ - app/controllers/spree/admin/authentication_methods_controller.rb
345
+ - app/controllers/spree/omniauth_callbacks_controller.rb
346
+ - app/controllers/spree/user_authentications_controller.rb
347
+ - app/controllers/spree/user_registrations_controller_decorator.rb
348
+ - app/helpers/spree/omniauth_callbacks_helper.rb
349
+ - app/models/spree/authentication_method.rb
350
+ - app/models/spree/social_configuration.rb
351
+ - app/models/spree/user_authentication.rb
352
+ - app/models/spree/user_decorator.rb
353
+ - app/overrides/add_authentications_to_account_summary.rb
354
+ - app/overrides/admin_configuration_decorator.rb
355
+ - app/overrides/user_registrations_decorator.rb
356
+ - app/views/spree/admin/authentication_methods/_form.html.erb
357
+ - app/views/spree/admin/authentication_methods/edit.html.erb
358
+ - app/views/spree/admin/authentication_methods/index.html.erb
359
+ - app/views/spree/admin/authentication_methods/new.html.erb
360
+ - app/views/spree/admin/shared/_configurations_menu.html.erb
361
+ - app/views/spree/shared/_social.html.erb
362
+ - app/views/spree/shared/_user_form.html.erb
363
+ - app/views/spree/users/_new-customer.html.erb
364
+ - app/views/spree/users/_social.html.erb
365
+ - bin/rails
366
+ - config/initializers/devise.rb
367
+ - config/locales/de.yml
368
+ - config/locales/en.yml
369
+ - config/locales/es-MX.yml
370
+ - config/locales/fr.yml
371
+ - config/locales/nl.yml
372
+ - config/locales/pt-BR.yml
373
+ - config/locales/sv.yml
374
+ - config/routes.rb
375
+ - db/migrate/20120120163432_create_user_authentications.rb
376
+ - db/migrate/20120123163222_create_authentication_methods.rb
377
+ - lib/generators/solidus_social/install/install_generator.rb
378
+ - lib/solidus_social.rb
379
+ - lib/solidus_social/engine.rb
380
+ - lib/solidus_social/version.rb
381
+ - solidus_social.gemspec
382
+ - spec/controllers/spree/omniauth_callbacks_controller_spec.rb
383
+ - spec/features/spree/admin/authentication_methods_configuration_spec.rb
384
+ - spec/features/spree/sign_in_spec.rb
385
+ - spec/lib/spree_social/engine_spec.rb
386
+ - spec/models/spree/user_decorator_spec.rb
387
+ - 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
394
+ licenses:
395
+ - BSD-3
396
+ metadata: {}
397
+ post_install_message:
398
+ rdoc_options: []
399
+ require_paths:
400
+ - lib
401
+ required_ruby_version: !ruby/object:Gem::Requirement
402
+ requirements:
403
+ - - ">="
404
+ - !ruby/object:Gem::Version
405
+ version: 1.9.3
406
+ required_rubygems_version: !ruby/object:Gem::Requirement
407
+ requirements:
408
+ - - ">="
409
+ - !ruby/object:Gem::Version
410
+ version: '0'
411
+ requirements:
412
+ - none
413
+ rubyforge_project:
414
+ rubygems_version: 2.4.5.1
415
+ signing_key:
416
+ specification_version: 4
417
+ summary: Adds social network login services (OAuth) to Spree
418
+ test_files:
419
+ - spec/controllers/spree/omniauth_callbacks_controller_spec.rb
420
+ - spec/features/spree/admin/authentication_methods_configuration_spec.rb
421
+ - spec/features/spree/sign_in_spec.rb
422
+ - spec/lib/spree_social/engine_spec.rb
423
+ - spec/models/spree/user_decorator_spec.rb
424
+ - 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