sendicate 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -3
- data/VERSION +1 -1
- data/lib/sendicate/resource.rb +7 -1
- data/sendicate.gemspec +2 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Sendicate
|
2
2
|
|
3
|
-
This gem is a wrapper for the [Sendicate API](
|
3
|
+
This gem is a wrapper for the [Sendicate API](http://www.sendicate.net/docs/api/).
|
4
4
|
|
5
5
|
Find out more about Sendicate at [https://www.sendicate.net/](https://www.sendicate.net/).
|
6
6
|
|
@@ -65,13 +65,17 @@ Add a subcriber to a list:
|
|
65
65
|
|
66
66
|
Change a subscriber's email address:
|
67
67
|
|
68
|
-
subscriber = Subscriber.find('user@example.com')
|
68
|
+
subscriber = Sendicate::Subscriber.find('user@example.com')
|
69
69
|
subscriber.email = 'differentuser@example.com'
|
70
70
|
subscriber.save
|
71
71
|
|
72
72
|
Unsubscribe a subscriber:
|
73
73
|
|
74
|
-
Subscriber.unsubscribe('user@example.com')
|
74
|
+
Sendicate::Subscriber.unsubscribe('user@example.com')
|
75
|
+
|
76
|
+
Check if a subscriber belongs to a list:
|
77
|
+
|
78
|
+
subscriber.list_ids.include?(LIST_ID)
|
75
79
|
|
76
80
|
## Contributing to sendicate-ruby
|
77
81
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/sendicate/resource.rb
CHANGED
data/sendicate.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "sendicate"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Evan Whalen"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-07-23"
|
13
13
|
s.description = "Use this Sendicate API wrapper to subscribe your users to your Sendicate mailing lists."
|
14
14
|
s.email = "evanwhalendev@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendicate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
segments:
|
152
152
|
- 0
|
153
|
-
hash:
|
153
|
+
hash: 2220424028492805252
|
154
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
155
|
none: false
|
156
156
|
requirements:
|