spree_favorite_products 3.0.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.rspec +1 -1
  4. data/Gemfile +10 -11
  5. data/README.md +8 -25
  6. data/Rakefile +1 -2
  7. data/app/assets/javascripts/spree/backend/spree_favorite_products.js +0 -0
  8. data/app/assets/javascripts/spree/frontend/spree_favorite_products.js +23 -0
  9. data/app/assets/stylesheets/spree/backend/spree_favorite_products.css +0 -0
  10. data/app/assets/stylesheets/spree/frontend/spree_favorite_products.css +0 -0
  11. data/app/controllers/spree/admin/favorite_products_controller.rb +14 -5
  12. data/app/controllers/spree/admin/products_controller_decorator.rb +6 -0
  13. data/app/controllers/spree/admin/users_controller_decorator.rb +5 -0
  14. data/app/controllers/spree/favorite_products_controller.rb +14 -6
  15. data/app/models/spree/app_configuration_decorator.rb +2 -1
  16. data/app/models/spree/favorite.rb +9 -6
  17. data/app/models/spree/product_decorator.rb +6 -10
  18. data/app/models/spree/user_decorator.rb +5 -5
  19. data/app/overrides/add_favorite_products_per_page_configuration.rb +5 -5
  20. data/app/overrides/add_favorite_products_to_products_tab.rb +4 -4
  21. data/app/overrides/add_favorite_users_tab_to_products.rb +10 -0
  22. data/app/overrides/add_link_to_mark_product_as_favorite.rb +8 -7
  23. data/app/overrides/add_link_to_users_favorite_products.rb +5 -5
  24. data/app/overrides/addd_favorite_products_tab_to_users.rb +10 -0
  25. data/app/views/spree/admin/favorite_products/_users.html.erb +25 -0
  26. data/app/views/spree/admin/favorite_products/index.html.erb +9 -16
  27. data/app/views/spree/admin/products/favorite_users.html.erb +14 -0
  28. data/app/views/spree/admin/users/favorite_products.html.erb +50 -0
  29. data/app/views/spree/favorite_products/destroy.js.erb +1 -1
  30. data/app/views/spree/favorite_products/index.html.erb +6 -6
  31. data/config/locales/bg.yml +13 -0
  32. data/config/locales/en.yml +21 -3
  33. data/config/locales/pl.yml +19 -0
  34. data/config/routes.rb +11 -3
  35. data/db/migrate/20130705080641_create_table_favorites.rb +1 -1
  36. data/db/migrate/20130710105100_rename_favorites_to_spree_favorites.rb +1 -1
  37. data/db/migrate/20160304152800_add_favorites_user_counts_to_product.rb +6 -0
  38. data/lib/generators/spree_favorite_products/install/install_generator.rb +4 -3
  39. data/spec/controllers/spree/admin/favorite_products_controller_spec.rb +31 -41
  40. data/spec/controllers/spree/admin/products_controller_decorator_spec.rb +28 -0
  41. data/spec/controllers/spree/admin/users_controller_decorator_spec.rb +28 -0
  42. data/spec/controllers/spree/favorite_products_controller_spec.rb +25 -33
  43. data/spec/models/spree/app_configuration_decorator_spec.rb +2 -2
  44. data/spec/models/spree/favorite_spec.rb +21 -19
  45. data/spec/models/spree/product_decorator_spec.rb +16 -16
  46. data/spec/models/spree/user_decorator_spec.rb +9 -8
  47. data/spec/spec_helper.rb +21 -0
  48. data/spree_favorite_products.gemspec +9 -5
  49. metadata +80 -7
  50. data/Gemfile.lock +0 -345
@@ -1,345 +0,0 @@
1
- GIT
2
- remote: git://github.com/spree/spree_auth_devise.git
3
- revision: f231fce43686d66fe3e6d65ba8595b4474c49895
4
- branch: 3-0-stable
5
- specs:
6
- spree_auth_devise (3.0.0)
7
- devise (~> 3.4.1)
8
- devise-encryptable (= 0.1.2)
9
- json
10
- multi_json
11
- spree_core (~> 3.0.0)
12
-
13
- PATH
14
- remote: .
15
- specs:
16
- spree_favorite_products (2.2.3)
17
- spree_core (~> 3.0.0)
18
-
19
- GEM
20
- remote: https://rubygems.org/
21
- specs:
22
- actionmailer (4.2.5)
23
- actionpack (= 4.2.5)
24
- actionview (= 4.2.5)
25
- activejob (= 4.2.5)
26
- mail (~> 2.5, >= 2.5.4)
27
- rails-dom-testing (~> 1.0, >= 1.0.5)
28
- actionpack (4.2.5)
29
- actionview (= 4.2.5)
30
- activesupport (= 4.2.5)
31
- rack (~> 1.6)
32
- rack-test (~> 0.6.2)
33
- rails-dom-testing (~> 1.0, >= 1.0.5)
34
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
35
- actionview (4.2.5)
36
- activesupport (= 4.2.5)
37
- builder (~> 3.1)
38
- erubis (~> 2.7.0)
39
- rails-dom-testing (~> 1.0, >= 1.0.5)
40
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
41
- activejob (4.2.5)
42
- activesupport (= 4.2.5)
43
- globalid (>= 0.3.0)
44
- activemerchant (1.47.0)
45
- activesupport (>= 3.2.14, < 5.0.0)
46
- builder (>= 2.1.2, < 4.0.0)
47
- i18n (>= 0.6.9)
48
- nokogiri (~> 1.4)
49
- activemodel (4.2.5)
50
- activesupport (= 4.2.5)
51
- builder (~> 3.1)
52
- activerecord (4.2.5)
53
- activemodel (= 4.2.5)
54
- activesupport (= 4.2.5)
55
- arel (~> 6.0)
56
- activesupport (4.2.5)
57
- i18n (~> 0.7)
58
- json (~> 1.7, >= 1.7.7)
59
- minitest (~> 5.1)
60
- thread_safe (~> 0.3, >= 0.3.4)
61
- tzinfo (~> 1.1)
62
- acts_as_list (0.7.2)
63
- activerecord (>= 3.0)
64
- addressable (2.3.8)
65
- arel (6.0.3)
66
- autoprefixer-rails (6.1.1)
67
- execjs
68
- json
69
- awesome_nested_set (3.0.2)
70
- activerecord (>= 4.0.0, < 5)
71
- bcrypt (3.1.10)
72
- bootstrap-sass (3.3.6)
73
- autoprefixer-rails (>= 5.2.1)
74
- sass (>= 3.3.4)
75
- builder (3.2.2)
76
- camertron-eprun (1.1.0)
77
- cancancan (1.10.1)
78
- canonical-rails (0.0.11)
79
- rails (>= 3.1, < 5.0)
80
- carmen (1.0.2)
81
- activesupport (>= 3.0.0)
82
- cldr-plurals-runtime-rb (1.0.1)
83
- climate_control (0.0.3)
84
- activesupport (>= 3.0)
85
- cocaine (0.5.8)
86
- climate_control (>= 0.0.3, < 1.0)
87
- coffee-rails (4.0.1)
88
- coffee-script (>= 2.2.0)
89
- railties (>= 4.0.0, < 5.0)
90
- coffee-script (2.4.1)
91
- coffee-script-source
92
- execjs
93
- coffee-script-source (1.10.0)
94
- colorize (0.7.7)
95
- css_parser (1.3.7)
96
- addressable
97
- database_cleaner (1.5.1)
98
- deface (1.0.2)
99
- colorize (>= 0.5.8)
100
- nokogiri (~> 1.6.0)
101
- polyglot
102
- rails (>= 3.1)
103
- devise (3.4.1)
104
- bcrypt (~> 3.0)
105
- orm_adapter (~> 0.1)
106
- railties (>= 3.2.6, < 5)
107
- responders
108
- thread_safe (~> 0.1)
109
- warden (~> 1.2.3)
110
- devise-encryptable (0.1.2)
111
- devise (>= 2.1.0)
112
- diff-lcs (1.2.5)
113
- docile (1.1.5)
114
- erubis (2.7.0)
115
- execjs (2.6.0)
116
- ffaker (1.32.1)
117
- font-awesome-rails (4.5.0.0)
118
- railties (>= 3.2, < 5.0)
119
- friendly_id (5.1.0)
120
- activerecord (>= 4.0.0)
121
- globalid (0.3.6)
122
- activesupport (>= 4.1.0)
123
- highline (1.6.21)
124
- htmlentities (4.3.4)
125
- httparty (0.13.7)
126
- json (~> 1.8)
127
- multi_xml (>= 0.5.2)
128
- i18n (0.7.0)
129
- jquery-rails (4.0.5)
130
- rails-dom-testing (~> 1.0)
131
- railties (>= 4.2.0)
132
- thor (>= 0.14, < 2.0)
133
- jquery-ui-rails (5.0.5)
134
- railties (>= 3.2.16)
135
- json (1.8.3)
136
- kaminari (0.16.3)
137
- actionpack (>= 3.0.0)
138
- activesupport (>= 3.0.0)
139
- loofah (2.0.3)
140
- nokogiri (>= 1.5.9)
141
- mail (2.6.3)
142
- mime-types (>= 1.16, < 3)
143
- mime-types (2.99)
144
- mini_portile2 (2.0.0)
145
- minitest (5.8.3)
146
- monetize (1.3.1)
147
- money (~> 6.6)
148
- money (6.6.1)
149
- i18n (>= 0.6.4, <= 0.7.0)
150
- multi_json (1.11.2)
151
- multi_xml (0.5.5)
152
- mysql2 (0.4.2)
153
- nokogiri (1.6.7)
154
- mini_portile2 (~> 2.0.0.rc2)
155
- orm_adapter (0.5.0)
156
- paperclip (4.2.4)
157
- activemodel (>= 3.2.0)
158
- activesupport (>= 3.2.0)
159
- cocaine (~> 0.5.5)
160
- mime-types
161
- paranoia (2.1.4)
162
- activerecord (~> 4.0)
163
- polyamorous (1.2.0)
164
- activerecord (>= 3.0)
165
- polyglot (0.3.5)
166
- premailer (1.8.6)
167
- css_parser (>= 1.3.6)
168
- htmlentities (>= 4.0.0)
169
- premailer-rails (1.8.2)
170
- actionmailer (>= 3, < 5)
171
- premailer (~> 1.7, >= 1.7.9)
172
- rabl (0.9.4.pre1)
173
- activesupport (>= 2.3.14)
174
- rack (1.6.4)
175
- rack-test (0.6.3)
176
- rack (>= 1.0)
177
- rails (4.2.5)
178
- actionmailer (= 4.2.5)
179
- actionpack (= 4.2.5)
180
- actionview (= 4.2.5)
181
- activejob (= 4.2.5)
182
- activemodel (= 4.2.5)
183
- activerecord (= 4.2.5)
184
- activesupport (= 4.2.5)
185
- bundler (>= 1.3.0, < 2.0)
186
- railties (= 4.2.5)
187
- sprockets-rails
188
- rails-deprecated_sanitizer (1.0.3)
189
- activesupport (>= 4.2.0.alpha)
190
- rails-dom-testing (1.0.7)
191
- activesupport (>= 4.2.0.beta, < 5.0)
192
- nokogiri (~> 1.6.0)
193
- rails-deprecated_sanitizer (>= 1.0.1)
194
- rails-html-sanitizer (1.0.2)
195
- loofah (~> 2.0)
196
- railties (4.2.5)
197
- actionpack (= 4.2.5)
198
- activesupport (= 4.2.5)
199
- rake (>= 0.8.7)
200
- thor (>= 0.18.1, < 2.0)
201
- rake (10.4.2)
202
- ransack (1.4.1)
203
- actionpack (>= 3.0)
204
- activerecord (>= 3.0)
205
- activesupport (>= 3.0)
206
- i18n
207
- polyamorous (~> 1.1)
208
- responders (2.1.0)
209
- railties (>= 4.2.0, < 5)
210
- rspec-collection_matchers (1.1.2)
211
- rspec-expectations (>= 2.99.0.beta1)
212
- rspec-core (2.99.2)
213
- rspec-expectations (2.99.2)
214
- diff-lcs (>= 1.1.3, < 2.0)
215
- rspec-mocks (2.99.4)
216
- rspec-rails (2.99.0)
217
- actionpack (>= 3.0)
218
- activemodel (>= 3.0)
219
- activesupport (>= 3.0)
220
- railties (>= 3.0)
221
- rspec-collection_matchers
222
- rspec-core (~> 2.99.0)
223
- rspec-expectations (~> 2.99.0)
224
- rspec-mocks (~> 2.99.0)
225
- sass (3.4.19)
226
- sass-rails (5.0.4)
227
- railties (>= 4.0.0, < 5.0)
228
- sass (~> 3.1)
229
- sprockets (>= 2.8, < 4.0)
230
- sprockets-rails (>= 2.0, < 4.0)
231
- tilt (>= 1.1, < 3)
232
- select2-rails (3.5.9.1)
233
- thor (~> 0.14)
234
- shoulda-matchers (2.2.0)
235
- activesupport (>= 3.0.0)
236
- simplecov (0.11.0)
237
- docile (~> 1.1.0)
238
- json (~> 1.8)
239
- simplecov-html (~> 0.10.0)
240
- simplecov-html (0.10.0)
241
- spree (3.0.4)
242
- spree_api (= 3.0.4)
243
- spree_backend (= 3.0.4)
244
- spree_cmd (= 3.0.4)
245
- spree_core (= 3.0.4)
246
- spree_frontend (= 3.0.4)
247
- spree_sample (= 3.0.4)
248
- spree_api (3.0.4)
249
- rabl (~> 0.9.4.pre1)
250
- spree_core (= 3.0.4)
251
- versioncake (~> 2.3.1)
252
- spree_backend (3.0.4)
253
- bootstrap-sass (~> 3.3.1)
254
- jquery-rails (~> 4.0.3)
255
- jquery-ui-rails (~> 5.0.0)
256
- select2-rails (= 3.5.9.1)
257
- spree_api (= 3.0.4)
258
- spree_core (= 3.0.4)
259
- sprockets-rails (~> 2.2)
260
- spree_cmd (3.0.4)
261
- thor (~> 0.14)
262
- spree_core (3.0.4)
263
- activemerchant (~> 1.47.0)
264
- acts_as_list (~> 0.6)
265
- awesome_nested_set (~> 3.0.1)
266
- cancancan (~> 1.10.1)
267
- carmen (~> 1.0.0)
268
- deface (~> 1.0.0)
269
- ffaker (~> 1.16)
270
- font-awesome-rails (~> 4.0)
271
- friendly_id (~> 5.1.0)
272
- highline (~> 1.6.18)
273
- httparty (~> 0.11)
274
- json (~> 1.7)
275
- kaminari (~> 0.15, >= 0.15.1)
276
- monetize (~> 1.1)
277
- paperclip (~> 4.2.0)
278
- paranoia (~> 2.1.0)
279
- premailer-rails
280
- rails (~> 4.2.2)
281
- ransack (~> 1.4.1)
282
- responders
283
- state_machines-activerecord (~> 0.2)
284
- stringex
285
- truncate_html (= 0.9.2)
286
- twitter_cldr (~> 3.0)
287
- spree_frontend (3.0.4)
288
- bootstrap-sass (~> 3.3.1)
289
- canonical-rails (~> 0.0.4)
290
- jquery-rails (~> 4.0.3)
291
- spree_api (= 3.0.4)
292
- spree_core (= 3.0.4)
293
- sprockets-rails (~> 2.2)
294
- spree_sample (3.0.4)
295
- spree_core (= 3.0.4)
296
- sprockets (3.4.1)
297
- rack (> 1, < 3)
298
- sprockets-rails (2.3.3)
299
- actionpack (>= 3.0)
300
- activesupport (>= 3.0)
301
- sprockets (>= 2.8, < 4.0)
302
- state_machines (0.4.0)
303
- state_machines-activemodel (0.3.0)
304
- activemodel (~> 4.1)
305
- state_machines (>= 0.4.0)
306
- state_machines-activerecord (0.3.0)
307
- activerecord (~> 4.1)
308
- state_machines-activemodel (>= 0.3.0)
309
- stringex (2.5.2)
310
- thor (0.19.1)
311
- thread_safe (0.3.5)
312
- tilt (2.0.1)
313
- truncate_html (0.9.2)
314
- twitter_cldr (3.2.1)
315
- camertron-eprun
316
- cldr-plurals-runtime-rb (~> 1.0.0)
317
- json
318
- tzinfo
319
- tzinfo (1.2.2)
320
- thread_safe (~> 0.1)
321
- versioncake (2.3.1)
322
- actionpack (>= 3.2)
323
- activesupport (>= 3.2)
324
- railties (>= 3.2)
325
- tzinfo
326
- warden (1.2.3)
327
- rack (>= 1.0)
328
-
329
- PLATFORMS
330
- ruby
331
-
332
- DEPENDENCIES
333
- coffee-rails (= 4.0.1)
334
- database_cleaner
335
- mysql2
336
- rspec-rails (~> 2.10)
337
- sass-rails (~> 5.0)
338
- shoulda-matchers (= 2.2.0)
339
- simplecov
340
- spree (~> 3.0.0)
341
- spree_auth_devise!
342
- spree_favorite_products!
343
-
344
- BUNDLED WITH
345
- 1.10.6