cb-api 11.3.0 → 11.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module Cb
10
10
 
11
11
  def update(saved_search)
12
12
  body = saved_search.update_to_json
13
- json = cb_client.cb_put(Cb.configuration.uri_saved_search_update, body: body, headers: headers)
13
+ json = cb_client.cb_put(Cb.configuration.uri_saved_search_update, body: body, headers: update_headers(saved_search.host_site))
14
14
  Responses::SavedSearch::Update.new(json)
15
15
  end
16
16
 
@@ -41,10 +41,11 @@ module Cb
41
41
 
42
42
  private
43
43
 
44
- def headers
44
+ def update_headers host_site
45
45
  {
46
46
  "developerkey" => Cb.configuration.dev_key,
47
- 'Content-Type' => "application/json"
47
+ 'Content-Type' => "application/json",
48
+ 'HostSite' => ( host_site.blank? ? Cb.configuration.host_site : host_site )
48
49
  }
49
50
  end
50
51
 
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '11.3.0'
2
+ VERSION = '11.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.3.0
4
+ version: 11.3.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-08-14 00:00:00.000000000 Z
12
+ date: 2014-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty