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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 191cd8053858a46d350a6c89db378058c9c602bde3eadc95ee4ae79b149fb0cf
4
- data.tar.gz: c322ca75508f8a9566170fa473b562dfe4b4989dc6b1e2baa68408612fe47692
3
+ metadata.gz: 0e287ef0dee4c9ec581690733c12c132f74c595ceddead1ba5b95b765138e11c
4
+ data.tar.gz: e5462c8cd2a4f7232a51e17d9ec93f4fb2ea88a922bb9b5cc58242cced78d61e
5
5
  SHA512:
6
- metadata.gz: 7c47bba0271dbd49b603127ac8749bfd85468ea7b0faa97d857eca585cde012094ace144b339a71d24fc4c90dace83f5e562669ae040ddb1eedd54b24eb6a876
7
- data.tar.gz: 3ecb4641c83020063186fa1ac4413e6e42ae33ecb013eae3d2dcadfa1c30a3943ddf6320561ccb63917376ac23ac908c87f2d7e64abd7508c69c9f1030460e8e
6
+ metadata.gz: 923fb64c7234fb6718f7dbc5eb33c1f8de03a9cf12d669539935cc6ef83f4ca387afc80c1e56fcc2ed167dc14381cda1d7b6a67673c6516818909cb6a84c287d
7
+ data.tar.gz: 14c4d9157cee844609eeb5beed70ee2560ba3442c5afb857fed3e0945c443910f7bd4a281e327d2cb5ee0f0896facf4c8e693e5d3ecf1152c07474e20f8a724f
@@ -4,6 +4,9 @@ on:
4
4
  push:
5
5
  branches:
6
6
  - main
7
+ paths:
8
+ - 'src/**'
9
+ - 'README.md'
7
10
 
8
11
  jobs:
9
12
  docs:
@@ -3,8 +3,9 @@ name: Ruby
3
3
  on: [push,pull_request]
4
4
 
5
5
  jobs:
6
- build:
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', 'jruby', 'truffleruby']
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 the default task
30
- run: |
31
- bundle install
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
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.1.4] - 2021-12-27
4
+
5
+ - Fixed: Ruby 3.1.0 compability, StringIO have to be required manually
6
+
3
7
  ## [1.1.3] - 2021-11-04
4
8
 
5
9
  - Fixed: Reraise SystemcallError in connect so that reconnect works
data/README.md CHANGED
@@ -80,6 +80,7 @@ amqp.publish(Zlib.gzip("an event"), "amq.topic", "my.event", content_encoding: '
80
80
 
81
81
  All maintained Ruby versions are supported.
82
82
 
83
+ - 3.1
83
84
  - 3.0
84
85
  - 2.7
85
86
  - 2.6
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.libs << "test"
8
- t.libs << "lib"
9
- t.test_files = FileList["test/**/*_test.rb"]
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: %i[test rubocop]
25
+ task default: [:test, *(:rubocop if RUBY_ENGINE == "ruby")]
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "./message"
4
+ require "stringio"
4
5
 
5
6
  module AMQP
6
7
  class Client
@@ -3,6 +3,6 @@
3
3
  module AMQP
4
4
  class Client
5
5
  # Version of the client library
6
- VERSION = "1.1.3"
6
+ VERSION = "1.1.4"
7
7
  end
8
8
  end
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.3
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-04 00:00:00.000000000 Z
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.2.22
69
+ rubygems_version: 3.3.3
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: AMQP 0-9-1 client