pbio 0.3.1 → 0.3.2

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: 77f8f874faf28491854d7dc995406e40addaa679c49353a234ed5e4bff1d209e
4
- data.tar.gz: af842f93b1e1d578ee52e089b35776597191090db3e4412f86dfe7850f34f1ed
3
+ metadata.gz: 93b597d2a94ba12e5ad81af8ee146c65450ddf564795d552f8ea69721cf7d0ae
4
+ data.tar.gz: 25b97b5af88df9a03f7db5e83c20cae1c35d0cf588ccd2d6188f8ea424c47e5a
5
5
  SHA512:
6
- metadata.gz: 0e20fcbb824481fbf59a33a07880f7e1428d115517f6c12373d6a0bbf883ff200b9e33d082bc934de2afb35e06ee4a7c99acf215fe7b4df7e48b9c2f1eebd330
7
- data.tar.gz: ac269f15235e35a5c1ed487b5b2d846dde96bb7182616b9f05ab266c9a3fedc14c20bf04cb6ee00b6164835ad176ef4e364e9dc3c04cf9b25b382f0672dd7fd1
6
+ metadata.gz: 4101f14a1e44fb5da9745fa7c15e01c03da2c0e4e022c33b9aadc8f82b95201f9f6fad4d1c8ee33456b6c5e1b917c70174927830afaefd96ab55b5cc215d8fca
7
+ data.tar.gz: 827bb74213b65ac08c155d1a3f9ceed8647163210e23609bffdfa1f5dd1faf6d1990ccce87a84e426ed27121297be9a427f63831788af30ae4ea559f9c4feadc
@@ -10,9 +10,11 @@ jobs:
10
10
  golangci:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - name: Checkout
14
- uses: actions/checkout@v2
15
- - name: Run lint
16
- uses: golangci/golangci-lint-action@v2
13
+ - uses: actions/checkout@v3
14
+ - uses: actions/setup-go@v3
15
+ with:
16
+ go-version: 1.18.x
17
+ cache: true
18
+ - uses: golangci/golangci-lint-action@v3
17
19
  with:
18
20
  version: latest
@@ -11,30 +11,21 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- go-version: [1.16.x, 1.17.x]
14
+ go-version: [1.17.x, 1.18.x]
15
15
  steps:
16
- - name: Checkout
17
- uses: actions/checkout@v2
18
- - name: Cache dependencies
19
- uses: actions/cache@v2
20
- with:
21
- path: ~/go/pkg/mod
22
- key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
23
- restore-keys: |
24
- ${{ runner.os }}-go-
25
- - name: Setup Go
26
- uses: actions/setup-go@v2
16
+ - uses: actions/checkout@v3
17
+ - uses: actions/setup-go@v3
27
18
  with:
28
19
  go-version: ${{ matrix.go-version }}
29
- - name: Run tests
30
- run: make test
20
+ cache: true
21
+ - run: make test
31
22
  ruby:
32
23
  runs-on: ubuntu-latest
33
24
  strategy:
34
25
  matrix:
35
26
  ruby-version: ["2.7", "3.0", "3.1"]
36
27
  steps:
37
- - uses: actions/checkout@v2
28
+ - uses: actions/checkout@v3
38
29
  - uses: ruby/setup-ruby@v1
39
30
  with:
40
31
  ruby-version: ${{ matrix.ruby-version }}
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pbio (0.3.1)
4
+ pbio (0.3.2)
5
5
  google-protobuf
6
6
 
7
7
  GEM
@@ -9,52 +9,54 @@ GEM
9
9
  specs:
10
10
  ast (2.4.2)
11
11
  diff-lcs (1.5.0)
12
- google-protobuf (3.19.2)
13
- parallel (1.21.0)
14
- parser (3.1.0.0)
12
+ google-protobuf (3.21.7)
13
+ json (2.6.2)
14
+ parallel (1.22.1)
15
+ parser (3.1.2.1)
15
16
  ast (~> 2.4.1)
16
- rainbow (3.0.0)
17
+ rainbow (3.1.1)
17
18
  rake (13.0.6)
18
- regexp_parser (2.2.0)
19
+ regexp_parser (2.6.0)
19
20
  rexml (3.2.5)
20
- rspec (3.10.0)
21
- rspec-core (~> 3.10.0)
22
- rspec-expectations (~> 3.10.0)
23
- rspec-mocks (~> 3.10.0)
24
- rspec-core (3.10.1)
25
- rspec-support (~> 3.10.0)
26
- rspec-expectations (3.10.1)
21
+ rspec (3.11.0)
22
+ rspec-core (~> 3.11.0)
23
+ rspec-expectations (~> 3.11.0)
24
+ rspec-mocks (~> 3.11.0)
25
+ rspec-core (3.11.0)
26
+ rspec-support (~> 3.11.0)
27
+ rspec-expectations (3.11.1)
27
28
  diff-lcs (>= 1.2.0, < 2.0)
28
- rspec-support (~> 3.10.0)
29
- rspec-mocks (3.10.2)
29
+ rspec-support (~> 3.11.0)
30
+ rspec-mocks (3.11.1)
30
31
  diff-lcs (>= 1.2.0, < 2.0)
31
- rspec-support (~> 3.10.0)
32
- rspec-support (3.10.3)
33
- rubocop (1.24.1)
32
+ rspec-support (~> 3.11.0)
33
+ rspec-support (3.11.1)
34
+ rubocop (1.36.0)
35
+ json (~> 2.3)
34
36
  parallel (~> 1.10)
35
- parser (>= 3.0.0.0)
37
+ parser (>= 3.1.2.1)
36
38
  rainbow (>= 2.2.2, < 4.0)
37
39
  regexp_parser (>= 1.8, < 3.0)
38
- rexml
39
- rubocop-ast (>= 1.15.1, < 2.0)
40
+ rexml (>= 3.2.5, < 4.0)
41
+ rubocop-ast (>= 1.20.1, < 2.0)
40
42
  ruby-progressbar (~> 1.7)
41
43
  unicode-display_width (>= 1.4.0, < 3.0)
42
- rubocop-ast (1.15.1)
43
- parser (>= 3.0.1.1)
44
+ rubocop-ast (1.21.0)
45
+ parser (>= 3.1.1.0)
44
46
  rubocop-bsm (0.6.0)
45
47
  rubocop (~> 1.0)
46
48
  rubocop-performance
47
49
  rubocop-rake
48
50
  rubocop-rspec
49
- rubocop-performance (1.13.1)
51
+ rubocop-performance (1.15.0)
50
52
  rubocop (>= 1.7.0, < 2.0)
51
53
  rubocop-ast (>= 0.4.0)
52
54
  rubocop-rake (0.6.0)
53
55
  rubocop (~> 1.0)
54
- rubocop-rspec (2.7.0)
55
- rubocop (~> 1.19)
56
+ rubocop-rspec (2.13.2)
57
+ rubocop (~> 1.33)
56
58
  ruby-progressbar (1.11.0)
57
- unicode-display_width (2.1.0)
59
+ unicode-display_width (2.3.0)
58
60
 
59
61
  PLATFORMS
60
62
  ruby
@@ -67,4 +69,4 @@ DEPENDENCIES
67
69
  rubocop-bsm
68
70
 
69
71
  BUNDLED WITH
70
- 2.2.27
72
+ 2.3.16
data/go.mod CHANGED
@@ -2,4 +2,4 @@ module github.com/bsm/pbio
2
2
 
3
3
  go 1.15
4
4
 
5
- require google.golang.org/protobuf v1.27.1
5
+ require google.golang.org/protobuf v1.28.1
data/go.sum CHANGED
@@ -4,5 +4,5 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
4
4
  golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
5
5
  golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
6
6
  google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
7
- google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
8
- google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
7
+ google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
8
+ google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
data/pbio.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pbio'
3
- s.version = '0.3.1'
3
+ s.version = '0.3.2'
4
4
  s.authors = ['Dimitrij Denissenko']
5
5
  s.email = ['dimitrij@blacksquaremedia.com']
6
6
  s.summary = 'Protobuf Streaming'
@@ -9,7 +9,6 @@ Gem::Specification.new do |s|
9
9
  s.license = 'MIT'
10
10
 
11
11
  s.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^spec/}) }
12
- s.test_files = `git ls-files -z -- spec/*`.split("\x0")
13
12
  s.require_paths = ['lib']
14
13
  s.required_ruby_version = '>= 2.7'
15
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pbio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -104,8 +104,6 @@ files:
104
104
  - pbio.gemspec
105
105
  - pbio.go
106
106
  - pbio_test.go
107
- - spec/lib/pbio/delimited_spec.rb
108
- - spec/spec_helper.rb
109
107
  homepage: https://github.com/bsm/pbio
110
108
  licenses:
111
109
  - MIT
@@ -126,10 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
124
  - !ruby/object:Gem::Version
127
125
  version: '0'
128
126
  requirements: []
129
- rubygems_version: 3.2.15
127
+ rubygems_version: 3.3.3
130
128
  signing_key:
131
129
  specification_version: 4
132
130
  summary: Protobuf Streaming
133
- test_files:
134
- - spec/lib/pbio/delimited_spec.rb
135
- - spec/spec_helper.rb
131
+ test_files: []
@@ -1,33 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe PBIO::Delimited do
4
- subject { described_class.new io }
5
-
6
- let(:io) { StringIO.new }
7
- let(:msg1) { PBIO::Spec::Message.new(name: 'Test A') }
8
- let(:msg2) { PBIO::Spec::Message.new(name: 'Test B') }
9
- let(:msg3) { PBIO::Spec::Message.new(name: 'x' * 32_000) }
10
-
11
- it 'writes' do
12
- expect(subject.write(msg1)).to eq(9)
13
- expect(subject.write(msg2)).to eq(9)
14
- expect(io.size).to eq(18)
15
- expect(io.string.encoding).to eq(Encoding::BINARY)
16
-
17
- expect(subject.write(msg3)).to eq(32_007)
18
- expect(io.size).to eq(32_025)
19
- end
20
-
21
- it 'reads' do
22
- expect(subject.write(msg1)).to eq(9)
23
- expect(subject.write(msg2)).to eq(9)
24
- io.rewind
25
-
26
- expect(subject.read(PBIO::Spec::Message)).to eq(msg1)
27
- expect(subject).not_to be_eof
28
- expect(subject.read(PBIO::Spec::Message)).to eq(msg2)
29
- expect(subject).to be_eof
30
- expect(subject.read(PBIO::Spec::Message)).to be_nil
31
- expect(subject).to be_eof
32
- end
33
- end
data/spec/spec_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- require 'pbio'
2
- require 'rspec'
3
- require 'google/protobuf'
4
-
5
- Google::Protobuf::DescriptorPool.generated_pool.build do
6
- add_message 'pbio.spec.Message' do
7
- optional :name, :string, 1
8
- end
9
- end
10
-
11
- module PBIO
12
- module Spec
13
- Message = Google::Protobuf::DescriptorPool.generated_pool.lookup('pbio.spec.Message').msgclass
14
- end
15
- end