prmd 0.11.9 → 0.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/prmd/commands/combine.rb +3 -3
- data/lib/prmd/templates/schema.erb +2 -1
- data/lib/prmd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4e6a8c0142506698e1bf725a68e5a6c3f0328fa
|
4
|
+
data.tar.gz: 3690e76c5ed4a6b6c554b4abf7d0c56d122fb6d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b379370f8a533d69fa872c1224726eebce304ffc643b03826d451ba252486fca6e287c4db79c8109a0550a8d34f1024d869bc5f9ac33006bf705dd66c9c382d7
|
7
|
+
data.tar.gz: 83d8bde56db5cbe2c6de78c6eefe368b992e91d04d9d5c852608d490db27b34c93d0e2eef111acab684c7ec7aaa19c48c97f1740cb9f5bf4828643c9b4e6b250
|
@@ -32,8 +32,7 @@ module Prmd
|
|
32
32
|
end
|
33
33
|
files.flatten!
|
34
34
|
files.delete(options[:meta])
|
35
|
-
|
36
|
-
files.sort_by {|file| file.split('.', 2).first}
|
35
|
+
files
|
37
36
|
end
|
38
37
|
|
39
38
|
# @api private
|
@@ -64,7 +63,8 @@ module Prmd
|
|
64
63
|
# @return (see .load_files)
|
65
64
|
def self.load_schemas(paths, options = {})
|
66
65
|
files = crawl_map(paths, options)
|
67
|
-
|
66
|
+
# sort for stable loading across platforms
|
67
|
+
schemata = load_files(files.sort, options)
|
68
68
|
handle_faulty_load(schemata, files) unless options[:faulty_load]
|
69
69
|
schemata
|
70
70
|
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
<%=
|
2
2
|
schemata_template = Prmd::Template::load('schemata.md.erb', options[:template])
|
3
3
|
|
4
|
-
schema['properties'].map do |
|
4
|
+
schema['properties'].keys.sort.map do |key|
|
5
|
+
resource, property = key, schema['properties'][key]
|
5
6
|
begin
|
6
7
|
_, schemata = schema.dereference(property)
|
7
8
|
schemata_template.result({
|
data/lib/prmd/version.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
module Prmd
|
3
3
|
# Well, duh, its a Version module, what did you expect?
|
4
4
|
module Version
|
5
|
-
MAJOR, MINOR, TEENY, PATCH = 0, 11,
|
5
|
+
MAJOR, MINOR, TEENY, PATCH = 0, 11, 10, nil
|
6
6
|
# version string
|
7
7
|
# @return [String]
|
8
8
|
STRING = [MAJOR, MINOR, TEENY, PATCH].compact.join('.').freeze
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- geemus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubis
|