csb 0.2.3 → 0.2.4

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: 3ff19feed336a0df9dc6426e5afa90af371db81b44cac91c7d19c1c6ae6d2ea0
4
- data.tar.gz: afcd571ef70b7bf55fca807e4013d2a8bf765b1739c7cb21c79e6633e0ae2ca1
3
+ metadata.gz: 03f660277b1cd9d2d49c1ba8c93ecbbb4853b896927795ea6f6224eedf040344
4
+ data.tar.gz: 06dc9496068e647f38b028de49343af19c9114e92658d0c0a476fcb992c53755
5
5
  SHA512:
6
- metadata.gz: 0eee7bfb6c29045cbc98b92e28de678309450213bc0bb089fbffee484c94ebd5c89efacac09c092feb0380a2c1b3a01b6810c1d9b0ff3aea9064d16f19156ab4
7
- data.tar.gz: 18c7f6d86ec92c3ff5e39414772b75a4f370f57de0c43e90a7d97396546e1df275d83b4bd04e43409986ea3431d4efbf83126ef83ca001ed9bd99a0808fa0274
6
+ metadata.gz: 88ab7dcc5d3b9385f6d7b429cf4f47aae94f0a6bca8b1f1f6744743a5a823d627ae1d6ecef138b9ac3e4aced2eb899b0dd29a988a3e88488b848cd99df5db02d
7
+ data.tar.gz: 1bb975774c0aa67a666fea8902738d5652302d5d93d4f4b16542f96d5027bf09657e5f7bb0bde0ffa5a146585179707da76fd42f0862cd394d0620f06bd2a4c6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.4
2
+
3
+ - Clean up rack@2.2.x monkey patch.
4
+
1
5
  ## 0.2.3
2
6
 
3
7
  - Fix rack@2.2.x bug https://github.com/rack/rack/issues/1619
data/lib/csb/handler.rb CHANGED
@@ -21,7 +21,9 @@ module Csb
21
21
  response.headers['Cache-Control'] = 'no-cache'
22
22
  response.headers['X-Accel-Buffering'] = 'no'
23
23
  # SEE: https://github.com/rack/rack/issues/1619
24
- response.headers['Last-Modified'] = '0'
24
+ if Gem::Version.new('2.2.0') <= Gem::Version.new(Rack::RELEASE)
25
+ response.headers['Last-Modified'] = '0'
26
+ end
25
27
  end
26
28
  csv.build
27
29
  RUBY
data/lib/csb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Csb
2
- VERSION = "0.2.3"
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki77