wisepdf 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.2
4
+ - 1.9.3
data/Gemfile CHANGED
@@ -3,7 +3,9 @@ source "http://rubygems.org"
3
3
  gem 'rails', '>=3.0.0'
4
4
 
5
5
  group :development, :test do
6
- gem 'sqlite3-ruby'
6
+ gem 'sqlite3'
7
+ gem 'wkhtmltopdf-binary'
8
+
7
9
  gem "shoulda", ">= 0"
8
10
  gem "bundler", "~> 1.0.0"
9
11
  gem "jeweler", "~> 1.6.4"
data/Gemfile.lock CHANGED
@@ -82,14 +82,13 @@ GEM
82
82
  rack (~> 1.0)
83
83
  tilt (~> 1.1, != 1.3.0)
84
84
  sqlite3 (1.3.5)
85
- sqlite3-ruby (1.3.3)
86
- sqlite3 (>= 1.3.3)
87
85
  thor (0.14.6)
88
86
  tilt (1.3.3)
89
87
  treetop (1.4.10)
90
88
  polyglot
91
89
  polyglot (>= 0.3.1)
92
90
  tzinfo (0.3.32)
91
+ wkhtmltopdf-binary (0.9.5.3)
93
92
 
94
93
  PLATFORMS
95
94
  ruby
@@ -99,4 +98,5 @@ DEPENDENCIES
99
98
  jeweler (~> 1.6.4)
100
99
  rails (>= 3.0.0)
101
100
  shoulda
102
- sqlite3-ruby
101
+ sqlite3
102
+ wkhtmltopdf-binary
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://secure.travis-ci.org/igor-alexandrov/wisepdf.png)](http://travis-ci.org/igor-alexandrov/wisepdf)
2
+
1
3
  # wisepdf
2
4
 
3
5
  Wkhtmltopdf wrapper done right.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -1,4 +1,4 @@
1
- Pdf::Configuration.configuration do |config|
1
+ Wisepdf::Configuration.configuration do |config|
2
2
  config.wkhtmltopdf = '/path/to/wkhtmltopdf'
3
3
  config.options = {
4
4
  #:layout => "pdf.html"
@@ -0,0 +1,7 @@
1
+ class WisepdfGenerator < Rails::Generator::Base
2
+ def manifest
3
+ record do |m|
4
+ m.file "configure_wisepdf.rb", "config/initializers/configure_wisepdf.rb"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ if defined?(Rails) && Rails::VERSION::MAJOR > 2
2
+ # Rails3 generator invoked with 'rails generate wisepdf'
3
+ class WisepdfGenerator < Rails::Generators::Base
4
+ source_root(File.expand_path(File.dirname(__FILE__) + "/../../generators/pdf/templates"))
5
+ def copy_initializer
6
+ copy_file 'configure_wisepdf.rb', 'config/initializers/configure_wisepdf.rb'
7
+ end
8
+ end
9
+ end
@@ -3,7 +3,11 @@ module Wisepdf
3
3
  class Engine < ::Rails::Engine
4
4
  initializer "wicked_pdf.register" do
5
5
  ActionController::Base.send :include, Render
6
- ActionView::Base.send :include, Helper::Assets
6
+ if ::Rails.configuration.assets.enabled
7
+ ActionView::Base.send :include, Helper::Assets
8
+ else
9
+ ActionView::Base.send :include, Helper::Legacy
10
+ end
7
11
  end
8
12
  end
9
13
  end
@@ -47,131 +47,120 @@ module Wisepdf
47
47
  raise Wisepdf::NoExecutableError.new(@wkhtmltopdf) if @wkhtmltopdf.nil? || !File.exists?(@wkhtmltopdf)
48
48
  end
49
49
 
50
- private
51
-
52
- # def in_development_mode?
53
- # (defined?(::Rails) && ::Rails.env == 'development') ||
54
- # (defined?(RAILS_ENV) && RAILS_ENV == 'development')
55
- # end
56
- #
57
- # def on_windows?
58
- # RbConfig::CONFIG['target_os'] == 'mingw32'
59
- # end
60
-
61
- def print_command(cmd)
62
- puts "*"*15
63
- puts cmd
64
- puts "*"*15
65
- end
50
+ private
51
+ def print_command(cmd)
52
+ puts "*"*15
53
+ puts cmd
54
+ puts "*"*15
55
+ end
66
56
 
67
- def parse_options(options)
68
- [
69
- parse_header_footer(:header => options.delete(:header),
70
- :footer => options.delete(:footer),
71
- :layout => options[:layout]),
72
- parse_toc(options.delete(:toc)),
73
- parse_outline(options.delete(:outline)),
74
- parse_margins(options.delete(:margin)),
75
- parse_others(options),
76
- parse_basic_auth(options)
77
- ].join(' ')
78
- end
57
+ def parse_options(options)
58
+ [
59
+ parse_header_footer(:header => options.delete(:header),
60
+ :footer => options.delete(:footer),
61
+ :layout => options[:layout]),
62
+ parse_toc(options.delete(:toc)),
63
+ parse_outline(options.delete(:outline)),
64
+ parse_margins(options.delete(:margin)),
65
+ parse_others(options),
66
+ parse_basic_auth(options)
67
+ ].join(' ')
68
+ end
79
69
 
80
- def parse_basic_auth(options)
81
- if options[:basic_auth]
82
- user, passwd = Base64.decode64(options[:basic_auth]).split(":")
83
- "--username '#{user}' --password '#{passwd}'"
84
- else
85
- ""
86
- end
70
+ def parse_basic_auth(options)
71
+ if options[:basic_auth]
72
+ user, passwd = Base64.decode64(options[:basic_auth]).split(":")
73
+ "--username '#{user}' --password '#{passwd}'"
74
+ else
75
+ ""
87
76
  end
77
+ end
88
78
 
89
- def make_option(name, value, type=:string)
90
- if value.is_a?(Array)
91
- return value.collect { |v| make_option(name, v, type) }.join('')
92
- end
93
- "--#{name.gsub('_', '-')} " + case type
94
- when :boolean then ""
95
- when :numeric then value.to_s
96
- when :name_value then value.to_s
97
- else "\"#{value}\""
98
- end + " "
79
+ def make_option(name, value, type=:string)
80
+ if value.is_a?(Array)
81
+ return value.collect { |v| make_option(name, v, type) }.join('')
99
82
  end
83
+ "--#{name.gsub('_', '-')} " + case type
84
+ when :boolean then ""
85
+ when :numeric then value.to_s
86
+ when :name_value then value.to_s
87
+ else "\"#{value}\""
88
+ end + " "
89
+ end
100
90
 
101
- def make_options(options, names, prefix="", type=:string)
102
- names.collect {|o| make_option("#{prefix.blank? ? "" : prefix + "-"}#{o.to_s}", options[o], type) unless options[o].blank?}.join
103
- end
91
+ def make_options(options, names, prefix="", type=:string)
92
+ names.collect {|o| make_option("#{prefix.blank? ? "" : prefix + "-"}#{o.to_s}", options[o], type) unless options[o].blank?}.join
93
+ end
104
94
 
105
- def parse_header_footer(options)
106
- r=""
107
- [:header, :footer].collect do |hf|
108
- unless options[hf].blank?
109
- opt_hf = options[hf]
110
- r += make_options(opt_hf, [:center, :font_name, :left, :right], "#{hf.to_s}")
111
- r += make_options(opt_hf, [:font_size, :spacing], "#{hf.to_s}", :numeric)
112
- r += make_options(opt_hf, [:line], "#{hf.to_s}", :boolean)
113
- unless opt_hf[:html].blank?
114
- r += make_option("#{hf.to_s}-html", opt_hf[:html][:url]) unless opt_hf[:html][:url].blank?
115
- end
95
+ def parse_header_footer(options)
96
+ r=""
97
+ [:header, :footer].collect do |hf|
98
+ unless options[hf].blank?
99
+ opt_hf = options[hf]
100
+ r += make_options(opt_hf, [:center, :font_name, :left, :right], "#{hf.to_s}")
101
+ r += make_options(opt_hf, [:font_size, :spacing], "#{hf.to_s}", :numeric)
102
+ r += make_options(opt_hf, [:line], "#{hf.to_s}", :boolean)
103
+ unless opt_hf[:html].blank?
104
+ r += make_option("#{hf.to_s}-html", opt_hf[:html][:url]) unless opt_hf[:html][:url].blank?
116
105
  end
117
- end unless options.blank?
118
- r
119
- end
120
-
121
- def parse_toc(options)
122
- r = 'toc ' unless options.nil?
123
- unless options.blank?
124
- r += make_options(options, [ :level_indentation, :header_text], "toc")
125
- r += make_options(options, [ :text_size_shrink], "toc", :numeric)
126
- r += make_options(options, [ :disable_toc_links, :disable_dotted_lines], "", :boolean)
127
106
  end
128
- return r
129
- end
107
+ end unless options.blank?
108
+ r
109
+ end
130
110
 
131
- def parse_outline(options)
132
- unless options.blank?
133
- r = make_options(options, [:outline], "", :boolean)
134
- r +=make_options(options, [:outline_depth], "", :numeric)
135
- end
111
+ def parse_toc(options)
112
+ r = 'toc ' unless options.nil?
113
+ unless options.blank?
114
+ r += make_options(options, [ :level_indentation, :header_text], "toc")
115
+ r += make_options(options, [ :text_size_shrink], "toc", :numeric)
116
+ r += make_options(options, [ :disable_toc_links, :disable_dotted_lines], "", :boolean)
136
117
  end
118
+ return r
119
+ end
137
120
 
138
- def parse_margins(options)
139
- make_options(options, [:top, :bottom, :left, :right], "margin", :numeric) unless options.blank?
121
+ def parse_outline(options)
122
+ unless options.blank?
123
+ r = make_options(options, [:outline], "", :boolean)
124
+ r +=make_options(options, [:outline_depth], "", :numeric)
140
125
  end
126
+ end
141
127
 
142
- def parse_others(options)
143
- unless options.blank?
144
- r = make_options(options, [ :orientation,
145
- :page_size,
146
- :page_width,
147
- :page_height,
148
- :proxy,
149
- :username,
150
- :password,
151
- :cover,
152
- :dpi,
153
- :encoding,
154
- :user_style_sheet])
155
- r +=make_options(options, [ :cookie,
156
- :post], "", :name_value)
157
- r +=make_options(options, [ :redirect_delay,
158
- :zoom,
159
- :page_offset,
160
- :javascript_delay], "", :numeric)
161
- r +=make_options(options, [ :book,
162
- :default_header,
163
- :disable_javascript,
164
- :greyscale,
165
- :lowquality,
166
- :enable_plugins,
167
- :disable_internal_links,
168
- :disable_external_links,
169
- :print_media_type,
170
- :disable_smart_shrinking,
171
- :use_xserver,
172
- :no_background], "", :boolean)
173
- end
174
- end
128
+ def parse_margins(options)
129
+ make_options(options, [:top, :bottom, :left, :right], "margin", :numeric) unless options.blank?
130
+ end
175
131
 
132
+ def parse_others(options)
133
+ unless options.blank?
134
+ r = make_options(options, [ :orientation,
135
+ :page_size,
136
+ :page_width,
137
+ :page_height,
138
+ :proxy,
139
+ :username,
140
+ :password,
141
+ :cover,
142
+ :dpi,
143
+ :encoding,
144
+ :user_style_sheet])
145
+ r +=make_options(options, [ :cookie,
146
+ :post], "", :name_value)
147
+ r +=make_options(options, [ :redirect_delay,
148
+ :zoom,
149
+ :page_offset,
150
+ :javascript_delay], "", :numeric)
151
+ r +=make_options(options, [ :book,
152
+ :default_header,
153
+ :disable_javascript,
154
+ :greyscale,
155
+ :lowquality,
156
+ :enable_plugins,
157
+ :disable_internal_links,
158
+ :disable_external_links,
159
+ :print_media_type,
160
+ :disable_smart_shrinking,
161
+ :use_xserver,
162
+ :no_background], "", :boolean)
163
+ end
164
+ end
176
165
  end
177
166
  end
data/lib/wisepdf.rb CHANGED
@@ -4,7 +4,4 @@ require 'wisepdf/configuration'
4
4
  require 'wisepdf/writer'
5
5
  require 'wisepdf/helper'
6
6
  require 'wisepdf/render'
7
- require 'wisepdf/rails' if defined?(Rails)
8
-
9
- module Pdf
10
- end
7
+ require 'wisepdf/rails' if defined?(Rails)
@@ -1,6 +1,6 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
3
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
4
 
5
5
  # Use the database for sessions instead of the cookie-based default,
6
6
  # which shouldn't be used to store highly confidential information
@@ -5,7 +5,7 @@
5
5
 
6
6
  # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
7
  ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json]
