sendinblue 2.2 → 2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/sendinblue.rb +1 -1
- data/lib/sendinblue/version.rb +1 -1
- data/sendinblue.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71cabb6ca61ca45379f1f0f5959fc73a7a83bde6
|
4
|
+
data.tar.gz: 2d7e8dc636888e83ea4f47415befcc5dc1a1274a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76dc14b6812aaa1f55a2487a31c3337ae911e8b1c76834ce80f6bca22fa59092d5f0d9c777dc3ea6d164ad9ab712e60cd2a7924b216e9e5a33614e053741a301
|
7
|
+
data.tar.gz: 7a8167be67d1247709dd7a64d848c7419436548a4aacffbb30d84c3f537c4c4d34f9981b635677a3fa17daab5eb1e246f4beb1a1fbbddcd693ad2631a4d95388
|
data/README.md
CHANGED
@@ -61,12 +61,12 @@ puts result
|
|
61
61
|
|
62
62
|
##Recommendation:
|
63
63
|
|
64
|
-
Sendinblue Ruby GEM has been upgraded to new version 2.
|
64
|
+
Sendinblue Ruby GEM has been upgraded to new version 2.3 with object-based wrapper & have new way of sending input parameters.
|
65
65
|
|
66
|
-
If earlier you were using version 2.0, & now upgraded to version 2.
|
66
|
+
If earlier you were using version 2.0, & now upgraded to version 2.3, then you may face error in APIs like, example for send_email() api
|
67
67
|
|
68
68
|
```ruby
|
69
|
-
/var/lib/gems/2.x.x/gems/sendinblue-2.
|
69
|
+
/var/lib/gems/2.x.x/gems/sendinblue-2.0/lib/sendinblue.rb:360:in `send_email': wrong number of arguments (10 for 1) (ArgumentError)
|
70
70
|
from yourTestFile.rb:<line_no>:in `<main>'
|
71
71
|
```
|
72
72
|
|
data/lib/sendinblue.rb
CHANGED
@@ -23,7 +23,7 @@ module Sendinblue
|
|
23
23
|
else
|
24
24
|
response = HTTParty.delete(called_url,:body=>input, :headers => {"api-key"=>@api_key,"content-type"=>content_type})
|
25
25
|
end
|
26
|
-
return response.body
|
26
|
+
return JSON.parse(response.body)
|
27
27
|
end
|
28
28
|
def get(resource,input)
|
29
29
|
return do_request(resource,"GET",input)
|
data/lib/sendinblue/version.rb
CHANGED
data/sendinblue.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'sendinblue/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "sendinblue"
|
8
8
|
spec.version = Sendinblue::VERSION
|
9
|
-
spec.date = "
|
9
|
+
spec.date = "2016-01-22"
|
10
10
|
spec.authors = ["SendinBlue Developers"]
|
11
11
|
spec.email = ["contact@sendinblue.com"]
|
12
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendinblue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SendinBlue Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|