fastlane-plugin-applivery 0.4.0 → 0.4.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
  SHA1:
3
- metadata.gz: 4837b1b93fb42b422eff9e6e146da3e87fe2a194
4
- data.tar.gz: 4913d85ab09471f18c3b9cf4565c4c99219437ab
3
+ metadata.gz: 8a53088eb3fdd4b4181eceb886ae217fb4b4f40a
4
+ data.tar.gz: e9d6084886036a7b7153bed989cf8b7486cab36a
5
5
  SHA512:
6
- metadata.gz: a4a3d6f7dcbbbf9d676b03dc3f641f4838d5fa53a1e318b13bbf2842bf9de531d8f6ee354b12846bb566fe1eb8573606a324533d34e9c04fff66552854429556
7
- data.tar.gz: c1b6cbf5fbaee8df966811ea1c023173b52c7adad751cd6b90af5fa20f828108e26f32782456a18032704d12ba2c0ffe371ccef34157a73dd6afa54f9846fee4
6
+ metadata.gz: af292c2bb9fc4f9387412d63881a10cbd0ff1d2b2abf9554ac43c6058bae4415ddc8fe6a4472204a39fa4629affbd90075bf786e76a5368a21f79307bce1eea6
7
+ data.tar.gz: c081b45f9c846a60d8656b0a03ad8549d9d920bdd6c7d21668618f5e1c791f79b2754a64c0d06f12e478beaf9813afa6e822865ca3aba13b6cfae26fa1de8896
@@ -31,19 +31,13 @@ module Fastlane
31
31
  gitBranch = Actions.git_branch
32
32
  gitCommit = Actions.sh('git rev-parse --short HEAD')
33
33
  gitMessage = Actions.last_git_commit_message
34
- gitRepositoryURL = Actions.sh('git config --get remote.origin.url')
35
- gitTag = Actions.sh('git describe --abbrev=0 --tags')
36
- gitTagCommit = Actions.sh("git rev-list -n 1 --abbrev-commit #{gitTag}")
37
34
 
38
35
  command += " -F gitBranch=\"#{gitBranch}\""
39
36
  command += " -F gitCommit=\"#{gitCommit}\""
40
37
  command += " -F gitMessage=\"#{gitMessage}\""
41
- command += " -F gitRepositoryURL=\"#{gitRepositoryURL}\""
42
- if gitTagCommit == gitCommit
43
- command += " -F gitTag=\"#{gitTag}\""
44
- end
38
+ command += self.add_git_remote
39
+ command += self.add_git_tag
45
40
  end
46
-
47
41
  return command
48
42
  end
49
43
 
@@ -56,6 +50,25 @@ module Fastlane
56
50
  return command
57
51
  end
58
52
 
53
+ def self.add_git_tag
54
+ gitTag = Actions.sh('git describe --abbrev=0 --tags')
55
+ gitTagCommit = Actions.sh("git rev-list -n 1 --abbrev-commit #{gitTag}")
56
+ gitCommit = Actions.sh('git rev-parse --short HEAD')
57
+ if gitTagCommit == gitCommit
58
+ return " -F gitTag=\"#{gitTag}\""
59
+ end
60
+ return ""
61
+ rescue
62
+ return ""
63
+ end
64
+
65
+ def self.add_git_remote
66
+ gitRepositoryURL = Actions.sh('git config --get remote.origin.url')
67
+ return " -F gitRepositoryURL=\"#{gitRepositoryURL}\""
68
+ rescue
69
+ return ""
70
+ end
71
+
59
72
  end
60
73
  end
61
74
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Applivery
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-applivery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Jimenez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-30 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry