interpol 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/interpol/endpoint.rb +3 -1
- data/lib/interpol/version.rb +1 -1
- metadata +8 -2
data/lib/interpol/endpoint.rb
CHANGED
@@ -39,13 +39,15 @@ module Interpol
|
|
39
39
|
# based on the endpoint definitions in the YAML files.
|
40
40
|
class Endpoint
|
41
41
|
include HashFetcher
|
42
|
-
attr_reader :name, :route, :method
|
42
|
+
attr_reader :name, :route, :method, :custom_metadata
|
43
43
|
|
44
44
|
def initialize(endpoint_hash)
|
45
45
|
@name = fetch_from(endpoint_hash, 'name')
|
46
46
|
@route = fetch_from(endpoint_hash, 'route')
|
47
47
|
@method = fetch_from(endpoint_hash, 'method').downcase.to_sym
|
48
48
|
|
49
|
+
@custom_metadata = endpoint_hash.fetch('meta') { {} }
|
50
|
+
|
49
51
|
@definitions_hash, @all_definitions = extract_definitions_from(endpoint_hash)
|
50
52
|
|
51
53
|
validate_name!
|
data/lib/interpol/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: interpol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -256,12 +256,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
256
256
|
- - ! '>='
|
257
257
|
- !ruby/object:Gem::Version
|
258
258
|
version: '0'
|
259
|
+
segments:
|
260
|
+
- 0
|
261
|
+
hash: -2474990987412018003
|
259
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
263
|
none: false
|
261
264
|
requirements:
|
262
265
|
- - ! '>='
|
263
266
|
- !ruby/object:Gem::Version
|
264
267
|
version: '0'
|
268
|
+
segments:
|
269
|
+
- 0
|
270
|
+
hash: -2474990987412018003
|
265
271
|
requirements: []
|
266
272
|
rubyforge_project:
|
267
273
|
rubygems_version: 1.8.24
|