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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb2be19e2c96f8e1e9272c9464b0d7629108085d
|
4
|
+
data.tar.gz: 5b28e01f2bfa8d55f6091dc46df64ba1a01e62b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b1a45a72a9d7e17b51fa470f9c066525fbf2d2876f572b8d40396ed23b23dc66ad945527c50db22a28eaed97ccf872a80d901c448c324db32089decdf9fa1ed
|
7
|
+
data.tar.gz: 1f78b0905e112a3416234f7072366e56c305a4f6c7a1aac1b9100d9f66f6eb71541b946031760d910c6bd7ddc1bdfc6388e86abdcbc8ca68141419aed870e250
|
data/lib/fastlane/plugin/ensure_xcode_build_version/actions/ensure_xcode_build_version_action.rb
CHANGED
@@ -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
|
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}.")
|
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.
|
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-
|
11
|
+
date: 2017-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|