simple_symbolize 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +10 -0
- data/lib/simple_symbolize/version.rb +1 -1
- data/lib/simple_symbolize.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b0904a9e68211c27ef36b9f8e05fd2966963db4aff8c875fae76138ce7e08f4
|
4
|
+
data.tar.gz: 92cf5435b255b07461f0d13bd122d3257f6f869bcf6b95d08d9b67b9805a96c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7670670156db2d4b8b538c52479cb4fc63a2a4f1f2191dc4944849dfd40249450c014d8026984408a0c6cebc13fcd3e0f5a978855edc4f0b30237c0fb9dfb543
|
7
|
+
data.tar.gz: f82b71d63638bbc6cd8b067bfdc955cb24ee39353746d283afab6591d1a3649e5091916bb3fe2caf92db21e11e5d5bc05ee17d2294194021c5a1eccada7f34c5
|
data/.rubocop_todo.yml
CHANGED
@@ -70,3 +70,13 @@ Style/FrozenStringLiteralComment:
|
|
70
70
|
Style/MixinUsage:
|
71
71
|
Exclude:
|
72
72
|
- 'lib/simple_symbolize.rb'
|
73
|
+
|
74
|
+
# Offense count: 2
|
75
|
+
Lint/BooleanSymbol:
|
76
|
+
Exclude:
|
77
|
+
- 'spec/simple_symbolize_spec.rb'
|
78
|
+
|
79
|
+
# Offense count: 2
|
80
|
+
Metrics/BlockLength:
|
81
|
+
Exclude:
|
82
|
+
- 'spec/simple_symbolize_spec.rb'
|
data/lib/simple_symbolize.rb
CHANGED
@@ -31,7 +31,7 @@ module SimpleSymbolize
|
|
31
31
|
def symbolize(str)
|
32
32
|
return str if str.is_a?(Symbol) || str.nil?
|
33
33
|
|
34
|
-
str.downcase.tr(SimpleSymbolize.translations.underscore.join, '_')
|
34
|
+
str.to_s.downcase.tr(SimpleSymbolize.translations.underscore.join, '_')
|
35
35
|
&.tr(SimpleSymbolize.translations.remove.join, '')&.to_sym
|
36
36
|
end
|
37
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_symbolize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alexo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|