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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9e228fe6ad2d7d881b36f26840b36913e85ea67
4
- data.tar.gz: ad6e0391043d4151aca6baa465c866f1b11cd391
3
+ metadata.gz: a381b154c461535ecc7d576b9a8ec51d79f8c1b3
4
+ data.tar.gz: d3d49e9f2b2afd0d50fa969311a22991552ecd41
5
5
  SHA512:
6
- metadata.gz: fdc24c2b0d4d1ea01805a449da06baa669baa3255b1ac3264a46e4473d5dccbbf77d2ffdb3b1c89f4dcb44f29fdb7f6fa8ac1ec7672f3418197a7abf7791ee87
7
- data.tar.gz: 94126113d32073c041da4d95258af402efd57b741850cf2ef9ff7d8d7929c706cb3b2f2b6ee4d1ef233c24e589eae34ec9b7968f41fd6b1086572c98308fb18d
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
- globbed_files = Dir.glob(cli_options.push)
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?(cli_options.push)
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?(cli_options.push)
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.5
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-23 00:00:00.000000000 Z
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.5.1
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.