netdot-restclient 1.2 → 1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,7 @@ module Netdot
20
20
  # ssl_verify - Verify server cert (default: yes)
21
21
  # ssl_ca_file - Path to SSL CA cert file
22
22
  # ssl_ca_dir - Path to SSL CA cert directory
23
+ # cookie_file - Cookie filename
23
24
  #
24
25
  # Returns:
25
26
  # Netdot::RestClient object
@@ -34,9 +35,10 @@ module Netdot
34
35
 
35
36
  argv.each { |k,v| instance_variable_set("@#{k}", v) }
36
37
 
37
- @timeout ||= 10
38
- @retries ||= 3
39
- @format ||= 'xml'
38
+ @timeout ||= 10
39
+ @retries ||= 3
40
+ @format ||= 'xml'
41
+ @cookie_file ||= './cookie.dat'
40
42
  defined?(@ssl_verify) or @ssl_verify = true
41
43
 
42
44
  if ( @format == 'xml' )
@@ -52,7 +54,7 @@ module Netdot
52
54
  end
53
55
 
54
56
  ua = HTTPClient.new(:agent_name => "Netdot::RestClient/#{self.version}")
55
- ua.set_cookie_store("cookie.dat")
57
+ ua.set_cookie_store("#{@cookie_file}")
56
58
 
57
59
  # SSL stuff
58
60
  if ( @ssl_verify )
@@ -1,6 +1,6 @@
1
1
  module Netdot
2
2
  class RestClient
3
- VERSION = "1.2"
3
+ VERSION = "1.3"
4
4
 
5
5
  def version
6
6
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netdot-restclient
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
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-25 00:00:00.000000000 Z
12
+ date: 2014-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler