ws-style 7.2.0 → 7.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/default.yml +20 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +44 -31
- data/README.md +9 -12
- data/lib/ws/style/version.rb +1 -1
- data/ws-style.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc4d5d30dee96d92a204e37ee88d6a606f58471ef21af6b0eff7de658277cc0b
|
4
|
+
data.tar.gz: c5f50d07a4471d2ae8d1b51b20987254553c5ae76ee1bf3d1e56813fd26c12c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04c5245da5d848f381bbb186102541dae6764ffc2f34c8c4ff8161a3d90abe8bca720eb3f29c5a290d98f6fe11f20c76d31d66819ec31e2710857efb094e8708
|
7
|
+
data.tar.gz: 1cfed6ebdcb8f0b8ea861d391ac5ade056b107b7c38912ab86e61800fc530729c175aeb345b332acc85cf1cce49a8bf591a35ef0c9ee6fa21ccfd11250d558ea
|
@@ -8,15 +8,23 @@ concurrency:
|
|
8
8
|
|
9
9
|
jobs:
|
10
10
|
build:
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
ruby_version:
|
14
|
+
- '3.0'
|
15
|
+
- '3.1'
|
16
|
+
- '3.2'
|
11
17
|
name: Build
|
12
18
|
runs-on: ubuntu-22.04
|
13
19
|
steps:
|
14
20
|
- uses: actions/checkout@v3
|
15
21
|
with:
|
16
22
|
ref: ${{ github.event.pull_request.head.sha }}
|
23
|
+
fetch-depth: 0
|
17
24
|
- uses: ruby/setup-ruby@v1
|
18
25
|
with:
|
19
26
|
bundler-cache: true
|
27
|
+
ruby-version: ${{ matrix.ruby_version }}
|
20
28
|
- name: Fetch main branch
|
21
29
|
run: git fetch origin main
|
22
30
|
- uses: r7kamura/rubocop-problem-matchers-action@v1
|
@@ -27,8 +35,19 @@ jobs:
|
|
27
35
|
bundle exec bundle-audit check
|
28
36
|
- name: Run rspec
|
29
37
|
run: bundle exec rspec
|
38
|
+
- name: Check if version has changed
|
39
|
+
if: ${{ github.ref_name == 'main' }}
|
40
|
+
id: version-check
|
41
|
+
run: |
|
42
|
+
if [ "$(git diff --name-only HEAD^ HEAD | grep 'lib/ws/style/version.rb')" ]; then
|
43
|
+
echo "Version did change"
|
44
|
+
echo "version_changed=true" >> $GITHUB_OUTPUT
|
45
|
+
else
|
46
|
+
echo "Version did not change"
|
47
|
+
echo "version_changed=false" >> $GITHUB_OUTPUT
|
48
|
+
fi
|
30
49
|
- name: Release the gem
|
31
|
-
if: ${{ github.
|
50
|
+
if: ${{ github.ref_name == 'main' && steps.version-check.outputs.version_changed == 'true' && matrix.ruby_version == '3.0' }}
|
32
51
|
run: |
|
33
52
|
mkdir -p ~/.gem
|
34
53
|
cat << EOF > ~/.gem/credentials
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## 7.2.1 - 2023-11-28
|
10
|
+
### Changed
|
11
|
+
- Support older versions of Ruby
|
12
|
+
|
9
13
|
## 7.2.0 - 2023-07-14
|
10
14
|
### Changed
|
11
15
|
- Fix issue where rubocop-rspec was disabled by default after the switch to standardrb
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ws-style (7.2.
|
4
|
+
ws-style (7.2.1)
|
5
5
|
rubocop-rspec (>= 2.2.0)
|
6
6
|
rubocop-vendor (>= 0.11)
|
7
7
|
standard (>= 1.30.1)
|
@@ -11,19 +11,29 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activesupport (7.
|
14
|
+
activesupport (7.1.2)
|
15
|
+
base64
|
16
|
+
bigdecimal
|
15
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
connection_pool (>= 2.2.5)
|
19
|
+
drb
|
16
20
|
i18n (>= 1.6, < 2)
|
17
21
|
minitest (>= 5.1)
|
22
|
+
mutex_m
|
18
23
|
tzinfo (~> 2.0)
|
19
|
-
addressable (2.8.
|
24
|
+
addressable (2.8.5)
|
20
25
|
public_suffix (>= 2.0.2, < 6.0)
|
21
26
|
ast (2.4.2)
|
27
|
+
base64 (0.2.0)
|
28
|
+
bigdecimal (3.1.4)
|
22
29
|
bundler-audit (0.9.1)
|
23
30
|
bundler (>= 1.2.0, < 3)
|
24
31
|
thor (~> 1.0)
|
25
32
|
concurrent-ruby (1.2.2)
|
33
|
+
connection_pool (2.4.1)
|
26
34
|
diff-lcs (1.5.0)
|
35
|
+
drb (2.2.0)
|
36
|
+
ruby2_keywords
|
27
37
|
git (1.18.0)
|
28
38
|
addressable (~> 2.8)
|
29
39
|
rchardet (~> 1.8)
|
@@ -32,21 +42,22 @@ GEM
|
|
32
42
|
json (2.6.3)
|
33
43
|
language_server-protocol (3.17.0.3)
|
34
44
|
lint_roller (1.1.0)
|
35
|
-
minitest (5.
|
45
|
+
minitest (5.20.0)
|
46
|
+
mutex_m (0.2.0)
|
36
47
|
parallel (1.23.0)
|
37
48
|
parse_a_changelog (1.3.0)
|
38
49
|
treetop (~> 1.6)
|
39
|
-
parser (3.2.2.
|
50
|
+
parser (3.2.2.4)
|
40
51
|
ast (~> 2.4.1)
|
41
52
|
racc
|
42
53
|
polyglot (0.3.5)
|
43
|
-
public_suffix (5.0.
|
44
|
-
racc (1.7.
|
54
|
+
public_suffix (5.0.4)
|
55
|
+
racc (1.7.3)
|
45
56
|
rack (3.0.8)
|
46
57
|
rainbow (3.1.1)
|
47
|
-
rake (13.0
|
58
|
+
rake (13.1.0)
|
48
59
|
rchardet (1.8.0)
|
49
|
-
regexp_parser (2.8.
|
60
|
+
regexp_parser (2.8.2)
|
50
61
|
rexml (3.2.6)
|
51
62
|
rspec (3.12.0)
|
52
63
|
rspec-core (~> 3.12.0)
|
@@ -61,57 +72,59 @@ GEM
|
|
61
72
|
diff-lcs (>= 1.2.0, < 2.0)
|
62
73
|
rspec-support (~> 3.12.0)
|
63
74
|
rspec-support (3.12.1)
|
64
|
-
rubocop (1.
|
75
|
+
rubocop (1.57.2)
|
65
76
|
json (~> 2.3)
|
77
|
+
language_server-protocol (>= 3.17.0)
|
66
78
|
parallel (~> 1.10)
|
67
|
-
parser (>= 3.2.2.
|
79
|
+
parser (>= 3.2.2.4)
|
68
80
|
rainbow (>= 2.2.2, < 4.0)
|
69
81
|
regexp_parser (>= 1.8, < 3.0)
|
70
82
|
rexml (>= 3.2.5, < 4.0)
|
71
|
-
rubocop-ast (>= 1.28.
|
83
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
72
84
|
ruby-progressbar (~> 1.7)
|
73
85
|
unicode-display_width (>= 2.4.0, < 3.0)
|
74
|
-
rubocop-ast (1.
|
86
|
+
rubocop-ast (1.30.0)
|
75
87
|
parser (>= 3.2.1.0)
|
76
|
-
rubocop-capybara (2.
|
88
|
+
rubocop-capybara (2.19.0)
|
77
89
|
rubocop (~> 1.41)
|
78
|
-
rubocop-factory_bot (2.
|
90
|
+
rubocop-factory_bot (2.24.0)
|
79
91
|
rubocop (~> 1.33)
|
80
|
-
rubocop-performance (1.
|
92
|
+
rubocop-performance (1.19.1)
|
81
93
|
rubocop (>= 1.7.0, < 2.0)
|
82
94
|
rubocop-ast (>= 0.4.0)
|
83
|
-
rubocop-rails (2.
|
95
|
+
rubocop-rails (2.20.2)
|
84
96
|
activesupport (>= 4.2.0)
|
85
97
|
rack (>= 1.1)
|
86
98
|
rubocop (>= 1.33.0, < 2.0)
|
87
|
-
rubocop-rspec (2.
|
88
|
-
rubocop (~> 1.
|
99
|
+
rubocop-rspec (2.25.0)
|
100
|
+
rubocop (~> 1.40)
|
89
101
|
rubocop-capybara (~> 2.17)
|
90
102
|
rubocop-factory_bot (~> 2.22)
|
91
|
-
rubocop-vendor (0.
|
92
|
-
rubocop
|
103
|
+
rubocop-vendor (0.12.1)
|
104
|
+
rubocop
|
93
105
|
ruby-progressbar (1.13.0)
|
94
|
-
|
106
|
+
ruby2_keywords (0.0.5)
|
107
|
+
standard (1.32.0)
|
95
108
|
language_server-protocol (~> 3.17.0.2)
|
96
109
|
lint_roller (~> 1.0)
|
97
|
-
rubocop (~> 1.
|
110
|
+
rubocop (~> 1.57.2)
|
98
111
|
standard-custom (~> 1.0.0)
|
99
|
-
standard-performance (~> 1.
|
112
|
+
standard-performance (~> 1.2)
|
100
113
|
standard-custom (1.0.2)
|
101
114
|
lint_roller (~> 1.0)
|
102
115
|
rubocop (~> 1.50)
|
103
|
-
standard-performance (1.1
|
116
|
+
standard-performance (1.2.1)
|
104
117
|
lint_roller (~> 1.1)
|
105
|
-
rubocop-performance (~> 1.
|
106
|
-
standard-rails (0.
|
118
|
+
rubocop-performance (~> 1.19.1)
|
119
|
+
standard-rails (0.2.0)
|
107
120
|
lint_roller (~> 1.0)
|
108
|
-
rubocop-rails (~> 2.
|
109
|
-
thor (1.
|
121
|
+
rubocop-rails (~> 2.20.2)
|
122
|
+
thor (1.3.0)
|
110
123
|
treetop (1.6.12)
|
111
124
|
polyglot (~> 0.3)
|
112
125
|
tzinfo (2.0.6)
|
113
126
|
concurrent-ruby (~> 1.0)
|
114
|
-
unicode-display_width (2.
|
127
|
+
unicode-display_width (2.5.0)
|
115
128
|
|
116
129
|
PLATFORMS
|
117
130
|
arm64-darwin-22
|
@@ -127,4 +140,4 @@ DEPENDENCIES
|
|
127
140
|
ws-style!
|
128
141
|
|
129
142
|
BUNDLED WITH
|
130
|
-
2.4.
|
143
|
+
2.4.18
|
data/README.md
CHANGED
@@ -1,19 +1,15 @@
|
|
1
1
|
# ws-style
|
2
|
-
[![
|
2
|
+
[![Default](https://github.com/wealthsimple/ws-style/actions/workflows/default.yml/badge.svg)](https://github.com/wealthsimple/ws-style/actions/workflows/default.yml)
|
3
3
|
|
4
4
|
Shared [rubocop](https://github.com/bbatsov/rubocop) config to enforce Ruby style consistently across Wealthsimple libraries and services.
|
5
5
|
|
6
|
-
# Upgrading to 3.x
|
7
|
-
|
8
|
-
1.x adds a number of Cops to our default.yml. See the relevant Quip for more information on how to upgrade.
|
9
|
-
|
10
6
|
## Installation
|
11
7
|
|
12
8
|
Add this line to your application's Gemfile and execute `bundle`:
|
13
9
|
|
14
10
|
```ruby
|
15
11
|
group :development, :test do
|
16
|
-
gem 'ws-style'
|
12
|
+
gem 'ws-style', require: false
|
17
13
|
end
|
18
14
|
```
|
19
15
|
|
@@ -23,8 +19,6 @@ Or, for a rubygem, add this to your `gemspec`:
|
|
23
19
|
spec.add_development_dependency 'ws-style'
|
24
20
|
```
|
25
21
|
|
26
|
-
To update an existing installation, just run `bundle update ws-style`.
|
27
|
-
|
28
22
|
## Usage
|
29
23
|
|
30
24
|
Create a `.rubocop.yml` with the following directives:
|
@@ -34,9 +28,12 @@ inherit_gem:
|
|
34
28
|
ws-style:
|
35
29
|
- default.yml
|
36
30
|
|
37
|
-
|
38
|
-
|
39
|
-
|
31
|
+
# Add the following for rails projects with custom inflections
|
32
|
+
# This adds supports for filenames based on inflection rules
|
33
|
+
require:
|
34
|
+
- ws/style/inflector
|
35
|
+
- active_support/inflector
|
36
|
+
- ./config/initializers/inflections
|
40
37
|
```
|
41
38
|
|
42
39
|
Check if it works by running `bundle exec rubocop`.
|
@@ -49,7 +46,7 @@ inherit_gem:
|
|
49
46
|
- default.yml
|
50
47
|
|
51
48
|
AllCops:
|
52
|
-
TargetRubyVersion: 2
|
49
|
+
TargetRubyVersion: 3.2
|
53
50
|
Include:
|
54
51
|
- 'db/**/*'
|
55
52
|
|
data/lib/ws/style/version.rb
CHANGED
data/ws-style.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.bindir = 'exe'
|
21
21
|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
s.require_paths = ['lib']
|
23
|
-
s.required_ruby_version = '>= 3.
|
23
|
+
s.required_ruby_version = '>= 3.0'
|
24
24
|
|
25
25
|
s.add_dependency 'standard', '>= 1.30.1'
|
26
26
|
s.add_dependency 'standard-custom', '>= 1.0.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ws-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.2.
|
4
|
+
version: 7.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Graham
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -213,14 +213,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
213
213
|
requirements:
|
214
214
|
- - ">="
|
215
215
|
- !ruby/object:Gem::Version
|
216
|
-
version: 3.
|
216
|
+
version: '3.0'
|
217
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
219
|
- - ">="
|
220
220
|
- !ruby/object:Gem::Version
|
221
221
|
version: '0'
|
222
222
|
requirements: []
|
223
|
-
rubygems_version: 3.
|
223
|
+
rubygems_version: 3.2.33
|
224
224
|
signing_key:
|
225
225
|
specification_version: 4
|
226
226
|
summary: Shared rubocop config
|