prmd 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +21 -4
- data/docs/schemata.md +4 -0
- data/lib/prmd/core/combiner.rb +4 -34
- data/lib/prmd/core/reference_localizer.rb +93 -0
- data/lib/prmd/load_schema_file.rb +3 -14
- data/lib/prmd/multi_loader.rb +2 -0
- data/lib/prmd/multi_loader/json.rb +19 -0
- data/lib/prmd/multi_loader/loader.rb +128 -0
- data/lib/prmd/multi_loader/toml.rb +19 -0
- data/lib/prmd/multi_loader/yajl.rb +19 -0
- data/lib/prmd/multi_loader/yaml.rb +19 -0
- data/lib/prmd/multi_loader/yml.rb +2 -0
- data/lib/prmd/rake_tasks/base.rb +33 -5
- data/lib/prmd/rake_tasks/combine.rb +20 -4
- data/lib/prmd/rake_tasks/doc.rb +24 -8
- data/lib/prmd/rake_tasks/verify.rb +17 -5
- data/lib/prmd/schema.rb +5 -1
- data/lib/prmd/templates/combine_head.json +3 -3
- data/lib/prmd/templates/init_default.json +5 -3
- data/lib/prmd/templates/init_resource.json.erb +18 -1
- data/lib/prmd/templates/schemata.md.erb +3 -0
- data/lib/prmd/templates/schemata/helper.erb +20 -0
- data/lib/prmd/templates/schemata/link.md.erb +11 -1
- data/lib/prmd/templates/schemata/link_curl_example.md.erb +8 -5
- data/lib/prmd/version.rb +1 -1
- data/test/commands/render_test.rb +60 -0
- data/test/core/reference_localizer_test.rb +65 -0
- data/test/helpers.rb +25 -3
- data/test/multi_loader/common.rb +35 -0
- data/test/multi_loader/json_test.rb +14 -0
- data/test/multi_loader/toml_test.rb +18 -0
- data/test/multi_loader/yajl_test.rb +18 -0
- data/test/multi_loader/yaml_test.rb +14 -0
- data/test/rake_tasks/combine_test.rb +38 -0
- data/test/rake_tasks/doc_test.rb +31 -0
- data/test/rake_tasks/verify_test.rb +23 -0
- data/test/schemata/data/test.json +6 -0
- data/test/schemata/data/test.toml +4 -0
- data/test/schemata/data/test.yaml +3 -0
- data/test/schemata/input/rake-meta.json +9 -0
- data/test/schemata/input/rake_combine/post.json +100 -0
- data/test/schemata/input/rake_combine/user.json +100 -0
- data/test/schemata/input/rake_doc.json +223 -0
- data/test/schemata/input/rake_verify.json +223 -0
- metadata +44 -3
- data/Gemfile.lock +0 -23
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.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- geemus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubis
|
@@ -99,7 +99,6 @@ files:
|
|
99
99
|
- CONTRIBUTING.md
|
100
100
|
- CONTRIBUTORS.md
|
101
101
|
- Gemfile
|
102
|
-
- Gemfile.lock
|
103
102
|
- LICENSE.md
|
104
103
|
- README.md
|
105
104
|
- Rakefile
|
@@ -120,11 +119,19 @@ files:
|
|
120
119
|
- lib/prmd/commands/verify.rb
|
121
120
|
- lib/prmd/core/combiner.rb
|
122
121
|
- lib/prmd/core/generator.rb
|
122
|
+
- lib/prmd/core/reference_localizer.rb
|
123
123
|
- lib/prmd/core/renderer.rb
|
124
124
|
- lib/prmd/core/schema_hash.rb
|
125
125
|
- lib/prmd/core_ext/optparse.rb
|
126
126
|
- lib/prmd/hash_helpers.rb
|
127
127
|
- lib/prmd/load_schema_file.rb
|
128
|
+
- lib/prmd/multi_loader.rb
|
129
|
+
- lib/prmd/multi_loader/json.rb
|
130
|
+
- lib/prmd/multi_loader/loader.rb
|
131
|
+
- lib/prmd/multi_loader/toml.rb
|
132
|
+
- lib/prmd/multi_loader/yajl.rb
|
133
|
+
- lib/prmd/multi_loader/yaml.rb
|
134
|
+
- lib/prmd/multi_loader/yml.rb
|
128
135
|
- lib/prmd/rake_tasks/base.rb
|
129
136
|
- lib/prmd/rake_tasks/combine.rb
|
130
137
|
- lib/prmd/rake_tasks/doc.rb
|
@@ -156,10 +163,27 @@ files:
|
|
156
163
|
- test/commands/init_test.rb
|
157
164
|
- test/commands/render_test.rb
|
158
165
|
- test/commands/verify_test.rb
|
166
|
+
- test/core/reference_localizer_test.rb
|
159
167
|
- test/helpers.rb
|
168
|
+
- test/multi_loader/common.rb
|
169
|
+
- test/multi_loader/json_test.rb
|
170
|
+
- test/multi_loader/toml_test.rb
|
171
|
+
- test/multi_loader/yajl_test.rb
|
172
|
+
- test/multi_loader/yaml_test.rb
|
173
|
+
- test/rake_tasks/combine_test.rb
|
174
|
+
- test/rake_tasks/doc_test.rb
|
175
|
+
- test/rake_tasks/verify_test.rb
|
160
176
|
- test/schema_test.rb
|
177
|
+
- test/schemata/data/test.json
|
178
|
+
- test/schemata/data/test.toml
|
179
|
+
- test/schemata/data/test.yaml
|
161
180
|
- test/schemata/input/doc-settings.json
|
162
181
|
- test/schemata/input/meta.json
|
182
|
+
- test/schemata/input/rake-meta.json
|
183
|
+
- test/schemata/input/rake_combine/post.json
|
184
|
+
- test/schemata/input/rake_combine/user.json
|
185
|
+
- test/schemata/input/rake_doc.json
|
186
|
+
- test/schemata/input/rake_verify.json
|
163
187
|
- test/schemata/input/user.json
|
164
188
|
homepage: https://github.com/heroku/prmd
|
165
189
|
licenses:
|
@@ -194,8 +218,25 @@ test_files:
|
|
194
218
|
- test/commands/init_test.rb
|
195
219
|
- test/commands/render_test.rb
|
196
220
|
- test/commands/verify_test.rb
|
221
|
+
- test/core/reference_localizer_test.rb
|
197
222
|
- test/helpers.rb
|
223
|
+
- test/multi_loader/common.rb
|
224
|
+
- test/multi_loader/json_test.rb
|
225
|
+
- test/multi_loader/toml_test.rb
|
226
|
+
- test/multi_loader/yajl_test.rb
|
227
|
+
- test/multi_loader/yaml_test.rb
|
228
|
+
- test/rake_tasks/combine_test.rb
|
229
|
+
- test/rake_tasks/doc_test.rb
|
230
|
+
- test/rake_tasks/verify_test.rb
|
198
231
|
- test/schema_test.rb
|
232
|
+
- test/schemata/data/test.json
|
233
|
+
- test/schemata/data/test.toml
|
234
|
+
- test/schemata/data/test.yaml
|
199
235
|
- test/schemata/input/doc-settings.json
|
200
236
|
- test/schemata/input/meta.json
|
237
|
+
- test/schemata/input/rake-meta.json
|
238
|
+
- test/schemata/input/rake_combine/post.json
|
239
|
+
- test/schemata/input/rake_combine/user.json
|
240
|
+
- test/schemata/input/rake_doc.json
|
241
|
+
- test/schemata/input/rake_verify.json
|
201
242
|
- test/schemata/input/user.json
|
data/Gemfile.lock
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
prmd (0.6.2)
|
5
|
-
erubis (~> 2.7)
|
6
|
-
json_schema (~> 0.3, >= 0.3.1)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
erubis (2.7.0)
|
12
|
-
json_schema (0.3.1)
|
13
|
-
minitest (5.4.2)
|
14
|
-
rake (10.3.2)
|
15
|
-
|
16
|
-
PLATFORMS
|
17
|
-
ruby
|
18
|
-
|
19
|
-
DEPENDENCIES
|
20
|
-
bundler (~> 1.3)
|
21
|
-
minitest (~> 5.4)
|
22
|
-
prmd!
|
23
|
-
rake (~> 10.3)
|