standard 0.0.39 → 0.0.40
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/Gemfile.lock +2 -2
- data/README.md +5 -0
- data/config/base.yml +2 -10
- data/lib/standard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f6401dc8d927274f8371469003e7759853faf9604784db47b305ac5f7173ef3
|
|
4
|
+
data.tar.gz: 723f24771766a612c81be7643a754c9302f05cd22ada11d573e919f57c7e211a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7f874ec6eb159dc21c5da9402b41f74cbc56f0a923336c532b0dbe0c7805bb294563db68f715baea2cb75f4723ed39b0c05ab1d65bcfb031d7ed8a2c1a58561
|
|
7
|
+
data.tar.gz: 1706bdddf6105d16863cc2589b2f16796ce18775ba2439b64409a77c2b5cfe0a114d6f0a13fbcb6e98a2f075a47896d17d6565fe66e4e0f272cafc963a7aff78
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
standard (0.0.
|
|
4
|
+
standard (0.0.40)
|
|
5
5
|
rubocop (~> 0.67.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -16,7 +16,7 @@ GEM
|
|
|
16
16
|
method_source (0.9.2)
|
|
17
17
|
minitest (5.11.3)
|
|
18
18
|
parallel (1.17.0)
|
|
19
|
-
parser (2.6.
|
|
19
|
+
parser (2.6.3.0)
|
|
20
20
|
ast (~> 2.4.0)
|
|
21
21
|
pry (0.12.2)
|
|
22
22
|
coderay (~> 1.1.0)
|
data/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://circleci.com/gh/testdouble/standard)
|
|
4
4
|
[](https://github.com/testdouble/standard)
|
|
5
|
+
[](https://rubygems.org/gems/standard)
|
|
5
6
|
|
|
6
7
|
This gem is a spiritual port of [StandardJS](https://standardjs.com) and aims
|
|
7
8
|
to save you (and others!) time in the same three ways:
|
|
@@ -45,6 +46,10 @@ flag.
|
|
|
45
46
|
and [here](https://github.com/rubocop-hq/ruby-style-guide/issues/162)
|
|
46
47
|
- **Leading dots on multi-line method chains** - chosen for
|
|
47
48
|
[these](https://github.com/testdouble/standard/issues/75) reasons.
|
|
49
|
+
- **Spaces inside blocks, but not hash literals** - In Ruby, the `{` and `}`
|
|
50
|
+
characters do a lot of heavy lifting. To visually distinguish array literals
|
|
51
|
+
from blocks, Standard enforces that (like arrays), no leading or trailing
|
|
52
|
+
spaces be added to pad hashes
|
|
48
53
|
- **And a good deal more**
|
|
49
54
|
|
|
50
55
|
If you're familiar with [RuboCop](https://github.com/rubocop-hq/rubocop), you
|
data/config/base.yml
CHANGED
|
@@ -218,10 +218,8 @@ Layout/SpaceInsideArrayLiteralBrackets:
|
|
|
218
218
|
Layout/SpaceInsideArrayPercentLiteral:
|
|
219
219
|
Enabled: true
|
|
220
220
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
# Layout/SpaceInsideBlockBraces:
|
|
224
|
-
# Enabled: false
|
|
221
|
+
Layout/SpaceInsideBlockBraces:
|
|
222
|
+
Enabled: true
|
|
225
223
|
|
|
226
224
|
Layout/SpaceInsideHashLiteralBraces:
|
|
227
225
|
Enabled: true
|
|
@@ -593,9 +591,6 @@ Rails/FindEach:
|
|
|
593
591
|
Rails/HasAndBelongsToMany:
|
|
594
592
|
Enabled: true
|
|
595
593
|
|
|
596
|
-
Rails/HasManyOrHasOneDependent:
|
|
597
|
-
Enabled: true
|
|
598
|
-
|
|
599
594
|
Rails/HttpPositionalArguments:
|
|
600
595
|
Enabled: true
|
|
601
596
|
|
|
@@ -1020,8 +1015,5 @@ Style/WhenThen:
|
|
|
1020
1015
|
Style/WhileUntilDo:
|
|
1021
1016
|
Enabled: true
|
|
1022
1017
|
|
|
1023
|
-
Style/WhileUntilModifier:
|
|
1024
|
-
Enabled: true
|
|
1025
|
-
|
|
1026
1018
|
Style/YodaCondition:
|
|
1027
1019
|
Enabled: true
|
data/lib/standard/version.rb
CHANGED
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.0.
|
|
4
|
+
version: 0.0.40
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Searls
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|