cuesmash 0.4.1 → 0.5.0
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 +4 -4
- data/.cuesmash.yml +2 -2
- data/Gemfile.lock +6 -4
- data/cuesmash.gemspec +1 -1
- data/lib/cuesmash/ios_compiler.rb +3 -2
- data/lib/cuesmash/start.rb +10 -9
- data/spec/test.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5461fca2c43c75253de649517c2223f7a23923cc
|
4
|
+
data.tar.gz: 75213b4e828337fdfbf552ae3a437a2f618bcc11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38be4d3a423fe30bce40269cc9afef122c40b6afcd9c135244b7825137b9e89b046ee163aa0e5d5d4e046d3b8ac94dec9a5be761eb244ee1752ba4494b02a811
|
7
|
+
data.tar.gz: 4914d7c7f0d77f54eb5942001773bfe879f2a86298888b367bc354296f9370aad54b435885c50022617facd3615d4e39d9dc3b7c9459705db6ae466f5c12b2a6
|
data/.cuesmash.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cuesmash (0.
|
4
|
+
cuesmash (0.5.0)
|
5
5
|
rest-client (~> 1.7.2)
|
6
6
|
thor (>= 0.19.1)
|
7
7
|
xcpretty (>= 0.1.10)
|
@@ -36,7 +36,7 @@ GEM
|
|
36
36
|
rb-inotify (>= 0.9)
|
37
37
|
lumberjack (1.0.9)
|
38
38
|
method_source (0.8.2)
|
39
|
-
mime-types (2.6.
|
39
|
+
mime-types (2.6.2)
|
40
40
|
netrc (0.10.3)
|
41
41
|
pry (0.10.1)
|
42
42
|
coderay (~> 1.1.0)
|
@@ -49,6 +49,7 @@ GEM
|
|
49
49
|
rest-client (1.7.3)
|
50
50
|
mime-types (>= 1.16, < 3.0)
|
51
51
|
netrc (~> 0.7)
|
52
|
+
rouge (1.10.1)
|
52
53
|
rspec (3.3.0)
|
53
54
|
rspec-core (~> 3.3.0)
|
54
55
|
rspec-expectations (~> 3.3.0)
|
@@ -71,7 +72,8 @@ GEM
|
|
71
72
|
thor (0.19.1)
|
72
73
|
timers (4.0.1)
|
73
74
|
hitimes
|
74
|
-
xcpretty (0.1
|
75
|
+
xcpretty (0.2.1)
|
76
|
+
rouge (~> 1.8)
|
75
77
|
|
76
78
|
PLATFORMS
|
77
79
|
ruby
|
@@ -87,4 +89,4 @@ DEPENDENCIES
|
|
87
89
|
simplecov (~> 0.10.0)
|
88
90
|
|
89
91
|
BUNDLED WITH
|
90
|
-
1.
|
92
|
+
1.11.2
|
data/cuesmash.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "cuesmash"
|
7
|
-
spec.version = "0.
|
7
|
+
spec.version = "0.5.0"
|
8
8
|
spec.authors = ["Alex Fish", "Jarod McBride", "Tiago Castro"]
|
9
9
|
spec.email = ["fish@ustwo.co.uk", "jarod@ustwo.com", "castro@ustwo.com"]
|
10
10
|
spec.description = "Appium project manager"
|
@@ -11,11 +11,12 @@ module Cuesmash
|
|
11
11
|
attr_accessor :tmp_dir
|
12
12
|
attr_accessor :build_configuration
|
13
13
|
|
14
|
-
def initialize(scheme:, tmp_dir:, build_configuration:, device: nil)
|
14
|
+
def initialize(scheme:, tmp_dir:, build_configuration:, device: nil, device_name: nil)
|
15
15
|
@scheme = scheme
|
16
16
|
@tmp_dir = tmp_dir
|
17
17
|
@build_configuration = build_configuration
|
18
18
|
@device = device
|
19
|
+
@device_name = device_name
|
19
20
|
end
|
20
21
|
|
21
22
|
#
|
@@ -31,7 +32,7 @@ module Cuesmash
|
|
31
32
|
xcode_command << "-configuration #{@build_configuration} "
|
32
33
|
xcode_command << "OBJROOT=#{@tmp_dir.shellescape} "
|
33
34
|
xcode_command << "SYMROOT=#{@tmp_dir.shellescape} "
|
34
|
-
xcode_command <<
|
35
|
+
xcode_command << "-destination 'platform=iOS Simulator,name=#{@device_name}' " if @device.nil?
|
35
36
|
xcode_command << 'build '
|
36
37
|
xcode_command << '| bundle exec xcpretty -c'
|
37
38
|
|
data/lib/cuesmash/start.rb
CHANGED
@@ -67,13 +67,13 @@ module Cuesmash
|
|
67
67
|
if @config['platform'] == 'iOS'
|
68
68
|
# enumerate over each device / OS combination and run the tests.
|
69
69
|
@config['devices'].each do |device, oses|
|
70
|
-
oses.each do |
|
70
|
+
oses.each do |device_name, ios_udid|
|
71
71
|
setup_ios(device: ios_udid)
|
72
72
|
case
|
73
73
|
when ios_udid.nil?
|
74
|
-
say "\n============================\ntesting iOS #{
|
74
|
+
say "\n============================\ntesting iOS #{device_name} on #{device}", :green
|
75
75
|
Cuesmash::Command.execute(device: device,
|
76
|
-
|
76
|
+
device_name: device_name,
|
77
77
|
scheme: options[:scheme],
|
78
78
|
tags: options[:tags],
|
79
79
|
debug: options[:debug],
|
@@ -82,9 +82,9 @@ module Cuesmash
|
|
82
82
|
quiet: options[:quiet],
|
83
83
|
timeout: @config['default']['test_timeout'].to_s)
|
84
84
|
else
|
85
|
-
say "\n============================\ntesting iOS #{
|
85
|
+
say "\n============================\ntesting iOS #{device_name} on #{device}", :green
|
86
86
|
Cuesmash::Command.execute(device: device,
|
87
|
-
|
87
|
+
device_name: device_name,
|
88
88
|
scheme: options[:scheme],
|
89
89
|
tags: options[:tags],
|
90
90
|
debug: options[:debug],
|
@@ -201,12 +201,13 @@ module Cuesmash
|
|
201
201
|
build_configuration: @config['build_configuration'],
|
202
202
|
app_name: @config['app_name'],
|
203
203
|
device: device)
|
204
|
-
|
205
204
|
# Compile the project
|
205
|
+
|
206
206
|
compiler = Cuesmash::IosCompiler.new(scheme: options[:scheme].join(' '),
|
207
207
|
tmp_dir: @app.tmp_dir,
|
208
208
|
build_configuration: @config['build_configuration'],
|
209
|
-
device: device
|
209
|
+
device: device,
|
210
|
+
device_name: @config['default']['device_name'])
|
210
211
|
compiler.compile
|
211
212
|
|
212
213
|
ios_appium_text
|
@@ -232,8 +233,8 @@ module Cuesmash
|
|
232
233
|
#
|
233
234
|
def ios_appium_text
|
234
235
|
appium = Cuesmash::AppiumText.new(platform_name: 'iOS',
|
235
|
-
device_name: @config['default']['
|
236
|
-
platform_version: @config['default']['
|
236
|
+
device_name: @config['default']['device_name'],
|
237
|
+
platform_version: @config['default']['platform_version'].to_s,
|
237
238
|
app: @app.app_path,
|
238
239
|
new_command_timeout: @config['default']['test_timeout'].to_s,
|
239
240
|
udid: @config['default']['udid'])
|
data/spec/test.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"url_preference":"10.1.
|
1
|
+
{"url_preference":"10.1.20.64","port_preference":"4567"}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuesmash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Fish
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|