racecar 1.0.0 → 1.0.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: c69597ad113d51482fb3f8de7a3f6ab372ad9f08942ba528223e4f68affd017b
4
- data.tar.gz: 2a5a97e179e7e7039dad1cd2a59bdd6ac61fa7e6313db707c5d74ee05c64b596
3
+ metadata.gz: a9808fa9b69cd97d91c47686eb0dad2ab32067ee5656b9356981cbe3f9fd601e
4
+ data.tar.gz: 41fb0f0534f86a093e4a2f93f459fc7411fabc8764fe388e5a1bdb446b6ba30e
5
5
  SHA512:
6
- metadata.gz: de0eec47d172624283b353e9ec858ea3c6af3582c7237a555d1049ef477805872f8dd0db27ac871aa218ba3f36b66369d00b4dea9bbb011a2bb534dc0f67d485
7
- data.tar.gz: 25520f00f98c241db47ed4fedeae9ce65615604933c4178ae453756ee6d897f8c39c3b57232805f8a5f8106d06b37981456315b363c34b115d6aee8a738272f2
6
+ metadata.gz: 4d89573210bc7293105eda4a93560f51c2521b1a7e5ec044375539d8fd39a0f4a78321313e13fb58fa87f99c0e9fe5e758cf594d4adbd8388568d55d84a658a7
7
+ data.tar.gz: 663e5e97c0b2693e600b74fe7f7474c509933c7b60529c5e27943cb909aa392e0410ea7625c7f2e1f9d6f3b13646e7112eff7c26c2d20c7f55fad29f33785acc
data/README.md CHANGED
@@ -332,6 +332,9 @@ Racecar supports configuring ruby-kafka's [Datadog](https://www.datadoghq.com/)
332
332
  * `datadog_namespace` – The namespace to use for Datadog metrics.
333
333
  * `datadog_tags` – Tags that should always be set on Datadog metrics.
334
334
 
335
+ #### Consumers Without Rails ####
336
+
337
+ By default, if Rails is detected, it will be automatically started when the consumer is started. There are cases where you might not want or need Rails. You can pass the `--without-rails` option when starting the consumer and Rails won't be started.
335
338
 
336
339
  ### Testing consumers
337
340
 
@@ -22,6 +22,10 @@ module Racecar
22
22
  @config ||= Config.new
23
23
  end
24
24
 
25
+ def self.config=(config)
26
+ @config = config
27
+ end
28
+
25
29
  def self.configure
26
30
  yield config
27
31
  end
@@ -23,7 +23,7 @@ module Racecar
23
23
  def run
24
24
  $stderr.puts "=> Starting Racecar consumer #{consumer_name}..."
25
25
 
26
- RailsConfigFileLoader.load!
26
+ RailsConfigFileLoader.load! unless config.without_rails?
27
27
 
28
28
  if File.exist?("config/racecar.rb")
29
29
  require "./config/racecar"
@@ -130,6 +130,9 @@ module Racecar
130
130
  desc "Whether to check the server certificate is valid for the hostname"
131
131
  boolean :ssl_verify_hostname, default: true
132
132
 
133
+ desc "Whether to boot Rails when starting the consumer"
134
+ boolean :without_rails, default: false
135
+
133
136
  # The error handler must be set directly on the object.
134
137
  attr_reader :error_handler
135
138
 
@@ -1,3 +1,3 @@
1
1
  module Racecar
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: racecar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-08-23 00:00:00.000000000 Z
12
+ date: 2020-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: king_konf
@@ -145,7 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.0.3
148
+ rubyforge_project:
149
+ rubygems_version: 2.7.6
149
150
  signing_key:
150
151
  specification_version: 4
151
152
  summary: A framework for running Kafka consumers