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 +4 -4
- data/README.md +7 -3
- data/lib/bwoken.rb +2 -2
- data/lib/bwoken/build.rb +5 -14
- data/lib/bwoken/cli.rb +2 -1
- data/lib/bwoken/cli/test.rb +2 -0
- data/lib/bwoken/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a38167f29c7551afec9e43b771d53ffcad16ee8
|
4
|
+
data.tar.gz: 8649f03fc6df7205888962ddfccd467046e51499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
168
|
+
<pre><code>$ echo '2.1.0' > .ruby-version
|
165
169
|
$ echo 'my_project' > .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.
|
181
|
+
<pre><code>$ echo "gem 'bwoken', '2.0.0.beta.3'" >> 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
|
|
data/lib/bwoken.rb
CHANGED
data/lib/bwoken/build.rb
CHANGED
@@ -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 =
|
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|
|
data/lib/bwoken/cli.rb
CHANGED
@@ -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
|
data/lib/bwoken/cli/test.rb
CHANGED
@@ -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
|
|
data/lib/bwoken/version.rb
CHANGED
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
|
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
|
+
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:
|
179
|
+
version: '0'
|
180
180
|
requirements: []
|
181
181
|
rubyforge_project:
|
182
|
-
rubygems_version: 2.0.
|
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;
|