caches_page_with_host 0.0.1 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module CachesPageWithHost
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -28,7 +28,9 @@ module CachesPageWithHost
28
28
  when String
29
29
  options
30
30
  else
31
- request.path
31
+ # request.path do not contain trailing slash at the end of path,
32
+ # but request.env['REQUEST_URI'] does contain trailing slash
33
+ URI(request.env['REQUEST_URI']).path
32
34
  end
33
35
  if (type = Mime::LOOKUP[self.content_type]) && (type_symbol = type.symbol).present?
34
36
  extension = ".#{type_symbol}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caches_page_with_host
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-17 00:00:00.000000000 Z
12
+ date: 2013-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  version: '0'
65
65
  requirements: []
66
66
  rubyforge_project:
67
- rubygems_version: 1.8.23
67
+ rubygems_version: 1.8.19
68
68
  signing_key:
69
69
  specification_version: 3
70
70
  summary: Caches Page with current host to public/kesh folder. Include nginx for example