quickbase_client 1.0.18 → 1.0.19

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.
Files changed (4) hide show
  1. data/CHANGES +2 -0
  2. data/README.rdoc +2 -0
  3. data/lib/QuickBaseClient.rb +9 -3
  4. metadata +3 -3
data/CHANGES CHANGED
@@ -1,5 +1,7 @@
1
1
  == Change History
2
2
 
3
+ 1.0.19 - 11/13/2011 - Accommodate Net::HTTP changes in Ruby 1.9.3.
4
+
3
5
  1.0.18 - 09/16/2011 - editRecord() now supports using optional key field as a record identifier.
4
6
 
5
7
  1.0.17 - 09/05/2011 - Added getFileDownloadURL().
data/README.rdoc CHANGED
@@ -31,6 +31,8 @@ More information about the QuickBase Client is available here -
31
31
 
32
32
  == Change History
33
33
 
34
+ 1.0.19 - 11/13/2011 - Accommodate Net::HTTP changes in Ruby 1.9.3.
35
+
34
36
  1.0.18 - 09/16/2011 - editRecord() now supports using optional key field as a record identifier.
35
37
 
36
38
  1.0.17 - 09/05/2011 - Added getFileDownloadURL().
@@ -25,9 +25,9 @@ end
25
25
 
26
26
  module QuickBase
27
27
 
28
- # QuickBase client: Version 1.0.0: Ruby wrapper class for QuickBase HTTP API.
28
+ # QuickBase Client: Ruby wrapper class for QuickBase HTTP API.
29
29
  # The class's method and member variable names correspond closely to the QuickBase HTTP API reference.
30
- # This class was written using ruby 1.8.6.
30
+ # This class was written using ruby 1.8.6. It is strongly recommended that you use ruby 1.9.2 or higher.
31
31
  # Use REXML to process any QuickBase response XML not handled by this class.
32
32
  # The main work of this class is done in initialize(), sendRequest(), and processResponse().
33
33
  # The API_ wrapper methods just set things up for sendRequest() and put values from the
@@ -238,7 +238,13 @@ class Client
238
238
  @responseCode = response.status
239
239
  @responseXML = response.content
240
240
  else
241
- @responseCode, @responseXML = @httpConnection.post( @requestURL, @requestXML, @requestHeaders )
241
+ if Net::HTTP.version_1_2?
242
+ response = @httpConnection.post( @requestURL, @requestXML, @requestHeaders )
243
+ @responseCode = response.code
244
+ @responseXML = response.body
245
+ else
246
+ @responseCode, @responseXML = @httpConnection.post( @requestURL, @requestXML, @requestHeaders )
247
+ end
242
248
  end
243
249
 
244
250
  printResponse( @responseCode, @responseXML ) if @printRequestsAndResponses
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickbase_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.0.19
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: 2011-09-16 00:00:00.000000000Z
12
+ date: 2011-11-13 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Wraps the QuickBase HTTP API and adds classes and methods to minimize
15
15
  the amount of code needed to get useful things done. This is a minimal subset of
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  version: '0'
59
59
  requirements: []
60
60
  rubyforge_project: orphans
61
- rubygems_version: 1.8.10
61
+ rubygems_version: 1.8.11
62
62
  signing_key:
63
63
  specification_version: 3
64
64
  summary: Ruby wrapper for the QuickBase HTTP API. This is a minimal subset of the