fastlane-plugin-better_semantic_release 2.0.16 → 2.0.18

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: 6023a79bb95c56e3720eb4ef17ef1f523b008d54fb8a89c9e4fce8e807259240
4
- data.tar.gz: 71ad79dca53f18847314c272fb2b1c46584cd6382e5037aff77dfe658db5db1e
3
+ metadata.gz: 8d71d12b4bcb389ea8ac66e82c58c9c8f25060a9c71838602949c75c42d9392f
4
+ data.tar.gz: 374d30c6bbc95f60949c5fe383e6b0a771d70ed1f1aac89b59ed9e5b4b79baa7
5
5
  SHA512:
6
- metadata.gz: 184edd261fe49880fb2af4901ea8f2397466fa88441d2a040d540a563cbb112cb7983c1037c942fffe90d7fcc9f98b73be44bec92c763744dbbc0a5a634c85a1
7
- data.tar.gz: a654a768ab0118279443e7cc63304d47a8cc7cd124bd83a060c3a112d7f3d0c3b3204f5665016d0be13e5de1ce54b0632bf963912e2a52dda61245dd990f3c49
6
+ metadata.gz: bb7655d99fd871ff451048da747399482eb0bfbee3898aaae37a8dc11425c65160764fc9f86215e924641a1bfc7fa9309f34b8457d140010560f3a8f8c5bed8f
7
+ data.tar.gz: c467379654ca837af32adf2a4ba14f112ea40d18680a0002022b5739140921355c150966fe63373922b0b490a7945122626a034bd1bf66d42ac53d1c19c07181
data/README.md CHANGED
@@ -87,15 +87,9 @@ To run the test suite (contained in `./spec`), call `bundle exec rake`
87
87
 
88
88
  # Publishing Update
89
89
 
90
- Increment version number, commit changes, run:
90
+ Increment version number in ./lib/fastlane/plugin/better_semantic_release/version.rb, commit changes, run:
91
91
 
92
92
  `bundle install && rake install && rake release`
93
93
 
94
-
95
- ## Questions
96
-
97
- If you need anything ping us on [twitter](http://bit.ly/t-xotahal).
98
-
99
- | Jiri Otahal |
100
- | -------------------------------------------------------------------------------------------------------------------------------------- |
101
- | [<img src="https://avatars3.githubusercontent.com/u/3531955?v=4" width="100px;" style="border-radius:50px"/>](http://bit.ly/t-xotahal) |
94
+ Then in client app using plugin
95
+ `bundle update fastlane-plugin-better_semantic_release`
@@ -29,7 +29,13 @@ module Fastlane
29
29
 
30
30
  def self.get_last_tag_hash(params)
31
31
  # Convert ios/production/1.15.3-2-ga8b1c030 to ios/production/1.15.3 so we can get hash of it
32
- formatted_tag = params[:tag_name].slice(0..(params[:tag_name].index('-') - 1))
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
33
39
  command = "git rev-list -n 1 refs/tags/#{formatted_tag}"
34
40
  Actions.sh(command, log: params[:debug]).chomp
35
41
  end
@@ -74,7 +80,8 @@ module Fastlane
74
80
 
75
81
  # Tag's format is v2.3.4-5-g7685948
76
82
  # See git describe man page for more info
77
- version = tag.split('/')[2]
83
+ slach_occurrences = tag.count("/")
84
+ version = tag.split('/')[slach_occurrences]
78
85
 
79
86
  if version.nil?
80
87
  UI.user_error!("Error while parsing version from tag #{tag}")
@@ -1 +1 @@
1
- module Fastlane module BetterSemanticRelease VERSION = "2.0.16" end end
1
+ module Fastlane module BetterSemanticRelease VERSION = "2.0.18" 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.16
4
+ version: 2.0.18
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: 2024-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry