Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,28 @@ jobs:
if: ${{ needs.test.result != 'success' }}
run: exit 1

notify:
# Run only on master, but regardless of whether tests past:
if: ${{ always() && github.ref == 'refs/heads/master' }}

needs: test_matrix

runs-on: ubuntu-latest

steps:
- uses: 8398a7/action-slack@v3
with:
status: custom
fields: workflow,commit,author
custom_payload: |
{
channel: 'C7FQWGDHP',
username: 'CI – ' + '${{ github.repository }}'.split('/')[1],
icon_emoji: ':hammer_and_wrench:',
attachments: [{
color: '${{ needs.test_matrix.result }}' === 'success' ? 'good' : '${{ needs.test_matrix.result }}' === 'failure' ? 'danger' : 'warning',
text: `${process.env.AS_WORKFLOW} against \`${{ github.ref }}\` (${process.env.AS_COMMIT}) for ${{ github.actor }} resulted in *${{ needs.test_matrix.result }}*.`
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# notify:
# # Run only on master, but regardless of whether tests past:
# if: ${{ always() && github.ref == 'refs/heads/master' }}
#
# needs: test_matrix
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: 8398a7/action-slack@v3
# with:
# status: custom
# fields: workflow,commit,author
# custom_payload: |
# {
# channel: 'C7FQWGDHP',
# username: 'CI – ' + '${{ github.repository }}'.split('/')[1],
# icon_emoji: ':hammer_and_wrench:',
# attachments: [{
# color: '${{ needs.test_matrix.result }}' === 'success' ? 'good' : '${{ needs.test_matrix.result }}' === 'failure' ? 'danger' : 'warning',
# text: `${process.env.AS_WORKFLOW} against \`${{ github.ref }}\` (${process.env.AS_COMMIT}) for ${{ github.actor }} resulted in *${{ needs.test_matrix.result }}*.`
# }]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [Unreleased]
### Fixed
* Support Ruby 3.4. Drop support for Rails 7.0, Ruby 3.1
* Support dogstatsd-ruby 5

## 0.2.2 / 2024-11-19
### Added
Expand Down
2 changes: 1 addition & 1 deletion ndr_stats.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_dependency 'dogstatsd-ruby', '~> 4.5'
spec.add_dependency 'dogstatsd-ruby', '>= 4.5', '< 6.0'

# We list development dependencies for all Rails versions here.
# Rails version-specific dependencies can go in the relevant Gemfile.
Expand Down
1 change: 0 additions & 1 deletion test/dummy/.ruby-version

This file was deleted.

4 changes: 2 additions & 2 deletions test/ndr_stats_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def test_that_it_is_configurable

adaptor = NdrStats.adaptor
assert_kind_of Datadog::Statsd, adaptor
assert_equal 'test.host', adaptor.connection.host
assert_equal 9125, adaptor.connection.port
assert_equal 'test.host', adaptor.respond_to?(:host) ? adaptor.host : adaptor.connection.host
assert_equal 9125, adaptor.respond_to?(:port) ? adaptor.port : adaptor.connection.port
assert_equal %w[system:app stack:live], adaptor.tags
end
end
Expand Down