typesafe_enum 0.1.9 → 0.2.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: 993bd214447b49bb0ad4d3586e4486f45b5a4e728d6240c1cf72909c62f37577
4
- data.tar.gz: f8110980c436802a9737425ecca99641d837f56458cdc6c2afb4ec7789685c82
3
+ metadata.gz: 2bb425a57ccf23f409beefe2a0cf77392b82a92698a1b4c1386a2062334c4988
4
+ data.tar.gz: 226e94e42c2055843613762fac7970843ea0182f61549fa854a388747e9e2d52
5
5
  SHA512:
6
- metadata.gz: f1ecbac3bef591d12993ecb0d0252d625720e9ce7259e7bd673eb754c4d6db98b489aeb581be92a3c21f506a8bcf362f8d52e237e65e2882e5eed3894ad82393
7
- data.tar.gz: 829ad9e7e94d28d3682aca8d0295ac5bfb4eb75982a6f1399e49538689f223ee0df673613756b05f8d49b53002aa9510bf66debf14c3b90f19d5feb4d11e0945
6
+ metadata.gz: 4d9146ac267a24259b81eea9067d6b253c09ca876344e462cdb30377c718768a4bb6491910b83462e1fcea98c554ee91ee0e0e6e8e28c64c7cd420f699dac76e
7
+ data.tar.gz: 55c64828b5efdd2edf2362205067a7868681a60e0101b1192a94829857a88fff574a5bd05d86459fa9e1b65a081bd105fc53d7b0fb8767219394d0b607658340
@@ -15,6 +15,10 @@ Layout/EmptyLinesAroundClassBody:
15
15
  Layout/EmptyLinesAroundModuleBody:
16
16
  Enabled: false
17
17
 
18
+ # Reasonable line-length check; it's too easy for the cure to be worse than the disease
19
+ Layout/LineLength:
20
+ Max: 150
21
+
18
22
  # Make indents consistent regardless of the lengths of variables and method names and whatnot
19
23
  Layout/MultilineMethodCallIndentation:
20
24
  EnforcedStyle: indented
@@ -23,10 +27,6 @@ Layout/MultilineMethodCallIndentation:
23
27
  Layout/MultilineOperationIndentation:
24
28
  Enabled: false
25
29
 
26
- # Reasonable line-length check; it's too easy for the cure to be worse than the disease
27
- Metrics/LineLength:
28
- Max: 150
29
-
30
30
  # Just because something looks like an accessor doesn't mean it is one
31
31
  Naming/PredicateName:
32
32
  Exclude:
@@ -41,7 +41,7 @@ Naming/MemoizedInstanceVariableName:
41
41
  Enabled: False
42
42
 
43
43
  # It works in context, trust us
44
- Naming/UncommunicativeMethodParamName:
44
+ Naming/MethodParameterName:
45
45
  Enabled: False
46
46
 
47
47
  # Do what's readable in the context you're in
@@ -52,10 +52,6 @@ Style/AccessModifierDeclarations:
52
52
  Style/AsciiComments:
53
53
  Enabled: false
54
54
 
55
- # Sometimes we want to distinguish hash parameters from keyword arguments
56
- Style/BracesAroundHashParameters:
57
- Enabled: False
58
-
59
55
  # Seriously?
60
56
  Style/CommentedKeyword:
61
57
  Enabled: False
@@ -64,6 +60,18 @@ Style/CommentedKeyword:
64
60
  Style/Documentation:
65
61
  Enabled: false
66
62
 
63
+ # Added in RuboCop 0.80
64
+ Style/HashEachMethods:
65
+ Enabled: true
66
+
67
+ # Added in RuboCop 0.80
68
+ Style/HashTransformKeys:
69
+ Enabled: true
70
+
71
+ # Added in RuboCop 0.80
72
+ Style/HashTransformValues:
73
+ Enabled: true
74
+
67
75
  # Adding more line noise to format strings will not improve them
68
76
  Style/FormatStringToken:
69
77
  Enabled: false
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.6.5
data/CHANGES.md CHANGED
@@ -1,8 +1,9 @@
1
- ## 0.1.9 (28 August 2019)
1
+ ## 0.2.0 (12 March 2020)
2
2
 
3
- - Update to Ruby 2.5.1
4
- - Update to rspec 3.8
5
- - Update to RuboCop 0.74
3
+ - Update to Ruby 2.6.5
4
+ - Update to Rake 10.4
5
+ - Update to RSpec 3.9
6
+ - Update to RuboCop 0.80
6
7
 
7
8
  ## 0.1.8 (22 December 2017)
8
9
 
@@ -5,8 +5,8 @@ module TypesafeEnum
5
5
  NAME = 'typesafe_enum'
6
6
 
7
7
  # The version of this gem
8
- VERSION = '0.1.9'
8
+ VERSION = '0.2.0'
9
9
 
10
10
  # The copyright notice for this gem
11
- COPYRIGHT = 'Copyright (c) 2019 The Regents of the University of California'
11
+ COPYRIGHT = 'Copyright (c) 2020 The Regents of the University of California'
12
12
  end
@@ -23,9 +23,9 @@ Gem::Specification.new do |spec|
23
23
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
24
24
  spec.require_paths = ['lib']
25
25
 
26
- spec.add_development_dependency 'rake', '~> 10.4'
27
- spec.add_development_dependency 'rspec', '~> 3.8'
28
- spec.add_development_dependency 'rubocop', '~> 0.74'
26
+ spec.add_development_dependency 'rake', '~> 10.5'
27
+ spec.add_development_dependency 'rspec', '~> 3.9'
28
+ spec.add_development_dependency 'rubocop', '~> 0.80'
29
29
  spec.add_development_dependency 'simplecov', '~> 0.9.2'
30
30
  spec.add_development_dependency 'simplecov-console', '~> 0.2.0'
31
31
  spec.add_development_dependency 'yard', '~> 0.9', '>= 0.9.12'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typesafe_enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Moles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-28 00:00:00.000000000 Z
11
+ date: 2020-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '10.4'
19
+ version: '10.5'
20
20
  type: :development
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: '10.4'
26
+ version: '10.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.8'
33
+ version: '3.9'
34
34
  type: :development
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: '3.8'
40
+ version: '3.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.74'
47
+ version: '0.80'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.74'
54
+ version: '0.80'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: simplecov
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.0.4
146
+ rubygems_version: 3.0.6
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Typesafe enum pattern for Ruby