apidragon 1.5.4 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/apidragon +1 -1
- data/lib/apidragon/macro.rb +2 -2
- 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: 0d9566fc1ca948c4c23c8c0a4f82ca0ec0ebce58
|
4
|
+
data.tar.gz: b97de23fc292aaecf9e573e811814b30ef2482ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abf057dbdf806c803ea4aa9719493d8174f4df2260782601201121b77961433725d925d4ec9cc093cc30f96160d2af6a688835492c690949d500911d22a982f3
|
7
|
+
data.tar.gz: 8b093026740074fa0b8373ab87a40c39a183dc825056fcce761e81f7e050b170b89522ccc93cf16f0e61e0c831f22f76bf67cb259039f240231f9dc21451a4c5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.6.0
|
data/bin/apidragon
CHANGED
@@ -6,7 +6,7 @@ require_relative '../lib/apidragon.rb'
|
|
6
6
|
|
7
7
|
Commander.configure do
|
8
8
|
program :name, 'apidragon'
|
9
|
-
program :version, '1.
|
9
|
+
program :version, '1.6.0'
|
10
10
|
program :description, 'CLI for automating api requests'
|
11
11
|
program :help, 'Author', 'Isaiah Thiessen <isaiah.thiessen@telus.com>'
|
12
12
|
|
data/lib/apidragon/macro.rb
CHANGED
@@ -62,6 +62,8 @@ class Call < ArgBucket
|
|
62
62
|
@code = @response.code unless @response.is_a? String
|
63
63
|
xml_to_json
|
64
64
|
if @logging == true then log_response end
|
65
|
+
@response = JSON.parse @response
|
66
|
+
if @stdout==true then puts JSON.pretty_generate @response end
|
65
67
|
parse_response unless @output.nil?
|
66
68
|
end
|
67
69
|
return @arg_bucket
|
@@ -98,8 +100,6 @@ class Call < ArgBucket
|
|
98
100
|
end
|
99
101
|
|
100
102
|
def parse_response
|
101
|
-
@response = JSON.parse @response
|
102
|
-
if @stdout==true then puts JSON.pretty_generate @response end
|
103
103
|
@output.each do |var|
|
104
104
|
if var.is_a? String
|
105
105
|
parser = Parser.new(var, nil, @response)
|