standard 0.5.2 → 0.6.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: b2fc5c4feabb2ffb3f4a2879ce84aff4d91003578d1a512e2456e6591e276cbb
4
- data.tar.gz: dc8636c2d82e16c035720aa0a17084f038989fbaf489b8ddb42a16362aaf548c
3
+ metadata.gz: cf87b9f78b4f882b486a084515ef13cd503a152d0b5429c961a96f340c520f4e
4
+ data.tar.gz: 6205ac3fb9abf92a94f63e8875639b20e7cb476df7b212255e8544ecd12258ba
5
5
  SHA512:
6
- metadata.gz: c3926b153706b0f45bd467e24ea41cc2a5886fcbb0d1cd98657b0ce5ee767f7e69a2e6d347abf0b595e21ff69f0c9250747cbaea794c3f6bd6d4ff7c7574627e
7
- data.tar.gz: 8624a8b222b3bebfcf9d8132bffd3220542daa45fd29a0ff4113c04422deddc8cd2efd64d2b8262e78df24f8606978ffe91bc623a1b5e5d5c2337f1b8a58d4f7
6
+ metadata.gz: 5a719a8f3674ea28666c1c466b68a9c5a81cbcbc7eaeb3c24e989a92b8a52d2de25a5cfd54715597e80901689d6063b463fa41627de523462f60c588b0149afd
7
+ data.tar.gz: 21a5507d0d533cac9eed1a243ba10cf946428f00b56e507f10ad6ce91ab6a2fd20658b792a423011fae3e75231d5a1e902a02a2a7cbca2dea2c6471eb259262f
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0
4
+
5
+ * Update Rubocop from
6
+ [0.89.1](https://github.com/rubocop-hq/rubocop/releases/tag/v0.89.1)
7
+ to
8
+ [0.90](https://github.com/rubocop-hq/rubocop/releases/tag/v0.90.0),
9
+ enabling:
10
+ * [`Style/KeywordParametersOrder`](https://github.com/rubocop-hq/rubocop/pull/8563)
11
+ * [`Lint/DuplicateRequire`](https://github.com/rubocop-hq/rubocop/pull/8474)
12
+ * [`Lint/TrailingCommaInAttributeDeclaration`](https://github.com/rubocop-hq/rubocop/pull/8549)
13
+ * Update [`Style/Alias` to prefer `alias_method`](https://github.com/testdouble/standard/pull/196)
14
+ * Update rubocop-performance from 1.7.1 to 1.8.0:
15
+ * Plan to enable [`Performance/Sum`](https://github.com/rubocop-hq/rubocop-performance/pull/137) in the future, but there is currently a bug in the implementation
16
+ * Add `ruby-2.3.yml` to add support for 2.3.
17
+
3
18
  ## 0.5.2
4
19
 
5
20
  * Turned off `Lint/MissingSuper`, because it effectively bans a common idiom in
@@ -108,4 +123,3 @@
108
123
  ## 0.3.0
109
124
 
110
125
  * Update Standard to track Rubocop 0.82.0 ([commit](https://github.com/testdouble/standard/commit/d663ea62d519c659087ad606bfed031c6303ff20))
111
-
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (0.5.2)
5
- rubocop (~> 0.89.1)
6
- rubocop-performance (~> 1.7.1)
4
+ standard (0.6.0)
5
+ rubocop (~> 0.90)
6
+ rubocop-performance (~> 1.8.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -13,7 +13,7 @@ GEM
13
13
  docile (1.3.2)
14
14
  gimme (0.5.0)
15
15
  method_source (1.0.0)
16
- minitest (5.14.1)
16
+ minitest (5.14.2)
17
17
  parallel (1.19.2)
18
18
  parser (2.7.1.4)
19
19
  ast (~> 2.4.1)
@@ -24,7 +24,7 @@ GEM
24
24
  rake (13.0.1)
25
25
  regexp_parser (1.7.1)
26
26
  rexml (3.2.4)
27
- rubocop (0.89.1)
27
+ rubocop (0.90.0)
28
28
  parallel (~> 1.10)
29
29
  parser (>= 2.7.1.1)
30
30
  rainbow (>= 2.2.2, < 4.0)
@@ -35,10 +35,10 @@ GEM
35
35
  unicode-display_width (>= 1.4.0, < 2.0)
36
36
  rubocop-ast (0.3.0)
37
37
  parser (>= 2.7.1.4)
38
- rubocop-performance (1.7.1)
39
- rubocop (>= 0.82.0)
38
+ rubocop-performance (1.8.0)
39
+ rubocop (>= 0.87.0)
40
40
  ruby-progressbar (1.10.1)
41
- simplecov (0.18.5)
41
+ simplecov (0.19.0)
42
42
  docile (~> 1.1)
43
43
  simplecov-html (~> 0.11)
44
44
  simplecov-html (0.12.2)
@@ -350,10 +350,13 @@ Lint/DuplicateCaseCondition:
350
350
  Lint/DuplicateElsifCondition:
351
351
  Enabled: true
352
352
 
353
+ Lint/DuplicateHashKey:
354
+ Enabled: true
355
+
353
356
  Lint/DuplicateMethods:
354
357
  Enabled: true
355
358
 
356
- Lint/DuplicateHashKey:
359
+ Lint/DuplicateRequire:
357
360
  Enabled: true
358
361
 
359
362
  Lint/DuplicateRescueException:
@@ -532,6 +535,9 @@ Lint/Syntax:
532
535
  Lint/TopLevelReturnWithArgument:
533
536
  Enabled: true
534
537
 
538
+ Lint/TrailingCommaInAttributeDeclaration:
539
+ Enabled: true
540
+
535
541
  Lint/UnderscorePrefixedVariableName:
536
542
  Enabled: true
537
543
 
@@ -593,6 +599,9 @@ Performance/BindCall:
593
599
  Performance/Caller:
594
600
  Enabled: true
595
601
 
602
+ Performance/CollectionLiteralInLoop:
603
+ Enabled: false
604
+
596
605
  Performance/CompareWithBlock:
597
606
  Enabled: true
598
607
 
@@ -667,6 +676,9 @@ Performance/StartWith:
667
676
  Performance/StringReplacement:
668
677
  Enabled: true
669
678
 
679
+ Performance/Sum:
680
+ Enabled: false
681
+
670
682
  Performance/UnfreezeString:
671
683
  Enabled: true
672
684
 
@@ -726,7 +738,7 @@ Standard/SemanticBlocks:
726
738
 
727
739
  Style/Alias:
728
740
  Enabled: true
729
- EnforcedStyle: prefer_alias
741
+ EnforcedStyle: prefer_alias_method
730
742
 
731
743
  Style/AndOr:
732
744
  Enabled: true
@@ -851,6 +863,9 @@ Style/InfiniteLoop:
851
863
  Enabled: true
852
864
  SafeAutoCorrect: true
853
865
 
866
+ Style/KeywordParametersOrder:
867
+ Enabled: true
868
+
854
869
  Style/LambdaCall:
855
870
  Enabled: true
856
871
  EnforcedStyle: call
@@ -1,7 +1,4 @@
1
- inherit_from: ./base.yml
2
-
3
- AllCops:
4
- TargetRubyVersion: 2.4 # The oldest supported
1
+ inherit_from: ./ruby-2.3.yml
5
2
 
6
3
  Layout:
7
4
  HeredocIndentation:
@@ -0,0 +1,8 @@
1
+ inherit_from: ./base.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.4 # The oldest supported
5
+
6
+ Performance:
7
+ Sum:
8
+ Enabled: false
@@ -0,0 +1,39 @@
1
+ # How to release Standard Ruby
2
+
3
+ Because this gem was generated with the [bundler `gem`
4
+ command](https://bundler.io/man/bundle-gem.1.html), [our Rakefile](/Rakefile)
5
+ loads `bundler/gem_tasks`, which provides a lot of the commands one needs
6
+ to manage a gem's release lifecycle:
7
+
8
+ ```
9
+ $ rake -T
10
+ rake build # Build standard-x.x.x.gem into the pkg directory
11
+ rake clean # Remove any temporary products
12
+ rake clobber # Remove any generated files
13
+ rake install # Build and install standard-x.x.x.gem into system gems
14
+ rake install:local # Build and install standard-x.x.x.gem into system gems without network access
15
+ rake release[remote] # Create tag vx.x.x and build and push standard-0.5.2.gem to rubygems.org
16
+ ```
17
+
18
+ Most of these commands are depended on (read: run by) `rake release`, which is
19
+ really the only one we'll need for releasing the gem to
20
+ [Rubygems.org](https://rubygems.org/gems/standard).
21
+
22
+ ## Release steps
23
+
24
+ 1. Make sure git is up to date and `bundle exec rake` exits cleanly
25
+ 2. Bump the appropriate version segment in `lib/standard/version.rb` (basic
26
+ semantic versioning rules apply; if the release updates Rubocop, follow its
27
+ version bump at a minimum—if rubocop saw minor bump, we'll also bump the
28
+ minor version)
29
+ 3. Run `bundle` so that Bundler writes this version to `Gemfile.lock`
30
+ 4. Update `CHANGELOG.md` as exhaustively as you are able and set the top header
31
+ to that of the new version
32
+ 5. Commit `lib/standard/version.rb`, `Gemfile.lock`, and `CHANGELOG.md` together
33
+ with the message equal to the new version (e.g. "0.42.1")
34
+ 6. Finally, run `bundle exec rake release`, which will hopefully succeed
35
+ 7. Provide your multi-factor-auth token when prompted to finish publishing the
36
+ gem
37
+ 8. [Tweet](https://twitter.com) about your awesome new release! (Shameless
38
+ self-promotion is the most important part of open source software)
39
+
@@ -16,6 +16,8 @@ class Standard::CreatesConfigStore
16
16
  "ruby-1.9.yml"
17
17
  elsif desired_version < Gem::Version.new("2.3")
18
18
  "ruby-2.2.yml"
19
+ elsif desired_version < Gem::Version.new("2.4")
20
+ "ruby-2.3.yml"
19
21
  else
20
22
  "base.yml"
21
23
  end
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("0.5.2")
2
+ VERSION = Gem::Version.new("0.6.0")
3
3
  end
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "rubocop", "~> 0.89.1"
23
- spec.add_dependency "rubocop-performance", "~> 1.7.1"
22
+ spec.add_dependency "rubocop", "~> 0.90"
23
+ spec.add_dependency "rubocop-performance", "~> 1.8.0"
24
24
 
25
25
  spec.add_development_dependency "bundler"
26
26
  spec.add_development_dependency "minitest", "~> 5.0"
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.5.2
4
+ version: 0.6.0
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-08-26 00:00:00.000000000 Z
11
+ date: 2020-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.89.1
19
+ version: '0.90'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.89.1
26
+ version: '0.90'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.7.1
33
+ version: 1.8.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.7.1
40
+ version: 1.8.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -145,6 +145,8 @@ files:
145
145
  - config/ruby-1.8.yml
146
146
  - config/ruby-1.9.yml
147
147
  - config/ruby-2.2.yml
148
+ - config/ruby-2.3.yml
149
+ - docs/RELEASE.md
148
150
  - exe/standardrb
149
151
  - lib/standard.rb
150
152
  - lib/standard/builds_config.rb