gds-api-adapters 10.2.0 → 10.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gds_api/response.rb +1 -3
- data/lib/gds_api/version.rb +1 -1
- metadata +4 -4
data/lib/gds_api/response.rb
CHANGED
@@ -24,8 +24,6 @@ module GdsApi
|
|
24
24
|
extend Forwardable
|
25
25
|
include Enumerable
|
26
26
|
|
27
|
-
WEB_URL_KEYS = ["web_url"]
|
28
|
-
|
29
27
|
def_delegators :to_hash, :[], :"<=>", :each
|
30
28
|
|
31
29
|
def initialize(http_response, options = {})
|
@@ -70,7 +68,7 @@ module GdsApi
|
|
70
68
|
when Hash
|
71
69
|
Hash[value.map { |k, v|
|
72
70
|
# NOTE: Don't bother transforming if the value is nil
|
73
|
-
if
|
71
|
+
if 'web_url' == k && v
|
74
72
|
# Use relative URLs to route when the web_url value is on the
|
75
73
|
# same domain as the site root. Note that we can't just use the
|
76
74
|
# `route_to` method, as this would give us technically correct
|
data/lib/gds_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds-api-adapters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.2.
|
4
|
+
version: 10.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: plek
|
@@ -370,7 +370,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
370
370
|
version: '0'
|
371
371
|
segments:
|
372
372
|
- 0
|
373
|
-
hash:
|
373
|
+
hash: 1654531338748998219
|
374
374
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
375
375
|
none: false
|
376
376
|
requirements:
|
@@ -379,7 +379,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
379
379
|
version: '0'
|
380
380
|
segments:
|
381
381
|
- 0
|
382
|
-
hash:
|
382
|
+
hash: 1654531338748998219
|
383
383
|
requirements: []
|
384
384
|
rubyforge_project:
|
385
385
|
rubygems_version: 1.8.23
|