ruby-json-home 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/json_home.rb +3 -3
- data/lib/ruby-json-home.rb +2 -2
- 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: 4bb6a7a4ce2dc09da2321dffa1a2bd87821e154b
|
4
|
+
data.tar.gz: 5f2530c04f5590e15a042983355edc67c41be006
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9d3f18d9cb9e6cea9be103eda93cf2dda2bc62be143986f950556509e01671eab7d48c8c5c48ccfe3bda9832f2c2bcdff848cd19c5120885affb8fea9f98d54
|
7
|
+
data.tar.gz: 665b5dca16eede29bf24ca0de57b6a7c619e0f19d60fea56b99670c96cf17856d39365e6ff346407dfc336d22e605ae3d56622a60ea1c5a13581f6134b1a7b19
|
data/lib/json_home.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2014 innoQ Deutschland GmbH
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -46,7 +46,7 @@ class JSONHome
|
|
46
46
|
res = http.request(req)
|
47
47
|
if res.is_a?(Net::HTTPSuccess)
|
48
48
|
@resources = JSON.parse(res.body)['resources'] || {}
|
49
|
-
self.class.logger.
|
49
|
+
self.class.logger.debug("Found ForeignLinks: #{@resources.keys.inspect}") if self.class.logger
|
50
50
|
else
|
51
51
|
raise RuntimeError.new("HTTP error: '#{res.code} #{res.message}'")
|
52
52
|
end
|
@@ -87,7 +87,7 @@ class JSONHome
|
|
87
87
|
unknown_keys = (params.keys - data['href-vars'].keys)
|
88
88
|
self.warn "Unknown keys #{unknown_keys.inspect} in ForeignLinks#uri call" if unknown_keys.any?
|
89
89
|
data['href-vars'].each do |key, type_uri|
|
90
|
-
self.warn("Missing key '#{key}' in ForeignLinks#uri call") unless params[key]
|
90
|
+
self.warn("Missing key '#{key}' in ForeignLinks#uri call (rel=#{resource})") unless params[key]
|
91
91
|
uri = uri.gsub("{#{key}}", params[key].to_s)
|
92
92
|
end
|
93
93
|
end
|
data/lib/ruby-json-home.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2014 innoQ Deutschland GmbH
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -18,7 +18,7 @@ require 'json_home'
|
|
18
18
|
|
19
19
|
module RubyJSONHome
|
20
20
|
|
21
|
-
VERSION = '0.0.
|
21
|
+
VERSION = '0.0.5'
|
22
22
|
|
23
23
|
end
|
24
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-json-home
|
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
|
- Till Schulte-Coerne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|