diode 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/diode/static.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea33eabe22d4cdc90c861901276c3c1f9f397d631c3aba3b9a541f1f87390189
4
- data.tar.gz: 3d5616c2b0a342f229b49a3e7c27c77c4c255484c21876f2cdfadf7cbe7a4ffa
3
+ metadata.gz: 1a336c0eda5cf34b05fe4d4fe013dc181af28163588ede63ba741c76c8e976b9
4
+ data.tar.gz: e84ea6a14a4b6a8682e0ce74593c23fe828bf36ac19d5072b5a534a4c44eb632
5
5
  SHA512:
6
- metadata.gz: 8ccade8f6c924359da6ebe142220351b5462015bfee482399cd7e52fb09ef2349df610c6d2e149d9128a4f76af0fc56c8c14b1fcc1dc44337d456379c333b903
7
- data.tar.gz: 31869f03329647cac6f4a5d7746d1801683105b538b5c98cfdb3bad0643153b39044f7611de323b84061e503b4f4ee2baacd959100821d5086fd181da318cec9
6
+ metadata.gz: c86e2f8c48f2c053f4f236113de844f811b42058f9d62895cb00b1db397c22ec221bc577366674a35ecc9c463ab8296c378871f8d7ea280427930035eeb2c056
7
+ data.tar.gz: b31be1338d45b4999c3688778aacdc7946140444a0293f30cf0c986a3747fd7105e59f687ca782c98e2b79595faa12f3c03bd436a84e74828266d98942f97548
data/lib/diode/static.rb CHANGED
@@ -12,8 +12,8 @@ class Static
12
12
 
13
13
  def serve(request)
14
14
  return Diode::Response.standard(405) unless request.method == "GET"
15
- unless guardian.nil?
16
- securityResponse = guardian.call(request)
15
+ unless @guardian.nil?
16
+ securityResponse = @guardian.call(request)
17
17
  unless securityResponse.nil? or securityResponse == 200
18
18
  return securityResponse if securityResponse.is_a?(Diode::Response)
19
19
  return Diode::Response.standard(securityResponse) if [400,403,404,405].include?(securityResponse)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diode
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kjell Koda