fastlane-plugin-better_semantic_release 2.0.15 → 2.0.17

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: bdf6833446cecc4be3d72e2357a16208d13fa6ef9464ee0e916957322f79300c
4
- data.tar.gz: a7a517d408482d7170186a6f57782b600d622e6ff232347d6c317868b6adedb5
3
+ metadata.gz: f6f689255ee572e2f4f5b49668ea19d6ba46ccf006e979b41e24c569b1864230
4
+ data.tar.gz: 1777a1d9150608717e90d9374487ba352f96afbb72a4f8143cf3af13f72b660a
5
5
  SHA512:
6
- metadata.gz: a3008637927bde5143dc14da2aaed98774d0a7bed01042ed4c23469be85b04de1c585cab19e91439ca4565d783e19e777c4d30b5a20f42cc881cafbebb5a57e8
7
- data.tar.gz: ee3e96a3726c739e5b74b6ea4197e686e5d0d4a8edee8dbe05a1f1ea01c4f36904ccac727ff62d6282d5808acbf080d06ce123eb47ccb3a2bd72669325692946
6
+ metadata.gz: 3248cb8fbd09b2fe82b1c05adf7fb5fcf87fc051932463a746f160d303f3b6b1745ee3042267f34fcfe8bdb06ed7082b968f39704a87a3948b874bb163879cf3
7
+ data.tar.gz: b60a579853f5c11414698038be6015152261f7c6242feb26d55427cb644cf634ce6e495d269a0a3a8d1d5e37c19b2d30bea44f245dc3ec8169109548e12794d9
data/README.md CHANGED
@@ -91,6 +91,9 @@ Increment version number, commit changes, run:
91
91
 
92
92
  `bundle install && rake install && rake release`
93
93
 
94
+ Then in client app using plugin
95
+ `bundle update fastlane-plugin-better_semantic_release`
96
+
94
97
 
95
98
  ## Questions
96
99
 
@@ -28,16 +28,16 @@ module Fastlane
28
28
  end
29
29
 
30
30
  def self.get_last_tag_hash(params)
31
- #command = "git rev-list -n 1 refs/tags/#{params[:tag_name]}"
32
- #Actions.sh(command, log: params[:debug]).chomp
33
-
34
- command = "git log -2 --pretty=format:'%H' #{params[:tag_name]}"
35
- command_output = Actions.sh(command, log: false).chomp
36
- hashes = command_output.split("\n")
37
- if hashes.length > 1
38
- return hashes[1]
39
- end
40
- return nil
31
+ # Convert ios/production/1.15.3-2-ga8b1c030 to ios/production/1.15.3 so we can get hash of it
32
+ UI.message "get_last_tag_hash #{params[:tag_name]}"
33
+ dashIndex = params[:tag_name].index('-')
34
+ if dashIndex
35
+ formatted_tag = params[:tag_name].slice(0..(params[:tag_name].index('-') - 1))
36
+ elsif
37
+ formatted_tag = params[:tag_name]
38
+ end
39
+ command = "git rev-list -n 1 refs/tags/#{formatted_tag}"
40
+ Actions.sh(command, log: params[:debug]).chomp
41
41
  end
42
42
 
43
43
  def self.get_commits_from_hash(params)
@@ -129,6 +129,8 @@ module Fastlane
129
129
  debug: params[:debug]
130
130
  )
131
131
 
132
+ UI.message hash
133
+
132
134
  UI.message("Found #{splitted.length} commits since last release")
133
135
  releases = params[:releases]
134
136
 
@@ -1 +1 @@
1
- module Fastlane module BetterSemanticRelease VERSION = "2.0.15" end end
1
+ module Fastlane module BetterSemanticRelease VERSION = "2.0.17" end end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-better_semantic_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.15
4
+ version: 2.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Greco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-02 00:00:00.000000000 Z
11
+ date: 2023-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry