space2underscore 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/s2u +4 -1
- data/bin/space2underscore +4 -1
- data/lib/space2underscore/version.rb +1 -1
- 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: '09dc850870dd86b0335f6b5e3ca1e4d7b80af677'
|
4
|
+
data.tar.gz: 4d33ef051ac1a64ebbeeeff3502998bfc138db59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5963793b19ee2a4fb18384ca387a4a555db2ab6e35bfa5e1e0eaae77e10f456556e804fb4c1d9ca56f1c9c78b2ff4bc08aad46dca7cd3c22d8b30513e19355e0
|
7
|
+
data.tar.gz: bc9f85ad75a939cb5165c11c48f5c004dae21709aec5d401d20ba5c0cf47dbdeee328a17ebc789f5fad1633bc0cb1f7952fffb4d1c4086905aecc1f44715d3b2
|
data/bin/s2u
CHANGED
@@ -10,7 +10,10 @@ args = ARGV.reject { |arg| CREATE_FLAGS.include?(arg) }
|
|
10
10
|
convert_flag = ARGV.select { |arg| CREATE_FLAGS.include?(arg) }
|
11
11
|
underscore_include_sentence = Space2underscore.convert(args)
|
12
12
|
|
13
|
-
|
13
|
+
if ARGV.empty?
|
14
|
+
puts Space2underscore.usage
|
15
|
+
exit
|
16
|
+
end
|
14
17
|
|
15
18
|
if convert_flag.empty?
|
16
19
|
puts underscore_include_sentence
|
data/bin/space2underscore
CHANGED
@@ -10,7 +10,10 @@ args = ARGV.reject { |arg| CREATE_FLAGS.include?(arg) }
|
|
10
10
|
convert_flag = ARGV.select { |arg| CREATE_FLAGS.include?(arg) }
|
11
11
|
underscore_include_sentence = Space2underscore.convert(args)
|
12
12
|
|
13
|
-
|
13
|
+
if ARGV.empty?
|
14
|
+
puts Space2underscore.usage
|
15
|
+
exit
|
16
|
+
end
|
14
17
|
|
15
18
|
if convert_flag.empty?
|
16
19
|
puts underscore_include_sentence
|