oas 2.1.1 → 2.1.2

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/lib/oas/client.rb CHANGED
@@ -16,6 +16,9 @@ module OAS
16
16
  client.namespace "http://api.oas.tfsm.com/"
17
17
  client.namespace_identifier :n1
18
18
  client.convert_request_keys_to :camelcase
19
+ client.open_timeout timeout.to_i
20
+ client.read_timeout timeout.to_i
21
+ client.ssl_verify_mode :none
19
22
  client.logger logger
20
23
  client.log !!logger
21
24
  end
@@ -6,6 +6,7 @@ module OAS
6
6
  :account,
7
7
  :username,
8
8
  :password,
9
+ :timeout,
9
10
  :logger].freeze
10
11
 
11
12
  # The endpoint that will be used to connect if none is set
@@ -19,6 +20,9 @@ module OAS
19
20
 
20
21
  # By default, don't set a password
21
22
  DEFAULT_PASSWORD = nil
23
+
24
+ # By default, set open and read timeout to 300
25
+ DEFAULT_TIMEOUT = 300
22
26
 
23
27
  attr_accessor *VALID_OPTIONS_KEYS
24
28
 
@@ -41,6 +45,7 @@ module OAS
41
45
  self.account = DEFAULT_ACCOUNT
42
46
  self.username = DEFAULT_USERNAME
43
47
  self.password = DEFAULT_PASSWORD
48
+ self.timeout = DEFAULT_TIMEOUT
44
49
  self.logger = nil
45
50
  end
46
51
  end
data/lib/oas/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module OAS
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oas
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
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: 2013-08-01 00:00:00.000000000 Z
12
+ date: 2013-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -132,7 +132,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  segments:
134
134
  - 0
135
- hash: 271148847
135
+ hash: -872956227
136
136
  required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  none: false
138
138
  requirements:
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  segments:
143
143
  - 0
144
- hash: 271148847
144
+ hash: -872956227
145
145
  requirements: []
146
146
  rubyforge_project: oas
147
147
  rubygems_version: 1.8.24