standard 0.11.0 → 0.12.0

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: ae2564522ac361e37d4c51c9962fe5b0bbca2fd7c4b37ae1880c619778a46966
4
- data.tar.gz: 00b84978d2e64b59ecd757a46a7f562e7d9f1ecaeb0c03062140628c78565658
3
+ metadata.gz: ece6905a02f43b8e9787ca829e9940f6cd811ce19cc5c73aaa29b39308e86de3
4
+ data.tar.gz: 420fa134ef9a26d7ab7d6ce72cebb28ca951d03795e95fdf43072af4b5039848
5
5
  SHA512:
6
- metadata.gz: 91a99adab0683f57682af967b4936777444974f9f19c5cda438df911c3ce1ad37f099968eb1d47a4ebe541c96ae50cdb1967e89056e683e5dc71a7b29b03a3e8
7
- data.tar.gz: 2c26f2ad10033b682b870cdaa66e6b60eb537a483f34d880d2bd90e70a3ef27e8421d06c13d261d74ca196748d8f3be2c915ae2e96e098c3bae1bdbe23f42c14
6
+ metadata.gz: 70f35192a65faf716fed5b62ebafd6c6de6e8d54e06e38a8d07bd071b2cff8ff4aab81b8cb9089fd7941ff14b19edf19a37b5468e1eb9eaa7a29e0ece6b925d5
7
+ data.tar.gz: 00b5ed175cc6e8a47cee92b132dd1a9bbd32f1a2d21284bec0c07be75341eeedc6a44761b1f5f7978517ab4830704b5324df9c28b110371c81ed308589b7641a
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: weekly
7
+ time: "10:00"
8
+ open-pull-requests-limit: 10
@@ -9,15 +9,29 @@ on:
9
9
  jobs:
10
10
  test:
11
11
 
12
- runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ os: [ ubuntu-latest ]
15
+ ruby-version: [2.4, 2.7, 3.0]
16
+
17
+ runs-on: ${{ matrix.os }}
13
18
 
14
19
  steps:
15
20
  - uses: actions/checkout@v2
16
- - name: Set up Ruby
21
+ - name: Set up Ruby ${{ matrix.ruby-version }}
17
22
  uses: ruby/setup-ruby@v1
18
23
  with:
19
- ruby-version: 2.7
24
+ ruby-version: ${{ matrix.ruby-version }}
25
+ - name: Set up caching
26
+ uses: actions/cache@v1
27
+ with:
28
+ path: vendor/bundle
29
+ key: bundle-user-ruby-${{ matrix.os }}-${{matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
30
+ restore-keys: |
31
+ bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby-version }}-
20
32
  - name: Install dependencies
21
- run: bundle
22
- - name: Run tests
33
+ run: |
34
+ bundle config path vendor/bundle
35
+ bundle install --jobs 4 --retry 3
36
+ - name: Run tests for Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
23
37
  run: bundle exec rake
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.12.0
4
+
5
+ * Update rubocop from 1.7.0 to [1.8.1](https://github.com/rubocop-hq/rubocop/releases/tag/v1.8.1)
6
+ * Enabled [`Style/SlicingWithRange`](https://github.com/testdouble/standard/issues/175)
7
+
3
8
  ## 0.11.0
4
9
 
5
10
  * Update rubocop-performance from 1.9.1 to [1.9.2](https://github.com/rubocop-hq/rubocop-performance/releases/tag/v1.9.2)
data/Gemfile CHANGED
@@ -1,3 +1,13 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
+
5
+ gem "bundler"
6
+ gem "minitest", "~> 5.0"
7
+ gem "pry"
8
+ gem "rake", "~> 13.0"
9
+ gem "gimme"
10
+
11
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.5")
12
+ gem "simplecov"
13
+ end
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (0.11.0)
5
- rubocop (= 1.7.0)
4
+ standard (0.12.0)
5
+ rubocop (= 1.8.1)
6
6
  rubocop-performance (= 1.9.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ast (2.4.1)
11
+ ast (2.4.2)
12
12
  coderay (1.1.3)
13
- docile (1.3.2)
13
+ docile (1.3.5)
14
14
  gimme (0.5.0)
15
15
  method_source (1.0.0)
16
- minitest (5.14.2)
16
+ minitest (5.14.3)
17
17
  parallel (1.20.1)
18
18
  parser (3.0.0.0)
19
19
  ast (~> 2.4.1)
@@ -21,29 +21,31 @@ GEM
21
21
  coderay (~> 1.1)
22
22
  method_source (~> 1.0)
23
23
  rainbow (3.0.0)
24
- rake (13.0.1)
24
+ rake (13.0.3)
25
25
  regexp_parser (2.0.3)
26
26
  rexml (3.2.4)
27
- rubocop (1.7.0)
27
+ rubocop (1.8.1)
28
28
  parallel (~> 1.10)
29
- parser (>= 2.7.1.5)
29
+ parser (>= 3.0.0.0)
30
30
  rainbow (>= 2.2.2, < 4.0)
31
31
  regexp_parser (>= 1.8, < 3.0)
32
32
  rexml
33
33
  rubocop-ast (>= 1.2.0, < 2.0)
34
34
  ruby-progressbar (~> 1.7)
35
- unicode-display_width (>= 1.4.0, < 2.0)
36
- rubocop-ast (1.4.0)
35
+ unicode-display_width (>= 1.4.0, < 3.0)
36
+ rubocop-ast (1.4.1)
37
37
  parser (>= 2.7.1.5)
38
38
  rubocop-performance (1.9.2)
39
39
  rubocop (>= 0.90.0, < 2.0)
40
40
  rubocop-ast (>= 0.4.0)
41
41
  ruby-progressbar (1.11.0)
42
- simplecov (0.19.0)
42
+ simplecov (0.21.2)
43
43
  docile (~> 1.1)
44
44
  simplecov-html (~> 0.11)
45
- simplecov-html (0.12.2)
46
- unicode-display_width (1.7.0)
45
+ simplecov_json_formatter (~> 0.1)
46
+ simplecov-html (0.12.3)
47
+ simplecov_json_formatter (0.1.2)
48
+ unicode-display_width (2.0.0)
47
49
 
48
50
  PLATFORMS
49
51
  ruby
@@ -58,4 +60,4 @@ DEPENDENCIES
58
60
  standard!
59
61
 
60
62
  BUNDLED WITH
61
- 2.1.4
63
+ 2.2.6
@@ -1102,6 +1102,9 @@ Style/SingleLineMethods:
1102
1102
  Enabled: true
1103
1103
  AllowIfMethodIsEmpty: false
1104
1104
 
1105
+ Style/SlicingWithRange:
1106
+ Enabled: true
1107
+
1105
1108
  Style/StabbyLambdaParentheses:
1106
1109
  Enabled: true
1107
1110
  EnforcedStyle: require_parentheses
@@ -1,4 +1,4 @@
1
- inherit_from: ./base.yml
1
+ inherit_from: ./ruby-2.5.yml
2
2
 
3
3
  AllCops:
4
4
  TargetRubyVersion: 2.4 # The oldest supported
@@ -0,0 +1,7 @@
1
+ inherit_from: ./base.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.5
5
+
6
+ Style/SlicingWithRange:
7
+ Enabled: false
@@ -18,6 +18,8 @@ class Standard::CreatesConfigStore
18
18
  "ruby-2.2.yml"
19
19
  elsif desired_version < Gem::Version.new("2.4")
20
20
  "ruby-2.3.yml"
21
+ elsif desired_version < Gem::Version.new("2.6")
22
+ "ruby-2.5.yml"
21
23
  else
22
24
  "base.yml"
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("0.11.0")
2
+ VERSION = Gem::Version.new("0.12.0")
3
3
  end
@@ -19,13 +19,6 @@ 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", "1.7.0"
22
+ spec.add_dependency "rubocop", "1.8.1"
23
23
  spec.add_dependency "rubocop-performance", "1.9.2"
24
-
25
- spec.add_development_dependency "bundler"
26
- spec.add_development_dependency "minitest", "~> 5.0"
27
- spec.add_development_dependency "pry"
28
- spec.add_development_dependency "rake", "~> 13.0"
29
- spec.add_development_dependency "simplecov"
30
- spec.add_development_dependency "gimme"
31
24
  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.11.0
4
+ version: 0.12.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: 2021-01-06 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.7.0
19
+ version: 1.8.1
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: 1.7.0
26
+ version: 1.8.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,90 +38,6 @@ dependencies:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.9.2
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '5.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '5.0'
69
- - !ruby/object:Gem::Dependency
70
- name: pry
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '13.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '13.0'
97
- - !ruby/object:Gem::Dependency
98
- name: simplecov
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: gimme
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
41
  description:
126
42
  email:
127
43
  - searls@gmail.com
@@ -130,6 +46,7 @@ executables:
130
46
  extensions: []
131
47
  extra_rdoc_files: []
132
48
  files:
49
+ - ".github/dependabot.yml"
133
50
  - ".github/workflows/test.yml"
134
51
  - ".gitignore"
135
52
  - ".standard.yml"
@@ -146,6 +63,7 @@ files:
146
63
  - config/ruby-1.9.yml
147
64
  - config/ruby-2.2.yml
148
65
  - config/ruby-2.3.yml
66
+ - config/ruby-2.5.yml
149
67
  - docs/RELEASE.md
150
68
  - exe/standardrb
151
69
  - lib/standard.rb