git_repo_upgrader 0.0.1 → 0.0.2

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
  SHA256:
3
- metadata.gz: f2c8d93bbb760bc14eb00598902e08ed53ba08994a5565a23a53b9cf7c2b3ad7
4
- data.tar.gz: ca68eeb8be0cda48a6e81eecfdf4fbc2c0834ee2ec6bdc9f2b583ffe5f446a65
3
+ metadata.gz: c3b689bc3ce29e0e39f14d8d2671068e68a0153694cb432a0e69b6886a4208d8
4
+ data.tar.gz: eeb03c644824663a38dcb7ce79690329fa30718d113b566bacbce7bbb9989787
5
5
  SHA512:
6
- metadata.gz: 4c49261a6d1ce89eb36ee79970ca1409e41794deb014582d3ac74d0b4f5e79ee35179a0ca8f82d5621e7e9f12002973bbfaf1eb02d92041fbb10413f41ebda51
7
- data.tar.gz: 40a47a6885d1c879fef946ad1519815fc19e059feb0eb453ef1ee267bc4cda878923e1a0a7ce80c1ff1f1471e9f681b699654d61f9713e65fd7758d78f665005
6
+ metadata.gz: c73b162e8965a725f61b4d5be4c59c87222f743b3a6bdcd6a9319437bcba0d64b9b0c018f3507fd0b425e76036a213edf4a9eeabbd0edf47d244a52525f60f18
7
+ data.tar.gz: 6c6beed7140f6dcd74967b02ec239b5405e18e5bbe67309eb9c7de884cddc497033c206ea0d2006fee830b3c9247661d20c5754fa6771a4394a9fb3f2afa13cc
@@ -108,14 +108,19 @@ class GitRepoUpgrader
108
108
  end
109
109
  if yes_no == 'y'
110
110
  Dir.chdir PROJECT_DIR
111
- git_commit_command = %Q(git commit "#{files.values.join('" "')}" -m "upgrade #{repo_name}")
112
- puts " #{git_commit_command}".blue
113
- git_result = `#{git_commit_command}`
114
- if git_result.include? 'no changes added to commit'
111
+ # add
112
+ git_commit_command1 = %Q(git add "#{files.values.join('" "')}")
113
+ puts " #{git_commit_command1}".blue
114
+ git_result1 = `#{git_commit_command1}`
115
+ # commit
116
+ git_commit_command2 = %Q(git commit "#{files.values.join('" "')}" -m "upgrade #{repo_name}")
117
+ puts " #{git_commit_command2}".blue
118
+ git_result2 = `#{git_commit_command2}`
119
+ if git_result2.include? 'no changes added to commit'
115
120
  puts
116
121
  puts " You already had the latest version, nothing to commit!".red
117
122
  else
118
- puts git_result.green
123
+ puts git_result2.green
119
124
  end
120
125
  end
121
126
  end
@@ -1,3 +1,3 @@
1
1
  module GitRepoUpgrader
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '0.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_repo_upgrader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthäus J. N. Beyrle
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-17 00:00:00.000000000 Z
11
+ date: 2020-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize