quickbase_client 1.0.22 → 1.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +15 -0
  2. data/CHANGES +2 -0
  3. data/README.rdoc +2 -5
  4. data/lib/QuickBaseClient.rb +19 -0
  5. metadata +5 -7
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZmYyZTIwZjU5MDUwNmY5ZWZiYWIzZjRjNjk0MWUyZmEyMTAyMzU5OA==
5
+ data.tar.gz: !binary |-
6
+ MjhiYzA1MzA0Y2QwMDdhYmE5YzYyOTU2NjY0ZTU2YjkyZGJhODg2MQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZDZiODYxNTMyYjA1ZWRjZmFjZjI0MTZhM2JiYzQ4NDZmNTNlMmFkNmRiYTI5
10
+ YmI5MjVhMThhZDY5MDVkMDhjZWFmNmFhZjRkZTE4M2Q3NzcyMTEzNWE2MDQx
11
+ MmYzYjYyNGIyOTg3MDZhODdjZjFiNzQ5MmZmMTUxMjk4MmY0NDc=
12
+ data.tar.gz: !binary |-
13
+ Yjc3MTY4YWI1Nzk5YTEwYmE2ZDAwMmRjMTU4NDkxN2FhMDcxNTViNzNlN2U5
14
+ NjVmMzBjMjNhZjVkYWUyNWE3ODQ4MTgzZGY1NzM2ZjZkNDdiMjViOWZjODY5
15
+ NmVjM2NhMTJjZThjNzRkZDc4NjllNjRiYzFkOWFiNmFkOWE3OGM=
data/CHANGES CHANGED
@@ -1,5 +1,7 @@
1
1
  == Change History
2
2
 
3
+ 1.0.23 - 03/11/2013 - Added getRealmForDbid(dbid)
4
+
3
5
  1.0.22 - 11/17/2012 - Added downloadAndSaveFile, uploadFileContents.
4
6
 
5
7
  1.0.21 - 05/28/2012 - Changed gem homepage to github.
data/README.rdoc CHANGED
@@ -28,6 +28,8 @@ More information about the QuickBase Client is available here -
28
28
 
29
29
  == Change History
30
30
 
31
+ 1.0.23 - 03/11/2013 - Added getRealmForDbid(dbid)
32
+
31
33
  1.0.22 - 11/17/2012 - Added downloadAndSaveFile, uploadFileContents.
32
34
 
33
35
  1.0.21 - 05/28/2012 - Changed gem homepage to github.
@@ -48,13 +50,8 @@ More information about the QuickBase Client is available here -
48
50
 
49
51
  1.0.13 - 05/10/2011 - Added getRecords(): get an array of records using record ids.
50
52
 
51
- 1.0.12 - 05/08/2011 - Added findRecords and find_records getFilteredRecords aliases.
52
-
53
- 1.0.11 - 05/08/2011 - Fixed a problem with getFilteredRecords().
54
-
55
53
  See CHANGES file for earlier updates.
56
54
 
57
-
58
55
  == Questions?
59
56
 
60
57
  Please submit questions, feedback, suggestions on Intuit's Community Forum at https://quickbase-community-e2e.intuit.com .
@@ -1011,6 +1011,25 @@ class Client
1011
1011
  reportNames
1012
1012
  end
1013
1013
 
1014
+ # Given a DBID, get the QuickBase realm it is in.
1015
+ def getRealmForDbid(dbid)
1016
+ @realm = nil
1017
+ if USING_HTTPCLIENT
1018
+ begin
1019
+ httpclient = HTTPClient.new
1020
+ resp = httpclient.get("https://www.quickbase.com/db/#{dbid}")
1021
+ @realm = resp.header['Location'][0]
1022
+ @realm.sub!("https://","")
1023
+ @realm.sub!(".quickbase.com/db/#{dbid}","")
1024
+ rescue StandardError => error
1025
+ @realm = nil
1026
+ end
1027
+ else
1028
+ raise "Please get the HTTPClient gem: gem install httpclient"
1029
+ end
1030
+ @realm
1031
+ end
1032
+
1014
1033
  # Builds the XML for a specific item included in a request to QuickBase.
1015
1034
  def toXML( tag, value = nil )
1016
1035
  if value
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickbase_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.22
5
- prerelease:
4
+ version: 1.0.23
6
5
  platform: ruby
7
6
  authors:
8
7
  - Gareth Lewis
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-17 00:00:00.000000000 Z
11
+ date: 2013-03-11 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Wraps the QuickBase HTTP API and adds classes and methods to minimize
15
14
  the amount of code needed to get useful things done.
@@ -30,6 +29,7 @@ files:
30
29
  - lib/quickbase_client.rb
31
30
  homepage: https://github.com/garethlatwork/quickbase_client
32
31
  licenses: []
32
+ metadata: {}
33
33
  post_install_message:
34
34
  rdoc_options:
35
35
  - --line-numbers
@@ -44,21 +44,19 @@ rdoc_options:
44
44
  require_paths:
45
45
  - lib
46
46
  required_ruby_version: !ruby/object:Gem::Requirement
47
- none: false
48
47
  requirements:
49
48
  - - ! '>='
50
49
  - !ruby/object:Gem::Version
51
50
  version: 1.8.6
52
51
  required_rubygems_version: !ruby/object:Gem::Requirement
53
- none: false
54
52
  requirements:
55
53
  - - ! '>='
56
54
  - !ruby/object:Gem::Version
57
55
  version: '0'
58
56
  requirements: []
59
57
  rubyforge_project: orphans
60
- rubygems_version: 1.8.24
58
+ rubygems_version: 2.0.2
61
59
  signing_key:
62
- specification_version: 3
60
+ specification_version: 4
63
61
  summary: Ruby wrapper for the QuickBase HTTP API.
64
62
  test_files: []