railwatch-server 0.1.0-x86_64-linux → 0.1.1-x86_64-linux

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: d10c6993b683cd05f6dc8bac65fa146f6c6a50baa276ac73c290f267b4b420ec
4
- data.tar.gz: 76247706d0262dfdad5f6083435e83343789f17e0e27ae4c824ea65b817a1213
3
+ metadata.gz: 786f76e1f3bfbfa4448c518ec41c02fbb693d0cddd0ade2aa0b82266909fc104
4
+ data.tar.gz: ef5a2155577e752edf495e7d28ba356297403618996beaf6b5d5544c2e3ffd70
5
5
  SHA512:
6
- metadata.gz: fce5a116e3001faa629ab232fc26673e181ba7a4c45c6cc91a7324df4afafcc29b25c4d3d32320dbefb22a49ea516b42606ab5c2842f60fa5489d9bd7cefbf19
7
- data.tar.gz: 86bdf80ab0d38c03b4553e68db31b4b2865cc17d54a3a095d721f2827fb921689ab02d41f92575f3ace3ccc21c57ad3debb3c1a2ce0e1ee2e391a6b4f6d6ce8e
6
+ metadata.gz: 526046c249399835db4b9d5a2e8298fb0ef8db0ca20a812026a79624d4c777a33ad6d78d7e8fb115a385bfae85afb399fa446fcf19ef4ac15d8645fc295ddb19
7
+ data.tar.gz: 1d5ce7a42ed9fe924e183405457a9c14f8f4156c44eb6b9d9541a53274048261e3a162e0175260a7b30e10c07a0510fedae4d0162041e51c35038f2e1f2c4fd3
data/README.md CHANGED
@@ -125,8 +125,8 @@ half-applied. `railwatch doctor` with `RAILWATCH_ENV_FILE` pointed at the
125
125
  file shows what the server reads.
126
126
 
127
127
  The agent is wired only when the app has not configured a destination:
128
- when `RAILWATCH_TOKEN` is set, or the agent uses `transport :local`, it is
129
- left alone and the bundled server serves only the dashboard.
128
+ when `RAILWATCH_TOKEN` is set, it is left alone and the bundled server
129
+ serves only the dashboard.
130
130
 
131
131
  **Who the server sees.** The dashboard's gate is the `railwatch` gem's:
132
132
  HTTP Basic, on and closed by default; or, with Basic off,
@@ -88,8 +88,8 @@ Puma::Plugin.create do
88
88
  # gone. Each stop! is idempotent; the gem's own at_exit then does nothing.
89
89
  def shutdown
90
90
  @shutting_down = true
91
- if defined?(::Railwatch) && ::Railwatch.respond_to?(:enabled?) && ::Railwatch.enabled? && !::Railwatch.config.local?
92
- [ "Health", "Sessions", "Maintenance", "Export::Sender" ].each do |name|
91
+ if defined?(::Railwatch) && ::Railwatch.respond_to?(:enabled?) && ::Railwatch.enabled?
92
+ [ "Health", "Sessions" ].each do |name|
93
93
  mod = ::Railwatch.const_get(name) if ::Railwatch.const_defined?(name)
94
94
  mod.stop! if mod.respond_to?(:stop!)
95
95
  end
@@ -45,7 +45,7 @@ module Railwatch
45
45
  "the server's process creates it the first time it starts (Puma with `plugin :railwatch_server`, or " \
46
46
  "railwatch_server:start); this process reports once it restarts after that")
47
47
  when :configured_elsewhere
48
- Rails.logger.info("[railwatch-server] the railwatch agent is configured elsewhere (RAILWATCH_TOKEN or transport :local); " \
48
+ Rails.logger.info("[railwatch-server] the railwatch agent is configured elsewhere (RAILWATCH_TOKEN); " \
49
49
  "the bundled server only serves the dashboard")
50
50
  end
51
51
  rescue Railwatch::Server::Error, Railwatch::Server::Binary::NotFound => e
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Railwatch
4
4
  module Server
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  # The published railwatch-rs commit the bundled binaries are built from
7
7
  # (README, "The server side"); the Corresponding Source under AGPL-3.0.
8
8
  RAILWATCH_RS = "d4c842c2f02e1cd56aeedb1e9ad1403313f0aed8"
@@ -41,9 +41,8 @@ module Railwatch
41
41
 
42
42
  # Whether the app reports somewhere of its own choosing, in which case
43
43
  # the agent is left alone: a token set (RAILWATCH_TOKEN or the
44
- # initializer), or the embedded store (`transport = :local`).
44
+ # initializer).
45
45
  def agent_configured_elsewhere?
46
- return true if Railwatch.config.local?
47
46
  return false if Railwatch.config.ingest_url == config.local_url
48
47
 
49
48
  Railwatch.config.token.to_s.strip != ""
@@ -25,7 +25,7 @@ namespace :railwatch_server do
25
25
  puts "data dir #{dir.path}#{' (not provisioned)' unless dir.provisioned?}"
26
26
  puts "server #{up ? 'UP' : 'DOWN'} on #{config.local_url}#{" (pid #{pid.read.split.first})" if pid.exist?}"
27
27
  puts "dashboard #{config.normalized_mount_path}"
28
- puts "agent " + (Railwatch::Server.agent_configured_elsewhere? ? "configured elsewhere (#{Railwatch.config.local? ? 'transport :local' : Railwatch.config.ingest_url})" :
28
+ puts "agent " + (Railwatch::Server.agent_configured_elsewhere? ? "configured elsewhere (#{Railwatch.config.ingest_url})" :
29
29
  "reports to #{Railwatch.config.ingest_url}")
30
30
  puts "log #{dir.log_file}"
31
31
  exit(up ? 0 : 1)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railwatch-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Rebulk