constantcontact-ruby 2.2.0 → 2.2.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc7932183a3341a61e1933707bcde8b34115d8d0
|
|
4
|
+
data.tar.gz: 7f3eb06bd4f20d2c766e62f89e9c3a80ca86d82f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ded3046bab4e82addb20cd44e765909064165b76b79ecdbc91e0b5ed452c86310349eb8ca07179040bf05b165c67c98fb5ff4e14afc371c47dc0ef2439569a19
|
|
7
|
+
data.tar.gz: 2042fa3a66068b0fb22ac8b587dbf807846262ae75e168b74cbe908b4cd21e4a547bb49208ed2c192a0a954723b94f672ba0c1fd6fa3675b664aa3f30eb92894
|
|
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "constantcontact-ruby"
|
|
8
|
-
s.version = '2.2.
|
|
8
|
+
s.version = '2.2.1'
|
|
9
9
|
s.platform = Gem::Platform::RUBY
|
|
10
10
|
s.authors = ["ConstantContact", "ConferenceCloud"]
|
|
11
11
|
s.homepage = "http://www.constantcontact.com"
|
|
@@ -13,11 +13,14 @@ module ConstantContact
|
|
|
13
13
|
# Constructor to create a ResultSet from the results/meta response when performing a get on a collection
|
|
14
14
|
# @param [Array<Hash>] results - results array from request
|
|
15
15
|
# @param [Hash] meta - meta hash from request
|
|
16
|
-
def initialize(results, meta, component = nil)
|
|
16
|
+
def initialize(results, meta, component = nil, method = :create_summary)
|
|
17
17
|
@results = results
|
|
18
18
|
if component.present?
|
|
19
19
|
@component = component
|
|
20
20
|
end
|
|
21
|
+
if method.present?
|
|
22
|
+
@method = method
|
|
23
|
+
end
|
|
21
24
|
|
|
22
25
|
if meta.has_key?('pagination') and meta['pagination'].has_key?('next_link')
|
|
23
26
|
@next_link = meta['pagination']['next_link']
|
|
@@ -36,7 +39,7 @@ module ConstantContact
|
|
|
36
39
|
body = JSON.parse(response.body)
|
|
37
40
|
|
|
38
41
|
events = body['results'].collect do |event|
|
|
39
|
-
@component.
|
|
42
|
+
@component.send(@method, event)
|
|
40
43
|
end
|
|
41
44
|
|
|
42
45
|
return Components::ResultSet.new(events, body['meta'], @component)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: constantcontact-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ConstantContact
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|