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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e989a483c3cf9e0775337128c1dce711e073f6e
4
- data.tar.gz: bbe903bf2c2b5de92e525f63f8f2837c075cc949
3
+ metadata.gz: 4bb6a7a4ce2dc09da2321dffa1a2bd87821e154b
4
+ data.tar.gz: 5f2530c04f5590e15a042983355edc67c41be006
5
5
  SHA512:
6
- metadata.gz: f6df672465490dc400a1732372ebff2b0332595a5253a0855ef05914d54b16331fd4d4196a1ca17df76a586ac80b3d272004cc65aa6ba7e6689974da08124c23
7
- data.tar.gz: 8e08d2efd35be25dc26280dbddbdf8c722319c442b07a13d781b3769e5baad59141d5cf698c606eec56b495f82feeaa3806263c918613feb75e2012a7c0df346
6
+ metadata.gz: e9d3f18d9cb9e6cea9be103eda93cf2dda2bc62be143986f950556509e01671eab7d48c8c5c48ccfe3bda9832f2c2bcdff848cd19c5120885affb8fea9f98d54
7
+ data.tar.gz: 665b5dca16eede29bf24ca0de57b6a7c619e0f19d60fea56b99670c96cf17856d39365e6ff346407dfc336d22e605ae3d56622a60ea1c5a13581f6134b1a7b19
data/lib/json_home.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2011 innoQ Deutschland GmbH
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.info("Found ForeignLinks: #{@resources.keys.inspect}") if 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
@@ -1,4 +1,4 @@
1
- # Copyright 2011 innoQ Deutschland GmbH
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.4'
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
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-10-14 00:00:00.000000000 Z
12
+ date: 2014-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler