Ruby_AppThwack 0.0.4 → 0.0.5

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: 3b934375bc2139e16fe1f90f40f74b6e3ce34f13
4
- data.tar.gz: b8fef144661bf07adc8862d87efc9abcc22f4e9f
3
+ metadata.gz: bb3be23cfdfdb61928eec6f248d179dd2937f707
4
+ data.tar.gz: b8f082d121a01efc7d8200bbfadc90c824cc21fe
5
5
  SHA512:
6
- metadata.gz: 2821928c3c41364faefb55c5eef8824aad539d89b6f13e11efc2bbc40c625b120b8bce7f52ecd66f4494dcc7fad76d39e025e9737c8a4cac4c06c4a254fa4ba2
7
- data.tar.gz: b9c9daae0c9ce609ed82ba4a9156abbb5f85afb0623bf1ca1f89c0b95cceaa27df6d3b8902d40b4d900d716ac539a328efacff803333916c34d0881d2c0d22d7
6
+ metadata.gz: 82b4c85921e4c0c3b9e7c67a635739fba676ad04fe79700f02cf36f086ba897b7f31c784142be4936d081ed0b83e43f609b1c78c5c9e27e830e0c2ada6d04a8d
7
+ data.tar.gz: 3fbb37a3afe86ffe64ba939bd9661c295637e362c5ee8ee921d3f9f908665efaf8fd93b7c34dc0242a7c4d3cf7455af7132935e9ba532bbe44e802615e93e85e
Binary file
@@ -68,13 +68,15 @@ command :run do |c|
68
68
  sleep 5
69
69
 
70
70
  print "\n"
71
-
71
+
72
72
  # wait for test to terminate
73
73
  until not AppThwack::API.test_running? options.proj_id, options.run_id or not options.wait
74
74
  print "."
75
75
  sleep 30
76
76
  end
77
77
 
78
+ print "\n"
79
+
78
80
  # download the results and we should have waited
79
81
  if options.downloadresults and options.wait
80
82
  zip = AppThwack::API.download_results options.proj_id, options.run_id
@@ -36,27 +36,28 @@ module AppThwack::Reports
36
36
  puts device
37
37
 
38
38
  f = File.join(reports, f, intermediate_folders, 'raw_calabash_json_output.instrtxt')
39
+ if File.exists? f
40
+ features = []
39
41
 
40
- features = []
42
+ # now we just add the device prefix to each feature name to make it unique
43
+ File.open(f, 'r') do |io|
41
44
 
42
- # now we just add the device prefix to each feature name to make it unique
43
- File.open(f, 'r') do |io|
45
+ features = JSON.load(io)
44
46
 
45
- features = JSON.load(io)
46
-
47
- if not features.nil?
48
-
49
- features.each_index do |i|
50
- # append the device name to the feature name
51
- features[i]['name'] = "#{features[i]['name']} on #{device}"
47
+ if not features.nil?
48
+
49
+ features.each_index do |i|
50
+ # append the device name to the feature name
51
+ features[i]['name'] = "#{features[i]['name']} on #{device}"
52
+ end
52
53
  end
53
- end
54
54
 
55
- Dir.mkdir dst if not Dir.exists? dst
55
+ Dir.mkdir dst if not Dir.exists? dst
56
56
 
57
- # now write out the new file
58
- File.open(File.join(dst, "#{Time.now.to_i}_#{folder_name}.json"), 'w') do |io|
59
- JSON.dump(features, io) unless features.nil?
57
+ # now write out the new file
58
+ File.open(File.join(dst, "#{Time.now.to_i}_#{folder_name}.json"), 'w') do |io|
59
+ JSON.dump(features, io) unless features.nil?
60
+ end
60
61
  end
61
62
  end
62
63
  end
@@ -1,5 +1,5 @@
1
1
  module AppThwack
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
4
4
 
5
5
  require_relative 'ruby_appthwack/reports.rb'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Ruby_AppThwack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-21 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -138,7 +138,7 @@ files:
138
138
  - ./lib/ruby_appthwack.rb
139
139
  - ./LICENSE
140
140
  - ./README.md
141
- - ./Ruby_AppThwack-0.0.2.gem
141
+ - ./Ruby_AppThwack-0.0.4.gem
142
142
  - ./ruby_appthwack.gemspec
143
143
  - bin/appthwack
144
144
  homepage: https://github.com/samstewart/ruby_appthwack
Binary file