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 +4 -4
- data/lib/xcodebump/git.rb +5 -5
- data/lib/xcodebump/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71d6211892fcba7ef52ead72a9035681f8cb9242
|
|
4
|
+
data.tar.gz: 65d9a325467bc4aadbeb7c20ee8515538fbe5f61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
9
|
-
add_tag
|
|
10
|
-
push_changes
|
|
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
|
|
23
|
+
def self.push_changes
|
|
24
24
|
`git push`
|
|
25
25
|
end
|
|
26
26
|
end
|
data/lib/xcodebump/version.rb
CHANGED