to_pdf 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -45,13 +45,13 @@ You can though define CSS at the top of the document (note that "body" rules wil
45
45
 
46
46
  Or link a stylesheet:
47
47
 
48
- = stylesheet_link_tag 'pdf', media: 'print'
48
+ = stylesheet_link_tag 'pdf', :media => 'print'
49
49
 
50
50
  .job
51
51
  .name
52
52
  = job.name
53
53
 
54
- This will even work with the Rails 3.1 asset pipeline in production although in development you will need to add this line of configuration to your development.rb:
54
+ This will even work with the Rails 3.1 asset pipeline. However, in development you will need to add this line of configuration to your development.rb:
55
55
 
56
56
  MyProject::Application.configure do
57
57
  ...
@@ -38,10 +38,11 @@ class PrinceXML
38
38
  if @asset_domain
39
39
  string.gsub!('link href="/', "link href=\"#{@asset_domain}/")
40
40
  elsif defined?(Rails)
41
- string.gsub!('link href="/', "link src=\"#{Rails.public_path}/")
41
+ string.gsub!('link href="/', "link href=\"#{Rails.public_path}/")
42
42
  string.gsub!('url(/', "url(#{Rails.public_path}/")
43
43
  end
44
44
 
45
+ Rails.logger.info string
45
46
  string
46
47
  end
47
48
  end
@@ -1,3 +1,3 @@
1
1
  module ToPDF
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-09-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70310188469080 !ruby/object:Gem::Requirement
16
+ requirement: &70270651992120 !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: *70310188469080
24
+ version_requirements: *70270651992120
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70310188468480 !ruby/object:Gem::Requirement
27
+ requirement: &70270651991520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 2.6.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70310188468480
35
+ version_requirements: *70270651991520
36
36
  description: Render rails actions as a PDF using PrinceXML.
37
37
  email: hugh@artpop.com.au
38
38
  executables: []