amqp-client 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/docs.yml +3 -0
- data/.github/workflows/main.yml +76 -7
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/Rakefile +11 -4
- data/lib/amqp/client/channel.rb +1 -0
- data/lib/amqp/client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e287ef0dee4c9ec581690733c12c132f74c595ceddead1ba5b95b765138e11c
|
4
|
+
data.tar.gz: e5462c8cd2a4f7232a51e17d9ec93f4fb2ea88a922bb9b5cc58242cced78d61e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 923fb64c7234fb6718f7dbc5eb33c1f8de03a9cf12d669539935cc6ef83f4ca387afc80c1e56fcc2ed167dc14381cda1d7b6a67673c6516818909cb6a84c287d
|
7
|
+
data.tar.gz: 14c4d9157cee844609eeb5beed70ee2560ba3442c5afb857fed3e0945c443910f7bd4a281e327d2cb5ee0f0896facf4c8e693e5d3ecf1152c07474e20f8a724f
|
data/.github/workflows/docs.yml
CHANGED
data/.github/workflows/main.yml
CHANGED
@@ -3,8 +3,9 @@ name: Ruby
|
|
3
3
|
on: [push,pull_request]
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
|
6
|
+
tests:
|
7
7
|
runs-on: ubuntu-latest
|
8
|
+
timeout-minutes: 5
|
8
9
|
services:
|
9
10
|
rabbitmq:
|
10
11
|
image: rabbitmq:latest
|
@@ -19,17 +20,85 @@ jobs:
|
|
19
20
|
strategy:
|
20
21
|
fail-fast: false
|
21
22
|
matrix:
|
22
|
-
ruby: ['2.6', '2.7', '3.0', '
|
23
|
+
ruby: ['2.6', '2.7', '3.0', '3.1']
|
24
|
+
include:
|
25
|
+
- { ruby: jruby, allow-failure: true }
|
26
|
+
- { ruby: truffleruby, allow-failure: true }
|
23
27
|
steps:
|
24
28
|
- uses: actions/checkout@v2
|
25
29
|
- name: Set up Ruby
|
26
30
|
uses: ruby/setup-ruby@v1
|
27
31
|
with:
|
32
|
+
bundler-cache: true
|
28
33
|
ruby-version: ${{ matrix.ruby }}
|
29
|
-
- name: Run
|
30
|
-
|
31
|
-
|
32
|
-
bundle exec rake
|
34
|
+
- name: Run tests (excluding TLS tests)
|
35
|
+
continue-on-error: ${{ matrix.allow-failure || false }}
|
36
|
+
run: bundle exec rake
|
33
37
|
env:
|
34
|
-
TESTOPTS: --exclude=/_tls$/
|
35
38
|
AMQP_PORT: ${{ job.services.rabbitmq.ports[5672] }}
|
39
|
+
tls:
|
40
|
+
runs-on: ubuntu-latest
|
41
|
+
timeout-minutes: 5
|
42
|
+
strategy:
|
43
|
+
fail-fast: false
|
44
|
+
matrix:
|
45
|
+
ruby: ['3.0', 'jruby', 'truffleruby']
|
46
|
+
steps:
|
47
|
+
- name: Install RabbitMQ
|
48
|
+
run: sudo apt-get update && sudo apt-get install -y rabbitmq-server
|
49
|
+
- name: Stop RabbitMQ
|
50
|
+
run: sudo systemctl stop rabbitmq-server
|
51
|
+
|
52
|
+
- name: Install github.com/FiloSottile/mkcert
|
53
|
+
run: brew install mkcert
|
54
|
+
- name: Create local CA
|
55
|
+
run: sudo CAROOT=/etc/rabbitmq $(brew --prefix)/bin/mkcert -install
|
56
|
+
- name: Create certificate
|
57
|
+
run: |
|
58
|
+
sudo $(brew --prefix)/bin/mkcert -key-file /etc/rabbitmq/localhost-key.pem -cert-file /etc/rabbitmq/localhost.pem localhost
|
59
|
+
sudo chmod +r /etc/rabbitmq/localhost-key.pem
|
60
|
+
- name: Create RabbitMQ config
|
61
|
+
run: |
|
62
|
+
sudo tee /etc/rabbitmq/rabbitmq.conf <<'EOF'
|
63
|
+
listeners.ssl.default = 5671
|
64
|
+
ssl_options.cacertfile = /etc/rabbitmq/rootCA.pem
|
65
|
+
ssl_options.certfile = /etc/rabbitmq/localhost.pem
|
66
|
+
ssl_options.keyfile = /etc/rabbitmq/localhost-key.pem
|
67
|
+
EOF
|
68
|
+
- name: Start RabbitMQ
|
69
|
+
run: sudo systemctl start rabbitmq-server
|
70
|
+
- name: Verify RabbitMQ started correctly
|
71
|
+
run: while true; do sudo rabbitmq-diagnostics status 2>/dev/null && break; echo -n .; sleep 2; done
|
72
|
+
|
73
|
+
- uses: actions/checkout@v2
|
74
|
+
- name: Set up Ruby
|
75
|
+
uses: ruby/setup-ruby@v1
|
76
|
+
with:
|
77
|
+
bundler-cache: true
|
78
|
+
ruby-version: ${{ matrix.ruby }}
|
79
|
+
- name: Run TLS tests
|
80
|
+
run: bundle exec rake
|
81
|
+
env:
|
82
|
+
TESTOPTS: --name=/_tls$/
|
83
|
+
macos:
|
84
|
+
runs-on: macos-latest
|
85
|
+
timeout-minutes: 5
|
86
|
+
strategy:
|
87
|
+
fail-fast: false
|
88
|
+
matrix:
|
89
|
+
ruby: ['3.0']
|
90
|
+
steps:
|
91
|
+
- name: Install RabbitMQ
|
92
|
+
run: brew install rabbitmq
|
93
|
+
- name: Start RabbitMQ
|
94
|
+
run: brew services start rabbitmq
|
95
|
+
- uses: actions/checkout@v2
|
96
|
+
- name: Set up Ruby
|
97
|
+
uses: ruby/setup-ruby@v1
|
98
|
+
with:
|
99
|
+
bundler-cache: true
|
100
|
+
ruby-version: ${{ matrix.ruby }}
|
101
|
+
- name: Verify RabbitMQ started correctly
|
102
|
+
run: while true; do rabbitmq-diagnostics status 2>/dev/null && break; echo -n .; sleep 2; done
|
103
|
+
- name: Run tests (excluding TLS tests)
|
104
|
+
run: bundle exec rake
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -4,9 +4,16 @@ require "bundler/gem_tasks"
|
|
4
4
|
require "rake/testtask"
|
5
5
|
|
6
6
|
Rake::TestTask.new(:test) do |t|
|
7
|
-
t.
|
8
|
-
t.
|
9
|
-
t.
|
7
|
+
t.description = "Run all but TLS tests"
|
8
|
+
t.options = "--exclude=/_tls$/"
|
9
|
+
t.pattern = "test/**/*_test.rb"
|
10
|
+
end
|
11
|
+
|
12
|
+
namespace :test do
|
13
|
+
Rake::TestTask.new(:all) do |t|
|
14
|
+
t.description = "Run all tests"
|
15
|
+
t.pattern = "test/**/*_test.rb"
|
16
|
+
end
|
10
17
|
end
|
11
18
|
|
12
19
|
require "rubocop/rake_task"
|
@@ -15,4 +22,4 @@ RuboCop::RakeTask.new do |task|
|
|
15
22
|
task.requires << "rubocop-minitest"
|
16
23
|
end
|
17
24
|
|
18
|
-
task default:
|
25
|
+
task default: [:test, *(:rubocop if RUBY_ENGINE == "ruby")]
|
data/lib/amqp/client/channel.rb
CHANGED
data/lib/amqp/client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amqp-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl Hörberg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Work in progress
|
14
14
|
email:
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
69
|
+
rubygems_version: 3.3.3
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: AMQP 0-9-1 client
|