rimless 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Rakefile +6 -6
- data/lib/rimless/dependencies.rb +8 -0
- data/lib/rimless/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: 1274ea6ccaacdb8ca6fd2d1c0e76ee416206b26d7d001a15d67fc74794034a3f
|
4
|
+
data.tar.gz: b2de6731d0dbf9b82a61f208dc93f40799d6c85a912f567e9ecc306c1449cd85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9242dd35fd21acdcca165dabcf5a8e85671378f69e3a4fd2538c2f1ac2d288fa062766b750528e2ddd342347d8fb5b4b4ad1f68e16f2cb52d489a5b4c1dc3401
|
7
|
+
data.tar.gz: 59cb7a892d1bb43e3d5585230a0090547a9e2506be23347573a6f6fc0b5fe3906c6a569f7dcf590b6081b1e34f128cbbf5b05b80b9de99c5a2ee4dbe39efe74f
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 0.1.1
|
2
|
+
|
3
|
+
* Skip the configuration of the WaterDrop gem in case no brokers are
|
4
|
+
configured, this allows the smooth run of Rails asset precompilations without
|
5
|
+
full environment configurations (eg. on CI)
|
6
|
+
|
1
7
|
### 0.1.0
|
2
8
|
|
3
9
|
* The first release with support for simple Apache Avro message producing on
|
data/Rakefile
CHANGED
@@ -54,12 +54,12 @@ end
|
|
54
54
|
|
55
55
|
# Configure all code statistics directories
|
56
56
|
vendors = [
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
57
|
+
[:unshift, 'RSpec matchers', 'lib/rimless/rspec'],
|
58
|
+
[:unshift, 'RSpec matchers specs', 'spec/rimless/rspec'],
|
59
|
+
|
60
|
+
[:unshift, 'Top-levels', 'lib', %r{lib(/rimless)?/[^/]+\.rb$}],
|
61
|
+
[:unshift, 'Top-levels specs', 'spec',
|
62
|
+
%r{spec/rimless(_spec\.rb|/[^/]+\.rb$)}]
|
63
63
|
].reverse
|
64
64
|
|
65
65
|
vendors.each do |method, type, dir, pattern|
|
data/lib/rimless/dependencies.rb
CHANGED
@@ -16,6 +16,14 @@ module Rimless
|
|
16
16
|
|
17
17
|
# Set sensible defaults for the +WaterDrop+ gem.
|
18
18
|
def configure_waterdrop
|
19
|
+
# Skip WaterDrop configuration when no brokers/client id is available,
|
20
|
+
# because it will raise. Its fine to have none available for situations
|
21
|
+
# like Rails asset precompilations, etc. - on runtime the settings
|
22
|
+
# should be available, otherwise the message producing just
|
23
|
+
# fails/raise.
|
24
|
+
return if Rimless.configuration.kafka_brokers.empty? \
|
25
|
+
|| !Rimless.configuration.client_id
|
26
|
+
|
19
27
|
WaterDrop.setup do |config|
|
20
28
|
# Activate message delivery and use the default logger
|
21
29
|
config.deliver = true
|
data/lib/rimless/version.rb
CHANGED