gi_cat_driver 0.2.11 → 0.2.12

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.
@@ -1,3 +1,3 @@
1
1
  module GiCatDriver
2
- VERSION = "0.2.11"
2
+ VERSION = "0.2.12"
3
3
  end
data/lib/gi_cat_driver.rb CHANGED
@@ -19,9 +19,6 @@ module GiCatDriver
19
19
  OPENSEARCH_NAMESPACE = { "opensearch" => "http://a9.com/-/spec/opensearch/1.1/" }
20
20
  RELEVANCE_NAMESPACE = { "relevance" => "http://a9.com/-/opensearch/extensions/relevance/1.0/" }
21
21
 
22
- @standard_headers = { :content_type => "application/xml" }
23
- @authorization_headers = { :content_type => "*/*", :Accept => "application/xml" }
24
-
25
22
  attr_accessor :base_url
26
23
 
27
24
  def initialize( url, username, password )
@@ -29,7 +26,8 @@ module GiCatDriver
29
26
  @admin_username = username
30
27
  @admin_password = password
31
28
 
32
- @authorization_headers = @authorization_headers.merge({:Authorization => self.basic_auth_string})
29
+ @standard_headers = { :content_type => "application/xml" }
30
+ @authorization_headers = { :content_type => "*/*", :Accept => "application/xml", :Authorization => self.basic_auth_string }
33
31
  end
34
32
 
35
33
  # Basic Authorization used in the request headers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gi_cat_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: