kampainer 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03a41e771943f773f67b6e0ac09039ee33852554beb8de46657357dba397b48f
4
- data.tar.gz: b04481efe285529989e41f5ed1add04cacd7670811b4c9641ccd80122a62d282
3
+ metadata.gz: f87df0bf8b5afa5fd40f4c7233ff65269d1dcb6c6494338923a2a651dbf2a0ad
4
+ data.tar.gz: e3dcab00d483b4dc6446779c14a555ab785c868080de312b0e42c7fd720b546b
5
5
  SHA512:
6
- metadata.gz: c74bade2fc8fc314545e4d0d133bd4ec26fe704452d6873fdaca7c22376a87748e05d6ffc046e5621a5fb3791de61132e8e17b31ac3116c219b5675fd244c532
7
- data.tar.gz: 0a88c11d58fce7d2bf25a5944701dcff1d45dc8a420fc6f5ba6188226734bef911f6b1f0e6683045c883a3a7bd76b94a15d09e2b4e7721be055d113bb5eacd79
6
+ metadata.gz: 5eb63d7c74e99b5ad65c6db5a6943ab1957ffb4162345776d0f0e212180af709f721d5d20020149a7506357acd27aa2c70b740c8346365cef4fb3d84a9699488
7
+ data.tar.gz: 466042161e54c4f8bda4d12d65aa81d1c1830a062e766eadf93cd9cfe7be1dd42e844b1930c503bf61e4f0dbfc5f191c78d512cdb1144ad3151c842630ef305f
@@ -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 :add_to_groups, as: ArrayOfInt
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
- @add_to_groups = group_ids
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, from: 'CustomAttributes'
119
- xml_reader :contact_groups, as: ArrayOfContactGroupDescription, from: 'group_membership_data'
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
@@ -2,6 +2,7 @@ module Kampainer
2
2
 
3
3
  # ListContactGroups
4
4
  class ContactGroupDescription < SchemaObject
5
+ xml_name 'ContactGroupDescription'
5
6
  xml_reader :type
6
7
  xml_reader :id
7
8
  xml_reader :name
@@ -24,7 +24,7 @@ module Kampainer
24
24
  def delete_contacts(*keys)
25
25
  contact_keys = ArrayOfContactKey[keys]
26
26
  call('DeleteContacts', contact_keys.to_xml)[0].to_a
27
- end
27
+ end
28
28
 
29
29
  # @param *keys One or more contact keys.
30
30
  def get_contacts(*keys)
@@ -1,3 +1,3 @@
1
1
  module Kampainer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.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-03-27 00:00:00.000000000 Z
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
- rubyforge_project:
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.