cider_ci-support 1.0.0.pre.beta.1 → 1.0.0.pre.beta.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b50e590d891f75d0c55a04ee365ef13266e706a
4
- data.tar.gz: 5dea49bad229a102100445f1671d30b7f809dd62
3
+ metadata.gz: 4a34b6f0b4b99b7a5e12f2e6b48a71ebfdb8bd58
4
+ data.tar.gz: 2afc2fa2fc2edd6a45c4f05da5654bf313641921
5
5
  SHA512:
6
- metadata.gz: 19f72b5d26d57343d3adccba6e5216be4a8eebf4437124eac87a16b00db20fbe4ee944f9625fce83731e692c308875166b34b2e8bdec3cd4e5173f453619deea
7
- data.tar.gz: 16ecf09f9165934f2ee986244a253bff38946051e9ff0a68697121d82b86aa2b84371c28b1c2484e36d6008e93f86e3f1407f0ac4a530408b9b5244cd6bec5ef
6
+ metadata.gz: bc29eca73106ae5335c2496cb32b2620c1f0778197545478466cd79f71a37125b9cf2f1f180183d4c167b59d18cb538bf70a88e44c8b2abfcba73975fe8e6621
7
+ data.tar.gz: b4935d76a6db7f7b69c5ed8fd6017ec61fa8aaab041a20a34ba3b739240a7feac4d3044d816ee82954883156e8c36e00168f63229387dad9984d757b2d569e93
@@ -44,13 +44,12 @@ end
44
44
  def get_and_convert_resultset_attachments execution, thread_pool_size
45
45
  print "download_resultset_attachments"; STDOUT.flush
46
46
  pool = Thread.pool thread_pool_size
47
-
48
- execution.relation('tasks').get("state" => "success").collection\
47
+ execution.relation('tasks').get("state" => "passed").collection\
49
48
  .map do |task_relation|
50
49
  Thread.future pool do
51
50
  print "."; STDOUT.flush
52
51
  task_relation.get().relation('trials') \
53
- .get("state" => "success").collection.map(&:get).map do |trial|
52
+ .get("state" => "passed").collection.map(&:get).map do |trial|
54
53
  print "."; STDOUT.flush
55
54
  trial.relation('trial-attachments') \
56
55
  .get.collection.map do |tar|
@@ -71,6 +70,26 @@ def get_and_convert_resultset_attachments execution, thread_pool_size
71
70
  end
72
71
 
73
72
 
73
+ ###############################################################################
74
+ # Upload
75
+ ###############################################################################
76
+
77
+ def upload_as_tree_attachments execution
78
+ print "upload_as_tree_attachments"; STDOUT.flush
79
+ upload_relation= execution.relation("tree-attachments").get() \
80
+ .relation("data-stream")
81
+ Dir.glob("coverage/**/*").each do |filename|
82
+ if content_type= MIME::Types.of(filename).first.content_type rescue nil
83
+ payload= Faraday::UploadIO.new(filename, content_type)
84
+ upload_relation.put({"path" => filename},
85
+ File.open(filename, "rb").read,
86
+ {"content-type" => content_type})
87
+ print "*"; STDOUT.flush
88
+ end
89
+ end
90
+ puts ""
91
+ end
92
+
74
93
 
75
94
  ###############################################################################
76
95
  # Simplev cov
@@ -173,21 +192,6 @@ def assert_correct_tree_id execution
173
192
  end
174
193
  end
175
194
 
176
- def upload_as_tree_attachments execution
177
- print "upload_as_tree_attachments"; STDOUT.flush
178
- upload_relation= execution.relation("tree-attachments").get().relation("data-stream")
179
- Dir.glob("coverage/**/*").each do |filename|
180
- if content_type= MIME::Types.of(filename).first.content_type rescue nil
181
- payload= Faraday::UploadIO.new(filename, content_type)
182
- upload_relation.put({"path" => filename},
183
- File.open(filename, "rb").read,
184
- {"content-type" => content_type})
185
- print "*"; STDOUT.flush
186
- end
187
- end
188
- puts ""
189
- end
190
-
191
195
  def main
192
196
  options = OpenStruct.new
193
197
  options.thread_pool_size= 50
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_runtime_dependency 'mime-types'
25
25
  spec.add_runtime_dependency 'thread', '= 0.1.4'
26
26
  spec.add_runtime_dependency 'simplecov', '~> 0.9'
27
- spec.add_runtime_dependency 'json_roa-client', "= 1.0.0.pre.beta.0"
27
+ spec.add_runtime_dependency 'json_roa-client', "= 1.0.0.pre.beta.1"
28
28
  end
@@ -1,5 +1,5 @@
1
1
  module Cider_CI
2
2
  module Support
3
- VERSION = "1.0.0-beta.1"
3
+ VERSION = "1.0.0-beta.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cider_ci-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.1
4
+ version: 1.0.0.pre.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Schank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-02 00:00:00.000000000 Z
11
+ date: 2014-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 1.0.0.pre.beta.0
89
+ version: 1.0.0.pre.beta.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 1.0.0.pre.beta.0
96
+ version: 1.0.0.pre.beta.1
97
97
  description: ''
98
98
  email:
99
99
  - DrTom@schank.ch