xbuild 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/README.md +4 -1
- data/lib/xbuild/runner.rb +11 -2
- data/lib/xbuild/version.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b66fd4c2fdb84965697446ecf39d96018986b12
|
4
|
+
data.tar.gz: cee6ec72c80361ba742c6f7f6398737ccc17ad75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 445b5e875bbfcc4b07dedee639bd53d7f7148d7513787d1e699e13292c4fc8a68cd9f047bf158db8c2cde3b5875c3b02eadb50677655bbeb5613e75ff0b7c26f
|
7
|
+
data.tar.gz: 9b4cec9f30b58c3ce95b662d18384364f4099130bd15bb241e45db6697eb13b1514c6a2c7ceace74027ee1002742b24f89ad587bbb1c1ce6c03b8d6b2b9f28d7
|
data/.travis.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
os:
|
2
2
|
- osx
|
3
|
-
language:
|
3
|
+
language: objective-c
|
4
4
|
cache: bundler
|
5
5
|
rvm:
|
6
6
|
# OS X 10.9.5-10.10.0 (2.0.0-p481)
|
@@ -20,4 +20,4 @@ script: bundle exec rspec spec
|
|
20
20
|
|
21
21
|
addons:
|
22
22
|
code_climate:
|
23
|
-
repo_token:
|
23
|
+
repo_token: 7495c653a664ee0f8d94acd821498d39571bb9b19550f13e0283fafc74f1b254
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# XBuild
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/xbuild.svg)](http://badge.fury.io/rb/xbuild)
|
3
4
|
[![CI Status](https://travis-ci.org/guidomb/xbuild.svg?branch=master)](https://travis-ci.org/guidomb/xbuild)
|
4
5
|
[![Code Climate](https://codeclimate.com/github/guidomb/xbuild/badges/gpa.svg)](https://codeclimate.com/github/guidomb/xbuild)
|
5
6
|
[![Test Coverage](https://codeclimate.com/github/guidomb/xbuild/badges/coverage.svg)](https://codeclimate.com/github/guidomb/xbuild)
|
@@ -23,6 +24,8 @@ Or install it yourself as:
|
|
23
24
|
|
24
25
|
$ gem install xbuild
|
25
26
|
|
27
|
+
It is recommended to install [xcpretty](https://github.com/supermarin/xcpretty#usage) to prettify `xcodebuild`'s output.
|
28
|
+
|
26
29
|
## Usage
|
27
30
|
|
28
31
|
xbuild [OPTIONS] ACTION [WORKSPACE] [SCHEME]
|
@@ -40,7 +43,7 @@ Or install it yourself as:
|
|
40
43
|
-h, --help print help
|
41
44
|
|
42
45
|
|
43
|
-
You can have a `.xbuild.yml` on the current working directory where
|
46
|
+
You can have a `.xbuild.yml` on the current working directory where `xbuild`
|
44
47
|
command is run. In this file you can configure the options, workspace and scheme. Here
|
45
48
|
is an example:
|
46
49
|
|
data/lib/xbuild/runner.rb
CHANGED
@@ -8,6 +8,14 @@ module XBuild
|
|
8
8
|
|
9
9
|
end
|
10
10
|
|
11
|
+
class StdOutLogger
|
12
|
+
|
13
|
+
def log(message)
|
14
|
+
puts message
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
11
19
|
class Runner
|
12
20
|
|
13
21
|
ACTIONS = %w(
|
@@ -25,7 +33,7 @@ module XBuild
|
|
25
33
|
}
|
26
34
|
}
|
27
35
|
|
28
|
-
attr_reader :workspace, :scheme, :command_executor, :action_arguments
|
36
|
+
attr_reader :workspace, :scheme, :command_executor, :action_arguments, :logger
|
29
37
|
|
30
38
|
def initialize(workspace, scheme, opts = {})
|
31
39
|
@workspace = workspace
|
@@ -37,6 +45,7 @@ module XBuild
|
|
37
45
|
@xctool = opts[:xctool]
|
38
46
|
@action_arguments = opts[:action_arguments] || {}
|
39
47
|
@command_executor = opts[:command_executor] || SystemCommandExecutor.new
|
48
|
+
@logger = opts[:logger] || StdOutLogger.new
|
40
49
|
end
|
41
50
|
|
42
51
|
def xctool?
|
@@ -107,7 +116,7 @@ module XBuild
|
|
107
116
|
end
|
108
117
|
|
109
118
|
def log(message)
|
110
|
-
|
119
|
+
logger.log "#{self.class}: #{message}" if verbose?
|
111
120
|
end
|
112
121
|
|
113
122
|
def default_base_options
|
data/lib/xbuild/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xbuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guido Marucci Blas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|