methodmissing-erubis_template_handler 1.0.0 → 1.0.2
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/Rakefile +27 -0
- data/VERSION.yml +1 -1
- data/rails/init.rb +19 -0
- metadata +4 -2
data/Rakefile
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/testtask'
|
3
|
+
|
4
|
+
desc 'Default: run unit tests.'
|
5
|
+
task :default => :test
|
6
|
+
|
7
|
+
desc 'Test the pdf_wrapper_extensions plugin.'
|
8
|
+
Rake::TestTask.new(:test) do |t|
|
9
|
+
t.libs << 'lib'
|
10
|
+
t.pattern = 'test/**/*_test.rb'
|
11
|
+
t.verbose = true
|
12
|
+
end
|
13
|
+
|
14
|
+
begin
|
15
|
+
require 'jeweler'
|
16
|
+
Jeweler::Tasks.new do |s|
|
17
|
+
s.name = "erubis_template_handler"
|
18
|
+
s.summary = "Rails 2.3 / Edge template handler for erubis ( http://www.kuwata-lab.com/erubis/ )"
|
19
|
+
s.email = "lourens@methodmissing.com"
|
20
|
+
s.homepage = "http://github.com/methodmissing/erubis_template_handler"
|
21
|
+
s.description = "Rails 2.3 / Edge template handler for erubis ( http://www.kuwata-lab.com/erubis/ )"
|
22
|
+
s.authors = ["Lourens Naudé"]
|
23
|
+
s.files = FileList["[A-Z]*", "{lib,test,rails}/**/*"]
|
24
|
+
end
|
25
|
+
rescue LoadError
|
26
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
27
|
+
end
|
data/VERSION.yml
CHANGED
data/rails/init.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
$:.unshift(File.dirname(__FILE__))
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'action_controller'
|
5
|
+
rescue LoadError
|
6
|
+
require 'rubygems'
|
7
|
+
require 'action_controller'
|
8
|
+
require 'action_view'
|
9
|
+
end
|
10
|
+
|
11
|
+
begin
|
12
|
+
require 'erubis'
|
13
|
+
rescue LoadError
|
14
|
+
$stderr.puts %[This Template handler requires erubis 2.6.2\n
|
15
|
+
Add "config.gem 'erubis', :version => 2.6.2" to config/environment.rb]
|
16
|
+
end
|
17
|
+
|
18
|
+
require 'action_view/template_handlers/erubis'
|
19
|
+
require 'action_view/helpers/erubis_helper'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: methodmissing-erubis_template_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Lourens Naud\xC3\xA9"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-10 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -22,6 +22,7 @@ extensions: []
|
|
22
22
|
extra_rdoc_files: []
|
23
23
|
|
24
24
|
files:
|
25
|
+
- Rakefile
|
25
26
|
- README.textile
|
26
27
|
- VERSION.yml
|
27
28
|
- lib/action_view
|
@@ -40,6 +41,7 @@ files:
|
|
40
41
|
- test/views/products
|
41
42
|
- test/views/products/_product.erb
|
42
43
|
- test/views/products/index.erb
|
44
|
+
- rails/init.rb
|
43
45
|
has_rdoc: true
|
44
46
|
homepage: http://github.com/methodmissing/erubis_template_handler
|
45
47
|
post_install_message:
|