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.
- data/lib/rest/version.rb +1 -1
- data/lib/service_base.rb +6 -6
- metadata +2 -2
data/lib/rest/version.rb
CHANGED
data/lib/service_base.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2012-11-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|