activesalesforce 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/asf_adapter.rb +41 -46
- data/lib/result_array.rb +34 -0
- data/lib/rforce.rb +90 -79
- data/test/unit/basic_test.rb +40 -4
- data/test/unit/profiler_results.txt +1072 -0
- data/test/unit/profiler_results_live.txt +1347 -0
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_add_notes_to_contact.recording +1050 -1017
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_assignment_rule_id.recording +1078 -0
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_batch_insert.recording +674 -644
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_count_contacts.recording +770 -708
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_create_a_contact.recording +731 -706
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_find_a_contact.recording +741 -716
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_find_a_contact_by_first_name.recording +1026 -764
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_find_a_contact_by_id.recording +791 -764
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_find_addresses.recording +1297 -0
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_get_created_by_from_contact.recording +2325 -2280
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_master_detail.recording +1315 -1302
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_read_all_content_columns.recording +691 -666
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_save_a_contact.recording +741 -716
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_use_default_rule.recording +1078 -0
- data/test/unit/recorded_results/AsfUnitTestsBasicTest.test_use_update_mru.recording +1078 -0
- data/test/unit/recorded_test_case.rb +1 -4
- data/test/unit/test.html +157 -0
- data/test/unit/test.html~ +183 -0
- metadata +26 -18
- data/test/unit/recorded_results/AsfUnitTestsAsfScaffoldGeneratorTest.test_describe_layout.recording +0 -1789
@@ -17,10 +17,7 @@
|
|
17
17
|
|
18
18
|
|
19
19
|
require 'test/unit'
|
20
|
-
require 'mock_binding'
|
21
|
-
|
22
20
|
require 'set'
|
23
|
-
|
24
21
|
require 'pp'
|
25
22
|
|
26
23
|
|
@@ -65,7 +62,7 @@ module Asf
|
|
65
62
|
@recording = (((not File.exists?(recording_file_name)) or config[:recording]) or @force_recording.include?(method_name.to_sym))
|
66
63
|
|
67
64
|
action = { :adapter => 'activesalesforce', :username => config[:username],
|
68
|
-
:password => config[:password], :recording_source => recording_file_name
|
65
|
+
:password => config[:password], :recording_source => recording_file_name }
|
69
66
|
|
70
67
|
action[:recording] = true if @recording
|
71
68
|
|
data/test/unit/test.html
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
<table>
|
2
|
+
<tr>
|
3
|
+
<td>Contact Owner</td>
|
4
|
+
<td>
|
5
|
+
@contact.owner_id
|
6
|
+
</td>
|
7
|
+
<td>Phone</td>
|
8
|
+
<td>
|
9
|
+
@contact.phone
|
10
|
+
</td>
|
11
|
+
</tr>
|
12
|
+
<tr>
|
13
|
+
<td>Name</td>
|
14
|
+
<td>
|
15
|
+
@contact.salutation
|
16
|
+
@contact.first_name
|
17
|
+
@contact.last_name
|
18
|
+
</td>
|
19
|
+
<td>Home Phone</td>
|
20
|
+
<td>
|
21
|
+
@contact.home_phone
|
22
|
+
</td>
|
23
|
+
</tr>
|
24
|
+
<tr>
|
25
|
+
<td>Account</td>
|
26
|
+
<td>
|
27
|
+
@contact.account_id
|
28
|
+
</td>
|
29
|
+
<td>Mobile</td>
|
30
|
+
<td>
|
31
|
+
@contact.mobile_phone
|
32
|
+
</td>
|
33
|
+
</tr>
|
34
|
+
<tr>
|
35
|
+
<td>Title</td>
|
36
|
+
<td>
|
37
|
+
@contact.title
|
38
|
+
</td>
|
39
|
+
<td>Other Phone</td>
|
40
|
+
<td>
|
41
|
+
@contact.other_phone
|
42
|
+
</td>
|
43
|
+
</tr>
|
44
|
+
<tr>
|
45
|
+
<td>Department</td>
|
46
|
+
<td>
|
47
|
+
@contact.department
|
48
|
+
</td>
|
49
|
+
<td>Fax</td>
|
50
|
+
<td>
|
51
|
+
@contact.fax
|
52
|
+
</td>
|
53
|
+
</tr>
|
54
|
+
<tr>
|
55
|
+
<td>Birthdate</td>
|
56
|
+
<td>
|
57
|
+
@contact.birthdate
|
58
|
+
</td>
|
59
|
+
<td>Email</td>
|
60
|
+
<td>
|
61
|
+
@contact.email
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td>Reports To</td>
|
66
|
+
<td>
|
67
|
+
@contact.reports_to_id
|
68
|
+
</td>
|
69
|
+
<td>Assistant</td>
|
70
|
+
<td>
|
71
|
+
@contact.assistant_name
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<td>Lead Source</td>
|
76
|
+
<td>
|
77
|
+
@contact.lead_source
|
78
|
+
</td>
|
79
|
+
<td>Asst. Phone</td>
|
80
|
+
<td>
|
81
|
+
@contact.assistant_phone
|
82
|
+
</td>
|
83
|
+
</tr>
|
84
|
+
<tr>
|
85
|
+
<td>f1</td>
|
86
|
+
<td>
|
87
|
+
@contact.f1__c
|
88
|
+
</td>
|
89
|
+
<td></td>
|
90
|
+
<td>
|
91
|
+
</td>
|
92
|
+
</tr>
|
93
|
+
<tr>
|
94
|
+
<td>f2</td>
|
95
|
+
<td>
|
96
|
+
@contact.f2__c
|
97
|
+
</td>
|
98
|
+
<td></td>
|
99
|
+
<td>
|
100
|
+
</td>
|
101
|
+
</tr>
|
102
|
+
<tr>
|
103
|
+
<td>CustomUserRel</td>
|
104
|
+
<td>
|
105
|
+
@contact.custom_user_rel_id__c
|
106
|
+
</td>
|
107
|
+
<td></td>
|
108
|
+
<td>
|
109
|
+
</td>
|
110
|
+
</tr>
|
111
|
+
<tr>
|
112
|
+
<td>Mailing Address</td>
|
113
|
+
<td>
|
114
|
+
@contact.mailing_street
|
115
|
+
@contact.mailing_city
|
116
|
+
@contact.mailing_state
|
117
|
+
@contact.mailing_postal_code
|
118
|
+
@contact.mailing_country
|
119
|
+
</td>
|
120
|
+
<td>Other Address</td>
|
121
|
+
<td>
|
122
|
+
@contact.other_street
|
123
|
+
@contact.other_city
|
124
|
+
@contact.other_state
|
125
|
+
@contact.other_postal_code
|
126
|
+
@contact.other_country
|
127
|
+
</td>
|
128
|
+
</tr>
|
129
|
+
<tr>
|
130
|
+
<td>Languages</td>
|
131
|
+
<td>
|
132
|
+
@contact.languages__c
|
133
|
+
</td>
|
134
|
+
<td>Level</td>
|
135
|
+
<td>
|
136
|
+
@contact.level__c
|
137
|
+
</td>
|
138
|
+
</tr>
|
139
|
+
<tr>
|
140
|
+
<td>Created By</td>
|
141
|
+
<td>
|
142
|
+
@contact.created_by_id
|
143
|
+
@contact.created_date
|
144
|
+
</td>
|
145
|
+
<td>Last Modified By</td>
|
146
|
+
<td>
|
147
|
+
@contact.last_modified_by_id
|
148
|
+
@contact.last_modified_date
|
149
|
+
</td>
|
150
|
+
</tr>
|
151
|
+
<tr>
|
152
|
+
<td>Description</td>
|
153
|
+
<td>
|
154
|
+
@contact.description
|
155
|
+
</td>
|
156
|
+
</tr>
|
157
|
+
</table>
|
@@ -0,0 +1,183 @@
|
|
1
|
+
Loaded suite asf_scaffold_generator_test
|
2
|
+
Started
|
3
|
+
|
4
|
+
Starting test 'AsfUnitTestsAsfScaffoldGeneratorTest.test_describe_layout'
|
5
|
+
Opening recorded binding ./recorded_results/AsfUnitTestsAsfScaffoldGeneratorTest.test_describe_layout.recording
|
6
|
+
|
7
|
+
Using ActiveSalesforce connection
|
8
|
+
|
9
|
+
via provided binding #<MockBinding:0x2aaaaccc07d8>
|
10
|
+
|
11
|
+
Creating ActiveRecord stub for the referenced entity 'Account'
|
12
|
+
Creating ActiveRecord stub for the referenced entity 'RecordType'
|
13
|
+
Creating ActiveRecord stub for the referenced entity 'User'
|
14
|
+
Creating ActiveRecord stub for the referenced entity 'AccountContactRole'
|
15
|
+
Creating ActiveRecord stub for the referenced entity 'CampaignMember'
|
16
|
+
Creating ActiveRecord stub for the referenced entity 'ContractContactRole'
|
17
|
+
Creating ActiveRecord stub for the referenced entity 'Event'
|
18
|
+
Creating ActiveRecord stub for the referenced entity 'EventAttendee'
|
19
|
+
Creating ActiveRecord stub for the referenced entity 'Note'
|
20
|
+
Creating ActiveRecord stub for the referenced entity 'OpportunityContactRole'
|
21
|
+
Creating ActiveRecord stub for the referenced entity 'Task'
|
22
|
+
[4;36;1mget_entity_def() (0.015255)[0m [0;1mRetrieving metadata for 'Contact'[0m
|
23
|
+
<table>
|
24
|
+
<tr>
|
25
|
+
<td>Contact Owner</td>
|
26
|
+
<td>
|
27
|
+
@contact.owner_id
|
28
|
+
</td>
|
29
|
+
<td>Phone</td>
|
30
|
+
<td>
|
31
|
+
@contact.phone
|
32
|
+
</td>
|
33
|
+
</tr>
|
34
|
+
<tr>
|
35
|
+
<td>Name</td>
|
36
|
+
<td>
|
37
|
+
@contact.salutation
|
38
|
+
@contact.first_name
|
39
|
+
@contact.last_name
|
40
|
+
</td>
|
41
|
+
<td>Home Phone</td>
|
42
|
+
<td>
|
43
|
+
@contact.home_phone
|
44
|
+
</td>
|
45
|
+
</tr>
|
46
|
+
<tr>
|
47
|
+
<td>Account</td>
|
48
|
+
<td>
|
49
|
+
@contact.account_id
|
50
|
+
</td>
|
51
|
+
<td>Mobile</td>
|
52
|
+
<td>
|
53
|
+
@contact.mobile_phone
|
54
|
+
</td>
|
55
|
+
</tr>
|
56
|
+
<tr>
|
57
|
+
<td>Title</td>
|
58
|
+
<td>
|
59
|
+
@contact.title
|
60
|
+
</td>
|
61
|
+
<td>Other Phone</td>
|
62
|
+
<td>
|
63
|
+
@contact.other_phone
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<td>Department</td>
|
68
|
+
<td>
|
69
|
+
@contact.department
|
70
|
+
</td>
|
71
|
+
<td>Fax</td>
|
72
|
+
<td>
|
73
|
+
@contact.fax
|
74
|
+
</td>
|
75
|
+
</tr>
|
76
|
+
<tr>
|
77
|
+
<td>Birthdate</td>
|
78
|
+
<td>
|
79
|
+
@contact.birthdate
|
80
|
+
</td>
|
81
|
+
<td>Email</td>
|
82
|
+
<td>
|
83
|
+
@contact.email
|
84
|
+
</td>
|
85
|
+
</tr>
|
86
|
+
<tr>
|
87
|
+
<td>Reports To</td>
|
88
|
+
<td>
|
89
|
+
@contact.reports_to_id
|
90
|
+
</td>
|
91
|
+
<td>Assistant</td>
|
92
|
+
<td>
|
93
|
+
@contact.assistant_name
|
94
|
+
</td>
|
95
|
+
</tr>
|
96
|
+
<tr>
|
97
|
+
<td>Lead Source</td>
|
98
|
+
<td>
|
99
|
+
@contact.lead_source
|
100
|
+
</td>
|
101
|
+
<td>Asst. Phone</td>
|
102
|
+
<td>
|
103
|
+
@contact.assistant_phone
|
104
|
+
</td>
|
105
|
+
</tr>
|
106
|
+
<tr>
|
107
|
+
<td>f1</td>
|
108
|
+
<td>
|
109
|
+
@contact.f1__c
|
110
|
+
</td>
|
111
|
+
<td></td>
|
112
|
+
<td>
|
113
|
+
</td>
|
114
|
+
</tr>
|
115
|
+
<tr>
|
116
|
+
<td>f2</td>
|
117
|
+
<td>
|
118
|
+
@contact.f2__c
|
119
|
+
</td>
|
120
|
+
<td></td>
|
121
|
+
<td>
|
122
|
+
</td>
|
123
|
+
</tr>
|
124
|
+
<tr>
|
125
|
+
<td>CustomUserRel</td>
|
126
|
+
<td>
|
127
|
+
@contact.custom_user_rel_id__c
|
128
|
+
</td>
|
129
|
+
<td></td>
|
130
|
+
<td>
|
131
|
+
</td>
|
132
|
+
</tr>
|
133
|
+
<tr>
|
134
|
+
<td>Mailing Address</td>
|
135
|
+
<td>
|
136
|
+
@contact.mailing_street
|
137
|
+
@contact.mailing_city
|
138
|
+
@contact.mailing_state
|
139
|
+
@contact.mailing_postal_code
|
140
|
+
@contact.mailing_country
|
141
|
+
</td>
|
142
|
+
<td>Other Address</td>
|
143
|
+
<td>
|
144
|
+
@contact.other_street
|
145
|
+
@contact.other_city
|
146
|
+
@contact.other_state
|
147
|
+
@contact.other_postal_code
|
148
|
+
@contact.other_country
|
149
|
+
</td>
|
150
|
+
</tr>
|
151
|
+
<tr>
|
152
|
+
<td>Languages</td>
|
153
|
+
<td>
|
154
|
+
@contact.languages__c
|
155
|
+
</td>
|
156
|
+
<td>Level</td>
|
157
|
+
<td>
|
158
|
+
@contact.level__c
|
159
|
+
</td>
|
160
|
+
</tr>
|
161
|
+
<tr>
|
162
|
+
<td>Created By</td>
|
163
|
+
<td>
|
164
|
+
@contact.created_by_id
|
165
|
+
@contact.created_date
|
166
|
+
</td>
|
167
|
+
<td>Last Modified By</td>
|
168
|
+
<td>
|
169
|
+
@contact.last_modified_by_id
|
170
|
+
@contact.last_modified_date
|
171
|
+
</td>
|
172
|
+
</tr>
|
173
|
+
<tr>
|
174
|
+
<td>Description</td>
|
175
|
+
<td>
|
176
|
+
@contact.description
|
177
|
+
</td>
|
178
|
+
</tr>
|
179
|
+
</table>
|
180
|
+
.
|
181
|
+
Finished in 0.038965 seconds.
|
182
|
+
|
183
|
+
1 tests, 0 assertions, 0 failures, 0 errors
|
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.4.
|
7
|
-
date: 2006-03-
|
6
|
+
version: 0.4.4
|
7
|
+
date: 2006-03-13 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
|
@@ -28,34 +28,42 @@ cert_chain:
|
|
28
28
|
authors:
|
29
29
|
- Doug Chasman
|
30
30
|
files:
|
31
|
-
- lib/activesalesforce.rb
|
32
|
-
- lib/asf_active_record.rb
|
33
|
-
- lib/asf_adapter.rb
|
34
31
|
- lib/boxcar_command.rb
|
32
|
+
- lib/recording_binding.rb
|
35
33
|
- lib/column_definition.rb
|
34
|
+
- lib/activesalesforce.rb
|
36
35
|
- lib/entity_definition.rb
|
37
|
-
- lib/id_resolver.rb
|
38
|
-
- lib/recording_binding.rb
|
39
|
-
- lib/relationship_definition.rb
|
40
36
|
- lib/rforce.rb
|
37
|
+
- lib/asf_adapter.rb
|
41
38
|
- lib/sid_authentication_filter.rb
|
39
|
+
- lib/relationship_definition.rb
|
40
|
+
- lib/result_array.rb
|
41
|
+
- lib/id_resolver.rb
|
42
|
+
- lib/asf_active_record.rb
|
42
43
|
- test/unit
|
44
|
+
- test/unit/recorded_test_case.rb
|
43
45
|
- test/unit/basic_test.rb
|
46
|
+
- test/unit/test.html~
|
44
47
|
- test/unit/config.yml
|
48
|
+
- test/unit/profiler_results.txt
|
45
49
|
- test/unit/recorded_results
|
46
|
-
- test/unit/
|
47
|
-
- test/unit/
|
48
|
-
- test/unit/recorded_results/AsfUnitTestsBasicTest.
|
49
|
-
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_batch_insert.recording
|
50
|
-
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_count_contacts.recording
|
51
|
-
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_create_a_contact.recording
|
50
|
+
- test/unit/test.html
|
51
|
+
- test/unit/profiler_results_live.txt
|
52
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_use_default_rule.recording
|
52
53
|
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_find_a_contact.recording
|
54
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_batch_insert.recording
|
55
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_read_all_content_columns.recording
|
56
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_use_update_mru.recording
|
57
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_find_addresses.recording
|
58
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_save_a_contact.recording
|
59
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_add_notes_to_contact.recording
|
53
60
|
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_find_a_contact_by_first_name.recording
|
61
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_create_a_contact.recording
|
54
62
|
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_find_a_contact_by_id.recording
|
55
|
-
- test/unit/recorded_results/AsfUnitTestsBasicTest.
|
63
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_count_contacts.recording
|
56
64
|
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_master_detail.recording
|
57
|
-
- test/unit/recorded_results/AsfUnitTestsBasicTest.
|
58
|
-
- test/unit/recorded_results/AsfUnitTestsBasicTest.
|
65
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_assignment_rule_id.recording
|
66
|
+
- test/unit/recorded_results/AsfUnitTestsBasicTest.test_get_created_by_from_contact.recording
|
59
67
|
- README
|
60
68
|
test_files: []
|
61
69
|
|
@@ -95,5 +103,5 @@ dependencies:
|
|
95
103
|
requirements:
|
96
104
|
- - ">="
|
97
105
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.
|
106
|
+
version: 0.1.1
|
99
107
|
version:
|