ws-style 5.4.2 → 6.0.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: ac7a3087e3d1781df61421a2201402a745b8bb7e3b3802f5374e6b4bc96fbebc
4
- data.tar.gz: '018d3cb85bda30ab6cc79f9fedd709f040563404603869942d02191ab6e7fc81'
3
+ metadata.gz: 98b958cda693fc80d419f4a3c43b6109052f83bef91e715a367936ea1850391e
4
+ data.tar.gz: f96cecd859199758863def152ab2912dd66606954dcdca6c9ba8b513c916e927
5
5
  SHA512:
6
- metadata.gz: 1ea7ab846275ac2f2ac67ac683550e8e5b9904babd8ede0192c63a465186f0af358b2d008b4cdbc96a682ea39871dba9eadd86daeafecd2d9b3b6b6c55251f2d
7
- data.tar.gz: af1c020b8eb9e60b49937ba49e5e5fca53d90c733bff409965d1788965d110324c3f266f3d1e6df18af6ff4e4dbbf4e21cac3ffc51eeb5ebaa832389c274c7b5
6
+ metadata.gz: fba923efafb1019e046182a2d39ad79f674b357d870cd4ad93ec6a8a87d41141475724cbe394ee704601f4a633dc862fe6e32c54598242ea9b7011a6521321d9
7
+ data.tar.gz: aea1ae8ff370a2fb0de88f8c33f1f66e58e423970e386043857ebb0e6b5ef5a232ceee386c28d7b70f972d4cb7b8ab58234cb7ad31688805ae42befe504a46b7
@@ -4,12 +4,17 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 6.0.0 - 2020-04-27
8
+ ### Changed
9
+ - Upgraded rubocop to >= 0.82 and opted into the 7 new cops.
10
+ - Going forward we will need to explicitly opt into or out of every new cop.
11
+
7
12
  ## 5.1.0 - 2019-06-06
8
13
  ### Changed
9
14
  - Added indentation cop, enforcing 2 space indentation.
10
15
 
11
16
  This allows Rubocop to automatically format code like this:
12
-
17
+
13
18
  ```ruby
14
19
  class Wizard
15
20
  def cast_spell
@@ -17,9 +22,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
22
  end
18
23
  end
19
24
  ```
20
-
25
+
21
26
  into this:
22
-
27
+
23
28
  ```ruby
24
29
  class Wizard
25
30
  def cast_spell
@@ -168,3 +168,30 @@ RSpec/NamedSubject:
168
168
 
169
169
  RSpec/NestedGroups:
170
170
  Max: 6
171
+
172
+ # Cops added in Rubocop 0.80 or later need to be enabled one-by-one below.
173
+ # For more information: https://docs.rubocop.org/en/latest/versioning/
174
+
175
+ # 0.80
176
+ Style/HashEachMethods:
177
+ Enabled: true
178
+
179
+ Style/HashTransformKeys:
180
+ Enabled: true
181
+
182
+ Style/HashTransformValues:
183
+ Enabled: true
184
+
185
+ # 0.81
186
+ Lint/RaiseException:
187
+ Enabled: true
188
+
189
+ Lint/StructNewOverride:
190
+ Enabled: true
191
+
192
+ # 0.82
193
+ Layout/SpaceAroundMethodCallOperator:
194
+ Enabled: true
195
+
196
+ Style/ExponentialNotation:
197
+ Enabled: true
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '5.4.2'.freeze
3
+ VERSION = '6.0.0'.freeze
4
4
  end
5
5
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  s.require_paths = ['lib']
23
23
 
24
- s.add_dependency 'rubocop', '>= 0.79'
24
+ s.add_dependency 'rubocop', '>= 0.82'
25
25
  s.add_dependency 'rubocop-performance', '>= 1.1.0'
26
26
  s.add_dependency 'rubocop-rails', '>= 2.4.2'
27
27
  s.add_dependency 'rubocop-rspec', '~> 1.32'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ws-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.2
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Graham
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-19 00:00:00.000000000 Z
11
+ date: 2020-05-01 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: '0.79'
19
+ version: '0.82'
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.79'
26
+ version: '0.82'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement