maintainers 0.1.1 → 0.1.2

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: 91e6cb7f5a46b4ea3d9d95ea58487c95795a559d
4
- data.tar.gz: b51d1b2e2dd3755a9e593abb2a2158d54f2af18b
3
+ metadata.gz: 9a242cfe2e2085d761f6fd899e539b342ae8ab65
4
+ data.tar.gz: 2b3d13830eecdd5b0e33cb6d2381ed68ba3131f8
5
5
  SHA512:
6
- metadata.gz: aa445a435dc2ed67ed14d975b0103239a3da49b8406fe1ccb6b06dcd32a7d5b6a12fb33372e4831031fcb106bddb12e9e4730852aad13c953826529b60dc0670
7
- data.tar.gz: 6aa5b63d1413325a175810c99b7988c9189ddfe916bc77fe69b622b64c4d5c6856f2402926f37f53a59fce8a682f7f22115e97adb2fa053816c042ee018502af
6
+ metadata.gz: 33040a6040571e954c8e0ebc1b724cdf864a32bd5b6796f428fe46e5b7b75f9fa8559448c1881466de3f7148e1a3a0745dde4ac62ffd547dc88e8fa2c06ffe70
7
+ data.tar.gz: 1cb1627cd7a50e59c5c2d4d3957a12224c107ae0d5638aa931eebf62fe07d1cae3c47991922c172d0e0d54e093bb4165e171bba438532e43422c38ea43f05f3b
data/CHANGELOG CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.2] - 2016-09-02
10
+ ### Fixed
11
+ - Fixed (for realz) schema file reference
12
+
9
13
  ## [0.1.1] - 2016-09-01
10
14
  ### Fixed
11
15
  - Fixed case of schema file reference so 'maintainers' works as a gem
@@ -15,5 +19,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
15
19
  ### Added
16
20
  - Initial support for a json format for MAINTAINERS
17
21
 
18
- [Unreleased]: https://github.com/puppetlabs/maintainers/compare/0.1.1...HEAD
22
+ [Unreleased]: https://github.com/puppetlabs/maintainers/compare/0.1.2...HEAD
23
+ [0.1.2]: https://github.com/puppetlabs/maintainers/compare/0.1.1...0.1.2
19
24
  [0.1.1]: https://github.com/puppetlabs/maintainers/compare/0.1.0...0.1.1
@@ -27,9 +27,15 @@ module Maintainers
27
27
  end
28
28
  end
29
29
 
30
- def validate(maintainers)
31
- maintainers_schema = JSON.parse(File.read('schema/MAINTAINERS.json'))
30
+ def maintainers_schema
31
+ # I don't know what the idiomatic way is to access a non-ruby file packaged
32
+ # with the gem. This seems gross but it works.
33
+ schema_path = File.join(Gem.loaded_specs['maintainers'].gem_dir, 'schema/MAINTAINERS.json')
34
+
35
+ JSON.parse(File.read(schema_path))
36
+ end
32
37
 
38
+ def validate(maintainers)
33
39
  JSON::Validator.validate(maintainers_schema, maintainers)
34
40
  end
35
41
 
@@ -1,3 +1,3 @@
1
1
  module Maintainers
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maintainers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc