standard 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd642ed7739e1ac8d97c80e0eee016fd3fba8cd3cd2bae9f072857d6d7e64fe2
4
- data.tar.gz: 3144bbaf6bd06b18ffa6289538b2115845b2539908f175ae3f762717f7e55dc6
3
+ metadata.gz: 65a95c409c3b1f23d220d46cf90f4203918dd01d6059dbbe890a3f9940b5079b
4
+ data.tar.gz: 70c3ab37cb638f6d7089ed0908d4a662c8c6859251416c76f3b4ac7fc8e0dd46
5
5
  SHA512:
6
- metadata.gz: d5c85eaa114f6c4e5a82e12502bdf915bd1b1ee88c39c480263c22d05557025836187b42c08813c8a5624568ebb87b70768d66f1d693fdffc9c5a945f3f08086
7
- data.tar.gz: ed016b0716dfd45a1b0f3f284e123afb5b40a1bac8615247b4be3e2ca60d9ac7ce91da6ff9a4ab3152e18cedfdaee649256f5df3c77eb75749c6fda081cda1f0
6
+ metadata.gz: 810928cf3d00fc259243bdb7144ff809044d0de94031f7da75ca1dcc948133385364b75d756556bbff3e17daa607c11a7f05df4498664714fb46acd66d51150d
7
+ data.tar.gz: 32e4f297a38f4661b6ebda066de084f3b9ed488ad093a8ccfb09b1372ae3adec0267de73637b76398d2543908e3275e8bd37b9f0e4181de40ba05def63df1a8f
@@ -6,7 +6,7 @@ version: 2
6
6
  jobs:
7
7
  build:
8
8
  docker:
9
- - image: circleci/ruby:2.4.1-node-browsers
9
+ - image: circleci/ruby:2.7.0-node-browsers
10
10
  working_directory: ~/repo
11
11
 
12
12
  steps:
@@ -19,6 +19,7 @@ jobs:
19
19
  - run:
20
20
  name: install dependencies
21
21
  command: |
22
+ bundle update --bundler
22
23
  bundle install --jobs=4 --retry=3 --path vendor/bundle
23
24
 
24
25
  - save_cache:
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (0.2.3)
4
+ standard (0.2.4)
5
5
  rubocop (~> 0.80.1)
6
6
  rubocop-performance (~> 1.5.2)
7
7
 
@@ -16,7 +16,7 @@ GEM
16
16
  method_source (0.9.2)
17
17
  minitest (5.14.0)
18
18
  parallel (1.19.1)
19
- parser (2.7.0.5)
19
+ parser (2.7.1.1)
20
20
  ast (~> 2.4.0)
21
21
  pry (0.12.2)
22
22
  coderay (~> 1.1.0)
data/README.md CHANGED
@@ -139,7 +139,7 @@ ignore: # default: []
139
139
  ```
140
140
 
141
141
  Note: If you're running Standard in a context where your `.standard.yml` file
142
- cannot be found by ascending the current working directory (i.e. against a
142
+ cannot be found by ascending the current working directory (i.e., against a
143
143
  temporary file buffer in your editor), you can specify the config location with
144
144
  `--config path/to/.standard.yml`.
145
145
 
@@ -194,6 +194,7 @@ if you've used StandardJS.)
194
194
  * [Monterail](https://www.monterail.com)
195
195
  * [Level UP Solutions](https://levups.com)
196
196
  * [Honeybadger](https://www.honeybadger.io)
197
+ * [Amazon Web Services](https://aws.amazon.com/)
197
198
  * And that's about it so far!
198
199
 
199
200
  If your team starts using Standard, [send a pull
@@ -224,7 +225,7 @@ No. The whole point of Standard is to save you time by avoiding
224
225
  about code style. There are lots of debates online about tabs vs. spaces, etc.
225
226
  that will never be resolved. These debates just distract from getting stuff
226
227
  done. At the end of the day you have to 'just pick something', and that's the
227
- whole philosophy of Standard -- its a bunch of sensible 'just pick something'
228
+ whole philosophy of Standard -- it's a bunch of sensible 'just pick something'
228
229
  opinions. Hopefully, users see the value in that over defending their own
229
230
  opinions.
230
231
 
@@ -359,6 +360,7 @@ the tool you're interested in. That aside, here are other known integrations asi
359
360
  from editor plugins:
360
361
 
361
362
  * [Pronto](https://github.com/julianrubisch/pronto-standardrb)
363
+ * [Spring](https://github.com/lakim/spring-commands-standard)
362
364
 
363
365
  ## Contributing
364
366
 
@@ -114,6 +114,14 @@ module RuboCop::Cop
114
114
  end
115
115
 
116
116
  def correction_would_break_code?(node)
117
+ rescue_child_block?(node) || non_parenthesized_keyword_args?(node)
118
+ end
119
+
120
+ def rescue_child_block?(node)
121
+ node.children.any?(&:rescue_type?)
122
+ end
123
+
124
+ def non_parenthesized_keyword_args?(node)
117
125
  return unless node.keywords?
118
126
 
119
127
  node.send_node.arguments? && !node.send_node.parenthesized?
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("0.2.3")
2
+ VERSION = Gem::Version.new("0.2.4")
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-28 00:00:00.000000000 Z
11
+ date: 2020-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop