CodeOfficer-rack-options-request 2.0.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +40 -0
- data/VERSION.yml +2 -2
- data/lib/rack/options/request.rb +1 -1
- metadata +8 -9
data/Rakefile
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "rack-options-request"
|
8
|
+
gem.summary = %Q{TODO}
|
9
|
+
gem.email = "spam@codeofficer.com"
|
10
|
+
gem.homepage = "http://github.com/CodeOfficer/rack-options-request"
|
11
|
+
gem.authors = ["Russell Jones"]
|
12
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
13
|
+
end
|
14
|
+
rescue LoadError
|
15
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
16
|
+
end
|
17
|
+
|
18
|
+
require 'rake/rdoctask'
|
19
|
+
Rake::RDocTask.new do |rdoc|
|
20
|
+
rdoc.rdoc_dir = 'rdoc'
|
21
|
+
rdoc.title = 'rack-options-request'
|
22
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
23
|
+
rdoc.rdoc_files.include('README*')
|
24
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
25
|
+
end
|
26
|
+
|
27
|
+
require 'spec/rake/spectask'
|
28
|
+
Spec::Rake::SpecTask.new(:spec) do |spec|
|
29
|
+
spec.libs << 'lib' << 'spec'
|
30
|
+
spec.spec_files = FileList['spec/**/*_spec.rb']
|
31
|
+
end
|
32
|
+
|
33
|
+
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
34
|
+
spec.libs << 'lib' << 'spec'
|
35
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
+
spec.rcov = true
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
task :default => :spec
|
data/VERSION.yml
CHANGED
data/lib/rack/options/request.rb
CHANGED
@@ -9,7 +9,7 @@ module Rack
|
|
9
9
|
|
10
10
|
def call(env)
|
11
11
|
if env["REQUEST_METHOD"] =~ /OPTIONS/
|
12
|
-
[
|
12
|
+
[405, {"Content-Type" => "text/html"}, ["Microsoft Office Protocol Discovery"]]
|
13
13
|
else
|
14
14
|
@app.call(env)
|
15
15
|
end
|
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:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russell Jones
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-04-12 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -20,23 +20,21 @@ executables: []
|
|
20
20
|
extensions: []
|
21
21
|
|
22
22
|
extra_rdoc_files:
|
23
|
-
- README.rdoc
|
24
23
|
- LICENSE
|
24
|
+
- README.rdoc
|
25
25
|
files:
|
26
|
+
- LICENSE
|
26
27
|
- README.rdoc
|
28
|
+
- Rakefile
|
27
29
|
- VERSION.yml
|
28
|
-
- lib/rack
|
29
|
-
- lib/rack/options
|
30
30
|
- lib/rack/options/request.rb
|
31
31
|
- lib/rack_options_request.rb
|
32
32
|
- spec/rack_options_request_spec.rb
|
33
33
|
- spec/spec_helper.rb
|
34
|
-
- LICENSE
|
35
34
|
has_rdoc: true
|
36
35
|
homepage: http://github.com/CodeOfficer/rack-options-request
|
37
36
|
post_install_message:
|
38
37
|
rdoc_options:
|
39
|
-
- --inline-source
|
40
38
|
- --charset=UTF-8
|
41
39
|
require_paths:
|
42
40
|
- lib
|
@@ -59,5 +57,6 @@ rubygems_version: 1.2.0
|
|
59
57
|
signing_key:
|
60
58
|
specification_version: 2
|
61
59
|
summary: TODO
|
62
|
-
test_files:
|
63
|
-
|
60
|
+
test_files:
|
61
|
+
- spec/rack_options_request_spec.rb
|
62
|
+
- spec/spec_helper.rb
|