quiverstaskrunner 0.1.255311 → 0.1.255331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71acb7ab5b55c93a7f1b7e7d78670c87e7f29ff7
|
4
|
+
data.tar.gz: f0353c3e4eee0a4a8f746f3400f4ee112435469b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1a22c9820ac44e81371e142279a3bcf22a0f0b5bee51a03b60e3f41f2fba171d527981413db2068dc57c950f644f972b460e4b8b1ac56d7148ef0732a69410b
|
7
|
+
data.tar.gz: 0328a64b3970ae2e1f2ef0ea63d130e19b05d10c040aa83895122cab4bc96b8097dbd31e5388a2b8871bbf16ea6c8d05478e76a239347e2635bd29b2160c15d8
|
@@ -5,6 +5,9 @@ require "quiverstaskrunner/helpers/clihelper"
|
|
5
5
|
require 'colorize'
|
6
6
|
|
7
7
|
module QuiversTaskrunner
|
8
|
+
@@escape_hash_connector = "_arrow_" # this is used to replace symbol '=>'
|
9
|
+
|
10
|
+
|
8
11
|
module SettingsHelper
|
9
12
|
module_function
|
10
13
|
|
@@ -64,7 +67,7 @@ module QuiversTaskrunner
|
|
64
67
|
puts filtered_args
|
65
68
|
end
|
66
69
|
|
67
|
-
return Hash[*filtered_args.map { |arg| SettingsHelper.deserialize_string_key_value_pair(arg.split(separator)) }.flatten]
|
70
|
+
return Hash[*filtered_args.map { |arg| SettingsHelper.deserialize_string_key_value_pair(arg.gsub("=>", @@escape_hash_connector).split(separator)) }.flatten]
|
68
71
|
else
|
69
72
|
return {}
|
70
73
|
end
|
@@ -72,8 +75,10 @@ module QuiversTaskrunner
|
|
72
75
|
|
73
76
|
def deserialize_string_key_value_pair(string_key_value_pair)
|
74
77
|
if (defined? string_key_value_pair) && (string_key_value_pair.is_a?(Array)) && (!string_key_value_pair.empty?) && (string_key_value_pair.length > 1)
|
75
|
-
key = string_key_value_pair[0]
|
76
|
-
|
78
|
+
key = string_key_value_pair[0]
|
79
|
+
.gsub("__", "-")
|
80
|
+
.gsub("___", ".")
|
81
|
+
value = string_key_value_pair[1].gsub(@@escape_hash_connector, "=>")
|
77
82
|
if (defined? value) && (!value.nil?) && (!value.empty?)
|
78
83
|
deserialize_value =
|
79
84
|
if (value.index("[") == 0) || (value.index("{") == 0) # this is an array or a hash
|
@@ -1 +1 @@
|
|
1
|
-
module QuiversTaskrunner
|
1
|
+
module QuiversTaskrunner
|