gds-api-adapters 8.3.2 → 8.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,10 @@ class GdsApi::Support < GdsApi::Base
21
21
  post_json!("#{base_url}/anonymous_feedback/service_feedback", { :service_feedback => request_details }, options[:headers] || {})
22
22
  end
23
23
 
24
+ def feedback_url(slug)
25
+ "#{base_url}/anonymous_feedback?path=#{slug}"
26
+ end
27
+
24
28
  private
25
29
  def base_url
26
30
  endpoint
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '8.3.2'
2
+ VERSION = '8.4.0'
3
3
  end
@@ -127,4 +127,10 @@ describe GdsApi::Support do
127
127
 
128
128
  assert_raises(GdsApi::HTTPErrorResponse) { @api.create_service_feedback({}) }
129
129
  end
130
+
131
+ it "gets the correct feedback URL" do
132
+ assert_equal("#{@base_api_url}/anonymous_feedback?path=foo",
133
+ @api.feedback_url('foo'))
134
+
135
+ end
130
136
  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: 8.3.2
4
+ version: 8.4.0
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-02-11 00:00:00.000000000 Z
12
+ date: 2014-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: plek
@@ -367,7 +367,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
367
367
  version: '0'
368
368
  segments:
369
369
  - 0
370
- hash: -3713981339256915174
370
+ hash: 4228971140150213902
371
371
  required_rubygems_version: !ruby/object:Gem::Requirement
372
372
  none: false
373
373
  requirements:
@@ -376,7 +376,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
376
376
  version: '0'
377
377
  segments:
378
378
  - 0
379
- hash: -3713981339256915174
379
+ hash: 4228971140150213902
380
380
  requirements: []
381
381
  rubyforge_project:
382
382
  rubygems_version: 1.8.23