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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64fb64cfd64a715d20a245bdd11dab76d43a4d80
4
- data.tar.gz: 4698fac6718292286666145a5d374ad9e3d93c06
3
+ metadata.gz: 5461fca2c43c75253de649517c2223f7a23923cc
4
+ data.tar.gz: 75213b4e828337fdfbf552ae3a437a2f618bcc11
5
5
  SHA512:
6
- metadata.gz: fda9f12a26e4f467fdc4fee22e384aa67c53e02be418cdb44da9113f0802f030e1388a2783146e7e33e7a5d2b07fe26dcb3eb755bc91967cda780493ff31c2d6
7
- data.tar.gz: b41ec3fc8e42f9ef94ed99062e1abe6a5e5145e22b31df294fd21ed129acc4bbe1b388024b06a01ed9ad85080a65b5de612581a7558368fd8ea26925ad4dd5d1
6
+ metadata.gz: 38be4d3a423fe30bce40269cc9afef122c40b6afcd9c135244b7825137b9e89b046ee163aa0e5d5d4e046d3b8ac94dec9a5be761eb244ee1752ba4494b02a811
7
+ data.tar.gz: 4914d7c7f0d77f54eb5942001773bfe879f2a86298888b367bc354296f9370aad54b435885c50022617facd3615d4e39d9dc3b7c9459705db6ae466f5c12b2a6
data/.cuesmash.yml CHANGED
@@ -21,8 +21,8 @@ devices:
21
21
  8.3:
22
22
 
23
23
  default:
24
- os: iPhone 6
25
- version: 8.3
24
+ device_name: iPhone 6
25
+ platform_version: 8.3
26
26
  test_timeout: 120
27
27
  udid: 'bd79098904d9b93a418ac821db8372ee7374cf82'
28
28
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cuesmash (0.4.1)
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.1)
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.10)
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.10.5
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.4.1"
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 << '-sdk iphonesimulator ' if @device.nil?
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
 
@@ -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 |os_number, ios_udid|
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 #{os_number} on #{device}", :green
74
+ say "\n============================\ntesting iOS #{device_name} on #{device}", :green
75
75
  Cuesmash::Command.execute(device: device,
76
- os: os_number,
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 #{os_number} on #{device}", :green
85
+ say "\n============================\ntesting iOS #{device_name} on #{device}", :green
86
86
  Cuesmash::Command.execute(device: device,
87
- os: os_number,
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']['os'],
236
- platform_version: @config['default']['version'].to_s,
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.19.106","port_preference":"4567"}
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.1
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: 2015-07-31 00:00:00.000000000 Z
13
+ date: 2016-02-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler