rtex 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +1 -1
- data/README_RAILS.rdoc +6 -0
- data/bin/rtex +0 -0
- data/init.rb +1 -2
- data/lib/rtex/framework/rails.rb +6 -1
- data/lib/rtex/version.rb +1 -1
- data/rails/init.rb +2 -0
- data/tasks/setup.rb +1 -1
- metadata +4 -4
- data/tasks/rubyforge.rake +0 -57
data/Manifest.txt
CHANGED
@@ -12,11 +12,11 @@ lib/rtex/framework/merb.rb
|
|
12
12
|
lib/rtex/framework/rails.rb
|
13
13
|
lib/rtex/tempdir.rb
|
14
14
|
lib/rtex/version.rb
|
15
|
+
rails/init.rb
|
15
16
|
tasks/doc.rake
|
16
17
|
tasks/gem.rake
|
17
18
|
tasks/manifest.rake
|
18
19
|
tasks/post_load.rake
|
19
|
-
tasks/rubyforge.rake
|
20
20
|
tasks/setup.rb
|
21
21
|
tasks/test.rake
|
22
22
|
test/document_test.rb
|
data/README_RAILS.rdoc
CHANGED
@@ -3,8 +3,14 @@
|
|
3
3
|
== Installation
|
4
4
|
|
5
5
|
sudo gem install rtex
|
6
|
+
|
7
|
+
Rails 2.0.X, 2.1 in vendor/plugins:
|
6
8
|
rtex --install /path/to/rails/app
|
7
9
|
|
10
|
+
Or, as a Rails 2.1 gem dependency, just add the following
|
11
|
+
to your <tt>config/environment.rb</tt>:
|
12
|
+
config.gem 'rtex'
|
13
|
+
|
8
14
|
== Dependencies
|
9
15
|
|
10
16
|
* Rails >= 2.0.1
|
data/bin/rtex
CHANGED
File without changes
|
data/init.rb
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
RTeX.framework :rails
|
1
|
+
File.dirname(__FILE__) << "/rails/init"
|
data/lib/rtex/framework/rails.rb
CHANGED
@@ -6,7 +6,12 @@ module RTeX
|
|
6
6
|
|
7
7
|
def self.setup
|
8
8
|
RTeX::Document.options[:tempdir] = File.expand_path(File.join(RAILS_ROOT, 'tmp'))
|
9
|
-
ActionView::Base.
|
9
|
+
if ActionView::Base.respond_to?(:register_template_handler)
|
10
|
+
ActionView::Base.register_template_handler(:rtex, Template)
|
11
|
+
else
|
12
|
+
# Rails 2.1
|
13
|
+
ActionView::Template.register_template_handler(:rtex, Template)
|
14
|
+
end
|
10
15
|
ActionController::Base.send(:include, ControllerMethods)
|
11
16
|
ActionView::Base.send(:include, HelperMethods)
|
12
17
|
end
|
data/lib/rtex/version.rb
CHANGED
data/rails/init.rb
ADDED
data/tasks/setup.rb
CHANGED
@@ -17,7 +17,7 @@ PROJ.email = nil
|
|
17
17
|
PROJ.url = nil
|
18
18
|
PROJ.version = ENV['VERSION'] || '0.0.0'
|
19
19
|
PROJ.rubyforge_name = nil
|
20
|
-
PROJ.exclude = %w(tmp$ bak$ ~$ CVS site .svn/ ^pkg/ ^doc/ ^\. ^rails-example/
|
20
|
+
PROJ.exclude = %w(tmp$ bak$ ~$ CVS site .svn/ ^pkg/ ^doc/ ^\. ^rails-example/)
|
21
21
|
PROJ.release_name = ENV['RELEASE']
|
22
22
|
PROJ.history_file = 'HISTORY.rdoc'
|
23
23
|
PROJ.manifest_file = 'Manifest.txt'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruce Williams
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2008-
|
13
|
+
date: 2008-06-08 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -40,11 +40,11 @@ files:
|
|
40
40
|
- lib/rtex/framework/rails.rb
|
41
41
|
- lib/rtex/tempdir.rb
|
42
42
|
- lib/rtex/version.rb
|
43
|
+
- rails/init.rb
|
43
44
|
- tasks/doc.rake
|
44
45
|
- tasks/gem.rake
|
45
46
|
- tasks/manifest.rake
|
46
47
|
- tasks/post_load.rake
|
47
|
-
- tasks/rubyforge.rake
|
48
48
|
- tasks/setup.rb
|
49
49
|
- tasks/test.rake
|
50
50
|
- test/document_test.rb
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
requirements: []
|
81
81
|
|
82
82
|
rubyforge_project: rtex
|
83
|
-
rubygems_version: 1.
|
83
|
+
rubygems_version: 1.1.1
|
84
84
|
signing_key:
|
85
85
|
specification_version: 2
|
86
86
|
summary: LaTeX preprocessor for PDF generation; Rails plugin
|
data/tasks/rubyforge.rake
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
# $Id$
|
2
|
-
|
3
|
-
if PROJ.rubyforge_name && HAVE_RUBYFORGE
|
4
|
-
|
5
|
-
require 'rubyforge'
|
6
|
-
require 'rake/contrib/sshpublisher'
|
7
|
-
|
8
|
-
namespace :gem do
|
9
|
-
desc 'Package and upload to RubyForge'
|
10
|
-
task :release => [:clobber, :package] do |t|
|
11
|
-
v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
|
12
|
-
abort "Versions don't match #{v} vs #{PROJ.version}" if v != PROJ.version
|
13
|
-
pkg = "pkg/#{PROJ.spec.full_name}"
|
14
|
-
|
15
|
-
if $DEBUG then
|
16
|
-
puts "release_id = rf.add_release #{PROJ.rubyforge_name.inspect}, #{PROJ.name.inspect}, #{PROJ.version.inspect}, \"#{pkg}.tgz\""
|
17
|
-
puts "rf.add_file #{PROJ.rubyforge_name.inspect}, #{PROJ.name.inspect}, release_id, \"#{pkg}.gem\""
|
18
|
-
end
|
19
|
-
|
20
|
-
rf = RubyForge.new
|
21
|
-
puts 'Logging in'
|
22
|
-
rf.login
|
23
|
-
|
24
|
-
c = rf.userconfig
|
25
|
-
c['release_notes'] = PROJ.description if PROJ.description
|
26
|
-
c['release_changes'] = PROJ.changes if PROJ.changes
|
27
|
-
c['preformatted'] = true
|
28
|
-
|
29
|
-
files = [(PROJ.need_tar ? "#{pkg}.tgz" : nil),
|
30
|
-
(PROJ.need_zip ? "#{pkg}.zip" : nil),
|
31
|
-
"#{pkg}.gem"].compact
|
32
|
-
|
33
|
-
puts "Releasing #{PROJ.name} v. #{PROJ.version}"
|
34
|
-
rf.add_release PROJ.rubyforge_name, PROJ.name, PROJ.version, *files
|
35
|
-
end
|
36
|
-
end # namespace :gem
|
37
|
-
|
38
|
-
|
39
|
-
namespace :doc do
|
40
|
-
desc "Publish RDoc to RubyForge"
|
41
|
-
task :release => %w(doc:clobber_rdoc doc:rdoc) do
|
42
|
-
config = YAML.load(
|
43
|
-
File.read(File.expand_path('~/.rubyforge/user-config.yml'))
|
44
|
-
)
|
45
|
-
|
46
|
-
host = "#{config['username']}@rubyforge.org"
|
47
|
-
remote_dir = "/var/www/gforge-projects/#{PROJ.rubyforge_name}/"
|
48
|
-
remote_dir << PROJ.rdoc_remote_dir if PROJ.rdoc_remote_dir
|
49
|
-
local_dir = PROJ.rdoc_dir
|
50
|
-
|
51
|
-
Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
|
52
|
-
end
|
53
|
-
end # namespace :doc
|
54
|
-
|
55
|
-
end # if HAVE_RUBYFORGE
|
56
|
-
|
57
|
-
# EOF
|