json_world 0.2.1 → 0.2.2
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/lib/json_world/link_definition.rb +6 -0
- data/lib/json_world/version.rb +1 -1
- 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: 1b0508d62a6902dbc3a68081efbf41d1344b2e2c
|
4
|
+
data.tar.gz: b1e03953c88d563f7aa3231fd45eb7f370dd35d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d817d7e58d363acaaaa2f5716b8c6d12f8362ea3c74feb94a905de93cdd520f66a21a2beb97ce2ba1ed9ed8a5eadf1953c543f2da4c3258bb21d20fef3b97ec6
|
7
|
+
data.tar.gz: 98297fc2cb1ad9b2ab19b8dfda0088c82bdd98d52263817e1d87b52030708ac53aed2d8b66df86672d1cb4397cadf623fb0f9ebf75f1dc97fb77d19decc125ca
|
data/CHANGELOG.md
CHANGED
@@ -18,6 +18,7 @@ module JsonWorld
|
|
18
18
|
{
|
19
19
|
description: description,
|
20
20
|
href: path,
|
21
|
+
mediaType: media_type,
|
21
22
|
method: http_method,
|
22
23
|
rel: rel,
|
23
24
|
schema: schema,
|
@@ -40,6 +41,11 @@ module JsonWorld
|
|
40
41
|
@options[:method] || DEFAULT_HTTP_METHOD
|
41
42
|
end
|
42
43
|
|
44
|
+
# @return [String, nil]
|
45
|
+
def media_type
|
46
|
+
@options[:media_type]
|
47
|
+
end
|
48
|
+
|
43
49
|
# @return [String]
|
44
50
|
def path
|
45
51
|
@options[:path]
|
data/lib/json_world/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_world
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|