xcodebump 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 58232dd78fc366e2a761bad6391e7e602d459563
4
- data.tar.gz: d7da3b1bd4b1a38a8251dee27315a5aa5979285e
3
+ metadata.gz: 71d6211892fcba7ef52ead72a9035681f8cb9242
4
+ data.tar.gz: 65d9a325467bc4aadbeb7c20ee8515538fbe5f61
5
5
  SHA512:
6
- metadata.gz: c133438588f79dc21bd012703b1e6c5e759197104012f44ca94083a64ee996edf4be3e296d6c066e0509e403af25aa11aa1594340dd858077c27866c1323655e
7
- data.tar.gz: 1ed70462e8103af698c7cd3183809e67df4cde3c3fb12734c49916786f2540fd31323f78bedc25d27ddf701315850a448938961349c98c301f5434813eacf366
6
+ metadata.gz: 6ffef58ed282f3e7744e2a86cfffa8e2a5ade42b07edfb667fff69edd11c2065fb0cdf0beee90af35c97ec744277dd9280a62fab3adda6070bed3892cd753b8f
7
+ data.tar.gz: 234d4f3721dd0ac8573d4632f5abd3ddaa22e3780063d8be91063f536c3172a6dfa3ea4484fba4d3c1882f6f1c91ac12ed04a3df967e64abe4898c6196ccdab6
data/lib/xcodebump/git.rb CHANGED
@@ -4,10 +4,10 @@ require 'fileutils'
4
4
 
5
5
  module Xcodebump
6
6
  def self.add_new_version_to_git version
7
-
8
- commit_changes version if Dir.exist? "#{Dir.pwd}/.git"
9
- add_tag version if Dir.exist? "#{Dir.pwd}/.git"
10
- push_changes version if Dir.exist? "#{Dir.pwd}/.git"
7
+ d = Dir.exist? "#{Dir.pwd}/.git"
8
+ commit_changes(version) if d
9
+ add_tag(version) if d
10
+ push_changes if d
11
11
  end
12
12
 
13
13
  def self.commit_changes version
@@ -20,7 +20,7 @@ module Xcodebump
20
20
  `git push --tags`
21
21
  end
22
22
 
23
- def self.push_changes version
23
+ def self.push_changes
24
24
  `git push`
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Xcodebump
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcodebump
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - bennyguitar