fastlane_core 0.9.1 → 0.9.2

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
  SHA1:
3
- metadata.gz: bd71754ad8ed89630b5e41e5b384902cb0249e08
4
- data.tar.gz: 3f8c94de1c18569729a0bd1b726ca4a679624a65
3
+ metadata.gz: 7a48aa42d30f71cc7c58d5d68c67490a38bfb8de
4
+ data.tar.gz: 3eee24f17bccfa4027c22789a43cb6fa5acd4463
5
5
  SHA512:
6
- metadata.gz: 45c573461270463b195852f5ea946fe03adacf232e37bd797ed33733d1a2bf99f9f89e95062e73eee34450a4d24fcc719402279839127495f0197c4c50f2034d
7
- data.tar.gz: a0239ee50c24c7a2416de96ff3a6b956dd226663fd61c6442c5744e3a240319d17e84b0b83714a1cf79fa2579482e7d4c28f2c2b59fbadcbbb063a033c8a834e
6
+ metadata.gz: 070d7472451929a304fd66af537435af89245197529ebc258d76ecbcf26df9653d7e61baca02af94b7e025f3b8ae205f5413d6e1143852271c8c8628c393fd79
7
+ data.tar.gz: c444b6ceab4590c0b53d962cf411126247560fdc863d8852b5afdb8df0380df506590b470d1751611efd3e39dd410c877cbc3c0f407c8e522757fb6e56c3528f
@@ -56,8 +56,8 @@ module FastlaneCore
56
56
 
57
57
  # @return true if building in a known CI environment
58
58
  def self.is_ci?
59
- # Check for Jenkins or Travis CI environment variables
60
- ENV.has_key?("JENKINS_URL") || ENV.has_key?("TRAVIS")
59
+ # Check for Jenkins, Travis CI, ... environment variables
60
+ ENV.has_key?("JENKINS_URL") || ENV.has_key?("TRAVIS") || ENV.has_key?("CIRCLECI") || ENV.has_key?("CI")
61
61
  end
62
62
 
63
63
  # @return the full path to the Xcode developer tools of the currently
@@ -41,24 +41,8 @@ module FastlaneCore
41
41
  @@results ||= {}
42
42
  end
43
43
 
44
-
45
-
46
-
47
- # Old code
48
- # This method will check if the latest version is installed and show a warning if that's not the case
49
- def self.verify_latest_version(gem_name, current_version)
50
- return true unless self.update_available?(gem_name, current_version)
51
-
52
- v = fetch_latest(gem_name)
53
- puts '#######################################################################'.green
54
- puts "# #{gem_name} #{v} is available. You are on #{current_version}.".green
55
- puts "# It is recommended to use the latest version.".green
56
- puts "# Update using 'sudo gem update #{gem_name.downcase}'.".green
57
- puts "# To see what's new, open https://github.com/KrauseFx/#{gem_name}/releases.".green
58
- puts '#######################################################################'.green
59
- false
60
- end
61
-
44
+ # Legacy Code:
45
+ #
62
46
  # Is a new official release available (this does not include pre-releases)
63
47
  def self.update_available?(gem_name, current_version)
64
48
  begin
@@ -72,11 +56,10 @@ module FastlaneCore
72
56
  return false
73
57
  end
74
58
 
75
-
76
-
77
59
  # Relevant code
78
60
  def self.fetch_latest(gem_name)
79
61
  url = UPDATE_URL + gem_name
62
+ url += "?ci=1" if Helper.is_ci?
80
63
  JSON.parse(open(url).read)["version"]
81
64
  end
82
65
  end
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-05 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json