gi_cat_driver 0.2.8 → 0.2.9

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.8"
2
+ VERSION = "0.2.9"
3
3
  end
data/lib/gi_cat_driver.rb CHANGED
@@ -20,7 +20,7 @@ module GiCatDriver
20
20
  RELEVANCE_NAMESPACE = { "relevance" => "http://a9.com/-/opensearch/extensions/relevance/1.0/" }
21
21
 
22
22
  STANDARD_HEADERS = { :content_type => "application/xml" }
23
- AUTHORIZATION_HEADERS = { :content_type => "*/*", :Accept => "application/xml", :Authorization => self.basic_auth_string }
23
+ AUTHORIZATION_HEADERS = { :content_type => "*/*", :Accept => "application/xml" }
24
24
 
25
25
  attr_accessor :base_url
26
26
 
@@ -28,6 +28,8 @@ module GiCatDriver
28
28
  @base_url = url.sub(/\/+$/, '')
29
29
  @admin_username = username
30
30
  @admin_password = password
31
+
32
+ AUTHORIZATION_HEADERS.merge({:Authorization => self.basic_auth_string})
31
33
  end
32
34
 
33
35
  # 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.8
4
+ version: 0.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: