activesalesforce 0.2.5 → 0.2.6

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/asf_adapter.rb +6 -0
  2. metadata +2 -2
data/lib/asf_adapter.rb CHANGED
@@ -62,6 +62,12 @@ module ActiveRecord
62
62
 
63
63
  ConnectionAdapters::SalesforceAdapter.new(connection, logger, [url, sid], config)
64
64
  else
65
+ # Default to production system using 7.0 API
66
+ url = "https://www.salesforce.com/services/Soap/u/7.0" unless url
67
+
68
+ # Check to insure that the second to last path component is a 'u' for Partner API
69
+ raise ConnectionAdapters::SalesforceError.new(logger, "Invalid salesforce server url '#{url}', must be a valid Parter API URL") unless url.match(/\/u\//i)
70
+
65
71
  username = config[:username]
66
72
  password = config[:password]
67
73
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: activesalesforce
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.5
7
- date: 2006-02-17 00:00:00 -05:00
6
+ version: 0.2.6
7
+ date: 2006-02-18 00:00:00 -05:00
8
8
  summary: ActiveSalesforce (ASF) is a Rails connection adapter that provides direct access to Salesforce.com hosted data and metadata via the ActiveRecord model layer. Objects, fields, and relationships are all auto surfaced as active record attributes and rels.
9
9
  require_paths:
10
10
  - lib