tp2 0.20.0 → 0.20.1
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 +4 -4
- data/.github/workflows/test.yml +14 -5
- data/CHANGELOG.md +4 -0
- data/lib/tp2/connection.rb +1 -1
- data/lib/tp2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c88d50b4ab47a0bb6e542b7379073b1737a5381e96ce8af3215f3139da94d835
|
|
4
|
+
data.tar.gz: a7711bcaebf0c541422df516f0d073e54e801ddecda97d4999b64e07d6e645b9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfa5f47fe999f3b5f7a4cede0fb29e54cb06e12f33019b1183cef25b71181e7dea195b172ecd0fc768138fc054d463c8b60d7b96c692158e1969c826de4090ff
|
|
7
|
+
data.tar.gz: 48668a79a09651f12ff722ca853459a3e33d0e95875a5dd76ce9448b7e88fd01899803afc3398c733fb576afb9b80d10c80dbe2103fc0f8c5340b652eaafa279
|
data/.github/workflows/test.yml
CHANGED
|
@@ -2,6 +2,10 @@ name: Tests
|
|
|
2
2
|
|
|
3
3
|
on: [push, pull_request]
|
|
4
4
|
|
|
5
|
+
concurrency:
|
|
6
|
+
group: tests-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
|
|
7
|
+
cancel-in-progress: true
|
|
8
|
+
|
|
5
9
|
jobs:
|
|
6
10
|
build:
|
|
7
11
|
strategy:
|
|
@@ -10,15 +14,20 @@ jobs:
|
|
|
10
14
|
os: [ubuntu-latest]
|
|
11
15
|
ruby: ['4.0', 'head']
|
|
12
16
|
|
|
13
|
-
name:
|
|
14
|
-
|
|
17
|
+
name: ${{matrix.os}}, ${{matrix.ruby}}
|
|
18
|
+
|
|
19
|
+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
|
15
20
|
|
|
16
21
|
runs-on: ${{matrix.os}}
|
|
17
22
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
with:
|
|
25
|
+
submodules: recursive
|
|
26
|
+
|
|
19
27
|
- uses: ruby/setup-ruby@v1
|
|
20
28
|
with:
|
|
21
29
|
ruby-version: ${{matrix.ruby}}
|
|
22
|
-
bundler-cache: true
|
|
30
|
+
bundler-cache: true # 'bundle install' and cache
|
|
23
31
|
- name: Run tests
|
|
24
|
-
run:
|
|
32
|
+
# run: bundle exec ruby test/test_um.rb --name test_read_each_raising_2
|
|
33
|
+
run: bundle exec rake test
|
data/CHANGELOG.md
CHANGED
data/lib/tp2/connection.rb
CHANGED
|
@@ -190,7 +190,7 @@ module TP2
|
|
|
190
190
|
chunk_prelude = "#{body.bytesize.to_s(16)}\r\n"
|
|
191
191
|
buf = +''
|
|
192
192
|
buf << formatted_headers << chunk_prelude << body << CHUNKED_ENCODING_POSTLUDE
|
|
193
|
-
@machine.send(@fd, buf, SEND_FLAGS)
|
|
193
|
+
@machine.send(@fd, buf, buf.bytesize, SEND_FLAGS)
|
|
194
194
|
else
|
|
195
195
|
@machine.send(@fd, formatted_headers, formatted_headers.bytesize, SEND_FLAGS)
|
|
196
196
|
end
|
data/lib/tp2/version.rb
CHANGED