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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36ef7bdefa96257f11c02b4b20f5f9fa3d04e12c
4
- data.tar.gz: 15ba507ff51c82985fb0b820c7bc360d86f64742
3
+ metadata.gz: 1b0508d62a6902dbc3a68081efbf41d1344b2e2c
4
+ data.tar.gz: b1e03953c88d563f7aa3231fd45eb7f370dd35d8
5
5
  SHA512:
6
- metadata.gz: f8149f3e22fee2bb7d0a0c9d78d1330c7bd705044465a2179dfdf856d34898324736bd0a0d85e197a9953610cde9dff2bdf3a265c0ce8f01eb2b319751b69e5c
7
- data.tar.gz: 78ba6009028cfdd980c203c2e9b419e4c520e59d2ca2f95b04aa760f8981684f689b0a3d24f9645093bb2efe38e00dc036a051e8e60bd73a4ffd74a659cc224f
6
+ metadata.gz: d817d7e58d363acaaaa2f5716b8c6d12f8362ea3c74feb94a905de93cdd520f66a21a2beb97ce2ba1ed9ed8a5eadf1953c543f2da4c3258bb21d20fef3b97ec6
7
+ data.tar.gz: 98297fc2cb1ad9b2ab19b8dfda0088c82bdd98d52263817e1d87b52030708ac53aed2d8b66df86672d1cb4397cadf623fb0f9ebf75f1dc97fb77d19decc125ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.2.2
2
+ - Support :media_type option on link definition
3
+
1
4
  ## 0.2.1
2
5
  - Provides raw_options method to reuse args for property definition
3
6
 
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module JsonWorld
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-04 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport