fastlane-plugin-get_new_build_number 0.2.4 → 0.2.7

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: d55aa0088f0784624ae39f294ca8ff714d96f61bcfeda529c2c4a3dccd39162d
4
- data.tar.gz: 4afd5c0d79d3c95c6410fa99af921bf9962ef956dd2ca12c9b907904195a38a7
3
+ metadata.gz: 17c1a7c7e7633d72685b94f7cf76765071e2bf189175e7943918f82f6cae2887
4
+ data.tar.gz: 189a9a5a9bb06a715da3cb4af8338e05b8986963970cfffc79076923afcb3eda
5
5
  SHA512:
6
- metadata.gz: 6c01f2e0e44f31f08d0978bcf4eb60ed5d9cf1f749d7018eb289fd0d7fdbc80041da17a20375bab6ef5ee80997d811f93c134536db6460d1d807d73bd9d8f386
7
- data.tar.gz: c90534139f22c62b983c81d1ff9b227f4c4505e3d5098c994421aa385718713d6f273370d44cda038ded369d71e6c83f6fe2f28df8c7a187c28b49e5f181fa15
6
+ metadata.gz: 6206ac185ba551ebc0c7a01b795a25d9705b1c25aaa9aa42bfa33a89a3e6c0130a03791dac872334387ff732035ef6656fcd42046cba37041c3bbaf9956f802f
7
+ data.tar.gz: 115598f44247ef3bf2011a140a73e97a44af43c0362aa0ea6a8375d4d2e208ee1d07d996436aeb52fc0f29e60df2695b86ad4a4fec357e0693dcd81a9ae40592
@@ -0,0 +1,26 @@
1
+ require 'fastlane/action'
2
+
3
+ module Fastlane
4
+ module Actions
5
+ class GetNewBuildNameAction < Action
6
+ def self.run(params)
7
+ build_name = sh("git describe --tags --abbrev=0 | cut -c 2-").strip
8
+ UI.success("New build name: #{build_name}")
9
+ return build_name
10
+ end
11
+
12
+ def self.description
13
+ "Retrieves the new build number for your app."
14
+ end
15
+
16
+ def self.authors
17
+ ["Bartek Pacia"]
18
+ end
19
+
20
+ def self.return_value
21
+ "A string representing a new build name. It's the latest git tag with the first " \
22
+ "character stripped (so v4.2.0 becomes 4.2.0)"
23
+ end
24
+ end
25
+ end
26
+ end
@@ -97,9 +97,9 @@ module Fastlane
97
97
  FastlaneCore::ConfigItem.new(
98
98
  key: :app_store_initial_build_number,
99
99
  env_name: "APP_STORE_INITIAL_BUILD_NUMBER",
100
- description: "Build number to use if there's nothing in App Store.",
100
+ description: "Build number to use if there's nothing in App Store",
101
101
  optional: true,
102
- type: String,
102
+ type: String
103
103
  ),
104
104
  FastlaneCore::ConfigItem.new(
105
105
  key: :firebase_json_key_path,
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GetNewBuildNumber
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-get_new_build_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartek Pacia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-26 00:00:00.000000000 Z
11
+ date: 2022-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -173,6 +173,7 @@ files:
173
173
  - LICENSE
174
174
  - README.md
175
175
  - lib/fastlane/plugin/get_new_build_number.rb
176
+ - lib/fastlane/plugin/get_new_build_number/actions/get_new_build_name_action.rb
176
177
  - lib/fastlane/plugin/get_new_build_number/actions/get_new_build_number_action.rb
177
178
  - lib/fastlane/plugin/get_new_build_number/helper/get_new_build_number_helper.rb
178
179
  - lib/fastlane/plugin/get_new_build_number/version.rb