sendgrid_webapi 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/base.rb +7 -4
- data/lib/version.rb +1 -1
- data/sendgrid_webapi.gemspec +4 -1
- data/spec/client_spec.rb +1 -1
- metadata +23 -22
- data/.rbenv-version +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 03c0e04a19c4c46b8246a823efb74d88f58c5d58
|
4
|
+
data.tar.gz: 97451052fae8ae90cbbc710507141375bad8dfc0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6763e1f42e356e172bcd595aa96747729af4c3c9963fd4fd9f4f16ddcd1995322faac3f1320f155d631dc2217600b616e76b46bd826d433e8a5a451e68c51ff3
|
7
|
+
data.tar.gz: fd5cae50b5c1f7f8245a4962fc2201b291156d51960f960816e51bb26eb49102373a8e735c91655db604df9d449b9bc4c313237cf61b58840c07a2eaa1ea30e7
|
data/lib/base.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
require 'faraday_middleware'
|
2
|
+
|
3
|
+
module SendGridWebApi
|
4
4
|
class Base
|
5
5
|
attr_accessor :api_user, :api_key
|
6
6
|
|
@@ -33,7 +33,10 @@ module SendGridWebApi
|
|
33
33
|
|
34
34
|
def session
|
35
35
|
@connection ||= ::Faraday.new base_url do |conn|
|
36
|
-
|
36
|
+
# Forces the connection request and response to be JSON even though
|
37
|
+
# Sendgrids API headers do not specify the content type is JSON
|
38
|
+
conn.request :json
|
39
|
+
conn.response :json #, :content_type => /\bjson$/
|
37
40
|
conn.adapter Faraday.default_adapter
|
38
41
|
end
|
39
42
|
end
|
data/lib/version.rb
CHANGED
data/sendgrid_webapi.gemspec
CHANGED
@@ -18,10 +18,13 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
|
+
|
21
22
|
s.add_development_dependency "rspec", "~> 2.10.0"
|
22
23
|
s.add_development_dependency "webmock", "~> 1.8.7"
|
23
24
|
s.add_development_dependency "vcr", "~> 2.8.0"
|
24
|
-
|
25
|
+
|
26
|
+
s.add_dependency "faraday", "~> 0.9.0"
|
27
|
+
s.add_dependency "faraday_middleware", "~> 0.9.0"
|
25
28
|
s.add_dependency "json", "~> 1.8.0"
|
26
29
|
|
27
30
|
end
|
data/spec/client_spec.rb
CHANGED
@@ -11,7 +11,7 @@ describe "client" do
|
|
11
11
|
|
12
12
|
it "should return request url" do
|
13
13
|
client.make_request_url("blocks.get.json", {:data => 1}).
|
14
|
-
should eql "blocks.get.json?
|
14
|
+
should eql "blocks.get.json?api_key=pass&api_user=user&data=1"
|
15
15
|
end
|
16
16
|
|
17
17
|
it "should convert hash to url params" do
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendgrid_webapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- kylejginavan
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rspec
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :development
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: webmock
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ~>
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :development
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ~>
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: vcr
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ~>
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :development
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ~>
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -63,23 +56,34 @@ dependencies:
|
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: faraday
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
60
|
- - ~>
|
69
61
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.
|
62
|
+
version: 0.9.0
|
71
63
|
type: :runtime
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
67
|
- - ~>
|
77
68
|
- !ruby/object:Gem::Version
|
78
|
-
version: 0.
|
69
|
+
version: 0.9.0
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: faraday_middleware
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.9.0
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 0.9.0
|
79
84
|
- !ruby/object:Gem::Dependency
|
80
85
|
name: json
|
81
86
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
87
|
requirements:
|
84
88
|
- - ~>
|
85
89
|
- !ruby/object:Gem::Version
|
@@ -87,7 +91,6 @@ dependencies:
|
|
87
91
|
type: :runtime
|
88
92
|
prerelease: false
|
89
93
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
94
|
requirements:
|
92
95
|
- - ~>
|
93
96
|
- !ruby/object:Gem::Version
|
@@ -101,7 +104,6 @@ extensions: []
|
|
101
104
|
extra_rdoc_files: []
|
102
105
|
files:
|
103
106
|
- .gitignore
|
104
|
-
- .rbenv-version
|
105
107
|
- .rspec
|
106
108
|
- .travis.yml
|
107
109
|
- Gemfile
|
@@ -217,27 +219,26 @@ files:
|
|
217
219
|
- test.rb
|
218
220
|
homepage: https://github.com/kylejginavan/sendgrid_smtpapi
|
219
221
|
licenses: []
|
222
|
+
metadata: {}
|
220
223
|
post_install_message:
|
221
224
|
rdoc_options: []
|
222
225
|
require_paths:
|
223
226
|
- lib
|
224
227
|
required_ruby_version: !ruby/object:Gem::Requirement
|
225
|
-
none: false
|
226
228
|
requirements:
|
227
|
-
- -
|
229
|
+
- - '>='
|
228
230
|
- !ruby/object:Gem::Version
|
229
231
|
version: '0'
|
230
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
|
-
none: false
|
232
233
|
requirements:
|
233
|
-
- -
|
234
|
+
- - '>='
|
234
235
|
- !ruby/object:Gem::Version
|
235
236
|
version: '0'
|
236
237
|
requirements: []
|
237
238
|
rubyforge_project: sendgrid_webapi
|
238
|
-
rubygems_version:
|
239
|
+
rubygems_version: 2.0.14
|
239
240
|
signing_key:
|
240
|
-
specification_version:
|
241
|
+
specification_version: 4
|
241
242
|
summary: SendGrid WEB API gem fo Rails
|
242
243
|
test_files:
|
243
244
|
- spec/cassettes/client/_modules/_block/should_get_block_emails.yml
|
data/.rbenv-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.9.3-p194
|