public
Description: Ruby LaTeX to PDF preprocessor (and Rails plugin)
Homepage: http://rtex.rubyforge.org
Clone URL: git://github.com/bruce/rtex.git
Click here to lend your support to: rtex and make a donation at www.pledgie.com !
Support for Rails 2.1
bruce (author)
Sun Jun 08 11:19:36 -0700 2008
commit  a582abe0a2af2d781d695d508e688ffa9ba3afb5
tree    1c519a7103b648ec51e1cb62ae98bdd54dd3b101
parent  44c8101c353ff577d1e1501b334c016c6d754ced
...
12
13
14
 
15
16
17
...
26
27
28
29
30
31
32
33
...
12
13
14
15
16
17
18
...
27
28
29
 
 
 
30
31
0
@@ -12,6 +12,7 @@ lib/rtex/framework/merb.rb
0
 lib/rtex/framework/rails.rb
0
 lib/rtex/tempdir.rb
0
 lib/rtex/version.rb
0
+rails/init.rb
0
 tasks/doc.rake
0
 tasks/gem.rake
0
 tasks/manifest.rake
0
@@ -26,8 +27,5 @@ test/fixtures/fragment.tex.erb
0
 test/fixtures/text.textile
0
 test/tempdir_test.rb
0
 test/test_helper.rb
0
-test/tmp/rtex-071EE944-B2FA-4A3B-9764-1B5143833EB7/document.tex
0
-test/tmp/rtex-592F93A7-6198-4B00-B638-33855344A29B/document.tex
0
-test/tmp/rtex-96736595-5175-4602-9DC1-ABA096CC0E3D/document.tex
0
 vendor/instiki/LICENSE
0
 vendor/instiki/redcloth_for_tex.rb
...
3
4
5
 
 
6
7
 
 
 
 
8
9
10
...
3
4
5
6
7
8
9
10
11
12
13
14
15
16
0
@@ -3,8 +3,14 @@
0
 == Installation
0
 
0
   sudo gem install rtex
0
+
0
+Rails 2.0.X, 2.1 in vendor/plugins:
0
   rtex --install /path/to/rails/app
0
   
0
+Or, as a Rails 2.1 gem dependency, just add the following
0
+to your <tt>config/environment.rb</tt>:
0
+ config.gem 'rtex'
0
+
0
 == Dependencies
0
 
0
 * Rails >= 2.0.1
...
1
2
3
 
4
...
 
 
1
2
3
0
@@ -1,2 +1 @@
0
-require 'rtex'
0
-RTeX.framework :rails
0
\ No newline at end of file
0
+File.dirname(__FILE__) << "/rails/init"
0
\ No newline at end of file
...
6
7
8
9
 
 
 
 
 
 
10
11
12
...
6
7
8
 
9
10
11
12
13
14
15
16
17
0
@@ -6,7 +6,12 @@ module RTeX
0
       
0
       def self.setup
0
         RTeX::Document.options[:tempdir] = File.expand_path(File.join(RAILS_ROOT, 'tmp'))
0
- ActionView::Base.register_template_handler(:rtex, Template)
0
+ if ActionView::Base.respond_to?(:register_template_handler)
0
+ ActionView::Base.register_template_handler(:rtex, Template)
0
+ else
0
+ # Rails 2.1
0
+ ActionView::Template.register_template_handler(:rtex, Template)
0
+ end
0
         ActionController::Base.send(:include, ControllerMethods)
0
         ActionView::Base.send(:include, HelperMethods)
0
       end
...
65
66
67
68
 
69
70
71
...
65
66
67
 
68
69
70
71
0
@@ -65,7 +65,7 @@ module RTeX
0
 
0
     MAJOR = 2
0
     MINOR = 0
0
- TINY = 0
0
+ TINY = 1
0
     
0
     # The current version as a Version instance
0
     CURRENT = new(MAJOR, MINOR, TINY)
...
27
28
29
30
 
 
 
31
32
 
 
 
33
34
35
...
27
28
29
 
30
31
32
33
 
34
35
36
37
38
39
0
@@ -27,8 +27,12 @@ h2(#rails). Installing the Rails plugin
0
 
0
 If you'd like to use RTeX as a Rails template handler, install it with:
0
 
0
- rtex --install /path/to/your/app
0
+Rails 2.0.X, 2.1 in vendor/plugins:
0
+
0
+ rtex --install /path/to/rails/app
0
   
0
-It's also possible to unpack the entire gem to @vendor/plugins/rtex@, but it's not recommended.
0
+Or, as a Rails 2.1 gem dependency, just add the following
0
+to your @config/environment.rb@:
0
+ config.gem 'rtex'
0
 
0
 For information on how to use RTeX from within your Rails application, see the "Rails page":/manual/rails.html.
0
\ No newline at end of file

Comments

    No one has commented yet.