space2underscore 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/space2underscore/version.rb +1 -1
- data/lib/space2underscore.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e9e2c7471e49356ee31babe6b9183833d0c0dde
|
4
|
+
data.tar.gz: 91cb86b414769827db5d2758c948dc59d0c4b86b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c24a9ef81512e37a88aa0c2fca45ff46b73a98305046621037d946d5ddccbe71e0312b6591bcb260a93577e5a3af90ceb3f298bba23eb49982969e389556bde0
|
7
|
+
data.tar.gz: 521cb2de34b78d0d88cbcd13e2fbff299d1842943f1e6376e9d2602a5acfa52340dc03c0e85d526c791f32f0117b7bf2f657f2746cb05c6ab642e5a5b236f90d
|
data/lib/space2underscore.rb
CHANGED
@@ -2,7 +2,7 @@ require 'space2underscore/version'
|
|
2
2
|
|
3
3
|
module Space2underscore
|
4
4
|
def self.convert(argv)
|
5
|
-
argv.length == 1 ? argv[0].gsub(/\s/, '_') : argv.join('_')
|
5
|
+
argv.length == 1 ? argv[0].strip.gsub(/\s/, '_') : argv.join('_')
|
6
6
|
end
|
7
7
|
|
8
8
|
def self.copy_command(space_include_sentence)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: space2underscore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sachin21
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.2.2
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Convert to underscore the space
|