hiptest-publisher 0.9.9 → 0.9.10

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: a733baff130f78a8a1695ca9e8e15380dda70da0
4
- data.tar.gz: 9fc7f0cdbac553dd37ca9f726f98731c18ac0646
3
+ metadata.gz: 449fc0a2a85042a5a223dae37cb318801c1162dd
4
+ data.tar.gz: 8b6c27a2f40ae364065661818aaebedc61fe0bec
5
5
  SHA512:
6
- metadata.gz: 2355912ebe0c855c052a0964ebf6d2a4a0f015522bf46a609943e1c586a5110f20f5eb285dfc2a46b4a2c7081741c181d6c9a134448e05e41cc797c35a635bf2
7
- data.tar.gz: a4f75d9273d04286526362fe1de6709b6cbac851d132102184958c86cd3ccb275e012a0095d5160aa30152740e2f80754dab97f8064c8bc4663f01bc57120a53
6
+ metadata.gz: a9c93a249cf80f42db7ee1f4556c3a17ae743af69ed1ef617ac967e2fef8fe9758bc45875a902da0f60cbab202ef5ca7231230830576ab2ee0a1eda3975af7ce
7
+ data.tar.gz: cfe9878afa02f73d00d84f5a32fb80dea93b7fb560645d92fca2a3d8f65c2402c0953cb1e37ee7a7954bf19a7dc5fcaaa0023816c0df0170384d181611975c0b
@@ -264,8 +264,16 @@ module Hiptest
264
264
  end
265
265
 
266
266
  def post_results
267
+ response = nil
267
268
  with_status_message "Posting #{@cli_options.push} to #{@cli_options.site}" do
268
- push_results(@cli_options)
269
+ response = push_results(@cli_options)
270
+ end
271
+ with_status_message "#{JSON.parse(response.body)['test_import'].size} imported tests" do
272
+ if @cli_options.verbose
273
+ JSON.parse(response.body)['test_import'].each do |imported_test|
274
+ with_status_message "Test '#{imported_test['name']}' imported" do end
275
+ end
276
+ end
269
277
  end
270
278
  rescue Exception => err
271
279
  reporter.dump_error(err)
@@ -1,4 +1,5 @@
1
1
  require 'colorize'
2
+ require 'json'
2
3
  require 'io/console'
3
4
  require 'open-uri'
4
5
  require 'openssl'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiptest-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiptest R&D
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2016-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize