standard 1.3.0 → 1.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cadec5ec4b18495f9b40de15918a208bc92d4dfa8e439b320cda48ebf1277de
4
- data.tar.gz: 5988cd9b3550fa1643275570496f43c2f386415b58188c442297e509d27ea40d
3
+ metadata.gz: fd2d4eaef4d46d84e027738a55cc6734883fb098ddbd5ea4911fb871578097b5
4
+ data.tar.gz: 8098c55b94370d7c977cf9d592a9e4285c62b9378d96ffb3daa57513acd04299
5
5
  SHA512:
6
- metadata.gz: 12dde0c129d137d3494035d18ca038d6afd790d7c1cc1cecd0e7cbeb7b5eb943ffb269286546ea0dedca942c18748cc979e75e66830902768c8c46392c8fdcbe
7
- data.tar.gz: a280e52124690d46e017f4a35cc868855ab9e64f4fa6c81116c8e67fa113143868fce0e530ac8258f07a2cbd53132deae9b5a954a25c6a0fb3350d741e989f1e
6
+ metadata.gz: '0495bf123db9cd15aab84de44efd8b5b4dcbfc68c5cd52fffcd94c5f417606245290cfb17f776a110b88c4f70b2fd974ee9a176ae9f8f07a4906311ef1a7d27c'
7
+ data.tar.gz: fa8bba48d7c55b3a10fd317783b8d9f62855d1d0c38f6a83b40449f69076bfb19559b5c2add7129bd96a3ab73f3c1477f4acac8ebb68091595b1803770f9fda8
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ allow:
6
+ - dependency-name: "rubocop"
7
+ - dependency-name: "rubocop-performance"
8
+ schedule:
9
+ interval: "weekly"
10
+ day: monday
@@ -5,6 +5,10 @@ on:
5
5
  branches: [ main ]
6
6
  pull_request:
7
7
  branches: [ main ]
8
+ workflow_run:
9
+ workflows: ["Update"]
10
+ types:
11
+ - completed
8
12
 
9
13
  jobs:
10
14
  test:
@@ -12,7 +16,7 @@ jobs:
12
16
  strategy:
13
17
  matrix:
14
18
  os: [ ubuntu-latest ]
15
- ruby-version: [2.5, 2.7, 3.0]
19
+ ruby-version: [2.5, 2.6, 2.7, '3.0', 3.1]
16
20
 
17
21
  runs-on: ${{ matrix.os }}
18
22
 
@@ -0,0 +1,52 @@
1
+ name: Update
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ schedule:
6
+ - cron: '5 7 * * 1'
7
+
8
+ jobs:
9
+ update:
10
+ name: Check for updates
11
+
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: 3.0.0
20
+ bundler-cache: true
21
+ - name: Unset bundler deployment
22
+ run: bundle config unset deployment
23
+ - name: Get Outdated
24
+ id: outdated
25
+ run: |
26
+ eval "$(bundle outdated rubocop rubocop-performance |
27
+ grep rubocop |
28
+ awk '{print "echo \"::set-output name="$1"_OLD::"$2"\"; echo \"::set-output name="$1"_NEW::"$3"\";"}' - )";
29
+ - name: Update Changelog
30
+ run: |
31
+ eval "$(bundle outdated rubocop rubocop-performance |
32
+ grep rubocop |
33
+ awk '{print "sed -i \"2i* Update "$1" from "$2" to ["$3"](https://github.com/rubocop/"$1"/tag/v"$3")\" CHANGELOG.md"}' - )";
34
+ sed -i '2i\\n## Unreleased\n' CHANGELOG.md;
35
+ - name: Update Gemspec
36
+ run: |
37
+ eval "$(bundle outdated rubocop rubocop-performance |
38
+ grep rubocop |
39
+ awk '{print "sed -i /\"" $1 "\"/s/" $2 "/" $3 "/ standard.gemspec"}' - )"
40
+ - name: Update Gemfile
41
+ run: bundle update
42
+ - name: Get current date
43
+ id: date
44
+ run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
45
+ - name: Create Pull Request
46
+ uses: peter-evans/create-pull-request@v3
47
+ with:
48
+ reviewers: camilopayan
49
+ commit-message: '[ ${{ steps.date.outputs.date }} ] - Update dependencies'
50
+ title: '[ ${{ steps.date.outputs.date }} ] - Update dependencies'
51
+ delete-branch: true
52
+ branch: update-deps-${{ steps.date.outputs.date }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.7.0
4
+
5
+ * Update rubocop-performance from 1.13.1 to [1.13.2](https://github.com/rubocop/rubocop-performance/tag/v1.13.2)
6
+ * Update rubocop from 1.24.1 to [1.25.0](https://github.com/rubocop/rubocop/tag/v1.25.0)
7
+
8
+ ## 1.6.0
9
+
10
+ * Update rubocop-performance from 1.12.0 to [1.13.1](https://github.com/rubocop/rubocop-performance/tag/v1.13.1)
11
+ * Update rubocop from 1.23.0 to [1.24.1](https://github.com/rubocop/rubocop/tag/v1.24.1)
12
+
13
+ ## 1.5.0
14
+
15
+ * Update rubocop-performance from 1.11.5 to [1.12.0](https://github.com/rubocop/rubocop-performance/tag/v1.12.0)
16
+ * Update rubocop from 1.22.3 to [1.23.0](https://github.com/rubocop/rubocop/tag/v1.23.0)
17
+
18
+ ## 1.4.0
19
+
20
+ * Update rubocop from 1.19.1 to [1.22.3](https://github.com/rubocop-hq/rubocop/releases/tag/v1.22.3)
21
+ * Remove [`Style/NegatedIf`](https://github.com/TODO)
22
+
3
23
  ## 1.3.0
4
24
 
5
25
  * Update rubocop from 1.19.1 to [1.20.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.20.0)
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.3.0)
5
- rubocop (= 1.20.0)
6
- rubocop-performance (= 1.11.5)
4
+ standard (1.7.0)
5
+ rubocop (= 1.25.0)
6
+ rubocop-performance (= 1.13.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -13,29 +13,29 @@ GEM
13
13
  docile (1.4.0)
14
14
  gimme (0.5.0)
15
15
  method_source (1.0.0)
16
- minitest (5.14.4)
17
- parallel (1.20.1)
18
- parser (3.0.2.0)
16
+ minitest (5.15.0)
17
+ parallel (1.21.0)
18
+ parser (3.1.0.0)
19
19
  ast (~> 2.4.1)
20
20
  pry (0.14.1)
21
21
  coderay (~> 1.1)
22
22
  method_source (~> 1.0)
23
- rainbow (3.0.0)
23
+ rainbow (3.1.1)
24
24
  rake (13.0.6)
25
- regexp_parser (2.1.1)
25
+ regexp_parser (2.2.0)
26
26
  rexml (3.2.5)
27
- rubocop (1.20.0)
27
+ rubocop (1.25.0)
28
28
  parallel (~> 1.10)
29
- parser (>= 3.0.0.0)
29
+ parser (>= 3.1.0.0)
30
30
  rainbow (>= 2.2.2, < 4.0)
31
31
  regexp_parser (>= 1.8, < 3.0)
32
32
  rexml
33
- rubocop-ast (>= 1.9.1, < 2.0)
33
+ rubocop-ast (>= 1.15.1, < 2.0)
34
34
  ruby-progressbar (~> 1.7)
35
35
  unicode-display_width (>= 1.4.0, < 3.0)
36
- rubocop-ast (1.11.0)
36
+ rubocop-ast (1.15.1)
37
37
  parser (>= 3.0.1.1)
38
- rubocop-performance (1.11.5)
38
+ rubocop-performance (1.13.2)
39
39
  rubocop (>= 1.7.0, < 2.0)
40
40
  rubocop-ast (>= 0.4.0)
41
41
  ruby-progressbar (1.11.0)
@@ -45,7 +45,7 @@ GEM
45
45
  simplecov_json_formatter (~> 0.1)
46
46
  simplecov-html (0.12.3)
47
47
  simplecov_json_formatter (0.1.3)
48
- unicode-display_width (2.0.0)
48
+ unicode-display_width (2.1.0)
49
49
 
50
50
  PLATFORMS
51
51
  ruby
@@ -61,4 +61,4 @@ DEPENDENCIES
61
61
  standard!
62
62
 
63
63
  BUNDLED WITH
64
- 2.2.22
64
+ 2.3.4
data/README.md CHANGED
@@ -190,6 +190,18 @@ community conventions higher than personal style. This might not make sense for
190
190
  place for newbies. Setting up clear, automated contributor expectations makes a
191
191
  project healthier.
192
192
 
193
+ ## Usage via rubocop
194
+
195
+ If you only want to use the rules and not the cli (to keep current IDE/tooling/workflow support).
196
+ Change your `.rubocop.yml` to:
197
+
198
+ ```yaml
199
+ require: standard
200
+
201
+ inherit_gem:
202
+ standard: config/base.yml
203
+ ```
204
+
193
205
  ## Who uses Ruby Standard Style?
194
206
 
195
207
  (This section will not [look very
@@ -197,23 +209,27 @@ familiar](https://github.com/standard/standard#who-uses-javascript-standard-styl
197
209
  if you've used StandardJS.)
198
210
 
199
211
  * [Test Double](https://testdouble.com/agency)
212
+ * [Amazon Web Services](https://aws.amazon.com/)
213
+ * [Babylist](https://www.babylist.com/)
214
+ * [Brand New Box](https://brandnewbox.com)
215
+ * [Brave Software](https://github.com/brave-intl/publishers)
200
216
  * [Collective Idea](https://collectiveidea.com/)
201
217
  * [Culture Foundry](https://www.culturefoundry.com/)
218
+ * [Envoy](https://www.envoy.com)
202
219
  * [Evil Martians](https://evilmartians.com)
203
- * [Rebase Interactive](https://www.rebaseinteractive.com/)
204
220
  * [Hashrocket](https://hashrocket.com)
205
- * [Brand New Box](https://brandnewbox.com)
206
- * [Monterail](https://www.monterail.com)
207
- * [Level UP Solutions](https://levups.com)
208
221
  * [Honeybadger](https://www.honeybadger.io)
209
- * [Amazon Web Services](https://aws.amazon.com/)
210
- * [Envoy](https://www.envoy.com)
211
- * [myRent](https://www.myrent.co.nz)
212
- * [Renuo](https://www.renuo.ch/)
213
222
  * [JetThoughts](https://www.jetthoughts.com/)
223
+ * [Level UP Solutions](https://levups.com)
224
+ * [Monterail](https://www.monterail.com)
225
+ * [myRent](https://www.myrent.co.nz)
214
226
  * [Oyster](https://www.oysterhr.com/)
227
+ * [Planet Argon](https://www.planetargon.com/)
215
228
  * [Podia](https://www.podia.com/)
229
+ * [Rebase Interactive](https://www.rebaseinteractive.com/)
230
+ * [Renuo](https://www.renuo.ch/)
216
231
  * [RubyCI](https://ruby.ci)
232
+ * [thoughtbot](https://thoughtbot.com/)
217
233
  * And that's about it so far!
218
234
 
219
235
  If your team starts using Standard, [send a pull
data/Rakefile CHANGED
@@ -4,8 +4,6 @@ require_relative "lib/standard/rake"
4
4
 
5
5
  Rake::TestTask.new(:test) do |t|
6
6
  t.warning = false
7
- t.libs << "test"
8
- t.libs << "lib"
9
7
  t.test_files = FileList["test/**/*_test.rb"]
10
8
  end
11
9