hiptest-publisher 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiptest-publisher/cli_options_checker.rb +5 -3
- data/lib/hiptest-publisher/utils.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a381b154c461535ecc7d576b9a8ec51d79f8c1b3
|
4
|
+
data.tar.gz: d3d49e9f2b2afd0d50fa969311a22991552ecd41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 129e588aaa6ce5505ca5e9cb6c927dd324541f11a2994da1afefdddc2c08c32ae65a998e4968da745ee825851919cfeeb93f09d294b09fa9264c7c95006a7d42
|
7
|
+
data.tar.gz: b374547133e83f8c350657560a4bdef122e78a8c29bb427df83da6a84210ce63793e9c423507b05b38a93c38b2935e340ddd0fd664ee8836b9e0b9fae26e515d
|
@@ -61,13 +61,15 @@ module Hiptest
|
|
61
61
|
|
62
62
|
def check_push_file
|
63
63
|
if cli_options.push
|
64
|
-
|
64
|
+
agnostic_path = cli_options.push.gsub('\\', '/')
|
65
|
+
globbed_files = Dir.glob(agnostic_path)
|
66
|
+
|
65
67
|
if globbed_files.length == 0
|
66
68
|
raise CliOptionError, "Error with --push: the file \"#{cli_options.push}\" does not exist or is not readable"
|
67
69
|
elsif globbed_files.length == 1 && globbed_files == [cli_options.push]
|
68
|
-
if !File.readable?(
|
70
|
+
if !File.readable?(agnostic_path)
|
69
71
|
raise CliOptionError, "Error with --push: the file \"#{cli_options.push}\" does not exist or is not readable"
|
70
|
-
elsif !File.file?(
|
72
|
+
elsif !File.file?(agnostic_path)
|
71
73
|
raise CliOptionError, "Error with --push: the file \"#{cli_options.push}\" is not a regular file"
|
72
74
|
end
|
73
75
|
end
|
@@ -104,7 +104,7 @@ def push_results(options)
|
|
104
104
|
use_ssl = (url.scheme == 'https')
|
105
105
|
uploaded = {}
|
106
106
|
|
107
|
-
Dir.glob(options.push).each_with_index do |filename, index|
|
107
|
+
Dir.glob(options.push.gsub('\\', '/')).each_with_index do |filename, index|
|
108
108
|
uploaded["file-#{filename.normalize}"] = UploadIO.new(File.new(filename), "text", filename)
|
109
109
|
end
|
110
110
|
|
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.
|
4
|
+
version: 0.9.6
|
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-
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -577,7 +577,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
577
577
|
version: '0'
|
578
578
|
requirements: []
|
579
579
|
rubyforge_project:
|
580
|
-
rubygems_version: 2.4.
|
580
|
+
rubygems_version: 2.4.8
|
581
581
|
signing_key:
|
582
582
|
specification_version: 4
|
583
583
|
summary: Export your tests from Hiptest into executable tests.
|