wisepdf 1.2.10 → 1.3.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.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/.travis.yml +1 -1
- data/Gemfile +2 -11
- data/Gemfile.lock +111 -58
- data/README.md +11 -7
- data/Rakefile +2 -34
- data/lib/wisepdf/rails.rb +1 -1
- data/lib/wisepdf/rails/engine.rb +2 -2
- data/lib/wisepdf/rails/railtie.rb +1 -1
- data/lib/wisepdf/version.rb +12 -0
- data/test/helper_assets_test.rb +4 -4
- data/test/helper_legacy_test.rb +4 -4
- data/wisepdf.gemspec +32 -117
- metadata +176 -51
- data/VERSION +0 -1
- data/pdf.gemspec +0 -66
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 288c2370873b268fb5a55b27a4cdaff3473151a4
|
|
4
|
+
data.tar.gz: 31e755ac7b9360e6e408a4cb92b885e67cd5b895
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a5a90a7598fc418c3295c3ebb4083c1d6d7f4bd5f3ad7cee7d375741b9fc1e40e606f91c6b1e7e212f2617a429346b47cc72c17df01571d1f92c6ab41f160acb
|
|
7
|
+
data.tar.gz: 072eaf2a3d96a3fada410cf9aedf373ca4cfe847879e710e05b0931b5c7ad6db2388244582f54c6de8a6469cfec3f738a5cf7e01fd2416345a27028cef0f0170
|
data/.gitignore
ADDED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
source
|
|
1
|
+
source 'http://rubygems.org'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
gem 'sqlite3'
|
|
5
|
-
gem 'wkhtmltopdf-binary'
|
|
6
|
-
|
|
7
|
-
gem "shoulda", ">= 0"
|
|
8
|
-
gem "bundler", ">= 1.0.0"
|
|
9
|
-
gem "jeweler", "~> 1.6.4"
|
|
10
|
-
|
|
11
|
-
gem 'rails', '>=3.0.0'
|
|
12
|
-
end
|
|
3
|
+
gemspec
|
data/Gemfile.lock
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
wisepdf (1.3.0)
|
|
5
|
+
|
|
1
6
|
GEM
|
|
2
7
|
remote: http://rubygems.org/
|
|
3
8
|
specs:
|
|
4
|
-
actionmailer (3.2.
|
|
5
|
-
actionpack (= 3.2.
|
|
6
|
-
mail (~> 2.
|
|
7
|
-
actionpack (3.2.
|
|
8
|
-
activemodel (= 3.2.
|
|
9
|
-
activesupport (= 3.2.
|
|
9
|
+
actionmailer (3.2.14)
|
|
10
|
+
actionpack (= 3.2.14)
|
|
11
|
+
mail (~> 2.5.4)
|
|
12
|
+
actionpack (3.2.14)
|
|
13
|
+
activemodel (= 3.2.14)
|
|
14
|
+
activesupport (= 3.2.14)
|
|
10
15
|
builder (~> 3.0.0)
|
|
11
16
|
erubis (~> 2.7.0)
|
|
12
17
|
journey (~> 1.0.4)
|
|
@@ -14,43 +19,61 @@ GEM
|
|
|
14
19
|
rack-cache (~> 1.2)
|
|
15
20
|
rack-test (~> 0.6.1)
|
|
16
21
|
sprockets (~> 2.2.1)
|
|
17
|
-
activemodel (3.2.
|
|
18
|
-
activesupport (= 3.2.
|
|
22
|
+
activemodel (3.2.14)
|
|
23
|
+
activesupport (= 3.2.14)
|
|
19
24
|
builder (~> 3.0.0)
|
|
20
|
-
activerecord (3.2.
|
|
21
|
-
activemodel (= 3.2.
|
|
22
|
-
activesupport (= 3.2.
|
|
25
|
+
activerecord (3.2.14)
|
|
26
|
+
activemodel (= 3.2.14)
|
|
27
|
+
activesupport (= 3.2.14)
|
|
23
28
|
arel (~> 3.0.2)
|
|
24
29
|
tzinfo (~> 0.3.29)
|
|
25
|
-
activeresource (3.2.
|
|
26
|
-
activemodel (= 3.2.
|
|
27
|
-
activesupport (= 3.2.
|
|
28
|
-
activesupport (3.2.
|
|
29
|
-
i18n (~> 0.6)
|
|
30
|
+
activeresource (3.2.14)
|
|
31
|
+
activemodel (= 3.2.14)
|
|
32
|
+
activesupport (= 3.2.14)
|
|
33
|
+
activesupport (3.2.14)
|
|
34
|
+
i18n (~> 0.6, >= 0.6.4)
|
|
30
35
|
multi_json (~> 1.0)
|
|
36
|
+
addressable (2.3.5)
|
|
31
37
|
arel (3.0.2)
|
|
32
|
-
bourne (1.1.2)
|
|
33
|
-
mocha (= 0.10.5)
|
|
34
38
|
builder (3.0.4)
|
|
39
|
+
capybara (2.1.0)
|
|
40
|
+
mime-types (>= 1.16)
|
|
41
|
+
nokogiri (>= 1.3.3)
|
|
42
|
+
rack (>= 1.0.0)
|
|
43
|
+
rack-test (>= 0.5.4)
|
|
44
|
+
xpath (~> 2.0)
|
|
45
|
+
coffee-rails (3.2.2)
|
|
46
|
+
coffee-script (>= 2.2.0)
|
|
47
|
+
railties (~> 3.2.0)
|
|
48
|
+
coffee-script (2.2.0)
|
|
49
|
+
coffee-script-source
|
|
50
|
+
execjs
|
|
51
|
+
coffee-script-source (1.6.3)
|
|
52
|
+
coveralls (0.7.0)
|
|
53
|
+
multi_json (~> 1.3)
|
|
54
|
+
rest-client
|
|
55
|
+
simplecov (>= 0.7)
|
|
56
|
+
term-ansicolor
|
|
57
|
+
thor
|
|
58
|
+
crack (0.4.1)
|
|
59
|
+
safe_yaml (~> 0.9.0)
|
|
60
|
+
diff-lcs (1.2.4)
|
|
35
61
|
erubis (2.7.0)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
git (>= 1.2.5)
|
|
42
|
-
rake
|
|
62
|
+
execjs (2.0.2)
|
|
63
|
+
faker (1.2.0)
|
|
64
|
+
i18n (~> 0.5)
|
|
65
|
+
hike (1.2.3)
|
|
66
|
+
i18n (0.6.5)
|
|
43
67
|
journey (1.0.4)
|
|
44
|
-
json (1.
|
|
45
|
-
mail (2.
|
|
46
|
-
i18n (>= 0.4.0)
|
|
68
|
+
json (1.8.0)
|
|
69
|
+
mail (2.5.4)
|
|
47
70
|
mime-types (~> 1.16)
|
|
48
71
|
treetop (~> 1.4.8)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
72
|
+
mime-types (1.25)
|
|
73
|
+
mini_portile (0.5.1)
|
|
74
|
+
multi_json (1.8.2)
|
|
75
|
+
nokogiri (1.6.0)
|
|
76
|
+
mini_portile (~> 0.5.0)
|
|
54
77
|
polyglot (0.3.3)
|
|
55
78
|
rack (1.4.5)
|
|
56
79
|
rack-cache (1.2)
|
|
@@ -59,52 +82,82 @@ GEM
|
|
|
59
82
|
rack
|
|
60
83
|
rack-test (0.6.2)
|
|
61
84
|
rack (>= 1.0)
|
|
62
|
-
rails (3.2.
|
|
63
|
-
actionmailer (= 3.2.
|
|
64
|
-
actionpack (= 3.2.
|
|
65
|
-
activerecord (= 3.2.
|
|
66
|
-
activeresource (= 3.2.
|
|
67
|
-
activesupport (= 3.2.
|
|
85
|
+
rails (3.2.14)
|
|
86
|
+
actionmailer (= 3.2.14)
|
|
87
|
+
actionpack (= 3.2.14)
|
|
88
|
+
activerecord (= 3.2.14)
|
|
89
|
+
activeresource (= 3.2.14)
|
|
90
|
+
activesupport (= 3.2.14)
|
|
68
91
|
bundler (~> 1.0)
|
|
69
|
-
railties (= 3.2.
|
|
70
|
-
railties (3.2.
|
|
71
|
-
actionpack (= 3.2.
|
|
72
|
-
activesupport (= 3.2.
|
|
92
|
+
railties (= 3.2.14)
|
|
93
|
+
railties (3.2.14)
|
|
94
|
+
actionpack (= 3.2.14)
|
|
95
|
+
activesupport (= 3.2.14)
|
|
73
96
|
rack-ssl (~> 1.3.2)
|
|
74
97
|
rake (>= 0.8.7)
|
|
75
98
|
rdoc (~> 3.4)
|
|
76
99
|
thor (>= 0.14.6, < 2.0)
|
|
77
|
-
rake (10.0
|
|
100
|
+
rake (10.1.0)
|
|
78
101
|
rdoc (3.12.2)
|
|
79
102
|
json (~> 1.4)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
103
|
+
rest-client (1.6.7)
|
|
104
|
+
mime-types (>= 1.16)
|
|
105
|
+
rspec (2.14.1)
|
|
106
|
+
rspec-core (~> 2.14.0)
|
|
107
|
+
rspec-expectations (~> 2.14.0)
|
|
108
|
+
rspec-mocks (~> 2.14.0)
|
|
109
|
+
rspec-core (2.14.5)
|
|
110
|
+
rspec-expectations (2.14.3)
|
|
111
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
|
112
|
+
rspec-mocks (2.14.3)
|
|
113
|
+
safe_yaml (0.9.7)
|
|
114
|
+
shoulda (3.5.0)
|
|
115
|
+
shoulda-context (~> 1.0, >= 1.0.1)
|
|
116
|
+
shoulda-matchers (>= 1.4.1, < 3.0)
|
|
117
|
+
shoulda-context (1.1.5)
|
|
118
|
+
shoulda-matchers (2.4.0)
|
|
85
119
|
activesupport (>= 3.0.0)
|
|
86
|
-
|
|
120
|
+
simplecov (0.7.1)
|
|
121
|
+
multi_json (~> 1.0)
|
|
122
|
+
simplecov-html (~> 0.7.1)
|
|
123
|
+
simplecov-html (0.7.1)
|
|
87
124
|
sprockets (2.2.2)
|
|
88
125
|
hike (~> 1.2)
|
|
89
126
|
multi_json (~> 1.0)
|
|
90
127
|
rack (~> 1.0)
|
|
91
128
|
tilt (~> 1.1, != 1.3.0)
|
|
92
|
-
sqlite3 (1.3.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
129
|
+
sqlite3 (1.3.8)
|
|
130
|
+
term-ansicolor (1.2.2)
|
|
131
|
+
tins (~> 0.8)
|
|
132
|
+
thor (0.18.1)
|
|
133
|
+
tilt (1.4.1)
|
|
134
|
+
tins (0.12.0)
|
|
135
|
+
treetop (1.4.15)
|
|
96
136
|
polyglot
|
|
97
137
|
polyglot (>= 0.3.1)
|
|
98
|
-
tzinfo (0.3.
|
|
138
|
+
tzinfo (0.3.38)
|
|
139
|
+
webmock (1.9.3)
|
|
140
|
+
addressable (>= 2.2.7)
|
|
141
|
+
crack (>= 0.3.2)
|
|
99
142
|
wkhtmltopdf-binary (0.9.9.1)
|
|
143
|
+
xpath (2.0.0)
|
|
144
|
+
nokogiri (~> 1.3)
|
|
100
145
|
|
|
101
146
|
PLATFORMS
|
|
102
147
|
ruby
|
|
103
148
|
|
|
104
149
|
DEPENDENCIES
|
|
105
|
-
bundler
|
|
106
|
-
|
|
107
|
-
rails
|
|
150
|
+
bundler
|
|
151
|
+
capybara
|
|
152
|
+
coffee-rails
|
|
153
|
+
coveralls
|
|
154
|
+
faker
|
|
155
|
+
rails (~> 3.2.13)
|
|
156
|
+
rake
|
|
157
|
+
rspec
|
|
108
158
|
shoulda
|
|
159
|
+
simplecov
|
|
109
160
|
sqlite3
|
|
161
|
+
webmock (~> 1.9.0)
|
|
162
|
+
wisepdf!
|
|
110
163
|
wkhtmltopdf-binary
|
data/README.md
CHANGED
|
@@ -25,8 +25,12 @@ Add this to your Gemfile:
|
|
|
25
25
|
|
|
26
26
|
gem 'wisepdf'
|
|
27
27
|
|
|
28
|
+
if you don't already have wkhtmltopdf installed on your machine you can get up and running quickly by adding this to your Gemfile:
|
|
29
|
+
|
|
30
|
+
gem 'wkhtmltopdf-binary'
|
|
31
|
+
|
|
28
32
|
then do:
|
|
29
|
-
|
|
33
|
+
|
|
30
34
|
bundle install
|
|
31
35
|
|
|
32
36
|
## How does it work?
|
|
@@ -125,10 +129,10 @@ If you need to just create a pdf and not display it:
|
|
|
125
129
|
|
|
126
130
|
# create a pdf from a string
|
|
127
131
|
pdf = Wisepdf::Writer.new.to_pdf('<h1>Hello There!</h1>')
|
|
128
|
-
|
|
132
|
+
|
|
129
133
|
# or from your controller, using views & templates and all other options as normal
|
|
130
134
|
pdf = render_to_string :pdf => "some_file_name"
|
|
131
|
-
|
|
135
|
+
|
|
132
136
|
# then save to a file
|
|
133
137
|
save_path = Rails.root.join('pdfs','filename.pdf')
|
|
134
138
|
File.open(save_path, 'wb') do |file|
|
|
@@ -200,7 +204,7 @@ You can put your default configuration, applied to all pdf's at "configure_wisep
|
|
|
200
204
|
c.options = {
|
|
201
205
|
:layout => "layout.html",
|
|
202
206
|
:use_xserver => true,
|
|
203
|
-
:footer => {
|
|
207
|
+
:footer => {
|
|
204
208
|
:right => "#{Date.today.year}",
|
|
205
209
|
:font_size => 8,
|
|
206
210
|
:spacing => 8
|
|
@@ -209,9 +213,9 @@ You can put your default configuration, applied to all pdf's at "configure_wisep
|
|
|
209
213
|
:bottom => 15
|
|
210
214
|
}
|
|
211
215
|
}
|
|
212
|
-
|
|
216
|
+
|
|
213
217
|
end
|
|
214
|
-
|
|
218
|
+
|
|
215
219
|
### Problems with with wkhtmltopdf-0.10 and above?
|
|
216
220
|
|
|
217
221
|
If you experience problems with wkhtmltopdf-0.10 and above like getting `Broken Pipe` error or something similar, then you probably should compile wkhtmltopdf from source.
|
|
@@ -238,7 +242,7 @@ However, the wisepdf_* helpers will use file:// paths for assets when using :sho
|
|
|
238
242
|
|
|
239
243
|
<%= params[:debug].present? ? image_tag('foo') : wisepdf_image_tag('foo') %>
|
|
240
244
|
|
|
241
|
-
## Production?
|
|
245
|
+
## Production?
|
|
242
246
|
|
|
243
247
|
**wisepdf** is used at:
|
|
244
248
|
|
data/Rakefile
CHANGED
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
require '
|
|
4
|
-
require 'bundler'
|
|
5
|
-
begin
|
|
6
|
-
Bundler.setup(:default, :development)
|
|
7
|
-
rescue Bundler::BundlerError => e
|
|
8
|
-
$stderr.puts e.message
|
|
9
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
|
10
|
-
exit e.status_code
|
|
11
|
-
end
|
|
12
|
-
require 'rake'
|
|
13
|
-
|
|
14
|
-
require 'jeweler'
|
|
15
|
-
Jeweler::Tasks.new do |gem|
|
|
16
|
-
gem.name = "wisepdf"
|
|
17
|
-
gem.homepage = "http://github.com/igor-alexandrov/wisepdf"
|
|
18
|
-
gem.license = "MIT"
|
|
19
|
-
gem.summary = "wkhtmltopdf for Rails done right"
|
|
20
|
-
gem.description = %Q{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.}
|
|
21
|
-
gem.email = "igor.alexandrov@gmail.com"
|
|
22
|
-
gem.authors = [ "Igor Alexandrov" ]
|
|
23
|
-
end
|
|
24
|
-
Jeweler::RubygemsDotOrgTasks.new
|
|
25
|
-
|
|
3
|
+
require 'bundler/gem_tasks'
|
|
26
4
|
require 'rake/testtask'
|
|
27
5
|
Rake::TestTask.new(:test) do |test|
|
|
28
6
|
test.libs << 'lib' << 'test'
|
|
@@ -30,14 +8,4 @@ Rake::TestTask.new(:test) do |test|
|
|
|
30
8
|
test.verbose = true
|
|
31
9
|
end
|
|
32
10
|
|
|
33
|
-
task :default => :test
|
|
34
|
-
|
|
35
|
-
require 'rdoc/task'
|
|
36
|
-
Rake::RDocTask.new do |rdoc|
|
|
37
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
|
38
|
-
|
|
39
|
-
rdoc.rdoc_dir = 'rdoc'
|
|
40
|
-
rdoc.title = "wisepdf #{version}"
|
|
41
|
-
rdoc.rdoc_files.include('README*')
|
|
42
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
43
|
-
end
|
|
11
|
+
task :default => :test
|
data/lib/wisepdf/rails.rb
CHANGED
|
@@ -3,7 +3,7 @@ module Wisepdf
|
|
|
3
3
|
if ::Rails::VERSION::MAJOR == 2
|
|
4
4
|
require 'wisepdf/rails/legacy'
|
|
5
5
|
elsif ::Rails::VERSION::MAJOR > 2
|
|
6
|
-
if ::Rails::VERSION::MINOR < 1
|
|
6
|
+
if ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR < 1
|
|
7
7
|
require 'wisepdf/rails/railtie'
|
|
8
8
|
else
|
|
9
9
|
require 'wisepdf/rails/engine'
|
data/lib/wisepdf/rails/engine.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module Wisepdf
|
|
2
2
|
module Rails
|
|
3
3
|
class Engine < ::Rails::Engine
|
|
4
|
-
initializer "
|
|
4
|
+
initializer "wise_pdf.register" do
|
|
5
5
|
ActionController::Base.send :include, Render
|
|
6
|
-
if ::Rails.configuration.assets.enabled
|
|
6
|
+
if !!(::Rails.configuration.assets.enabled)
|
|
7
7
|
ActionView::Base.send :include, Helper::Assets
|
|
8
8
|
else
|
|
9
9
|
ActionView::Base.send :include, Helper::Legacy
|
data/test/helper_assets_test.rb
CHANGED
|
@@ -5,21 +5,21 @@ class AssetsHelperTest < ActionView::TestCase
|
|
|
5
5
|
|
|
6
6
|
context "wisepdf_stylesheet_tag" do
|
|
7
7
|
should 'include stylesheet if no extension is given' do
|
|
8
|
-
assert_match wisepdf_stylesheet_tag('wisepdf').strip
|
|
8
|
+
assert_match /Wisepdf styles/, wisepdf_stylesheet_tag('wisepdf').strip
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
should 'include stylesheet if .css extension is given' do
|
|
12
|
-
assert_match wisepdf_stylesheet_tag('wisepdf.css').strip
|
|
12
|
+
assert_match /Wisepdf styles/, wisepdf_stylesheet_tag('wisepdf.css').strip
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
context "wisepdf_javascript_tag" do
|
|
17
17
|
should 'include javascript if no extension is given' do
|
|
18
|
-
assert_match wisepdf_javascript_tag('wisepdf').strip
|
|
18
|
+
assert_match /Wisepdf javascript/, wisepdf_javascript_tag('wisepdf').strip
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
should 'include javascript if .js extension is given' do
|
|
22
|
-
assert_match wisepdf_javascript_tag('wisepdf.js').strip
|
|
22
|
+
assert_match /Wisepdf javascript/, wisepdf_javascript_tag('wisepdf.js').strip
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
end
|
data/test/helper_legacy_test.rb
CHANGED
|
@@ -5,21 +5,21 @@ class LegacyHelperTest < ActionView::TestCase
|
|
|
5
5
|
|
|
6
6
|
context "wisepdf_stylesheet_tag" do
|
|
7
7
|
should 'include stylesheet if no extension is given' do
|
|
8
|
-
assert_match wisepdf_stylesheet_tag('wisepdf').strip
|
|
8
|
+
assert_match /Wisepdf styles/, wisepdf_stylesheet_tag('wisepdf').strip
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
should 'include stylesheet if .css extension is given' do
|
|
12
|
-
assert_match wisepdf_stylesheet_tag('wisepdf.css').strip
|
|
12
|
+
assert_match /Wisepdf styles/, wisepdf_stylesheet_tag('wisepdf.css').strip
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
context "wisepdf_javascript_tag" do
|
|
17
17
|
should 'include javascript if no extension is given' do
|
|
18
|
-
assert_match wisepdf_javascript_tag('wisepdf').strip
|
|
18
|
+
assert_match /Wisepdf javascript/, wisepdf_javascript_tag('wisepdf').strip
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
should 'include javascript if .js extension is given' do
|
|
22
|
-
assert_match wisepdf_javascript_tag('wisepdf.js').strip
|
|
22
|
+
assert_match /Wisepdf javascript/, wisepdf_javascript_tag('wisepdf.js').strip
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
end
|
data/wisepdf.gemspec
CHANGED
|
@@ -1,122 +1,37 @@
|
|
|
1
|
-
#
|
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
|
-
# -*- encoding: utf-8 -*-
|
|
1
|
+
# encoding: utf-8
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
|
+
require 'wisepdf/version'
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
".travis.yml",
|
|
20
|
-
"Gemfile",
|
|
21
|
-
"Gemfile.lock",
|
|
22
|
-
"MIT-LICENSE",
|
|
23
|
-
"README.md",
|
|
24
|
-
"Rakefile",
|
|
25
|
-
"VERSION",
|
|
26
|
-
"generators/wisepdf/templates/configure_wisepdf.rb",
|
|
27
|
-
"generators/wisepdf/wisepdf_generator.rb",
|
|
28
|
-
"lib/generators/wisepdf_generator.rb",
|
|
29
|
-
"lib/wisepdf.rb",
|
|
30
|
-
"lib/wisepdf/configuration.rb",
|
|
31
|
-
"lib/wisepdf/errors.rb",
|
|
32
|
-
"lib/wisepdf/ext.rb",
|
|
33
|
-
"lib/wisepdf/helper.rb",
|
|
34
|
-
"lib/wisepdf/parser.rb",
|
|
35
|
-
"lib/wisepdf/rails.rb",
|
|
36
|
-
"lib/wisepdf/rails/engine.rb",
|
|
37
|
-
"lib/wisepdf/rails/legacy.rb",
|
|
38
|
-
"lib/wisepdf/rails/railtie.rb",
|
|
39
|
-
"lib/wisepdf/render.rb",
|
|
40
|
-
"lib/wisepdf/writer.rb",
|
|
41
|
-
"pdf.gemspec",
|
|
42
|
-
"test/application_controller_test.rb",
|
|
43
|
-
"test/configuration_test.rb",
|
|
44
|
-
"test/dummy/README.rdoc",
|
|
45
|
-
"test/dummy/Rakefile",
|
|
46
|
-
"test/dummy/app/assets/javascripts/application.js",
|
|
47
|
-
"test/dummy/app/assets/javascripts/wisepdf.js",
|
|
48
|
-
"test/dummy/app/assets/stylesheets/application.css",
|
|
49
|
-
"test/dummy/app/assets/stylesheets/wisepdf.css",
|
|
50
|
-
"test/dummy/app/controllers/application_controller.rb",
|
|
51
|
-
"test/dummy/app/helpers/application_helper.rb",
|
|
52
|
-
"test/dummy/app/mailers/.gitkeep",
|
|
53
|
-
"test/dummy/app/models/.gitkeep",
|
|
54
|
-
"test/dummy/app/views/application/index.pdf.erb",
|
|
55
|
-
"test/dummy/app/views/layouts/application.html.erb",
|
|
56
|
-
"test/dummy/app/views/layouts/pdf.html.erb",
|
|
57
|
-
"test/dummy/config.ru",
|
|
58
|
-
"test/dummy/config/application.rb",
|
|
59
|
-
"test/dummy/config/boot.rb",
|
|
60
|
-
"test/dummy/config/database.yml",
|
|
61
|
-
"test/dummy/config/environment.rb",
|
|
62
|
-
"test/dummy/config/environments/development.rb",
|
|
63
|
-
"test/dummy/config/environments/production.rb",
|
|
64
|
-
"test/dummy/config/environments/test.rb",
|
|
65
|
-
"test/dummy/config/initializers/backtrace_silencers.rb",
|
|
66
|
-
"test/dummy/config/initializers/inflections.rb",
|
|
67
|
-
"test/dummy/config/initializers/mime_types.rb",
|
|
68
|
-
"test/dummy/config/initializers/secret_token.rb",
|
|
69
|
-
"test/dummy/config/initializers/session_store.rb",
|
|
70
|
-
"test/dummy/config/initializers/wrap_parameters.rb",
|
|
71
|
-
"test/dummy/config/locales/en.yml",
|
|
72
|
-
"test/dummy/config/routes.rb",
|
|
73
|
-
"test/dummy/lib/assets/.gitkeep",
|
|
74
|
-
"test/dummy/log/.gitkeep",
|
|
75
|
-
"test/dummy/public/404.html",
|
|
76
|
-
"test/dummy/public/422.html",
|
|
77
|
-
"test/dummy/public/500.html",
|
|
78
|
-
"test/dummy/public/favicon.ico",
|
|
79
|
-
"test/dummy/public/javascripts/wisepdf.js",
|
|
80
|
-
"test/dummy/public/stylesheets/wisepdf.css",
|
|
81
|
-
"test/dummy/script/rails",
|
|
82
|
-
"test/helper.rb",
|
|
83
|
-
"test/helper_assets_test.rb",
|
|
84
|
-
"test/helper_legacy_test.rb",
|
|
85
|
-
"test/parser_test.rb",
|
|
86
|
-
"test/writer_test.rb",
|
|
87
|
-
"wisepdf.gemspec"
|
|
88
|
-
]
|
|
89
|
-
s.homepage = "http://github.com/igor-alexandrov/wisepdf"
|
|
90
|
-
s.licenses = ["MIT"]
|
|
91
|
-
s.require_paths = ["lib"]
|
|
92
|
-
s.rubygems_version = "1.8.24"
|
|
93
|
-
s.summary = "wkhtmltopdf for Rails done right"
|
|
7
|
+
Gem::Specification.new do |gem|
|
|
8
|
+
gem.name = 'wisepdf'
|
|
9
|
+
gem.version = Wisepdf::Version::STRING
|
|
10
|
+
gem.authors = ['Igor Alexandrov']
|
|
11
|
+
gem.email = 'igor.alexandrov@gmail.com'
|
|
12
|
+
gem.summary = "wkhtmltopdf for Rails done right"
|
|
13
|
+
gem.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
|
+
gem.homepage = 'http://github.com/igor-alexandrov/wisepdf'
|
|
15
|
+
gem.licenses = ['MIT']
|
|
94
16
|
|
|
95
|
-
|
|
96
|
-
|
|
17
|
+
gem.files = `git ls-files | grep -v 'build/*'`.split($/)
|
|
18
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
19
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
20
|
+
gem.require_paths = ["lib"]
|
|
97
21
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
|
112
|
-
end
|
|
113
|
-
else
|
|
114
|
-
s.add_dependency(%q<sqlite3>, [">= 0"])
|
|
115
|
-
s.add_dependency(%q<wkhtmltopdf-binary>, [">= 0"])
|
|
116
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
|
117
|
-
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
|
118
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
|
119
|
-
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
|
120
|
-
end
|
|
121
|
-
end
|
|
22
|
+
gem.add_development_dependency 'rspec'
|
|
23
|
+
gem.add_development_dependency 'webmock', '~> 1.9.0'
|
|
24
|
+
gem.add_development_dependency 'shoulda'
|
|
25
|
+
gem.add_development_dependency 'simplecov'
|
|
26
|
+
gem.add_development_dependency 'coveralls'
|
|
27
|
+
gem.add_development_dependency 'rake'
|
|
28
|
+
gem.add_development_dependency 'bundler'
|
|
29
|
+
gem.add_development_dependency 'sqlite3'
|
|
30
|
+
gem.add_development_dependency 'faker'
|
|
31
|
+
gem.add_development_dependency 'capybara'
|
|
122
32
|
|
|
33
|
+
gem.add_development_dependency 'rails', '~> 3.2.13'
|
|
34
|
+
gem.add_development_dependency 'coffee-rails'
|
|
35
|
+
|
|
36
|
+
gem.add_development_dependency 'wkhtmltopdf-binary'
|
|
37
|
+
end
|
metadata
CHANGED
|
@@ -1,129 +1,213 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wisepdf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 1.3.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Igor Alexandrov
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
11
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
name:
|
|
14
|
+
name: rspec
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - '>='
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
19
|
version: '0'
|
|
22
20
|
type: :development
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- -
|
|
24
|
+
- - '>='
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
26
|
version: '0'
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
|
-
name:
|
|
28
|
+
name: webmock
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
|
-
- -
|
|
31
|
+
- - ~>
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 1.9.0
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ~>
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 1.9.0
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: shoulda
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - '>='
|
|
36
46
|
- !ruby/object:Gem::Version
|
|
37
47
|
version: '0'
|
|
38
48
|
type: :development
|
|
39
49
|
prerelease: false
|
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
51
|
requirements:
|
|
43
|
-
- -
|
|
52
|
+
- - '>='
|
|
44
53
|
- !ruby/object:Gem::Version
|
|
45
54
|
version: '0'
|
|
46
55
|
- !ruby/object:Gem::Dependency
|
|
47
|
-
name:
|
|
56
|
+
name: simplecov
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - '>='
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: coveralls
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - '>='
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - '>='
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: rake
|
|
48
85
|
requirement: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
86
|
requirements:
|
|
51
|
-
- -
|
|
87
|
+
- - '>='
|
|
52
88
|
- !ruby/object:Gem::Version
|
|
53
89
|
version: '0'
|
|
54
90
|
type: :development
|
|
55
91
|
prerelease: false
|
|
56
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
93
|
requirements:
|
|
59
|
-
- -
|
|
94
|
+
- - '>='
|
|
60
95
|
- !ruby/object:Gem::Version
|
|
61
96
|
version: '0'
|
|
62
97
|
- !ruby/object:Gem::Dependency
|
|
63
98
|
name: bundler
|
|
64
99
|
requirement: !ruby/object:Gem::Requirement
|
|
65
|
-
none: false
|
|
66
100
|
requirements:
|
|
67
|
-
- -
|
|
101
|
+
- - '>='
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - '>='
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: sqlite3
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - '>='
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - '>='
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: faker
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - '>='
|
|
68
130
|
- !ruby/object:Gem::Version
|
|
69
|
-
version:
|
|
131
|
+
version: '0'
|
|
70
132
|
type: :development
|
|
71
133
|
prerelease: false
|
|
72
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
-
none: false
|
|
74
135
|
requirements:
|
|
75
|
-
- -
|
|
136
|
+
- - '>='
|
|
76
137
|
- !ruby/object:Gem::Version
|
|
77
|
-
version:
|
|
138
|
+
version: '0'
|
|
78
139
|
- !ruby/object:Gem::Dependency
|
|
79
|
-
name:
|
|
140
|
+
name: capybara
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - '>='
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '0'
|
|
146
|
+
type: :development
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - '>='
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '0'
|
|
153
|
+
- !ruby/object:Gem::Dependency
|
|
154
|
+
name: rails
|
|
80
155
|
requirement: !ruby/object:Gem::Requirement
|
|
81
|
-
none: false
|
|
82
156
|
requirements:
|
|
83
157
|
- - ~>
|
|
84
158
|
- !ruby/object:Gem::Version
|
|
85
|
-
version:
|
|
159
|
+
version: 3.2.13
|
|
86
160
|
type: :development
|
|
87
161
|
prerelease: false
|
|
88
162
|
version_requirements: !ruby/object:Gem::Requirement
|
|
89
|
-
none: false
|
|
90
163
|
requirements:
|
|
91
164
|
- - ~>
|
|
92
165
|
- !ruby/object:Gem::Version
|
|
93
|
-
version:
|
|
166
|
+
version: 3.2.13
|
|
94
167
|
- !ruby/object:Gem::Dependency
|
|
95
|
-
name: rails
|
|
168
|
+
name: coffee-rails
|
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
|
170
|
+
requirements:
|
|
171
|
+
- - '>='
|
|
172
|
+
- !ruby/object:Gem::Version
|
|
173
|
+
version: '0'
|
|
174
|
+
type: :development
|
|
175
|
+
prerelease: false
|
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
177
|
+
requirements:
|
|
178
|
+
- - '>='
|
|
179
|
+
- !ruby/object:Gem::Version
|
|
180
|
+
version: '0'
|
|
181
|
+
- !ruby/object:Gem::Dependency
|
|
182
|
+
name: wkhtmltopdf-binary
|
|
96
183
|
requirement: !ruby/object:Gem::Requirement
|
|
97
|
-
none: false
|
|
98
184
|
requirements:
|
|
99
|
-
- -
|
|
185
|
+
- - '>='
|
|
100
186
|
- !ruby/object:Gem::Version
|
|
101
|
-
version:
|
|
187
|
+
version: '0'
|
|
102
188
|
type: :development
|
|
103
189
|
prerelease: false
|
|
104
190
|
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
-
none: false
|
|
106
191
|
requirements:
|
|
107
|
-
- -
|
|
192
|
+
- - '>='
|
|
108
193
|
- !ruby/object:Gem::Version
|
|
109
|
-
version:
|
|
110
|
-
description:
|
|
194
|
+
version: '0'
|
|
195
|
+
description: Wisepdf uses the shell utility wkhtmltopdf to serve a PDF file to a user
|
|
111
196
|
from HTML. In other words, rather than dealing with a PDF generation DSL of some
|
|
112
197
|
sort, you simply write an HTML view as you would normally, and let pdf take care
|
|
113
198
|
of the hard stuff.
|
|
114
199
|
email: igor.alexandrov@gmail.com
|
|
115
200
|
executables: []
|
|
116
201
|
extensions: []
|
|
117
|
-
extra_rdoc_files:
|
|
118
|
-
- README.md
|
|
202
|
+
extra_rdoc_files: []
|
|
119
203
|
files:
|
|
204
|
+
- .gitignore
|
|
120
205
|
- .travis.yml
|
|
121
206
|
- Gemfile
|
|
122
207
|
- Gemfile.lock
|
|
123
208
|
- MIT-LICENSE
|
|
124
209
|
- README.md
|
|
125
210
|
- Rakefile
|
|
126
|
-
- VERSION
|
|
127
211
|
- generators/wisepdf/templates/configure_wisepdf.rb
|
|
128
212
|
- generators/wisepdf/wisepdf_generator.rb
|
|
129
213
|
- lib/generators/wisepdf_generator.rb
|
|
@@ -138,8 +222,8 @@ files:
|
|
|
138
222
|
- lib/wisepdf/rails/legacy.rb
|
|
139
223
|
- lib/wisepdf/rails/railtie.rb
|
|
140
224
|
- lib/wisepdf/render.rb
|
|
225
|
+
- lib/wisepdf/version.rb
|
|
141
226
|
- lib/wisepdf/writer.rb
|
|
142
|
-
- pdf.gemspec
|
|
143
227
|
- test/application_controller_test.rb
|
|
144
228
|
- test/configuration_test.rb
|
|
145
229
|
- test/dummy/README.rdoc
|
|
@@ -189,29 +273,70 @@ files:
|
|
|
189
273
|
homepage: http://github.com/igor-alexandrov/wisepdf
|
|
190
274
|
licenses:
|
|
191
275
|
- MIT
|
|
276
|
+
metadata: {}
|
|
192
277
|
post_install_message:
|
|
193
278
|
rdoc_options: []
|
|
194
279
|
require_paths:
|
|
195
280
|
- lib
|
|
196
281
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
197
|
-
none: false
|
|
198
282
|
requirements:
|
|
199
|
-
- -
|
|
283
|
+
- - '>='
|
|
200
284
|
- !ruby/object:Gem::Version
|
|
201
285
|
version: '0'
|
|
202
|
-
segments:
|
|
203
|
-
- 0
|
|
204
|
-
hash: -868628363535648497
|
|
205
286
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
|
-
none: false
|
|
207
287
|
requirements:
|
|
208
|
-
- -
|
|
288
|
+
- - '>='
|
|
209
289
|
- !ruby/object:Gem::Version
|
|
210
290
|
version: '0'
|
|
211
291
|
requirements: []
|
|
212
292
|
rubyforge_project:
|
|
213
|
-
rubygems_version:
|
|
293
|
+
rubygems_version: 2.0.6
|
|
214
294
|
signing_key:
|
|
215
|
-
specification_version:
|
|
295
|
+
specification_version: 4
|
|
216
296
|
summary: wkhtmltopdf for Rails done right
|
|
217
|
-
test_files:
|
|
297
|
+
test_files:
|
|
298
|
+
- test/application_controller_test.rb
|
|
299
|
+
- test/configuration_test.rb
|
|
300
|
+
- test/dummy/README.rdoc
|
|
301
|
+
- test/dummy/Rakefile
|
|
302
|
+
- test/dummy/app/assets/javascripts/application.js
|
|
303
|
+
- test/dummy/app/assets/javascripts/wisepdf.js
|
|
304
|
+
- test/dummy/app/assets/stylesheets/application.css
|
|
305
|
+
- test/dummy/app/assets/stylesheets/wisepdf.css
|
|
306
|
+
- test/dummy/app/controllers/application_controller.rb
|
|
307
|
+
- test/dummy/app/helpers/application_helper.rb
|
|
308
|
+
- test/dummy/app/mailers/.gitkeep
|
|
309
|
+
- test/dummy/app/models/.gitkeep
|
|
310
|
+
- test/dummy/app/views/application/index.pdf.erb
|
|
311
|
+
- test/dummy/app/views/layouts/application.html.erb
|
|
312
|
+
- test/dummy/app/views/layouts/pdf.html.erb
|
|
313
|
+
- test/dummy/config.ru
|
|
314
|
+
- test/dummy/config/application.rb
|
|
315
|
+
- test/dummy/config/boot.rb
|
|
316
|
+
- test/dummy/config/database.yml
|
|
317
|
+
- test/dummy/config/environment.rb
|
|
318
|
+
- test/dummy/config/environments/development.rb
|
|
319
|
+
- test/dummy/config/environments/production.rb
|
|
320
|
+
- test/dummy/config/environments/test.rb
|
|
321
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
322
|
+
- test/dummy/config/initializers/inflections.rb
|
|
323
|
+
- test/dummy/config/initializers/mime_types.rb
|
|
324
|
+
- test/dummy/config/initializers/secret_token.rb
|
|
325
|
+
- test/dummy/config/initializers/session_store.rb
|
|
326
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
|
327
|
+
- test/dummy/config/locales/en.yml
|
|
328
|
+
- test/dummy/config/routes.rb
|
|
329
|
+
- test/dummy/lib/assets/.gitkeep
|
|
330
|
+
- test/dummy/log/.gitkeep
|
|
331
|
+
- test/dummy/public/404.html
|
|
332
|
+
- test/dummy/public/422.html
|
|
333
|
+
- test/dummy/public/500.html
|
|
334
|
+
- test/dummy/public/favicon.ico
|
|
335
|
+
- test/dummy/public/javascripts/wisepdf.js
|
|
336
|
+
- test/dummy/public/stylesheets/wisepdf.css
|
|
337
|
+
- test/dummy/script/rails
|
|
338
|
+
- test/helper.rb
|
|
339
|
+
- test/helper_assets_test.rb
|
|
340
|
+
- test/helper_legacy_test.rb
|
|
341
|
+
- test/parser_test.rb
|
|
342
|
+
- test/writer_test.rb
|
data/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.2.10
|
data/pdf.gemspec
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
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 = "pdf"
|
|
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-09"
|
|
13
|
-
s.description = "pdf 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/pdf.rb",
|
|
29
|
-
"lib/pdf/configuration.rb",
|
|
30
|
-
"lib/pdf/errors.rb",
|
|
31
|
-
"lib/pdf/helper.rb",
|
|
32
|
-
"lib/pdf/rails.rb",
|
|
33
|
-
"lib/pdf/rails/engine.rb",
|
|
34
|
-
"lib/pdf/rails/legacy.rb",
|
|
35
|
-
"lib/pdf/rails/railtie.rb",
|
|
36
|
-
"lib/pdf/render.rb",
|
|
37
|
-
"lib/pdf/tempfile.rb",
|
|
38
|
-
"lib/pdf/writer.rb",
|
|
39
|
-
"test/fixtures/wicked.css",
|
|
40
|
-
"test/helper_test.rb",
|
|
41
|
-
"test/test_helper.rb",
|
|
42
|
-
"test/wicked_pdf_helper_test.rb",
|
|
43
|
-
"test/writer_test.rb"
|
|
44
|
-
]
|
|
45
|
-
s.homepage = "http://github.com/igor-alexandrov/pdf"
|
|
46
|
-
s.licenses = ["MIT"]
|
|
47
|
-
s.require_paths = ["lib"]
|
|
48
|
-
s.rubygems_version = "1.8.15"
|
|
49
|
-
s.summary = "PDF generator for Ruby on Rails"
|
|
50
|
-
|
|
51
|
-
if s.respond_to? :specification_version then
|
|
52
|
-
s.specification_version = 3
|
|
53
|
-
|
|
54
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
55
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
56
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
|
57
|
-
else
|
|
58
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
59
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
|
60
|
-
end
|
|
61
|
-
else
|
|
62
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
63
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
|