apidragon 1.6.0 → 1.6.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: 0d9566fc1ca948c4c23c8c0a4f82ca0ec0ebce58
4
- data.tar.gz: b97de23fc292aaecf9e573e811814b30ef2482ea
3
+ metadata.gz: e41e5bc988ba884ab696631671492e85beddb8b3
4
+ data.tar.gz: dcb43d245c59ba67b6e4b5f2a6e1c4761ad98832
5
5
  SHA512:
6
- metadata.gz: abf057dbdf806c803ea4aa9719493d8174f4df2260782601201121b77961433725d925d4ec9cc093cc30f96160d2af6a688835492c690949d500911d22a982f3
7
- data.tar.gz: 8b093026740074fa0b8373ab87a40c39a183dc825056fcce761e81f7e050b170b89522ccc93cf16f0e61e0c831f22f76bf67cb259039f240231f9dc21451a4c5
6
+ metadata.gz: 3d74f475d60f93280196660b1316927829bd8ea530b56420f33a8b91f1e42ea05ebab38878ba36e02cf805a0b9f97c1c776b6841521d252300466de0dd997bd5
7
+ data.tar.gz: bc96085bbcbd1a2285b00d66022d613c4fdce1350a6a175e582aebb928c589ad3bd0119aeae03c5e815cd2cba900f9dd8f6ce3354aea2547e804bc73c04ee2df
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.6.1
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.6.0'
9
+ program :version, '1.6.1'
10
10
  program :description, 'CLI for automating api requests'
11
11
  program :help, 'Author', 'Isaiah Thiessen <isaiah.thiessen@telus.com>'
12
12
 
@@ -47,10 +47,10 @@ class Call < ArgBucket
47
47
  when 'get', 'put', 'post', 'delete'
48
48
  rest_request
49
49
  when 'curl_get'
50
- command = "curl -v --url #{@function}"
50
+ command = "curl --url #{@function}"
51
51
  curl_request command
52
52
  when 'curl_post'
53
- command = "curl -v -X POST --url #{@function}"
53
+ command = "curl -X POST --url #{@function}"
54
54
  curl_request command
55
55
  @response = `#{command}`
56
56
  when 'plugin'
@@ -71,7 +71,7 @@ class Call < ArgBucket
71
71
 
72
72
  def curl_request(command)
73
73
  @input.each_pair do |key, value|
74
- command << " -F #{key}='#{value}'"
74
+ command << " -F '#{key}=#{value}'"
75
75
  end
76
76
  @response = `#{command}`
77
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidragon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaiah thiessen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-12 00:00:00.000000000 Z
11
+ date: 2015-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport