waterdrop 1.4.0 → 1.4.1

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: f2ef3d3916d6b0e59c191c8a81ad88cc33424a4ee4ff4c7c12e65e5ad3c79ba3
4
- data.tar.gz: 1e02c7ae97e7c85e1d4aa12fe5e7c2b5611add6d41b15949fc17830382e4d99d
3
+ metadata.gz: 0ab81433321c716a9fe8cbd22ca3a8cd425a875165cc528b35d5738a7d5e7282
4
+ data.tar.gz: b2de6214dceb395d507062d7c3e621e81b7b8aafb4717f2383d5a4573c9bb657
5
5
  SHA512:
6
- metadata.gz: c58aaaec32bbe3c1a930a0366447e5f69e3551619ad48ea243787b1fa487fdb3f17b5e17fd409ef956b0793dba3550a914ac15015e93cd4d81fa992f59040f7e
7
- data.tar.gz: 00f6e291c053a46c650936a7d0e03a1c20f7631d5b597df30aa1b0f2ae614873b16c8bdf58a7081f3438e894d3f20c006e736826b2adf76e12c2be49e8f42b48
6
+ metadata.gz: 20cc7c2237ea6bf7ea268c09c5e424ee81df391b37b77e1eb61ac43546abd75527f10f99e6f85bb0f7cc8f61dbe1298bdce69be76c5cc0d5880b220f11184d04
7
+ data.tar.gz: 2f57c686aca05d5abaf44ef06bfcf5690c148d84a5db8ac73795726423772b73bb6b92893e0fa01424a9684f613f1934c2acad48119cf7a7be787988c233933a
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/.diffend.yml ADDED
@@ -0,0 +1,3 @@
1
+ project_id: 'ee590bc9-f375-4832-ac8e-beb174b49aa5'
2
+ shareable_id: '1325b111-b957-4fd8-bd6f-fead41e06034'
3
+ shareable_key: 'd29c6230-8bf6-479b-83ff-98f374d3466e'
@@ -0,0 +1,76 @@
1
+ name: ci
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ schedule:
7
+ - cron: '0 1 * * *'
8
+
9
+ jobs:
10
+ specs:
11
+ runs-on: ubuntu-latest
12
+ needs: diffend
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ ruby:
17
+ - '3.0'
18
+ - '2.7'
19
+ - '2.6'
20
+ - '2.5'
21
+ - 'jruby'
22
+ include:
23
+ - ruby: '3.0'
24
+ coverage: 'true'
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+ - name: Install package dependencies
28
+ run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
29
+ - name: Set up Ruby
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: ${{matrix.ruby}}
33
+ - name: Install latest bundler
34
+ run: |
35
+ gem install bundler --no-document
36
+ bundle config set without 'tools benchmarks docs'
37
+ - name: Bundle install
38
+ run: |
39
+ bundle config set without development
40
+ bundle install --jobs 4 --retry 3
41
+ - name: Run Kafka with docker-compose
42
+ run: docker-compose up -d
43
+ - name: Run all tests
44
+ env:
45
+ GITHUB_COVERAGE: ${{matrix.coverage}}
46
+ run: bundle exec rspec
47
+
48
+ diffend:
49
+ runs-on: ubuntu-latest
50
+ strategy:
51
+ fail-fast: false
52
+ steps:
53
+ - uses: actions/checkout@v2
54
+ with:
55
+ fetch-depth: 0
56
+ - name: Set up Ruby
57
+ uses: ruby/setup-ruby@v1
58
+ with:
59
+ ruby-version: 3.0
60
+ - name: Install latest bundler
61
+ run: gem install bundler --no-document
62
+ - name: Install Diffend plugin
63
+ run: bundle plugin install diffend
64
+ - name: Bundle Secure
65
+ run: bundle secure
66
+
67
+ coditsu:
68
+ runs-on: ubuntu-latest
69
+ strategy:
70
+ fail-fast: false
71
+ steps:
72
+ - uses: actions/checkout@v2
73
+ with:
74
+ fetch-depth: 0
75
+ - name: Run Coditsu
76
+ run: \curl -sSL https://api.coditsu.io/run/ci | bash
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.1
1
+ 3.0.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # WaterDrop changelog
2
2
 
3
+ ## 1.4.1 (2021-03-23)
4
+ - Support for Ruby 3.0
5
+
3
6
  ## 1.4.0 (2020-08-25)
4
7
  - Release to match Karafka 1.4 versioning.
5
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- waterdrop (1.4.0)
4
+ waterdrop (1.4.1)
5
5
  delivery_boy (>= 0.2, < 2.x)
6
6
  dry-configurable (~> 0.8)
7
7
  dry-monitor (~> 0.3)
@@ -12,22 +12,21 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- concurrent-ruby (1.1.7)
16
- delivery_boy (1.0.1)
17
- king_konf (~> 0.3)
15
+ concurrent-ruby (1.1.8)
16
+ delivery_boy (1.1.0)
17
+ king_konf (~> 1.0)
18
18
  ruby-kafka (~> 1.0)
19
19
  diff-lcs (1.4.4)
20
- digest-crc (0.6.1)
21
- rake (~> 13.0)
22
- docile (1.3.2)
23
- dry-configurable (0.11.6)
20
+ digest-crc (0.6.3)
21
+ rake (>= 12.0.0, < 14.0.0)
22
+ docile (1.3.5)
23
+ dry-configurable (0.12.1)
24
24
  concurrent-ruby (~> 1.0)
25
- dry-core (~> 0.4, >= 0.4.7)
26
- dry-equalizer (~> 0.2)
25
+ dry-core (~> 0.5, >= 0.5.0)
27
26
  dry-container (0.7.2)
28
27
  concurrent-ruby (~> 1.0)
29
28
  dry-configurable (~> 0.1, >= 0.1.3)
30
- dry-core (0.4.9)
29
+ dry-core (0.5.0)
31
30
  concurrent-ruby (~> 1.0)
32
31
  dry-equalizer (0.3.0)
33
32
  dry-events (0.2.0)
@@ -35,63 +34,63 @@ GEM
35
34
  dry-core (~> 0.4)
36
35
  dry-equalizer (~> 0.2)
37
36
  dry-inflector (0.2.0)
38
- dry-initializer (3.0.3)
39
- dry-logic (1.0.7)
37
+ dry-initializer (3.0.4)
38
+ dry-logic (1.1.0)
40
39
  concurrent-ruby (~> 1.0)
41
- dry-core (~> 0.2)
42
- dry-equalizer (~> 0.2)
40
+ dry-core (~> 0.5, >= 0.5)
43
41
  dry-monitor (0.3.2)
44
42
  dry-configurable (~> 0.5)
45
43
  dry-core (~> 0.4)
46
44
  dry-equalizer (~> 0.2)
47
45
  dry-events (~> 0.2)
48
- dry-schema (1.5.3)
46
+ dry-schema (1.6.1)
49
47
  concurrent-ruby (~> 1.0)
50
48
  dry-configurable (~> 0.8, >= 0.8.3)
51
- dry-core (~> 0.4)
52
- dry-equalizer (~> 0.2)
49
+ dry-core (~> 0.5, >= 0.5)
53
50
  dry-initializer (~> 3.0)
54
51
  dry-logic (~> 1.0)
55
- dry-types (~> 1.4)
56
- dry-types (1.4.0)
52
+ dry-types (~> 1.5)
53
+ dry-types (1.5.1)
57
54
  concurrent-ruby (~> 1.0)
58
55
  dry-container (~> 0.3)
59
- dry-core (~> 0.4, >= 0.4.4)
60
- dry-equalizer (~> 0.3)
56
+ dry-core (~> 0.5, >= 0.5)
61
57
  dry-inflector (~> 0.1, >= 0.1.2)
62
58
  dry-logic (~> 1.0, >= 1.0.2)
63
- dry-validation (1.5.4)
59
+ dry-validation (1.6.0)
64
60
  concurrent-ruby (~> 1.0)
65
61
  dry-container (~> 0.7, >= 0.7.1)
66
62
  dry-core (~> 0.4)
67
63
  dry-equalizer (~> 0.2)
68
64
  dry-initializer (~> 3.0)
69
- dry-schema (~> 1.5)
70
- king_konf (0.3.7)
71
- rake (13.0.1)
72
- rspec (3.9.0)
73
- rspec-core (~> 3.9.0)
74
- rspec-expectations (~> 3.9.0)
75
- rspec-mocks (~> 3.9.0)
76
- rspec-core (3.9.2)
77
- rspec-support (~> 3.9.3)
78
- rspec-expectations (3.9.2)
65
+ dry-schema (~> 1.5, >= 1.5.2)
66
+ king_konf (1.0.0)
67
+ rake (13.0.3)
68
+ rspec (3.10.0)
69
+ rspec-core (~> 3.10.0)
70
+ rspec-expectations (~> 3.10.0)
71
+ rspec-mocks (~> 3.10.0)
72
+ rspec-core (3.10.1)
73
+ rspec-support (~> 3.10.0)
74
+ rspec-expectations (3.10.1)
79
75
  diff-lcs (>= 1.2.0, < 2.0)
80
- rspec-support (~> 3.9.0)
81
- rspec-mocks (3.9.1)
76
+ rspec-support (~> 3.10.0)
77
+ rspec-mocks (3.10.2)
82
78
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.9.0)
84
- rspec-support (3.9.3)
85
- ruby-kafka (1.2.0)
79
+ rspec-support (~> 3.10.0)
80
+ rspec-support (3.10.2)
81
+ ruby-kafka (1.3.0)
86
82
  digest-crc
87
- simplecov (0.19.0)
83
+ simplecov (0.21.2)
88
84
  docile (~> 1.1)
89
85
  simplecov-html (~> 0.11)
90
- simplecov-html (0.12.2)
91
- zeitwerk (2.4.0)
86
+ simplecov_json_formatter (~> 0.1)
87
+ simplecov-html (0.12.3)
88
+ simplecov_json_formatter (0.1.2)
89
+ zeitwerk (2.4.2)
92
90
 
93
91
  PLATFORMS
94
- ruby
92
+ x86_64-darwin-19
93
+ x86_64-linux
95
94
 
96
95
  DEPENDENCIES
97
96
  rspec
@@ -99,4 +98,4 @@ DEPENDENCIES
99
98
  waterdrop!
100
99
 
101
100
  BUNDLED WITH
102
- 2.1.4
101
+ 2.2.15
@@ -0,0 +1,17 @@
1
+ version: '2'
2
+ services:
3
+ zookeeper:
4
+ image: wurstmeister/zookeeper
5
+ ports:
6
+ - "2181:2181"
7
+ kafka:
8
+ image: wurstmeister/kafka:1.0.1
9
+ ports:
10
+ - "9092:9092"
11
+ environment:
12
+ KAFKA_ADVERTISED_HOST_NAME: localhost
13
+ KAFKA_ADVERTISED_PORT: 9092
14
+ KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
15
+ KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
16
+ volumes:
17
+ - /var/run/docker.sock:/var/run/docker.sock
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WaterDrop
4
+ # Namespace for all the things related with WaterDrop instrumentation process
5
+ module Instrumentation
6
+ end
7
+ end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WaterDrop
4
- # Namespace for all the things related with WaterDrop instrumentation process
5
4
  module Instrumentation
6
5
  # Monitor is used to hookup external monitoring services to monitor how WaterDrop works
7
6
  # Since it is a pub-sub based on dry-monitor, you can use as many subscribers/loggers at the
@@ -3,5 +3,5 @@
3
3
  # WaterDrop library
4
4
  module WaterDrop
5
5
  # Current WaterDrop version
6
- VERSION = '1.4.0'
6
+ VERSION = '1.4.1'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waterdrop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -34,7 +34,7 @@ cert_chain:
34
34
  2DND//YJUikn1zwbz1kT70XmHd97B4Eytpln7K+M1u2g1pHVEPW4owD/ammXNpUy
35
35
  nt70FcDD4yxJQ+0YNiHd0N8IcVBM1TMIVctMNQ==
36
36
  -----END CERTIFICATE-----
37
- date: 2020-08-25 00:00:00.000000000 Z
37
+ date: 2021-03-23 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: delivery_boy
@@ -134,12 +134,13 @@ extensions: []
134
134
  extra_rdoc_files: []
135
135
  files:
136
136
  - ".coditsu/ci.yml"
137
+ - ".diffend.yml"
137
138
  - ".github/FUNDING.yml"
139
+ - ".github/workflows/ci.yml"
138
140
  - ".gitignore"
139
141
  - ".rspec"
140
142
  - ".ruby-gemset"
141
143
  - ".ruby-version"
142
- - ".travis.yml"
143
144
  - CHANGELOG.md
144
145
  - Gemfile
145
146
  - Gemfile.lock
@@ -147,6 +148,7 @@ files:
147
148
  - README.md
148
149
  - certs/mensfeld.pem
149
150
  - config/errors.yml
151
+ - docker-compose.yml
150
152
  - lib/water_drop.rb
151
153
  - lib/water_drop/async_producer.rb
152
154
  - lib/water_drop/base_producer.rb
@@ -156,6 +158,7 @@ files:
156
158
  - lib/water_drop/contracts/config.rb
157
159
  - lib/water_drop/contracts/message_options.rb
158
160
  - lib/water_drop/errors.rb
161
+ - lib/water_drop/instrumentation.rb
159
162
  - lib/water_drop/instrumentation/monitor.rb
160
163
  - lib/water_drop/instrumentation/stdout_listener.rb
161
164
  - lib/water_drop/sync_producer.rb
@@ -182,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
185
  - !ruby/object:Gem::Version
183
186
  version: '0'
184
187
  requirements: []
185
- rubygems_version: 3.1.4
188
+ rubygems_version: 3.2.3
186
189
  signing_key:
187
190
  specification_version: 4
188
191
  summary: Kafka messaging made easy!
metadata.gz.sig CHANGED
Binary file
data/.travis.yml DELETED
@@ -1,35 +0,0 @@
1
- services:
2
- - docker
3
-
4
- dist: trusty
5
- cache: bundler
6
-
7
- git:
8
- depth: false
9
-
10
- test: &test
11
- stage: Test
12
- language: ruby
13
- before_install:
14
- - yes | gem update --system
15
- script: bundle exec rspec
16
-
17
- jobs:
18
- include:
19
- - <<: *test
20
- rvm: 2.7.1
21
- - <<: *test
22
- rvm: 2.6.6
23
- - <<: *test
24
- rvm: 2.5.8
25
-
26
- - stage: coditsu
27
- language: ruby
28
- rvm: 2.7.1
29
- before_install:
30
- - yes | gem update --system
31
- script: \curl -sSL https://api.coditsu.io/run/ci | bash
32
-
33
- stages:
34
- - test
35
- - coditsu