rack-spec 0.1.6 → 0.1.7
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/README.md +1 -1
- data/lib/rack/spec/schema.rb +2 -2
- data/lib/rack/spec/version.rb +1 -1
- data/spec/fixtures/schema.json +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 277859642681598d0b7da69a7c16e6248ddb4793
|
4
|
+
data.tar.gz: 4fa89bf9a124ff8346192e7f4354e63f60f88285
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e76e95ba99636e4691bcc608eef9d69851b3d9ecc20a2378ee0eb0fb3cf82746b4a2ed68de87229aa9807aac0a10105d9125d08d92c36cc314af90e425fcf33
|
7
|
+
data.tar.gz: e16f969d4e18f0e61eb2162a9c5e9e9a164e1a40cee3cc6693008121325aa56431846d714fc30a0edafbcb9ca10860b84dd82fce1266abc40ef19f41d690f9e6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/rack/spec/schema.rb
CHANGED
@@ -31,8 +31,6 @@ module Rack
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
private
|
35
|
-
|
36
34
|
# @return [Array] All links defined in given JSON schema
|
37
35
|
# @example
|
38
36
|
# schema.links #=> [#<JsonSchema::Schema::Link>]
|
@@ -40,6 +38,8 @@ module Rack
|
|
40
38
|
@links ||= self.class.extract_links(@json_schema)
|
41
39
|
end
|
42
40
|
|
41
|
+
private
|
42
|
+
|
43
43
|
# @return [Hash] A key-value pair of HTTP method and an Array of links
|
44
44
|
# @note This Hash always returns an Array for any key
|
45
45
|
# @example
|
data/lib/rack/spec/version.rb
CHANGED
data/spec/fixtures/schema.json
CHANGED
@@ -50,14 +50,14 @@
|
|
50
50
|
},
|
51
51
|
{
|
52
52
|
"description": "Delete an existing app.",
|
53
|
-
"href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%
|
53
|
+
"href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fid)}",
|
54
54
|
"method": "DELETE",
|
55
55
|
"rel": "destroy",
|
56
56
|
"title": "Delete"
|
57
57
|
},
|
58
58
|
{
|
59
59
|
"description": "Info for existing app.",
|
60
|
-
"href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%
|
60
|
+
"href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fid)}",
|
61
61
|
"method": "GET",
|
62
62
|
"rel": "self",
|
63
63
|
"title": "Info"
|
@@ -71,7 +71,7 @@
|
|
71
71
|
},
|
72
72
|
{
|
73
73
|
"description": "Update an existing app.",
|
74
|
-
"href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%
|
74
|
+
"href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fid)}",
|
75
75
|
"method": "PATCH",
|
76
76
|
"rel": "update",
|
77
77
|
"schema": {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_schema
|