sendgrid-ruby
Advanced tools
| contact_links: | ||
| - name: Twilio SendGrid Support | ||
| url: https://support.sendgrid.com | ||
| about: Get Support | ||
| - name: Stack Overflow | ||
| url: https://stackoverflow.com/questions/tagged/sendgrid-ruby+or+sendgrid+ruby | ||
| about: Ask questions on Stack Overflow | ||
| - name: Documentation | ||
| url: https://sendgrid.com/docs/for-developers/ | ||
| about: View Reference Documentation |
+14
-14
| language: ruby | ||
| env: | ||
| - version=ruby:2.7 | ||
| - version=ruby:2.6 | ||
| - version=ruby:2.5 | ||
| - version=ruby:2.4 | ||
| - version=jruby:9.2 | ||
| - version=ruby:2.7 | ||
| - version=ruby:2.6 | ||
| - version=ruby:2.5 | ||
| - version=ruby:2.4 | ||
| - version=jruby:9.2 | ||
| gemfile: | ||
| - gemfiles/Sinatra_1.gemfile | ||
| - gemfiles/Sinatra_2.gemfile | ||
| script: make test-docker | ||
| - gemfiles/Sinatra_1.gemfile | ||
| - gemfiles/Sinatra_2.gemfile | ||
| script: | ||
| - if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then | ||
| echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin; | ||
| fi | ||
| - make test-docker | ||
| deploy: | ||
| provider: rubygems | ||
| api_key: $RUBYGEMS_API_KEY | ||
| api_key: "$RUBYGEMS_API_KEY" | ||
| gem: sendgrid-ruby | ||
@@ -22,3 +23,2 @@ on: | ||
| condition: $version = ruby:2.4 && $BUNDLE_GEMFILE = *"gemfiles/Sinatra_1.gemfile" | ||
| notifications: | ||
@@ -31,2 +31,2 @@ slack: | ||
| rooms: | ||
| - secure: QwoVrGveeA1bo/26fO2A+OQHmUX69NLaC214qd18C1Z8ztYMHkd05/9+k9HFb+PSdPkGLSeYOPWAKJUqJWB7HfGINNGpRGIPFcmfB7vhvvLFnhud/SAdQPRZ+SCeZPdpZcjpVRLYENKv259ucGPBCPFXh1HfJF92R0IrKeW5CII= | ||
| secure: oSeohwM+ernyiRYSRLpNlICk0wgj0lku3y5LuouJLRHs45tCAzLZLbgxsor18wCSJkmhfn2vg4Rn969VnskFuj70OhJSLBKL4UXBnR1Ji0ClpfJlGojcbY/5Z8N/eGDrvf5ofA0Jc+L/ut+oSCMXnstEGbx4wBpPTajHuRtvb34= |
+6
-0
| # Change Log | ||
| All notable changes to this project will be documented in this file. | ||
| [2021-08-11] Version 6.5.0 | ||
| -------------------------- | ||
| **Library - Feature** | ||
| - [PR #466](https://github.com/sendgrid/sendgrid-ruby/pull/466): Add From address to personalization. Thanks to [@grin](https://github.com/grin)! | ||
| [2021-02-10] Version 6.4.0 | ||
@@ -5,0 +11,0 @@ -------------------------- |
@@ -21,2 +21,3 @@ require 'sendgrid-ruby' | ||
| # rubocop:disable Metrics/AbcSize | ||
| def kitchen_sink | ||
@@ -33,2 +34,5 @@ mail = SendGrid::Mail.new | ||
| personalization.add_bcc(Email.new(email: 'test6@example.com', name: 'Example User')) | ||
| # Note, the domain of the from email property specified in any personalization must | ||
| # match the domain of the from email property specified at root level | ||
| personalization.from = Email.new(email: 'alias@example.com', name: "My alias") | ||
| personalization.subject = 'Hello World from the Personalized Twilio SendGrid Ruby Library' | ||
@@ -129,2 +133,3 @@ personalization.add_header(Header.new(key: 'X-Test', value: 'True')) | ||
| end | ||
| # rubocop:enable Metrics/AbcSize | ||
@@ -131,0 +136,0 @@ def dynamic_template_data_hello_world |
@@ -8,6 +8,7 @@ require 'json' | ||
| attr_accessor :send_at, :subject | ||
| attr_accessor :send_at, :subject, :from | ||
| def initialize | ||
| @tos = [] | ||
| @from = nil | ||
| @ccs = [] | ||
@@ -63,2 +64,3 @@ @bccs = [] | ||
| 'to' => tos, | ||
| 'from' => from, | ||
| 'cc' => ccs, | ||
@@ -65,0 +67,0 @@ 'bcc' => bccs, |
| module SendGrid | ||
| VERSION = '6.4.0'.freeze | ||
| VERSION = '6.5.0'.freeze | ||
| end |
+0
-1
@@ -5,3 +5,2 @@  | ||
| [](https://badge.fury.io/rb/sendgrid-ruby) | ||
| [](https://dx.sendgrid.com/newsletter/ruby) | ||
| [](LICENSE) | ||
@@ -8,0 +7,0 @@ [](https://twitter.com/sendgrid) |
Sorry, the diff of this file is too big to display