fastlane_core 0.32.1 → 0.33.0

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: 0f4d931254827f7fd47490f587921cf1c418f2b5
4
- data.tar.gz: 7a190cfb592c3e434f20ca3ac12403f4b3bd848a
3
+ metadata.gz: 02578f98b483a8ba6920f39779d71ba1ba03774c
4
+ data.tar.gz: 487cd019f1800b5fcb2725ae2314a7a965323640
5
5
  SHA512:
6
- metadata.gz: e3e95b7de20c1e6336a4c38b124350218cc5c0f5a0b35a4963eaaca735c2af4eac079ce6670ef8603f86655fe0149faec4f094029f07b74af34b2090fdf6ca3d
7
- data.tar.gz: a3f4fe5f1d39f3485c60bd6196987ae24187d46bdf7812e8a4712f61483fe59003ffb5b080a3ff32ae52be9f8888d61922c60d6c249e05cda6f1723820545f74
6
+ metadata.gz: 8e62feb2d668f4209197e34000348ec2b2baf1ea98240528e53463d7dafc5e8feebbc251234993feaca37ff6c62a86f1fd1f02f53312c8b0d879ceb7f0bbb2f7
7
+ data.tar.gz: 7bc72d09706072f4dde1b7990ab8428af297858bc030e580a6bab0a6cec09bebe46358a3aac03eac3298e553efdd0a29a81a0d2c1a3bcaed788fc9d2e365ee9a
data/README.md CHANGED
@@ -25,14 +25,14 @@
25
25
  FastlaneCore
26
26
  ============
27
27
 
28
- [![Twitter: @KauseFx](https://img.shields.io/badge/contact-@KrauseFx-blue.svg?style=flat)](https://twitter.com/KrauseFx)
29
- [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/KrauseFx/fastlane_core/blob/master/LICENSE)
28
+ [![Twitter: @FastlaneTools](https://img.shields.io/badge/contact-@FastlaneTools-blue.svg?style=flat)](https://twitter.com/FastlaneTools)
29
+ [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/fastlane_core/blob/master/LICENSE)
30
30
  [![Gem](https://img.shields.io/gem/v/fastlane_core.svg?style=flat)](http://rubygems.org/gems/fastlane_core)
31
31
  [![Build Status](https://img.shields.io/travis/fastlane/fastlane_core/master.svg?style=flat)](https://travis-ci.org/fastlane/fastlane_core)
32
32
 
33
33
  All shared code of the fastlane tools is stored in this repository.
34
34
 
35
- Get in contact with the developer on Twitter: [@KrauseFx](https://twitter.com/KrauseFx)
35
+ Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.com/FastlaneTools)
36
36
 
37
37
  # Features
38
38
 
@@ -2,6 +2,27 @@ module FastlaneCore
2
2
  # Executes commands and takes care of error handling and more
3
3
  class CommandExecutor
4
4
  class << self
5
+ # Cross-platform way of finding an executable in the $PATH. Respects the $PATHEXT, which lists
6
+ # valid file extensions for executables on Windows.
7
+ #
8
+ # which('ruby') #=> /usr/bin/ruby
9
+ #
10
+ # Derived from http://stackoverflow.com/a/5471032/3005
11
+ def which(cmd)
12
+ # PATHEXT contains the list of file extensions that Windows considers executable, semicolon separated.
13
+ # e.g. ".COM;.EXE;.BAT;.CMD"
14
+ exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
15
+
16
+ ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
17
+ exts.each do |ext|
18
+ cmd_path = File.join(path, "#{cmd}#{ext}")
19
+ return cmd_path if File.executable?(cmd_path) && !File.directory?(cmd_path)
20
+ end
21
+ end
22
+
23
+ return nil
24
+ end
25
+
5
26
  # @param command [String] The command to be executed
6
27
  # @param print_all [Boolean] Do we want to print out the command output while running?
7
28
  # @param print_command [Boolean] Should we print the command that's being executed
@@ -28,7 +28,7 @@ module FastlaneCore
28
28
  puts "👍 This makes resolving issues much easier and helps improve fastlane.".yellow
29
29
  puts "🔒 The reports will be stored securely on getsentry.com.".yellow
30
30
  puts "✨ Once crash reporting is enabled, you get a clean output when something goes wrong.".yellow
31
- puts "🙊 More information about privacy: https://github.com/KrauseFx/fastlane/releases/tag/1.33.3".yellow
31
+ puts "🙊 More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3".yellow
32
32
  puts "-------------------------------------------------------------------------------------------".yellow
33
33
  end
34
34
 
@@ -41,7 +41,7 @@ module FastlaneCore
41
41
  puts "👍 This makes resolving issues much easier and helps improve fastlane.".yellow
42
42
  puts "🔒 The reports will be stored securely on getsentry.com".yellow
43
43
  puts "✨ Once crash reporting is enabled, you get a clean output when something goes wrong".yellow
44
- puts "🙊 More information about privacy: https://github.com/KrauseFx/fastlane/releases/tag/1.33.3".yellow
44
+ puts "🙊 More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3".yellow
45
45
  puts "🌴 You can always disable crash reports at anytime `fastlane disable_crash_reporting`".yellow
46
46
  puts "-------------------------------------------------------------------------------------------".yellow
47
47
  if agree("Do you want to enable crash reporting? (y/n) ", true)
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.32.1"
2
+ VERSION = "0.33.0"
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.32.1
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-09 00:00:00.000000000 Z
11
+ date: 2016-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -381,7 +381,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
381
381
  version: '0'
382
382
  requirements: []
383
383
  rubyforge_project:
384
- rubygems_version: 2.4.6
384
+ rubygems_version: 2.4.5.1
385
385
  signing_key:
386
386
  specification_version: 4
387
387
  summary: Contains all shared code/dependencies of the fastlane.tools