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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 548d1300c7687e2c95aee2805131f3a6a50ae0fa
4
- data.tar.gz: 9006f9c42de7419e08672a0414ffc8dbac1fb80d
3
+ metadata.gz: 1b66fd4c2fdb84965697446ecf39d96018986b12
4
+ data.tar.gz: cee6ec72c80361ba742c6f7f6398737ccc17ad75
5
5
  SHA512:
6
- metadata.gz: 8b209fff927e63d315a015d1a878241125bfe96ca892550c5cfeb33aad8ffc91e06596dbb2875dfb7730b3a66dbe21f61fc29531bf3d286817a58aa69c9dea05
7
- data.tar.gz: 125a0ffe58609d7a33ebd41fb409a36e23bd499e976030a4ff7c7229332cdaf34550cb82d300db0e734228fca56273e9a081e7874645a730416569f4a64acfdb
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: ruby
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: 495c653a664ee0f8d94acd821498d39571bb9b19550f13e0283fafc74f1b254
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 you run `xbuild`
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
- puts "#{self.class}: #{message}" if verbose?
119
+ logger.log "#{self.class}: #{message}" if verbose?
111
120
  end
112
121
 
113
122
  def default_base_options
@@ -1,3 +1,3 @@
1
1
  module Xbuild
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,11 +1,12 @@
1
1
  require 'bundler/setup'
2
2
  Bundler.setup
3
3
 
4
- require 'xbuild'
5
4
  require 'byebug'
6
5
  require "codeclimate-test-reporter"
7
6
  CodeClimate::TestReporter.start
8
7
 
8
+ require 'xbuild'
9
+
9
10
  RSpec.configure do |config|
10
11
  # some (optional) config here
11
12
  end
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.1.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-07 00:00:00.000000000 Z
11
+ date: 2015-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler