fastlane 2.18.0 → 2.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a29078a37207ab9214712b179c10bd4e19a2230
4
- data.tar.gz: 0806a47c7d815b2d295cfe379c58a309f902c407
3
+ metadata.gz: d9d3c96a177ba6a9c1dee9d00010f9dfe7ef58ea
4
+ data.tar.gz: c54cb232450a7a3c6d3713d19175f41c38df0735
5
5
  SHA512:
6
- metadata.gz: afe8839af19b3dae4cc5b523060cf93d7b47bb029d1a2501ebed6db716121d1fdfa23db2fe6c260e234f30aa38173f602c100a1d357c1cfda0a383cddfcbca81
7
- data.tar.gz: 55e9c61cd96f60a790c5940dc00f871042a18d5ea34cc2430ba3c6ac4b64f8663f99bd5d806e294bad1f4660e61983436641b009d5f1f7bdf19361d11961f73c
6
+ metadata.gz: 2f5b27fee4f39d82d36024196cd7d8310de46e75c7d10f0bb8eca16240c7dc1131d142f21928b38170133b6f69e5999efa0a8cdb2494f7250631bb8006effa39
7
+ data.tar.gz: 69b350cc9901f2439b15531109eacfe49936ba1998a1bcb441aacd8be29a2178cb07a83fac6d3dc3924437772ef5cf987c517244a0b660449a265c0f552533ca
@@ -1,13 +1,13 @@
1
1
  module Fastlane
2
2
  module Actions
3
3
  module SharedValues
4
+ GIT_BRANCH_ENV_VARS = %w(GIT_BRANCH BRANCH_NAME TRAVIS_BRANCH BITRISE_GIT_BRANCH CI_BUILD_REF_NAME).freeze
4
5
  end
5
6
 
6
7
  class GitBranchAction < Action
7
8
  def self.run(params)
8
- env_vars = %w(GIT_BRANCH BRANCH_NAME TRAVIS_BRANCH BITRISE_GIT_BRANCH CI_BUILD_REF_NAME)
9
- env_name = env_vars.find { |env_var| FastlaneCore::Env.truthy?(env_var) }
10
- ENV.fetch(env_name) { `git symbolic-ref HEAD --short 2>/dev/null`.strip }
9
+ env_name = SharedValues::GIT_BRANCH_ENV_VARS.find { |env_var| FastlaneCore::Env.truthy?(env_var) }
10
+ ENV.fetch(env_name.to_s) { `git symbolic-ref HEAD --short 2>/dev/null`.strip }
11
11
  end
12
12
 
13
13
  #####################################################
@@ -15,11 +15,11 @@ module Fastlane
15
15
  #####################################################
16
16
 
17
17
  def self.description
18
- "Returns the name of the current git branch"
18
+ "Returns the name of the current git branch, possibly as controled by CI ENV vars"
19
19
  end
20
20
 
21
21
  def self.details
22
- "If no branch could be found, this action will return nil"
22
+ "If no branch could be found, this action will return an empty string"
23
23
  end
24
24
 
25
25
  def self.available_options
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.18.0'.freeze
2
+ VERSION = '2.18.1'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.18.0
4
+ version: 2.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause