rubocop-sketchup 0.1.1 → 0.1.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7bdbf56a39313b3e16037653e851e0c9b6f8d2f
|
4
|
+
data.tar.gz: 7c34f18886e6b7f7777ee5784eab4a062590cdf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5ee87d513ce615962d96e058cafedf27ad25f90582458ddcbd9c3980f34662e55fc2f396f98dfdcb92d23601157b9db12a511ee0332bf03f60eb9e790917175
|
7
|
+
data.tar.gz: 6b925fa84bf64be03f46c3415e0fcf5a553dba13a4866263e816589444cc060f06d660f8c8ad194bb26caa125740a77000ae9347b79c8bc751c394004dffa8e4
|
@@ -68,11 +68,17 @@ module RuboCop
|
|
68
68
|
]
|
69
69
|
|
70
70
|
def titleize(string)
|
71
|
+
string = string.tr('_', ' ')
|
71
72
|
words = string.split.map { |word|
|
72
73
|
if TITLEIZE_EXCLUDE.include?(word)
|
73
74
|
word
|
74
75
|
else
|
75
|
-
word.capitalize
|
76
|
+
# word.capitalize won't work here, as we want to allow words like:
|
77
|
+
# "HTML", "SketchUp". So instead only the first character in each
|
78
|
+
# word is modified.
|
79
|
+
char = word[0].upcase
|
80
|
+
word[0, 1] = char
|
81
|
+
word
|
76
82
|
end
|
77
83
|
}
|
78
84
|
words.join(' ')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-sketchup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trimble Inc, SketchUp Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|