apidragon 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -26
- data/VERSION +1 -1
- data/apidragon.gemspec +2 -2
- data/lib/apidragon/macro.rb +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acd5ca249133bc6bfddb716df9d888ec913ff62c
|
4
|
+
data.tar.gz: 405e4ed8b0f68e038e0b839cee2a40120278e3bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a510cc5713a6deec09bdef74c53db11a51c1e150c39c830a0c7300ec023533b6c7901bbf12e54ba6fcef33f763f99f9e026a8aa2562ad256f556174feb24201
|
7
|
+
data.tar.gz: 3ef29357525c6aaba16cf11bc316d084e1695d9faf6dbbe72372704f14133934e4d3f16411db1be336ac77c700998bded201c0fdd1135761b9168f8bb7e44ca2
|
data/README.md
CHANGED
@@ -58,7 +58,7 @@ Currently supported modes:
|
|
58
58
|
|
59
59
|
# Further Options
|
60
60
|
|
61
|
-
##
|
61
|
+
## record
|
62
62
|
Each call can have a `record` option, where you can specify what output variables you want to record to your config.
|
63
63
|
|
64
64
|
- e.g.:
|
@@ -83,7 +83,7 @@ Further, for more specific output parsing, you can specify a qualifier variable.
|
|
83
83
|
```
|
84
84
|
So if the call returns a list like this: `[{username => bob, id => 1234}, {username => alice, id => 5678}]`, you can always return the `id` associated with the `username` variable defined in the `vars` section.
|
85
85
|
|
86
|
-
##
|
86
|
+
## logging
|
87
87
|
For each call, set `logging` to `true` to enable or `false` to disable.
|
88
88
|
|
89
89
|
- e.g.:
|
@@ -92,30 +92,6 @@ For each call, set `logging` to `true` to enable or `false` to disable.
|
|
92
92
|
logging: true
|
93
93
|
```
|
94
94
|
|
95
|
-
## `plugin` (unstable)
|
96
|
-
apidragon will automatically `require_relative` any `.rb` files at `/tmp/apidragonplugins/`.
|
97
|
-
Call the code in the plugin file like so:
|
98
|
-
|
99
|
-
- e.g.:
|
100
|
-
- example.rb: (in `/tmp/apidragonplugins/`)
|
101
|
-
```ruby
|
102
|
-
class Example
|
103
|
-
def initialize(message)
|
104
|
-
@message = message
|
105
|
-
end
|
106
|
-
|
107
|
-
def out
|
108
|
-
puts "#{@message}"
|
109
|
-
end
|
110
|
-
end
|
111
|
-
```
|
112
|
-
- apidragonconf.yaml:
|
113
|
-
```yaml
|
114
|
-
hellocall:
|
115
|
-
function: Example.new('hello').out
|
116
|
-
mode: eval
|
117
|
-
plugin: example
|
118
|
-
```
|
119
95
|
|
120
96
|
# Planned Features
|
121
97
|
- The ability to include custom scripts at the end of a call for extensibility
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/apidragon.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: apidragon 1.1.
|
5
|
+
# stub: apidragon 1.1.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "apidragon"
|
9
|
-
s.version = "1.1.
|
9
|
+
s.version = "1.1.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/apidragon/macro.rb
CHANGED