gruber-case 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +9 -9
- data/lib/gruber-case.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTZhOWFkYTc5MGNkYjcyYjMxMWVmYWMzNmRhODk1ODc5Mjk3MjA2NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
7
|
-
|
6
|
+
NTAxZTY0NmQxZGIwNTMxMTY4MzQ4YmVmYjJkM2E3ZGE2YmNhZTY0YQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWJhMjczMWU1MmE0ZGIyMTdjNWU1OGVlYzc5YTlmNjc1Nzg5YTFiMWVkMDcz
|
10
|
+
Nzc3YmVkZGY2YjIwM2I1YTliM2UzNTY3NmRhOTIyYjJiNDM0OTU4MTc5YjZj
|
11
|
+
ZTBlZjcyMWZkNjk3ZWEyNzg3NTIwYjI3Mjk0ZjIxZGE4MTcwZWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmNmNDMyMzgyOWNiMWYwN2IzNDdjZjU1MGEyMzYzZDFiMTg5NTEwNWI4YzNi
|
14
|
+
MDFhN2RhODA4MTdjYjdmMDlmYTg5ZmUyN2VkOGNlNDljNGIzMjRhY2MzM2Ey
|
15
|
+
YjEzMzFmN2Q3MDI4MDlmYzk0NWIzMGJmMzM2MWU5MTMzZTdhNGE=
|
data/lib/gruber-case.rb
CHANGED
@@ -45,8 +45,8 @@ class String
|
|
45
45
|
result.upcase! if result =~ /([a-z]\.){1,3}/i
|
46
46
|
result
|
47
47
|
end.join(" ")
|
48
|
-
s.gsub!(/'\w/io) { |w| w.upcase }
|
49
|
-
s.gsub!(
|
48
|
+
s.gsub!(/['’]\w/io) { |w| w.upcase }
|
49
|
+
s.gsub!(/(\s#{small_re}\s)/io) { |w| w.downcase }
|
50
50
|
s
|
51
51
|
end
|
52
52
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gruber-case
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Jackson
|
@@ -37,7 +37,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
37
|
version: '0'
|
38
38
|
requirements: []
|
39
39
|
rubyforge_project:
|
40
|
-
rubygems_version: 2.
|
40
|
+
rubygems_version: 2.0.5
|
41
41
|
signing_key:
|
42
42
|
specification_version: 4
|
43
43
|
summary: Gruber Case
|