advantage_quickbase 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/quickbase.rb +4 -11
  2. metadata +13 -9
  3. checksums.yaml +0 -7
data/lib/quickbase.rb CHANGED
@@ -89,14 +89,7 @@ module AdvantageQuickbase
89
89
  result.css( 'record' ).each do |record|
90
90
  json_record = {}
91
91
  record.css( 'f' ).each do |field|
92
- if field.css("url").text != ""
93
- fieldname = Nokogiri::XML.parse(field.to_html.gsub(/<url.*?<\/url>/, "")).text
94
- value = { :filename => fieldname, :url => field.css("url").text }
95
- else
96
- value = field.text
97
- end
98
-
99
- json_record[ field['id'] ] = value
92
+ json_record[ field['id'] ] = field.text
100
93
  end
101
94
 
102
95
  return_json << json_record
@@ -116,13 +109,13 @@ module AdvantageQuickbase
116
109
  xml = build_update_xml( new_values, record_id )
117
110
  result = send_request( :editRecord, db_id, nil, xml )
118
111
 
119
- get_tag_value( result, :rid ).to_s == record_id.to_s
112
+ get_tag_value( result, :rid ).to_i > 0
120
113
  end
121
114
 
122
115
  def delete_record( db_id, record_id )
123
116
  result = send_request( :deleteRecord, db_id, {rid: record_id} )
124
117
 
125
- get_tag_value( result, :rid ).to_s == record_id.to_s
118
+ get_tag_value( result, :rid ).to_i > 0
126
119
  end
127
120
 
128
121
  def purge_records ( db_id, options={} )
@@ -161,7 +154,7 @@ module AdvantageQuickbase
161
154
  xml = build_csv_xml( import_data, columns )
162
155
 
163
156
  result = send_request( :importFromCSV, db_id, nil, xml )
164
- result.css('rid').map{ |xml_node| xml_node.text.to_i }
157
+ result = result.css('rid').map{ |xml_node| xml_node.text.to_i }
165
158
  end
166
159
 
167
160
  result
metadata CHANGED
@@ -1,27 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advantage_quickbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ben Roux
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-12-10 00:00:00.000000000 Z
12
+ date: 2015-01-20 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: nokogiri
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  description: Fast, concise implementation of select Quickbase API functions
@@ -36,25 +39,26 @@ files:
36
39
  homepage: https://github.com/AdvantageIntegratedSolutions/Quickbase-Gem
37
40
  licenses:
38
41
  - MIT
39
- metadata: {}
40
42
  post_install_message:
41
43
  rdoc_options: []
42
44
  require_paths:
43
45
  - lib
44
46
  required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
45
48
  requirements:
46
- - - '>='
49
+ - - ! '>='
47
50
  - !ruby/object:Gem::Version
48
51
  version: '0'
49
52
  required_rubygems_version: !ruby/object:Gem::Requirement
53
+ none: false
50
54
  requirements:
51
- - - '>='
55
+ - - ! '>='
52
56
  - !ruby/object:Gem::Version
53
57
  version: '0'
54
58
  requirements: []
55
59
  rubyforge_project:
56
- rubygems_version: 2.2.2
60
+ rubygems_version: 1.8.25
57
61
  signing_key:
58
- specification_version: 4
62
+ specification_version: 3
59
63
  summary: Quickbase API gem
60
64
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: fe47c8975211345df28aca2da95cad99b0a6436d
4
- data.tar.gz: 3ee49059e2ab48a755c5fc6d0c45865099028072
5
- SHA512:
6
- metadata.gz: 1e459a44dbd161924279824b5862afbd5edd2859283439408a7dfc72f203cc581ed021d3f59a68280f6a8c022d5711b785a8b55d8e60dd0328f72115c1392e2a
7
- data.tar.gz: 015f89cd0afbd9b4c47b4f429f90ae7ea0176037226f7aa73896b099e8f8b6c4ae58a7cd2700e0fd34d655e01b3c6373bd6a0eae9b9e6acec18e426bcc960c43