prmd 0.11.3 → 0.11.4

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: 613cc4058c86e91936d4ad425af5f517494ec2cf
4
- data.tar.gz: 6ac0c0dab3403d6c1e1865649063443dab955b3d
3
+ metadata.gz: 37247187ebe2f63d0ae1420104e88476ddae1a4a
4
+ data.tar.gz: d6cc52e9d913ff0a2751b56830954f46e5134598
5
5
  SHA512:
6
- metadata.gz: 0c4c962353c534980da52b68ee6a4b452ff529875d2abd479b3445672273d8cba5cf6233c275cc0dcd6ccce7b5b969d9358e233e01a391b3e6a037766843cfdf
7
- data.tar.gz: 1defbb1aec93e7be70f4c68ed65ebae2120c45195d49a97f61f83d5c8eb5c93919f0b93d2296a53dd8c0352711589ccf250d987346dcfab9a9fb5d950f41dfa6
6
+ metadata.gz: 1fb29d50c819e7046eec3797d4f3e8dbe06bdd013eb2937ffd3387f23cbf8c9f73a68713d75cb3d9f5a61b79857d69084542fb0b79b9fd298a4fdb96e588bb5a
7
+ data.tar.gz: fb55e50632b5414bde83ac978189f5ec673285d69d8c8615afe6b84da1b0620ce1984cbeb31b73d11566cdda18a697a29fc6d0a5ebddc5ad41d50ec8eb066105
@@ -4,9 +4,9 @@
4
4
 
5
5
  _, properties = schema.dereference(properties)
6
6
 
7
- properties.keys.sort.each do |key|
7
+ properties.each do |key, value|
8
8
  # found a reference to another element:
9
- _, value = schema.dereference(properties[key])
9
+ _, value = schema.dereference(value)
10
10
 
11
11
  # include top level reference to nested things, when top level is nullable
12
12
  if value.has_key?('type') && value['type'].include?('null') && (value.has_key?('items') || value.has_key?('properties'))
@@ -76,7 +76,7 @@
76
76
  end
77
77
  [key, type, description, example]
78
78
  }
79
- return attributes
79
+ return attributes.sort
80
80
  end
81
81
 
82
82
  def extract_schemata_refs(schema, properties)
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, 3, nil
5
+ MAJOR, MINOR, TEENY, PATCH = 0, 11, 4, nil
6
6
  # version string
7
7
  # @return [String]
8
8
  STRING = [MAJOR, MINOR, TEENY, PATCH].compact.join('.').freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus
@@ -244,3 +244,4 @@ test_files:
244
244
  - test/schemata/input/rake_doc.json
245
245
  - test/schemata/input/rake_verify.json
246
246
  - test/schemata/input/user.json
247
+ has_rdoc: