solidus_reviews 1.0.0 → 1.1.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/.rubocop.yml +322 -0
- data/.travis.yml +27 -14
- data/Gemfile +23 -8
- data/LICENSE.md +2 -2
- data/README.md +9 -11
- data/Rakefile +2 -0
- data/app/controllers/spree/admin/feedback_reviews_controller.rb +3 -1
- data/app/controllers/spree/admin/review_settings_controller.rb +3 -1
- data/app/controllers/spree/admin/reviews_controller.rb +9 -6
- data/app/controllers/spree/feedback_reviews_controller.rb +25 -19
- data/app/controllers/spree/products_controller_decorator.rb +2 -0
- data/app/controllers/spree/reviews_controller.rb +11 -7
- data/app/helpers/spree/api/api_helpers_decorator.rb +12 -0
- data/app/helpers/spree/reviews_helper.rb +15 -5
- data/app/models/spree/feedback_review.rb +5 -4
- data/app/models/spree/product_decorator.rb +5 -4
- data/app/models/spree/review.rb +28 -10
- data/app/models/spree/reviews_ability.rb +17 -3
- data/app/models/spree/reviews_configuration.rb +16 -8
- data/app/models/spree/user_decorator.rb +3 -0
- data/app/overrides/add_reviews_after_product_properties.rb +7 -5
- data/app/overrides/add_reviews_tab_to_admin.rb +12 -4
- data/app/overrides/add_reviews_to_admin_configuration_sidebar.rb +13 -5
- data/app/views/spree/admin/feedback_reviews/index.html.erb +9 -9
- data/app/views/spree/admin/review_settings/edit.html.erb +64 -35
- data/app/views/spree/admin/reviews/_form.html.erb +26 -5
- data/app/views/spree/admin/reviews/edit.html.erb +2 -2
- data/app/views/spree/admin/reviews/index.html.erb +100 -88
- data/app/views/spree/api/reviews/_review.json.jbuilder +8 -0
- data/app/views/spree/api/reviews/index.json.jbuilder +6 -0
- data/app/views/spree/api/reviews/show.json.jbuilder +3 -0
- data/app/views/spree/feedback_reviews/_form.html.erb +5 -5
- data/app/views/spree/feedback_reviews/_summary.html.erb +3 -3
- data/app/views/spree/feedback_reviews/create.js.erb +2 -2
- data/app/views/spree/reviews/_form.html.erb +15 -10
- data/app/views/spree/reviews/new.html.erb +2 -2
- data/app/views/spree/shared/_rating.html.erb +3 -3
- data/app/views/spree/shared/_review.html.erb +29 -19
- data/app/views/spree/shared/_review_summary.html.erb +3 -3
- data/app/views/spree/shared/_reviews.html.erb +6 -6
- data/app/views/spree/shared/_shortrating.html.erb +2 -2
- data/bin/rails +4 -2
- data/config/initializers/constants.rb +2 -0
- data/config/initializers/load_preferences.rb +2 -0
- data/config/locales/de-CH.yml +14 -1
- data/config/locales/de.yml +14 -1
- data/config/locales/en-GB.yml +14 -2
- data/config/locales/en.yml +14 -1
- data/config/locales/es.yml +14 -2
- data/config/locales/fr.yml +14 -2
- data/config/locales/it.yml +79 -0
- data/config/locales/pl.yml +14 -2
- data/config/locales/pt-BR.yml +14 -2
- data/config/locales/pt.yml +14 -2
- data/config/locales/ro.yml +15 -3
- data/config/locales/ru.yml +14 -2
- data/config/locales/sv.yml +14 -1
- data/config/locales/tr.yml +14 -2
- data/config/locales/uk.yml +14 -1
- data/config/locales/zh-CN.yml +14 -1
- data/config/locales/zh-TW.yml +14 -1
- data/config/routes.rb +18 -1
- data/db/migrate/20081020220724_create_reviews.rb +4 -2
- data/db/migrate/20101222083309_create_feedback_reviews.rb +5 -3
- data/db/migrate/20110406083603_add_rating_to_products.rb +7 -5
- data/db/migrate/20110606150524_add_user_to_reviews.rb +4 -2
- data/db/migrate/20110806093221_add_ip_address_to_reviews.rb +3 -1
- data/db/migrate/20120110172331_namespace_tables.rb +3 -1
- data/db/migrate/20120123141326_recalculate_ratings.rb +6 -5
- data/db/migrate/20120712182514_add_locale_to_reviews.rb +4 -2
- data/db/migrate/20120712182627_add_locale_to_feedback_reviews.rb +4 -2
- data/db/migrate/20140703200946_add_show_identifier_to_reviews.rb +3 -1
- data/db/migrate/20190613165528_add_verified_purchaser_to_reviews.rb +5 -0
- data/lib/controllers/spree/api/reviews_controller.rb +111 -0
- data/lib/generators/solidus_reviews/install/install_generator.rb +5 -4
- data/lib/solidus_reviews.rb +3 -1
- data/lib/solidus_reviews/factories.rb +3 -1
- data/lib/solidus_reviews/factories/feedback_review_factory.rb +6 -5
- data/lib/solidus_reviews/factories/review_factory.rb +19 -9
- data/lib/spree_reviews/engine.rb +7 -0
- data/solidus_reviews.gemspec +20 -18
- data/spec/controllers/admin/feedback_reviews_controller_spec.rb +9 -7
- data/spec/controllers/admin/review_settings_controller_spec.rb +18 -16
- data/spec/controllers/admin/reviews_controller_spec.rb +18 -16
- data/spec/controllers/feedback_reviews_controller_spec.rb +29 -25
- data/spec/controllers/products_controller_spec.rb +4 -2
- data/spec/controllers/reviews_controller_spec.rb +67 -40
- data/spec/controllers/spree/api/reviews_controller_spec.rb +233 -0
- data/spec/features/admin_spec.rb +3 -0
- data/spec/features/reviews_spec.rb +27 -11
- data/spec/helpers/review_helper_spec.rb +3 -2
- data/spec/models/feedback_review_spec.rb +19 -17
- data/spec/models/product_spec.rb +41 -19
- data/spec/models/review_spec.rb +100 -42
- data/spec/models/reviews_ability_spec.rb +10 -8
- data/spec/models/reviews_configuration_spec.rb +28 -19
- data/spec/spec_helper.rb +21 -35
- data/vendor/assets/javascripts/jquery.rating.js +389 -376
- metadata +108 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 02562cfc590ffcfb4a40ce352226ac09d7275c5ff47a3d9787d274d58f68e6ad
|
4
|
+
data.tar.gz: ce9208efc1ab53a00c1bbebd7bb95adda2adcc5c43eb0163fb432ab55d618f23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eed3d81e5b40ada87597cf35f694ea73ec87fd5c609e60b9a2609a0dbfc39d78044c19e65f2422550868670ea17f002c3ac1d659fb7efe1d1021f0f2e8a33ce
|
7
|
+
data.tar.gz: a4d6fefc60b7f8495e70376ff8f0732a950ae0f9be6740153937deb60fae336c8c28dc3250eab8f72059341629e2881bcde76af45940900708f2146f4648c359
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,322 @@
|
|
1
|
+
# Relaxed.Ruby.Style
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
Exclude:
|
5
|
+
- 'vendor/**/*'
|
6
|
+
- '**/vendor/**/*'
|
7
|
+
- '*/spec/dummy/**/*'
|
8
|
+
- 'sandbox/**/*'
|
9
|
+
- '**/templates/**/*'
|
10
|
+
TargetRubyVersion: 2.2
|
11
|
+
|
12
|
+
# Sometimes I believe this reads better
|
13
|
+
# This also causes spacing issues on multi-line fixes
|
14
|
+
Style/BracesAroundHashParameters:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
# We use class vars and will have to continue doing so for compatability
|
18
|
+
Style/ClassVars:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
# We need these names for backwards compatability
|
22
|
+
Naming/PredicateName:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Naming/AccessorMethodName:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
# This has been used for customization
|
29
|
+
Style/MutableConstant:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
Style/ClassAndModuleChildren:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
Style/EmptyElse:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
Style/GuardClause:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
Style/Next:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
Style/NumericPredicate:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
Style/WordArray:
|
48
|
+
Enabled: false
|
49
|
+
|
50
|
+
Style/ConditionalAssignment:
|
51
|
+
Enabled: false
|
52
|
+
|
53
|
+
Performance/Count:
|
54
|
+
Enabled: false
|
55
|
+
|
56
|
+
Style/RaiseArgs:
|
57
|
+
Enabled: false
|
58
|
+
|
59
|
+
Naming/BinaryOperatorParameterName:
|
60
|
+
Enabled: false
|
61
|
+
|
62
|
+
# We can use good judgement here
|
63
|
+
Style/RegexpLiteral:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
# Unicode comments are useful
|
67
|
+
Style/AsciiComments:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Layout/EndAlignment:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
Layout/ElseAlignment:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Layout/IndentationWidth:
|
77
|
+
Enabled: false
|
78
|
+
|
79
|
+
Layout/AlignParameters:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
Layout/ClosingParenthesisIndentation:
|
83
|
+
Enabled: false
|
84
|
+
|
85
|
+
Layout/MultilineMethodCallIndentation:
|
86
|
+
Enabled: false
|
87
|
+
|
88
|
+
Layout/IndentArray:
|
89
|
+
Enabled: false
|
90
|
+
|
91
|
+
Layout/IndentHash:
|
92
|
+
Enabled: false
|
93
|
+
|
94
|
+
Layout/AlignHash:
|
95
|
+
Enabled: false
|
96
|
+
|
97
|
+
Style/TrailingCommaInArguments:
|
98
|
+
Enabled: false
|
99
|
+
|
100
|
+
Style/TrailingCommaInArrayLiteral:
|
101
|
+
Enabled: false
|
102
|
+
|
103
|
+
Style/TrailingCommaInHashLiteral:
|
104
|
+
Enabled: false
|
105
|
+
|
106
|
+
# Symbol Arrays are ok and the %i syntax widely unknown
|
107
|
+
Style/SymbolArray:
|
108
|
+
Enabled: false
|
109
|
+
|
110
|
+
Rails/DynamicFindBy:
|
111
|
+
Whitelist:
|
112
|
+
- find_by_param
|
113
|
+
- find_by_param!
|
114
|
+
|
115
|
+
# We use a lot of
|
116
|
+
#
|
117
|
+
# expect {
|
118
|
+
# something
|
119
|
+
# }.to { happen }
|
120
|
+
#
|
121
|
+
# syntax in the specs files.
|
122
|
+
Lint/AmbiguousBlockAssociation:
|
123
|
+
Exclude:
|
124
|
+
- '*/spec/**/*'
|
125
|
+
- 'spec/**/*' # For the benefit of apps that inherit from this config
|
126
|
+
|
127
|
+
# We use eval to add common_spree_dependencies into the Gemfiles of each of our gems
|
128
|
+
Security/Eval:
|
129
|
+
Exclude:
|
130
|
+
- 'Gemfile'
|
131
|
+
- 'common_spree_dependencies.rb'
|
132
|
+
- '*/Gemfile'
|
133
|
+
|
134
|
+
Naming/VariableNumber:
|
135
|
+
Enabled: false
|
136
|
+
|
137
|
+
# Write empty methods as you wish.
|
138
|
+
Style/EmptyMethod:
|
139
|
+
Enabled: false
|
140
|
+
|
141
|
+
# From http://relaxed.ruby.style/
|
142
|
+
|
143
|
+
Style/Alias:
|
144
|
+
Enabled: false
|
145
|
+
StyleGuide: http://relaxed.ruby.style/#stylealias
|
146
|
+
|
147
|
+
Style/BeginBlock:
|
148
|
+
Enabled: false
|
149
|
+
StyleGuide: http://relaxed.ruby.style/#stylebeginblock
|
150
|
+
|
151
|
+
Style/BlockDelimiters:
|
152
|
+
Enabled: false
|
153
|
+
StyleGuide: http://relaxed.ruby.style/#styleblockdelimiters
|
154
|
+
|
155
|
+
Style/Documentation:
|
156
|
+
Enabled: false
|
157
|
+
StyleGuide: http://relaxed.ruby.style/#styledocumentation
|
158
|
+
|
159
|
+
Layout/DotPosition:
|
160
|
+
Enabled: false
|
161
|
+
StyleGuide: http://relaxed.ruby.style/#styledotposition
|
162
|
+
|
163
|
+
Style/DoubleNegation:
|
164
|
+
Enabled: false
|
165
|
+
StyleGuide: http://relaxed.ruby.style/#styledoublenegation
|
166
|
+
|
167
|
+
Style/EndBlock:
|
168
|
+
Enabled: false
|
169
|
+
StyleGuide: http://relaxed.ruby.style/#styleendblock
|
170
|
+
|
171
|
+
Style/FormatString:
|
172
|
+
Enabled: false
|
173
|
+
StyleGuide: http://relaxed.ruby.style/#styleformatstring
|
174
|
+
|
175
|
+
Style/IfUnlessModifier:
|
176
|
+
Enabled: false
|
177
|
+
StyleGuide: http://relaxed.ruby.style/#styleifunlessmodifier
|
178
|
+
|
179
|
+
Style/Lambda:
|
180
|
+
Enabled: false
|
181
|
+
StyleGuide: http://relaxed.ruby.style/#stylelambda
|
182
|
+
|
183
|
+
Style/ModuleFunction:
|
184
|
+
Enabled: false
|
185
|
+
StyleGuide: http://relaxed.ruby.style/#stylemodulefunction
|
186
|
+
|
187
|
+
Style/MultilineBlockChain:
|
188
|
+
Enabled: false
|
189
|
+
StyleGuide: http://relaxed.ruby.style/#stylemultilineblockchain
|
190
|
+
|
191
|
+
Style/NegatedIf:
|
192
|
+
Enabled: false
|
193
|
+
StyleGuide: http://relaxed.ruby.style/#stylenegatedif
|
194
|
+
|
195
|
+
Style/NegatedWhile:
|
196
|
+
Enabled: false
|
197
|
+
StyleGuide: http://relaxed.ruby.style/#stylenegatedwhile
|
198
|
+
|
199
|
+
Style/ParallelAssignment:
|
200
|
+
Enabled: false
|
201
|
+
StyleGuide: http://relaxed.ruby.style/#styleparallelassignment
|
202
|
+
|
203
|
+
Style/PercentLiteralDelimiters:
|
204
|
+
Enabled: false
|
205
|
+
StyleGuide: http://relaxed.ruby.style/#stylepercentliteraldelimiters
|
206
|
+
|
207
|
+
Style/PerlBackrefs:
|
208
|
+
Enabled: false
|
209
|
+
StyleGuide: http://relaxed.ruby.style/#styleperlbackrefs
|
210
|
+
|
211
|
+
Style/Semicolon:
|
212
|
+
Enabled: false
|
213
|
+
StyleGuide: http://relaxed.ruby.style/#stylesemicolon
|
214
|
+
|
215
|
+
Style/SignalException:
|
216
|
+
Enabled: false
|
217
|
+
StyleGuide: http://relaxed.ruby.style/#stylesignalexception
|
218
|
+
|
219
|
+
Style/SingleLineBlockParams:
|
220
|
+
Enabled: false
|
221
|
+
StyleGuide: http://relaxed.ruby.style/#stylesinglelineblockparams
|
222
|
+
|
223
|
+
Style/SingleLineMethods:
|
224
|
+
Enabled: false
|
225
|
+
StyleGuide: http://relaxed.ruby.style/#stylesinglelinemethods
|
226
|
+
|
227
|
+
Layout/SpaceBeforeBlockBraces:
|
228
|
+
Enabled: false
|
229
|
+
StyleGuide: http://relaxed.ruby.style/#stylespacebeforeblockbraces
|
230
|
+
|
231
|
+
Layout/SpaceInsideParens:
|
232
|
+
Enabled: false
|
233
|
+
StyleGuide: http://relaxed.ruby.style/#stylespaceinsideparens
|
234
|
+
|
235
|
+
Style/SpecialGlobalVars:
|
236
|
+
Enabled: false
|
237
|
+
StyleGuide: http://relaxed.ruby.style/#stylespecialglobalvars
|
238
|
+
|
239
|
+
Style/StringLiterals:
|
240
|
+
Enabled: false
|
241
|
+
StyleGuide: http://relaxed.ruby.style/#stylestringliterals
|
242
|
+
|
243
|
+
Style/SymbolProc:
|
244
|
+
Enabled: false
|
245
|
+
|
246
|
+
Style/TernaryParentheses:
|
247
|
+
Enabled: false
|
248
|
+
|
249
|
+
Style/WhileUntilModifier:
|
250
|
+
Enabled: false
|
251
|
+
StyleGuide: http://relaxed.ruby.style/#stylewhileuntilmodifier
|
252
|
+
|
253
|
+
Lint/AmbiguousRegexpLiteral:
|
254
|
+
Enabled: false
|
255
|
+
StyleGuide: http://relaxed.ruby.style/#lintambiguousregexpliteral
|
256
|
+
|
257
|
+
Lint/AssignmentInCondition:
|
258
|
+
Enabled: false
|
259
|
+
StyleGuide: http://relaxed.ruby.style/#lintassignmentincondition
|
260
|
+
|
261
|
+
Metrics/AbcSize:
|
262
|
+
Enabled: false
|
263
|
+
|
264
|
+
Metrics/BlockNesting:
|
265
|
+
Enabled: false
|
266
|
+
|
267
|
+
Metrics/ClassLength:
|
268
|
+
Enabled: false
|
269
|
+
|
270
|
+
Metrics/ModuleLength:
|
271
|
+
Enabled: false
|
272
|
+
|
273
|
+
Metrics/BlockLength:
|
274
|
+
Enabled: false
|
275
|
+
|
276
|
+
Metrics/CyclomaticComplexity:
|
277
|
+
Enabled: false
|
278
|
+
|
279
|
+
Metrics/LineLength:
|
280
|
+
Enabled: false
|
281
|
+
|
282
|
+
Metrics/MethodLength:
|
283
|
+
Enabled: false
|
284
|
+
|
285
|
+
Metrics/ParameterLists:
|
286
|
+
Enabled: false
|
287
|
+
|
288
|
+
Metrics/PerceivedComplexity:
|
289
|
+
Enabled: false
|
290
|
+
|
291
|
+
Bundler/OrderedGems:
|
292
|
+
Enabled: false
|
293
|
+
|
294
|
+
Style/NumericLiterals:
|
295
|
+
Enabled: false
|
296
|
+
|
297
|
+
Style/FrozenStringLiteralComment:
|
298
|
+
Enabled: true
|
299
|
+
EnforcedStyle: always
|
300
|
+
|
301
|
+
# json.() is idiomatic in jbuilder files
|
302
|
+
Style/LambdaCall:
|
303
|
+
Enabled: false
|
304
|
+
|
305
|
+
Naming/UncommunicativeMethodParamName:
|
306
|
+
AllowedNames:
|
307
|
+
- id
|
308
|
+
- to
|
309
|
+
- _
|
310
|
+
|
311
|
+
# Rubocop doesn't understand side-effects
|
312
|
+
Style/IdenticalConditionalBranches:
|
313
|
+
Enabled: false
|
314
|
+
|
315
|
+
Naming/MemoizedInstanceVariableName:
|
316
|
+
Enabled: false
|
317
|
+
|
318
|
+
Lint/UselessComparison:
|
319
|
+
Enabled: false
|
320
|
+
|
321
|
+
Lint/HandleExceptions:
|
322
|
+
Enabled: false
|
data/.travis.yml
CHANGED
@@ -1,18 +1,31 @@
|
|
1
|
+
cache: bundler
|
2
|
+
dist: trusty
|
1
3
|
language: ruby
|
2
4
|
rvm:
|
3
|
-
- 2.
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
- 2.4.3
|
6
|
+
addons:
|
7
|
+
chrome: stable
|
8
|
+
apt:
|
9
|
+
packages:
|
10
|
+
- chromium-chromedriver
|
11
|
+
before_install:
|
12
|
+
- ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver
|
13
|
+
before_script:
|
14
|
+
- export DISPLAY=:99.0
|
15
|
+
- sh -e /etc/init.d/xvfb start
|
16
|
+
- sleep 3 # give xvfb some time to start
|
17
|
+
|
7
18
|
env:
|
8
19
|
matrix:
|
9
|
-
- SOLIDUS_BRANCH=
|
10
|
-
- SOLIDUS_BRANCH=
|
11
|
-
- SOLIDUS_BRANCH=
|
12
|
-
- SOLIDUS_BRANCH=
|
13
|
-
- SOLIDUS_BRANCH=
|
14
|
-
- SOLIDUS_BRANCH=
|
15
|
-
- SOLIDUS_BRANCH=
|
16
|
-
- SOLIDUS_BRANCH=
|
17
|
-
- SOLIDUS_BRANCH=
|
18
|
-
- SOLIDUS_BRANCH=
|
20
|
+
- SOLIDUS_BRANCH=v2.5 DB=postgres
|
21
|
+
- SOLIDUS_BRANCH=v2.6 DB=postgres
|
22
|
+
- SOLIDUS_BRANCH=v2.7 DB=postgres
|
23
|
+
- SOLIDUS_BRANCH=v2.8 DB=postgres
|
24
|
+
- SOLIDUS_BRANCH=v2.9 DB=postgres
|
25
|
+
- SOLIDUS_BRANCH=master DB=postgres
|
26
|
+
- SOLIDUS_BRANCH=v2.5 DB=mysql
|
27
|
+
- SOLIDUS_BRANCH=v2.6 DB=mysql
|
28
|
+
- SOLIDUS_BRANCH=v2.7 DB=mysql
|
29
|
+
- SOLIDUS_BRANCH=v2.8 DB=mysql
|
30
|
+
- SOLIDUS_BRANCH=v2.9 DB=mysql
|
31
|
+
- SOLIDUS_BRANCH=master DB=mysql
|
data/Gemfile
CHANGED
@@ -1,14 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
3
|
-
branch = ENV.fetch('SOLIDUS_BRANCH', '
|
4
|
-
gem
|
5
|
-
gem
|
5
|
+
branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
|
6
|
+
gem 'solidus', git: 'https://github.com/solidusio/solidus.git', branch: branch
|
7
|
+
gem 'solidus_auth_devise'
|
8
|
+
gem 'puma'
|
9
|
+
gem 'rails-controller-testing', group: :test
|
10
|
+
|
11
|
+
if ENV['DB'] == 'mysql'
|
12
|
+
gem 'mysql2', '~> 0.4.10'
|
13
|
+
else
|
14
|
+
gem 'pg', '~> 0.21'
|
15
|
+
end
|
16
|
+
|
17
|
+
group :development, :test do
|
18
|
+
if branch < 'v2.5'
|
19
|
+
gem 'factory_bot', '4.10.0'
|
20
|
+
else
|
21
|
+
gem 'factory_bot', '> 4.10.0'
|
22
|
+
end
|
6
23
|
|
7
|
-
|
8
|
-
|
9
|
-
gem '
|
10
|
-
when 'postgresql'
|
11
|
-
gem 'pg'
|
24
|
+
gem 'pry-rails'
|
25
|
+
gem 'selenium-webdriver'
|
26
|
+
gem 'webdrivers'
|
12
27
|
end
|
13
28
|
|
14
29
|
gemspec
|
data/LICENSE.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2009-
|
1
|
+
Copyright (c) 2009-2019 Solidus and contributors.
|
2
2
|
All rights reserved.
|
3
3
|
|
4
4
|
Redistribution and use in source and binary forms, with or without modification,
|
@@ -9,7 +9,7 @@ are permitted provided that the following conditions are met:
|
|
9
9
|
* Redistributions in binary form must reproduce the above copyright notice,
|
10
10
|
this list of conditions and the following disclaimer in the documentation
|
11
11
|
and/or other materials provided with the distribution.
|
12
|
-
* Neither the name
|
12
|
+
* Neither the name Solidus nor the names of its contributors may be used to
|
13
13
|
endorse or promote products derived from this software without specific
|
14
14
|
prior written permission.
|
15
15
|
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Reviews
|
2
2
|
|
3
|
-
[](https://travis-ci.org/solidusio-contrib/solidus_reviews)
|
3
|
+
[](https://travis-ci.org/solidusio-contrib/solidus_reviews)
|
4
4
|
|
5
5
|
Straightforward review/rating functionality, updated for
|
6
6
|
[Solidus](https://solidus.io). While the Gem name has changed, the module
|
@@ -66,16 +66,14 @@ Ratings table holds current fractional value - avoids frequent recalc...
|
|
66
66
|
|
67
67
|
---
|
68
68
|
|
69
|
-
##
|
69
|
+
## Testing
|
70
70
|
|
71
|
-
|
71
|
+
Just run the following to automatically build a dummy app if necessary and
|
72
|
+
run the tests:
|
72
73
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
- Rating votes are tied to a review, to avoid spam. However: ratings are
|
77
|
-
accepted whether or not the review is accepted. Perhaps they should only
|
78
|
-
be counted when the review is approved.
|
74
|
+
```shell
|
75
|
+
bundle exec rake
|
76
|
+
```
|
79
77
|
|
80
78
|
---
|
81
79
|
|
@@ -85,9 +83,9 @@ See corresponding [contributing guidelines][1].
|
|
85
83
|
|
86
84
|
---
|
87
85
|
|
88
|
-
Copyright (c) 2009-
|
86
|
+
Copyright (c) 2009-2019 [Solidus][2] and [contributors][3], released under the [New BSD License][4]
|
89
87
|
|
90
88
|
[1]: ./CONTRIBUTING.md
|
91
|
-
[2]: https://github.com/
|
89
|
+
[2]: https://github.com/solidusio
|
92
90
|
[3]: https://github.com/solidusio-contrib/solidus_reviews/graphs/contributors
|
93
91
|
[4]: ./LICENSE.md
|