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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6428fbf11f7c770c738e5a7fbad547cf8993b1c5
4
- data.tar.gz: ac119694add84401e229945a35dabdc094de9d4e
3
+ metadata.gz: 0d9566fc1ca948c4c23c8c0a4f82ca0ec0ebce58
4
+ data.tar.gz: b97de23fc292aaecf9e573e811814b30ef2482ea
5
5
  SHA512:
6
- metadata.gz: 5211bfb67a306a778876717b35070e71f3e219f9abffde8cc4d8e662ab4026050d65e4b41869e83d9773a20da9f826755c2ba05e979885a8e467c8fe06b00df7
7
- data.tar.gz: be7bb4a20a2ff27a8a84c89d2ef752affd088558642587ee2df5f2066d5c3d495a017335c72bedb5b885daaad8ddae82f7dd900e128db8af0b3ef06611c27881
6
+ metadata.gz: abf057dbdf806c803ea4aa9719493d8174f4df2260782601201121b77961433725d925d4ec9cc093cc30f96160d2af6a688835492c690949d500911d22a982f3
7
+ data.tar.gz: 8b093026740074fa0b8373ab87a40c39a183dc825056fcce761e81f7e050b170b89522ccc93cf16f0e61e0c831f22f76bf67cb259039f240231f9dc21451a4c5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.4
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.5.0'
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
 
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidragon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaiah thiessen