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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33b248282eda7c95fdc3e9dfb70692bb4dee6804
4
- data.tar.gz: ebce903b96d2d390a77cc2c9faa707bb8010555d
3
+ metadata.gz: '09dc850870dd86b0335f6b5e3ca1e4d7b80af677'
4
+ data.tar.gz: 4d33ef051ac1a64ebbeeeff3502998bfc138db59
5
5
  SHA512:
6
- metadata.gz: 055e2c042fb47bcc496711b7e7e7f05bb25336426bc4dd68498e6a29a221f992c10fdb5c9b5246485e3aa999b8bc483446cdeeabebe538e2691993e396397001
7
- data.tar.gz: 1de34f8700df216d3a084e71be935e2e0bf16713410b9570a85a657622bd9b463c3cad8d36a57c56688c1cc4d5654e32c8b7a699be6cef3a6ef4bc1c34bd907b
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
- return puts Space2underscore.usage if ARGV.empty?
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
- return puts Space2underscore.usage if ARGV.empty?
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  # This module holds the Space2underscore version information.
4
4
  module Space2underscore
5
- VERSION = '0.5.0'
5
+ VERSION = '0.5.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: space2underscore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sachin21