herdst_servicecall 0.1.5 → 0.1.6

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: edcb93afbd7eb625014ac88fa8fbdcbfe5ecca6ccf91c3a3355c8b4b46893977
4
- data.tar.gz: 1225417249d81bf83ae5091e8d157c972bf41649db094b2338326788e4bec664
3
+ metadata.gz: c9743d3501f45673e021b04abdd486e395e3d1dfa47fe6f90fdfc0d0c085418a
4
+ data.tar.gz: 2a5be7cc30cf0951ab92ec82b8a944db1229ff547b7cf9a0bf0ec0212aecded8
5
5
  SHA512:
6
- metadata.gz: 678cde9436e7f4e0b56ef6b7d6728161268144caef2fb0048850cd4d340c8d13172f1d0024f91f9ac670d21e430573e83eb4593720da40e76dfd756c2bc4a51e
7
- data.tar.gz: f3d4513df4c007aa1b292f6746f8c523aacba28a1ceb46e753e634b2b9f56cf2237b2c3616d80794908ff66f3ee340f556feaa9982c421cdcf42491d7076f5b2
6
+ metadata.gz: 921d7d94770289061c7870164e133b0cc5295169ad65865fb7c602200eb04ae574e15bfb0a819cb63133759890932d2d55ff4a1d0bd73b16f890f14f9e214231
7
+ data.tar.gz: 398ce25ff0109548b97dcf7b6e650725cb193517495a904f57b603b05596e741001c427b6db84577440253af3f4d56128bdd8e5b9a6793d0b1d3e1f0466df04f
@@ -5,6 +5,7 @@ module HerdstServicecall
5
5
  def initialize(app)
6
6
  @app = app
7
7
  @event_path = HerdstServicecall.config.event_path
8
+ @healthcheck_path = "/healthcheck"
8
9
  end
9
10
 
10
11
 
@@ -18,7 +19,13 @@ module HerdstServicecall
18
19
  env["REQUEST_PATH"] = req.path
19
20
  end
20
21
 
21
- if env["REQUEST_PATH"] == @event_path
22
+ if env["REQUEST_PATH"] == @healthcheck_path
23
+ return [
24
+ 200,
25
+ { "Content-Type" => "text/html" },
26
+ [ "" ]
27
+ ]
28
+ elsif env["REQUEST_PATH"] == @event_path
22
29
  req = Rack::Request.new(env) unless req
23
30
  body = req.body.read
24
31
  token = Rack::Utils.parse_nested_query(req.query_string)["token"] rescue nil
@@ -1,3 +1,3 @@
1
1
  module HerdstServicecall
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herdst_servicecall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herd.St
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-23 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails