sendgrid_webapi 0.0.4 → 0.0.5

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -4
  3. data/lib/base.rb +4 -4
  4. data/lib/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03c0e04a19c4c46b8246a823efb74d88f58c5d58
4
- data.tar.gz: 97451052fae8ae90cbbc710507141375bad8dfc0
3
+ metadata.gz: 175b3c8bf23479ca45c6b4b2158f879830f72f7a
4
+ data.tar.gz: 565c68d1623a7afcac18232a1a2867fb9905d1f8
5
5
  SHA512:
6
- metadata.gz: 6763e1f42e356e172bcd595aa96747729af4c3c9963fd4fd9f4f16ddcd1995322faac3f1320f155d631dc2217600b616e76b46bd826d433e8a5a451e68c51ff3
7
- data.tar.gz: fd5cae50b5c1f7f8245a4962fc2201b291156d51960f960816e51bb26eb49102373a8e735c91655db604df9d449b9bc4c313237cf61b58840c07a2eaa1ea30e7
6
+ metadata.gz: e1570d40c2e9eb654df8bdc592fc141a2201288de74a5b6b926107fef4289214850357f675946d427da387e4851630e091b2632b1ad9afc180d9ae09c991f1fe
7
+ data.tar.gz: 21028cfe13d6ff981173290de3be6fc7d04439a122923311f61d2b97d29fbd0ea94779677fa5a82550e5964ed253a3838136013b408e7fd4758d1e3f8c8701a4
data/.travis.yml CHANGED
@@ -1,5 +1,2 @@
1
- rvm:
2
- - 1.9.3
3
- - 1.9.2
4
-
1
+ rvm: "2.2.2"
5
2
  script: rake spec
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 :json
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
@@ -1,3 +1,3 @@
1
1
  module SendGridWebApi
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-03-09 00:00:00.000000000 Z
12
+ date: 2015-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec