ruby_http_client 3.5.5 → 3.6.0

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: df6784568b7cfdb143babd965769db47152a14d9b9b5173bdc8d45214478f9dc
4
- data.tar.gz: 63924dfdbea58b0c0cc6242683bce10c4fe028ec15f4c4911dd9b386a3dbd240
3
+ metadata.gz: c3c15ff5c200572583564ee402252369d4d8e342a6244d9e7af025ccae64d138
4
+ data.tar.gz: 99633a6ab5edb06a4b8d1041b5aa8a5e1725fd31c4ce3505823692fe3072019a
5
5
  SHA512:
6
- metadata.gz: 82390fc25bc470eb3d2cf2024f1504ba24523a761c227906ea982b8801abc8ed8749cf98a7c7ae84f73960d1ff310fd629ad805f9c33f76a6d0c44c3d2856c7e
7
- data.tar.gz: b62d1f6f7c42b4b5a68d4ceae28099201f1c9f2fd10ee85be311f310ee7a9b46d58975f2adcef8604fd5fa467196cf3f0bc742d68b5381f8c6ff939998bfdb0c
6
+ metadata.gz: 32c5872d65a173c017bd357540b7af66112a0a623fb85065b624318f06787d54be14439fa6abb14af38a11d840407161316ce2fcc52ae27c0c98ac760285199a
7
+ data.tar.gz: 56e89182270208458c52102beed36eaaf76fd3010bf9e06eb5f7bc46202c48f55b54e23b8f46350bba149cabae9bdb89583ab625fed56622e9ca90c89341bbcc
@@ -0,0 +1,15 @@
1
+ name: Lint PR
2
+ on:
3
+ pull_request_target:
4
+ types: [ opened, edited, synchronize, reopened ]
5
+
6
+ jobs:
7
+ validate:
8
+ name: Validate title
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: amannn/action-semantic-pull-request@v4
12
+ with:
13
+ types: chore docs fix feat test misc
14
+ env:
15
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -17,7 +17,7 @@ jobs:
17
17
  timeout-minutes: 20
18
18
  strategy:
19
19
  matrix:
20
- ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', 'jruby-9.2' ]
20
+ ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1' ]
21
21
  steps:
22
22
  - name: Checkout ruby-http-client
23
23
  uses: actions/checkout@v2
data/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ [2022-03-09] Version 3.6.0
7
+ --------------------------
8
+ **Library - Chore**
9
+ - [PR #137](https://github.com/sendgrid/ruby-http-client/pull/137): push Datadog Release Metric upon deploy success. Thanks to [@chaadow](https://github.com/chaadow)!
10
+
11
+
6
12
  [2022-03-09] Version 3.5.5
7
13
  --------------------------
8
14
  **Library - Chore**
@@ -177,4 +183,4 @@ This project adheres to [Semantic Versioning](http://semver.org/).
177
183
 
178
184
  ## [1.0.0] - 2016-03-17
179
185
  ### Added
180
- - We are live!
186
+ - We are live!
data/CONTRIBUTING.md CHANGED
@@ -1,7 +1,5 @@
1
1
  Hello! Thank you for choosing to help contribute to one of the SendGrid open source libraries. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies.
2
2
 
3
- - [Feature Request](#feature-request)
4
- - [Submit a Bug Report](#submit-a-bug-report)
5
3
  - [Improvements to the Codebase](#improvements-to-the-codebase)
6
4
  - [Understanding the Code Base](#understanding-the-codebase)
7
5
  - [Testing](#testing)
@@ -9,33 +7,6 @@ Hello! Thank you for choosing to help contribute to one of the SendGrid open sou
9
7
  - [Creating a Pull Request](#creating-a-pull-request)
10
8
  - [Code Reviews](#code-reviews)
11
9
 
12
- <a name="feature-request"></a>
13
- ## Feature Request
14
-
15
- If you'd like to make a feature request, please read this section.
16
-
17
- The GitHub issue tracker is the preferred channel for library feature requests, but please respect the following restrictions:
18
-
19
- - Please **search for existing issues** in order to ensure we don't have duplicate bugs/feature requests.
20
- - Please be respectful and considerate of others when commenting on issues
21
-
22
- <a name="submit-a-bug-report"></a>
23
- ## Submit a Bug Report
24
-
25
- Note: DO NOT include your credentials in ANY code examples, descriptions, or media you make public.
26
-
27
- A software bug is a demonstrable issue in the code base. In order for us to diagnose the issue and respond as quickly as possible, please add as much detail as possible into your bug report.
28
-
29
- Before you decide to create a new issue, please try the following:
30
-
31
- 1. Check the Github issues tab if the identified issue has already been reported, if so, please add a +1 to the existing post.
32
- 2. Update to the latest version of this code and check if the issue has already been fixed
33
- 3. Copy and fill in the Bug Report Template we have provided below
34
-
35
- ### Please use our Bug Report Template
36
-
37
- In order to make the process easier, we've included a [sample bug report template](ISSUE_TEMPLATE.md).
38
-
39
10
  <a name="improvements-to-the-codebase"></a>
40
11
  ## Improvements to the Codebase
41
12
 
data/FIRST_TIMERS.md CHANGED
@@ -51,29 +51,3 @@ git push origin <topic-branch-name>
51
51
  ## Important notice
52
52
 
53
53
  Before creating a pull request, make sure that you respect the repository's constraints regarding contributions. You can find them in the [CONTRIBUTING.md](CONTRIBUTING.md) file.
54
-
55
- ## Repositories with Open, Easy, Help Wanted, Issue Filters
56
-
57
- * [Python SDK](https://github.com/sendgrid/sendgrid-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
58
- * [PHP SDK](https://github.com/sendgrid/sendgrid-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
59
- * [C# SDK](https://github.com/sendgrid/sendgrid-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
60
- * [Ruby SDK](https://github.com/sendgrid/sendgrid-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
61
- * [Node.js SDK](https://github.com/sendgrid/sendgrid-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
62
- * [Java SDK](https://github.com/sendgrid/sendgrid-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
63
- * [Go SDK](https://github.com/sendgrid/sendgrid-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
64
- * [Python SMTPAPI Client](https://github.com/sendgrid/smtpapi-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
65
- * [PHP SMTPAPI Client](https://github.com/sendgrid/smtpapi-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
66
- * [C# SMTPAPI Client](https://github.com/sendgrid/smtpapi-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
67
- * [Ruby SMTPAPI Client](https://github.com/sendgrid/smtpapi-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
68
- * [Node.js SMTPAPI Client](https://github.com/sendgrid/smtpapi-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
69
- * [Java SMTPAPI Client](https://github.com/sendgrid/smtpapi-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
70
- * [Go SMTPAPI Client](https://github.com/sendgrid/smtpapi-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
71
- * [Python HTTP Client](https://github.com/sendgrid/python-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
72
- * [PHP HTTP Client](https://github.com/sendgrid/php-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
73
- * [C# HTTP Client](https://github.com/sendgrid/csharp-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
74
- * [Java HTTP Client](https://github.com/sendgrid/java-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
75
- * [Ruby HTTP Client](https://github.com/sendgrid/ruby-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
76
- * [Go HTTP Client](https://github.com/sendgrid/rest/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
77
- * [Open API Definition](https://github.com/sendgrid/sendgrid-oai/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
78
- * [DX Automator](https://github.com/sendgrid/dx-automator/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
79
- * [Documentation](https://github.com/sendgrid/docs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (C) 2022, Twilio SendGrid, Inc. <help@twilio.com>
3
+ Copyright (C) 2025, Twilio SendGrid, Inc. <help@twilio.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
@@ -3,7 +3,7 @@ We appreciate the effort for this pull request but before that please make sure
3
3
 
4
4
  Please format the PR title appropriately based on the type of change:
5
5
  <type>[!]: <description>
6
- Where <type> is one of: docs, chore, feat, fix, test.
6
+ Where <type> is one of: docs, chore, feat, fix, test, misc.
7
7
  Add a '!' after the type for breaking changes (e.g. feat!: new breaking feature).
8
8
 
9
9
  **All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.**
@@ -28,4 +28,4 @@ A short description of what this PR does.
28
28
  - [ ] I have added the necessary documentation about the functionality in the appropriate .md file
29
29
  - [ ] I have added inline documentation to the code I modified
30
30
 
31
- If you have questions, please file a [support ticket](https://support.sendgrid.com), or create a GitHub Issue in this repository.
31
+ If you have questions, please file a [support ticket](https://support.sendgrid.com).
data/README.md CHANGED
@@ -11,8 +11,6 @@
11
11
  If you are looking for the SendGrid API client library, please see [this repo](https://github.com/sendgrid/sendgrid-ruby).
12
12
 
13
13
  # Announcements
14
- **The default branch name for this repository has been changed to `main` as of 07/27/2020.**
15
-
16
14
  All updates to this library are documented in our [CHANGELOG](CHANGELOG.md).
17
15
 
18
16
  # Table of Contents
@@ -21,6 +19,7 @@ All updates to this library are documented in our [CHANGELOG](CHANGELOG.md).
21
19
  - [Usage](#usage)
22
20
  - [How to Contribute](#contribute)
23
21
  - [About](#about)
22
+ - [Support](#support)
24
23
  - [License](#license)
25
24
 
26
25
  <a name="installation"></a>
@@ -92,8 +91,6 @@ We encourage contribution to our libraries, please see our [CONTRIBUTING](CONTRI
92
91
 
93
92
  Quick links:
94
93
 
95
- - [Feature Request](CONTRIBUTING.md#feature-request)
96
- - [Bug Reports](CONTRIBUTING.md#submit-a-bug-report)
97
94
  - [Improvements to the Codebase](CONTRIBUTING.md#improvements-to-the-codebase)
98
95
  - [Review Pull Requests](CONTRIBUTING.md#code-reviews)
99
96
 
@@ -102,9 +99,10 @@ Quick links:
102
99
 
103
100
  ruby-http-client is maintained and funded by Twilio SendGrid, Inc. The names and logos for ruby-http-client are trademarks of Twilio SendGrid, Inc.
104
101
 
105
- If you need help installing or using the library, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com).
102
+ <a name="support"></a>
103
+ # Support
106
104
 
107
- If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!
105
+ If you need help using SendGrid, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com).
108
106
 
109
107
  # License
110
108
  [The MIT License (MIT)](LICENSE)
data/TROUBLESHOOTING.md CHANGED
@@ -1,6 +1,5 @@
1
- If you have a non-library SendGrid issue, please contact our [support team](https://support.sendgrid.com).
1
+ If you have a SendGrid issue, please contact our [support team](https://support.sendgrid.com).
2
2
 
3
- If you can't find a solution below, please open an [issue](https://github.com/sendgrid/ruby-http-client/issues).
4
3
 
5
4
  ## Table of Contents
6
5
  * [Viewing the Request Body](#request-body)
@@ -184,7 +184,7 @@ module SendGrid
184
184
  # - The final url string
185
185
  #
186
186
  def build_url(query_params: nil)
187
- url = [add_version(''), *@url_path].join('/')
187
+ url = [add_version(+''), *@url_path].join('/')
188
188
  url = build_query_params(url, query_params) if query_params
189
189
  URI.parse("#{@host}#{url}")
190
190
  end
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'ruby_http_client'
6
- spec.version = '3.5.5'
6
+ spec.version = '3.6.0'
7
7
  spec.authors = ['Elmer Thomas']
8
8
  spec.email = 'help@twilio.com'
9
9
  spec.summary = 'A simple REST client'
@@ -372,10 +372,6 @@ class TestClient < Minitest::Test
372
372
  assert(File.file?('./CONTRIBUTING.md'))
373
373
  end
374
374
 
375
- def test_issue_template_exists
376
- assert(File.file?('./ISSUE_TEMPLATE.md'))
377
- end
378
-
379
375
  def test_license_exists
380
376
  assert(File.file?('./LICENSE'))
381
377
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.5
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elmer Thomas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-09 00:00:00.000000000 Z
11
+ date: 2025-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codecov
@@ -73,7 +73,7 @@ extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
75
  - ".env_sample"
76
- - ".github/ISSUE_TEMPLATE/config.yml"
76
+ - ".github/workflows/pr-lint.yml"
77
77
  - ".github/workflows/test-and-deploy.yml"
78
78
  - ".gitignore"
79
79
  - ".rubocop.yml"
@@ -83,7 +83,6 @@ files:
83
83
  - CONTRIBUTING.md
84
84
  - FIRST_TIMERS.md
85
85
  - Gemfile
86
- - ISSUE_TEMPLATE.md
87
86
  - LICENSE
88
87
  - Makefile
89
88
  - PULL_REQUEST_TEMPLATE.md
@@ -104,7 +103,7 @@ homepage: http://github.com/sendgrid/ruby-http-client
104
103
  licenses:
105
104
  - MIT
106
105
  metadata: {}
107
- post_install_message:
106
+ post_install_message:
108
107
  rdoc_options: []
109
108
  require_paths:
110
109
  - lib
@@ -119,8 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
118
  - !ruby/object:Gem::Version
120
119
  version: '0'
121
120
  requirements: []
122
- rubygems_version: 3.3.7
123
- signing_key:
121
+ rubygems_version: 3.3.27
122
+ signing_key:
124
123
  specification_version: 4
125
124
  summary: A simple REST client
126
125
  test_files:
@@ -1,10 +0,0 @@
1
- contact_links:
2
- - name: Twilio SendGrid Support
3
- url: https://support.sendgrid.com
4
- about: Get Support
5
- - name: Stack Overflow
6
- url: https://stackoverflow.com/questions/tagged/ruby-http-client+or+sendgrid+ruby
7
- about: Ask questions on Stack Overflow
8
- - name: Documentation
9
- url: https://sendgrid.com/docs/for-developers/
10
- about: View Reference Documentation
data/ISSUE_TEMPLATE.md DELETED
@@ -1,30 +0,0 @@
1
- <!--
2
- If this is a feature request, make sure you search Issues for an existing request before creating a new one!
3
-
4
- Please utilize the template below to help us resolve your issue.
5
-
6
- Note that many issues can be resolved by updating to the latest version.
7
- -->
8
-
9
- ### Issue Summary
10
- A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, or code examples.
11
-
12
- ### Steps to Reproduce
13
- 1. This is the first step
14
- 2. This is the second step
15
- 3. Further steps, etc.
16
-
17
- ### Code Snippet
18
- ```ruby
19
- # paste code here
20
- ```
21
-
22
- ### Exception/Log
23
- ```
24
- # paste exception/log here
25
- ```
26
-
27
- ### Technical details:
28
- * ruby-http-client version:
29
- * ruby version:
30
-