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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cdbcfa127bad627142b54d439e7c8722fb8a7be
4
- data.tar.gz: d53632dd1aee8582da53a06f45ba58e13f5ed544
3
+ metadata.gz: 1c877b6c49716753af444ed62bca387c4fd2fa15
4
+ data.tar.gz: b57f91de2ebe5819f4b2992a898ff9d4a5370ddf
5
5
  SHA512:
6
- metadata.gz: 0e2923845a12d3c493b03e0f8c7b90038523bb73829d54d1e60822672905392b7f9ae63e1c4bbb6ef3a8b01fafb439f88f9c745f9cab8a6f170b15e45c5f5d7c
7
- data.tar.gz: ea481d8ecc0fab52e513f84045e7b0f58671200562a626fc731ca2f444925559535351c09af56c977c072ed312b65dde6f21b71f5abe97a97ff535e14535c1dc
6
+ metadata.gz: 2ffc935c502b19c1b5d06e249c69c945a5254f6a3c05948727b6a10118955d4b46bd01055091fd505a2adf59c367ff06518504c17b47a177bec88cb0f10edbb3
7
+ data.tar.gz: 42c4d4df17c7ac1a1b6d54d8f500675f492e8e7c0389687bf0a1992005c666895c0a3d082db37c6faf4213b5fb657feba15a648e62af77965d83dc53459c3544
data/.gitignore CHANGED
@@ -5,6 +5,5 @@ Gemfile
5
5
  Gemfile.lock
6
6
  README.rdoc
7
7
  Rakefile
8
- VERSION
9
8
  /test/*
10
9
  /pkg/*
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
@@ -6,7 +6,7 @@ require_relative '../lib/apidragon.rb'
6
6
 
7
7
  Commander.configure do
8
8
  program :name, 'apidragon'
9
- program :version, '0.0.1'
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
 
@@ -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.1
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-03 00:00:00.000000000 Z
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