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 +4 -4
- data/VERSION +1 -1
- data/bin/apidragon +1 -1
- data/lib/apidragon/macro.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e41e5bc988ba884ab696631671492e85beddb8b3
|
4
|
+
data.tar.gz: dcb43d245c59ba67b6e4b5f2a6e1c4761ad98832
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d74f475d60f93280196660b1316927829bd8ea530b56420f33a8b91f1e42ea05ebab38878ba36e02cf805a0b9f97c1c776b6841521d252300466de0dd997bd5
|
7
|
+
data.tar.gz: bc96085bbcbd1a2285b00d66022d613c4fdce1350a6a175e582aebb928c589ad3bd0119aeae03c5e815cd2cba900f9dd8f6ce3354aea2547e804bc73c04ee2df
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
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.
|
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
|
|
data/lib/apidragon/macro.rb
CHANGED
@@ -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
|
50
|
+
command = "curl --url #{@function}"
|
51
51
|
curl_request command
|
52
52
|
when 'curl_post'
|
53
|
-
command = "curl -
|
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}
|
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.
|
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-
|
11
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|