sendgrid-ruby 6.1.1 → 6.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe87e8277c732eabaeaf12b581ee8626676db1bed09c0ae46d9440f91e56c642
4
- data.tar.gz: 4454acaf4554f092b0fa852a445ebc215c611c9e76bc95f2825eee3c1ec50b38
3
+ metadata.gz: a7121a1f88c4dd24d677c488dc29b1ede7a4ca2441cfc28bd99cc5aeb8fc2a96
4
+ data.tar.gz: 363c97d990e13a75d6f232b2d4afbbb26d80b0a02b7eea5cd2642e3c618ae65d
5
5
  SHA512:
6
- metadata.gz: 327524a86ccbbf040455bb770d44538dce4cc57f3daf96eca8b126b052209a2acf20cd331f192c6fe5ed697d832cd2d68f9f2d2b8f8280a4f48d0de7bd6e5c6f
7
- data.tar.gz: 29535a808d6cb61912ac27cc83ee5ecd488dbcbfca3410e23cd7d9ef2549803dcd4fc3741d77923d58b9c6ca72683df102d6e65ad0ee9744f8dc6152b5a11de9
6
+ metadata.gz: d79b6aba6dd3018708da2db4e7d1bba0910ebc2fc9c003b5e42cd62419a794376d1d30c8d0be95666d7bce51fdc7bcf7a6462924cb7d7ea1a59b83bd00351d95
7
+ data.tar.gz: 72ee6a72c8e1a5fc59c393ccb580090feda8078d423c236b556ce3a32fb8b5bdd11b545361caf501130f39967281b2db009a3f3dafbdcd7c5a0835ab9f310354
@@ -28,5 +28,4 @@ deploy:
28
28
  on:
29
29
  tags: true
30
30
  rvm: '2.4'
31
- gem: gemfiles/Sinatra_1.gemfile
32
- skip_cleanup: true
31
+ condition: '$BUNDLE_GEMFILE == *"gemfiles/Sinatra_1.gemfile"'
@@ -1,6 +1,16 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ [2020-03-18] Version 6.1.2
5
+ --------------------------
6
+ **Library - Chore**
7
+ - [PR #337](https://github.com/sendgrid/sendgrid-ruby/pull/337): Remove unnecessary require statements. Thanks to [@moutten](https://github.com/moutten)!
8
+ - [PR #354](https://github.com/sendgrid/sendgrid-ruby/pull/354): Update Dockerfile ruby version. Thanks to [@Rovel](https://github.com/Rovel)!
9
+
10
+ **Library - Fix**
11
+ - [PR #412](https://github.com/sendgrid/sendgrid-ruby/pull/412): loosen the ruby_http_client version constraint. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
12
+
13
+
4
14
  [2020-03-04] Version 6.1.1
5
15
  --------------------------
6
16
  **Library - Docs**
@@ -133,5 +133,5 @@ When debugging or testing, it may be useful to examine the raw request header to
133
133
  You can do this before `response = sg.client.mail._('send').post(request_body: mail.to_json)` like so:
134
134
 
135
135
  ```ruby
136
- puts mail
136
+ puts mail.to_json
137
137
  ```
@@ -1,4 +1,4 @@
1
- FROM ruby:2.4.2-jessie
1
+ FROM ruby:2.5.1-jessie
2
2
 
3
3
  # Clone sendgrid-ruby
4
4
  WORKDIR /sources
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class ASM
5
3
  def initialize(group_id: nil, groups_to_display: nil)
@@ -1,4 +1,3 @@
1
- require 'json'
2
1
  require 'base64'
3
2
 
4
3
  module SendGrid
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class BccSettings
5
3
  def initialize(enable: nil, email: nil)
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class BypassListManagement
5
3
  def initialize(enable: nil)
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class Category
5
3
  attr_accessor :name
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class ClickTracking
5
3
  def initialize(enable: nil, enable_text: nil)
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class Content
5
3
 
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class CustomArg
5
3
  def initialize(key: nil, value: nil)
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class Email
5
3
 
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class Footer
5
3
  def initialize(enable: nil, text: nil, html: nil)
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class Ganalytics
5
3
  def initialize(enable: nil, utm_source: nil, utm_medium: nil, utm_term: nil, utm_content: nil, utm_campaign: nil, utm_name: nil)
@@ -71,4 +69,4 @@ module SendGrid
71
69
  }.delete_if { |_, value| value.to_s.strip == '' }
72
70
  end
73
71
  end
74
- end
72
+ end
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class Header
5
3
  def initialize(key: nil, value: nil)
@@ -1,7 +1,5 @@
1
1
  # Build the request body for the v3/mail/send endpoint
2
2
  # Please see the examples/helpers/mail/example.rb for a demonstration of usage
3
- require 'json'
4
-
5
3
  module SendGrid
6
4
  class Mail
7
5
 
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class MailSettings
5
3
  def initialize
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class OpenTracking
5
3
  def initialize(enable: nil, substitution_tag: nil)
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class Personalization
5
3
 
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class Section
5
3
  def initialize(key: nil, value: nil)
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class SpamCheck
5
3
  def initialize(enable: nil, threshold: nil, post_to_url: nil)
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class SubscriptionTracking
5
3
  def initialize(enable: nil, text: nil, html: nil, substitution_tag: nil)
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class Substitution
5
3
  def initialize(key: nil, value: nil)
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class TrackingSettings
5
3
  def initialize
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class Metrics
5
3
  attr_reader :blocks, :bounce_drops,
@@ -1,5 +1,3 @@
1
- require 'json'
2
-
3
1
  module SendGrid
4
2
  class StatsResponse
5
3
  def initialize(args)
@@ -1,3 +1,3 @@
1
1
  module SendGrid
2
- VERSION = '6.1.1'
2
+ VERSION = '6.1.2'
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(/^bin/) { |f| File.basename(f) }
20
20
  spec.test_files = spec.files.grep(/^(test|spec|features)/)
21
21
  spec.require_paths = ['lib']
22
- spec.add_dependency 'ruby_http_client', '~> 3.4.0'
22
+ spec.add_dependency 'ruby_http_client', '~> 3.4'
23
23
  spec.add_development_dependency 'sinatra', '>= 1.4.7', '< 3'
24
24
  spec.add_development_dependency 'rake', '~> 0'
25
25
  spec.add_development_dependency 'rspec'
@@ -58,7 +58,7 @@ class TestAPI < MiniTest::Test
58
58
  assert_equal(test_headers, sg.request_headers)
59
59
  assert_equal("v3", sg.version)
60
60
  assert_equal(subuser, sg.impersonate_subuser)
61
- assert_equal("6.1.1", SendGrid::VERSION)
61
+ assert_equal("6.1.2", SendGrid::VERSION)
62
62
  assert_instance_of(SendGrid::Client, sg.client)
63
63
  end
64
64
 
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: 6.1.1
4
+ version: 6.1.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: 2020-03-04 00:00:00.000000000 Z
13
+ date: 2020-03-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ruby_http_client
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 3.4.0
21
+ version: '3.4'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 3.4.0
28
+ version: '3.4'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sinatra
31
31
  requirement: !ruby/object:Gem::Requirement