CodeOfficer-rack-options-request 0.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +18 -1
  2. data/VERSION.yml +1 -1
  3. metadata +1 -1
data/README.rdoc CHANGED
@@ -1,6 +1,23 @@
1
1
  = rack-options-request
2
2
 
3
- Description goes here.
3
+ Have you seen exceptions like this before?
4
+
5
+ "ActionController::NotImplemented: Only requests are allowed."
6
+
7
+ This is usually the result of a Microsoft product sending an OPTIONS request to your app with a user_agent of "Microsoft Office Protocol Discovery". This middleware will stop those requests in their tracks, and keep them from hitting your rails stack.
8
+
9
+ TO USE with Rails 2.3:
10
+
11
+ in your environment.rb
12
+
13
+ require 'rack/options/request'
14
+
15
+ then do a
16
+
17
+ config.middleware.use Rack::Options::Request
18
+
19
+ For more information, please read:
20
+ http://rails.learnhub.com/lesson/2318-dealing-with-microsoft-office-protocol-discovery-in-rails
4
21
 
5
22
  Until I learn TDD, you can test your local app with ...
6
23
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :patch: 0
3
- :major: 0
3
+ :major: 2
4
4
  :minor: 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CodeOfficer-rack-options-request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Jones