faraday-cli 0.7.0 → 0.7.1

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: 8f4d394529ed718ce41e89f26fb9263c3ebaaf07
4
- data.tar.gz: 26d37f005429916ac2991e7c80f4bc182d291414
3
+ metadata.gz: daf7bed634eb91d053706c958f8447416cdb399b
4
+ data.tar.gz: 09f346257fbbfdaf6c05702d3a4a44be9722f80e
5
5
  SHA512:
6
- metadata.gz: 6db00733558102de7f8b984db34d53ad9e369ef1cc352d14f02da469d6e426fa8d6b8c4b51ff995c6e1c521bb802fa0c47a122061e670c84efe6232ff6a028a7
7
- data.tar.gz: 380aab8b2a7cdd5d7d328e22876348551976acd80501a3964dfaaeb12007e57c9af0da70ab25d0b475b8808e265e674bc44fb3225a378aa23a11b612224c404a
6
+ metadata.gz: 28430eca7f01bc760f87f3b52bd96bac610598cd4f80645bbf90303f7aa703a9e9a42215ac227f746f36911a7d1247f3660c6a47f932a9157acd8986d02e9cc1
7
+ data.tar.gz: 54e9e40b4744ea0afa404d2c867843cd227d544c6f576ed7c42487d014b7bc337735dc07f2394aa60d170cf4fd3bc8501c84727a550e71ce25f90a8a2ed0b222
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi