advantage_quickbase 0.6.7 → 0.6.8
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/lib/quickbase.rb +4 -8
- metadata +3 -3
data/lib/quickbase.rb
CHANGED
@@ -10,7 +10,7 @@ require_relative 'table'
|
|
10
10
|
module AdvantageQuickbase
|
11
11
|
class API
|
12
12
|
|
13
|
-
attr_accessor :ticket
|
13
|
+
attr_accessor :ticket, :app_token
|
14
14
|
|
15
15
|
include User
|
16
16
|
include Table
|
@@ -26,14 +26,9 @@ module AdvantageQuickbase
|
|
26
26
|
}
|
27
27
|
else #authenticate with existing ticket
|
28
28
|
@ticket = ticket if ticket
|
29
|
-
|
30
|
-
data = {}
|
29
|
+
@app_token = app_token if app_token
|
31
30
|
|
32
|
-
|
33
|
-
data = {
|
34
|
-
apptoken: app_token
|
35
|
-
}
|
36
|
-
end
|
31
|
+
data = {}
|
37
32
|
end
|
38
33
|
|
39
34
|
request_xml = build_request_xml( data )
|
@@ -285,6 +280,7 @@ module AdvantageQuickbase
|
|
285
280
|
xml = '<qdbapi>'
|
286
281
|
xml += tags.map{ |name, value| "<#{name}>#{value}</#{name}>" }.join()
|
287
282
|
xml += "<ticket>#{@ticket}</ticket>"
|
283
|
+
xml += "<apptoken>#{@app_token}</apptoken>"
|
288
284
|
xml += '</qdbapi>'
|
289
285
|
end
|
290
286
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: advantage_quickbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2014-06-04 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
|
-
requirement: &
|
16
|
+
requirement: &70208847439320 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70208847439320
|
25
25
|
description: Fast, concise implementation of select Quickbase API functions
|
26
26
|
email: liquid.ise@gmail.com
|
27
27
|
executables: []
|