ipp_quickbase_devkit 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +87 -0
- data/README.rdoc +112 -0
- data/doc/QuickBaseClient.rb.htm +1896 -0
- data/doc/ReleaseNotes.txt +43 -0
- data/doc/qbc.makeCSVFile.qbc +4 -0
- data/doc/qbc.makeCSVFile.rb +4 -0
- data/doc/quickbase_adapter.rb.htm +399 -0
- data/examples/cookbookfiles/QuickBaseAPICookbook.html +2590 -0
- data/examples/cookbookfiles/addChangeRemoveUserRole.rb +21 -0
- data/examples/cookbookfiles/addOrEditRecord.rb +10 -0
- data/examples/cookbookfiles/application_object.rb +55 -0
- data/examples/cookbookfiles/applyRubyFormulas.rb +10 -0
- data/examples/cookbookfiles/average.rb +27 -0
- data/examples/cookbookfiles/backupApplication.rb +8 -0
- data/examples/cookbookfiles/cacheSchemas.rb +53 -0
- data/examples/cookbookfiles/calculateRunningTotals.rb +11 -0
- data/examples/cookbookfiles/copyrecords.rb +73 -0
- data/examples/cookbookfiles/count.rb +26 -0
- data/examples/cookbookfiles/createRecordNavigatorHTML.rb +42 -0
- data/examples/cookbookfiles/createReportDashboard.rb +35 -0
- data/examples/cookbookfiles/createTable.rb +12 -0
- data/examples/cookbookfiles/deviation.rb +25 -0
- data/examples/cookbookfiles/downloadCookbook.rb +97 -0
- data/examples/cookbookfiles/downloadFile.rb +10 -0
- data/examples/cookbookfiles/downloadFilesToFolder.rb +81 -0
- data/examples/cookbookfiles/downloadToTextFile.rb +64 -0
- data/examples/cookbookfiles/dumpSchema.rb +11 -0
- data/examples/cookbookfiles/duplicateRecord.rb +8 -0
- data/examples/cookbookfiles/dynamicMethods.rb +33 -0
- data/examples/cookbookfiles/editRecords.rb +15 -0
- data/examples/cookbookfiles/findJohnsLast10Records.rb +17 -0
- data/examples/cookbookfiles/findRubyRecords.rb +17 -0
- data/examples/cookbookfiles/formatCurrency.rb +24 -0
- data/examples/cookbookfiles/formatDate.rb +10 -0
- data/examples/cookbookfiles/formatDuration.rb +27 -0
- data/examples/cookbookfiles/formatPercent.rb +24 -0
- data/examples/cookbookfiles/getAllValuesForFields.rb +18 -0
- data/examples/cookbookfiles/getAppDTMInfo.rb +29 -0
- data/examples/cookbookfiles/getApplicationVariable.rb +5 -0
- data/examples/cookbookfiles/getChildTableDBID.rb +11 -0
- data/examples/cookbookfiles/getColumnListForReport.rb +6 -0
- data/examples/cookbookfiles/getFieldChoices.rb +13 -0
- data/examples/cookbookfiles/getFieldIDs.rb +6 -0
- data/examples/cookbookfiles/getFieldNames.rb +6 -0
- data/examples/cookbookfiles/getLastModTime.rb +8 -0
- data/examples/cookbookfiles/getLastRecModTime.rb +8 -0
- data/examples/cookbookfiles/getNumRecords.rb +8 -0
- data/examples/cookbookfiles/getNumTables.rb +4 -0
- data/examples/cookbookfiles/getRecord.rb +5 -0
- data/examples/cookbookfiles/getRecordDisplayURL.rb +13 -0
- data/examples/cookbookfiles/getRecordsAddedToday.rb +20 -0
- data/examples/cookbookfiles/getRecordsAsJSON.rb +6 -0
- data/examples/cookbookfiles/getReportNames.rb +25 -0
- data/examples/cookbookfiles/getRoleInfo.rb +48 -0
- data/examples/cookbookfiles/getServerStatus.rb +11 -0
- data/examples/cookbookfiles/getSortListForReport.rb +6 -0
- data/examples/cookbookfiles/getTableIDs.rb +6 -0
- data/examples/cookbookfiles/getTableName.rb +8 -0
- data/examples/cookbookfiles/getTableNames.rb +25 -0
- data/examples/cookbookfiles/getTimeCreated.rb +8 -0
- data/examples/cookbookfiles/getTimeInMilliseconds.rb +5 -0
- data/examples/cookbookfiles/getUserInfo.rb +26 -0
- data/examples/cookbookfiles/getUserRole.rb +15 -0
- data/examples/cookbookfiles/intranet.rb +101 -0
- data/examples/cookbookfiles/isAverageField.rb +17 -0
- data/examples/cookbookfiles/isDbidString.rb +8 -0
- data/examples/cookbookfiles/isTotalField.rb +16 -0
- data/examples/cookbookfiles/iterateDBPages.rb +8 -0
- data/examples/cookbookfiles/iterateFilteredRecords.rb +12 -0
- data/examples/cookbookfiles/iterateJoinRecords.rb +68 -0
- data/examples/cookbookfiles/iterateRecordInfos.rb +8 -0
- data/examples/cookbookfiles/iterateRecords.rb +23 -0
- data/examples/cookbookfiles/iterateSummaryRecords.rb +13 -0
- data/examples/cookbookfiles/iterateUnionRecords.rb +38 -0
- data/examples/cookbookfiles/listAccessibleApplications.rb +6 -0
- data/examples/cookbookfiles/logRequestAndResponseXML.rb +8 -0
- data/examples/cookbookfiles/lookupFieldPropertyByName.rb +62 -0
- data/examples/cookbookfiles/lookupFieldTypeByName.rb +10 -0
- data/examples/cookbookfiles/makeCSVFile.rb +4 -0
- data/examples/cookbookfiles/makeSlideShow.rb +42 -0
- data/examples/cookbookfiles/makerecs.rb +64 -0
- data/examples/cookbookfiles/max.rb +26 -0
- data/examples/cookbookfiles/min.rb +26 -0
- data/examples/cookbookfiles/percent.rb +29 -0
- data/examples/cookbookfiles/printChildElements.rb +54 -0
- data/examples/cookbookfiles/printNewRecords.rb +12 -0
- data/examples/cookbookfiles/processRESTRequest.rb +21 -0
- data/examples/cookbookfiles/provisionAndInviteNewUser.rb +13 -0
- data/examples/cookbookfiles/purgeRecords.rb +15 -0
- data/examples/cookbookfiles/quickbase_adapter.rb.htm +397 -0
- data/examples/cookbookfiles/quickbase_record_finder.zip +0 -0
- data/examples/cookbookfiles/recordAndFieldIterator.rb +24 -0
- data/examples/cookbookfiles/runImport.rb +9 -0
- data/examples/cookbookfiles/runQuickBaseTwitterConnector.rb +41 -0
- data/examples/cookbookfiles/sendToQuickBase.rb +33 -0
- data/examples/cookbookfiles/setDBvar.rb +6 -0
- data/examples/cookbookfiles/showRequestAndResponseXML.rb +8 -0
- data/examples/cookbookfiles/sqlQuery.rb +11 -0
- data/examples/cookbookfiles/stopOnError.rb +10 -0
- data/examples/cookbookfiles/sum.rb +26 -0
- data/examples/cookbookfiles/twitterFromQuickBase.rb +42 -0
- data/examples/cookbookfiles/twitterWithQuickBase.rb +36 -0
- data/examples/cookbookfiles/uploadCSVData.rb +20 -0
- data/examples/cookbookfiles/uploadExcelData.rb +22 -0
- data/examples/cookbookfiles/uploadFileEveryHour.rb +18 -0
- data/examples/cookbookfiles/uploadFileIntoNewRecord.rb +8 -0
- data/examples/cookbookfiles/uploadFilesFromFolder.exe +0 -0
- data/examples/cookbookfiles/uploadFilesFromFolder.rb +69 -0
- data/examples/cookbookfiles/useCompanyURL.rb +12 -0
- data/examples/cookbookfiles/userRoles.rb +49 -0
- data/examples/cookbookfiles/watchCommunityForum.rb +5 -0
- data/examples/cookbookfiles/wikifyTable.rb +29 -0
- data/examples/cookbookfiles/xmlShortcuts.rb +33 -0
- data/examples/pmp/app/controllers/application.rb +7 -0
- data/examples/pmp/app/controllers/contacts_controller.rb +8 -0
- data/examples/pmp/app/controllers/document_library_controller.rb +2 -0
- data/examples/pmp/app/controllers/issues_controller.rb +5 -0
- data/examples/pmp/app/controllers/projects_controller.rb +22 -0
- data/examples/pmp/app/controllers/resources_controller.rb +2 -0
- data/examples/pmp/app/controllers/tasks_controller.rb +13 -0
- data/examples/pmp/app/controllers/time_cards_controller.rb +5 -0
- data/examples/pmp/app/helpers/application_helper.rb +3 -0
- data/examples/pmp/app/helpers/contacts_helper.rb +2 -0
- data/examples/pmp/app/helpers/document_library_helper.rb +2 -0
- data/examples/pmp/app/helpers/issues_helper.rb +2 -0
- data/examples/pmp/app/helpers/projects_helper.rb +2 -0
- data/examples/pmp/app/helpers/resources_helper.rb +2 -0
- data/examples/pmp/app/helpers/tasks_helper.rb +2 -0
- data/examples/pmp/app/helpers/time_cards_helper.rb +2 -0
- data/examples/pmp/app/models/contacts.rb +26 -0
- data/examples/pmp/app/models/document_library.rb +2 -0
- data/examples/pmp/app/models/issues.rb +6 -0
- data/examples/pmp/app/models/projects.rb +26 -0
- data/examples/pmp/app/models/resources.rb +2 -0
- data/examples/pmp/app/models/tasks.rb +12 -0
- data/examples/pmp/app/models/time_cards.rb +7 -0
- data/examples/pmp/app/schemas/contacts.xml +1 -0
- data/examples/pmp/app/schemas/document_library.xml +1 -0
- data/examples/pmp/app/schemas/issues.xml +1 -0
- data/examples/pmp/app/schemas/pmp.xml +1 -0
- data/examples/pmp/app/schemas/projects.xml +1 -0
- data/examples/pmp/app/schemas/readme.txt +8 -0
- data/examples/pmp/app/schemas/resources.xml +1 -0
- data/examples/pmp/app/schemas/tasks.xml +1 -0
- data/examples/pmp/app/schemas/time_cards.xml +1 -0
- data/examples/pmp/app/views/contacts/companies.rhtml +31 -0
- data/examples/pmp/app/views/contacts/project_contacts.rhtml +31 -0
- data/examples/pmp/app/views/issues/filter_issues.rhtml +26 -0
- data/examples/pmp/app/views/layouts/application.rhtml +56 -0
- data/examples/pmp/app/views/projects/all_projects.rhtml +33 -0
- data/examples/pmp/app/views/projects/home.rhtml +11 -0
- data/examples/pmp/app/views/projects/my_open_projects.rhtml +27 -0
- data/examples/pmp/app/views/projects/open_projects.rhtml +44 -0
- data/examples/pmp/app/views/projects/project_sorted_by_company.rhtml +40 -0
- data/examples/pmp/app/views/projects/projects_sorted_by_priority.rhtml +30 -0
- data/examples/pmp/app/views/projects/updated_projects.rhtml +0 -0
- data/examples/pmp/app/views/tasks/all_tasks.rhtml +27 -0
- data/examples/pmp/app/views/tasks/search.rhtml +23 -0
- data/examples/pmp/app/views/tasks/search2.rhtml +23 -0
- data/examples/pmp/app/views/tasks/search3.rhtml +23 -0
- data/examples/pmp/app/views/time_cards/summary.rhtml +38 -0
- data/examples/pmp/config/boot.rb +45 -0
- data/examples/pmp/config/database.yml +30 -0
- data/examples/pmp/config/environment.rb +60 -0
- data/examples/pmp/config/environments/development.rb +21 -0
- data/examples/pmp/config/environments/production.rb +18 -0
- data/examples/pmp/config/environments/test.rb +19 -0
- data/examples/pmp/config/routes.rb +23 -0
- data/examples/pmp/db/migrate/001_create_projects.rb +10 -0
- data/examples/pmp/db/migrate/002_create_tasks.rb +10 -0
- data/examples/pmp/db/migrate/003_create_issues.rb +10 -0
- data/examples/pmp/db/migrate/004_create_document_libraries.rb +10 -0
- data/examples/pmp/db/migrate/005_create_resources.rb +10 -0
- data/examples/pmp/db/migrate/006_create_time_cards.rb +10 -0
- data/examples/pmp/db/migrate/007_create_contacts.rb +10 -0
- data/examples/pmp/public/404.html +30 -0
- data/examples/pmp/public/500.html +30 -0
- data/examples/pmp/public/app.index.html +277 -0
- data/examples/pmp/public/dispatch.cgi +10 -0
- data/examples/pmp/public/dispatch.fcgi +24 -0
- data/examples/pmp/public/dispatch.rb +10 -0
- data/examples/pmp/public/favicon.ico +0 -0
- data/examples/pmp/public/images/rails.png +0 -0
- data/examples/pmp/public/javascripts/application.js +2 -0
- data/examples/pmp/public/javascripts/controls.js +833 -0
- data/examples/pmp/public/javascripts/dragdrop.js +942 -0
- data/examples/pmp/public/javascripts/effects.js +1088 -0
- data/examples/pmp/public/javascripts/prototype.js +2515 -0
- data/examples/pmp/public/robots.txt +1 -0
- data/examples/pmp/test/fixtures/contacts.yml +5 -0
- data/examples/pmp/test/fixtures/document_libraries.yml +5 -0
- data/examples/pmp/test/fixtures/issues.yml +5 -0
- data/examples/pmp/test/fixtures/projects.yml +5 -0
- data/examples/pmp/test/fixtures/resources.yml +5 -0
- data/examples/pmp/test/fixtures/tasks.yml +5 -0
- data/examples/pmp/test/fixtures/time_cards.yml +5 -0
- data/examples/pmp/test/functional/contacts_controller_test.rb +18 -0
- data/examples/pmp/test/functional/document_library_controller_test.rb +18 -0
- data/examples/pmp/test/functional/issues_controller_test.rb +18 -0
- data/examples/pmp/test/functional/projects_controller_test.rb +18 -0
- data/examples/pmp/test/functional/resources_controller_test.rb +18 -0
- data/examples/pmp/test/functional/tasks_controller_test.rb +18 -0
- data/examples/pmp/test/functional/time_cards_controller_test.rb +18 -0
- data/examples/pmp/test/test_helper.rb +28 -0
- data/examples/pmp/test/unit/contacts_test.rb +10 -0
- data/examples/pmp/test/unit/document_library_test.rb +10 -0
- data/examples/pmp/test/unit/issues_test.rb +10 -0
- data/examples/pmp/test/unit/projects_test.rb +10 -0
- data/examples/pmp/test/unit/resources_test.rb +10 -0
- data/examples/pmp/test/unit/tasks_test.rb +10 -0
- data/examples/pmp/test/unit/time_cards_test.rb +10 -0
- data/lib/QuickBaseClient.rb +5054 -0
- data/lib/QuickBaseCommandLineClient.rb +401 -0
- data/lib/QuickBaseContactsAppBuilder.rb +419 -0
- data/lib/QuickBaseEmailer.rb +334 -0
- data/lib/QuickBaseEventNotifier.rb +592 -0
- data/lib/QuickBaseMisc.rb +96 -0
- data/lib/QuickBaseObjects.rb +566 -0
- data/lib/QuickBaseRSSGenerator.rb +286 -0
- data/lib/QuickBaseTextData.rb +545 -0
- data/lib/QuickBaseTwitterConnector.rb +300 -0
- data/lib/QuickBaseWebClient.rb +126 -0
- data/lib/WorkPlaceClient.rb +45 -0
- data/lib/qbc.makeCSVFile.qbc +4 -0
- data/lib/qbc.makeCSVFile.rb +17 -0
- data/lib/quickbase_adapter.rb +320 -0
- data/lib/runFieldEntryDialog.rb +151 -0
- data/lib/runOfflineFieldEntryDialog.rb +203 -0
- data/rakefile +100 -0
- data/test/run_tests.bat +7 -0
- data/test/spec_all_tests.rb +13 -0
- data/test/spec_smoke_tests.rb +58 -0
- data/test/spec_workplace_addrecord_test.rb +46 -0
- data/test/spec_workplace_base_test.rb +57 -0
- data/test/spec_workplace_editrecord_test.rb +38 -0
- data/test/spec_workplace_json_test.rb +38 -0
- data/test/spec_workplace_objects_test.rb +39 -0
- data/test/spec_workplace_smoke_tests.rb +45 -0
- metadata +353 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
require 'spec_workplace_base_test'
|
3
|
+
require 'spec'
|
4
|
+
|
5
|
+
describe "Workplace Edit Record test" do
|
6
|
+
|
7
|
+
it "should change a Person record" do
|
8
|
+
|
9
|
+
require 'WorkPlaceClient'
|
10
|
+
class WorkPlaceEditRecordTest
|
11
|
+
include WorkPlaceBaseTest
|
12
|
+
end
|
13
|
+
wpert = WorkPlaceEditRecordTest.new
|
14
|
+
workPlaceClient = wpert.setup
|
15
|
+
workPlaceClient.should_not == nil
|
16
|
+
|
17
|
+
fn_fid = workPlaceClient.lookupFieldIDByName("First Name", wpert.personTableDBID)
|
18
|
+
ln_fid = workPlaceClient.lookupFieldIDByName("Last Name")
|
19
|
+
fn_fid.should_not == nil
|
20
|
+
ln_fid.should_not == nil
|
21
|
+
|
22
|
+
personFieldValues = Hash["First Name", "FirstName", "Last Name", "LastName"]
|
23
|
+
workPlaceClient.setFieldValues(personFieldValues)
|
24
|
+
rid, update_id = workPlaceClient.addRecord(wpert.personTableDBID,workPlaceClient.fvlist)
|
25
|
+
rid.should_not == nil
|
26
|
+
|
27
|
+
personFieldValues = Hash["First Name", "NewFirstName", "Last Name", "NewLastName"]
|
28
|
+
workPlaceClient.setFieldValues(personFieldValues) # does editRecord re-using last dbid and rid
|
29
|
+
|
30
|
+
workPlaceClient._getRecordInfo(rid)
|
31
|
+
fn = workPlaceClient.getFieldDataValue(fn_fid)
|
32
|
+
ln = workPlaceClient.getFieldDataValue(ln_fid)
|
33
|
+
fn.should == "NewFirstName"
|
34
|
+
ln.should == "NewLastName"
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
require 'spec_workplace_base_test'
|
3
|
+
require 'spec'
|
4
|
+
|
5
|
+
describe "Workplace JSON test" do
|
6
|
+
|
7
|
+
it "should get records in JSON format" do
|
8
|
+
|
9
|
+
require 'WorkPlaceClient'
|
10
|
+
class WorkPlaceJSONTest
|
11
|
+
include WorkPlaceBaseTest
|
12
|
+
end
|
13
|
+
wpjt = WorkPlaceJSONTest.new
|
14
|
+
workPlaceClient = wpjt.setup
|
15
|
+
workPlaceClient.should_not == nil
|
16
|
+
|
17
|
+
person1 = Hash["First Name", "Fred", "Last Name", "Flintstone"]
|
18
|
+
workPlaceClient.setFieldValues(person1, false)
|
19
|
+
workPlaceClient.addRecord(wpjt.personTableDBID,workPlaceClient.fvlist)
|
20
|
+
|
21
|
+
person2 = Hash["First Name", "Wilma", "Last Name", "Flintstone"]
|
22
|
+
workPlaceClient.setFieldValues(person2, false)
|
23
|
+
workPlaceClient.addRecord(wpjt.personTableDBID,workPlaceClient.fvlist)
|
24
|
+
|
25
|
+
person3 = Hash["First Name", "Barney", "Last Name", "Rubble"]
|
26
|
+
workPlaceClient.setFieldValues(person3, false)
|
27
|
+
workPlaceClient.addRecord(wpjt.personTableDBID,workPlaceClient.fvlist)
|
28
|
+
|
29
|
+
jsonRecords = workPlaceClient.getAllValuesForFieldsAsJSON(wpjt.personTableDBID,["First Name", "Last Name"])
|
30
|
+
jsonRecords.should_not == nil
|
31
|
+
|
32
|
+
rubyRecords = JSON.parse(jsonRecords)
|
33
|
+
b = rubyRecords.include?(person1) and rubyRecords.include?(person2) and rubyRecords.include?(person3)
|
34
|
+
b.should == true
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
|
2
|
+
require 'spec_workplace_base_test'
|
3
|
+
require 'spec'
|
4
|
+
|
5
|
+
describe "Workplace Objects test" do
|
6
|
+
|
7
|
+
it "should create a valid Person Table object" do
|
8
|
+
|
9
|
+
require 'WorkPlaceClient'
|
10
|
+
class WorkPlaceObjectsTest
|
11
|
+
include WorkPlaceBaseTest
|
12
|
+
end
|
13
|
+
wpot = WorkPlaceObjectsTest.new
|
14
|
+
workPlaceClient1 = wpot.setup
|
15
|
+
|
16
|
+
require 'QuickBaseObjects'
|
17
|
+
workPlaceClient2 = QuickBase::WorkPlaceClient.new(workPlaceClient1.username,workPlaceClient1.password)
|
18
|
+
workPlaceClient2.should_not == nil
|
19
|
+
workPlaceClient2.apptoken=workPlaceClient1.apptoken
|
20
|
+
|
21
|
+
ob = QuickBase::Objects::Builder.new(nil,nil,workPlaceClient2)
|
22
|
+
ob.should_not == nil
|
23
|
+
|
24
|
+
test_app = ob.application(wpot.testAppName)
|
25
|
+
|
26
|
+
test_app.should_not == nil
|
27
|
+
test_app.tPersons.should_not == nil
|
28
|
+
|
29
|
+
fields_ok = true
|
30
|
+
person_field_names = wpot.personFields.keys
|
31
|
+
test_app.tPersons.fields.each{|fid,field|
|
32
|
+
next if workPlaceClient2.isBuiltInField?(fid)
|
33
|
+
fields_ok = false if ! person_field_names.include?(field.properties["label"])
|
34
|
+
}
|
35
|
+
fields_ok.should == true
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
|
2
|
+
require 'spec_workplace_base_test'
|
3
|
+
require 'spec'
|
4
|
+
|
5
|
+
describe "WorkPlace Smoke Test" do
|
6
|
+
|
7
|
+
it "should find the WorkPlaceClient.rb file" do
|
8
|
+
found = require 'WorkPlaceClient'
|
9
|
+
found.should == true
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should create a WorkPlaceClient" do
|
13
|
+
require 'WorkPlaceClient'
|
14
|
+
wpc = QuickBase::WorkPlaceClient.new
|
15
|
+
wpc.should_not == nil
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should show that the workplace client points at the right host" do
|
19
|
+
require 'WorkPlaceClient'
|
20
|
+
wpc = QuickBase::WorkPlaceClient.new
|
21
|
+
wpc.org.should == "workplace"
|
22
|
+
wpc.domain.should == "intuit"
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should add a Person table to an existing workplace application" do
|
26
|
+
require 'WorkPlaceClient'
|
27
|
+
class WorkPlaceSmokeTest
|
28
|
+
include WorkPlaceBaseTest
|
29
|
+
end
|
30
|
+
wpst = WorkPlaceSmokeTest.new
|
31
|
+
wpst.setup
|
32
|
+
wpst.workPlaceClient.should_not == nil
|
33
|
+
wpst.testAppDBID.should_not == nil
|
34
|
+
wpst.personTableDBID.should_not == nil
|
35
|
+
wpst.personFields.should_not == nil
|
36
|
+
wpst.workPlaceClient.getSchema(wpst.personTableDBID)
|
37
|
+
testFailed = false
|
38
|
+
wpst.personFields.each{|fieldName,fieldType|
|
39
|
+
fid = wpst.workPlaceClient.lookupFieldIDByName(fieldName)
|
40
|
+
testFailed = true if !fid
|
41
|
+
}
|
42
|
+
testFailed.should == false
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
metadata
ADDED
@@ -0,0 +1,353 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ipp_quickbase_devkit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 0.0.1
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Gareth Lewis
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2009-07-01 00:00:00 -04:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: json
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
version: "0"
|
30
|
+
type: :runtime
|
31
|
+
version_requirements: *id001
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: rspec
|
34
|
+
prerelease: false
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 1
|
41
|
+
- 2
|
42
|
+
- 7
|
43
|
+
version: 1.2.7
|
44
|
+
type: :runtime
|
45
|
+
version_requirements: *id002
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
prerelease: false
|
49
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 1
|
55
|
+
- 2
|
56
|
+
- 7
|
57
|
+
version: 1.2.7
|
58
|
+
type: :development
|
59
|
+
version_requirements: *id003
|
60
|
+
description: The ipp_quickbase_devkit wraps the QuickBase HTTP API and adds a lot of classes and methods to minimize the amount of code need to get useful things done.
|
61
|
+
email: dev-ipp_dev_kits@code.intuit.com
|
62
|
+
executables: []
|
63
|
+
|
64
|
+
extensions: []
|
65
|
+
|
66
|
+
extra_rdoc_files:
|
67
|
+
- LICENSE
|
68
|
+
- README.rdoc
|
69
|
+
files:
|
70
|
+
- LICENSE
|
71
|
+
- README.rdoc
|
72
|
+
- rakefile
|
73
|
+
- examples/cookbookfiles/addChangeRemoveUserRole.rb
|
74
|
+
- examples/cookbookfiles/addOrEditRecord.rb
|
75
|
+
- examples/cookbookfiles/application_object.rb
|
76
|
+
- examples/cookbookfiles/applyRubyFormulas.rb
|
77
|
+
- examples/cookbookfiles/average.rb
|
78
|
+
- examples/cookbookfiles/backupApplication.rb
|
79
|
+
- examples/cookbookfiles/cacheSchemas.rb
|
80
|
+
- examples/cookbookfiles/calculateRunningTotals.rb
|
81
|
+
- examples/cookbookfiles/copyrecords.rb
|
82
|
+
- examples/cookbookfiles/count.rb
|
83
|
+
- examples/cookbookfiles/createRecordNavigatorHTML.rb
|
84
|
+
- examples/cookbookfiles/createReportDashboard.rb
|
85
|
+
- examples/cookbookfiles/createTable.rb
|
86
|
+
- examples/cookbookfiles/deviation.rb
|
87
|
+
- examples/cookbookfiles/downloadCookbook.rb
|
88
|
+
- examples/cookbookfiles/downloadFile.rb
|
89
|
+
- examples/cookbookfiles/downloadFilesToFolder.rb
|
90
|
+
- examples/cookbookfiles/downloadToTextFile.rb
|
91
|
+
- examples/cookbookfiles/dumpSchema.rb
|
92
|
+
- examples/cookbookfiles/duplicateRecord.rb
|
93
|
+
- examples/cookbookfiles/dynamicMethods.rb
|
94
|
+
- examples/cookbookfiles/editRecords.rb
|
95
|
+
- examples/cookbookfiles/findJohnsLast10Records.rb
|
96
|
+
- examples/cookbookfiles/findRubyRecords.rb
|
97
|
+
- examples/cookbookfiles/formatCurrency.rb
|
98
|
+
- examples/cookbookfiles/formatDate.rb
|
99
|
+
- examples/cookbookfiles/formatDuration.rb
|
100
|
+
- examples/cookbookfiles/formatPercent.rb
|
101
|
+
- examples/cookbookfiles/getAllValuesForFields.rb
|
102
|
+
- examples/cookbookfiles/getAppDTMInfo.rb
|
103
|
+
- examples/cookbookfiles/getApplicationVariable.rb
|
104
|
+
- examples/cookbookfiles/getChildTableDBID.rb
|
105
|
+
- examples/cookbookfiles/getColumnListForReport.rb
|
106
|
+
- examples/cookbookfiles/getFieldChoices.rb
|
107
|
+
- examples/cookbookfiles/getFieldIDs.rb
|
108
|
+
- examples/cookbookfiles/getFieldNames.rb
|
109
|
+
- examples/cookbookfiles/getLastModTime.rb
|
110
|
+
- examples/cookbookfiles/getLastRecModTime.rb
|
111
|
+
- examples/cookbookfiles/getNumRecords.rb
|
112
|
+
- examples/cookbookfiles/getNumTables.rb
|
113
|
+
- examples/cookbookfiles/getRecord.rb
|
114
|
+
- examples/cookbookfiles/getRecordDisplayURL.rb
|
115
|
+
- examples/cookbookfiles/getRecordsAddedToday.rb
|
116
|
+
- examples/cookbookfiles/getRecordsAsJSON.rb
|
117
|
+
- examples/cookbookfiles/getReportNames.rb
|
118
|
+
- examples/cookbookfiles/getRoleInfo.rb
|
119
|
+
- examples/cookbookfiles/getServerStatus.rb
|
120
|
+
- examples/cookbookfiles/getSortListForReport.rb
|
121
|
+
- examples/cookbookfiles/getTableIDs.rb
|
122
|
+
- examples/cookbookfiles/getTableName.rb
|
123
|
+
- examples/cookbookfiles/getTableNames.rb
|
124
|
+
- examples/cookbookfiles/getTimeCreated.rb
|
125
|
+
- examples/cookbookfiles/getTimeInMilliseconds.rb
|
126
|
+
- examples/cookbookfiles/getUserInfo.rb
|
127
|
+
- examples/cookbookfiles/getUserRole.rb
|
128
|
+
- examples/cookbookfiles/intranet.rb
|
129
|
+
- examples/cookbookfiles/isAverageField.rb
|
130
|
+
- examples/cookbookfiles/isDbidString.rb
|
131
|
+
- examples/cookbookfiles/isTotalField.rb
|
132
|
+
- examples/cookbookfiles/iterateDBPages.rb
|
133
|
+
- examples/cookbookfiles/iterateFilteredRecords.rb
|
134
|
+
- examples/cookbookfiles/iterateJoinRecords.rb
|
135
|
+
- examples/cookbookfiles/iterateRecordInfos.rb
|
136
|
+
- examples/cookbookfiles/iterateRecords.rb
|
137
|
+
- examples/cookbookfiles/iterateSummaryRecords.rb
|
138
|
+
- examples/cookbookfiles/iterateUnionRecords.rb
|
139
|
+
- examples/cookbookfiles/listAccessibleApplications.rb
|
140
|
+
- examples/cookbookfiles/logRequestAndResponseXML.rb
|
141
|
+
- examples/cookbookfiles/lookupFieldPropertyByName.rb
|
142
|
+
- examples/cookbookfiles/lookupFieldTypeByName.rb
|
143
|
+
- examples/cookbookfiles/makeCSVFile.rb
|
144
|
+
- examples/cookbookfiles/makerecs.rb
|
145
|
+
- examples/cookbookfiles/makeSlideShow.rb
|
146
|
+
- examples/cookbookfiles/max.rb
|
147
|
+
- examples/cookbookfiles/min.rb
|
148
|
+
- examples/cookbookfiles/percent.rb
|
149
|
+
- examples/cookbookfiles/printChildElements.rb
|
150
|
+
- examples/cookbookfiles/printNewRecords.rb
|
151
|
+
- examples/cookbookfiles/processRESTRequest.rb
|
152
|
+
- examples/cookbookfiles/provisionAndInviteNewUser.rb
|
153
|
+
- examples/cookbookfiles/purgeRecords.rb
|
154
|
+
- examples/cookbookfiles/quickbase_adapter.rb.htm
|
155
|
+
- examples/cookbookfiles/quickbase_record_finder.zip
|
156
|
+
- examples/cookbookfiles/QuickBaseAPICookbook.html
|
157
|
+
- examples/cookbookfiles/recordAndFieldIterator.rb
|
158
|
+
- examples/cookbookfiles/runImport.rb
|
159
|
+
- examples/cookbookfiles/runQuickBaseTwitterConnector.rb
|
160
|
+
- examples/cookbookfiles/sendToQuickBase.rb
|
161
|
+
- examples/cookbookfiles/setDBvar.rb
|
162
|
+
- examples/cookbookfiles/showRequestAndResponseXML.rb
|
163
|
+
- examples/cookbookfiles/sqlQuery.rb
|
164
|
+
- examples/cookbookfiles/stopOnError.rb
|
165
|
+
- examples/cookbookfiles/sum.rb
|
166
|
+
- examples/cookbookfiles/twitterFromQuickBase.rb
|
167
|
+
- examples/cookbookfiles/twitterWithQuickBase.rb
|
168
|
+
- examples/cookbookfiles/uploadCSVData.rb
|
169
|
+
- examples/cookbookfiles/uploadExcelData.rb
|
170
|
+
- examples/cookbookfiles/uploadFileEveryHour.rb
|
171
|
+
- examples/cookbookfiles/uploadFileIntoNewRecord.rb
|
172
|
+
- examples/cookbookfiles/uploadFilesFromFolder.exe
|
173
|
+
- examples/cookbookfiles/uploadFilesFromFolder.rb
|
174
|
+
- examples/cookbookfiles/useCompanyURL.rb
|
175
|
+
- examples/cookbookfiles/userRoles.rb
|
176
|
+
- examples/cookbookfiles/watchCommunityForum.rb
|
177
|
+
- examples/cookbookfiles/wikifyTable.rb
|
178
|
+
- examples/cookbookfiles/xmlShortcuts.rb
|
179
|
+
- examples/pmp/app/controllers/application.rb
|
180
|
+
- examples/pmp/app/controllers/contacts_controller.rb
|
181
|
+
- examples/pmp/app/controllers/document_library_controller.rb
|
182
|
+
- examples/pmp/app/controllers/issues_controller.rb
|
183
|
+
- examples/pmp/app/controllers/projects_controller.rb
|
184
|
+
- examples/pmp/app/controllers/resources_controller.rb
|
185
|
+
- examples/pmp/app/controllers/tasks_controller.rb
|
186
|
+
- examples/pmp/app/controllers/time_cards_controller.rb
|
187
|
+
- examples/pmp/app/helpers/application_helper.rb
|
188
|
+
- examples/pmp/app/helpers/contacts_helper.rb
|
189
|
+
- examples/pmp/app/helpers/document_library_helper.rb
|
190
|
+
- examples/pmp/app/helpers/issues_helper.rb
|
191
|
+
- examples/pmp/app/helpers/projects_helper.rb
|
192
|
+
- examples/pmp/app/helpers/resources_helper.rb
|
193
|
+
- examples/pmp/app/helpers/tasks_helper.rb
|
194
|
+
- examples/pmp/app/helpers/time_cards_helper.rb
|
195
|
+
- examples/pmp/app/models/contacts.rb
|
196
|
+
- examples/pmp/app/models/document_library.rb
|
197
|
+
- examples/pmp/app/models/issues.rb
|
198
|
+
- examples/pmp/app/models/projects.rb
|
199
|
+
- examples/pmp/app/models/resources.rb
|
200
|
+
- examples/pmp/app/models/tasks.rb
|
201
|
+
- examples/pmp/app/models/time_cards.rb
|
202
|
+
- examples/pmp/app/schemas/contacts.xml
|
203
|
+
- examples/pmp/app/schemas/document_library.xml
|
204
|
+
- examples/pmp/app/schemas/issues.xml
|
205
|
+
- examples/pmp/app/schemas/pmp.xml
|
206
|
+
- examples/pmp/app/schemas/projects.xml
|
207
|
+
- examples/pmp/app/schemas/readme.txt
|
208
|
+
- examples/pmp/app/schemas/resources.xml
|
209
|
+
- examples/pmp/app/schemas/tasks.xml
|
210
|
+
- examples/pmp/app/schemas/time_cards.xml
|
211
|
+
- examples/pmp/app/views/contacts/companies.rhtml
|
212
|
+
- examples/pmp/app/views/contacts/project_contacts.rhtml
|
213
|
+
- examples/pmp/app/views/issues/filter_issues.rhtml
|
214
|
+
- examples/pmp/app/views/layouts/application.rhtml
|
215
|
+
- examples/pmp/app/views/projects/all_projects.rhtml
|
216
|
+
- examples/pmp/app/views/projects/home.rhtml
|
217
|
+
- examples/pmp/app/views/projects/my_open_projects.rhtml
|
218
|
+
- examples/pmp/app/views/projects/open_projects.rhtml
|
219
|
+
- examples/pmp/app/views/projects/project_sorted_by_company.rhtml
|
220
|
+
- examples/pmp/app/views/projects/projects_sorted_by_priority.rhtml
|
221
|
+
- examples/pmp/app/views/projects/updated_projects.rhtml
|
222
|
+
- examples/pmp/app/views/tasks/all_tasks.rhtml
|
223
|
+
- examples/pmp/app/views/tasks/search.rhtml
|
224
|
+
- examples/pmp/app/views/tasks/search2.rhtml
|
225
|
+
- examples/pmp/app/views/tasks/search3.rhtml
|
226
|
+
- examples/pmp/app/views/time_cards/summary.rhtml
|
227
|
+
- examples/pmp/config/boot.rb
|
228
|
+
- examples/pmp/config/database.yml
|
229
|
+
- examples/pmp/config/environment.rb
|
230
|
+
- examples/pmp/config/environments/development.rb
|
231
|
+
- examples/pmp/config/environments/production.rb
|
232
|
+
- examples/pmp/config/environments/test.rb
|
233
|
+
- examples/pmp/config/routes.rb
|
234
|
+
- examples/pmp/db/migrate/001_create_projects.rb
|
235
|
+
- examples/pmp/db/migrate/002_create_tasks.rb
|
236
|
+
- examples/pmp/db/migrate/003_create_issues.rb
|
237
|
+
- examples/pmp/db/migrate/004_create_document_libraries.rb
|
238
|
+
- examples/pmp/db/migrate/005_create_resources.rb
|
239
|
+
- examples/pmp/db/migrate/006_create_time_cards.rb
|
240
|
+
- examples/pmp/db/migrate/007_create_contacts.rb
|
241
|
+
- examples/pmp/public/404.html
|
242
|
+
- examples/pmp/public/500.html
|
243
|
+
- examples/pmp/public/app.index.html
|
244
|
+
- examples/pmp/public/dispatch.cgi
|
245
|
+
- examples/pmp/public/dispatch.fcgi
|
246
|
+
- examples/pmp/public/dispatch.rb
|
247
|
+
- examples/pmp/public/favicon.ico
|
248
|
+
- examples/pmp/public/images/rails.png
|
249
|
+
- examples/pmp/public/javascripts/application.js
|
250
|
+
- examples/pmp/public/javascripts/controls.js
|
251
|
+
- examples/pmp/public/javascripts/dragdrop.js
|
252
|
+
- examples/pmp/public/javascripts/effects.js
|
253
|
+
- examples/pmp/public/javascripts/prototype.js
|
254
|
+
- examples/pmp/public/robots.txt
|
255
|
+
- examples/pmp/test/fixtures/contacts.yml
|
256
|
+
- examples/pmp/test/fixtures/document_libraries.yml
|
257
|
+
- examples/pmp/test/fixtures/issues.yml
|
258
|
+
- examples/pmp/test/fixtures/projects.yml
|
259
|
+
- examples/pmp/test/fixtures/resources.yml
|
260
|
+
- examples/pmp/test/fixtures/tasks.yml
|
261
|
+
- examples/pmp/test/fixtures/time_cards.yml
|
262
|
+
- examples/pmp/test/functional/contacts_controller_test.rb
|
263
|
+
- examples/pmp/test/functional/document_library_controller_test.rb
|
264
|
+
- examples/pmp/test/functional/issues_controller_test.rb
|
265
|
+
- examples/pmp/test/functional/projects_controller_test.rb
|
266
|
+
- examples/pmp/test/functional/resources_controller_test.rb
|
267
|
+
- examples/pmp/test/functional/tasks_controller_test.rb
|
268
|
+
- examples/pmp/test/functional/time_cards_controller_test.rb
|
269
|
+
- examples/pmp/test/test_helper.rb
|
270
|
+
- examples/pmp/test/unit/contacts_test.rb
|
271
|
+
- examples/pmp/test/unit/document_library_test.rb
|
272
|
+
- examples/pmp/test/unit/issues_test.rb
|
273
|
+
- examples/pmp/test/unit/projects_test.rb
|
274
|
+
- examples/pmp/test/unit/resources_test.rb
|
275
|
+
- examples/pmp/test/unit/tasks_test.rb
|
276
|
+
- examples/pmp/test/unit/time_cards_test.rb
|
277
|
+
- doc/qbc.makeCSVFile.qbc
|
278
|
+
- doc/qbc.makeCSVFile.rb
|
279
|
+
- doc/quickbase_adapter.rb.htm
|
280
|
+
- doc/QuickBaseClient.rb.htm
|
281
|
+
- doc/ReleaseNotes.txt
|
282
|
+
- lib/qbc.makeCSVFile.rb
|
283
|
+
- lib/quickbase_adapter.rb
|
284
|
+
- lib/QuickBaseClient.rb
|
285
|
+
- lib/QuickBaseCommandLineClient.rb
|
286
|
+
- lib/QuickBaseContactsAppBuilder.rb
|
287
|
+
- lib/QuickBaseEmailer.rb
|
288
|
+
- lib/QuickBaseEventNotifier.rb
|
289
|
+
- lib/QuickBaseMisc.rb
|
290
|
+
- lib/QuickBaseObjects.rb
|
291
|
+
- lib/QuickBaseRSSGenerator.rb
|
292
|
+
- lib/QuickBaseTextData.rb
|
293
|
+
- lib/QuickBaseTwitterConnector.rb
|
294
|
+
- lib/QuickBaseWebClient.rb
|
295
|
+
- lib/runFieldEntryDialog.rb
|
296
|
+
- lib/runOfflineFieldEntryDialog.rb
|
297
|
+
- lib/WorkPlaceClient.rb
|
298
|
+
- lib/qbc.makeCSVFile.qbc
|
299
|
+
- test/spec_all_tests.rb
|
300
|
+
- test/spec_smoke_tests.rb
|
301
|
+
- test/spec_workplace_addrecord_test.rb
|
302
|
+
- test/spec_workplace_base_test.rb
|
303
|
+
- test/spec_workplace_editrecord_test.rb
|
304
|
+
- test/spec_workplace_json_test.rb
|
305
|
+
- test/spec_workplace_objects_test.rb
|
306
|
+
- test/spec_workplace_smoke_tests.rb
|
307
|
+
- test/run_tests.bat
|
308
|
+
has_rdoc: true
|
309
|
+
homepage: https://code.intuit.com/sf/projects/ipp_dev_kits
|
310
|
+
licenses: []
|
311
|
+
|
312
|
+
post_install_message: |
|
313
|
+
**************************************************
|
314
|
+
|
315
|
+
Thank you for installing ipp_quickbase_devkit.
|
316
|
+
Distributed under the Eclipse Public License Version 1.0.
|
317
|
+
|
318
|
+
**************************************************
|
319
|
+
|
320
|
+
rdoc_options:
|
321
|
+
- --line-numbers
|
322
|
+
- --inline-source
|
323
|
+
- --main
|
324
|
+
- README.rdoc
|
325
|
+
- --title
|
326
|
+
- "ipp_quickbase_devkit: Ruby client for database applications on www.quickbase.com and workplace.intuit.com"
|
327
|
+
require_paths:
|
328
|
+
- lib
|
329
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
330
|
+
requirements:
|
331
|
+
- - ">="
|
332
|
+
- !ruby/object:Gem::Version
|
333
|
+
segments:
|
334
|
+
- 1
|
335
|
+
- 8
|
336
|
+
- 6
|
337
|
+
version: 1.8.6
|
338
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
339
|
+
requirements:
|
340
|
+
- - ">="
|
341
|
+
- !ruby/object:Gem::Version
|
342
|
+
segments:
|
343
|
+
- 0
|
344
|
+
version: "0"
|
345
|
+
requirements: []
|
346
|
+
|
347
|
+
rubyforge_project: orphans
|
348
|
+
rubygems_version: 1.3.6
|
349
|
+
signing_key:
|
350
|
+
specification_version: 3
|
351
|
+
summary: The ipp_quickbase_devkit is a Ruby wrapper for the QuickBase HTTP API.
|
352
|
+
test_files: []
|
353
|
+
|