solidus_reviews 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +18 -0
  5. data/CONTRIBUTING.md +28 -0
  6. data/Gemfile +14 -0
  7. data/LICENSE.md +26 -0
  8. data/README.md +93 -0
  9. data/Rakefile +21 -0
  10. data/app/assets/images/store/reviews/delete.gif +0 -0
  11. data/app/assets/images/store/reviews/star.gif +0 -0
  12. data/app/assets/javascripts/spree/backend/solidus_reviews.js +7 -0
  13. data/app/assets/javascripts/spree/frontend/solidus_reviews.js +7 -0
  14. data/app/assets/stylesheets/spree/backend/solidus_reviews.css +3 -0
  15. data/app/assets/stylesheets/spree/frontend/solidus_reviews.scss +83 -0
  16. data/app/controllers/spree/admin/feedback_reviews_controller.rb +6 -0
  17. data/app/controllers/spree/admin/review_settings_controller.rb +21 -0
  18. data/app/controllers/spree/admin/reviews_controller.rb +34 -0
  19. data/app/controllers/spree/feedback_reviews_controller.rb +41 -0
  20. data/app/controllers/spree/products_controller_decorator.rb +5 -0
  21. data/app/controllers/spree/reviews_controller.rb +48 -0
  22. data/app/helpers/spree/reviews_helper.rb +17 -0
  23. data/app/models/spree/feedback_review.rb +17 -0
  24. data/app/models/spree/product_decorator.rb +21 -0
  25. data/app/models/spree/review.rb +36 -0
  26. data/app/models/spree/reviews_ability.rb +17 -0
  27. data/app/models/spree/reviews_configuration.rb +26 -0
  28. data/app/overrides/add_reviews_after_product_properties.rb +5 -0
  29. data/app/overrides/add_reviews_tab_to_admin.rb +4 -0
  30. data/app/overrides/add_reviews_to_admin_configuration_sidebar.rb +5 -0
  31. data/app/views/spree/admin/feedback_reviews/index.html.erb +44 -0
  32. data/app/views/spree/admin/review_settings/edit.html.erb +40 -0
  33. data/app/views/spree/admin/reviews/_form.html.erb +22 -0
  34. data/app/views/spree/admin/reviews/edit.html.erb +26 -0
  35. data/app/views/spree/admin/reviews/index.html.erb +111 -0
  36. data/app/views/spree/feedback_reviews/_form.html.erb +13 -0
  37. data/app/views/spree/feedback_reviews/_summary.html.erb +6 -0
  38. data/app/views/spree/feedback_reviews/create.js.erb +7 -0
  39. data/app/views/spree/reviews/_form.html.erb +34 -0
  40. data/app/views/spree/reviews/_stars.html.erb +13 -0
  41. data/app/views/spree/reviews/index.html.erb +1 -0
  42. data/app/views/spree/reviews/new.html.erb +3 -0
  43. data/app/views/spree/shared/_rating.html.erb +15 -0
  44. data/app/views/spree/shared/_review.html.erb +28 -0
  45. data/app/views/spree/shared/_review_summary.html.erb +9 -0
  46. data/app/views/spree/shared/_reviews.html.erb +15 -0
  47. data/app/views/spree/shared/_shortrating.html.erb +9 -0
  48. data/bin/rails +5 -0
  49. data/config/initializers/constants.rb +1 -0
  50. data/config/initializers/load_preferences.rb +5 -0
  51. data/config/locales/de-CH.yml +68 -0
  52. data/config/locales/de.yml +68 -0
  53. data/config/locales/en-GB.yml +68 -0
  54. data/config/locales/en.yml +67 -0
  55. data/config/locales/es.yml +68 -0
  56. data/config/locales/fr.yml +68 -0
  57. data/config/locales/pl.yml +72 -0
  58. data/config/locales/pt-BR.yml +68 -0
  59. data/config/locales/pt.yml +69 -0
  60. data/config/locales/ro.yml +76 -0
  61. data/config/locales/ru.yml +73 -0
  62. data/config/locales/sv.yml +66 -0
  63. data/config/locales/tr.yml +68 -0
  64. data/config/locales/uk.yml +75 -0
  65. data/config/locales/zh-CN.yml +65 -0
  66. data/config/locales/zh-TW.yml +65 -0
  67. data/config/routes.rb +17 -0
  68. data/db/migrate/20081020220724_create_reviews.rb +18 -0
  69. data/db/migrate/20101222083309_create_feedback_reviews.rb +17 -0
  70. data/db/migrate/20110406083603_add_rating_to_products.rb +21 -0
  71. data/db/migrate/20110606150524_add_user_to_reviews.rb +9 -0
  72. data/db/migrate/20110806093221_add_ip_address_to_reviews.rb +9 -0
  73. data/db/migrate/20120110172331_namespace_tables.rb +6 -0
  74. data/db/migrate/20120123141326_recalculate_ratings.rb +20 -0
  75. data/db/migrate/20120712182514_add_locale_to_reviews.rb +9 -0
  76. data/db/migrate/20120712182627_add_locale_to_feedback_reviews.rb +9 -0
  77. data/db/migrate/20140703200946_add_show_identifier_to_reviews.rb +6 -0
  78. data/db/sample/ratings.yml +16 -0
  79. data/db/sample/reviews.yml +59 -0
  80. data/lib/generators/solidus_reviews/install/install_generator.rb +30 -0
  81. data/lib/solidus_reviews/factories/feedback_review_factory.rb +8 -0
  82. data/lib/solidus_reviews/factories/review_factory.rb +20 -0
  83. data/lib/solidus_reviews/factories.rb +5 -0
  84. data/lib/solidus_reviews.rb +6 -0
  85. data/lib/spree_reviews/engine.rb +17 -0
  86. data/solidus_reviews.gemspec +35 -0
  87. data/spec/controllers/admin/feedback_reviews_controller_spec.rb +29 -0
  88. data/spec/controllers/admin/review_settings_controller_spec.rb +57 -0
  89. data/spec/controllers/admin/reviews_controller_spec.rb +63 -0
  90. data/spec/controllers/feedback_reviews_controller_spec.rb +71 -0
  91. data/spec/controllers/products_controller_spec.rb +9 -0
  92. data/spec/controllers/reviews_controller_spec.rb +136 -0
  93. data/spec/features/admin_spec.rb +35 -0
  94. data/spec/features/reviews_spec.rb +122 -0
  95. data/spec/helpers/review_helper_spec.rb +28 -0
  96. data/spec/models/feedback_review_spec.rb +78 -0
  97. data/spec/models/product_spec.rb +62 -0
  98. data/spec/models/review_spec.rb +168 -0
  99. data/spec/models/reviews_ability_spec.rb +46 -0
  100. data/spec/models/reviews_configuration_spec.rb +45 -0
  101. data/spec/spec_helper.rb +55 -0
  102. data/vendor/assets/javascripts/jquery.rating.js +376 -0
  103. metadata +357 -0
metadata ADDED
@@ -0,0 +1,357 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: solidus_reviews
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Paul Callaghan
8
+ - Alex Blackie
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2017-02-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: solidus
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: deface
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: solidus_auth_devise
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: ffaker
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: capybara
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '2.7'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '2.7'
84
+ - !ruby/object:Gem::Dependency
85
+ name: database_cleaner
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '='
89
+ - !ruby/object:Gem::Version
90
+ version: 1.2.0
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '='
96
+ - !ruby/object:Gem::Version
97
+ version: 1.2.0
98
+ - !ruby/object:Gem::Dependency
99
+ name: poltergeist
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 1.10.0
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 1.10.0
112
+ - !ruby/object:Gem::Dependency
113
+ name: rspec-rails
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '3'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '3'
126
+ - !ruby/object:Gem::Dependency
127
+ name: factory_girl
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '4.4'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '4.4'
140
+ - !ruby/object:Gem::Dependency
141
+ name: sqlite3
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: simplecov
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: 0.7.1
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: 0.7.1
168
+ - !ruby/object:Gem::Dependency
169
+ name: coffee-rails
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: 4.0.0
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: 4.0.0
182
+ - !ruby/object:Gem::Dependency
183
+ name: sass-rails
184
+ requirement: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: '5.0'
189
+ type: :development
190
+ prerelease: false
191
+ version_requirements: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - "~>"
194
+ - !ruby/object:Gem::Version
195
+ version: '5.0'
196
+ - !ruby/object:Gem::Dependency
197
+ name: pry
198
+ requirement: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: '0'
203
+ type: :development
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ description: Basic review and ratings facility for Spree
211
+ email: paulcc.two@gmail.com
212
+ executables: []
213
+ extensions: []
214
+ extra_rdoc_files: []
215
+ files:
216
+ - ".gitignore"
217
+ - ".rspec"
218
+ - ".travis.yml"
219
+ - CONTRIBUTING.md
220
+ - Gemfile
221
+ - LICENSE.md
222
+ - README.md
223
+ - Rakefile
224
+ - app/assets/images/store/reviews/delete.gif
225
+ - app/assets/images/store/reviews/star.gif
226
+ - app/assets/javascripts/spree/backend/solidus_reviews.js
227
+ - app/assets/javascripts/spree/frontend/solidus_reviews.js
228
+ - app/assets/stylesheets/spree/backend/solidus_reviews.css
229
+ - app/assets/stylesheets/spree/frontend/solidus_reviews.scss
230
+ - app/controllers/spree/admin/feedback_reviews_controller.rb
231
+ - app/controllers/spree/admin/review_settings_controller.rb
232
+ - app/controllers/spree/admin/reviews_controller.rb
233
+ - app/controllers/spree/feedback_reviews_controller.rb
234
+ - app/controllers/spree/products_controller_decorator.rb
235
+ - app/controllers/spree/reviews_controller.rb
236
+ - app/helpers/spree/reviews_helper.rb
237
+ - app/models/spree/feedback_review.rb
238
+ - app/models/spree/product_decorator.rb
239
+ - app/models/spree/review.rb
240
+ - app/models/spree/reviews_ability.rb
241
+ - app/models/spree/reviews_configuration.rb
242
+ - app/overrides/add_reviews_after_product_properties.rb
243
+ - app/overrides/add_reviews_tab_to_admin.rb
244
+ - app/overrides/add_reviews_to_admin_configuration_sidebar.rb
245
+ - app/views/spree/admin/feedback_reviews/index.html.erb
246
+ - app/views/spree/admin/review_settings/edit.html.erb
247
+ - app/views/spree/admin/reviews/_form.html.erb
248
+ - app/views/spree/admin/reviews/edit.html.erb
249
+ - app/views/spree/admin/reviews/index.html.erb
250
+ - app/views/spree/feedback_reviews/_form.html.erb
251
+ - app/views/spree/feedback_reviews/_summary.html.erb
252
+ - app/views/spree/feedback_reviews/create.js.erb
253
+ - app/views/spree/reviews/_form.html.erb
254
+ - app/views/spree/reviews/_stars.html.erb
255
+ - app/views/spree/reviews/index.html.erb
256
+ - app/views/spree/reviews/new.html.erb
257
+ - app/views/spree/shared/_rating.html.erb
258
+ - app/views/spree/shared/_review.html.erb
259
+ - app/views/spree/shared/_review_summary.html.erb
260
+ - app/views/spree/shared/_reviews.html.erb
261
+ - app/views/spree/shared/_shortrating.html.erb
262
+ - bin/rails
263
+ - config/initializers/constants.rb
264
+ - config/initializers/load_preferences.rb
265
+ - config/locales/de-CH.yml
266
+ - config/locales/de.yml
267
+ - config/locales/en-GB.yml
268
+ - config/locales/en.yml
269
+ - config/locales/es.yml
270
+ - config/locales/fr.yml
271
+ - config/locales/pl.yml
272
+ - config/locales/pt-BR.yml
273
+ - config/locales/pt.yml
274
+ - config/locales/ro.yml
275
+ - config/locales/ru.yml
276
+ - config/locales/sv.yml
277
+ - config/locales/tr.yml
278
+ - config/locales/uk.yml
279
+ - config/locales/zh-CN.yml
280
+ - config/locales/zh-TW.yml
281
+ - config/routes.rb
282
+ - db/migrate/20081020220724_create_reviews.rb
283
+ - db/migrate/20101222083309_create_feedback_reviews.rb
284
+ - db/migrate/20110406083603_add_rating_to_products.rb
285
+ - db/migrate/20110606150524_add_user_to_reviews.rb
286
+ - db/migrate/20110806093221_add_ip_address_to_reviews.rb
287
+ - db/migrate/20120110172331_namespace_tables.rb
288
+ - db/migrate/20120123141326_recalculate_ratings.rb
289
+ - db/migrate/20120712182514_add_locale_to_reviews.rb
290
+ - db/migrate/20120712182627_add_locale_to_feedback_reviews.rb
291
+ - db/migrate/20140703200946_add_show_identifier_to_reviews.rb
292
+ - db/sample/ratings.yml
293
+ - db/sample/reviews.yml
294
+ - lib/generators/solidus_reviews/install/install_generator.rb
295
+ - lib/solidus_reviews.rb
296
+ - lib/solidus_reviews/factories.rb
297
+ - lib/solidus_reviews/factories/feedback_review_factory.rb
298
+ - lib/solidus_reviews/factories/review_factory.rb
299
+ - lib/spree_reviews/engine.rb
300
+ - solidus_reviews.gemspec
301
+ - spec/controllers/admin/feedback_reviews_controller_spec.rb
302
+ - spec/controllers/admin/review_settings_controller_spec.rb
303
+ - spec/controllers/admin/reviews_controller_spec.rb
304
+ - spec/controllers/feedback_reviews_controller_spec.rb
305
+ - spec/controllers/products_controller_spec.rb
306
+ - spec/controllers/reviews_controller_spec.rb
307
+ - spec/features/admin_spec.rb
308
+ - spec/features/reviews_spec.rb
309
+ - spec/helpers/review_helper_spec.rb
310
+ - spec/models/feedback_review_spec.rb
311
+ - spec/models/product_spec.rb
312
+ - spec/models/review_spec.rb
313
+ - spec/models/reviews_ability_spec.rb
314
+ - spec/models/reviews_configuration_spec.rb
315
+ - spec/spec_helper.rb
316
+ - vendor/assets/javascripts/jquery.rating.js
317
+ homepage: https://github.com/solidusio-contrib/solidus-reviews/
318
+ licenses:
319
+ - BSD-3
320
+ metadata: {}
321
+ post_install_message:
322
+ rdoc_options: []
323
+ require_paths:
324
+ - lib
325
+ required_ruby_version: !ruby/object:Gem::Requirement
326
+ requirements:
327
+ - - ">="
328
+ - !ruby/object:Gem::Version
329
+ version: 1.9.3
330
+ required_rubygems_version: !ruby/object:Gem::Requirement
331
+ requirements:
332
+ - - ">="
333
+ - !ruby/object:Gem::Version
334
+ version: '0'
335
+ requirements:
336
+ - none
337
+ rubyforge_project:
338
+ rubygems_version: 2.6.10
339
+ signing_key:
340
+ specification_version: 4
341
+ summary: Basic review and ratings facility for Spree
342
+ test_files:
343
+ - spec/controllers/admin/feedback_reviews_controller_spec.rb
344
+ - spec/controllers/admin/review_settings_controller_spec.rb
345
+ - spec/controllers/admin/reviews_controller_spec.rb
346
+ - spec/controllers/feedback_reviews_controller_spec.rb
347
+ - spec/controllers/products_controller_spec.rb
348
+ - spec/controllers/reviews_controller_spec.rb
349
+ - spec/features/admin_spec.rb
350
+ - spec/features/reviews_spec.rb
351
+ - spec/helpers/review_helper_spec.rb
352
+ - spec/models/feedback_review_spec.rb
353
+ - spec/models/product_spec.rb
354
+ - spec/models/review_spec.rb
355
+ - spec/models/reviews_ability_spec.rb
356
+ - spec/models/reviews_configuration_spec.rb
357
+ - spec/spec_helper.rb