hominid 2.1.2 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/hominid.gemspec +4 -4
- data/lib/hominid/campaign.rb +1 -1
- data/lib/hominid/list.rb +6 -5
- metadata +17 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.5
|
data/hominid.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{hominid}
|
8
|
-
s.version = "2.1.
|
8
|
+
s.version = "2.1.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brian Getting", "Michael Str\303\274der"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-07-12}
|
13
13
|
s.description = %q{Hominid is a Ruby gem that provides a wrapper for interacting with the Mailchimp email marketing service API.}
|
14
14
|
s.email = %q{brian@terra-firma-design.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
s.homepage = %q{http://github.com/bgetting/hominid}
|
36
36
|
s.rdoc_options = ["--charset=UTF-8"]
|
37
37
|
s.require_paths = ["lib"]
|
38
|
-
s.rubygems_version = %q{1.3.
|
38
|
+
s.rubygems_version = %q{1.3.7}
|
39
39
|
s.summary = %q{Hominid is a Ruby gem for interacting with the Mailchimp API.}
|
40
40
|
s.test_files = [
|
41
41
|
"test/hominid_test.rb",
|
@@ -46,7 +46,7 @@ Gem::Specification.new do |s|
|
|
46
46
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
47
47
|
s.specification_version = 3
|
48
48
|
|
49
|
-
if Gem::Version.new(Gem::
|
49
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
50
|
else
|
51
51
|
end
|
52
52
|
else
|
data/lib/hominid/campaign.rb
CHANGED
@@ -688,7 +688,7 @@ module Hominid
|
|
688
688
|
# Returns:
|
689
689
|
# An array of email addresses that unsubscribed from this campaign.
|
690
690
|
#
|
691
|
-
def
|
691
|
+
def unsubscribes(campaign_id, start = 0, limit = 1000)
|
692
692
|
call("campaignUnsubscribes", campaign_id, start, limit)
|
693
693
|
end
|
694
694
|
|
data/lib/hominid/list.rb
CHANGED
@@ -62,14 +62,15 @@ module Hominid
|
|
62
62
|
# enabled, adding the first group will automatically turn them on.
|
63
63
|
#
|
64
64
|
# Parameters:
|
65
|
-
# * list_id
|
66
|
-
# * group
|
65
|
+
# * list_id (String) = The mailing list ID value.
|
66
|
+
# * group (String) = The interest group to add.
|
67
|
+
# * grouping_id (String) = The grouping to add the new group to. If not supplied, the first grouping on the list is used.
|
67
68
|
#
|
68
69
|
# Returns:
|
69
70
|
# True if successful, error code if not.
|
70
71
|
#
|
71
|
-
def create_group(list_id, group)
|
72
|
-
call("listInterestGroupAdd", list_id, group)
|
72
|
+
def create_group(list_id, group, grouping_id)
|
73
|
+
call("listInterestGroupAdd", list_id, group, grouping_id)
|
73
74
|
end
|
74
75
|
alias :interest_group_add :create_group
|
75
76
|
|
@@ -151,7 +152,7 @@ module Hominid
|
|
151
152
|
# all contained interest groups and will remove those selections from all list members.
|
152
153
|
#
|
153
154
|
# Parameters:
|
154
|
-
# * grouping_id (
|
155
|
+
# * grouping_id (Integer) = The interest grouping id.
|
155
156
|
#
|
156
157
|
# Returns:
|
157
158
|
# True if the request succeeds, otherwise an error will be thrown.
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hominid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 1
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 1
|
9
|
+
- 5
|
10
|
+
version: 2.1.5
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Brian Getting
|
@@ -10,7 +16,7 @@ autorequire:
|
|
10
16
|
bindir: bin
|
11
17
|
cert_chain: []
|
12
18
|
|
13
|
-
date: 2010-
|
19
|
+
date: 2010-07-12 00:00:00 -07:00
|
14
20
|
default_executable:
|
15
21
|
dependencies: []
|
16
22
|
|
@@ -48,21 +54,27 @@ rdoc_options:
|
|
48
54
|
require_paths:
|
49
55
|
- lib
|
50
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ">="
|
53
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 3
|
62
|
+
segments:
|
63
|
+
- 0
|
54
64
|
version: "0"
|
55
|
-
version:
|
56
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
57
67
|
requirements:
|
58
68
|
- - ">="
|
59
69
|
- !ruby/object:Gem::Version
|
70
|
+
hash: 3
|
71
|
+
segments:
|
72
|
+
- 0
|
60
73
|
version: "0"
|
61
|
-
version:
|
62
74
|
requirements: []
|
63
75
|
|
64
76
|
rubyforge_project:
|
65
|
-
rubygems_version: 1.3.
|
77
|
+
rubygems_version: 1.3.7
|
66
78
|
signing_key:
|
67
79
|
specification_version: 3
|
68
80
|
summary: Hominid is a Ruby gem for interacting with the Mailchimp API.
|