ventilation 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.bundle/config ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_DISABLE_SHARED_GEMS: "1"
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'jeweler', '1.4.0'
4
+ gem 'thoughtbot-shoulda'
5
+ gem 'fakeweb', '>= 1.2.8'
6
+ gem 'mocha', '>= 0.9.8'
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ fakeweb (1.2.8)
5
+ gemcutter (0.6.1)
6
+ git (1.2.5)
7
+ jeweler (1.4.0)
8
+ gemcutter (>= 0.1.0)
9
+ git (>= 1.2.5)
10
+ rubyforge (>= 2.0.0)
11
+ json_pure (1.4.6)
12
+ mocha (0.9.8)
13
+ rake
14
+ rake (0.8.7)
15
+ rubyforge (2.0.4)
16
+ json_pure (>= 1.1.7)
17
+ thoughtbot-shoulda (2.11.1)
18
+
19
+ PLATFORMS
20
+ ruby
21
+
22
+ DEPENDENCIES
23
+ fakeweb (>= 1.2.8)
24
+ jeweler (= 1.4.0)
25
+ mocha (>= 0.9.8)
26
+ thoughtbot-shoulda
File without changes
data/Rakefile CHANGED
@@ -2,6 +2,18 @@ require 'rake'
2
2
  require 'rake/testtask'
3
3
  require 'rake/rdoctask'
4
4
 
5
+ desc 'Default: run unit tests.'
6
+ task :default => :test
7
+
8
+ desc 'Test ventilation.'
9
+ Rake::TestTask.new(:test) do |t|
10
+ t.libs << 'lib' << 'test'
11
+ t.pattern = 'test/**/*_test.rb'
12
+ t.verbose = true
13
+ end
14
+
15
+ task :test => :check_dependencies
16
+
5
17
  begin
6
18
  require 'jeweler'
7
19
  Jeweler::Tasks.new do |gem|
@@ -20,19 +32,6 @@ rescue LoadError
20
32
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
21
33
  end
22
34
 
23
- desc 'Test ventilation.'
24
- Rake::TestTask.new(:test) do |t|
25
- t.libs << 'lib'
26
- t.libs << 'test'
27
- t.pattern = 'test/**/*_test.rb'
28
- t.verbose = true
29
- end
30
-
31
- desc 'Default: run unit tests.'
32
- task :default => :test
33
-
34
- task :test => :check_dependencies
35
-
36
35
  Rake::RDocTask.new do |rdoc|
37
36
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
38
37
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -3,7 +3,6 @@ require 'uri'
3
3
  require 'action_controller'
4
4
  require 'ventilation/deep_stack'
5
5
 
6
-
7
6
  module Ventilation
8
7
  module EsiHelper
9
8
 
@@ -42,6 +41,15 @@ module Ventilation
42
41
  end
43
42
  end
44
43
  end
44
+
45
+ # Patch esi to make it return an html_safe string in rails 3
46
+ if ::Rails::VERSION::MAJOR == 3
47
+ alias :esi_unsafe :esi
48
+ def esi(resource, options = {})
49
+ esi_unsafe(resource, options).html_safe
50
+ end
51
+ end
52
+
45
53
  end
46
54
  end
47
55
 
data/test/test_helper.rb CHANGED
@@ -4,10 +4,12 @@ require 'shoulda'
4
4
  require 'fakeweb'
5
5
  require 'mocha'
6
6
  require 'action_controller'
7
+ require 'rails'
7
8
 
8
9
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
9
10
  $LOAD_PATH.unshift(File.dirname(__FILE__))
10
11
  require 'ventilation'
12
+ require 'rails'
11
13
 
12
14
  class Test::Unit::TestCase
13
15
  end
data/ventilation.gemspec CHANGED
@@ -5,20 +5,23 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ventilation}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
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"]
12
- s.date = %q{2010-11-02}
12
+ s.date = %q{2010-11-29}
13
13
  s.description = %q{Helper methods for building esi tags, simplifies development bypassing the need for varnish.}
14
14
  s.email = %q{btaylor@agoragames.com}
15
15
  s.extra_rdoc_files = [
16
- "README.markdown"
16
+ "README.md"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
19
+ ".bundle/config",
20
+ ".gitignore",
21
+ "Gemfile",
22
+ "Gemfile.lock",
20
23
  "MIT-LICENSE",
21
- "README.markdown",
24
+ "README.md",
22
25
  "Rakefile",
23
26
  "VERSION",
24
27
  "init.rb",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Blake Taylor
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-02 00:00:00 -04:00
17
+ date: 2010-11-29 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -67,11 +67,14 @@ executables: []
67
67
  extensions: []
68
68
 
69
69
  extra_rdoc_files:
70
- - README.markdown
70
+ - README.md
71
71
  files:
72
+ - .bundle/config
72
73
  - .gitignore
74
+ - Gemfile
75
+ - Gemfile.lock
73
76
  - MIT-LICENSE
74
- - README.markdown
77
+ - README.md
75
78
  - Rakefile
76
79
  - VERSION
77
80
  - init.rb