right_api_client 1.5.23 → 1.5.24

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/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Next
4
4
 
5
+ ## 1.5.24
6
+ - \#81 Pass ssl_version option of TLSv1 to rest-client
7
+
5
8
  ## 1.5.23
6
9
  - \#78 Prevent logging of credentials during login requests
7
10
  - \#77 Add support for OAuth2 authentication via refresh token
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.23
1
+ 1.5.24
@@ -58,6 +58,8 @@ module RightApi
58
58
  DEFAULT_TIMEOUT = -1
59
59
  DEFAULT_MAX_ATTEMPTS = 5
60
60
 
61
+ DEFAULT_SSL_VERSION = 'TLSv1'
62
+
61
63
  ROOT_RESOURCE = '/api/session'
62
64
  OAUTH_ENDPOINT = '/api/oauth2'
63
65
  ROOT_INSTANCE_RESOURCE = '/api/session/instance'
@@ -116,6 +118,7 @@ module RightApi
116
118
 
117
119
  @api_url, @api_version = DEFAULT_API_URL, API_VERSION
118
120
  @open_timeout, @timeout, @max_attempts = DEFAULT_OPEN_TIMEOUT, DEFAULT_TIMEOUT, DEFAULT_MAX_ATTEMPTS
121
+ @ssl_version = DEFAULT_SSL_VERSION
119
122
  @enable_retry = false
120
123
 
121
124
  # Initializing all instance variables from hash
@@ -127,7 +130,7 @@ module RightApi
127
130
 
128
131
  # allow a custom resource-style REST client (for special logging, etc.)
129
132
  @rest_client_class ||= ::RestClient::Resource
130
- @rest_client = @rest_client_class.new(@api_url, :open_timeout => @open_timeout, :timeout => @timeout)
133
+ @rest_client = @rest_client_class.new(@api_url, :open_timeout => @open_timeout, :timeout => @timeout, :ssl_version => @ssl_version)
131
134
  @last_request = {}
132
135
 
133
136
  # There are five options for login:
@@ -593,7 +596,7 @@ module RightApi
593
596
  # redirect (i.e. always set :timeout => -1) but that seems like an
594
597
  # oversight; always use configured timeout values regardless of redirect.
595
598
  @rest_client = @rest_client_class.new(
596
- @api_url, :open_timeout => @open_timeout, :timeout => @timeout)
599
+ @api_url, :open_timeout => @open_timeout, :timeout => @timeout, :ssl_version => @ssl_version)
597
600
  end
598
601
  end
599
602
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.23
4
+ version: 1.5.24
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-10-15 00:00:00.000000000 Z
12
+ date: 2014-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -174,7 +174,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  segments:
176
176
  - 0
177
- hash: 681643300708536250
177
+ hash: -2833104221795664035
178
178
  required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  none: false
180
180
  requirements: