solidus_reviews 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.
- checksums.yaml +5 -5
- data/.circleci/config.yml +35 -0
- data/.gem_release.yml +5 -0
- data/.github/stale.yml +17 -0
- data/.gitignore +12 -8
- data/.rspec +1 -1
- data/.rubocop.yml +2 -0
- data/.rubocop_todo.yml +221 -0
- data/CHANGELOG.md +132 -0
- data/Gemfile +17 -3
- data/{LICENSE.md → LICENSE} +2 -2
- data/README.md +33 -50
- data/Rakefile +5 -18
- 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 +19 -19
- data/app/controllers/spree/reviews_controller.rb +38 -7
- data/app/decorators/controllers/solidus_reviews/spree/products_controller_decorator.rb +15 -0
- data/app/decorators/helpers/solidus_reviews/spree/api/api_helpers_decorator.rb +33 -0
- data/app/decorators/models/solidus_reviews/spree/product_decorator.rb +31 -0
- data/app/decorators/models/solidus_reviews/spree/user_decorator.rb +15 -0
- data/app/helpers/spree/reviews_helper.rb +15 -5
- data/app/models/spree/feedback_review.rb +7 -6
- data/app/models/spree/permission_sets/review_display.rb +11 -0
- data/app/models/spree/permission_sets/review_management.rb +11 -0
- data/app/models/spree/review.rb +46 -13
- data/app/models/spree/reviews_ability.rb +24 -5
- data/app/models/spree/reviews_configuration.rb +25 -8
- data/app/overrides/add_reviews_after_product_properties.rb +7 -5
- data/app/overrides/add_reviews_tab_to_admin.rb +20 -4
- data/app/overrides/add_reviews_to_admin_configuration_sidebar.rb +20 -5
- data/app/views/spree/admin/feedback_reviews/index.html.erb +9 -9
- data/app/views/spree/admin/review_settings/edit.html.erb +71 -35
- data/app/views/spree/admin/reviews/_form.html.erb +26 -5
- data/app/views/spree/admin/reviews/edit.html.erb +5 -3
- data/app/views/spree/admin/reviews/index.html.erb +104 -88
- data/app/views/spree/api/reviews/_feedback_review.json.jbuilder +5 -0
- data/app/views/spree/api/reviews/_review.json.jbuilder +11 -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 +17 -10
- data/app/views/spree/reviews/edit.html.erb +3 -0
- 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 +31 -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/console +17 -0
- data/bin/rails +13 -3
- data/bin/setup +8 -0
- data/config/initializers/constants.rb +2 -0
- data/config/initializers/load_preferences.rb +2 -0
- data/config/locales/de-CH.yml +15 -2
- data/config/locales/de.yml +15 -2
- data/config/locales/en-GB.yml +16 -3
- data/config/locales/en.yml +16 -2
- data/config/locales/es.yml +16 -3
- data/config/locales/fr.yml +15 -3
- data/config/locales/it.yml +79 -0
- data/config/locales/pl.yml +15 -3
- data/config/locales/pt-BR.yml +15 -3
- data/config/locales/pt.yml +15 -3
- data/config/locales/ro.yml +16 -4
- data/config/locales/ru.yml +14 -2
- data/config/locales/sv.yml +15 -2
- data/config/locales/tr.yml +15 -3
- data/config/locales/uk.yml +15 -2
- data/config/locales/zh-CN.yml +15 -2
- data/config/locales/zh-TW.yml +15 -2
- data/config/routes.rb +21 -2
- 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 +7 -7
- 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 +7 -0
- data/lib/controllers/spree/api/feedback_reviews_controller.rb +91 -0
- data/lib/controllers/spree/api/reviews_controller.rb +113 -0
- data/lib/generators/solidus_reviews/install/install_generator.rb +5 -4
- data/lib/solidus_reviews.rb +7 -5
- data/lib/solidus_reviews/engine.rb +26 -0
- 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/solidus_reviews/version.rb +5 -0
- data/solidus_reviews.gemspec +32 -32
- data/spec/controllers/{admin → spree/admin}/feedback_reviews_controller_spec.rb +10 -8
- data/spec/controllers/spree/admin/review_settings_controller_spec.rb +58 -0
- data/spec/controllers/spree/admin/reviews_controller_spec.rb +65 -0
- data/spec/controllers/spree/api/feedback_reviews_controller_spec.rb +136 -0
- data/spec/controllers/spree/api/reviews_controller_spec.rb +238 -0
- data/spec/controllers/spree/feedback_reviews_controller_spec.rb +75 -0
- data/spec/controllers/spree/reviews_controller_spec.rb +298 -0
- data/spec/features/admin_spec.rb +9 -6
- data/spec/features/reviews_spec.rb +54 -37
- data/spec/helpers/review_helper_spec.rb +3 -2
- data/spec/models/feedback_review_spec.rb +19 -17
- data/spec/models/product_spec.rb +49 -24
- data/spec/models/review_spec.rb +133 -52
- data/spec/models/reviews_ability_spec.rb +16 -14
- data/spec/models/reviews_configuration_spec.rb +46 -26
- data/spec/spec_helper.rb +13 -44
- data/spec/support/config.rb +7 -0
- data/spec/support/factories.rb +3 -0
- data/vendor/assets/javascripts/jquery.rating.js +389 -376
- metadata +81 -190
- data/.travis.yml +0 -18
- data/CONTRIBUTING.md +0 -28
- data/app/controllers/spree/products_controller_decorator.rb +0 -5
- data/app/models/spree/product_decorator.rb +0 -21
- data/lib/spree_reviews/engine.rb +0 -17
- data/spec/controllers/admin/review_settings_controller_spec.rb +0 -57
- data/spec/controllers/admin/reviews_controller_spec.rb +0 -63
- data/spec/controllers/feedback_reviews_controller_spec.rb +0 -71
- data/spec/controllers/products_controller_spec.rb +0 -9
- data/spec/controllers/reviews_controller_spec.rb +0 -136
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: fd38dd224e866160ae90ea04068f08ca4c12d0d32337751ee58676bf8d757a84
|
|
4
|
+
data.tar.gz: d3d3f890af762394201f11aee1fa3c18fd97755b7c31ac200f04df0eafef5923
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb4483b6bdfbf36e9153ed347c4b6b0fc19c2fabeb3ef55eb3cc48bea3ce7eb0a185f5ef3bcf0b0ebdb317b45dc071beee7961d4883083e0936aed536c079958
|
|
7
|
+
data.tar.gz: 8a30750194cd8485cf9db0f4920718be0d5f7e71ced59187bba4a8fd43051eca0c5323113c9b3260836e5ef9bcec93fd00458f5e8c08311f889a197eb7150db7
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
version: 2.1
|
|
2
|
+
|
|
3
|
+
orbs:
|
|
4
|
+
# Always take the latest version of the orb, this allows us to
|
|
5
|
+
# run specs against Solidus supported versions only without the need
|
|
6
|
+
# to change this configuration every time a Solidus version is released
|
|
7
|
+
# or goes EOL.
|
|
8
|
+
solidusio_extensions: solidusio/extensions@volatile
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
run-specs-with-postgres:
|
|
12
|
+
executor: solidusio_extensions/postgres
|
|
13
|
+
steps:
|
|
14
|
+
- solidusio_extensions/run-tests
|
|
15
|
+
run-specs-with-mysql:
|
|
16
|
+
executor: solidusio_extensions/mysql
|
|
17
|
+
steps:
|
|
18
|
+
- solidusio_extensions/run-tests
|
|
19
|
+
|
|
20
|
+
workflows:
|
|
21
|
+
"Run specs on supported Solidus versions":
|
|
22
|
+
jobs:
|
|
23
|
+
- run-specs-with-postgres
|
|
24
|
+
- run-specs-with-mysql
|
|
25
|
+
"Weekly run specs against master":
|
|
26
|
+
triggers:
|
|
27
|
+
- schedule:
|
|
28
|
+
cron: "0 0 * * 4" # every Thursday
|
|
29
|
+
filters:
|
|
30
|
+
branches:
|
|
31
|
+
only:
|
|
32
|
+
- master
|
|
33
|
+
jobs:
|
|
34
|
+
- run-specs-with-postgres
|
|
35
|
+
- run-specs-with-mysql
|
data/.gem_release.yml
ADDED
data/.github/stale.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Number of days of inactivity before an issue becomes stale
|
|
2
|
+
daysUntilStale: 60
|
|
3
|
+
# Number of days of inactivity before a stale issue is closed
|
|
4
|
+
daysUntilClose: 7
|
|
5
|
+
# Issues with these labels will never be considered stale
|
|
6
|
+
exemptLabels:
|
|
7
|
+
- pinned
|
|
8
|
+
- security
|
|
9
|
+
# Label to use when marking an issue as stale
|
|
10
|
+
staleLabel: wontfix
|
|
11
|
+
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
12
|
+
markComment: >
|
|
13
|
+
This issue has been automatically marked as stale because it has not had
|
|
14
|
+
recent activity. It will be closed if no further activity occurs. Thank you
|
|
15
|
+
for your contributions.
|
|
16
|
+
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
17
|
+
closeComment: false
|
data/.gitignore
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
*.gem
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
\#*
|
|
3
|
+
*~
|
|
4
|
+
.#*
|
|
5
5
|
.DS_Store
|
|
6
|
+
.idea
|
|
7
|
+
.project
|
|
8
|
+
.sass-cache
|
|
9
|
+
coverage
|
|
6
10
|
Gemfile.lock
|
|
7
|
-
|
|
11
|
+
tmp
|
|
12
|
+
nbproject
|
|
13
|
+
pkg
|
|
14
|
+
*.swp
|
|
8
15
|
spec/dummy
|
|
9
|
-
|
|
10
|
-
.rvmrc
|
|
11
|
-
.ruby-version
|
|
12
|
-
.ruby-gemset
|
|
16
|
+
spec/examples.txt
|
data/.rspec
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
--color
|
|
2
|
-
|
|
2
|
+
--require spec_helper
|
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2019-11-27 10:11:04 +0100 using RuboCop version 0.76.0.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 1
|
|
10
|
+
# Configuration parameters: Include.
|
|
11
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
12
|
+
Bundler/DuplicatedGem:
|
|
13
|
+
Exclude:
|
|
14
|
+
- 'Gemfile'
|
|
15
|
+
|
|
16
|
+
# Offense count: 1
|
|
17
|
+
# Configuration parameters: Include.
|
|
18
|
+
# Include: **/*.gemspec,
|
|
19
|
+
Gemspec/RequiredRubyVersion:
|
|
20
|
+
Exclude:
|
|
21
|
+
- 'solidus_reviews.gemspec'
|
|
22
|
+
|
|
23
|
+
# Offense count: 1
|
|
24
|
+
Lint/AmbiguousOperator:
|
|
25
|
+
Exclude:
|
|
26
|
+
- 'lib/solidus_reviews/engine.rb'
|
|
27
|
+
|
|
28
|
+
# Offense count: 1
|
|
29
|
+
Lint/InterpolationCheck:
|
|
30
|
+
Exclude:
|
|
31
|
+
- 'spec/models/review_spec.rb'
|
|
32
|
+
|
|
33
|
+
# Offense count: 33
|
|
34
|
+
# Cop supports --auto-correct.
|
|
35
|
+
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
36
|
+
# URISchemes: http, https
|
|
37
|
+
Metrics/LineLength:
|
|
38
|
+
Max: 155
|
|
39
|
+
|
|
40
|
+
# Offense count: 1
|
|
41
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
42
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
43
|
+
Naming/MemoizedInstanceVariableName:
|
|
44
|
+
Exclude:
|
|
45
|
+
- 'app/controllers/spree/feedback_reviews_controller.rb'
|
|
46
|
+
|
|
47
|
+
# Offense count: 2
|
|
48
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
49
|
+
# AllowedNames: io, id, to, by, on, in, at, ip, db, os
|
|
50
|
+
Naming/UncommunicativeMethodParamName:
|
|
51
|
+
Exclude:
|
|
52
|
+
- 'app/helpers/spree/reviews_helper.rb'
|
|
53
|
+
|
|
54
|
+
# Offense count: 2
|
|
55
|
+
# Configuration parameters: EnforcedStyle.
|
|
56
|
+
# SupportedStyles: snake_case, normalcase, non_integer
|
|
57
|
+
Naming/VariableNumber:
|
|
58
|
+
Exclude:
|
|
59
|
+
- 'spec/models/review_spec.rb'
|
|
60
|
+
|
|
61
|
+
# Offense count: 2
|
|
62
|
+
RSpec/AnyInstance:
|
|
63
|
+
Exclude:
|
|
64
|
+
- 'spec/controllers/spree/admin/reviews_controller_spec.rb'
|
|
65
|
+
- 'spec/controllers/spree/reviews_controller_spec.rb'
|
|
66
|
+
|
|
67
|
+
# Offense count: 35
|
|
68
|
+
# Configuration parameters: Prefixes.
|
|
69
|
+
# Prefixes: when, with, without
|
|
70
|
+
RSpec/ContextWording:
|
|
71
|
+
Exclude:
|
|
72
|
+
- 'spec/controllers/spree/api/reviews_controller_spec.rb'
|
|
73
|
+
- 'spec/controllers/spree/reviews_controller_spec.rb'
|
|
74
|
+
- 'spec/features/admin_spec.rb'
|
|
75
|
+
- 'spec/features/reviews_spec.rb'
|
|
76
|
+
- 'spec/helpers/review_helper_spec.rb'
|
|
77
|
+
- 'spec/models/feedback_review_spec.rb'
|
|
78
|
+
- 'spec/models/product_spec.rb'
|
|
79
|
+
- 'spec/models/review_spec.rb'
|
|
80
|
+
- 'spec/models/reviews_ability_spec.rb'
|
|
81
|
+
|
|
82
|
+
# Offense count: 2
|
|
83
|
+
RSpec/DescribeClass:
|
|
84
|
+
Exclude:
|
|
85
|
+
- 'spec/features/admin_spec.rb'
|
|
86
|
+
- 'spec/features/reviews_spec.rb'
|
|
87
|
+
|
|
88
|
+
# Offense count: 6
|
|
89
|
+
# Configuration parameters: CustomTransform, IgnoreMethods.
|
|
90
|
+
RSpec/FilePath:
|
|
91
|
+
Exclude:
|
|
92
|
+
- 'spec/helpers/review_helper_spec.rb'
|
|
93
|
+
- 'spec/models/feedback_review_spec.rb'
|
|
94
|
+
- 'spec/models/product_spec.rb'
|
|
95
|
+
- 'spec/models/review_spec.rb'
|
|
96
|
+
- 'spec/models/reviews_ability_spec.rb'
|
|
97
|
+
- 'spec/models/reviews_configuration_spec.rb'
|
|
98
|
+
|
|
99
|
+
# Offense count: 1
|
|
100
|
+
# Configuration parameters: AssignmentOnly.
|
|
101
|
+
RSpec/InstanceVariable:
|
|
102
|
+
Exclude:
|
|
103
|
+
- 'spec/controllers/spree/reviews_controller_spec.rb'
|
|
104
|
+
|
|
105
|
+
# Offense count: 6
|
|
106
|
+
RSpec/LetSetup:
|
|
107
|
+
Exclude:
|
|
108
|
+
- 'spec/controllers/spree/admin/feedback_reviews_controller_spec.rb'
|
|
109
|
+
- 'spec/models/product_spec.rb'
|
|
110
|
+
|
|
111
|
+
# Offense count: 3
|
|
112
|
+
# Configuration parameters: .
|
|
113
|
+
# SupportedStyles: have_received, receive
|
|
114
|
+
RSpec/MessageSpies:
|
|
115
|
+
EnforcedStyle: receive
|
|
116
|
+
|
|
117
|
+
# Offense count: 51
|
|
118
|
+
# Configuration parameters: AggregateFailuresByDefault.
|
|
119
|
+
RSpec/MultipleExpectations:
|
|
120
|
+
Max: 8
|
|
121
|
+
|
|
122
|
+
# Offense count: 71
|
|
123
|
+
# Configuration parameters: IgnoreSharedExamples.
|
|
124
|
+
RSpec/NamedSubject:
|
|
125
|
+
Exclude:
|
|
126
|
+
- 'spec/controllers/spree/api/reviews_controller_spec.rb'
|
|
127
|
+
- 'spec/models/reviews_configuration_spec.rb'
|
|
128
|
+
|
|
129
|
+
# Offense count: 8
|
|
130
|
+
RSpec/NestedGroups:
|
|
131
|
+
Max: 4
|
|
132
|
+
|
|
133
|
+
# Offense count: 1
|
|
134
|
+
RSpec/UnspecifiedException:
|
|
135
|
+
Exclude:
|
|
136
|
+
- 'spec/controllers/spree/feedback_reviews_controller_spec.rb'
|
|
137
|
+
|
|
138
|
+
# Offense count: 2
|
|
139
|
+
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
|
140
|
+
RSpec/VerifiedDoubles:
|
|
141
|
+
Exclude:
|
|
142
|
+
- 'spec/models/reviews_ability_spec.rb'
|
|
143
|
+
|
|
144
|
+
# Offense count: 1
|
|
145
|
+
# Configuration parameters: Include.
|
|
146
|
+
# Include: app/models/**/*.rb
|
|
147
|
+
Rails/HasManyOrHasOneDependent:
|
|
148
|
+
Exclude:
|
|
149
|
+
- 'app/models/spree/review.rb'
|
|
150
|
+
|
|
151
|
+
# Offense count: 1
|
|
152
|
+
# Configuration parameters: Include.
|
|
153
|
+
# Include: app/models/**/*.rb
|
|
154
|
+
Rails/InverseOf:
|
|
155
|
+
Exclude:
|
|
156
|
+
- 'app/models/spree/review.rb'
|
|
157
|
+
|
|
158
|
+
# Offense count: 1
|
|
159
|
+
# Configuration parameters: Include.
|
|
160
|
+
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
|
161
|
+
Rails/Output:
|
|
162
|
+
Exclude:
|
|
163
|
+
- 'lib/generators/solidus_reviews/install/install_generator.rb'
|
|
164
|
+
|
|
165
|
+
# Offense count: 1
|
|
166
|
+
# Configuration parameters: Include.
|
|
167
|
+
# Include: **/Rakefile, **/*.rake
|
|
168
|
+
Rails/RakeEnvironment:
|
|
169
|
+
Exclude:
|
|
170
|
+
- 'Rakefile'
|
|
171
|
+
|
|
172
|
+
# Offense count: 2
|
|
173
|
+
Rails/ReflectionClassName:
|
|
174
|
+
Exclude:
|
|
175
|
+
- 'app/models/spree/feedback_review.rb'
|
|
176
|
+
- 'app/models/spree/review.rb'
|
|
177
|
+
|
|
178
|
+
# Offense count: 5
|
|
179
|
+
# Configuration parameters: Blacklist, Whitelist.
|
|
180
|
+
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
|
|
181
|
+
Rails/SkipsModelValidations:
|
|
182
|
+
Exclude:
|
|
183
|
+
- 'app/controllers/spree/admin/reviews_controller.rb'
|
|
184
|
+
- 'db/migrate/20120123141326_recalculate_ratings.rb'
|
|
185
|
+
- 'spec/controllers/spree/admin/reviews_controller_spec.rb'
|
|
186
|
+
- 'spec/models/product_spec.rb'
|
|
187
|
+
|
|
188
|
+
# Offense count: 10
|
|
189
|
+
# Cop supports --auto-correct.
|
|
190
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
191
|
+
# SupportedStyles: nested, compact
|
|
192
|
+
Style/ClassAndModuleChildren:
|
|
193
|
+
Exclude:
|
|
194
|
+
- 'app/controllers/spree/admin/feedback_reviews_controller.rb'
|
|
195
|
+
- 'app/controllers/spree/admin/review_settings_controller.rb'
|
|
196
|
+
- 'app/controllers/spree/admin/reviews_controller.rb'
|
|
197
|
+
- 'app/controllers/spree/feedback_reviews_controller.rb'
|
|
198
|
+
- 'app/controllers/spree/reviews_controller.rb'
|
|
199
|
+
- 'app/helpers/spree/reviews_helper.rb'
|
|
200
|
+
- 'app/models/spree/feedback_review.rb'
|
|
201
|
+
- 'app/models/spree/review.rb'
|
|
202
|
+
- 'app/models/spree/reviews_ability.rb'
|
|
203
|
+
- 'app/models/spree/reviews_configuration.rb'
|
|
204
|
+
|
|
205
|
+
# Offense count: 2
|
|
206
|
+
Style/ClassVars:
|
|
207
|
+
Exclude:
|
|
208
|
+
- 'app/decorators/helpers/solidus_reviews/spree/api/api_helpers_decorator.rb'
|
|
209
|
+
|
|
210
|
+
# Offense count: 1
|
|
211
|
+
# Configuration parameters: .
|
|
212
|
+
# SupportedStyles: annotated, template, unannotated
|
|
213
|
+
Style/FormatStringToken:
|
|
214
|
+
EnforcedStyle: unannotated
|
|
215
|
+
|
|
216
|
+
# Offense count: 3
|
|
217
|
+
# Configuration parameters: MinBodyLength.
|
|
218
|
+
Style/GuardClause:
|
|
219
|
+
Exclude:
|
|
220
|
+
- 'app/controllers/spree/admin/reviews_controller.rb'
|
|
221
|
+
- 'lib/controllers/spree/api/reviews_controller.rb'
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [v1.4.0](https://github.com/solidusio-contrib/solidus_reviews/tree/v1.4.0) (2020-08-06)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/solidusio-contrib/solidus_reviews/compare/v1.3.0...v1.4.0)
|
|
6
|
+
|
|
7
|
+
**Closed issues:**
|
|
8
|
+
|
|
9
|
+
- Cannot select star rating when creating or editing a review [\#88](https://github.com/solidusio-contrib/solidus_reviews/issues/88)
|
|
10
|
+
- uninitialized constant SolidusReviews::Spree::Admin \(NameError\) [\#77](https://github.com/solidusio-contrib/solidus_reviews/issues/77)
|
|
11
|
+
- Dependabot can't resolve your Ruby dependency files [\#75](https://github.com/solidusio-contrib/solidus_reviews/issues/75)
|
|
12
|
+
- Dependabot can't resolve your Ruby dependency files [\#74](https://github.com/solidusio-contrib/solidus_reviews/issues/74)
|
|
13
|
+
- Dependabot can't resolve your Ruby dependency files [\#73](https://github.com/solidusio-contrib/solidus_reviews/issues/73)
|
|
14
|
+
- Dependabot can't resolve your Ruby dependency files [\#71](https://github.com/solidusio-contrib/solidus_reviews/issues/71)
|
|
15
|
+
- Dependabot can't resolve your Ruby dependency files [\#70](https://github.com/solidusio-contrib/solidus_reviews/issues/70)
|
|
16
|
+
- Dependabot can't resolve your Ruby dependency files [\#69](https://github.com/solidusio-contrib/solidus_reviews/issues/69)
|
|
17
|
+
- Users should be able to upload images as part of their review [\#67](https://github.com/solidusio-contrib/solidus_reviews/issues/67)
|
|
18
|
+
|
|
19
|
+
**Merged pull requests:**
|
|
20
|
+
|
|
21
|
+
- Replace deprected ` SolidusSupport::EngineExtensions::Decorators` with ` SolidusSupport::EngineExtensions` [\#93](https://github.com/solidusio-contrib/solidus_reviews/pull/93) ([marcrohloff](https://github.com/marcrohloff))
|
|
22
|
+
- Allow solidus\_support 0.4 [\#92](https://github.com/solidusio-contrib/solidus_reviews/pull/92) ([mamhoff](https://github.com/mamhoff))
|
|
23
|
+
- Fixes review title [\#91](https://github.com/solidusio-contrib/solidus_reviews/pull/91) ([memotoro](https://github.com/memotoro))
|
|
24
|
+
- remove extraneous .css file [\#90](https://github.com/solidusio-contrib/solidus_reviews/pull/90) ([dhughesbc](https://github.com/dhughesbc))
|
|
25
|
+
- Relax solidus\_support dependency [\#86](https://github.com/solidusio-contrib/solidus_reviews/pull/86) ([kennyadsl](https://github.com/kennyadsl))
|
|
26
|
+
- Adds PermissionSets classes and checks for Reviews [\#85](https://github.com/solidusio-contrib/solidus_reviews/pull/85) ([memotoro](https://github.com/memotoro))
|
|
27
|
+
- Adds controls for image uploads [\#83](https://github.com/solidusio-contrib/solidus_reviews/pull/83) ([memotoro](https://github.com/memotoro))
|
|
28
|
+
- Add option to auto approve star only reviews [\#82](https://github.com/solidusio-contrib/solidus_reviews/pull/82) ([KaemonIsland](https://github.com/KaemonIsland))
|
|
29
|
+
- Add touch to feedback review model [\#81](https://github.com/solidusio-contrib/solidus_reviews/pull/81) ([KaemonIsland](https://github.com/KaemonIsland))
|
|
30
|
+
- Add feedback reviews to api [\#79](https://github.com/solidusio-contrib/solidus_reviews/pull/79) ([KaemonIsland](https://github.com/KaemonIsland))
|
|
31
|
+
- Fix path for Spree::ProductsControllerDecorator [\#78](https://github.com/solidusio-contrib/solidus_reviews/pull/78) ([aldesantis](https://github.com/aldesantis))
|
|
32
|
+
- Add edit and update methods to reviews controller [\#76](https://github.com/solidusio-contrib/solidus_reviews/pull/76) ([KaemonIsland](https://github.com/KaemonIsland))
|
|
33
|
+
- Update to solidus\_dev\_support [\#72](https://github.com/solidusio-contrib/solidus_reviews/pull/72) ([aldesantis](https://github.com/aldesantis))
|
|
34
|
+
|
|
35
|
+
## [v1.3.0](https://github.com/solidusio-contrib/solidus_reviews/tree/v1.3.0) (2019-11-27)
|
|
36
|
+
|
|
37
|
+
[Full Changelog](https://github.com/solidusio-contrib/solidus_reviews/compare/v1.2.0...v1.3.0)
|
|
38
|
+
|
|
39
|
+
**Closed issues:**
|
|
40
|
+
|
|
41
|
+
- sass/rails is deprecated. Please update to `require 'sassc/rails'` [\#48](https://github.com/solidusio-contrib/solidus_reviews/issues/48)
|
|
42
|
+
- Class variable access from toplevel [\#47](https://github.com/solidusio-contrib/solidus_reviews/issues/47)
|
|
43
|
+
|
|
44
|
+
**Merged pull requests:**
|
|
45
|
+
|
|
46
|
+
- Prepare v1.3.0 [\#68](https://github.com/solidusio-contrib/solidus_reviews/pull/68) ([aldesantis](https://github.com/aldesantis))
|
|
47
|
+
- Adopt solidus\_extension\_dev\_tools [\#66](https://github.com/solidusio-contrib/solidus_reviews/pull/66) ([aldesantis](https://github.com/aldesantis))
|
|
48
|
+
- Switch to sassc/rails [\#65](https://github.com/solidusio-contrib/solidus_reviews/pull/65) ([pelargir](https://github.com/pelargir))
|
|
49
|
+
- Fix flaky specs caused by bad preference stubbing [\#54](https://github.com/solidusio-contrib/solidus_reviews/pull/54) ([aldesantis](https://github.com/aldesantis))
|
|
50
|
+
|
|
51
|
+
## [v1.2.0](https://github.com/solidusio-contrib/solidus_reviews/tree/v1.2.0) (2019-09-17)
|
|
52
|
+
|
|
53
|
+
[Full Changelog](https://github.com/solidusio-contrib/solidus_reviews/compare/v1.1.1...v1.2.0)
|
|
54
|
+
|
|
55
|
+
**Merged pull requests:**
|
|
56
|
+
|
|
57
|
+
- Remove solidus\_auth\_devise as dependency [\#53](https://github.com/solidusio-contrib/solidus_reviews/pull/53) ([kennyadsl](https://github.com/kennyadsl))
|
|
58
|
+
- Adopt CircleCI instead of Travis [\#51](https://github.com/solidusio-contrib/solidus_reviews/pull/51) ([aldesantis](https://github.com/aldesantis))
|
|
59
|
+
|
|
60
|
+
## [v1.1.1](https://github.com/solidusio-contrib/solidus_reviews/tree/v1.1.1) (2019-08-15)
|
|
61
|
+
|
|
62
|
+
[Full Changelog](https://github.com/solidusio-contrib/solidus_reviews/compare/v1.1.0...v1.1.1)
|
|
63
|
+
|
|
64
|
+
**Closed issues:**
|
|
65
|
+
|
|
66
|
+
- Rubygems release [\#22](https://github.com/solidusio-contrib/solidus_reviews/issues/22)
|
|
67
|
+
|
|
68
|
+
**Merged pull requests:**
|
|
69
|
+
|
|
70
|
+
- Adds missing API features to the index and show endpoints [\#46](https://github.com/solidusio-contrib/solidus_reviews/pull/46) ([ericsaupe](https://github.com/ericsaupe))
|
|
71
|
+
|
|
72
|
+
## [v1.1.0](https://github.com/solidusio-contrib/solidus_reviews/tree/v1.1.0) (2019-08-14)
|
|
73
|
+
|
|
74
|
+
[Full Changelog](https://github.com/solidusio-contrib/solidus_reviews/compare/v1.0.0...v1.1.0)
|
|
75
|
+
|
|
76
|
+
**Closed issues:**
|
|
77
|
+
|
|
78
|
+
- Support rating only reviews [\#41](https://github.com/solidusio-contrib/solidus_reviews/issues/41)
|
|
79
|
+
- Settings \> Reviews styling is broken [\#35](https://github.com/solidusio-contrib/solidus_reviews/issues/35)
|
|
80
|
+
- Need add key to translate file ru.yml [\#23](https://github.com/solidusio-contrib/solidus_reviews/issues/23)
|
|
81
|
+
- Error in solidus 2.1 due to add\_routes method [\#5](https://github.com/solidusio-contrib/solidus_reviews/issues/5)
|
|
82
|
+
|
|
83
|
+
**Merged pull requests:**
|
|
84
|
+
|
|
85
|
+
- General Typos [\#45](https://github.com/solidusio-contrib/solidus_reviews/pull/45) ([ericsaupe](https://github.com/ericsaupe))
|
|
86
|
+
- Updated API to include new fields [\#44](https://github.com/solidusio-contrib/solidus_reviews/pull/44) ([ericsaupe](https://github.com/ericsaupe))
|
|
87
|
+
- Fix specs [\#43](https://github.com/solidusio-contrib/solidus_reviews/pull/43) ([ericsaupe](https://github.com/ericsaupe))
|
|
88
|
+
- Rating only reviews [\#42](https://github.com/solidusio-contrib/solidus_reviews/pull/42) ([ericsaupe](https://github.com/ericsaupe))
|
|
89
|
+
- Adds verified purchaser [\#40](https://github.com/solidusio-contrib/solidus_reviews/pull/40) ([ericsaupe](https://github.com/ericsaupe))
|
|
90
|
+
- Cleanup [\#39](https://github.com/solidusio-contrib/solidus_reviews/pull/39) ([ericsaupe](https://github.com/ericsaupe))
|
|
91
|
+
- Added Images to Reviews [\#38](https://github.com/solidusio-contrib/solidus_reviews/pull/38) ([ericsaupe](https://github.com/ericsaupe))
|
|
92
|
+
- Add missing admin translation [\#37](https://github.com/solidusio-contrib/solidus_reviews/pull/37) ([jtapia](https://github.com/jtapia))
|
|
93
|
+
- Fix wrong locale id for require login in admin [\#36](https://github.com/solidusio-contrib/solidus_reviews/pull/36) ([kevinnio](https://github.com/kevinnio))
|
|
94
|
+
- Gem maintenance [\#34](https://github.com/solidusio-contrib/solidus_reviews/pull/34) ([spaghetticode](https://github.com/spaghetticode))
|
|
95
|
+
- Remove Solidus v2.3 from Travis config \(EOL\) [\#33](https://github.com/solidusio-contrib/solidus_reviews/pull/33) ([aitbw](https://github.com/aitbw))
|
|
96
|
+
- Add Solidus v2.7 and v2.8 to Travis config [\#32](https://github.com/solidusio-contrib/solidus_reviews/pull/32) ([aitbw](https://github.com/aitbw))
|
|
97
|
+
- Fix deprecation warnings [\#31](https://github.com/solidusio-contrib/solidus_reviews/pull/31) ([aitbw](https://github.com/aitbw))
|
|
98
|
+
- Fix Travis build [\#30](https://github.com/solidusio-contrib/solidus_reviews/pull/30) ([aitbw](https://github.com/aitbw))
|
|
99
|
+
- Fix validation i18n [\#29](https://github.com/solidusio-contrib/solidus_reviews/pull/29) ([mamhoff](https://github.com/mamhoff))
|
|
100
|
+
- Avoid conflicts when same rating HTML is repeated on page [\#28](https://github.com/solidusio-contrib/solidus_reviews/pull/28) ([spaghetticode](https://github.com/spaghetticode))
|
|
101
|
+
- Add missing TH tag [\#27](https://github.com/solidusio-contrib/solidus_reviews/pull/27) ([spaghetticode](https://github.com/spaghetticode))
|
|
102
|
+
- Use default translation key structure for validation message [\#26](https://github.com/solidusio-contrib/solidus_reviews/pull/26) ([aldesantis](https://github.com/aldesantis))
|
|
103
|
+
- Remove redundant rescue\_from from api controller [\#24](https://github.com/solidusio-contrib/solidus_reviews/pull/24) ([dgra](https://github.com/dgra))
|
|
104
|
+
- Improve specs [\#21](https://github.com/solidusio-contrib/solidus_reviews/pull/21) ([kennyadsl](https://github.com/kennyadsl))
|
|
105
|
+
- Refactor spec helper to let specs pass [\#20](https://github.com/solidusio-contrib/solidus_reviews/pull/20) ([kennyadsl](https://github.com/kennyadsl))
|
|
106
|
+
- Fix Trevis CI badge to use master branch status [\#19](https://github.com/solidusio-contrib/solidus_reviews/pull/19) ([kennyadsl](https://github.com/kennyadsl))
|
|
107
|
+
- Fix bundle install issue with solidus\_auth\_devise 2.0 [\#18](https://github.com/solidusio-contrib/solidus_reviews/pull/18) ([kennyadsl](https://github.com/kennyadsl))
|
|
108
|
+
- Fix resetting preferences in specs [\#17](https://github.com/solidusio-contrib/solidus_reviews/pull/17) ([kennyadsl](https://github.com/kennyadsl))
|
|
109
|
+
- Add italian translations [\#16](https://github.com/solidusio-contrib/solidus_reviews/pull/16) ([vassalloandrea](https://github.com/vassalloandrea))
|
|
110
|
+
- Add user email to admin review editing page [\#15](https://github.com/solidusio-contrib/solidus_reviews/pull/15) ([pelargir](https://github.com/pelargir))
|
|
111
|
+
- Api interface [\#14](https://github.com/solidusio-contrib/solidus_reviews/pull/14) ([dgra](https://github.com/dgra))
|
|
112
|
+
- General Solidus 2.3 updates [\#13](https://github.com/solidusio-contrib/solidus_reviews/pull/13) ([dgra](https://github.com/dgra))
|
|
113
|
+
- Prefix named route [\#11](https://github.com/solidusio-contrib/solidus_reviews/pull/11) ([pelargir](https://github.com/pelargir))
|
|
114
|
+
- Add the has\_many association for reviews from a user [\#10](https://github.com/solidusio-contrib/solidus_reviews/pull/10) ([dgra](https://github.com/dgra))
|
|
115
|
+
- Updates to Solidus admin UI [\#9](https://github.com/solidusio-contrib/solidus_reviews/pull/9) ([tvdeyen](https://github.com/tvdeyen))
|
|
116
|
+
- Update for Solidus 2.1 [\#6](https://github.com/solidusio-contrib/solidus_reviews/pull/6) ([kennyadsl](https://github.com/kennyadsl))
|
|
117
|
+
|
|
118
|
+
## [v1.0.0](https://github.com/solidusio-contrib/solidus_reviews/tree/v1.0.0) (2017-02-03)
|
|
119
|
+
|
|
120
|
+
[Full Changelog](https://github.com/solidusio-contrib/solidus_reviews/compare/8640958dc42f9472cb5cbb85cab981a44f4c45db...v1.0.0)
|
|
121
|
+
|
|
122
|
+
**Merged pull requests:**
|
|
123
|
+
|
|
124
|
+
- Allow solidus\_auth\_devise \< 1.5 [\#8](https://github.com/solidusio-contrib/solidus_reviews/pull/8) ([tvdeyen](https://github.com/tvdeyen))
|
|
125
|
+
- Test against multiple Solidus 1.x versions [\#7](https://github.com/solidusio-contrib/solidus_reviews/pull/7) ([tvdeyen](https://github.com/tvdeyen))
|
|
126
|
+
- Fix install generator [\#3](https://github.com/solidusio-contrib/solidus_reviews/pull/3) ([andrewjwu](https://github.com/andrewjwu))
|
|
127
|
+
- Do not add CRUD product routes to frontend [\#2](https://github.com/solidusio-contrib/solidus_reviews/pull/2) ([mamhoff](https://github.com/mamhoff))
|
|
128
|
+
- Move factories into `lib` [\#1](https://github.com/solidusio-contrib/solidus_reviews/pull/1) ([alexblackie](https://github.com/alexblackie))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|