ventilation 0.2.2 → 0.2.3

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/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ * Fixes issue with urls without paths.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.3
@@ -14,7 +14,7 @@ module Ventilation
14
14
  if resource =~ URI.regexp
15
15
  # ...fetch and render an external resource...
16
16
  case env
17
- when 'production'
17
+ when 'production', 'staging'
18
18
  %%<esi:include src="#{resource}" />%
19
19
  else
20
20
  url = URI.parse(resource)
@@ -28,7 +28,7 @@ module Ventilation
28
28
  else
29
29
  # ...otherwise render as an action.
30
30
  case env
31
- when 'production'
31
+ when 'production', 'staging'
32
32
  %%<esi:include src="#{url_for url_options.merge(:action => resource)}" />%
33
33
  else
34
34
  if controller = options[:controller]
data/ventilation.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ventilation}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Blake Taylor"]
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.files = [
19
19
  ".bundle/config",
20
20
  ".gitignore",
21
+ "CHANGELOG.md",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
23
24
  "MIT-LICENSE",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Blake Taylor
@@ -71,6 +71,7 @@ extra_rdoc_files:
71
71
  files:
72
72
  - .bundle/config
73
73
  - .gitignore
74
+ - CHANGELOG.md
74
75
  - Gemfile
75
76
  - Gemfile.lock
76
77
  - MIT-LICENSE