gds-api-adapters 10.2.0 → 10.2.1

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.
@@ -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 WEB_URL_KEYS.include?(k) && v
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
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '10.2.0'
2
+ VERSION = '10.2.1'
3
3
  end
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.0
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-13 00:00:00.000000000 Z
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: 1657316963344805388
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: 1657316963344805388
382
+ hash: 1654531338748998219
383
383
  requirements: []
384
384
  rubyforge_project:
385
385
  rubygems_version: 1.8.23