typesafe_enum 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +17 -9
- data/.ruby-version +1 -1
- data/CHANGES.md +5 -4
- data/lib/typesafe_enum/module_info.rb +2 -2
- data/typesafe_enum.gemspec +3 -3
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bb425a57ccf23f409beefe2a0cf77392b82a92698a1b4c1386a2062334c4988
|
4
|
+
data.tar.gz: 226e94e42c2055843613762fac7970843ea0182f61549fa854a388747e9e2d52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d9146ac267a24259b81eea9067d6b253c09ca876344e462cdb30377c718768a4bb6491910b83462e1fcea98c554ee91ee0e0e6e8e28c64c7cd420f699dac76e
|
7
|
+
data.tar.gz: 55c64828b5efdd2edf2362205067a7868681a60e0101b1192a94829857a88fff574a5bd05d86459fa9e1b65a081bd105fc53d7b0fb8767219394d0b607658340
|
data/.rubocop.yml
CHANGED
@@ -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/
|
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
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5
|
1
|
+
2.6.5
|
data/CHANGES.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
## 0.
|
1
|
+
## 0.2.0 (12 March 2020)
|
2
2
|
|
3
|
-
- Update to Ruby 2.5
|
4
|
-
- Update to
|
5
|
-
- Update to
|
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.
|
8
|
+
VERSION = '0.2.0'
|
9
9
|
|
10
10
|
# The copyright notice for this gem
|
11
|
-
COPYRIGHT = 'Copyright (c)
|
11
|
+
COPYRIGHT = 'Copyright (c) 2020 The Regents of the University of California'
|
12
12
|
end
|
data/typesafe_enum.gemspec
CHANGED
@@ -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.
|
27
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
28
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
146
|
+
rubygems_version: 3.0.6
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Typesafe enum pattern for Ruby
|