rimless 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1bd00e69040a81a5a674978db28fb0e1cafe460b88fc9e7e0b6dd06ebc9de35
4
- data.tar.gz: 822d8080bad4a11cf4bd938ca77ecdcc438cdcb91d6c61f957a4462364b352c2
3
+ metadata.gz: 1274ea6ccaacdb8ca6fd2d1c0e76ee416206b26d7d001a15d67fc74794034a3f
4
+ data.tar.gz: b2de6731d0dbf9b82a61f208dc93f40799d6c85a912f567e9ecc306c1449cd85
5
5
  SHA512:
6
- metadata.gz: b843f66b1bc118c71f43cc58b6c2b09415b6fc274fd9aae50d64bf44743b70fbfa4c847b0a8c717d0aff7bf77f6199909d467e174ff72dccbb9b3f3d4539730a
7
- data.tar.gz: '015828b62edf47adb656ff097980810d946ab940d3bfb0ab78471103687c2db1430058a10f23176696c6acf7e3c59c38791f07baa944fcc9e4cc27bac7df81e6'
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
- # @TODO: Add your library structure here
58
- # [:unshift, 'Clients', 'lib/hausgold/client'],
59
- # [:unshift, 'Top-levels', 'lib', %r{lib(/hausgold)?/[^/]+\.rb$}],
60
- # [:unshift, 'Clients specs', 'spec/client'],
61
- # [:unshift, 'Top-levels specs', 'spec',
62
- # %r{spec/rimless(_spec\.rb|/[^/]+\.rb$)}]
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|
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Rimless
4
4
  # The version of the +rimless+ gem
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rimless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer