space2underscore 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/space2underscore +2 -1
- data/lib/space2underscore/version.rb +1 -1
- data/lib/space2underscore.rb +12 -0
- 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: d2738908178f6199a9b3237597ab4c34c13edc87
|
4
|
+
data.tar.gz: 22f3fdb477ad34dc564bcdb4d25fe324b00573bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23c73e4ab92821e8e32ab31714683fb1d1bb5d594f0fec68c2ffdf00221e32002f6122c9e174a325e07cd1738d20d2b763e372ce442683146c0cf53d67ca1b93
|
7
|
+
data.tar.gz: 2b833e905a46468bed9d3a0eab95d73d7bd73e293e630c9512b71a67c40b27a7b1ee19c8a549b71cdabb78dfd2f5a6bb34fdf81f450df1efc8b39cc9f87c4f28
|
data/bin/space2underscore
CHANGED
data/lib/space2underscore.rb
CHANGED
@@ -19,5 +19,17 @@ module Space2underscore
|
|
19
19
|
"xclip"
|
20
20
|
end
|
21
21
|
end
|
22
|
+
|
23
|
+
def create_new_branch(branch)
|
24
|
+
print "Do you create the new branch? [y/Y]"
|
25
|
+
flag = $stdin.gets.chomp
|
26
|
+
|
27
|
+
if flag == "y" || flag == "Y"
|
28
|
+
system "git checkout -b #{branch}"
|
29
|
+
"Branch has been created."
|
30
|
+
else
|
31
|
+
"Branch name has been copied to clipboard."
|
32
|
+
end
|
33
|
+
end
|
22
34
|
end
|
23
35
|
end
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sachin21
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.2.2
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: change the space into underscore
|