solidus_reviews 1.7.0 → 1.8.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 +4 -4
- data/.github/dependabot.yml +7 -0
- data/.github/workflows/lint.yml +25 -0
- data/.github/workflows/test.yml +68 -0
- data/.rubocop_todo.yml +0 -5
- data/Gemfile +6 -10
- data/README.md +2 -2
- data/app/models/spree/feedback_review.rb +1 -1
- data/app/models/spree/review.rb +3 -17
- data/app/{decorators/models/solidus_reviews/spree/product_decorator.rb → patches/models/solidus_reviews/spree/product_patch.rb} +1 -1
- data/app/{decorators/models/solidus_reviews/spree/user_decorator.rb → patches/models/solidus_reviews/spree/user_patch.rb} +1 -1
- data/app/views/spree/admin/feedback_reviews/index.html.erb +33 -35
- data/app/views/spree/admin/reviews/edit.html.erb +18 -20
- data/config/initializers/add_spree_reviews_to_menu.rb +1 -1
- data/{app/decorators/helpers/solidus_reviews/spree/api/api_helpers_decorator.rb → lib/patches/api/helpers/solidus_reviews/spree/api/api_helpers_patch.rb} +3 -2
- data/{app/decorators/controllers/solidus_reviews/spree/products_controller_decorator.rb → lib/patches/frontend/controllers/solidus_reviews/spree/products_controller_patch.rb} +1 -1
- data/lib/solidus_reviews/version.rb +1 -1
- data/solidus_reviews.gemspec +3 -2
- data/spec/features/reviews_spec.rb +6 -6
- data/spec/models/review_spec.rb +1 -1
- data/vendor/assets/javascripts/jquery.rating.js +2 -1
- metadata +54 -24
- data/.circleci/config.yml +0 -61
- /data/{app/views → lib/views/api}/spree/api/reviews/_feedback_review.json.jbuilder +0 -0
- /data/{app/views → lib/views/api}/spree/api/reviews/_review.json.jbuilder +0 -0
- /data/{app/views → lib/views/api}/spree/api/reviews/index.json.jbuilder +0 -0
- /data/{app/views → lib/views/api}/spree/api/reviews/show.json.jbuilder +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b020b08e1ff3ee4e26c4720cfeb3b89599cba08bf36319b6c91595910b2f6271
|
4
|
+
data.tar.gz: 11c2e893bed1016bb656ae50aede6a3d104bd3f85a4d0df115aefff21d377374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c54dc0026decb39c7646b3d1c7eadfdbc0cedc6b99ca70321712a56104320e6c8e441af14f14d58cdd00b2057b64a61d292e9751a4a6ffc17f9da88cdc8bdbb
|
7
|
+
data.tar.gz: edd8fb878ad4a71f4ae473200a888ab294f17c6dbb894009e59bf671de64f5b91d42c5397b615d06f61b83add6312c47db4aa705aa1b705eeafa3ac350b4f444
|
@@ -0,0 +1,25 @@
|
|
1
|
+
name: Lint
|
2
|
+
|
3
|
+
on: [pull_request]
|
4
|
+
|
5
|
+
concurrency:
|
6
|
+
group: lint-${{ github.ref_name }}
|
7
|
+
cancel-in-progress: ${{ github.ref_name != 'main' }}
|
8
|
+
|
9
|
+
permissions:
|
10
|
+
contents: read
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
ruby:
|
14
|
+
name: Check Ruby
|
15
|
+
runs-on: ubuntu-24.04
|
16
|
+
steps:
|
17
|
+
- name: Checkout code
|
18
|
+
uses: actions/checkout@v3
|
19
|
+
- name: Install Ruby and gems
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: "3.2"
|
23
|
+
bundler-cache: true
|
24
|
+
- name: Lint Ruby files
|
25
|
+
run: bundle exec rubocop -ESP
|
@@ -0,0 +1,68 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
pull_request:
|
8
|
+
schedule:
|
9
|
+
- cron: "0 0 * * 4" # every Thursday
|
10
|
+
|
11
|
+
concurrency:
|
12
|
+
group: test-${{ github.ref_name }}
|
13
|
+
cancel-in-progress: ${{ github.ref_name != 'main' }}
|
14
|
+
|
15
|
+
permissions:
|
16
|
+
contents: read
|
17
|
+
|
18
|
+
jobs:
|
19
|
+
rspec:
|
20
|
+
name: Solidus ${{ matrix.solidus-branch }}, Rails ${{ matrix.rails-version }} and Ruby ${{ matrix.ruby-version }} on ${{ matrix.database }}
|
21
|
+
runs-on: ubuntu-24.04
|
22
|
+
strategy:
|
23
|
+
fail-fast: true
|
24
|
+
matrix:
|
25
|
+
rails-version:
|
26
|
+
- "7.0"
|
27
|
+
- "7.1"
|
28
|
+
- "7.2"
|
29
|
+
ruby-version:
|
30
|
+
- "3.1"
|
31
|
+
- "3.4"
|
32
|
+
solidus-branch:
|
33
|
+
- "v4.1"
|
34
|
+
- "v4.2"
|
35
|
+
- "v4.3"
|
36
|
+
- "v4.4"
|
37
|
+
database:
|
38
|
+
- "postgresql"
|
39
|
+
- "mysql"
|
40
|
+
- "sqlite"
|
41
|
+
exclude:
|
42
|
+
- rails-version: "7.2"
|
43
|
+
solidus-branch: "v4.3"
|
44
|
+
- rails-version: "7.2"
|
45
|
+
solidus-branch: "v4.2"
|
46
|
+
- rails-version: "7.2"
|
47
|
+
solidus-branch: "v4.1"
|
48
|
+
- rails-version: "7.1"
|
49
|
+
solidus-branch: "v4.2"
|
50
|
+
- rails-version: "7.1"
|
51
|
+
solidus-branch: "v4.1"
|
52
|
+
- ruby-version: "3.4"
|
53
|
+
rails-version: "7.0"
|
54
|
+
steps:
|
55
|
+
- uses: actions/checkout@v4
|
56
|
+
- name: Run extension tests
|
57
|
+
uses: solidusio/test-solidus-extension@main
|
58
|
+
with:
|
59
|
+
database: ${{ matrix.database }}
|
60
|
+
rails-version: ${{ matrix.rails-version }}
|
61
|
+
ruby-version: ${{ matrix.ruby-version }}
|
62
|
+
solidus-branch: ${{ matrix.solidus-branch }}
|
63
|
+
- name: Upload coverage reports to Codecov
|
64
|
+
uses: codecov/codecov-action@v5
|
65
|
+
continue-on-error: true
|
66
|
+
with:
|
67
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
68
|
+
files: ./coverage/coverage.xml
|
data/.rubocop_todo.yml
CHANGED
@@ -164,11 +164,6 @@ Style/ClassAndModuleChildren:
|
|
164
164
|
- 'app/models/spree/reviews_ability.rb'
|
165
165
|
- 'app/models/spree/reviews_configuration.rb'
|
166
166
|
|
167
|
-
# Offense count: 2
|
168
|
-
Style/ClassVars:
|
169
|
-
Exclude:
|
170
|
-
- 'app/decorators/helpers/solidus_reviews/spree/api/api_helpers_decorator.rb'
|
171
|
-
|
172
167
|
# Offense count: 1
|
173
168
|
# Configuration parameters: EnforcedStyle.
|
174
169
|
# SupportedStyles: annotated, template, unannotated
|
data/Gemfile
CHANGED
@@ -18,10 +18,8 @@ end
|
|
18
18
|
# Needed to help Bundler figure out how to resolve dependencies,
|
19
19
|
# otherwise it takes forever to resolve them.
|
20
20
|
# See https://github.com/bundler/bundler/issues/6677
|
21
|
-
|
22
|
-
|
23
|
-
# Provides basic authentication functionality for testing parts of your engine
|
24
|
-
gem 'solidus_auth_devise'
|
21
|
+
rails_version = ENV.fetch('RAILS_VERSION', '7.2')
|
22
|
+
gem 'rails', "~> #{rails_version}"
|
25
23
|
|
26
24
|
case ENV.fetch('DB', nil)
|
27
25
|
when 'mysql'
|
@@ -29,14 +27,9 @@ when 'mysql'
|
|
29
27
|
when 'postgresql'
|
30
28
|
gem 'pg'
|
31
29
|
else
|
32
|
-
gem 'sqlite3'
|
30
|
+
gem 'sqlite3', '~> 1.7'
|
33
31
|
end
|
34
32
|
|
35
|
-
# While we still support Ruby < 3 we need to workaround a limitation in
|
36
|
-
# the 'async' gem that relies on the latest ruby, since RubyGems doesn't
|
37
|
-
# resolve gems based on the required ruby version.
|
38
|
-
gem 'async', '< 3' if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3')
|
39
|
-
|
40
33
|
gemspec
|
41
34
|
|
42
35
|
# Use a local Gemfile to include development dependencies that might not be
|
@@ -45,3 +38,6 @@ gemspec
|
|
45
38
|
# We use `send` instead of calling `eval_gemfile` to work around an issue with
|
46
39
|
# how Dependabot parses projects: https://github.com/dependabot/dependabot-core/issues/1658.
|
47
40
|
send(:eval_gemfile, 'Gemfile-local') if File.exist? 'Gemfile-local'
|
41
|
+
|
42
|
+
# Necessary for Ruby 3.4 support
|
43
|
+
gem "csv", "~> 3.3"
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Solidus Reviews
|
2
2
|
|
3
|
-
[](https://github.com/solidusio-contrib/solidus_reviews/actions/workflows/test.yml)
|
4
|
+
[](https://codecov.io/gh/solidusio-contrib/solidus_reviews)
|
5
5
|
|
6
6
|
Straightforward review/rating functionality, updated for [Solidus](https://solidus.io).
|
7
7
|
|
data/app/models/spree/review.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class Spree::Review <
|
3
|
+
class Spree::Review < Spree::Base
|
4
4
|
belongs_to :product, touch: true, optional: true
|
5
5
|
belongs_to :user, class_name: Spree.user_class.to_s, optional: true
|
6
6
|
has_many :feedback_reviews, dependent: :destroy
|
@@ -27,22 +27,8 @@ class Spree::Review < ApplicationRecord
|
|
27
27
|
scope :not_approved, -> { where(approved: false) }
|
28
28
|
scope :default_approval_filter, -> { Spree::Reviews::Config[:include_unapproved_reviews] ? all : approved }
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
"approved",
|
33
|
-
"name",
|
34
|
-
"review",
|
35
|
-
"title"
|
36
|
-
]
|
37
|
-
end
|
38
|
-
|
39
|
-
def self.ransackable_associations(*)
|
40
|
-
[
|
41
|
-
"feedback_reviews",
|
42
|
-
"product",
|
43
|
-
"user"
|
44
|
-
]
|
45
|
-
end
|
30
|
+
self.allowed_ransackable_associations = %w[feedback_reviews product user]
|
31
|
+
self.allowed_ransackable_attributes = %w[approved name review title]
|
46
32
|
|
47
33
|
def feedback_stars
|
48
34
|
return 0 if feedback_reviews.size <= 0
|
@@ -1,44 +1,42 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
|
2
|
+
<%= I18n.t("spree.feedback_review_for", review: @review.title) %>
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
|
6
|
+
<li><%= link_to I18n.t("spree.back_to_reviews"), admin_reviews_path %></li>
|
7
7
|
<% end %>
|
8
8
|
|
9
|
-
<% render 'spree/admin/shared/product_sub_menu' %>
|
10
|
-
|
11
9
|
<% if @collection.any? %>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
10
|
+
<table class="index">
|
11
|
+
<colgroup>
|
12
|
+
<col style="width: 30%;">
|
13
|
+
<col style="width: 20%;">
|
14
|
+
<col style="width: 20%;">
|
15
|
+
<col style="width: 17%;">
|
16
|
+
</colgroup>
|
17
|
+
<thead>
|
18
|
+
<tr>
|
19
|
+
<th><%= I18n.t("spree.user") %></th>
|
20
|
+
<th><%= I18n.t("spree.stars") %></th>
|
21
|
+
<th><%= I18n.t("spree.date") %></th>
|
22
|
+
<th class="actions"></th>
|
23
|
+
</tr>
|
24
|
+
</thead>
|
25
|
+
<tbody>
|
26
|
+
<%- @collection.each do |feedback| -%>
|
27
|
+
<tr id="<%= dom_id(feedback) %>">
|
28
|
+
<td><%= l feedback.created_at %></td>
|
29
|
+
<td><%= feedback.user.try(:login) || I18n.t("spree.anonymous") %></td>
|
30
|
+
<td><%= feedback.rating %></td>
|
31
|
+
<td class="actions">
|
32
|
+
<%= link_to_delete feedback, no_text: true %>
|
33
|
+
</td>
|
34
|
+
</tr>
|
35
|
+
<% end %>
|
36
|
+
</tbody>
|
37
|
+
</table>
|
40
38
|
<% else %>
|
41
|
-
|
42
|
-
|
43
|
-
|
39
|
+
<div class="no-objects-found">
|
40
|
+
<%= I18n.t("spree.no_results") %>
|
41
|
+
</div>
|
44
42
|
<% end %>
|
@@ -1,28 +1,26 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
|
2
|
+
<%= I18n.t("spree.editing_review_for_html", product_name: @review.product.name) %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
<% render 'spree/admin/shared/product_sub_menu' %>
|
6
|
-
|
7
5
|
<%= form_for([:admin, @review]) do |f| %>
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
6
|
+
<div class="alpha eight columns">
|
7
|
+
<% unless @review.title.blank? %>
|
8
|
+
<h2><%= @review.title %></h2>
|
9
|
+
<% end %>
|
10
|
+
<p>
|
11
|
+
<%= simple_format(@review.review) %>
|
12
|
+
</p>
|
13
|
+
</div>
|
16
14
|
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
<div class="omega eight columns">
|
16
|
+
<%= render 'form', f: f %>
|
17
|
+
</div>
|
20
18
|
|
21
|
-
|
19
|
+
<div class="clear"></div>
|
22
20
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
21
|
+
<fieldset class="no-border-top">
|
22
|
+
<% if can? :manage, Spree::Review %>
|
23
|
+
<%= render 'spree/admin/shared/edit_resource_links' %>
|
24
|
+
<% end %>
|
25
|
+
</fieldset>
|
28
26
|
<% end %>
|
@@ -3,9 +3,10 @@
|
|
3
3
|
module SolidusReviews
|
4
4
|
module Spree
|
5
5
|
module Api
|
6
|
-
module
|
6
|
+
module ApiHelpersPatch
|
7
7
|
def self.prepended(base)
|
8
8
|
base.module_eval do
|
9
|
+
# rubocop:disable Style/ClassVars
|
9
10
|
@@review_attributes = [
|
10
11
|
:id, :product_id, :name, :location, :rating, :title, :review, :approved,
|
11
12
|
:created_at, :updated_at, :user_id, :ip_address, :locale, :show_identifier,
|
@@ -15,6 +16,7 @@ module SolidusReviews
|
|
15
16
|
@@feedback_review_attributes = [
|
16
17
|
:id, :user_id, :review_id, :rating, :comment, :created_at, :updated_at, :locale
|
17
18
|
]
|
19
|
+
# rubocop:enable Style/ClassVars
|
18
20
|
|
19
21
|
def review_attributes
|
20
22
|
@@review_attributes
|
@@ -25,7 +27,6 @@ module SolidusReviews
|
|
25
27
|
end
|
26
28
|
end
|
27
29
|
end
|
28
|
-
|
29
30
|
::Spree::Api::ApiHelpers.prepend self
|
30
31
|
end
|
31
32
|
end
|
data/solidus_reviews.gemspec
CHANGED
@@ -28,9 +28,10 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
|
+
spec.add_dependency 'deface', ['>= 1.9.0', '< 2.0']
|
31
32
|
spec.add_dependency 'solidus_core', ['>= 2.0.0', '< 5']
|
32
|
-
spec.add_dependency 'solidus_support', '
|
33
|
+
spec.add_dependency 'solidus_support', ['>= 0.14.1', '< 1']
|
33
34
|
|
34
35
|
spec.add_development_dependency 'rails-controller-testing'
|
35
|
-
spec.add_development_dependency 'solidus_dev_support', '
|
36
|
+
spec.add_development_dependency 'solidus_dev_support', ['>= 2.11', '< 3']
|
36
37
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
|
+
require 'spree/testing_support/authorization_helpers'
|
4
5
|
|
5
6
|
describe 'Reviews', js: true do
|
6
7
|
let!(:someone) { create(:user, email: 'ryan@spree.com') }
|
@@ -125,12 +126,11 @@ describe 'Reviews', js: true do
|
|
125
126
|
private
|
126
127
|
|
127
128
|
def sign_in_as!(user)
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
click_button 'Login'
|
129
|
+
# rubocop:disable RSpec/AnyInstance
|
130
|
+
allow_any_instance_of(ApplicationController).to receive_messages current_user: user
|
131
|
+
allow_any_instance_of(ApplicationController).to receive_messages spree_current_user: user
|
132
|
+
allow_any_instance_of(ApplicationController).to receive_messages spree_user_signed_in?: true
|
133
|
+
# rubocop:enable RSpec/AnyInstance
|
134
134
|
end
|
135
135
|
|
136
136
|
def click_star(num)
|
data/spec/models/review_spec.rb
CHANGED
@@ -126,7 +126,7 @@ describe Spree::Review do
|
|
126
126
|
describe '.ransackable_attributes' do
|
127
127
|
subject { described_class.ransackable_attributes }
|
128
128
|
|
129
|
-
it { is_expected.to contain_exactly("approved", "name", "review", "title") }
|
129
|
+
it { is_expected.to contain_exactly("id", "approved", "name", "review", "title") }
|
130
130
|
end
|
131
131
|
|
132
132
|
describe '.ransackable_associations' do
|
@@ -3,7 +3,8 @@
|
|
3
3
|
* Home: http://www.fyneworks.com/jquery/star-rating/
|
4
4
|
* Code: http://code.google.com/p/jquery-star-rating-plugin/
|
5
5
|
*
|
6
|
-
|
6
|
+
* Licensed under http://en.wikipedia.org/wiki/MIT_License
|
7
|
+
* Copyright by Fyneworks.com
|
7
8
|
###
|
8
9
|
*/
|
9
10
|
|
metadata
CHANGED
@@ -1,15 +1,34 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_reviews
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Contrib
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-27 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: deface
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: 1.9.0
|
19
|
+
- - "<"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 1.9.0
|
29
|
+
- - "<"
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '2.0'
|
13
32
|
- !ruby/object:Gem::Dependency
|
14
33
|
name: solidus_core
|
15
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,16 +53,22 @@ dependencies:
|
|
34
53
|
name: solidus_support
|
35
54
|
requirement: !ruby/object:Gem::Requirement
|
36
55
|
requirements:
|
37
|
-
- - "
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 0.14.1
|
59
|
+
- - "<"
|
38
60
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
61
|
+
version: '1'
|
40
62
|
type: :runtime
|
41
63
|
prerelease: false
|
42
64
|
version_requirements: !ruby/object:Gem::Requirement
|
43
65
|
requirements:
|
44
|
-
- - "
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.14.1
|
69
|
+
- - "<"
|
45
70
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
71
|
+
version: '1'
|
47
72
|
- !ruby/object:Gem::Dependency
|
48
73
|
name: rails-controller-testing
|
49
74
|
requirement: !ruby/object:Gem::Requirement
|
@@ -62,25 +87,32 @@ dependencies:
|
|
62
87
|
name: solidus_dev_support
|
63
88
|
requirement: !ruby/object:Gem::Requirement
|
64
89
|
requirements:
|
65
|
-
- - "
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '2.11'
|
93
|
+
- - "<"
|
66
94
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
95
|
+
version: '3'
|
68
96
|
type: :development
|
69
97
|
prerelease: false
|
70
98
|
version_requirements: !ruby/object:Gem::Requirement
|
71
99
|
requirements:
|
72
|
-
- - "
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '2.11'
|
103
|
+
- - "<"
|
73
104
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
105
|
+
version: '3'
|
75
106
|
description: Review and rating functionality for your Solidus store.
|
76
|
-
email:
|
77
107
|
executables: []
|
78
108
|
extensions: []
|
79
109
|
extra_rdoc_files: []
|
80
110
|
files:
|
81
|
-
- ".circleci/config.yml"
|
82
111
|
- ".gem_release.yml"
|
112
|
+
- ".github/dependabot.yml"
|
83
113
|
- ".github/stale.yml"
|
114
|
+
- ".github/workflows/lint.yml"
|
115
|
+
- ".github/workflows/test.yml"
|
84
116
|
- ".github_changelog_generator"
|
85
117
|
- ".gitignore"
|
86
118
|
- ".rspec"
|
@@ -104,10 +136,6 @@ files:
|
|
104
136
|
- app/controllers/spree/admin/reviews_controller.rb
|
105
137
|
- app/controllers/spree/feedback_reviews_controller.rb
|
106
138
|
- app/controllers/spree/reviews_controller.rb
|
107
|
-
- app/decorators/controllers/solidus_reviews/spree/products_controller_decorator.rb
|
108
|
-
- app/decorators/helpers/solidus_reviews/spree/api/api_helpers_decorator.rb
|
109
|
-
- app/decorators/models/solidus_reviews/spree/product_decorator.rb
|
110
|
-
- app/decorators/models/solidus_reviews/spree/user_decorator.rb
|
111
139
|
- app/helpers/spree/reviews_helper.rb
|
112
140
|
- app/models/spree/feedback_review.rb
|
113
141
|
- app/models/spree/permission_sets/review_display.rb
|
@@ -116,15 +144,13 @@ files:
|
|
116
144
|
- app/models/spree/reviews_ability.rb
|
117
145
|
- app/models/spree/reviews_configuration.rb
|
118
146
|
- app/overrides/spree/products/show/add_reviews_after_product_properties.html.erb.deface
|
147
|
+
- app/patches/models/solidus_reviews/spree/product_patch.rb
|
148
|
+
- app/patches/models/solidus_reviews/spree/user_patch.rb
|
119
149
|
- app/views/spree/admin/feedback_reviews/index.html.erb
|
120
150
|
- app/views/spree/admin/review_settings/edit.html.erb
|
121
151
|
- app/views/spree/admin/reviews/_form.html.erb
|
122
152
|
- app/views/spree/admin/reviews/edit.html.erb
|
123
153
|
- app/views/spree/admin/reviews/index.html.erb
|
124
|
-
- app/views/spree/api/reviews/_feedback_review.json.jbuilder
|
125
|
-
- app/views/spree/api/reviews/_review.json.jbuilder
|
126
|
-
- app/views/spree/api/reviews/index.json.jbuilder
|
127
|
-
- app/views/spree/api/reviews/show.json.jbuilder
|
128
154
|
- app/views/spree/feedback_reviews/_form.html.erb
|
129
155
|
- app/views/spree/feedback_reviews/_summary.html.erb
|
130
156
|
- app/views/spree/feedback_reviews/create.js.erb
|
@@ -183,6 +209,8 @@ files:
|
|
183
209
|
- lib/controllers/spree/api/reviews_controller.rb
|
184
210
|
- lib/generators/solidus_reviews/install/install_generator.rb
|
185
211
|
- lib/generators/solidus_reviews/install/templates/initializer.rb
|
212
|
+
- lib/patches/api/helpers/solidus_reviews/spree/api/api_helpers_patch.rb
|
213
|
+
- lib/patches/frontend/controllers/solidus_reviews/spree/products_controller_patch.rb
|
186
214
|
- lib/solidus_reviews.rb
|
187
215
|
- lib/solidus_reviews/configuration.rb
|
188
216
|
- lib/solidus_reviews/engine.rb
|
@@ -190,6 +218,10 @@ files:
|
|
190
218
|
- lib/solidus_reviews/factories/review_factory.rb
|
191
219
|
- lib/solidus_reviews/testing_support/factories.rb
|
192
220
|
- lib/solidus_reviews/version.rb
|
221
|
+
- lib/views/api/spree/api/reviews/_feedback_review.json.jbuilder
|
222
|
+
- lib/views/api/spree/api/reviews/_review.json.jbuilder
|
223
|
+
- lib/views/api/spree/api/reviews/index.json.jbuilder
|
224
|
+
- lib/views/api/spree/api/reviews/show.json.jbuilder
|
193
225
|
- solidus_reviews.gemspec
|
194
226
|
- spec/controllers/spree/admin/feedback_reviews_controller_spec.rb
|
195
227
|
- spec/controllers/spree/admin/review_settings_controller_spec.rb
|
@@ -217,7 +249,6 @@ metadata:
|
|
217
249
|
homepage_uri: https://github.com/solidusio-contrib/solidus_reviews
|
218
250
|
source_code_uri: https://github.com/solidusio-contrib/solidus_reviews
|
219
251
|
changelog_uri: https://github.com/solidusio-contrib/solidus_reviews/releases
|
220
|
-
post_install_message:
|
221
252
|
rdoc_options: []
|
222
253
|
require_paths:
|
223
254
|
- lib
|
@@ -232,8 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
263
|
- !ruby/object:Gem::Version
|
233
264
|
version: '0'
|
234
265
|
requirements: []
|
235
|
-
rubygems_version: 3.5
|
236
|
-
signing_key:
|
266
|
+
rubygems_version: 3.6.5
|
237
267
|
specification_version: 4
|
238
268
|
summary: Review and rating functionality for your Solidus store.
|
239
269
|
test_files:
|
data/.circleci/config.yml
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
version: 2.1
|
2
|
-
|
3
|
-
orbs:
|
4
|
-
# Required for feature specs.
|
5
|
-
browser-tools: circleci/browser-tools@1.1
|
6
|
-
|
7
|
-
# Always take the latest version of the orb, this allows us to
|
8
|
-
# run specs against Solidus supported versions only without the need
|
9
|
-
# to change this configuration every time a Solidus version is released
|
10
|
-
# or goes EOL.
|
11
|
-
solidusio_extensions: solidusio/extensions@volatile
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
run-specs-with-sqlite:
|
15
|
-
executor:
|
16
|
-
name: solidusio_extensions/sqlite
|
17
|
-
ruby_version: "3.0"
|
18
|
-
steps:
|
19
|
-
- browser-tools/install-chrome
|
20
|
-
- solidusio_extensions/run-tests
|
21
|
-
run-specs-with-postgres:
|
22
|
-
executor:
|
23
|
-
name: solidusio_extensions/postgres
|
24
|
-
ruby_version: "3.0"
|
25
|
-
steps:
|
26
|
-
- browser-tools/install-chrome
|
27
|
-
- solidusio_extensions/run-tests
|
28
|
-
run-specs-with-mysql:
|
29
|
-
executor:
|
30
|
-
name: solidusio_extensions/mysql
|
31
|
-
ruby_version: "3.0"
|
32
|
-
steps:
|
33
|
-
- browser-tools/install-chrome
|
34
|
-
- solidusio_extensions/run-tests
|
35
|
-
lint-code:
|
36
|
-
executor:
|
37
|
-
name: solidusio_extensions/sqlite-memory
|
38
|
-
ruby_version: "3.0"
|
39
|
-
steps:
|
40
|
-
- solidusio_extensions/lint-code
|
41
|
-
|
42
|
-
workflows:
|
43
|
-
"Run specs on supported Solidus versions":
|
44
|
-
jobs:
|
45
|
-
- run-specs-with-sqlite
|
46
|
-
- run-specs-with-postgres
|
47
|
-
- run-specs-with-mysql
|
48
|
-
- lint-code
|
49
|
-
|
50
|
-
"Weekly run specs against master":
|
51
|
-
triggers:
|
52
|
-
- schedule:
|
53
|
-
cron: "0 0 * * 4" # every Thursday
|
54
|
-
filters:
|
55
|
-
branches:
|
56
|
-
only:
|
57
|
-
- master
|
58
|
-
jobs:
|
59
|
-
- run-specs-with-sqlite
|
60
|
-
- run-specs-with-postgres
|
61
|
-
- run-specs-with-mysql
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|