wisepdf 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +10 -0
- data/Gemfile.lock +102 -0
- data/MIT-LICENSE +20 -0
- data/README.md +243 -0
- data/Rakefile +43 -0
- data/VERSION +1 -0
- data/generators/pdf/pdf_generator.rb +7 -0
- data/generators/pdf/templates/configure_pdf.rb +6 -0
- data/lib/generators/pdf_generator.rb +9 -0
- data/lib/wisepdf/configuration.rb +47 -0
- data/lib/wisepdf/errors.rb +13 -0
- data/lib/wisepdf/helper.rb +59 -0
- data/lib/wisepdf/rails/engine.rb +10 -0
- data/lib/wisepdf/rails/legacy.rb +5 -0
- data/lib/wisepdf/rails/railtie.rb +10 -0
- data/lib/wisepdf/rails.rb +17 -0
- data/lib/wisepdf/render.rb +92 -0
- data/lib/wisepdf/tempfile.rb +11 -0
- data/lib/wisepdf/writer.rb +177 -0
- data/lib/wisepdf.rb +10 -0
- data/pdf.gemspec +66 -0
- data/test/application_controller_test.rb +27 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/wisepdf.js +1 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/wisepdf.css +1 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +57 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +3 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/log/test.log +274 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/javascripts/wisepdf.js +1 -0
- data/test/dummy/public/stylesheets/wisepdf.css +1 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/CA9/590/sprockets%2F260d19b0714b39b217abfe83309458b7 +0 -0
- data/test/dummy/tmp/cache/assets/D13/4A0/sprockets%2Fc857f4fea90e731182fa7000ea6833e9 +0 -0
- data/test/dummy/tmp/cache/assets/D1C/0F0/sprockets%2F13dc05c787589dd73a669e0ad23d54e8 +0 -0
- data/test/dummy/tmp/cache/assets/D6E/B20/sprockets%2F2669d77f5dd55e82ba092accac21871a +0 -0
- data/test/dummy/tmp/cache/assets/D93/BA0/sprockets%2Fe162e2a148480db4edf41c7ca8a527cb +0 -0
- data/test/dummy/tmp/cache/assets/E1B/1A0/sprockets%2Fbdc3a3ccd7d2f02dddd41712ed4c8e31 +0 -0
- data/test/helper.rb +23 -0
- data/test/helper_assets_test.rb +25 -0
- data/test/helper_legacy_test.rb +25 -0
- data/test/writer_test.rb +204 -0
- data/wisepdf.gemspec +120 -0
- metadata +177 -0
data/wisepdf.gemspec
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "wisepdf"
|
8
|
+
s.version = "1.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Igor Alexandrov"]
|
12
|
+
s.date = "2012-03-18"
|
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
|
+
s.email = "igor.alexandrov@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.md"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"Gemfile",
|
20
|
+
"Gemfile.lock",
|
21
|
+
"MIT-LICENSE",
|
22
|
+
"README.md",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"generators/pdf/pdf_generator.rb",
|
26
|
+
"generators/pdf/templates/configure_pdf.rb",
|
27
|
+
"lib/generators/pdf_generator.rb",
|
28
|
+
"lib/wisepdf.rb",
|
29
|
+
"lib/wisepdf/configuration.rb",
|
30
|
+
"lib/wisepdf/errors.rb",
|
31
|
+
"lib/wisepdf/helper.rb",
|
32
|
+
"lib/wisepdf/rails.rb",
|
33
|
+
"lib/wisepdf/rails/engine.rb",
|
34
|
+
"lib/wisepdf/rails/legacy.rb",
|
35
|
+
"lib/wisepdf/rails/railtie.rb",
|
36
|
+
"lib/wisepdf/render.rb",
|
37
|
+
"lib/wisepdf/tempfile.rb",
|
38
|
+
"lib/wisepdf/writer.rb",
|
39
|
+
"pdf.gemspec",
|
40
|
+
"test/application_controller_test.rb",
|
41
|
+
"test/dummy/README.rdoc",
|
42
|
+
"test/dummy/Rakefile",
|
43
|
+
"test/dummy/app/assets/javascripts/application.js",
|
44
|
+
"test/dummy/app/assets/javascripts/wisepdf.js",
|
45
|
+
"test/dummy/app/assets/stylesheets/application.css",
|
46
|
+
"test/dummy/app/assets/stylesheets/wisepdf.css",
|
47
|
+
"test/dummy/app/controllers/application_controller.rb",
|
48
|
+
"test/dummy/app/helpers/application_helper.rb",
|
49
|
+
"test/dummy/app/mailers/.gitkeep",
|
50
|
+
"test/dummy/app/models/.gitkeep",
|
51
|
+
"test/dummy/app/views/layouts/application.html.erb",
|
52
|
+
"test/dummy/config.ru",
|
53
|
+
"test/dummy/config/application.rb",
|
54
|
+
"test/dummy/config/boot.rb",
|
55
|
+
"test/dummy/config/database.yml",
|
56
|
+
"test/dummy/config/environment.rb",
|
57
|
+
"test/dummy/config/environments/development.rb",
|
58
|
+
"test/dummy/config/environments/production.rb",
|
59
|
+
"test/dummy/config/environments/test.rb",
|
60
|
+
"test/dummy/config/initializers/backtrace_silencers.rb",
|
61
|
+
"test/dummy/config/initializers/inflections.rb",
|
62
|
+
"test/dummy/config/initializers/mime_types.rb",
|
63
|
+
"test/dummy/config/initializers/secret_token.rb",
|
64
|
+
"test/dummy/config/initializers/session_store.rb",
|
65
|
+
"test/dummy/config/initializers/wrap_parameters.rb",
|
66
|
+
"test/dummy/config/locales/en.yml",
|
67
|
+
"test/dummy/config/routes.rb",
|
68
|
+
"test/dummy/lib/assets/.gitkeep",
|
69
|
+
"test/dummy/log/.gitkeep",
|
70
|
+
"test/dummy/log/test.log",
|
71
|
+
"test/dummy/public/404.html",
|
72
|
+
"test/dummy/public/422.html",
|
73
|
+
"test/dummy/public/500.html",
|
74
|
+
"test/dummy/public/favicon.ico",
|
75
|
+
"test/dummy/public/javascripts/wisepdf.js",
|
76
|
+
"test/dummy/public/stylesheets/wisepdf.css",
|
77
|
+
"test/dummy/script/rails",
|
78
|
+
"test/dummy/tmp/cache/assets/CA9/590/sprockets%2F260d19b0714b39b217abfe83309458b7",
|
79
|
+
"test/dummy/tmp/cache/assets/D13/4A0/sprockets%2Fc857f4fea90e731182fa7000ea6833e9",
|
80
|
+
"test/dummy/tmp/cache/assets/D1C/0F0/sprockets%2F13dc05c787589dd73a669e0ad23d54e8",
|
81
|
+
"test/dummy/tmp/cache/assets/D6E/B20/sprockets%2F2669d77f5dd55e82ba092accac21871a",
|
82
|
+
"test/dummy/tmp/cache/assets/D93/BA0/sprockets%2Fe162e2a148480db4edf41c7ca8a527cb",
|
83
|
+
"test/dummy/tmp/cache/assets/E1B/1A0/sprockets%2Fbdc3a3ccd7d2f02dddd41712ed4c8e31",
|
84
|
+
"test/helper.rb",
|
85
|
+
"test/helper_assets_test.rb",
|
86
|
+
"test/helper_legacy_test.rb",
|
87
|
+
"test/writer_test.rb",
|
88
|
+
"wisepdf.gemspec"
|
89
|
+
]
|
90
|
+
s.homepage = "http://github.com/igor-alexandrov/wisepdf"
|
91
|
+
s.licenses = ["MIT"]
|
92
|
+
s.require_paths = ["lib"]
|
93
|
+
s.rubygems_version = "1.8.15"
|
94
|
+
s.summary = "wkhtmltopdf for Rails done right"
|
95
|
+
|
96
|
+
if s.respond_to? :specification_version then
|
97
|
+
s.specification_version = 3
|
98
|
+
|
99
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
100
|
+
s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
|
101
|
+
s.add_development_dependency(%q<sqlite3-ruby>, [">= 0"])
|
102
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
103
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
104
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
105
|
+
else
|
106
|
+
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
107
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
108
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
109
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
110
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
111
|
+
end
|
112
|
+
else
|
113
|
+
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
114
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
115
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
116
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
117
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
metadata
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wisepdf
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Igor Alexandrov
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-18 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: &70197852686900 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70197852686900
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: sqlite3-ruby
|
27
|
+
requirement: &70197852695240 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70197852695240
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: shoulda
|
38
|
+
requirement: &70197852716420 !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: *70197852716420
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: &70197852711660 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.0
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70197852711660
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: jeweler
|
60
|
+
requirement: &70197852708900 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.6.4
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70197852708900
|
69
|
+
description: wisepdf uses the shell utility wkhtmltopdf to serve a PDF file to a user
|
70
|
+
from HTML. In other words, rather than dealing with a PDF generation DSL of some
|
71
|
+
sort, you simply write an HTML view as you would normally, and let pdf take care
|
72
|
+
of the hard stuff.
|
73
|
+
email: igor.alexandrov@gmail.com
|
74
|
+
executables: []
|
75
|
+
extensions: []
|
76
|
+
extra_rdoc_files:
|
77
|
+
- README.md
|
78
|
+
files:
|
79
|
+
- Gemfile
|
80
|
+
- Gemfile.lock
|
81
|
+
- MIT-LICENSE
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- VERSION
|
85
|
+
- generators/pdf/pdf_generator.rb
|
86
|
+
- generators/pdf/templates/configure_pdf.rb
|
87
|
+
- lib/generators/pdf_generator.rb
|
88
|
+
- lib/wisepdf.rb
|
89
|
+
- lib/wisepdf/configuration.rb
|
90
|
+
- lib/wisepdf/errors.rb
|
91
|
+
- lib/wisepdf/helper.rb
|
92
|
+
- lib/wisepdf/rails.rb
|
93
|
+
- lib/wisepdf/rails/engine.rb
|
94
|
+
- lib/wisepdf/rails/legacy.rb
|
95
|
+
- lib/wisepdf/rails/railtie.rb
|
96
|
+
- lib/wisepdf/render.rb
|
97
|
+
- lib/wisepdf/tempfile.rb
|
98
|
+
- lib/wisepdf/writer.rb
|
99
|
+
- pdf.gemspec
|
100
|
+
- test/application_controller_test.rb
|
101
|
+
- test/dummy/README.rdoc
|
102
|
+
- test/dummy/Rakefile
|
103
|
+
- test/dummy/app/assets/javascripts/application.js
|
104
|
+
- test/dummy/app/assets/javascripts/wisepdf.js
|
105
|
+
- test/dummy/app/assets/stylesheets/application.css
|
106
|
+
- test/dummy/app/assets/stylesheets/wisepdf.css
|
107
|
+
- test/dummy/app/controllers/application_controller.rb
|
108
|
+
- test/dummy/app/helpers/application_helper.rb
|
109
|
+
- test/dummy/app/mailers/.gitkeep
|
110
|
+
- test/dummy/app/models/.gitkeep
|
111
|
+
- test/dummy/app/views/layouts/application.html.erb
|
112
|
+
- test/dummy/config.ru
|
113
|
+
- test/dummy/config/application.rb
|
114
|
+
- test/dummy/config/boot.rb
|
115
|
+
- test/dummy/config/database.yml
|
116
|
+
- test/dummy/config/environment.rb
|
117
|
+
- test/dummy/config/environments/development.rb
|
118
|
+
- test/dummy/config/environments/production.rb
|
119
|
+
- test/dummy/config/environments/test.rb
|
120
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
121
|
+
- test/dummy/config/initializers/inflections.rb
|
122
|
+
- test/dummy/config/initializers/mime_types.rb
|
123
|
+
- test/dummy/config/initializers/secret_token.rb
|
124
|
+
- test/dummy/config/initializers/session_store.rb
|
125
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
126
|
+
- test/dummy/config/locales/en.yml
|
127
|
+
- test/dummy/config/routes.rb
|
128
|
+
- test/dummy/lib/assets/.gitkeep
|
129
|
+
- test/dummy/log/.gitkeep
|
130
|
+
- test/dummy/log/test.log
|
131
|
+
- test/dummy/public/404.html
|
132
|
+
- test/dummy/public/422.html
|
133
|
+
- test/dummy/public/500.html
|
134
|
+
- test/dummy/public/favicon.ico
|
135
|
+
- test/dummy/public/javascripts/wisepdf.js
|
136
|
+
- test/dummy/public/stylesheets/wisepdf.css
|
137
|
+
- test/dummy/script/rails
|
138
|
+
- test/dummy/tmp/cache/assets/CA9/590/sprockets%2F260d19b0714b39b217abfe83309458b7
|
139
|
+
- test/dummy/tmp/cache/assets/D13/4A0/sprockets%2Fc857f4fea90e731182fa7000ea6833e9
|
140
|
+
- test/dummy/tmp/cache/assets/D1C/0F0/sprockets%2F13dc05c787589dd73a669e0ad23d54e8
|
141
|
+
- test/dummy/tmp/cache/assets/D6E/B20/sprockets%2F2669d77f5dd55e82ba092accac21871a
|
142
|
+
- test/dummy/tmp/cache/assets/D93/BA0/sprockets%2Fe162e2a148480db4edf41c7ca8a527cb
|
143
|
+
- test/dummy/tmp/cache/assets/E1B/1A0/sprockets%2Fbdc3a3ccd7d2f02dddd41712ed4c8e31
|
144
|
+
- test/helper.rb
|
145
|
+
- test/helper_assets_test.rb
|
146
|
+
- test/helper_legacy_test.rb
|
147
|
+
- test/writer_test.rb
|
148
|
+
- wisepdf.gemspec
|
149
|
+
homepage: http://github.com/igor-alexandrov/wisepdf
|
150
|
+
licenses:
|
151
|
+
- MIT
|
152
|
+
post_install_message:
|
153
|
+
rdoc_options: []
|
154
|
+
require_paths:
|
155
|
+
- lib
|
156
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
158
|
+
requirements:
|
159
|
+
- - ! '>='
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
segments:
|
163
|
+
- 0
|
164
|
+
hash: 3033238033155345817
|
165
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
|
+
none: false
|
167
|
+
requirements:
|
168
|
+
- - ! '>='
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '0'
|
171
|
+
requirements: []
|
172
|
+
rubyforge_project:
|
173
|
+
rubygems_version: 1.8.15
|
174
|
+
signing_key:
|
175
|
+
specification_version: 3
|
176
|
+
summary: wkhtmltopdf for Rails done right
|
177
|
+
test_files: []
|