fastlane-plugin-ensure_xcode_build_version 0.1.2 → 0.1.3

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: ac52af7cf5339364288feab4613e962de9bfd2a5
4
- data.tar.gz: d2df7701e63850ed46ff268f15f1f0eeab624e15
3
+ metadata.gz: bb2be19e2c96f8e1e9272c9464b0d7629108085d
4
+ data.tar.gz: 5b28e01f2bfa8d55f6091dc46df64ba1a01e62b4
5
5
  SHA512:
6
- metadata.gz: d18607906aaccd05b4a14b24c41099f0e24644835df19fae5929f9871f62eb82db95d4612f6448dd7f0ad346a25a0dfade9167c77ea68fa12a7eb4c0d4832640
7
- data.tar.gz: dc078f0dab3bea567f9d790cdb34e12627c41d9085eeb9951fe24bf57f7c8288e452eca4b1f61dc796418263fd7e633ca72e7f21a94f1566390d09d95e94aa7d
6
+ metadata.gz: 5b1a45a72a9d7e17b51fa470f9c066525fbf2d2876f572b8d40396ed23b23dc66ad945527c50db22a28eaed97ccf872a80d901c448c324db32089decdf9fa1ed
7
+ data.tar.gz: 1f78b0905e112a3416234f7072366e56c305a4f6c7a1aac1b9100d9f66f6eb71541b946031760d910c6bd7ddc1bdfc6388e86abdcbc8ca68141419aed870e250
@@ -2,13 +2,11 @@ module Fastlane
2
2
  module Actions
3
3
  class EnsureXcodeBuildVersionAction < Action
4
4
  def self.run(params)
5
+ Actions.verify_gem!('xcode-install')
5
6
  required_build_version = params[:build_version]
7
+ selected_build_version = sh("xcversion selected").match(/Build version (.*)$/)[1]
6
8
 
7
- selected_build_version = sh File.join(Fastlane::EnsureXcodeBuildVersion::ROOT, 'lib', 'assets', 'xcversion-safe.sh')
8
-
9
- versions_match = selected_build_version == "Build version #{required_build_version}"
10
-
11
- if versions_match
9
+ if selected_build_version == required_build_version
12
10
  UI.success("Selected Xcode Build version is correct: #{selected_build_version}")
13
11
  else
14
12
  UI.message("Selected Xcode Build version is not correct: #{selected_build_version}. You expected #{required_build_version}.")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module EnsureXcodeBuildVersion
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-ensure_xcode_build_version
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fumiya Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-12 00:00:00.000000000 Z
11
+ date: 2017-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry