twilio-ruby 5.60.0 → 5.61.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
- SHA256:
3
- metadata.gz: 449133db663db3b60cc607933b4783cb0aceaeae1d433b4ab0a49b3479a67e21
4
- data.tar.gz: 9fb3a8f43bdcfa5fbe10924c2dcfd08c52ef5e81c65993c238987476e7743460
2
+ SHA1:
3
+ metadata.gz: 2f67e55070e1d0eddd733aab27eb25aaac27b3ca
4
+ data.tar.gz: 8152831ec638b70b0bae3a6596080c1fa6c7ced9
5
5
  SHA512:
6
- metadata.gz: 2378219ca67c2272011f66eff0327e903a99abe47b1cf770df03fe831d31e31efc39a6f84764a433b7159b0f2bb43ecf466665b58ca26507613c5037cc2bca2c
7
- data.tar.gz: 439ea62d619c181d829a03e5f50e9d20c0271e479ef23abe8363478c09dfa1a25672627de7f3e5617570044af2f48e6250e8f3d87990bd2082a6460148ba2fd8
6
+ metadata.gz: 4386a3cee85ffba9015d8eb0aba9012fbe5e8465635f96bfe563fafbd2aa6d99c0b4228a6b8dfca7fb958c16175b079eaa44e9c06d1944fdc8fdd630de3f58af
7
+ data.tar.gz: f57664647dd26b987cd3cc45b6ff2035880bb324acc1b790a9271d66bdbdc7ca12d73164be50fe023e11ece500db1044717db855006791569b903f7d42cdf927
@@ -0,0 +1,63 @@
1
+ name: Deploy
2
+ on:
3
+ push:
4
+ tags:
5
+ - '*'
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ deploy:
10
+ name: Deploy to Rubygems
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout twilio-ruby
14
+ uses: actions/checkout@v2
15
+
16
+ - name: Login to Docker Hub
17
+ uses: docker/login-action@v1
18
+ with:
19
+ username: ${{ secrets.DOCKER_USERNAME }}
20
+ password: ${{ secrets.DOCKER_AUTH_TOKEN }}
21
+
22
+ # The expression strips off the shortest match from the front of the string to yield just the tag name as the output
23
+ - name: Get tagged version
24
+ run: echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
25
+
26
+ - name: Build and Push image
27
+ run: make docker-build && make docker-push
28
+
29
+ - name: Set up Ruby
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: 2.4
33
+ bundler-cache: true
34
+
35
+ - run: bundle install
36
+ - name: Publish to Rubygems
37
+ env:
38
+ GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
39
+ run: |
40
+ mkdir -p $HOME/.gem
41
+ touch $HOME/.gem/credentials
42
+ chmod 0600 $HOME/.gem/credentials
43
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
44
+ gem build *.gemspec
45
+ gem push *.gem
46
+
47
+ notify-on-failure:
48
+ name: Slack notify on failure
49
+ if: ${{ failure() }}
50
+ needs: [deploy]
51
+ runs-on: ubuntu-latest
52
+ steps:
53
+ - uses: rtCamp/action-slack-notify@v2
54
+ env:
55
+ SLACK_COLOR: ${{ needs.deploy.status }}
56
+ SLACK_ICON_EMOJI: ':github:'
57
+ SLACK_MESSAGE: ${{ format('Failed to publish {1} to RubyGems{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }}
58
+ SLACK_TITLE: Deployment Failure
59
+ SLACK_USERNAME: GitHub Actions
60
+ SLACK_MSG_AUTHOR: twilio-dx
61
+ SLACK_FOOTER: Posted automatically using GitHub Actions
62
+ SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
63
+ MSG_MINIMAL: true
@@ -0,0 +1,51 @@
1
+ name: Tests
2
+ on:
3
+ push:
4
+ branches: [ '*' ]
5
+ pull_request:
6
+ branches: [ main ]
7
+ schedule:
8
+ # Run automatically at 8AM PST Monday-Friday
9
+ - cron: '0 15 * * 1-5'
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ test:
14
+ name: Test
15
+ runs-on: ubuntu-latest
16
+ timeout-minutes: 20
17
+ strategy:
18
+ matrix:
19
+ ruby: [2.4, 2.5, 2.6, 2.7, '3.0', ruby-head, jruby-9.2]
20
+ steps:
21
+ - name: Checkout twilio-ruby
22
+ uses: actions/checkout@v2
23
+
24
+ - name: Set up Ruby
25
+ uses: ruby/setup-ruby@v1
26
+ with:
27
+ ruby-version: ${{ matrix.ruby }}
28
+ bundler-cache: true
29
+
30
+ - run: bundle install --with development
31
+ - run: bundle exec rake install
32
+ - name: Run Unit Tests
33
+ run: make test
34
+
35
+ notify-on-failure:
36
+ name: Slack notify on failure
37
+ if: ${{ failure() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
38
+ needs: [test]
39
+ runs-on: ubuntu-latest
40
+ steps:
41
+ - uses: rtCamp/action-slack-notify@v2
42
+ env:
43
+ SLACK_COLOR: ${{ needs.test.status }}
44
+ SLACK_ICON_EMOJI: ':github:'
45
+ SLACK_MESSAGE: ${{ format('Build {2} in {1} failed{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }}
46
+ SLACK_TITLE: Build Failure
47
+ SLACK_USERNAME: GitHub Actions
48
+ SLACK_MSG_AUTHOR: twilio-dx
49
+ SLACK_FOOTER: Posted automatically using GitHub Actions
50
+ SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
51
+ MSG_MINIMAL: true
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
1
  *~
2
- .*
3
2
  !.rubocop_todo.yml
4
3
  !.rubocop.yml
5
4
  !.travis.yml
@@ -12,5 +11,7 @@ bin
12
11
  docs/_build
13
12
  *.bak
14
13
  *.iml
14
+ .bundle
15
+ .rakeTasks
15
16
 
16
17
  coverage