rubocop-solidus 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -0
- data/CHANGELOG.md +17 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +3 -1
- data/README.md +60 -12
- data/Rakefile +6 -1
- data/config/default.yml +16 -10
- data/docs/cops.md +20 -0
- data/docs/cops_solidus.md +304 -0
- data/lib/rubocop/cop/mixin/target_solidus_version.rb +5 -1
- data/lib/rubocop/cop/solidus/class_eval_decorator.rb +12 -16
- data/lib/rubocop/cop/solidus/existing_card_id_deprecated.rb +40 -0
- data/lib/rubocop/cop/solidus/reimbursement_hook_deprecated.rb +17 -0
- data/lib/rubocop/cop/solidus/spree_calculator_free_shipping_deprecated.rb +7 -0
- data/lib/rubocop/cop/solidus/spree_calculator_percent_per_item_deprecated.rb +9 -1
- data/lib/rubocop/cop/solidus/spree_calculator_price_sack_deprecated.rb +7 -0
- data/lib/rubocop/cop/solidus/spree_default_credit_card_deprecated.rb +3 -4
- data/lib/rubocop/cop/solidus/spree_gateway_bogus_deprecated.rb +4 -14
- data/lib/rubocop/cop/solidus/spree_icon_deprecated.rb +3 -3
- data/lib/rubocop/cop/solidus/spree_refund_call_perform.rb +9 -2
- data/lib/rubocop/cop/solidus/spree_t_deprecated.rb +16 -4
- data/lib/rubocop/cop/solidus_cops.rb +1 -0
- data/lib/rubocop/solidus/version.rb +1 -1
- data/relnotes/v0.1.4.md +5 -0
- data/relnotes/v0.2.0.md +9 -0
- data/rubocop-solidus.gemspec +2 -1
- data/tasks/changelog.rb +1 -1
- data/tasks/cops_documentation.rake +322 -0
- data/tasks/cut_release.rake +2 -2
- metadata +11 -4
data/tasks/cut_release.rake
CHANGED
@@ -12,11 +12,11 @@ namespace :cut_release do
|
|
12
12
|
|
13
13
|
def add_header_to_changelog(version)
|
14
14
|
changelog = File.read('CHANGELOG.md')
|
15
|
-
head, tail = changelog.split("##
|
15
|
+
head, tail = changelog.split("## main (unreleased)\n\n", 2)
|
16
16
|
|
17
17
|
File.open('CHANGELOG.md', 'w') do |f|
|
18
18
|
f << head
|
19
|
-
f << "##
|
19
|
+
f << "## main (unreleased)\n\n"
|
20
20
|
f << "## #{version} (#{Time.now.strftime('%F')})\n\n"
|
21
21
|
f << tail
|
22
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-solidus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piyushswain
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -43,9 +43,12 @@ files:
|
|
43
43
|
- README.md
|
44
44
|
- Rakefile
|
45
45
|
- config/default.yml
|
46
|
+
- docs/cops.md
|
47
|
+
- docs/cops_solidus.md
|
46
48
|
- lib/rubocop-solidus.rb
|
47
49
|
- lib/rubocop/cop/mixin/target_solidus_version.rb
|
48
50
|
- lib/rubocop/cop/solidus/class_eval_decorator.rb
|
51
|
+
- lib/rubocop/cop/solidus/existing_card_id_deprecated.rb
|
49
52
|
- lib/rubocop/cop/solidus/reimbursement_hook_deprecated.rb
|
50
53
|
- lib/rubocop/cop/solidus/spree_calculator_free_shipping_deprecated.rb
|
51
54
|
- lib/rubocop/cop/solidus/spree_calculator_percent_per_item_deprecated.rb
|
@@ -61,10 +64,13 @@ files:
|
|
61
64
|
- lib/rubocop/solidus/version.rb
|
62
65
|
- relnotes/v0.1.2.md
|
63
66
|
- relnotes/v0.1.3.md
|
67
|
+
- relnotes/v0.1.4.md
|
68
|
+
- relnotes/v0.2.0.md
|
64
69
|
- rubocop-solidus.gemspec
|
65
70
|
- sig/rubocop/solidus.rbs
|
66
71
|
- tasks/changelog.rake
|
67
72
|
- tasks/changelog.rb
|
73
|
+
- tasks/cops_documentation.rake
|
68
74
|
- tasks/cut_release.rake
|
69
75
|
homepage: https://www.github.com/solidusio/rubocop-solidus
|
70
76
|
licenses:
|
@@ -72,7 +78,8 @@ licenses:
|
|
72
78
|
metadata:
|
73
79
|
homepage_uri: https://www.github.com/solidusio/rubocop-solidus
|
74
80
|
source_code_uri: https://www.github.com/solidusio/rubocop-solidus
|
75
|
-
changelog_uri: https://www.github.com/solidusio/rubocop-solidus
|
81
|
+
changelog_uri: https://www.github.com/solidusio/rubocop-solidus/blob/main/CHANGELOG.md
|
82
|
+
documentation_uri: https://www.github.com/solidusio/rubocop-solidus/blob/main/docs/cops.md
|
76
83
|
post_install_message:
|
77
84
|
rdoc_options: []
|
78
85
|
require_paths:
|
@@ -88,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
95
|
- !ruby/object:Gem::Version
|
89
96
|
version: '0'
|
90
97
|
requirements: []
|
91
|
-
rubygems_version: 3.4.
|
98
|
+
rubygems_version: 3.4.21
|
92
99
|
signing_key:
|
93
100
|
specification_version: 4
|
94
101
|
summary: Automatic Solidus code style checking tool.
|