Package not found. Please check the package name and try again.
kampainer 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
- data/lib/kampainer/contact.rb +7 -6
- data/lib/kampainer/contact_group.rb +1 -0
- data/lib/kampainer/contact_manager.rb +1 -1
- data/lib/kampainer/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f87df0bf8b5afa5fd40f4c7233ff65269d1dcb6c6494338923a2a651dbf2a0ad
|
|
4
|
+
data.tar.gz: e3dcab00d483b4dc6446779c14a555ab785c868080de312b0e42c7fd720b546b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5eb63d7c74e99b5ad65c6db5a6943ab1957ffb4162345776d0f0e212180af709f721d5d20020149a7506357acd27aa2c70b740c8346365cef4fb3d84a9699488
|
|
7
|
+
data.tar.gz: 466042161e54c4f8bda4d12d65aa81d1c1830a062e766eadf93cd9cfe7be1dd42e844b1930c503bf61e4f0dbfc5f191c78d512cdb1144ad3151c842630ef305f
|
data/lib/kampainer/contact.rb
CHANGED
|
@@ -33,7 +33,7 @@ module Kampainer
|
|
|
33
33
|
xml_accessor :status
|
|
34
34
|
xml_accessor :is_test_contact
|
|
35
35
|
xml_accessor :custom_attributes, as: CustomAttributes
|
|
36
|
-
xml_accessor :
|
|
36
|
+
xml_accessor :add_to_group, as: ArrayOfInt
|
|
37
37
|
|
|
38
38
|
def custom_attributes=(custom_attributes)
|
|
39
39
|
custom_attributes = CustomAttributes.new(custom_attributes) if custom_attributes.is_a?(Array)
|
|
@@ -42,7 +42,7 @@ module Kampainer
|
|
|
42
42
|
|
|
43
43
|
def add_to_groups=(group_ids)
|
|
44
44
|
group_ids = ArrayOfInt.new(group_ids) unless group_ids.is_a?(SchemaObject)
|
|
45
|
-
@
|
|
45
|
+
@add_to_group = group_ids
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -109,14 +109,15 @@ module Kampainer
|
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
class ArrayOfContactGroupDescription < SchemaCollection
|
|
112
|
+
xml_name 'GroupMembershipData'
|
|
112
113
|
xml_reader :collection, as: [ContactGroupDescription]
|
|
113
114
|
end
|
|
114
115
|
|
|
115
116
|
xml_name 'ContactDetailData'
|
|
116
117
|
xml_reader :key, as: Contact::Key, from: 'ContactKey'
|
|
117
118
|
xml_reader :static_attributes, as: StaticAttributes
|
|
118
|
-
xml_reader :custom_attributes, as: ArrayOfAttributeDetails
|
|
119
|
-
xml_reader :contact_groups, as: ArrayOfContactGroupDescription
|
|
119
|
+
xml_reader :custom_attributes, as: ArrayOfAttributeDetails
|
|
120
|
+
xml_reader :contact_groups, as: ArrayOfContactGroupDescription
|
|
120
121
|
end
|
|
121
122
|
|
|
122
123
|
# GetContacts
|
|
@@ -130,7 +131,7 @@ module Kampainer
|
|
|
130
131
|
xml_accessor :collection, as: [Contact]
|
|
131
132
|
end
|
|
132
133
|
|
|
133
|
-
# ImmediateUpload
|
|
134
|
+
# ImmediateUpload
|
|
134
135
|
class UploadResultData < SchemaObject
|
|
135
136
|
xml_accessor :index, as: Integer
|
|
136
137
|
xml_accessor :key, as: ContactKey, from: 'ContactKey'
|
|
@@ -146,4 +147,4 @@ module Kampainer
|
|
|
146
147
|
class ArrayOfContactKey < ContactKeys
|
|
147
148
|
xml_name 'contactKeys'
|
|
148
149
|
end
|
|
149
|
-
end
|
|
150
|
+
end
|
data/lib/kampainer/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kampainer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piers Chambers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-04-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -130,8 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
131
|
version: '0'
|
|
132
132
|
requirements: []
|
|
133
|
-
|
|
134
|
-
rubygems_version: 2.7.6
|
|
133
|
+
rubygems_version: 3.0.3
|
|
135
134
|
signing_key:
|
|
136
135
|
specification_version: 4
|
|
137
136
|
summary: Unofficial Ruby wrapper for the Campaigner Elements API.
|