fastlane-plugin-get_new_build_number 0.2.5 → 0.2.6

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: 97cedbb3402e1f1e6f5ae410809064523c7d22685b06ec43a4ad9683ecec2b98
4
- data.tar.gz: d56de07c38399788a42568c6d6000a0c7418e7f9bcabb59609fe186b623f2314
3
+ metadata.gz: f95b4015bb184f1d1fd21ef8e75ef0f05249c0aa1ae4a80b2854cd2d1bcd9615
4
+ data.tar.gz: 85ba562e7a932c84c142c2d9a36bd364c1b7d630d441b9fc22c04f466cd9fcdf
5
5
  SHA512:
6
- metadata.gz: 0622de5b803f4d24e5388bd8f77cf2b42901e3dcccbb0e094541975e61796a1b30b28e650112cd50f8708ddfd26c793dba514b3adb376ce829dd03d31d34e8bf
7
- data.tar.gz: 1f5c127d6e57871c3be3dac42863e4f3ef3da59e1f42965ab6078e619efec2069f65278695389d153e2ca404cb40a19bf519c890ab33fb8c02badb81499f72d5
6
+ metadata.gz: f67caf04a5cf801b014b4033508507f8ba42856f51087f0deee91d47d741e91307206bba27ee05ddf2b3118a1212fb081f500dfd691a5b3f874c625cdd58b6fe
7
+ data.tar.gz: af23163af0b07a37a4f92cfe96acf89157c6ab5a7586f31e5c82ab41d6569b820f3bab2e0890a972e267ba69176feebadb3ae359ba66f4302864792594f2601f
@@ -0,0 +1,43 @@
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
+
25
+ # def self.details
26
+ # # Optional:
27
+ # ""
28
+ # end
29
+
30
+ def self.available_options
31
+ []
32
+ end
33
+
34
+ # def self.is_supported?(platform)
35
+ # # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
36
+ # # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
37
+ # #
38
+ # # [:ios, :mac, :android].include?(platform)
39
+ # true
40
+ # end
41
+ end
42
+ end
43
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GetNewBuildNumber
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartek Pacia
@@ -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