faraday-cli 0.7.0 → 0.7.1
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 +4 -4
- data/VERSION +1 -1
- data/lib/faraday/cli/option/parser.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: daf7bed634eb91d053706c958f8447416cdb399b
|
|
4
|
+
data.tar.gz: 09f346257fbbfdaf6c05702d3a4a44be9722f80e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28430eca7f01bc760f87f3b52bd96bac610598cd4f80645bbf90303f7aa703a9e9a42215ac227f746f36911a7d1247f3660c6a47f932a9157acd8986d02e9cc1
|
|
7
|
+
data.tar.gz: 54e9e40b4744ea0afa404d2c867843cd227d544c6f576ed7c42487d014b7bc337735dc07f2394aa60d170cf4fd3bc8501c84727a550e71ce25f90a8a2ed0b222
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.7.
|
|
1
|
+
0.7.1
|
|
@@ -15,7 +15,7 @@ class Faraday::CLI::Option::Parser
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
o.on('-H', '--header HEADER:VALUE', 'Pass custom header LINE to server (H)') do |header|
|
|
18
|
-
options[:http_headers].push(header.split(
|
|
18
|
+
options[:http_headers].push(header.split(/: */))
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
o.on('-q', '--query key=value', 'Pass Query key values to use in the request') do |raw_query_pair|
|
|
@@ -69,10 +69,8 @@ class Faraday::CLI::Option::Parser
|
|
|
69
69
|
options[:flags] << :silent
|
|
70
70
|
$stdout.reopen('/dev/null', 'a+')
|
|
71
71
|
$stderr.reopen('/dev/null', 'a+')
|
|
72
|
-
|
|
73
72
|
end
|
|
74
73
|
|
|
75
|
-
options[:config_file_paths]= []
|
|
76
74
|
o.on('-K', '--config FILE_PATH', 'File path to the .faraday.rb if you want use other than default') do |file_path|
|
|
77
75
|
options[:config_file_paths] << File.absolute_path(file_path)
|
|
78
76
|
end
|
|
@@ -101,6 +99,7 @@ class Faraday::CLI::Option::Parser
|
|
|
101
99
|
options_hash[:params]= []
|
|
102
100
|
options_hash[:http_method]= 'get'
|
|
103
101
|
options_hash[:http_headers]= []
|
|
102
|
+
options_hash[:config_file_paths]= []
|
|
104
103
|
end
|
|
105
104
|
|
|
106
105
|
end
|