ruby_http_client 3.5.2 → 3.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/config.yml +10 -0
- data/.github/workflows/test-and-deploy.yml +99 -0
- data/.rubocop.yml +3 -1
- data/.rubocop_todo.yml +65 -0
- data/CHANGELOG.md +14 -0
- data/LICENSE +1 -1
- data/README.md +1 -2
- data/ruby_http_client.gemspec +1 -2
- data/test/test_helper.rb +1 -1
- data/test/test_ruby_http_client.rb +2 -6
- metadata +6 -19
- data/.codeclimate.yml +0 -16
- data/.travis.yml +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aafc3cc7f305da17f92cfb2bdb0e60ca5a9d7c076bc688fc8559b737049f5c3
|
4
|
+
data.tar.gz: 4ee430b196d2a94e15d96d1762d16075957875561fe6775e11929e68ea11e854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a62a58ee3666b835c1751524c46aa5b6af8897decb2ea7dbcc90de1524b9177c5f9c2db3a35a3952e108c25586df927f593dbc836a4676fdc74a9955ee61e3f
|
7
|
+
data.tar.gz: 2a6b432306346814a20994b0134510cc90ba083549f1ac693851ab5b3159abb1409550e9b0b30033532421c3e36c5b8ad95a5ef83121ebe3713b144555798d92
|
@@ -0,0 +1,10 @@
|
|
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
|
@@ -0,0 +1,99 @@
|
|
1
|
+
name: Test and Deploy
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ '*' ]
|
5
|
+
tags: [ '*' ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ main ]
|
8
|
+
schedule:
|
9
|
+
# Run automatically at 8AM PST Monday-Friday
|
10
|
+
- cron: '0 15 * * 1-5'
|
11
|
+
workflow_dispatch:
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
test:
|
15
|
+
name: Test
|
16
|
+
runs-on: ubuntu-latest
|
17
|
+
timeout-minutes: 20
|
18
|
+
strategy:
|
19
|
+
matrix:
|
20
|
+
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', 'jruby-9.2' ]
|
21
|
+
steps:
|
22
|
+
- name: Checkout ruby-http-client
|
23
|
+
uses: actions/checkout@v2
|
24
|
+
with:
|
25
|
+
fetch-depth: 0
|
26
|
+
|
27
|
+
- name: Set up Ruby
|
28
|
+
uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
ruby-version: ${{ matrix.ruby }}
|
31
|
+
bundler-cache: true
|
32
|
+
|
33
|
+
- run: make install
|
34
|
+
|
35
|
+
- name: Set up linter
|
36
|
+
run: bundle add rubocop --version "~> 1.24.1" --group "development" --skip-install
|
37
|
+
if: ${{ matrix.ruby != '2.4' }}
|
38
|
+
|
39
|
+
- run: bundle install --with development
|
40
|
+
|
41
|
+
- name: Run linter
|
42
|
+
run: bundle exec rake rubocop
|
43
|
+
if: ${{ matrix.ruby != '2.4' }}
|
44
|
+
|
45
|
+
- name: Run tests
|
46
|
+
run: make test
|
47
|
+
|
48
|
+
deploy:
|
49
|
+
name: Deploy
|
50
|
+
if: success() && github.ref_type == 'tag'
|
51
|
+
needs: [ test ]
|
52
|
+
runs-on: ubuntu-latest
|
53
|
+
steps:
|
54
|
+
- name: Checkout ruby-http-client
|
55
|
+
uses: actions/checkout@v2
|
56
|
+
with:
|
57
|
+
fetch-depth: 0
|
58
|
+
|
59
|
+
- name: Set up Ruby
|
60
|
+
uses: ruby/setup-ruby@v1
|
61
|
+
with:
|
62
|
+
ruby-version: 3.1
|
63
|
+
bundler-cache: true
|
64
|
+
|
65
|
+
- run: make install
|
66
|
+
|
67
|
+
- name: Create GitHub Release
|
68
|
+
uses: sendgrid/dx-automator/actions/release@main
|
69
|
+
env:
|
70
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
71
|
+
|
72
|
+
- name: Publish to Rubygems
|
73
|
+
env:
|
74
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
|
75
|
+
run: |
|
76
|
+
mkdir -p $HOME/.gem
|
77
|
+
touch $HOME/.gem/credentials
|
78
|
+
chmod 0600 $HOME/.gem/credentials
|
79
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
80
|
+
gem build *.gemspec
|
81
|
+
gem push *.gem
|
82
|
+
|
83
|
+
notify-on-failure:
|
84
|
+
name: Slack notify on failure
|
85
|
+
if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
|
86
|
+
needs: [ test, deploy ]
|
87
|
+
runs-on: ubuntu-latest
|
88
|
+
steps:
|
89
|
+
- uses: rtCamp/action-slack-notify@v2
|
90
|
+
env:
|
91
|
+
SLACK_COLOR: failure
|
92
|
+
SLACK_ICON_EMOJI: ':github:'
|
93
|
+
SLACK_MESSAGE: ${{ format('Test *{0}*, Deploy *{1}*, {2}/{3}/actions/runs/{4}', needs.test.result, needs.deploy.result, github.server_url, github.repository, github.run_id) }}
|
94
|
+
SLACK_TITLE: Action Failure - ${{ github.repository }}
|
95
|
+
SLACK_USERNAME: GitHub Actions
|
96
|
+
SLACK_MSG_AUTHOR: twilio-dx
|
97
|
+
SLACK_FOOTER: Posted automatically using GitHub Actions
|
98
|
+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
99
|
+
MSG_MINIMAL: true
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2022-01-25 23:29:33 UTC using RuboCop version 1.22.2.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Configuration parameters: Include.
|
11
|
+
# Include: **/*.gemspec
|
12
|
+
Gemspec/RequiredRubyVersion:
|
13
|
+
Exclude:
|
14
|
+
- 'ruby_http_client.gemspec'
|
15
|
+
|
16
|
+
# Offense count: 1
|
17
|
+
# Cop supports --auto-correct.
|
18
|
+
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
|
19
|
+
# AllowedMethods: alias_method, public, protected, private
|
20
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
21
|
+
Exclude:
|
22
|
+
- 'lib/ruby_http_client.rb'
|
23
|
+
|
24
|
+
# Offense count: 1
|
25
|
+
# Cop supports --auto-correct.
|
26
|
+
# Configuration parameters: EnforcedStyle.
|
27
|
+
# SupportedStyles: final_newline, final_blank_line
|
28
|
+
Layout/TrailingEmptyLines:
|
29
|
+
Exclude:
|
30
|
+
- 'Gemfile'
|
31
|
+
|
32
|
+
# Offense count: 1
|
33
|
+
Lint/MissingSuper:
|
34
|
+
Exclude:
|
35
|
+
- 'test/test_ruby_http_client.rb'
|
36
|
+
|
37
|
+
# Offense count: 1
|
38
|
+
# Cop supports --auto-correct.
|
39
|
+
Lint/RedundantCopDisableDirective:
|
40
|
+
Exclude:
|
41
|
+
- 'lib/ruby_http_client.rb'
|
42
|
+
|
43
|
+
# Offense count: 1
|
44
|
+
# Cop supports --auto-correct.
|
45
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
46
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
47
|
+
Style/HashSyntax:
|
48
|
+
Exclude:
|
49
|
+
- 'Gemfile'
|
50
|
+
|
51
|
+
# Offense count: 4
|
52
|
+
# Cop supports --auto-correct.
|
53
|
+
# Configuration parameters: Mode.
|
54
|
+
Style/StringConcatenation:
|
55
|
+
Exclude:
|
56
|
+
- 'lib/ruby_http_client.rb'
|
57
|
+
- 'test/test_ruby_http_client.rb'
|
58
|
+
|
59
|
+
# Offense count: 2
|
60
|
+
# Cop supports --auto-correct.
|
61
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
62
|
+
# SupportedStyles: single_quotes, double_quotes
|
63
|
+
Style/StringLiterals:
|
64
|
+
Exclude:
|
65
|
+
- 'Gemfile'
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,20 @@ 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-02-09] Version 3.5.4
|
7
|
+
--------------------------
|
8
|
+
**Library - Chore**
|
9
|
+
- [PR #129](https://github.com/sendgrid/ruby-http-client/pull/129): upgrade supported language versions. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
10
|
+
- [PR #128](https://github.com/sendgrid/ruby-http-client/pull/128): add gh release to workflow. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)!
|
11
|
+
- [PR #127](https://github.com/sendgrid/ruby-http-client/pull/127): migrate to gh actions. Thanks to [@beebzz](https://github.com/beebzz)!
|
12
|
+
|
13
|
+
|
14
|
+
[2022-01-12] Version 3.5.3
|
15
|
+
--------------------------
|
16
|
+
**Library - Chore**
|
17
|
+
- [PR #126](https://github.com/sendgrid/ruby-http-client/pull/126): update license year. Thanks to [@JenniferMah](https://github.com/JenniferMah)!
|
18
|
+
|
19
|
+
|
6
20
|
[2021-01-13] Version 3.5.2
|
7
21
|
--------------------------
|
8
22
|
**Library - Fix**
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
-
Copyright (C)
|
3
|
+
Copyright (C) 2022, 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
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
![SendGrid Logo](twilio_sendgrid_logo.png)
|
2
2
|
|
3
|
-
[![BuildStatus](https://
|
4
|
-
[![Email Notifications Badge](https://dx.sendgrid.com/badge/ruby)](https://dx.sendgrid.com/newsletter/ruby)
|
3
|
+
[![BuildStatus](https://github.com/sendgrid/ruby-http-client/actions/workflows/test-and-deploy.yml/badge.svg)](https://github.com/sendgrid/ruby-http-client/actions/workflows/test-and-deploy.yml)
|
5
4
|
[![Gem Version](https://badge.fury.io/rb/ruby_http_client.svg)](https://badge.fury.io/rb/ruby_http_client)
|
6
5
|
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
|
7
6
|
[![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid)
|
data/ruby_http_client.gemspec
CHANGED
@@ -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.
|
6
|
+
spec.version = '3.5.4'
|
7
7
|
spec.authors = ['Elmer Thomas']
|
8
8
|
spec.email = 'help@twilio.com'
|
9
9
|
spec.summary = 'A simple REST client'
|
@@ -18,6 +18,5 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.add_development_dependency 'codecov'
|
19
19
|
spec.add_development_dependency 'minitest'
|
20
20
|
spec.add_development_dependency 'rake'
|
21
|
-
spec.add_development_dependency 'rubocop', '~> 0.88.0'
|
22
21
|
spec.add_development_dependency 'simplecov', '~> 0.18.5'
|
23
22
|
end
|
data/test/test_helper.rb
CHANGED
@@ -356,12 +356,8 @@ class TestClient < Minitest::Test
|
|
356
356
|
assert(File.file?('./.gitignore'))
|
357
357
|
end
|
358
358
|
|
359
|
-
def
|
360
|
-
assert(File.file?('./.
|
361
|
-
end
|
362
|
-
|
363
|
-
def test_codeclimate_exists
|
364
|
-
assert(File.file?('./.codeclimate.yml'))
|
359
|
+
def test_gh_actions_exists
|
360
|
+
assert(File.file?('./.github/workflows/test-and-deploy.yml'))
|
365
361
|
end
|
366
362
|
|
367
363
|
def test_changelog_exists
|
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.
|
4
|
+
version: 3.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elmer Thomas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codecov
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rubocop
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.88.0
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.88.0
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: simplecov
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,11 +72,12 @@ executables: []
|
|
86
72
|
extensions: []
|
87
73
|
extra_rdoc_files: []
|
88
74
|
files:
|
89
|
-
- ".codeclimate.yml"
|
90
75
|
- ".env_sample"
|
76
|
+
- ".github/ISSUE_TEMPLATE/config.yml"
|
77
|
+
- ".github/workflows/test-and-deploy.yml"
|
91
78
|
- ".gitignore"
|
92
79
|
- ".rubocop.yml"
|
93
|
-
- ".
|
80
|
+
- ".rubocop_todo.yml"
|
94
81
|
- CHANGELOG.md
|
95
82
|
- CODE_OF_CONDUCT.md
|
96
83
|
- CONTRIBUTING.md
|
@@ -132,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
119
|
- !ruby/object:Gem::Version
|
133
120
|
version: '0'
|
134
121
|
requirements: []
|
135
|
-
rubygems_version: 3.
|
122
|
+
rubygems_version: 3.3.3
|
136
123
|
signing_key:
|
137
124
|
specification_version: 4
|
138
125
|
summary: A simple REST client
|
data/.codeclimate.yml
DELETED
data/.travis.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
env:
|
2
|
-
global:
|
3
|
-
- CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID
|
4
|
-
language: ruby
|
5
|
-
rvm:
|
6
|
-
- 2.7
|
7
|
-
- 2.6
|
8
|
-
- 2.5
|
9
|
-
- 2.4
|
10
|
-
- jruby-9.2
|
11
|
-
before_script:
|
12
|
-
- make install
|
13
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
14
|
-
- chmod +x ./cc-test-reporter
|
15
|
-
- "./cc-test-reporter before-build"
|
16
|
-
script:
|
17
|
-
- make test
|
18
|
-
after_script:
|
19
|
-
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
|
20
|
-
deploy:
|
21
|
-
provider: rubygems
|
22
|
-
api_key: $RUBYGEMS_API_KEY
|
23
|
-
gem: ruby_http_client
|
24
|
-
on:
|
25
|
-
tags: true
|
26
|
-
rvm: '2.4'
|
27
|
-
skip_cleanup: true
|
28
|
-
|
29
|
-
notifications:
|
30
|
-
slack:
|
31
|
-
if: branch = main
|
32
|
-
on_pull_requests: false
|
33
|
-
on_success: never
|
34
|
-
on_failure: change
|
35
|
-
rooms:
|
36
|
-
- secure: k9NxCTK/mvoRHWJ6QQ5ErM/+T7yy6KcUjNtb5WgsiA+OyjRgQb5qcm83pYXstDRP6JyEGmuLs4GLIQYSTte1yBvXzM2EqneltNZL2sc+r24zWFcVu6KZb/eq1+diJes+76W4tXT0w+uyyZc9sudFND32RUvcKr31jNvlHDpaII9sose9qC23YKf2u4PlxH8l7wRd3k58XeL9TaQ40xt+NiIrv1R+4QT1GnuYr9cqXrCbTNsZidrdnLmqHybsoJsHjqq7PRDi92CZBQitwzGDnyiOr40CBsqs0VoiUttsKxrG6WCglEDd2wlhYha8ti7z6GxshQHRk2bOePi2Z2YHLJXJcrkLxukCUcf/5GPu+M0vdVj+wWfrlIRa5yPW9dpEgain6Av8c/zc9GOMvTNKNlnxreh3710pQh6b9+C0PfKmsIR3kTqwrDFZxu63IHy8S/CfyFQqHAo2X1TMnJLvvWzXnxAu/qB729YGwuJX57qjk56pvun+pZXGiRsk2okjPcz1zlcoyQOd/a8WqUNN5FEIvHd+cNeDFnYm0QwqBoMTurNc+LyvlB61BNcdq+J2GdtGjAksIc55adFkeOnVGMioW349lGt0LkuhI5um7O3J8b3Y7WPOt1tcR9o44G6t2aZOnnVNZVV04/A3XjlZSJAmG26K6HoBBl3o9uL8aWk=
|