rest-terminal 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module Rest
23
23
 
24
24
  # :nodoc:
25
25
  def patch
26
- 8
26
+ 9
27
27
  end
28
28
 
29
29
  # :nodoc:
@@ -19,9 +19,9 @@ class ServiceBase
19
19
  end
20
20
 
21
21
  def _info(prm)
22
- headerx = headers
23
- bodyx = bodies
24
- varx = vars
22
+ headerx = headers.select{|k,v|v!=""}
23
+ bodyx = bodies.select{|k,v|v!=""}
24
+ varx = vars.select{|k,v|v!=""}
25
25
  line = ('-'*65)
26
26
 
27
27
  puts ('='*65).yellow
@@ -63,9 +63,9 @@ class ServiceBase
63
63
  end
64
64
 
65
65
  def _send(prm)
66
- headerx = headers
67
- bodyx = bodies
68
- varx = vars
66
+ headerx = headers.select{|k,v|v!=""}
67
+ bodyx = bodies.select{|k,v|v!=""}
68
+ varx = vars.select{|k,v|v!=""}
69
69
  line = ('-'*65)
70
70
 
71
71
  puts line.yellow
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-terminal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-01 00:00:00.000000000 Z
12
+ date: 2012-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json