bwoken 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bwoken.rb +1 -1
- data/lib/bwoken/build.rb +4 -4
- data/lib/bwoken/device.rb +18 -6
- data/lib/bwoken/script.rb +3 -3
- data/lib/bwoken/version.rb +1 -1
- metadata +5 -5
data/lib/bwoken.rb
CHANGED
data/lib/bwoken/build.rb
CHANGED
@@ -21,17 +21,17 @@ module Bwoken
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def sdk
|
24
|
-
if Bwoken::Device.
|
25
|
-
'iphoneos'
|
26
|
-
else
|
24
|
+
if Bwoken::Device.should_use_simulator?
|
27
25
|
'iphonesimulator'
|
26
|
+
else
|
27
|
+
'iphoneos'
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
31
|
def configuration_build_dir
|
32
32
|
File.join(build_path, sdk)
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
def xcconfig
|
36
36
|
File.join(File.dirname(__FILE__), 'configs', 'bwoken.xcconfig')
|
37
37
|
end
|
data/lib/bwoken/device.rb
CHANGED
@@ -1,12 +1,24 @@
|
|
1
1
|
module Bwoken
|
2
2
|
class Device
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
class << self
|
4
|
+
|
5
|
+
def should_use_simulator?
|
6
|
+
want_simulator? || ! connected?
|
7
|
+
end
|
8
|
+
|
9
|
+
def want_simulator?
|
10
|
+
ENV['SIMULATOR'] && ENV['SIMULATOR'].downcase == 'true'
|
11
|
+
end
|
12
|
+
|
13
|
+
def connected?
|
14
|
+
self.uuid ? true : false
|
15
|
+
end
|
16
|
+
|
17
|
+
def uuid
|
18
|
+
ioreg = `ioreg -w 0 -rc IOUSBDevice -k SupportsIPhoneOS`
|
19
|
+
ioreg[/"USB Serial Number" = "([0-9a-z]+)"/] && $1
|
20
|
+
end
|
6
21
|
|
7
|
-
def self.uuid
|
8
|
-
ioreg = `ioreg -w 0 -rc IOUSBDevice -k SupportsIPhoneOS`
|
9
|
-
ioreg[/"USB Serial Number" = "([0-9a-z]+)"/] && $1
|
10
22
|
end
|
11
23
|
|
12
24
|
end
|
data/lib/bwoken/script.rb
CHANGED
data/lib/bwoken/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bwoken
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-03-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: coffee-script-source
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
segments:
|
148
148
|
- 0
|
149
|
-
hash:
|
149
|
+
hash: 1445511706226898183
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
none: false
|
152
152
|
requirements:
|
@@ -155,10 +155,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
segments:
|
157
157
|
- 0
|
158
|
-
hash:
|
158
|
+
hash: 1445511706226898183
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
|
-
rubygems_version: 1.8.
|
161
|
+
rubygems_version: 1.8.25
|
162
162
|
signing_key:
|
163
163
|
specification_version: 3
|
164
164
|
summary: Runs your UIAutomation tests from the command line for both iPhone and iPad;
|