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.
Files changed (2) hide show
  1. data/lib/rack/access-control-headers.rb +1 -1
  2. 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.years.from_now.httpdate
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
- prerelease: false
5
- segments:
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
- date: 2012-05-14 00:00:00 +01:00
18
- default_executable:
19
- dependencies: []
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
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- segments:
47
- - 0
48
- version: "0"
49
- required_rubygems_version: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- segments:
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.3.6
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
-