hiroto_push 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9caf71db67348ae85f162b571313aafd82ecf368b9dc401e33b4ed6d5f507606
4
- data.tar.gz: a786367aa5559c1587d75b043e16067d8dd4575030a6158c495d05897e5d5ea3
3
+ metadata.gz: ea44f5a205ce0e6753f81445ab36f3e41c118765695b470047f25b3918d7f563
4
+ data.tar.gz: e0016b16b272edb11f67e998a259b05f40c8b65c93c5871ba2849845ea9d305a
5
5
  SHA512:
6
- metadata.gz: c5ec27419bf5f440f6541a65e1cc31011de37d88c282d45d4ae70f58caf6cc06ae985dcc657a92470d5fa1a08ce166e66bd3dc17588b01efe66e9dbea6e7c692
7
- data.tar.gz: 7e03273b3e8d7fef1f21e0503b2055ad008d6e97015235a4f44c5ba0872f911ce8e3cf23e98692d28133fae2e8da9999b77b69ab89f1d2e944362fedced93d89
6
+ metadata.gz: 497df8961ab57c93bd7e636f63e053b9b6b23b7d02f4784427cce7b424c1a735ef2b534c08273025d8c5509337b8e7e967be67f9f1d450613b8c507a6ee37ce2
7
+ data.tar.gz: 71909c0c01a039c61e489c9c94542fbbf01045d1784de68de554d45ba577e20ba45860750de59bfcad48d17475621aecd7a1df44fe8049156139b76d03c4b6d2
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HirotoPush
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
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('git commit -m "Update file"')
30
+ system("git commit -m '#{commit_message}'")
27
31
 
28
32
  # masterからmainに変更
29
33
  system('git branch -M main')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiroto_push
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SuzukiHiroto08