jdoc 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/bin/jdoc +1 -1
- data/jdoc.gemspec +0 -1
- data/lib/jdoc.rb +0 -1
- data/lib/jdoc/link.rb +2 -2
- data/lib/jdoc/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 123bb745b74176f50d28727ac49d577c9a905360
|
4
|
+
data.tar.gz: 920d22e689edefcec4150268505e8ea8c6396771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 887e7113ba533a804ce16c512af98f176b2fb459e2968a45fddc4f99eaf666fd3f14d75e1fe42bfb0b925ec6024e5e4ed2fea293d0a26b23247e07efd645bd31
|
7
|
+
data.tar.gz: 4a2b82a99ccc84a9039875cbea22010a20f157e6aff7d65df70a847fa03a034b0c2327b4e2f1c3aa4296c5ef657bfd67a55a702b54f5f915f0057f694f465039
|
data/CHANGELOG.md
CHANGED
data/bin/jdoc
CHANGED
data/jdoc.gemspec
CHANGED
@@ -18,7 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
spec.add_dependency "erubis"
|
20
20
|
spec.add_dependency "json_schema"
|
21
|
-
spec.add_dependency "multi_json"
|
22
21
|
spec.add_development_dependency "activesupport"
|
23
22
|
spec.add_development_dependency "bundler", "~> 1.6"
|
24
23
|
spec.add_development_dependency "pry"
|
data/lib/jdoc.rb
CHANGED
data/lib/jdoc/link.rb
CHANGED
@@ -64,7 +64,7 @@ module Jdoc
|
|
64
64
|
|
65
65
|
# @return [String, nil] Example request body in JSON format
|
66
66
|
def request_body
|
67
|
-
|
67
|
+
JSON.pretty_generate(RequestGenerator.call(schema)) + "\n"
|
68
68
|
end
|
69
69
|
|
70
70
|
# @return [true, false] True if this endpoint must have request body
|
@@ -74,7 +74,7 @@ module Jdoc
|
|
74
74
|
|
75
75
|
# @return [String] JSON response body generated from example properties
|
76
76
|
def response_body
|
77
|
-
|
77
|
+
JSON.pretty_generate(response_hash)
|
78
78
|
end
|
79
79
|
|
80
80
|
# @return [Fixnum] Preferred respone status code for this endpoint
|
data/lib/jdoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubis
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: multi_json
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: activesupport
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|