bwoken 2.0.0.beta.3 → 2.0.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: f20acdb046319b97d2c227dfd6e1c0496ac3d177
4
- data.tar.gz: 55aa75d281d44b035bbd333986e6c6060fb4ce3f
3
+ metadata.gz: 8a38167f29c7551afec9e43b771d53ffcad16ee8
4
+ data.tar.gz: 8649f03fc6df7205888962ddfccd467046e51499
5
5
  SHA512:
6
- metadata.gz: 86afb7c3a9b5ec7992db6aa162ae886514113d157ced97b26d5bb85457dfae17ce1c78929fc97d899676acdf29fe4df3986f64666f17b8612d8c3092d77ffe2b
7
- data.tar.gz: bfd6d38cdc7fb45e04b4d82f9f84705e454040bc2d840da1a8a1639e475fe8e9c58e02b7446265320a9f77767b4bedd72e4cfcb8dd1993b35890476dfa0c7162
6
+ metadata.gz: bb60d277d799a81324381e4225722a00e87c86d184dd291545144b649deda33b7af2f0007cd8ff9c999a3bd7a41db6855b060d35ef86ecfd8a96da84b1fb384e
7
+ data.tar.gz: 020d85ad0a7f97a783a7a339a62e4590416d2c49bf68bee0cb249fa8ac3c0abff95c3317e777de89cfde329bcb7b4ea4735dd4ec94a170b1e3f2a23342430e99
data/README.md CHANGED
@@ -112,6 +112,8 @@ $ bwoken test -h
112
112
  --focus Specify particular tests to run
113
113
  --clobber Remove any generated file
114
114
  --skip-build Do not build the iOS binary
115
+ --configuration The build configruation to use (e.g., --configuration=Release)
116
+ --sdk-version The SDK version to use (e.g., --sdk-version=6.1)
115
117
  --verbose Be verbose
116
118
  -h, --help Display this help message.
117
119
  </code></pre>
@@ -159,9 +161,11 @@ Install rvm via <a href="https://rvm.io/rvm/install/">the instructions</a>. Ensu
159
161
 
160
162
  ### Install
161
163
 
164
+ **NOTE:** Do **NOT** use `sudo` to install or run bwoken. It will almost definitely fail you.
165
+
162
166
  In the terminal, inside the directory of your project (e.g., you should see a <code>ProjectName.xcodeproj</code> file), create <code>.ruby-version</code> and <code>.ruby-gemset</code> files and trigger their use:
163
167
 
164
- <pre><code>$ echo '2.0.0' &gt; .ruby-version
168
+ <pre><code>$ echo '2.1.0' &gt; .ruby-version
165
169
  $ echo 'my_project' &gt; .ruby-gemset
166
170
  $ cd .
167
171
  </code></pre>
@@ -174,7 +178,7 @@ $ bundle init
174
178
 
175
179
  This will create a <code>Gemfile</code>. Add bwoken to it and bundle:
176
180
 
177
- <pre><code>$ echo "gem 'bwoken', '2.0.0.beta.1'" &gt;&gt; Gemfile
181
+ <pre><code>$ echo "gem 'bwoken', '2.0.0.beta.3'" &gt;&gt; Gemfile
178
182
  $ bundle
179
183
  </code></pre>
180
184
 
@@ -187,7 +191,7 @@ Now, you can start <a href="#usage">using it!</a>
187
191
 
188
192
  #### The Dirty Little Installation Method
189
193
 
190
- Technically, you can skip this entire Installation section and just run `sudo gem install bwoken && bwoken init`. This is listed here for completeness, but you really shouldn't install gems this way.
194
+ Technically, you can skip this entire Installation section and just run `sudo gem install bwoken && bwoken init`. This is listed here for completeness, but you really shouldn't install gems this way. This installation method will almost certainly not work with versions of OS X prior to Mavericks.
191
195
 
192
196
  ## Contributors
193
197
 
@@ -66,9 +66,9 @@ module Bwoken
66
66
  def workspace_or_project_flag
67
67
  ws = xcworkspace
68
68
  if ws && File.exists?(ws)
69
- "-workspace #{ws}"
69
+ "-workspace \"#{ws}\""
70
70
  else
71
- "-project #{xcodeproj}"
71
+ "-project \"#{xcodeproj}\""
72
72
  end
73
73
  end
74
74
 
@@ -34,6 +34,7 @@ module Bwoken
34
34
  attr_accessor :scheme
35
35
  attr_accessor :simulator
36
36
  attr_accessor :configuration
37
+ attr_accessor :sdk_version
37
38
  attr_accessor :verbose
38
39
 
39
40
  def initialize
@@ -50,7 +51,7 @@ module Bwoken
50
51
 
51
52
  def env_variables
52
53
  {
53
- 'BWOKEN_CONFIGURATION_BUILD_DIR' => self.class.configuration_build_dir(simulator)
54
+ 'BWOKEN_CONFIGURATION_BUILD_DIR' => %Q|"#{self.class.configuration_build_dir(simulator)}"|
54
55
  }
55
56
  end
56
57
 
@@ -67,8 +68,8 @@ module Bwoken
67
68
  #{Bwoken.workspace_or_project_flag} \
68
69
  #{scheme_string} \
69
70
  -configuration #{configuration} \
70
- -sdk #{sdk} \
71
- -xcconfig #{self.class.xcconfig} \
71
+ -sdk #{sdk}#{sdk_version} \
72
+ -xcconfig \"#{self.class.xcconfig}\" \
72
73
  #{variables_for_cli} \
73
74
  clean build"
74
75
  end
@@ -76,7 +77,7 @@ module Bwoken
76
77
  def compile
77
78
  formatter.before_build_start
78
79
 
79
- succeeded, out_string, err_string = RUBY_VERSION == '1.8.7' ? compile_18 : compile_19_plus
80
+ succeeded, out_string, err_string = compile_19_plus
80
81
 
81
82
  if succeeded
82
83
  formatter.build_successful out_string
@@ -86,16 +87,6 @@ module Bwoken
86
87
  end
87
88
  end
88
89
 
89
- def compile_18
90
- out_string, err_string = '', ''
91
- a, b, c = Open3.popen3(cmd) do |stdin, stdout, stderr|
92
- out_string = formatter.format_build stdout
93
- err_string = stderr.read
94
- end
95
-
96
- [a.to_s !~ /BUILD FAILED/, out_string, err_string]
97
- end
98
-
99
90
  def compile_19_plus
100
91
  ret = nil
101
92
  Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr|
@@ -34,8 +34,9 @@ opts = Slop.parse :help => true do
34
34
  on :focus=, 'Specify particular tests to run', :as => Array, :default => []
35
35
  on :clobber, 'Remove any generated file'
36
36
  on :'skip-build', 'Do not build the iOS binary'
37
- on :verbose, 'Be verbose'
38
37
  on :configuration=, 'The build configruation to use (e.g., --configuration=Release)', :default => 'Debug'
38
+ on :'sdk-version=', 'The SDK version to use (e.g., --sdk-version=6.1)'
39
+ on :verbose, 'Be verbose'
39
40
 
40
41
  run { ran_command = 'test' }
41
42
  end
@@ -50,6 +50,7 @@ BANNER
50
50
  # :integration-path - the base directory for all the integration files
51
51
  # :product-name - the name of the generated .app file if it is different from the name of the project/workspace
52
52
  # :configuration - typically "Debug" or "Release"
53
+ # :sdk-version - the version of the sdk to use when building
53
54
  def initialize opts
54
55
  opts = opts.to_hash if opts.is_a?(Slop)
55
56
  self.options = opts.to_hash.tap do |o|
@@ -78,6 +79,7 @@ BANNER
78
79
  b.scheme = options[:scheme] if options[:scheme]
79
80
  b.simulator = options[:simulator]
80
81
  b.configuration = options[:configuration]
82
+ b.sdk_version = options[:'sdk-version']
81
83
  end.compile
82
84
  end
83
85
 
@@ -1,3 +1,3 @@
1
1
  module Bwoken
2
- VERSION = "2.0.0.beta.3" unless defined?(::Bwoken::VERSION)
2
+ VERSION = "2.0.0" unless defined?(::Bwoken::VERSION)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bwoken
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta.3
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Grzesiak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-19 00:00:00.000000000 Z
11
+ date: 2013-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script-source
@@ -174,12 +174,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  requirements:
177
- - - '>'
177
+ - - '>='
178
178
  - !ruby/object:Gem::Version
179
- version: 1.3.1
179
+ version: '0'
180
180
  requirements: []
181
181
  rubyforge_project:
182
- rubygems_version: 2.0.6
182
+ rubygems_version: 2.0.3
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: Runs your UIAutomation tests from the command line for both iPhone and iPad;