fastlane-plugin-semantic_release 1.12.0 → 1.13.1

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: 801ae7e90c09769c435f3aa1640323338ff7b343d3005427208f371f2cd06711
4
- data.tar.gz: '0790c9a548fd4d4bd59409bf659b488af3db65cfb098683dac62658b36b866c4'
3
+ metadata.gz: 51884916218331bb9965b7005bdb173d6a4ce3a03fe4f348c99d495b71b8fb45
4
+ data.tar.gz: 9625cfb05fa43bd29976b9b1e345c0a2d1cfb61b49876363d57a2693a2adf4e6
5
5
  SHA512:
6
- metadata.gz: c8527660760ffa383de7ff51baa708323da17ed33a7d601becc88375f4ad789ee6d4b99970995b42ae010a6a8f976b661fd53c22dd522bef8d0df30d3fc091bd
7
- data.tar.gz: 6935fab5c02ffa2cb63d6d5fde4a7012e4abd800263059265c75c2f29155d179af8a960e11ebb146a329cc6c7af44ae52dc8718da04ba1b7309a566fc80767c8
6
+ metadata.gz: 95a8a2168616e88c3a23fb8181941b8da9af9eab428b7260a7faf3ac504f812737066fb03c36ae503e4afa6fce62d31322088afe06676f97d558993e6705d559
7
+ data.tar.gz: e121b05b367d96cf315f15546957fd0dccb5c75538cd799981756a46279752d20ce6080b114f842ec9a3e09d4d9c18a5acb15a56afe04aced99b8c8921f6c15c
@@ -6,6 +6,7 @@ module Fastlane
6
6
  module SharedValues
7
7
  RELEASE_ANALYZED = :RELEASE_ANALYZED
8
8
  RELEASE_IS_NEXT_VERSION_HIGHER = :RELEASE_IS_NEXT_VERSION_HIGHER
9
+ RELEASE_IS_NEXT_VERSION_COMPATIBLE_WITH_CODEPUSH = :RELEASE_IS_NEXT_VERSION_COMPATIBLE_WITH_CODEPUSH
9
10
  RELEASE_LAST_TAG_HASH = :RELEASE_LAST_TAG_HASH
10
11
  RELEASE_LAST_VERSION = :RELEASE_LAST_VERSION
11
12
  RELEASE_NEXT_MAJOR_VERSION = :RELEASE_NEXT_MAJOR_VERSION
@@ -81,6 +82,8 @@ module Fastlane
81
82
  next_minor = (version.split('.')[1] || 0).to_i
82
83
  next_patch = (version.split('.')[2] || 0).to_i
83
84
 
85
+ is_next_version_compatible_with_codepush = true
86
+
84
87
  # Get commits log between last version and head
85
88
  splitted = get_commits_from_hash(
86
89
  hash: hash,
@@ -122,6 +125,10 @@ module Fastlane
122
125
  next_patch += 1
123
126
  end
124
127
 
128
+ unless commit[:is_codepush_friendly]
129
+ is_next_version_compatible_with_codepush = false
130
+ end
131
+
125
132
  next_version = "#{next_major}.#{next_minor}.#{next_patch}"
126
133
  UI.message("#{next_version}: #{subject}") if params[:show_version_path]
127
134
  end
@@ -132,6 +139,7 @@ module Fastlane
132
139
 
133
140
  Actions.lane_context[SharedValues::RELEASE_ANALYZED] = true
134
141
  Actions.lane_context[SharedValues::RELEASE_IS_NEXT_VERSION_HIGHER] = is_next_version_releasable
142
+ Actions.lane_context[SharedValues::RELEASE_IS_NEXT_VERSION_COMPATIBLE_WITH_CODEPUSH] = is_next_version_compatible_with_codepush
135
143
  # Last release analysis
136
144
  Actions.lane_context[SharedValues::RELEASE_LAST_TAG_HASH] = hash
137
145
  Actions.lane_context[SharedValues::RELEASE_LAST_VERSION] = version
@@ -303,6 +311,7 @@ module Fastlane
303
311
  [
304
312
  ['RELEASE_ANALYZED', 'True if commits were analyzed.'],
305
313
  ['RELEASE_IS_NEXT_VERSION_HIGHER', 'True if next version is higher then last version'],
314
+ ['RELEASE_IS_NEXT_VERSION_COMPATIBLE_WITH_CODEPUSH', 'True if next version is compatible with codepush'],
306
315
  ['RELEASE_LAST_TAG_HASH', 'Hash of commit that is tagged as a last version'],
307
316
  ['RELEASE_LAST_VERSION', 'Last version number - parsed from last tag.'],
308
317
  ['RELEASE_NEXT_MAJOR_VERSION', 'Major number of the next version'],
@@ -1 +1 @@
1
- module Fastlane module SemanticRelease VERSION = "1.12.0" end end
1
+ module Fastlane module SemanticRelease VERSION = "1.13.1" end end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-semantic_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiří Otáhal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-28 00:00:00.000000000 Z
11
+ date: 2021-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry