apidragon 1.4.1 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/README.md +1 -1
- data/VERSION +1 -0
- data/bin/apidragon +1 -1
- data/lib/apidragon/macro.rb +0 -1
- metadata +2 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c877b6c49716753af444ed62bca387c4fd2fa15
|
4
|
+
data.tar.gz: b57f91de2ebe5819f4b2992a898ff9d4a5370ddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ffc935c502b19c1b5d06e249c69c945a5254f6a3c05948727b6a10118955d4b46bd01055091fd505a2adf59c367ff06518504c17b47a177bec88cb0f10edbb3
|
7
|
+
data.tar.gz: 42c4d4df17c7ac1a1b6d54d8f500675f492e8e7c0389687bf0a1992005c666895c0a3d082db37c6faf4213b5fb657feba15a648e62af77965d83dc53459c3544
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -16,7 +16,7 @@ These classes run a sequence of API calls using a configuration file.
|
|
16
16
|
- Run from the command line with `apidragon do [command]`
|
17
17
|
`[command]` is the name of one of the `macros` defined in the config file. So if I was using the config in the example,
|
18
18
|
I could run `apidragon do macro_1`, which would then call `testcall` and `testcall2` in the order specified.
|
19
|
-
|
19
|
+
- You can specify your own config file path by running `apidragon do [command] --config [filepath]`
|
20
20
|
# Configuration:
|
21
21
|
Create `/tmp/apidragonconf.yaml`. It can contain any variables you need to access the API you are using, as well as `macros`.
|
22
22
|
- Example config:
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.4.3
|
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, '
|
9
|
+
program :version, '1.4.3'
|
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
@@ -25,7 +25,6 @@ class Call < ArgBucket
|
|
25
25
|
def check_constraints
|
26
26
|
if @mode.nil? then fail '"mode" not set. syntax= mode: get/post/put/delete.' end
|
27
27
|
if @function.nil? then fail '"function" not set. syntax= function: api-url.' end
|
28
|
-
puts "WARNING: 'function' should have basic auth. (example syntax= function: username:password@example.com/apicall)" unless @function.include?('username') && @function.include?('password')
|
29
28
|
end
|
30
29
|
|
31
30
|
def credential_sub(username, password)
|
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.4.
|
4
|
+
version: 1.4.3
|
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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -245,13 +245,10 @@ extra_rdoc_files:
|
|
245
245
|
- README.rdoc
|
246
246
|
files:
|
247
247
|
- ".gitignore"
|
248
|
-
- Gemfile
|
249
248
|
- LICENSE.txt
|
250
249
|
- README.md
|
251
250
|
- README.rdoc
|
252
|
-
- Rakefile
|
253
251
|
- VERSION
|
254
|
-
- apidragon.gemspec
|
255
252
|
- bin/apidragon
|
256
253
|
- lib/apidragon.rb
|
257
254
|
- lib/apidragon/api.rb
|
@@ -261,8 +258,6 @@ files:
|
|
261
258
|
- lib/apidragon/parser.rb
|
262
259
|
- plugin_examples/apidragonconf.yaml
|
263
260
|
- plugin_examples/gitclone.rb
|
264
|
-
- test/helper.rb
|
265
|
-
- test/test_apidragon.rb
|
266
261
|
homepage: http://github.com/isand3r/apidragon
|
267
262
|
licenses:
|
268
263
|
- MIT
|