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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 057fea4ff820d0007256be6ae77b2ad5f41af564
4
- data.tar.gz: dff236d10ed490abbb2df35b7c0d1874b4f902ea
3
+ metadata.gz: acd5ca249133bc6bfddb716df9d888ec913ff62c
4
+ data.tar.gz: 405e4ed8b0f68e038e0b839cee2a40120278e3bb
5
5
  SHA512:
6
- metadata.gz: 2037bb17194a23285ed05b67c3573e19c1500ae7dec6d3c5d1ce0778f9c90424007757234ec63882be0086b5a0eca8b990b32fe62df5aceb3186fbbeb6a7397f
7
- data.tar.gz: 52cb232fd49bf6410c47ae7f4169f9df67a518f2b9e8fe16932417759f7b92804916fadec4b38cf9316fda85c035ee716ef1a5d93381f883c5afd59a412d2b03
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
- ## `record`
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
- ## `logging`
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.0
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.0 ruby lib
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.0"
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"]
@@ -67,8 +67,6 @@ class Call < ArgBucket
67
67
  command << " -F #{key}='#{value}'"
68
68
  end
69
69
  @response = `#{command}`
70
- when 'eval'
71
- @response = eval(@function)
72
70
  else
73
71
  puts "#{@mode} not supported."
74
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidragon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaiah thiessen