hiptest-publisher 0.5.4 → 0.5.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c89caa898045f5fe12f5d62fdd90248667548dec
|
4
|
+
data.tar.gz: a1f4bbdc1c0053c3fbbaf37f2a8be911ae8e9dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80b2402c95318df0273640d5f15b8b0ca8701fc5582ab6dbd20e331f030be1056c3cc9c141b48f8bfbb5325c2f763af80b16b62a2c0bbd1af58accd13708a5a6
|
7
|
+
data.tar.gz: 6b7459c99444f98fee16f96fee1046734629b5b6dca8ef5540e0585483ecc2dea0f76f892ba55817e7ea4cbf3ab12c06af988941d792b02f5031d7035f390519
|
@@ -20,6 +20,6 @@ class ConsoleFormatter
|
|
20
20
|
def show_options(options)
|
21
21
|
return unless verbose
|
22
22
|
puts "Running Hiptest-publisher #{hiptest_publisher_version} with:".yellow
|
23
|
-
options.each { |k, v| puts " - #{k}: #{v}".white }
|
23
|
+
options.each { |k, v| puts " - #{k}: #{v.inspect}".white }
|
24
24
|
end
|
25
25
|
end
|
@@ -9,13 +9,12 @@ class FileConfigParser
|
|
9
9
|
def self.update_options(options, reporter)
|
10
10
|
config = ParseConfig.new(options.config)
|
11
11
|
config.get_params.each do |param|
|
12
|
-
options.
|
12
|
+
next if options.__cli_args && options.__cli_args.include?(param.to_sym)
|
13
|
+
options[param] = config[param]
|
14
|
+
options.__config_args << param.to_sym if options.__config_args
|
13
15
|
end
|
14
|
-
|
15
|
-
|
16
|
-
rescue Exception => err
|
16
|
+
rescue => err
|
17
17
|
reporter.dump_error(err)
|
18
|
-
options
|
19
18
|
end
|
20
19
|
end
|
21
20
|
|
@@ -32,10 +31,8 @@ class Option
|
|
32
31
|
end
|
33
32
|
|
34
33
|
def help
|
35
|
-
|
36
|
-
|
37
|
-
if @default.is_a? String
|
38
|
-
@default.empty? ? @help : "#{@help} (default: #{@default})"
|
34
|
+
if default == nil || default == ""
|
35
|
+
@help
|
39
36
|
else
|
40
37
|
"#{@help} (default: #{@default})"
|
41
38
|
end
|
@@ -52,6 +49,7 @@ class Option
|
|
52
49
|
|
53
50
|
opts.on(*on_values) do |value|
|
54
51
|
options[attribute] = value
|
52
|
+
options.__cli_args << attribute
|
55
53
|
end
|
56
54
|
end
|
57
55
|
end
|
@@ -100,7 +98,7 @@ class OptionsParser
|
|
100
98
|
end
|
101
99
|
|
102
100
|
def self.parse(args, reporter)
|
103
|
-
options = OpenStruct.new
|
101
|
+
options = OpenStruct.new(__cli_args: Set.new, __config_args: Set.new)
|
104
102
|
opt_parser = OptionParser.new do |opts|
|
105
103
|
opts.version = hiptest_publisher_version if hiptest_publisher_version
|
106
104
|
opts.banner = "Usage: ruby publisher.rb [options]"
|
@@ -135,9 +135,11 @@ module Hiptest
|
|
135
135
|
|
136
136
|
def build_step(step)
|
137
137
|
first_prop = css_first(step)
|
138
|
+
step_value_node = css_first(first_prop)
|
139
|
+
step_value = step_value_node ? build_node(step_value_node) : first_prop.text
|
138
140
|
Hiptest::Nodes::Step.new(
|
139
141
|
first_prop.name,
|
140
|
-
|
142
|
+
step_value)
|
141
143
|
end
|
142
144
|
|
143
145
|
def build_while(while_loop)
|
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.5.
|
4
|
+
version: 0.5.5
|
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: 2015-07-
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|