rack-read_only 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: 0f0e8c2071fb2c6c97b3bdad88c8c01810f5a3ae
4
- data.tar.gz: 7be770fddb2536c6e1c1f619a5f7cce7ce870169
3
+ metadata.gz: f397f956998a6f99dd9b91047d00222b41a78ab0
4
+ data.tar.gz: 4fa72e7e2d8cf889acd787fa347c5c6981f921dc
5
5
  SHA512:
6
- metadata.gz: 36a0646638483bbb6146b4f2ad262435482033a85fa464a35f711bf8f74dfeebe16207ec1451bdf9882f1e2fca2405da9d30181214174b5cd30dd55300cf3596
7
- data.tar.gz: 40429db4e67a6280299a8eb2fd6498ff2b77d28e6ba0c087bc880fd893ec0686e0f0fef8fb33fbb27a71623383f605fc8cd3022737039f6e26685af0b1d6fab1
6
+ metadata.gz: 2d75c8f318ab40ea42859f1d3c7271a0bb590c19d8183810295356b24b5b23dac0910109a6abbc6fc04c90342d302f325b43c92e35c9f41d0d76b48e99c070c6
7
+ data.tar.gz: ad690ac13fe841edfbdddaeb7c1e307c230557f0d2ee6388fe18eaef636b11827aefab9d577640b28cf8c92c1067b5af981498f01cec131641a8193f6f2887ab
@@ -2,6 +2,10 @@ require "rack/read_only/version"
2
2
 
3
3
  module Rack
4
4
  class ReadOnly
5
+ READ_METHODS = %w(HEAD GET OPTIONS)
6
+ WRITE_METHODS = %w(POST PUT DELETE PATCH)
7
+ ALL_METHODS = READ_METHODS + WRITE_METHODS
8
+
5
9
  attr_reader :app, :options
6
10
 
7
11
  def initialize(app, options = {})
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class ReadOnly
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-read_only
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Wood