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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c304274401ed571da57041c9ea518492b49b0df7
4
- data.tar.gz: d7c185c802a0d7fd9dc68f4148e1c66211293d69
3
+ metadata.gz: 277859642681598d0b7da69a7c16e6248ddb4793
4
+ data.tar.gz: 4fa89bf9a124ff8346192e7f4354e63f60f88285
5
5
  SHA512:
6
- metadata.gz: f7ca89c0bcc0659bb6127c7b6aa2e5a410c4f5347d8dbdb5ecdff04ba99bfd4aa0a2edf7aef0e9dd466b6c026b6111611c68947066b18a778db1d4222a34d0c6
7
- data.tar.gz: c145f2e49936fdf50942f94d70c386f166aebb671aa58759f2f794698b03eae4ad0ab7effa6edf724eb720d93e1a5d1bff06132ae139a65c3d354ff072893cd8
6
+ metadata.gz: 5e76e95ba99636e4691bcc608eef9d69851b3d9ecc20a2378ee0eb0fb3cf82746b4a2ed68de87229aa9807aac0a10105d9125d08d92c36cc314af90e425fcf33
7
+ data.tar.gz: e16f969d4e18f0e61eb2162a9c5e9e9a164e1a40cee3cc6693008121325aa56431846d714fc30a0edafbcb9ca10860b84dd82fce1266abc40ef19f41d690f9e6
@@ -1,3 +1,6 @@
1
+ ## 0.1.7
2
+ * Reveal `Rack::Spec::Schema#links`
3
+
1
4
  ## 0.1.6
2
5
  * Support YAML schema at `specup`
3
6
 
data/README.md CHANGED
@@ -128,7 +128,7 @@ Rack::Spec::Error
128
128
  |
129
129
  |--Rack::Spec::Mock::Error
130
130
  | |
131
- | `--Rack::Spec::RequestValidation::ExampleNotFound
131
+ | `--Rack::Spec::Mock::ExampleNotFound
132
132
  |
133
133
  |--Rack::Spec::RequestValidation::Error
134
134
  | |
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Spec
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
@@ -50,14 +50,14 @@
50
50
  },
51
51
  {
52
52
  "description": "Delete an existing app.",
53
- "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}",
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%2Fidentity)}",
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%2Fidentity)}",
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.6
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-06 00:00:00.000000000 Z
11
+ date: 2014-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schema