rack-access-control-headers 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/access-control-headers.rb +1 -1
- metadata +45 -40
@@ -11,7 +11,7 @@ module Rack
|
|
11
11
|
if env["PATH_INFO"].match @path
|
12
12
|
response[1]["Access-Control-Allow-Origin"] = @origin
|
13
13
|
response[1]["Cache-Control"] = "public"
|
14
|
-
response[1]["Expires"] = 10.
|
14
|
+
response[1]["Expires"] = (Time.now + (60*60*24*365*10)).httpdate
|
15
15
|
end
|
16
16
|
response
|
17
17
|
end
|
metadata
CHANGED
@@ -1,64 +1,69 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-access-control-headers
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 0.0.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Thomas Pomfret
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
date: 2012-07-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: &70283604960400 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70283604960400
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rack
|
27
|
+
requirement: &70283604959740 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70283604959740
|
21
36
|
description: Set access control headers for FF
|
22
|
-
email:
|
37
|
+
email:
|
23
38
|
- thomas@mintdigital.com
|
24
39
|
executables: []
|
25
|
-
|
26
40
|
extensions: []
|
27
|
-
|
28
41
|
extra_rdoc_files: []
|
29
|
-
|
30
|
-
files:
|
42
|
+
files:
|
31
43
|
- lib/rack-access-control-headers.rb
|
32
44
|
- lib/rack/access-control-headers.rb
|
33
|
-
has_rdoc: true
|
34
45
|
homepage: http://github.com/mintdigital/rack-access-control-headers
|
35
46
|
licenses: []
|
36
|
-
|
37
47
|
post_install_message:
|
38
48
|
rdoc_options: []
|
39
|
-
|
40
|
-
require_paths:
|
49
|
+
require_paths:
|
41
50
|
- lib
|
42
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
- 0
|
55
|
-
version: "0"
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
56
63
|
requirements: []
|
57
|
-
|
58
64
|
rubyforge_project:
|
59
|
-
rubygems_version: 1.
|
65
|
+
rubygems_version: 1.8.11
|
60
66
|
signing_key:
|
61
67
|
specification_version: 3
|
62
68
|
summary: Sends headers to allow FF to show font files cross-domain
|
63
69
|
test_files: []
|
64
|
-
|