8
+ wrap_parameters :format => [:json]
9
9
  end
10
10
 
11
11
  # Disable root element in JSON by default.
@@ -1,58 +1,2 @@
1
1
  Dummy::Application.routes.draw do
2
- # The priority is based upon order of creation:
3
- # first created -> highest priority.
4
-
5
- # Sample of regular route:
6
- # match 'products/:id' => 'catalog#view'
7
- # Keep in mind you can assign values other than :controller and :action
8
-
9
- # Sample of named route:
10
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
- # This route can be invoked with purchase_url(:id => product.id)
12
-
13
- # Sample resource route (maps HTTP verbs to controller actions automatically):
14
- # resources :products
15
-
16
- # Sample resource route with options:
17
- # resources :products do
18
- # member do
19
- # get 'short'
20
- # post 'toggle'
21
- # end
22
- #
23
- # collection do
24
- # get 'sold'
25
- # end
26
- # end
27
-
28
- # Sample resource route with sub-resources:
29
- # resources :products do
30
- # resources :comments, :sales
31
- # resource :seller
32
- # end
33
-
34
- # Sample resource route with more complex sub-resources
35
- # resources :products do
36
- # resources :comments
37
- # resources :sales do
38
- # get 'recent', :on => :collection
39
- # end
40
- # end
41
-
42
- # Sample resource route within a namespace:
43
- # namespace :admin do
44
- # # Directs /admin/products/* to Admin::ProductsController
45
- # # (app/controllers/admin/products_controller.rb)
46
- # resources :products
47
- # end
48
-
49
- # You can have the root of your site routed with "root"
50
- # just remember to delete public/index.html.
51
- # root :to => 'welcome#index'
52
-
53
- # See how all your routes lay out with "rake routes"
54
-
55
- # This is a legacy wild controller route that's not recommended for RESTful applications.
56
- # Note: This route will make all actions in every controller accessible via GET requests.
57
- # match ':controller(/:action(/:id))(.:format)'
58
2
  end
data/wisepdf.gemspec CHANGED
@@ -5,26 +5,27 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "wisepdf"
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Igor Alexandrov"]
12
- s.date = "2012-03-18"
12
+ s.date = "2012-03-28"
13
13
  s.description = "wisepdf uses the shell utility wkhtmltopdf to serve a PDF file to a user from HTML. In other words, rather than dealing with a PDF generation DSL of some sort, you simply write an HTML view as you would normally, and let pdf take care of the hard stuff."
14
14
  s.email = "igor.alexandrov@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "README.md"
17
17
  ]
18
18
  s.files = [
19
+ ".travis.yml",
19
20
  "Gemfile",
20
21
  "Gemfile.lock",
21
22
  "MIT-LICENSE",
22
23
  "README.md",
23
24
  "Rakefile",
24
25
  "VERSION",
25
- "generators/pdf/pdf_generator.rb",
26
- "generators/pdf/templates/configure_pdf.rb",
27
- "lib/generators/pdf_generator.rb",
26
+ "generators/wisepdf/templates/configure_wisepdf.rb",
27
+ "generators/wisepdf/wisepdf_generator.rb",
28
+ "lib/generators/wisepdf_generator.rb",
28
29
  "lib/wisepdf.rb",
29
30
  "lib/wisepdf/configuration.rb",
30
31
  "lib/wisepdf/errors.rb",
@@ -67,7 +68,6 @@ Gem::Specification.new do |s|
67
68
  "test/dummy/config/routes.rb",
68
69
  "test/dummy/lib/assets/.gitkeep",
69
70
  "test/dummy/log/.gitkeep",
70
- "test/dummy/log/test.log",
71
71
  "test/dummy/public/404.html",
72
72
  "test/dummy/public/422.html",
73
73
  "test/dummy/public/500.html",
@@ -98,20 +98,23 @@ Gem::Specification.new do |s|
98
98
 
99
99
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
100
100
  s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
101
- s.add_development_dependency(%q<sqlite3-ruby>, [">= 0"])
101
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
102
+ s.add_development_dependency(%q<wkhtmltopdf-binary>, [">= 0"])
102
103
  s.add_development_dependency(%q<shoulda>, [">= 0"])
103
104
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
104
105
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
105
106
  else
106
107
  s.add_dependency(%q<rails>, [">= 3.0.0"])
107
- s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
108
+ s.add_dependency(%q<sqlite3>, [">= 0"])
109
+ s.add_dependency(%q<wkhtmltopdf-binary>, [">= 0"])
108
110
  s.add_dependency(%q<shoulda>, [">= 0"])
109
111
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
110
112
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
111
113
  end
112
114
  else
113
115
  s.add_dependency(%q<rails>, [">= 3.0.0"])
114
- s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
116
+ s.add_dependency(%q<sqlite3>, [">= 0"])
117
+ s.add_dependency(%q<wkhtmltopdf-binary>, [">= 0"])
115
118
  s.add_dependency(%q<shoulda>, [">= 0"])
116
119
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
117
120
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wisepdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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: 2012-03-18 00:00:00.000000000 Z
12
+ date: 2012-03-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70197852686900 !ruby/object:Gem::Requirement
16
+ requirement: &70198037665340 !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: *70197852686900
24
+ version_requirements: *70198037665340
25
25
  - !ruby/object:Gem::Dependency
26
- name: sqlite3-ruby
27
- requirement: &70197852695240 !ruby/object:Gem::Requirement
26
+ name: sqlite3
27
+ requirement: &70198037662120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,21 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70197852695240
35
+ version_requirements: *70198037662120
36
+ - !ruby/object:Gem::Dependency
37
+ name: wkhtmltopdf-binary
38
+ requirement: &70198037672040 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70198037672040
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: shoulda
38
- requirement: &70197852716420 !ruby/object:Gem::Requirement
49
+ requirement: &70198037686120 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ! '>='
@@ -43,10 +54,10 @@ dependencies:
43
54
  version: '0'
44
55
  type: :development
45
56
  prerelease: false
46
- version_requirements: *70197852716420
57
+ version_requirements: *70198037686120
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: bundler
49
- requirement: &70197852711660 !ruby/object:Gem::Requirement
60
+ requirement: &70198037697280 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - ~>
@@ -54,10 +65,10 @@ dependencies:
54
65
  version: 1.0.0
55
66
  type: :development
56
67
  prerelease: false
57
- version_requirements: *70197852711660
68
+ version_requirements: *70198037697280
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: jeweler
60
- requirement: &70197852708900 !ruby/object:Gem::Requirement
71
+ requirement: &70198037693300 !ruby/object:Gem::Requirement
61
72
  none: false
62
73
  requirements:
63
74
  - - ~>
@@ -65,7 +76,7 @@ dependencies:
65
76
  version: 1.6.4
66
77
  type: :development
67
78
  prerelease: false
68
- version_requirements: *70197852708900
79
+ version_requirements: *70198037693300
69
80
  description: wisepdf uses the shell utility wkhtmltopdf to serve a PDF file to a user
70
81
  from HTML. In other words, rather than dealing with a PDF generation DSL of some
71
82
  sort, you simply write an HTML view as you would normally, and let pdf take care
@@ -76,15 +87,16 @@ extensions: []
76
87
  extra_rdoc_files:
77
88
  - README.md
78
89
  files:
90
+ - .travis.yml
79
91
  - Gemfile
80
92
  - Gemfile.lock
81
93
  - MIT-LICENSE
82
94
  - README.md
83
95
  - Rakefile
84
96
  - VERSION
85
- - generators/pdf/pdf_generator.rb
86
- - generators/pdf/templates/configure_pdf.rb
87
- - lib/generators/pdf_generator.rb
97
+ - generators/wisepdf/templates/configure_wisepdf.rb
98
+ - generators/wisepdf/wisepdf_generator.rb
99
+ - lib/generators/wisepdf_generator.rb
88
100
  - lib/wisepdf.rb
89
101
  - lib/wisepdf/configuration.rb
90
102
  - lib/wisepdf/errors.rb
@@ -127,7 +139,6 @@ files:
127
139
  - test/dummy/config/routes.rb
128
140
  - test/dummy/lib/assets/.gitkeep
129
141
  - test/dummy/log/.gitkeep
130
- - test/dummy/log/test.log
131
142
  - test/dummy/public/404.html
132
143
  - test/dummy/public/422.html
133
144
  - test/dummy/public/500.html
@@ -161,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
172
  version: '0'
162
173
  segments:
163
174
  - 0
164
- hash: 3033238033155345817
175
+ hash: -909150649677185423
165
176
  required_rubygems_version: !ruby/object:Gem::Requirement
166
177
  none: false
167
178
  requirements:
@@ -1,7 +0,0 @@
1
- class PdfGenerator < Rails::Generator::Base
2
- def manifest
3
- record do |m|
4
- m.file "configure_pdf.rb", "config/initializers/configure_pdf.rb"
5
- end
6
- end
7
- end
@@ -1,9 +0,0 @@
1
- if defined?(Rails) && Rails::VERSION::MAJOR > 2
2
- # Rails3 generator invoked with 'rails generate pdf'
3
- class PdfGenerator < Rails::Generators::Base
4
- source_root(File.expand_path(File.dirname(__FILE__) + "/../../generators/pdf/templates"))
5
- def copy_initializer
6
- copy_file 'configure_pdf.rb', 'config/initializers/configure_pdf.rb'
7
- end
8
- end
9
- end
@@ -1,274 +0,0 @@
1
-  (0.2ms) begin transaction
2
-  (0.1ms) rollback transaction
3
-  (0.2ms) begin transaction
4
-  (0.1ms) rollback transaction
5
-  (0.2ms) begin transaction
6
-  (0.1ms) rollback transaction
7
-  (0.2ms) begin transaction
8
-  (0.0ms) rollback transaction
9
-  (0.2ms) begin transaction
10
-  (0.0ms) rollback transaction
11
-  (0.0ms) begin transaction
12
-  (0.0ms) rollback transaction
13
-  (0.2ms) begin transaction
14
-  (0.2ms) rollback transaction
15
-  (0.1ms) begin transaction
16
-  (0.1ms) rollback transaction
17
-  (0.2ms) begin transaction
18
-  (0.1ms) rollback transaction
19
-  (0.0ms) begin transaction
20
-  (0.1ms) rollback transaction
21
-  (0.2ms) begin transaction
22
-  (0.0ms) rollback transaction
23
-  (0.2ms) begin transaction
24
-  (0.0ms) rollback transaction
25
-  (0.2ms) begin transaction
26
-  (0.1ms) rollback transaction
27
-  (0.0ms) begin transaction
28
-  (0.0ms) rollback transaction
29
-  (0.2ms) begin transaction
30
-  (0.0ms) rollback transaction
31
-  (0.0ms) begin transaction
32
-  (0.0ms) rollback transaction
33
-  (0.2ms) begin transaction
34
-  (0.0ms) rollback transaction
35
-  (0.0ms) begin transaction
36
-  (0.0ms) rollback transaction
37
-  (0.0ms) begin transaction
38
-  (0.0ms) rollback transaction
39
-  (0.2ms) begin transaction
40
-  (0.0ms) rollback transaction
41
-  (0.0ms) begin transaction
42
-  (0.0ms) rollback transaction
43
-  (0.0ms) begin transaction
44
-  (0.0ms) rollback transaction
45
-  (0.0ms) begin transaction
46
-  (0.0ms) rollback transaction
47
-  (0.2ms) begin transaction
48
-  (0.0ms) rollback transaction
49
-  (0.0ms) begin transaction
50
-  (0.0ms) rollback transaction
51
-  (0.0ms) begin transaction
52
-  (0.0ms) rollback transaction
53
-  (0.0ms) begin transaction
54
-  (0.0ms) rollback transaction
55
-  (0.2ms) begin transaction
56
-  (0.0ms) rollback transaction
57
-  (0.0ms) begin transaction
58
-  (0.0ms) rollback transaction
59
-  (0.0ms) begin transaction
60
-  (0.0ms) rollback transaction
61
-  (0.0ms) begin transaction
62
-  (0.0ms) rollback transaction
63
-  (0.2ms) begin transaction
64
-  (0.0ms) rollback transaction
65
-  (0.0ms) begin transaction
66
-  (0.0ms) rollback transaction
67
-  (0.0ms) begin transaction
68
-  (0.0ms) rollback transaction
69
-  (0.0ms) begin transaction
70
-  (0.1ms) rollback transaction
71
-  (0.2ms) begin transaction
72
-  (0.0ms) rollback transaction
73
-  (0.0ms) begin transaction
74
-  (0.0ms) rollback transaction
75
-  (0.0ms) begin transaction
76
-  (0.0ms) rollback transaction
77
-  (0.0ms) begin transaction
78
-  (0.0ms) rollback transaction
79
-  (0.2ms) begin transaction
80
-  (0.0ms) rollback transaction
81
-  (0.0ms) begin transaction
82
-  (0.0ms) rollback transaction
83
-  (0.0ms) begin transaction
84
-  (0.0ms) rollback transaction
85
-  (0.0ms) begin transaction
86
-  (0.0ms) rollback transaction
87
-  (0.2ms) begin transaction
88
-  (0.0ms) rollback transaction
89
-  (0.0ms) begin transaction
90
-  (0.0ms) rollback transaction
91
-  (0.0ms) begin transaction
92
-  (0.0ms) rollback transaction
93
-  (0.0ms) begin transaction
94
-  (0.1ms) rollback transaction
95
-  (0.2ms) begin transaction
96
-  (0.0ms) rollback transaction
97
-  (0.0ms) begin transaction
98
-  (0.0ms) rollback transaction
99
-  (0.0ms) begin transaction
100
-  (0.0ms) rollback transaction
101
-  (0.0ms) begin transaction
102
-  (0.0ms) rollback transaction
103
-  (0.2ms) begin transaction
104
-  (0.1ms) rollback transaction
105
-  (0.1ms) begin transaction
106
-  (0.0ms) rollback transaction
107
-  (0.0ms) begin transaction
108
-  (0.0ms) rollback transaction
109
-  (0.1ms) begin transaction
110
-  (0.1ms) rollback transaction
111
-  (0.2ms) begin transaction
112
-  (0.0ms) rollback transaction
113
-  (0.0ms) begin transaction
114
-  (0.0ms) rollback transaction
115
-  (0.0ms) begin transaction
116
-  (0.0ms) rollback transaction
117
-  (0.0ms) begin transaction
118
-  (0.0ms) rollback transaction
119
-  (0.2ms) begin transaction
120
-  (0.0ms) rollback transaction
121
-  (0.0ms) begin transaction
122
-  (0.0ms) rollback transaction
123
-  (0.0ms) begin transaction
124
-  (0.0ms) rollback transaction
125
-  (0.0ms) begin transaction
126
-  (0.0ms) rollback transaction
127
-  (0.2ms) begin transaction
128
-  (0.1ms) rollback transaction
129
-  (0.1ms) begin transaction
130
-  (0.1ms) rollback transaction
131
-  (0.0ms) begin transaction
132
-  (0.1ms) rollback transaction
133
-  (0.0ms) begin transaction
134
-  (0.0ms) rollback transaction
135
-  (0.0ms) begin transaction
136
-  (0.0ms) rollback transaction
137
-  (0.2ms) begin transaction
138
-  (0.0ms) rollback transaction
139
-  (0.0ms) begin transaction
140
-  (0.0ms) rollback transaction
141
-  (0.0ms) begin transaction
142
-  (0.0ms) rollback transaction
143
-  (0.0ms) begin transaction
144
-  (0.0ms) rollback transaction
145
-  (0.0ms) begin transaction
146
-  (0.0ms) rollback transaction
147
-  (0.2ms) begin transaction
148
-  (0.0ms) rollback transaction
149
-  (0.0ms) begin transaction
150
-  (0.0ms) rollback transaction
151
-  (0.0ms) begin transaction
152
-  (0.0ms) rollback transaction
153
-  (0.0ms) begin transaction
154
-  (0.0ms) rollback transaction
155
-  (0.0ms) begin transaction
156
-  (0.0ms) rollback transaction
157
-  (0.2ms) begin transaction
158
-  (0.0ms) rollback transaction
159
-  (0.0ms) begin transaction
160
-  (0.0ms) rollback transaction
161
-  (0.0ms) begin transaction
162
-  (0.0ms) rollback transaction
163
-  (0.0ms) begin transaction
164
-  (0.0ms) rollback transaction
165
-  (0.0ms) begin transaction
166
-  (0.0ms) rollback transaction
167
-  (0.0ms) begin transaction
168
-  (0.0ms) rollback transaction
169
-  (0.0ms) begin transaction
170
-  (0.0ms) rollback transaction
171
-  (0.2ms) begin transaction
172
-  (0.0ms) rollback transaction
173
-  (0.0ms) begin transaction
174
-  (0.0ms) rollback transaction
175
-  (0.0ms) begin transaction
176
-  (0.0ms) rollback transaction
177
-  (0.0ms) begin transaction
178
-  (0.0ms) rollback transaction
179
-  (0.0ms) begin transaction
180
-  (0.0ms) rollback transaction
181
-  (0.0ms) begin transaction
182
-  (0.0ms) rollback transaction
183
-  (0.0ms) begin transaction
184
-  (0.0ms) rollback transaction
185
-  (0.2ms) begin transaction
186
-  (0.0ms) rollback transaction
187
-  (0.0ms) begin transaction
188
-  (0.0ms) rollback transaction
189
-  (0.0ms) begin transaction
190
-  (0.0ms) rollback transaction
191
-  (0.0ms) begin transaction
192
-  (0.0ms) rollback transaction
193
-  (0.0ms) begin transaction
194
-  (0.0ms) rollback transaction
195
-  (0.0ms) begin transaction
196
-  (0.0ms) rollback transaction
197
-  (0.0ms) begin transaction
198
-  (0.0ms) rollback transaction
199
-  (0.0ms) begin transaction
200
-  (0.0ms) rollback transaction
201
-  (0.0ms) begin transaction
202
-  (0.0ms) rollback transaction
203
-  (0.0ms) begin transaction
204
-  (0.0ms) rollback transaction
205
-  (0.0ms) begin transaction
206
-  (0.0ms) rollback transaction
207
-  (0.2ms) begin transaction
208
-  (0.0ms) rollback transaction
209
-  (0.0ms) begin transaction
210
-  (0.0ms) rollback transaction
211
-  (0.0ms) begin transaction
212
-  (0.0ms) rollback transaction
213
-  (0.0ms) begin transaction
214
-  (0.0ms) rollback transaction
215
-  (0.0ms) begin transaction
216
-  (0.0ms) rollback transaction
217
-  (0.0ms) begin transaction
218
-  (0.0ms) rollback transaction
219
-  (0.0ms) begin transaction
220
-  (0.0ms) rollback transaction
221
-  (0.0ms) begin transaction
222
-  (0.0ms) rollback transaction
223
-  (0.0ms) begin transaction
224
-  (0.0ms) rollback transaction
225
-  (0.0ms) begin transaction
226
-  (0.0ms) rollback transaction
227
-  (0.0ms) begin transaction
228
-  (0.0ms) rollback transaction
229
-  (0.2ms) begin transaction
230
-  (0.0ms) rollback transaction
231
-  (0.0ms) begin transaction
232
-  (0.0ms) rollback transaction
233
-  (0.0ms) begin transaction
234
-  (0.0ms) rollback transaction
235
-  (0.0ms) begin transaction
236
-  (0.1ms) rollback transaction
237
-  (0.0ms) begin transaction
238
- Compiled wisepdf.js (0ms) (pid 6915)
239
-  (0.1ms) rollback transaction
240
-  (0.0ms) begin transaction
241
-  (0.1ms) rollback transaction
242
-  (0.0ms) begin transaction
243
- Compiled wisepdf.css (0ms) (pid 6915)
244
-  (0.1ms) rollback transaction
245
-  (0.1ms) begin transaction
246
-  (0.1ms) rollback transaction
247
-  (0.1ms) begin transaction
248
-  (0.1ms) rollback transaction
249
-  (0.0ms) begin transaction
250
-  (0.0ms) rollback transaction
251
-  (0.0ms) begin transaction
252
-  (0.0ms) rollback transaction
253
-  (0.2ms) begin transaction
254
-  (0.0ms) rollback transaction
255
-  (0.0ms) begin transaction
256
-  (0.0ms) rollback transaction
257
-  (0.0ms) begin transaction
258
-  (0.0ms) rollback transaction
259
-  (0.0ms) begin transaction
260
-  (0.1ms) rollback transaction
261
-  (0.0ms) begin transaction
262
-  (0.0ms) rollback transaction
263
-  (0.0ms) begin transaction
264
-  (0.0ms) rollback transaction
265
-  (0.0ms) begin transaction
266
-  (0.0ms) rollback transaction
267
-  (0.0ms) begin transaction
268
-  (0.0ms) rollback transaction
269
-  (0.0ms) begin transaction
270
-  (0.0ms) rollback transaction
271
-  (0.0ms) begin transaction
272
-  (0.0ms) rollback transaction
273
-  (0.0ms) begin transaction
274
-  (0.0ms) rollback transaction