sendgrid_webapi 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -4
- data/lib/base.rb +4 -4
- data/lib/version.rb +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: 175b3c8bf23479ca45c6b4b2158f879830f72f7a
|
4
|
+
data.tar.gz: 565c68d1623a7afcac18232a1a2867fb9905d1f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1570d40c2e9eb654df8bdc592fc141a2201288de74a5b6b926107fef4289214850357f675946d427da387e4851630e091b2632b1ad9afc180d9ae09c991f1fe
|
7
|
+
data.tar.gz: 21028cfe13d6ff981173290de3be6fc7d04439a122923311f61d2b97d29fbd0ea94779677fa5a82550e5964ed253a3838136013b408e7fd4758d1e3f8c8701a4
|
data/.travis.yml
CHANGED
data/lib/base.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'faraday_middleware'
|
2
2
|
|
3
|
-
module SendGridWebApi
|
3
|
+
module SendGridWebApi
|
4
4
|
class Base
|
5
5
|
attr_accessor :api_user, :api_key
|
6
6
|
|
@@ -8,7 +8,7 @@ module SendGridWebApi
|
|
8
8
|
@api_user = api_user
|
9
9
|
@api_key = api_key
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
def make_request_url url, options
|
13
13
|
"#{url}?#{builder_options(options)}"
|
14
14
|
end
|
@@ -26,7 +26,7 @@ module SendGridWebApi
|
|
26
26
|
builder_options(options)
|
27
27
|
session.post(url, builder_options(options)).body
|
28
28
|
end
|
29
|
-
|
29
|
+
|
30
30
|
def to_query(options)
|
31
31
|
Faraday::Utils.build_nested_query(options)
|
32
32
|
end
|
@@ -35,7 +35,7 @@ module SendGridWebApi
|
|
35
35
|
@connection ||= ::Faraday.new base_url do |conn|
|
36
36
|
# Forces the connection request and response to be JSON even though
|
37
37
|
# Sendgrids API headers do not specify the content type is JSON
|
38
|
-
conn.request :
|
38
|
+
conn.request :url_encoded
|
39
39
|
conn.response :json #, :content_type => /\bjson$/
|
40
40
|
conn.adapter Faraday.default_adapter
|
41
41
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendgrid_webapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kylejginavan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-11-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|