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: 1a228e8aa13dd515b797694adbe29d110c61bb21
4
- data.tar.gz: a130027dc7819a558b2f17dc16f490554dca2c59
3
+ metadata.gz: c7bdbf56a39313b3e16037653e851e0c9b6f8d2f
4
+ data.tar.gz: 7c34f18886e6b7f7777ee5784eab4a062590cdf6
5
5
  SHA512:
6
- metadata.gz: cb8c6c22de3f4a62369d49fafa39aa526db7a33e7a7c565b15eff39ef9bd9db209d8a0934ca3183fa890cbbd84271d3b058365ba11ec8ff4da79f4ccd6e69321
7
- data.tar.gz: 2dba30c3b36689f81d61cf2a842e469e3cbd2a92a2ff601983f7701c5b02bc55b9c0380dd7c6c1f6dfb4997e679f9e4438964b96cd4ecca40c0ee97849f05cdf
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(' ')
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module SketchUp
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
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.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-28 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop