infopark_crm_connector 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +0 -1
- data/README.markdown +103 -3
- data/lib/crm_connector/core/resource.rb +17 -4
- metadata +6 -7
- data/CHANGELOG.markdown +0 -94
data/.yardopts
CHANGED
data/README.markdown
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
<img alt="Infopark WebCRM Connector" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkAAAAC8CAMAAACni+FPAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAwBQTFRF/+Rcp6aj6enp58VdxEFKrZZO6TpHFxcXZmZmtTxFU1NTukBJ5ubmntf8WKLs/91bbxQZ+jhG//yN+Pj4//96mpqZdXZ1yy45xcXC/md0xTlD4eHg9vb2H23gKysrK1aV+9NW/UhWhoaGR0dH3d3d/+hd2NjY9PPz//Rjs7Oy/ltp/8jVxKlVXV1dw7y88vLyYmJi/+xfw8K+1tXV//6o8ctS//5tvb25Mmau7+/v/7jGs6io7u7u0NDQ/nSBBgYGzs7Np4+RwOz+WFhYgRQbIiIiycnE7OzspzQ8/9lYy6k9yMLCUW+c3z1J4sBb0dHN9NZki2lr0szN3b1avLO0kIpvbW1tMl+huaBSODg4ujU+ycnJqbTF27pVu7u2nIhL/4eTiSgt07NS//lminpJ/6m41dXRpRQb/tZXkEpP3d3ZrjlB2trWzUBKw6ZO2rVCzc3I1j9KNYz0bY3A/T9N9MtK39/e2vv/opRnL1qaYVc6KVKPuVorzsnJ0TpFLkNpoaGgd2pB3TlFeVBTaTA8zK9V///U+Sk4Tltu2yAr0bRZyXY2ty43txggJ02I8UVRHTlk//6958BIuJo9/5mm3jRA3dTV7P//m25x7T9Lqio0/1Fe/vRx+9RQ//BgIF+9d7z2tdPai6C+sLCvU2N/i4+W05FD/9HfqUJK///o//X/vyUuhTZCzzVA/+Bbv8TJ989U8dFf19HRxMnPyxcf/O1yoX6Ay9DToJqAfX19///x17ha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RBCiscwCoiDSToP6NU1yoEfxrSAPx8aDnIdaD6OH4CPy49L8dHCABII8taIJuZV8WvIhlhJhjowgKQIlEDqQHQwPo4fjI9gP4cel+en4AIkEiWEMupBbRYjm1AQi4EX5HCSEEmGpXnQcTg5CB7HDvUeix4CP5qfDA2SGEGNIDmUqRQJIDfkNovzIH9hBmE/BEchJFLNmCo9AT52BHo1PxwVIJEjOpiFCjCG7wBDOiRSMrEXLcXQ4PSb4EPPR/NwtAMkIeQwIcYYkiOKpl6S1qsTERDN4+H4F89H43IUAqQi5BIRMGWIQSSRRmhKNokWjogzwYHp84KP5uQsAUhBSsiEMkUCRnXIQb6JE46ooUQZ2CDzm9Gh87hKADAhJoYwyJEIkcNQ22UV2FHgs6NH43EUAqQhBG3KJDFGIFIogFz65kcER4GHWQ+nR+NzdABkQQj6EL6ioQmTAqG2CD8Ps8NkaFuaj8bkLATJhSDh9w5SjNqAkFWa7ENDR8HyLADJjiF8RRsZI5qgViY8T2XEZn05X4t0NkBlCHlbftQpGt0QPad35gEfT820AyJwhgSLaSBNUZyK1jPB4l+kT6Or71gBkTZEM0q3Laqe66r59APmC6JZB8rUjXW3fXoBapcgHTW15mK6xfwaA2kzRLUlX1j8XQN8oRLqi/jkB+oc50hWkAdLSAGlpaYC0NEBaGiAtDZCWlgZISwOkpQHS0gBpaYC0tDRAWhogLQ2QlgZIS0sDpHW79P8FGABxayM7vTb0IAAAAABJRU5ErkJggg==" />
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/infopark/crm_connector.png?branch=master)](https://travis-ci.org/infopark/crm_connector)
|
3
4
|
|
4
|
-
Infopark WebCRM Connector is the official Ruby SDK for [Infopark WebCRM](http://www.infopark.de/webcrm). It basically wraps the [WebCRM web services API](http://kb.infopark.de/crm-api) using [Active Resource](http://rubydoc.info/gems/activeresource/
|
5
|
+
Infopark WebCRM Connector is the official Ruby SDK for [Infopark WebCRM](http://www.infopark.de/webcrm). It basically wraps the [WebCRM web services API](http://kb.infopark.de/crm-api) using [Active Resource](http://rubydoc.info/gems/activeresource/). Currently, Active Resource 3.0, 3.1 and 3.2 in combination with Ruby 1.8.7, 1.9.x and 2.0.0 are tested and supported.
|
5
6
|
|
6
7
|
# Installation
|
7
8
|
|
@@ -101,10 +102,109 @@ Run tests with all supported versions of Active Resource:
|
|
101
102
|
|
102
103
|
# Changelog
|
103
104
|
|
104
|
-
|
105
|
+
## Version 1.0.1 - 2013-03-20
|
106
|
+
* Added continuous integration of travis-ci.org (see [travis-ci.org/infopark/crm_connector](https://travis-ci.org/infopark/crm_connector/))
|
107
|
+
* Bugfix: Default attributes are inherited to subclasses (fixes [Issue #1](https://github.com/infopark/crm_connector/issues/1))
|
108
|
+
* Bugfix: Infopark CRM Connector in combination with ActiveResource 3.0 used XML. Now it uses JSON.
|
109
|
+
|
110
|
+
## Version 1.0.0 - 2012-09-14
|
111
|
+
* Enabled support for `event.custom_attributes`
|
112
|
+
* Removed deprecated functions `EventContact.find_by` and `EventContact.find_by_event_id_and_contact_id`. Please use `EventContact.search` instead.
|
113
|
+
* Removed `configuration.debug`.
|
114
|
+
* Renamed `Infopark::Crm::AuthenticationFailed` to `Infopark::Crm::Errors::AuthenticationFailed`.
|
115
|
+
* Merged `Infopark::Crm::Core::Base` and `Infopark::Crm::Resource` into `Infopark::Crm::Core:Resource`.
|
116
|
+
* Removed all `Infopark::Crm::Default::*` classes.
|
117
|
+
|
118
|
+
## Version 0.9.2 - 2012-03-19
|
119
|
+
* Security improvement for `Contact.authenticate`, `Contact.password_set` and `contact.password_request`
|
120
|
+
|
121
|
+
## Version 0.9.1 - 2012-02-28
|
122
|
+
* Removed `Diary`. Please use `Activity` instead.
|
123
|
+
* Added `Mailing`
|
124
|
+
* Added `appointment_*` and `task_*` fields to `Activity`
|
125
|
+
* Added `role_names` field to `Contact`
|
126
|
+
* Added `tags` field to `Activity`, `Account` and `Contact`
|
127
|
+
|
128
|
+
## Version 0.9 - 2012-01-27
|
129
|
+
Initial Release of Infopark CRM Connector
|
130
|
+
|
131
|
+
### Changes from OMC Connector to CRM Connector
|
132
|
+
* Namespace changed from `OmcConector::` to `Infopark::Crm::`
|
133
|
+
* Attribute names may have changed. For new attributes please refer to the [Web Services API documentation](http://kb.infopark.de/crm-api).
|
134
|
+
* Works only with Infopark WebCRM.
|
135
|
+
|
136
|
+
#### Changed configuration
|
137
|
+
* `live_server_groups_callback` - replaces `contact_roles_callback`
|
138
|
+
|
139
|
+
#### New classes
|
140
|
+
* `CustomType`
|
141
|
+
* `Role`
|
142
|
+
* `System`
|
143
|
+
|
144
|
+
#### New methods
|
145
|
+
* `Account.search`
|
146
|
+
* `Activity.search`
|
147
|
+
* `Contact.search`
|
148
|
+
* `Event.search`
|
149
|
+
* `EventContact.search`
|
150
|
+
* `contact.live_server_groups` - replaces `contact.roles`
|
151
|
+
|
152
|
+
#### Removed classes
|
153
|
+
* `AccountCollection`
|
154
|
+
* `InquiryKind` - use `CustomType`
|
155
|
+
* `InquiryLink`
|
156
|
+
* `Inquiry` - use `Activity`
|
157
|
+
* `Location` - use `contact` and `account` properties
|
158
|
+
* `Mailing`
|
159
|
+
* `RegistrationInquiry`
|
160
|
+
* `Session`
|
161
|
+
|
162
|
+
|
163
|
+
#### Removed methods
|
164
|
+
* `account.contacts` - use `Contact.search(:params => {:acount_id => acount_id})`
|
165
|
+
* `Account.find_by_name` - use `Account.search`
|
166
|
+
* `account.inquiries` - use `Activity.search(:params => {:account_id => account_id})`
|
167
|
+
* `account.locations`
|
168
|
+
* `contact.account_activities` - use `Activity.search(:query => {:account_id => account_id})`
|
169
|
+
* `contact.activities` - use `Activity.search(:params => {:contact_id => contact_id})`
|
170
|
+
* `contact.create_activity`
|
171
|
+
* `contact.create_diary`
|
172
|
+
* `contact.create_location_with_account_association`
|
173
|
+
* `contact.create_location`
|
174
|
+
* `contact.create_registration_request`
|
175
|
+
* `contact.event_participation`
|
176
|
+
* `contact.find_activity`
|
177
|
+
* `Contact.find_by_email` - use `Contact.search(:params => {:email => email})`
|
178
|
+
* `Contact.find_by_login` - use `Contact.search(:params => {:login => login})`
|
179
|
+
* `Contact.languages`
|
180
|
+
* `contact.location`
|
181
|
+
* `Contact.lookup_uptions`
|
182
|
+
* `contact.move_location`
|
183
|
+
* `contact.roles` - use `contact.live_server_groups`
|
184
|
+
* `contact.serialized_attributes` - use `contact.attributes`
|
185
|
+
* `contact.subscriptions`
|
186
|
+
* `Contact.titles`
|
187
|
+
* `contact.update_location`
|
188
|
+
* `contact.update_subscriptions`
|
189
|
+
* `contact.validate_login` - use `Contact.search(:params => {:login => login})`
|
190
|
+
* `event.attend(!)`
|
191
|
+
* `event.contacts` - use `EventContact.search(:event_id => event_id)`
|
192
|
+
* `Event.find_by_name`
|
193
|
+
* `event.inquire(!)`
|
194
|
+
* `event.refuse(!)`
|
195
|
+
* `event.register(!)`
|
196
|
+
* `event_contact.attend` - use `event_contact.status = 'attended'`
|
197
|
+
* `event_contact.inquire` - use `event_contact.status = 'unregistered'`
|
198
|
+
* `event_contact.refuse` - use `event_contact.status = 'refused'`
|
199
|
+
* `event_contact.register` - use `event_contact.status = 'registered'`
|
200
|
+
* `event_contact.update_details`
|
201
|
+
* `inquiry.create_diary`
|
202
|
+
* `inquiry.create_link`
|
203
|
+
* `inquiry.diaries`
|
204
|
+
* `inquiry.links`
|
105
205
|
|
106
206
|
# License
|
107
207
|
|
108
|
-
Copyright (c) 2009 -
|
208
|
+
Copyright (c) 2009 - 2013 Infopark AG (http://www.infopark.com)
|
109
209
|
|
110
210
|
This software can be used and modified under the LGPLv3. Please refer to http://www.gnu.org/licenses/lgpl-3.0.html for the license text.
|
@@ -31,6 +31,12 @@ module Infopark; module Crm; module Core
|
|
31
31
|
@@deprecation_warnings = true
|
32
32
|
cattr_writer :deprecation_warnings
|
33
33
|
|
34
|
+
# @private
|
35
|
+
def self.inherited(subclass)
|
36
|
+
subclass.schema = schema
|
37
|
+
subclass.format = format
|
38
|
+
end
|
39
|
+
|
34
40
|
# @private
|
35
41
|
def self.deprecated(deprecated, hint = nil)
|
36
42
|
return unless @@deprecation_warnings
|
@@ -75,7 +81,7 @@ module Infopark; module Crm; module Core
|
|
75
81
|
# @private
|
76
82
|
def self.schema=(definition)
|
77
83
|
ares_compatible_definition = {}
|
78
|
-
definition.each do |k, v|
|
84
|
+
(definition || []).each do |k, v|
|
79
85
|
ares_compatible_definition[k] = SchemaSupport.schema_type(v)
|
80
86
|
end
|
81
87
|
super(ares_compatible_definition)
|
@@ -94,9 +100,16 @@ module Infopark; module Crm; module Core
|
|
94
100
|
end
|
95
101
|
|
96
102
|
def self.schema_type(type)
|
97
|
-
|
98
|
-
|
99
|
-
|
103
|
+
if type.present?
|
104
|
+
default_mapping = ::ActiveResource::Schema::KNOWN_ATTRIBUTE_TYPES
|
105
|
+
if default_mapping.include?(type.to_s)
|
106
|
+
type
|
107
|
+
else
|
108
|
+
schema_mapping[type.to_sym]
|
109
|
+
end
|
110
|
+
else
|
111
|
+
nil
|
112
|
+
end
|
100
113
|
end
|
101
114
|
|
102
115
|
add :text => :string
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_crm_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Infopark AG
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-03-20 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
@@ -56,7 +56,6 @@ extra_rdoc_files: []
|
|
56
56
|
|
57
57
|
files:
|
58
58
|
- .yardopts
|
59
|
-
- CHANGELOG.markdown
|
60
59
|
- LICENSE
|
61
60
|
- README.markdown
|
62
61
|
- lib/crm_connector.rb
|
@@ -81,8 +80,8 @@ files:
|
|
81
80
|
- lib/crm_connector/system.rb
|
82
81
|
- lib/infopark_crm_connector.rb
|
83
82
|
homepage: http://www.infopark.de
|
84
|
-
licenses:
|
85
|
-
|
83
|
+
licenses:
|
84
|
+
- LGPLv3
|
86
85
|
post_install_message:
|
87
86
|
rdoc_options: []
|
88
87
|
|
data/CHANGELOG.markdown
DELETED
@@ -1,94 +0,0 @@
|
|
1
|
-
## Version 1.0.0 - 2012-09-14
|
2
|
-
* Enabled support for `event.custom_attributes`
|
3
|
-
* Removed deprecated functions `EventContact.find_by` and `EventContact.find_by_event_id_and_contact_id`. Please user `EventContact.search` instead.
|
4
|
-
* Removed `configuration.debug`.
|
5
|
-
* Renamed `Infopark::Crm::AuthenticationFailed` to `Infopark::Crm::Errors::AuthenticationFailed`.
|
6
|
-
* Merged `Infopark::Crm::Core::Base` and `Infopark::Crm::Resource` into `Infopark::Crm::Core:Resource`.
|
7
|
-
|
8
|
-
## Version 0.9.2 - 2012-03-19
|
9
|
-
* Security improvement for `Contact.authenticate`, `Contact.password_set` and `contact.password_request`
|
10
|
-
|
11
|
-
## Version 0.9.1 - 2012-02-28
|
12
|
-
* Removed `Diary`. Please use `Activity` instead.
|
13
|
-
* Added `Mailing`
|
14
|
-
* Added `appointment_*` and `task_*` fields to `Activity`
|
15
|
-
* Added `role_names` field to `Contact`
|
16
|
-
* Added `tags` field to `Activity`, `Account` and `Contact`
|
17
|
-
|
18
|
-
## Version 0.9 - 2012-01-27
|
19
|
-
Initial Release of Infopark CRM Connector
|
20
|
-
|
21
|
-
### Changes from OMC Connector to CRM Connector
|
22
|
-
* Namespace changed from `OmcConector::` to `Infopark::Crm::`
|
23
|
-
* Attribute names may have changed. For new attributes please refer to [Web Services API documentation](http://kb.infopark.de/crm-api).
|
24
|
-
* Works only with Infopark WebCRM.
|
25
|
-
|
26
|
-
#### Changed configuration
|
27
|
-
* `live_server_groups_callback` - replaces `contact_roles_callback`
|
28
|
-
|
29
|
-
#### New classes
|
30
|
-
* `CustomType`
|
31
|
-
* `Role`
|
32
|
-
* `System`
|
33
|
-
|
34
|
-
#### New methods
|
35
|
-
* `Account.search`
|
36
|
-
* `Activity.search`
|
37
|
-
* `Contact.search`
|
38
|
-
* `Event.search`
|
39
|
-
* `EventContact.search`
|
40
|
-
* `contact.live_server_groups` - replaces `contact.roles`
|
41
|
-
|
42
|
-
#### Removed classes
|
43
|
-
* `AccountCollection`
|
44
|
-
* `InquiryKind` - use `CustomType`
|
45
|
-
* `InquiryLink`
|
46
|
-
* `Inquiry` - use `Activity`
|
47
|
-
* `Location` - use `contact` and `account` properties
|
48
|
-
* `Mailing`
|
49
|
-
* `RegistrationInquiry`
|
50
|
-
* `Session`
|
51
|
-
|
52
|
-
|
53
|
-
#### Removed methods
|
54
|
-
* `account.contacts` - use `Contact.search(:params => {:acount_id => acount_id})`
|
55
|
-
* `Account.find_by_name` - use `Account.search`
|
56
|
-
* `account.inquiries` - use `Activity.search(:params => {:account_id => account_id})`
|
57
|
-
* `account.locations`
|
58
|
-
* `contact.account_activities` - use `Activity.search(:query => {:account_id => account_id})`
|
59
|
-
* `contact.activities` - use `Activity.search(:params => {:contact_id => contact_id})`
|
60
|
-
* `contact.create_activity`
|
61
|
-
* `contact.create_diary`
|
62
|
-
* `contact.create_location_with_account_association`
|
63
|
-
* `contact.create_location`
|
64
|
-
* `contact.create_registration_request`
|
65
|
-
* `contact.event_participation`
|
66
|
-
* `contact.find_activity`
|
67
|
-
* `Contact.find_by_email` - use `Contact.search(:params => {:email => email})`
|
68
|
-
* `Contact.find_by_login` - use `Contact.search(:params => {:login => login})`
|
69
|
-
* `Contact.languages`
|
70
|
-
* `contact.location`
|
71
|
-
* `Contact.lookup_uptions`
|
72
|
-
* `contact.move_location`
|
73
|
-
* `contact.roles` - use `contact.live_server_groups`
|
74
|
-
* `contact.serialized_attributes` - use `contact.attributes`
|
75
|
-
* `contact.subscriptions`
|
76
|
-
* `Contact.titles`
|
77
|
-
* `contact.update_location`
|
78
|
-
* `contact.update_subscriptions`
|
79
|
-
* `contact.validate_login` - use `Contact.search(:params => {:login => login})`
|
80
|
-
* `event.attend(!)`
|
81
|
-
* `event.contacts` - use `EventContact.search(:event_id => event_id)`
|
82
|
-
* `Event.find_by_name`
|
83
|
-
* `event.inquire(!)`
|
84
|
-
* `event.refuse(!)`
|
85
|
-
* `event.register(!)`
|
86
|
-
* `event_contact.attend` - use `event_contact.status = 'attended'`
|
87
|
-
* `event_contact.inquire` - use `event_contact.status = 'unregistered'`
|
88
|
-
* `event_contact.refuse` - use `event_contact.status = 'refused'`
|
89
|
-
* `event_contact.register` - use `event_contact.status = 'registered'`
|
90
|
-
* `event_contact.update_details`
|
91
|
-
* `inquiry.create_diary`
|
92
|
-
* `inquiry.create_link`
|
93
|
-
* `inquiry.diaries`
|
94
|
-
* `inquiry.links`
|