herdst_servicecall 0.1.6 → 0.1.7

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: c9743d3501f45673e021b04abdd486e395e3d1dfa47fe6f90fdfc0d0c085418a
4
- data.tar.gz: 2a5be7cc30cf0951ab92ec82b8a944db1229ff547b7cf9a0bf0ec0212aecded8
3
+ metadata.gz: 4982570ae142d0003703401acbb6d090d6ddffcaa76b2289b15a725a3f851027
4
+ data.tar.gz: fb8c4e84c6cdb59d404a5b3554acf2a1e15fbac015567964191633dfbd4fdb34
5
5
  SHA512:
6
- metadata.gz: 921d7d94770289061c7870164e133b0cc5295169ad65865fb7c602200eb04ae574e15bfb0a819cb63133759890932d2d55ff4a1d0bd73b16f890f14f9e214231
7
- data.tar.gz: 398ce25ff0109548b97dcf7b6e650725cb193517495a904f57b603b05596e741001c427b6db84577440253af3f4d56128bdd8e5b9a6793d0b1d3e1f0466df04f
6
+ metadata.gz: da57c108b3d873c2c67381c78c08d8ace93eac4c020d19182175dd0559aea25564b629a8f701ea1ed26f11684bd6e0139b619345cb66e22414302201fc170ae5
7
+ data.tar.gz: 262d415322ae988d8f25f7a7b2942503b0f8f69ed954c272267235b2f6ffeb4ab3a0a27e97d03b5d81c3a67d0fc5ef318e397b9de110bfda8c74e155d6ef6405
@@ -10,6 +10,14 @@ module HerdstServicecall
10
10
 
11
11
 
12
12
  def call(env)
13
+ if env["REQUEST_PATH"] == @healthcheck_path
14
+ return [
15
+ 200,
16
+ { "Content-Type" => "text/html" },
17
+ [ "" ]
18
+ ]
19
+ end
20
+
13
21
  if env["REQUEST_METHOD"] == "POST"
14
22
  req = nil
15
23
 
@@ -19,13 +27,7 @@ module HerdstServicecall
19
27
  env["REQUEST_PATH"] = req.path
20
28
  end
21
29
 
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
30
+ if env["REQUEST_PATH"] == @event_path
29
31
  req = Rack::Request.new(env) unless req
30
32
  body = req.body.read
31
33
  token = Rack::Utils.parse_nested_query(req.query_string)["token"] rescue nil
@@ -1,3 +1,3 @@
1
1
  module HerdstServicecall
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herdst_servicecall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herd.St