shenzhen 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shenzhen (0.2.2)
4
+ shenzhen (0.2.4)
5
5
  commander (~> 4.1.2)
6
6
  faraday (~> 0.8.0)
7
7
  faraday_middleware (~> 0.8.7)
data/lib/shenzhen.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Shenzhen
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.4'
3
3
  end
4
4
 
5
5
  require 'shenzhen/agvtool'
@@ -104,8 +104,8 @@ command :build do |c|
104
104
  end
105
105
 
106
106
  def determine_configuration!
107
- configurations = @xcodebuild_info.build_configurations
108
- if configurations.include?("Debug")
107
+ configurations = @xcodebuild_info.build_configurations rescue []
108
+ if configurations.nil? or configurations.empty? or configurations.include?("Debug")
109
109
  @configuration = "Debug"
110
110
  elsif configurations.length == 1
111
111
  @configuration = configurations.first
@@ -1,5 +1,4 @@
1
1
  require 'ostruct'
2
- require 'shellwords'
3
2
 
4
3
  module Shenzhen::XcodeBuild
5
4
  class Info < OpenStruct; end
@@ -30,14 +29,14 @@ module Shenzhen::XcodeBuild
30
29
  class << self
31
30
  def info(*args)
32
31
  options = args.last.is_a?(Hash) ? args.pop : {}
33
- output = `xcodebuild -list #{Shellwords.join(args + args_from_options(options))} 2>&1`
32
+ output = `xcodebuild -list #{(args + args_from_options(options)).join(" ")} 2>&1`
34
33
  raise Error.new $1 if /^xcodebuild\: error\: (.+)$/ === output
35
34
  raise NilOutputError unless /\S/ === output
36
35
 
37
36
  lines = output.split(/\n/)
38
37
  info, group = {}, nil
39
38
 
40
- info[:project] = lines.shift.match(/\"(.+)\"\:/)[1]
39
+ info[:project] = lines.shift.match(/\"(.+)\"\:/)[1] rescue nil
41
40
 
42
41
  lines.each do |line|
43
42
  if /\:$/ === line
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shenzhen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-24 00:00:00.000000000 Z
12
+ date: 2012-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -127,6 +127,8 @@ files:
127
127
  - ./LICENSE
128
128
  - ./Rakefile
129
129
  - ./README.md
130
+ - ./shenzhen-0.2.2.gem
131
+ - ./shenzhen-0.2.3.gem
130
132
  - ./shenzhen.gemspec
131
133
  - bin/ipa
132
134
  homepage: http://github.com/mattt/shenzhen
@@ -143,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
145
  version: '0'
144
146
  segments:
145
147
  - 0
146
- hash: -365862781933133346
148
+ hash: 983525763622791177
147
149
  required_rubygems_version: !ruby/object:Gem::Requirement
148
150
  none: false
149
151
  requirements:
@@ -152,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
154
  version: '0'
153
155
  segments:
154
156
  - 0
155
- hash: -365862781933133346
157
+ hash: 983525763622791177
156
158
  requirements: []
157
159
  rubyforge_project:
158
160
  rubygems_version: 1.8.24