README.md in rack-traffic-signal-0.1.2 vs README.md in rack-traffic-signal-0.1.3

- old
+ new

@@ -80,11 +80,11 @@ register: [ { methods: [:get], path: "/users/new"}, { methods: [:post], path: "/users" } ], update: [ - { methods: [:put], path: %r{/users/\d+}} + { methods: [:put], path: %r{/users/\d+}, status: 404, body: { meta: '404' }.to_json } ] } } # Block to judge whether requested page/api is under maintenance. @@ -99,17 +99,17 @@ end # Block to judge whether maintenance mode should be skipped. # For example, you can skip maintenance mode with specific path or internal access. config.skip_by do |env| - Rack::TrafficSignal.skip_path?(env) || Rack::TrafficSignal.internal_access? + Rack::TrafficSignal.skip_path?(env) || Rack::TrafficSignal.internal_access?(env) end # Block to judge whether maintenance mode should be skipped with warning. # For example, you can skip maintenance mode with specific path or internal access. # Warn by add 'X-RACK-TRAFFIC-SIGNAL-MAINTENANCE' to response header. config.skip_with_warning_by do |env| - Rack::TrafficSignal.skip_path?(env) || Rack::TrafficSignal.internal_access? + Rack::TrafficSignal.skip_path?(env) || Rack::TrafficSignal.internal_access?(env) end end ``` ## Contributing