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 +4 -4
- data/lib/prmd/templates/schemata/helper.erb +3 -3
- data/lib/prmd/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37247187ebe2f63d0ae1420104e88476ddae1a4a
|
4
|
+
data.tar.gz: d6cc52e9d913ff0a2751b56830954f46e5134598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
7
|
+
properties.each do |key, value|
|
8
8
|
# found a reference to another element:
|
9
|
-
_, value = schema.dereference(
|
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,
|
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.
|
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:
|