quickbase_client 1.0.16 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/.yardopts +4 -0
  2. data/CHANGES +2 -0
  3. data/README.rdoc +1 -17
  4. data/lib/QuickBaseClient.rb +6 -1
  5. metadata +5 -5
data/.yardopts CHANGED
@@ -1 +1,5 @@
1
1
  --readme README.rdoc
2
+ -
3
+ LICENSE
4
+ CHANGES
5
+
data/CHANGES CHANGED
@@ -1,5 +1,7 @@
1
1
  == Change History
2
2
 
3
+ 1.0.17 - 09/05/2011 - Added getFileDownloadURL().
4
+
3
5
  1.0.16 - 07/14/2011 - Added support for new API_CopyMasterDetail call.
4
6
 
5
7
  1.0.15 - 06/02/2011 - Fixed downloadFile problem caused by httpclient update.
data/README.rdoc CHANGED
@@ -45,23 +45,7 @@ More information about the QuickBase Client is available here -
45
45
 
46
46
  1.0.10 - 03/27/2011 - Can now use require 'quickbase_client' instead of require 'QuickBaseClient'.
47
47
 
48
- 1.0.9 - 03/26/2011 - Added aliases, getCSVForReport(), makeCSVFileForReport(), getCriteriaForQuery().
49
-
50
- 1.0.8 - 03/11/2011 - Fixed a problem with getApplicationVariables().
51
-
52
- 1.0.7 - 03/06/2011 - Fixed a problem with formatTimeOfDay().
53
-
54
- 1.0.5 - 02/22/2011 - Updated API_GetUserRole for optional inclgrps parameter.
55
-
56
- 1.0.4 - 12/24/2010 - Fixed formatDate() error.
57
-
58
- 1.0.3 - 12/07/2010 - Various small method improvements.
59
-
60
- 1.0.2 - 12/05/2010 - Added removeFileAttachment().
61
-
62
- 1.0.1 - 11/26/2010 - Will now use HTTPClient instead of Net::HTTP, if you already have HTTPClient.
63
-
64
- 1.0.0 - 11/21/2010 - First push to RubyGems.org.
48
+ See CHANGES file for earlier updates.
65
49
 
66
50
 
67
51
  == Questions?
@@ -1942,7 +1942,7 @@ class Client
1942
1942
  def copyMasterDetail( dbid, destrid, sourcerid, copyfid = nil, recurse = nil, relfids = nil )
1943
1943
 
1944
1944
  raise "copyfid must be specified when destrid is 0." if destrid == "0" and copyfid.nil?
1945
-
1945
+
1946
1946
  @dbid, @destrid, @sourcerid, @copyfid, @recurse, @relfids = dbid, destrid, sourcerid, copyfid, recurse, relfids
1947
1947
 
1948
1948
  xmlRequestData = toXML( :destrid, @destrid)
@@ -4532,6 +4532,11 @@ class Client
4532
4532
  uploadFile( @dbid, filename, fileAttachmentFieldName )
4533
4533
  end
4534
4534
 
4535
+ # Get the URL string for downloading a file from a File Attachment field
4536
+ def getFileDownloadURL(dbid, rid, fid, vid = "0",org="www",domain="quickbase",ssl="s")
4537
+ "http#{ssl}://#{org}.#{domain}.com/up/#{dbid}/a/r#{rid}/e#{fid}/v#{vid}"
4538
+ end
4539
+
4535
4540
  # Update the file attachment in an existing record in a table.
4536
4541
  # Additional field values can optionally be set.
4537
4542
  # e.g. updateFile( "dhnju5y7", "6", "contacts.txt", "Contacts File", { "Notes" => "#{Time.now}" }
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.16
4
+ version: 1.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-14 00:00:00.000000000Z
12
+ date: 2011-09-05 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Wraps the QuickBase HTTP API and adds classes and methods to minimize
15
- the amount of code need to get useful things done. This is a minimal subset of the
16
- ipp_quickbase_devkit.
15
+ the amount of code needed to get useful things done. This is a minimal subset of
16
+ the ipp_quickbase_devkit.
17
17
  email:
18
18
  executables: []
19
19
  extensions: []
@@ -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.5
61
+ rubygems_version: 1.8.10
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