maropost_api 0.2.0 → 0.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 +4 -4
- data/lib/maropost_api/contacts.rb +2 -2
- data/lib/maropost_api/request.rb +1 -1
- data/lib/maropost_api/version.rb +1 -1
- data/maropost_api.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af14a78b1044d7b675900a4b9e6adb328e535ccd
|
4
|
+
data.tar.gz: a77e640922f64085f6cdf62603d97aaa9f7a2172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11fcf35c5f59396621fdcd098d0862fb0f30a3b2a12f23d5dc695d5750de212b1ccdb74b46f133dba5ba0053c413a033e8e5a8285edc39808428580601586c0f
|
7
|
+
data.tar.gz: 93b8350e09411d8b9af96ba944b68a63f60eea76d1a043fc73dfb6d229733d201dc931c0e8700b9efb6895b826b7a3525e01a515b1282fe5405b61e1cc13a893
|
@@ -6,7 +6,7 @@ module MaropostApi
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def find_by_email(email:)
|
9
|
-
response = @request.get(endpoint: "/contacts/email.json?contact[email]=#{email}")
|
9
|
+
response = @request.get(endpoint: "/contacts/email.json?contact[email]=#{CGI.escape(email)}")
|
10
10
|
Response.new(response: response, parser: @parser).call
|
11
11
|
end
|
12
12
|
|
@@ -26,7 +26,7 @@ module MaropostApi
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def unsubscribe_all_lists(email:)
|
29
|
-
response = @request.put(endpoint: "/contacts/unsubscribe_all.json?contact[email]=#{email}")
|
29
|
+
response = @request.put(endpoint: "/contacts/unsubscribe_all.json?contact[email]=#{CGI.escape(email)}")
|
30
30
|
Response.new(response: response, parser: @parser).call
|
31
31
|
end
|
32
32
|
end
|
data/lib/maropost_api/request.rb
CHANGED
data/lib/maropost_api/version.rb
CHANGED
data/maropost_api.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maropost_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hossein Toussi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-07-
|
12
|
+
date: 2016-07-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -123,20 +123,6 @@ dependencies:
|
|
123
123
|
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: addressable
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
requirements:
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
133
|
-
type: :runtime
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - ">="
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
140
126
|
description:
|
141
127
|
email:
|
142
128
|
- saeed.toussi@yahoo.com
|