activesalesforce 1.1.5 → 1.1.6
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/rforce.rb +12 -1
- data/test/unit/basic_test.rb +2 -1
- metadata +2 -2
data/lib/rforce.rb
CHANGED
@@ -128,7 +128,8 @@ module RForce
|
|
128
128
|
#Implements the connection to the SalesForce server.
|
129
129
|
class Binding
|
130
130
|
DEFAULT_BATCH_SIZE = 10
|
131
|
-
attr_accessor :batch_size, :url, :assignment_rule_id, :use_default_rule, :update_mru, :client_id
|
131
|
+
attr_accessor :batch_size, :url, :assignment_rule_id, :use_default_rule, :update_mru, :client_id, :trigger_user_email,
|
132
|
+
:trigger_other_email, :trigger_auto_response_email
|
132
133
|
|
133
134
|
#Fill in the guts of this typical SOAP envelope
|
134
135
|
#with the session ID and the body of the SOAP request.
|
@@ -217,6 +218,16 @@ module RForce
|
|
217
218
|
extra_headers << AssignmentRuleHeaderUsingDefaultRule if use_default_rule
|
218
219
|
extra_headers << MruHeader if update_mru
|
219
220
|
extra_headers << (ClientIdHeader % client_id) if client_id
|
221
|
+
|
222
|
+
if trigger_user_email or trigger_other_email or trigger_auto_response_email
|
223
|
+
extra_headers << '<partner:EmailHeader soap:mustUnderstand="1">'
|
224
|
+
|
225
|
+
extra_headers << '<partner:triggerUserEmail>true</partner:triggerUserEmail>' if trigger_user_email
|
226
|
+
extra_headers << '<partner:triggerOtherEmail>true</partner:triggerOtherEmail>' if trigger_other_email
|
227
|
+
extra_headers << '<partner:triggerAutoResponseEmail>true</partner:triggerAutoResponseEmail>' if trigger_auto_response_email
|
228
|
+
|
229
|
+
extra_headers << '</partner:EmailHeader>'
|
230
|
+
end
|
220
231
|
|
221
232
|
#Fill in the blanks of the SOAP envelope with our
|
222
233
|
#session ID and the expanded XML of our request.
|
data/test/unit/basic_test.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: activesalesforce
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.1.
|
7
|
-
date: 2007-
|
6
|
+
version: 1.1.6
|
7
|
+
date: 2007-05-24 00:00:00 -04: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
|