fastlane-plugin-ensure_xcode_build_version 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -0
- data/lib/assets/xcversion-safe.sh +15 -0
- data/lib/fastlane/plugin/ensure_xcode_build_version/actions/ensure_xcode_build_version_action.rb +1 -1
- data/lib/fastlane/plugin/ensure_xcode_build_version/version.rb +1 -1
- data/lib/fastlane/plugin/ensure_xcode_build_version.rb +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55efb4372bb60c14c721c207b5648f20b2e230db
|
4
|
+
data.tar.gz: b583680937087b6457cd8cd5eb778608cffea9ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43169356f89a424391a3a358dd306edd479ede0f3d16b321f792623ddd38c8ef9de1c0808402aa9c5daf19c55d1b67daf78c6576ed6af33ed6153d71dce09de0
|
7
|
+
data.tar.gz: 01a54aa9a9396bc22354b6e55090192fb2250693d680230ff0553a13fae7352ac547a476138df47006e619396019264a7e13705fcb013acb19794d39eaf8a35f
|
data/README.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-ensure_xcode_build_version)
|
4
4
|
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/fastlane-plugin-ensure_xcode_build_version.svg)](https://badge.fury.io/rb/fastlane-plugin-ensure_xcode_build_version)
|
6
|
+
[![CircleCI](https://circleci.com/gh/nafu/fastlane-plugin-ensure_xcode_build_version.svg?style=svg)](https://circleci.com/gh/nafu/fastlane-plugin-ensure_xcode_build_version)
|
7
|
+
[![Code Climate](https://codeclimate.com/github/nafu/fastlane-plugin-ensure_xcode_build_version/badges/gpa.svg)](https://codeclimate.com/github/nafu/fastlane-plugin-ensure_xcode_build_version)
|
8
|
+
[![Coverage Status](https://coveralls.io/repos/github/nafu/fastlane-plugin-ensure_xcode_build_version/badge.svg?branch=master)](https://coveralls.io/github/nafu/fastlane-plugin-ensure_xcode_build_version?branch=master)
|
9
|
+
[![Dependency Status](https://gemnasium.com/badges/github.com/nafu/fastlane-plugin-ensure_xcode_build_version.svg)](https://gemnasium.com/github.com/nafu/fastlane-plugin-ensure_xcode_build_version)
|
10
|
+
[![Inline docs](http://inch-ci.org/github/nafu/fastlane-plugin-ensure_xcode_build_version.svg?branch=master)](http://inch-ci.org/github/nafu/fastlane-plugin-ensure_xcode_build_version)
|
11
|
+
|
5
12
|
## Getting Started
|
6
13
|
|
7
14
|
This project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-ensure_xcode_build_version`, add it to your project by running:
|
@@ -16,6 +23,11 @@ Ensure the selected Xcode Build version with xcode-select matches a value.
|
|
16
23
|
|
17
24
|
If building your app requires a specific version of Xcode, you can invoke this command before using gym. For example, to ensure that a beta version is not accidentally selected to build, which would make uploading to TestFlight fail."
|
18
25
|
|
26
|
+
```ruby
|
27
|
+
# If you want to make sure that you use Xcode 8 GM
|
28
|
+
ensure_xcode_build_version(build_version: "8A218a")
|
29
|
+
```
|
30
|
+
|
19
31
|
## Example
|
20
32
|
|
21
33
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Since Xcode has a dependency to 2 external gems: sqlite and CFPropertyList
|
2
|
+
# More information https://github.com/fastlane/fastlane/issues/6495
|
3
|
+
# We have to unset those variables for rbenv, rvm and when the user uses bundler
|
4
|
+
unset RUBYLIB
|
5
|
+
unset RUBYOPT
|
6
|
+
unset BUNDLE_BIN_PATH
|
7
|
+
unset _ORIGINAL_GEM_PATH
|
8
|
+
unset BUNDLE_GEMFILE
|
9
|
+
# Even if we do not use rbenv in some environments such as CircleCI,
|
10
|
+
# We also need to unset GEM_HOME and GEM_PATH explicitly.
|
11
|
+
# More information https://github.com/fastlane/fastlane/issues/6277
|
12
|
+
unset GEM_HOME
|
13
|
+
unset GEM_PATH
|
14
|
+
|
15
|
+
xcversion selected | tail -1 | xargs echo -n
|
data/lib/fastlane/plugin/ensure_xcode_build_version/actions/ensure_xcode_build_version_action.rb
CHANGED
@@ -4,7 +4,7 @@ module Fastlane
|
|
4
4
|
def self.run(params)
|
5
5
|
required_build_version = params[:build_version]
|
6
6
|
|
7
|
-
selected_build_version = sh
|
7
|
+
selected_build_version = sh File.join(Fastlane::EnsureXcodeBuildVersion::ROOT, 'lib', 'assets', 'xcversion-safe.sh')
|
8
8
|
|
9
9
|
versions_match = selected_build_version == "Build version #{required_build_version}"
|
10
10
|
|
@@ -2,6 +2,7 @@ require 'fastlane/plugin/ensure_xcode_build_version/version'
|
|
2
2
|
|
3
3
|
module Fastlane
|
4
4
|
module EnsureXcodeBuildVersion
|
5
|
+
ROOT = Pathname.new(File.expand_path('../../../..', __FILE__))
|
5
6
|
# Return all .rb files inside the "actions" and "helper" directory
|
6
7
|
def self.all_classes
|
7
8
|
Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fumiya Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 1.102.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coveralls
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description:
|
98
112
|
email: nakamurafumiya003@gmail.com
|
99
113
|
executables: []
|
@@ -102,6 +116,7 @@ extra_rdoc_files: []
|
|
102
116
|
files:
|
103
117
|
- LICENSE
|
104
118
|
- README.md
|
119
|
+
- lib/assets/xcversion-safe.sh
|
105
120
|
- lib/fastlane/plugin/ensure_xcode_build_version.rb
|
106
121
|
- lib/fastlane/plugin/ensure_xcode_build_version/actions/ensure_xcode_build_version_action.rb
|
107
122
|
- lib/fastlane/plugin/ensure_xcode_build_version/helper/ensure_xcode_build_version_helper.rb
|