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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 719f8e25c9902556c46859bbf07004cfa6a78dd2
4
- data.tar.gz: 8b518df8320edf648deed400f8fe72a9570f8153
3
+ metadata.gz: af14a78b1044d7b675900a4b9e6adb328e535ccd
4
+ data.tar.gz: a77e640922f64085f6cdf62603d97aaa9f7a2172
5
5
  SHA512:
6
- metadata.gz: fd9d04ce6243580b1de26463ad156bbe6eab222750b956251fab2a7da3bd0e619bfdcf6680b7d731762664ca364960c99dabe20354337193151bd072fcb982a4
7
- data.tar.gz: 801292ed6c319e945e77b1bc30bbd1afcfc9b2454f60cbec168da6ed38a384588dff7e89eeb06147d37a5f7402b0d21209503d5f18ec53926fab6f5e9e1e85fa
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
@@ -30,7 +30,7 @@ module MaropostApi
30
30
  end
31
31
 
32
32
  def uri(endpoint)
33
- Addressable::URI.encode("#{@base_uri}#{endpoint}")
33
+ "#{@base_uri}#{endpoint}"
34
34
  end
35
35
 
36
36
  def payload(params)
@@ -1,3 +1,3 @@
1
1
  module MaropostApi
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
data/maropost_api.gemspec CHANGED
@@ -27,5 +27,4 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_runtime_dependency "httparty"
29
29
  spec.add_runtime_dependency "hashie"
30
- spec.add_runtime_dependency "addressable"
31
30
  end
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.0
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-20 00:00:00.000000000 Z
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