bwoken 2.1.0.rc.1 → 2.1.0.rc.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7021eec4a99c5301936b6cb5893d2e41fa00deb4
4
- data.tar.gz: a6a3a84b251045a425e4486c7856ca3d7b026747
3
+ metadata.gz: 1ec9df87de909a7c75c84e09bac659fc6c123f81
4
+ data.tar.gz: e8d9e159fc2b9b72457df6d206ddd607af8be24e
5
5
  SHA512:
6
- metadata.gz: 4def4f4511ffb8225bff2cc8040ca1b2bf64267dc3312f2bd17994bd3bcf4872e192e5551ecf514fc57a97e20183da3d7f95f210fb8932e20eb5b713a4d745ea
7
- data.tar.gz: 9947c8409f697df25a11dac1d8eb609c6ebbf5c7967f41bbe9926e4d28473db0ffd22db8d481ffcda481b8ca65eef8bc9d147c9bfed8dfcb978034a474679710
6
+ metadata.gz: 7d16a347ac8c6fe8c90f48ed662649f51a11b13607ce35af942a107d23b8d6ad406d31af398267fa2e069994b0ba3f5a0b4251a66c504000b26f3a352dc418e3
7
+ data.tar.gz: 5290ceef413ddc67ab80bac90b128726118a0e2be8228dbf72ee879446ccc0ea602e3ec7dfb4b7e9180837f5a0cac54c5e0ff05707f05a40b6fd65a4b9bf576d
data/README.md CHANGED
@@ -104,6 +104,7 @@ Here's a list of all the switches that bwoken takes for the `test` command:
104
104
  $ bwoken test -h
105
105
  [...]
106
106
  --simulator Use simulator, even when an iDevice is connected
107
+ --device Use given device (name or id)
107
108
  --family Test only one device type, either ipad or iphone. Default is to test on both
108
109
  --scheme Specify a custom scheme
109
110
  --product-name Specify a custom product name (e.g. --product-name="My Product"). Default is the name of of the xcodeproj file
@@ -23,6 +23,7 @@ opts = Slop.parse :help => true do
23
23
  banner Bwoken::CLI::Test.help_banner
24
24
 
25
25
  on :simulator, 'Use simulator, even when an iDevice is connected', :default => false
26
+ on :device=, 'Use given device (name or id)', :default => nil
26
27
 
27
28
  on :family=, 'Test only one device type, either ipad or iphone. Default is to test on both',
28
29
  :match => /\A(?:ipad|iphone|all)\Z/i, :default => 'all'
@@ -110,6 +110,7 @@ BANNER
110
110
  s.focus = options[:focus]
111
111
  s.formatter = options[:formatter]
112
112
  s.simulator = options[:simulator]
113
+ s.device = options[:device]
113
114
  end.execute
114
115
  end
115
116
 
@@ -6,6 +6,7 @@ module Bwoken
6
6
  attr_accessor :focus
7
7
  attr_accessor :formatter
8
8
  attr_accessor :app_dir
9
+ attr_accessor :device
9
10
 
10
11
  alias_method :feature_names, :focus
11
12
 
@@ -28,6 +29,7 @@ module Bwoken
28
29
  s.device_family = device_family
29
30
  s.formatter = formatter
30
31
  s.app_dir = app_dir
32
+ s.device = device
31
33
  end
32
34
  end
33
35
  end
@@ -17,6 +17,7 @@ module Bwoken
17
17
  attr_accessor :device_family
18
18
  attr_accessor :formatter
19
19
  attr_accessor :simulator
20
+ attr_accessor :device
20
21
  attr_accessor :app_dir
21
22
 
22
23
  def initialize
@@ -44,6 +45,10 @@ module Bwoken
44
45
  end
45
46
 
46
47
  def device_flag
48
+ if !device.nil?
49
+ return "-w \"#{device}\""
50
+ end
51
+
47
52
  simulator ? '' : "-w #{Bwoken::Device.uuid}"
48
53
  end
49
54
 
@@ -7,6 +7,7 @@ module Bwoken
7
7
  attr_accessor :focus
8
8
  attr_accessor :formatter
9
9
  attr_accessor :simulator
10
+ attr_accessor :device
10
11
  attr_accessor :app_dir
11
12
 
12
13
  alias_method :feature_names, :focus
@@ -39,6 +40,7 @@ module Bwoken
39
40
  sr.focus = focus
40
41
  sr.formatter = formatter
41
42
  sr.simulator = simulator
43
+ sr.device = device
42
44
  sr.app_dir = app_dir
43
45
  end
44
46
  end
@@ -60,6 +62,7 @@ module Bwoken
60
62
  dr.focus = focus
61
63
  dr.formatter = formatter
62
64
  dr.app_dir = app_dir
65
+ dr.device = device
63
66
  end
64
67
  end
65
68
 
@@ -7,6 +7,7 @@ module Bwoken
7
7
  attr_accessor :focus
8
8
  attr_accessor :formatter
9
9
  attr_accessor :simulator
10
+ attr_accessor :device
10
11
  attr_accessor :app_dir
11
12
  attr_accessor :device_family
12
13
 
@@ -28,6 +29,7 @@ module Bwoken
28
29
  s.device_family = device_family
29
30
  s.formatter = formatter
30
31
  s.simulator = simulator
32
+ s.device = device
31
33
  s.app_dir = app_dir
32
34
  end
33
35
  end
@@ -1,3 +1,3 @@
1
1
  module Bwoken
2
- VERSION = "2.1.0.rc.1" unless defined?(::Bwoken::VERSION)
2
+ VERSION = "2.1.0.rc.2" 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.1.0.rc.1
4
+ version: 2.1.0.rc.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Grzesiak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-26 00:00:00.000000000 Z
11
+ date: 2014-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script-source