advantage_quickbase 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/quickbase.rb +7 -2
  2. metadata +1 -1
data/lib/quickbase.rb CHANGED
@@ -17,7 +17,7 @@ module AdvantageQuickbase
17
17
  }
18
18
  request_xml = build_request_xml( data )
19
19
 
20
- @http = Net::HTTP.new( base_url, 443 )
20
+ @http = Net::HTTP.new( base_domain, 443 )
21
21
  @http.use_ssl = true
22
22
  @http.verify_mode = OpenSSL::SSL::VERIFY_NONE
23
23
 
@@ -67,6 +67,7 @@ module AdvantageQuickbase
67
67
 
68
68
  def add_record( db_id, new_values )
69
69
  xml = build_update_xml( new_values )
70
+
70
71
  result = send_request( :addRecord, db_id, nil, xml )
71
72
 
72
73
  get_tag_value( result, :rid )
@@ -124,7 +125,11 @@ module AdvantageQuickbase
124
125
  end
125
126
 
126
127
  def base_url
127
- "https://#{@domain}.quickbase.com"
128
+ "https://#{base_domain}"
129
+ end
130
+
131
+ def base_domain
132
+ "#{@domain}.quickbase.com"
128
133
  end
129
134
 
130
135
  def build_request_xml( tags )
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.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: