rails-latex 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- require 'bundler/gem_tasks'
1
+ require 'bundler/gem_tasks' rescue nil
2
2
 
3
3
  require 'rake/testtask'
4
4
  Rake::TestTask.new(:test) do |test|
@@ -9,7 +9,7 @@ end
9
9
 
10
10
  task :default => :test
11
11
 
12
- require 'rake/rdoctask'
12
+ require 'rdoc/task'
13
13
  Rake::RDocTask.new do |rdoc|
14
14
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
15
15
 
@@ -1,3 +1,4 @@
1
+ # -*- coding: utf-8 -*-
1
2
  require 'fileutils'
2
3
  require 'rails-latex/latex_to_pdf'
3
4
  require 'action_view'
@@ -8,7 +9,7 @@ module ActionView # :nodoc: all
8
9
  def self.call(template)
9
10
  new.compile(template)
10
11
  end
11
-
12
+
12
13
  def compile(template)
13
14
  erb = "<% __in_erb_template=true %>#{template.source}"
14
15
  out=self.class.erb_implementation.new(erb, :trim=>(self.class.erb_trim_mode == "-")).src
@@ -19,4 +20,3 @@ module ActionView # :nodoc: all
19
20
  Template.register_template_handler :erbtex, Template::Handlers::ERBLatex
20
21
  end
21
22
 
22
-
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Latex
3
- VERSION = "1.0.8"
3
+ VERSION = "1.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-latex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-01 00:00:00.000000000 Z
12
+ date: 2012-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &9711700 !ruby/object:Gem::Requirement
16
+ requirement: &21839880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *9711700
24
+ version_requirements: *21839880
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: RedCloth
27
- requirement: &9726320 !ruby/object:Gem::Requirement
27
+ requirement: &22068460 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 4.2.7
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *9726320
35
+ version_requirements: *22068460
36
36
  description: rails-latex is a renderer for rails 3 which allows tex files with erb
37
37
  to be turned into an inline pdf.
38
38
  email:
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 1.8.11
111
+ rubygems_version: 1.8.15
112
112
  signing_key:
113
113
  specification_version: 3
114
114
  summary: A LaTeX to pdf rails 3 renderer.