prmd 0.11.9 → 0.11.10

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: bf244e4467c2fade05c42fc6eb2bff364124fc27
4
- data.tar.gz: 6926f672aed9899c68285bec8781bb2f8f789295
3
+ metadata.gz: a4e6a8c0142506698e1bf725a68e5a6c3f0328fa
4
+ data.tar.gz: 3690e76c5ed4a6b6c554b4abf7d0c56d122fb6d0
5
5
  SHA512:
6
- metadata.gz: e8a2a5ee7f81121f96ba3f467929dc2d75c756611689909e6d2e8829cf31009683423b178bff4497d629de2917ad6256c36c6473862bbbef45b6fff4d4b11103
7
- data.tar.gz: caab74ead784edd5adaaa34af492a16efef66c4acc9ae5839b296fa3932611c87cbdbc955dbe75ae4914d576f74d1ed4ce11665778e3c299cded3540ba77730b
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
- # sort by name without extension for stable order
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
- schemata = load_files(files, options)
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 |resource, property|
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, 9, nil
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.9
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-12 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis