nexmo_api_specification 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/nexmo_api_specification.rb +4 -1
- data/lib/nexmo_api_specification/definition.rb +3 -2
- data/lib/nexmo_api_specification/version.rb +1 -1
- 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: b6ec1055c9ddf598eede54d3be79ed8c8aa73e74
|
4
|
+
data.tar.gz: a812759f26b3d0f6e0b37b924398a1dd81e1f352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c17d227461f6f1aff9b968c7b2d0a48a8620fb3ba068dafc35973f3e40fce5f7b083b34234dd43c817e65c0b8bd6d8c67532e0f6abc0ac7a4c804132e615b3d9
|
7
|
+
data.tar.gz: 1b578dd9434349dd8e605e6787996061e3d6d6fac727d4e548d56b72bb5ad607435c7722f465e9e845a20ce7852936be04b92ac365fb62389fee5d0ca2b70d41
|
data/.gitignore
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
module NexmoApiSpecification
|
2
2
|
module Definition
|
3
3
|
def self.load(definition)
|
4
|
-
|
5
|
-
File.
|
4
|
+
path = File.join NexmoApiSpecification.root, "#{definition}.yml"
|
5
|
+
raise 'Definition does not exist' unless File.exist? path
|
6
|
+
File.read path
|
6
7
|
end
|
7
8
|
end
|
8
9
|
end
|