hiroto_push 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiroto_push/version.rb +1 -1
- data/lib/hiroto_push.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea44f5a205ce0e6753f81445ab36f3e41c118765695b470047f25b3918d7f563
|
4
|
+
data.tar.gz: e0016b16b272edb11f67e998a259b05f40c8b65c93c5871ba2849845ea9d305a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 497df8961ab57c93bd7e636f63e053b9b6b23b7d02f4784427cce7b424c1a735ef2b534c08273025d8c5509337b8e7e967be67f9f1d450613b8c507a6ee37ce2
|
7
|
+
data.tar.gz: 71909c0c01a039c61e489c9c94542fbbf01045d1784de68de554d45ba577e20ba45860750de59bfcad48d17475621aecd7a1df44fe8049156139b76d03c4b6d2
|
data/lib/hiroto_push/version.rb
CHANGED
data/lib/hiroto_push.rb
CHANGED
@@ -7,6 +7,10 @@ module HirotoPush
|
|
7
7
|
class Error < StandardError; end
|
8
8
|
# coding: utf-8
|
9
9
|
def self.hiroto_push
|
10
|
+
# コミットメッセージの入力
|
11
|
+
print 'Enter the commit message: '
|
12
|
+
commit_message = gets.chomp.strip
|
13
|
+
|
10
14
|
remote_string = IO.popen('git remote -v'){|io| io.read}
|
11
15
|
url = remote_string.lines.first.chomp
|
12
16
|
pattern = "github\\.com:([^\\/]+)/([^\\.]+)\\.git"
|
@@ -23,7 +27,7 @@ module HirotoPush
|
|
23
27
|
system("git add .")
|
24
28
|
|
25
29
|
# コミット
|
26
|
-
system(
|
30
|
+
system("git commit -m '#{commit_message}'")
|
27
31
|
|
28
32
|
# masterからmainに変更
|
29
33
|
system('git branch -M main')
|