gi_cat_driver 0.2.7 → 0.2.8

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.
data/README.md CHANGED
@@ -43,6 +43,8 @@ Annotated source code documentation is available at http://nsidc.github.com/gi_c
43
43
  Rubydoc API documentation is available at http://rubydoc.info/gems/gi_cat_driver/
44
44
 
45
45
  ## Version History
46
+ * 0.2.8
47
+ * Removed constant variables causing errors in the console output
46
48
  * 0.2.6
47
49
  * Fix for creating accessors to enable the profile and save the configuration
48
50
  * 0.2.5
@@ -1,3 +1,3 @@
1
1
  module GiCatDriver
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
data/lib/gi_cat_driver.rb CHANGED
@@ -18,16 +18,16 @@ module GiCatDriver
18
18
  ATOM_NAMESPACE = { "atom" => "http://www.w3.org/2005/Atom" }
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
+
22
+ STANDARD_HEADERS = { :content_type => "application/xml" }
23
+ AUTHORIZATION_HEADERS = { :content_type => "*/*", :Accept => "application/xml", :Authorization => self.basic_auth_string }
24
+
21
25
  attr_accessor :base_url
22
26
 
23
27
  def initialize( url, username, password )
24
28
  @base_url = url.sub(/\/+$/, '')
25
29
  @admin_username = username
26
30
  @admin_password = password
27
-
28
- # Set up a constant containing the standard request headers
29
- self.class.const_set("STANDARD_HEADERS", { :content_type => "application/xml" })
30
- self.class.const_set("AUTHORIZATION_HEADERS", { :content_type => "*/*", :Accept => "application/xml", :Authorization => self.basic_auth_string })
31
31
  end
32
32
 
33
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.7
4
+ version: 0.2.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-22 00:00:00.000000000 Z
13
+ date: 2013-06-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday