headingify 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/headingify.gemspec +1 -1
- data/lib/headingify/core_ext/string.rb +3 -1
- data/lib/headingify/info.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c07cbcc94fb658dc81450a190cc9b954ae614cd0
|
4
|
+
data.tar.gz: 4ea80c002fbbdc04ca9796dfa4a829a38c0ee15e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66d0f4266472f322ce189ee9e7880902feee6eff35a7025d66b9087d314726aaf44299cbd3ff3cc1d26c2d14bd791fe9a1de29233352c0988eb40169e566a3cc
|
7
|
+
data.tar.gz: 4687df3c32fbe20d26cb5f714dacad21bce0d4c8b01c9f011266d34f58da966a355aad38f7ad0fabefd39aa6498b127ffbdae5df18b1643d3ba31f42ef5d4db9
|
data/headingify.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.required_ruby_version = '>= 1.
|
21
|
+
s.required_ruby_version = '>= 1.8.7'
|
22
22
|
s.add_development_dependency "rspec"
|
23
23
|
s.add_development_dependency "bundler", "~> 1.7"
|
24
24
|
s.add_development_dependency "rake", "~> 10.0"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
class String
|
2
4
|
def headingify
|
3
5
|
#
|
@@ -45,7 +47,7 @@ class String
|
|
45
47
|
end
|
46
48
|
|
47
49
|
# capitalize only what's necessary
|
48
|
-
working.each_with_index do |
|
50
|
+
working.each_with_index do |s, i|
|
49
51
|
working[i] = /\\%(.*)\\%/.match(s)[1] if s.include?("\%")
|
50
52
|
next if s =~ /^o'.*$/
|
51
53
|
if blacklist.include?(s) && i == 0; s.capitalize!; next; end
|
data/lib/headingify/info.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Headingify
|
2
2
|
TITLE = "Ruby String.headingify Core Extension"
|
3
|
-
VERSION = "1.0.
|
3
|
+
VERSION = "1.0.5"
|
4
4
|
UPDATE = "2014-11-19"
|
5
|
-
REVISION = "
|
5
|
+
REVISION = "29"
|
6
6
|
USAGE = "headingify \"string\" | \"an \\%ESCAPED\\% string\""
|
7
7
|
EXAMPLE_INPUT = "\"garlic is as \\%GOOD\\% as ten mothers\""
|
8
8
|
EXAMPLE_OUTPUT = "Garlic Is as GOOD as Ten Mothers"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: headingify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Calo
|
@@ -87,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
87
|
requirements:
|
88
88
|
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 1.
|
90
|
+
version: 1.8.7
|
91
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - ">="
|