sendgrid-ruby 4.3.1 → 4.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/CHANGELOG.md +6 -0
- data/README.md +2 -1
- data/gemfiles/Sinatra_1.gemfile +6 -0
- data/gemfiles/Sinatra_2.gemfile +6 -0
- data/lib/sendgrid/version.rb +1 -1
- data/sendgrid-ruby.gemspec +2 -2
- data/test/sendgrid/test_sendgrid-ruby.rb +2 -2
- metadata +15 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 879d7f338777f14c14d62296ff9eaa9c01a3d7f7
|
4
|
+
data.tar.gz: 9f4eeb80357a8447e19a32361c628dec9b3bcdf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12a3fa4d771d4c62ff9eb53deff860765ce7fb12f0951a6a42dcd17d0b6e94516ac65d010f3695ab130253e13276c58a84f0d7dbb6a9d300cf813b543415f6d8
|
7
|
+
data.tar.gz: 58f1bca6b83c4b64dc7f080f4532dee009fb522332eaad9834f1115b8c039d366170f7d62cbb0166080c86c853f17901dd720f444d6c8641d0b74c0e4509eeab
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [4.3.2] - 2017-5-1 ##
|
5
|
+
### Fixes
|
6
|
+
- #161: Fixed problematic Sinatra dependency
|
7
|
+
- Brings back Rails 4 compatibility (and Rack 1.x applications, in general), also removes release candidate version constraint (both broken in #160). Moreover, ensures that tests are run against two major Sinatra versions, which should protect from compatibility issues in future, somewhat. Related issue: #159.
|
8
|
+
- Thanks to [Sebastian Skałacki](https://github.com/skalee) for the pull request!
|
9
|
+
|
4
10
|
## [4.3.1] - 2017-4-12 ##
|
5
11
|
### Fixes
|
6
12
|
- #160: Updated sinatra version to 2.0
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![Travis Badge](https://travis-ci.org/sendgrid/sendgrid-ruby.svg?branch=master)](https://travis-ci.org/sendgrid/sendgrid-ruby)
|
1
|
+
[![Travis Badge](https://travis-ci.org/sendgrid/sendgrid-ruby.svg?branch=master)](https://travis-ci.org/sendgrid/sendgrid-ruby) [![Gem Version](https://badge.fury.io/rb/sendgrid-ruby.svg)](https://badge.fury.io/rb/sendgrid-ruby)
|
2
2
|
|
3
3
|
Please see our announcement regarding [breaking changes](https://github.com/sendgrid/sendgrid-ruby/issues/94). Your support is appreciated!
|
4
4
|
|
@@ -65,6 +65,7 @@ gem install sendgrid-ruby
|
|
65
65
|
## Dependencies
|
66
66
|
|
67
67
|
- [Ruby-HTTP-Client](https://github.com/sendgrid/ruby-http-client)
|
68
|
+
- [Sinatra](http://www.sinatrarb.com/) - this is only needed if you plan to process [Inbound Email](#inbound).
|
68
69
|
|
69
70
|
<a name="quick_start"></a>
|
70
71
|
# Quick Start
|
data/lib/sendgrid/version.rb
CHANGED
data/sendgrid-ruby.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ['Elmer Thomas', 'Robin Johnson', 'Eddie Zaneski']
|
10
10
|
spec.email = 'dx@sendgrid.com'
|
11
11
|
spec.summary = 'Official SendGrid Gem'
|
12
|
-
spec.description = 'Interact with SendGrids API in native Ruby'
|
12
|
+
spec.description = 'Official SendGrid Gem to Interact with SendGrids API in native Ruby'
|
13
13
|
spec.homepage = 'http://github.com/sendgrid/sendgrid-ruby'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(/^(test|spec|features)/)
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
spec.add_dependency 'ruby_http_client', '~> 3.0'
|
20
|
-
spec.add_dependency 'sinatra', '
|
20
|
+
spec.add_dependency 'sinatra', '>= 1.4.7', '< 3'
|
21
21
|
spec.add_development_dependency 'rake', '~> 0'
|
22
22
|
spec.add_development_dependency 'rspec'
|
23
23
|
spec.add_development_dependency 'pry'
|
@@ -5,7 +5,7 @@ require 'minitest/unit'
|
|
5
5
|
|
6
6
|
class TestAPI < MiniTest::Test
|
7
7
|
|
8
|
-
unless File.exist?('/usr/local/bin/prism') || File.
|
8
|
+
unless File.exist?('/usr/local/bin/prism') || File.exist?(File.join(Dir.pwd, 'prism/bin/prism'))
|
9
9
|
if RUBY_PLATFORM =~ /mswin|mingw/
|
10
10
|
puts 'Please download the Windows binary (https://github.com/stoplightio/prism/releases) and place it in your /usr/local/bin directory'
|
11
11
|
else
|
@@ -55,7 +55,7 @@ class TestAPI < MiniTest::Test
|
|
55
55
|
')
|
56
56
|
assert_equal(test_headers, sg.request_headers)
|
57
57
|
assert_equal("v3", sg.version)
|
58
|
-
assert_equal("4.3.
|
58
|
+
assert_equal("4.3.2", SendGrid::VERSION)
|
59
59
|
assert_instance_of(SendGrid::Client, sg.client)
|
60
60
|
end
|
61
61
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendgrid-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elmer Thomas
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-05-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ruby_http_client
|
@@ -30,16 +30,22 @@ dependencies:
|
|
30
30
|
name: sinatra
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 1.4.7
|
36
|
+
- - "<"
|
34
37
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
38
|
+
version: '3'
|
36
39
|
type: :runtime
|
37
40
|
prerelease: false
|
38
41
|
version_requirements: !ruby/object:Gem::Requirement
|
39
42
|
requirements:
|
40
|
-
- -
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.4.7
|
46
|
+
- - "<"
|
41
47
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
48
|
+
version: '3'
|
43
49
|
- !ruby/object:Gem::Dependency
|
44
50
|
name: rake
|
45
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,7 +116,7 @@ dependencies:
|
|
110
116
|
- - "~>"
|
111
117
|
- !ruby/object:Gem::Version
|
112
118
|
version: '5.9'
|
113
|
-
description: Interact with SendGrids API in native Ruby
|
119
|
+
description: Official SendGrid Gem to Interact with SendGrids API in native Ruby
|
114
120
|
email: dx@sendgrid.com
|
115
121
|
executables: []
|
116
122
|
extensions: []
|
@@ -156,6 +162,8 @@ files:
|
|
156
162
|
- examples/trackingsettings/trackingsettings.rb
|
157
163
|
- examples/user/user.rb
|
158
164
|
- examples/whitelabel/whitelabel.rb
|
165
|
+
- gemfiles/Sinatra_1.gemfile
|
166
|
+
- gemfiles/Sinatra_2.gemfile
|
159
167
|
- lib/sendgrid-ruby.rb
|
160
168
|
- lib/sendgrid/client.rb
|
161
169
|
- lib/sendgrid/helpers/inbound/README.md
|