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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.diffend.yml +3 -0
- data/.github/workflows/ci.yml +76 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +42 -43
- data/docker-compose.yml +17 -0
- data/lib/water_drop/instrumentation.rb +7 -0
- data/lib/water_drop/instrumentation/monitor.rb +0 -1
- data/lib/water_drop/version.rb +1 -1
- metadata +7 -4
- metadata.gz.sig +0 -0
- data/.travis.yml +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ab81433321c716a9fe8cbd22ca3a8cd425a875165cc528b35d5738a7d5e7282
|
4
|
+
data.tar.gz: b2de6214dceb395d507062d7c3e621e81b7b8aafb4717f2383d5a4573c9bb657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,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
|
-
|
1
|
+
3.0.0
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
waterdrop (1.4.
|
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.
|
16
|
-
delivery_boy (1.0
|
17
|
-
king_konf (~> 0
|
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.
|
21
|
-
rake (
|
22
|
-
docile (1.3.
|
23
|
-
dry-configurable (0.
|
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.
|
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.
|
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.
|
39
|
-
dry-logic (1.0
|
37
|
+
dry-initializer (3.0.4)
|
38
|
+
dry-logic (1.1.0)
|
40
39
|
concurrent-ruby (~> 1.0)
|
41
|
-
dry-core (~> 0.
|
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.
|
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.
|
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.
|
56
|
-
dry-types (1.
|
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.
|
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.
|
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.
|
71
|
-
rake (13.0.
|
72
|
-
rspec (3.
|
73
|
-
rspec-core (~> 3.
|
74
|
-
rspec-expectations (~> 3.
|
75
|
-
rspec-mocks (~> 3.
|
76
|
-
rspec-core (3.
|
77
|
-
rspec-support (~> 3.
|
78
|
-
rspec-expectations (3.
|
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.
|
81
|
-
rspec-mocks (3.
|
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.
|
84
|
-
rspec-support (3.
|
85
|
-
ruby-kafka (1.
|
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.
|
83
|
+
simplecov (0.21.2)
|
88
84
|
docile (~> 1.1)
|
89
85
|
simplecov-html (~> 0.11)
|
90
|
-
|
91
|
-
|
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
|
-
|
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.
|
101
|
+
2.2.15
|
data/docker-compose.yml
ADDED
@@ -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
|
@@ -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
|
data/lib/water_drop/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|