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.
Files changed (3) hide show
  1. checksums.yaml +9 -9
  2. data/lib/gruber-case.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDY5ZmE4MjBkZjk0ZmE5MDUyNTFmMjU1NDQzNDIzNmE2MmZiYmJlZQ==
4
+ ZTZhOWFkYTc5MGNkYjcyYjMxMWVmYWMzNmRhODk1ODc5Mjk3MjA2NA==
5
5
  data.tar.gz: !binary |-
6
- YmU0N2ZhZGE2OTk2MGVjZjI3NzY0YzU1MjM0ZjUwMDdiZmRjNzM3MQ==
7
- SHA512:
6
+ NTAxZTY0NmQxZGIwNTMxMTY4MzQ4YmVmYjJkM2E3ZGE2YmNhZTY0YQ==
7
+ !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Yjg4MGQ2OWYxZTVjYTAyNjRhNmU2OGY1MTBlOWNkNGQyNjM5NTE1NTAxNGRi
10
- YjgwNGQxZTcwMmVlMjdmYWZiNzJhZGI0NzU0ZmQyZTJiOTExYjZmMTc3ZmE3
11
- ZDk3YmM5NzRhMTZiMWJjZTFkOTE3OWQ4ZDU1ZGU3N2I4OGE2N2M=
9
+ YWJhMjczMWU1MmE0ZGIyMTdjNWU1OGVlYzc5YTlmNjc1Nzg5YTFiMWVkMDcz
10
+ Nzc3YmVkZGY2YjIwM2I1YTliM2UzNTY3NmRhOTIyYjJiNDM0OTU4MTc5YjZj
11
+ ZTBlZjcyMWZkNjk3ZWEyNzg3NTIwYjI3Mjk0ZjIxZGE4MTcwZWM=
12
12
  data.tar.gz: !binary |-
13
- MDJhYzg5ZDQ2ODNjODAwYjJjNDRhZDFjNjM5N2QxNDJhNjU1NWE1Y2E1Mzhi
14
- ZjU0OGI3MDQxZjRiMDIyOGRhZDU2OTllNzVlYjQwMTRlNTdmMmU4YmZhNTU4
15
- NGQwYTFkNjgzODMzOWQzZjhlOWVjMjE5MDBiMGMwOGNlM2Q1MGE=
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!(/\b(#{small_re})\b/io) { |w| w.downcase }
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.5
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.2.2
40
+ rubygems_version: 2.0.5
41
41
  signing_key:
42
42
  specification_version: 4
43
43
  summary: Gruber Case