headingify 1.0.5 → 1.0.6
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/bin/headingify +2 -2
- data/lib/headingify/info.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c223bf61af6004186323e64e666df5fa130ddb1
|
|
4
|
+
data.tar.gz: e74cc9571eed7f577f84ac0e83cfb7c32e59c13b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b52d926b60b53ebb0458b5a3401fd2b5ac48db6b9b1a52cf56672e9d1254d4da77ed5e3512dca27ccae4a5bf702d0bdb89c8cf53b779a2a28cd181aa22861761
|
|
7
|
+
data.tar.gz: 07157562b97510eeb568fb4761e0e25ee80230088b55490d13b463d3ea73c0366e40dcceb5a6288e55cb35991b1199dcbe7c80d342fea38644c33f18a62c2214
|
data/bin/headingify
CHANGED
|
@@ -8,9 +8,9 @@ if ARGV.length == 0
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
ARGV.each_with_index do |s, i|
|
|
11
|
-
if s =~
|
|
11
|
+
if s =~ /^-{1,}h$/ || s =~ /^-{1,}help$/
|
|
12
12
|
print Headingify.help
|
|
13
|
-
elsif s =~
|
|
13
|
+
elsif s =~ /^-{1,}v$/ || s =~ /^-{1,}version$/
|
|
14
14
|
t = "#{Headingify::TITLE}"
|
|
15
15
|
v = "#{Headingify::VERSION}"
|
|
16
16
|
u = "(#{Headingify::UPDATE} revision #{Headingify::REVISION})"
|
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.6"
|
|
4
4
|
UPDATE = "2014-11-19"
|
|
5
|
-
REVISION = "
|
|
5
|
+
REVISION = "31"
|
|
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"
|