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 +4 -4
- data/CHANGELOG +6 -1
- data/lib/maintainers/runner.rb +8 -2
- data/lib/maintainers/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: 9a242cfe2e2085d761f6fd899e539b342ae8ab65
|
4
|
+
data.tar.gz: 2b3d13830eecdd5b0e33cb6d2381ed68ba3131f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/maintainers/runner.rb
CHANGED
@@ -27,9 +27,15 @@ module Maintainers
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
31
|
-
|
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
|
|
data/lib/maintainers/version.rb
CHANGED