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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d58ff0a85fd19af6b0a974e150263243b7a19a1
4
- data.tar.gz: f2f92f490dc1910d2c08c01a46e8ba362ea3f7c1
3
+ metadata.gz: b6ec1055c9ddf598eede54d3be79ed8c8aa73e74
4
+ data.tar.gz: a812759f26b3d0f6e0b37b924398a1dd81e1f352
5
5
  SHA512:
6
- metadata.gz: 818c25089d9e658542d40190679b6b96f4ee1e3db2f2c2dd529bb2e23eeea9dc06e6eb5b072bbd5726141867e23545c01301b52625ed00fea682f91b9bf0a85d
7
- data.tar.gz: 0325d43b77283bcd34d423f3d43b4608754408a5696a41963c3d2d1715fd93ecb75ed9730382e2bcf2dcfcc8d9f981fdaf35afca8d8cfc48b243e64aadaa39f4
6
+ metadata.gz: c17d227461f6f1aff9b968c7b2d0a48a8620fb3ba068dafc35973f3e40fce5f7b083b34234dd43c817e65c0b8bd6d8c67532e0f6abc0ac7a4c804132e615b3d9
7
+ data.tar.gz: 1b578dd9434349dd8e605e6787996061e3d6d6fac727d4e548d56b72bb5ad607435c7722f465e9e845a20ce7852936be04b92ac365fb62389fee5d0ca2b70d41
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
@@ -1,5 +1,8 @@
1
1
  require 'nexmo_api_specification/version'
2
+ require 'nexmo_api_specification/definition'
2
3
 
3
4
  module NexmoApiSpecification
4
- require 'nexmo_api_specification/definition'
5
+ def self.root
6
+ File.dirname __dir__
7
+ end
5
8
  end
@@ -1,8 +1,9 @@
1
1
  module NexmoApiSpecification
2
2
  module Definition
3
3
  def self.load(definition)
4
- raise 'Definition does not exist' unless File.exist? "#{definition}.yml"
5
- File.read "#{definition}.yml"
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
@@ -1,3 +1,3 @@
1
1
  module NexmoApiSpecification
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexmo_api_specification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Butler