pdfkit 0.4.2 → 0.4.3
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.
Potentially problematic release.
This version of pdfkit might be problematic. Click here for more details.
- data/.gitignore +1 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +35 -0
- data/README.md +1 -0
- data/Rakefile +2 -0
- data/VERSION +1 -1
- data/lib/pdfkit/configuration.rb +2 -1
- data/pdfkit.gemspec +4 -2
- data/spec/pdfkit_spec.rb +5 -0
- metadata +18 -16
data/.gitignore
CHANGED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.1.2)
|
5
|
+
gemcutter (0.6.1)
|
6
|
+
git (1.2.5)
|
7
|
+
jeweler (1.4.0)
|
8
|
+
gemcutter (>= 0.1.0)
|
9
|
+
git (>= 1.2.5)
|
10
|
+
rubyforge (>= 2.0.0)
|
11
|
+
json_pure (1.4.3)
|
12
|
+
mocha (0.9.8)
|
13
|
+
rake
|
14
|
+
rack (1.2.1)
|
15
|
+
rake (0.8.7)
|
16
|
+
rspec (2.0.0.beta.19)
|
17
|
+
rspec-core (= 2.0.0.beta.19)
|
18
|
+
rspec-expectations (= 2.0.0.beta.19)
|
19
|
+
rspec-mocks (= 2.0.0.beta.19)
|
20
|
+
rspec-core (2.0.0.beta.19)
|
21
|
+
rspec-expectations (2.0.0.beta.19)
|
22
|
+
diff-lcs (>= 1.1.2)
|
23
|
+
rspec-mocks (2.0.0.beta.19)
|
24
|
+
rubyforge (2.0.4)
|
25
|
+
json_pure (>= 1.1.7)
|
26
|
+
|
27
|
+
PLATFORMS
|
28
|
+
ruby
|
29
|
+
|
30
|
+
DEPENDENCIES
|
31
|
+
jeweler
|
32
|
+
mocha
|
33
|
+
rack
|
34
|
+
rspec (~> 2.0.0.beta.8)
|
35
|
+
rspec-core (~> 2.0.0.beta.8)
|
data/README.md
CHANGED
@@ -77,6 +77,7 @@ PDFKit comes with a middleware that allows users to get a PDF view of any page o
|
|
77
77
|
## Note on Patches/Pull Requests
|
78
78
|
|
79
79
|
* Fork the project.
|
80
|
+
* Setup your development environment with: gem install bundler; bundle install
|
80
81
|
* Make your feature addition or bug fix.
|
81
82
|
* Add tests for it. This is important so I don't break it in a
|
82
83
|
future version unintentionally.
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/lib/pdfkit/configuration.rb
CHANGED
data/pdfkit.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{pdfkit}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["jdpace"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-30}
|
13
13
|
s.default_executable = %q{pdfkit}
|
14
14
|
s.description = %q{Uses wkhtmltopdf to create PDFs using HTML}
|
15
15
|
s.email = %q{jared@codewordstudios.com}
|
@@ -22,6 +22,8 @@ Gem::Specification.new do |s|
|
|
22
22
|
".document",
|
23
23
|
".gitignore",
|
24
24
|
".rspec",
|
25
|
+
"Gemfile",
|
26
|
+
"Gemfile.lock",
|
25
27
|
"LICENSE",
|
26
28
|
"POST_INSTALL",
|
27
29
|
"README.md",
|
data/spec/pdfkit_spec.rb
CHANGED
@@ -34,6 +34,11 @@ describe PDFKit do
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
+
it "should default to 'UTF-8' encoding" do
|
38
|
+
pdfkit = PDFKit.new('Captación')
|
39
|
+
pdfkit.options['--encoding'].should == 'UTF-8'
|
40
|
+
end
|
41
|
+
|
37
42
|
it "should not have any stylesheedt by default" do
|
38
43
|
pdfkit = PDFKit.new('<h1>Oh Hai</h1>')
|
39
44
|
pdfkit.stylesheets.should be_empty
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- jdpace
|
@@ -15,13 +15,14 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-30 00:00:00 -04:00
|
19
19
|
default_executable: pdfkit
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name: rspec
|
23
22
|
prerelease: false
|
24
|
-
|
23
|
+
type: :development
|
24
|
+
name: rspec
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
26
|
none: false
|
26
27
|
requirements:
|
27
28
|
- - ~>
|
@@ -34,12 +35,12 @@ dependencies:
|
|
34
35
|
- beta
|
35
36
|
- 8
|
36
37
|
version: 2.0.0.beta.8
|
37
|
-
|
38
|
-
version_requirements: *id001
|
38
|
+
requirement: *id001
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
|
-
name: rspec-core
|
41
40
|
prerelease: false
|
42
|
-
|
41
|
+
type: :development
|
42
|
+
name: rspec-core
|
43
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
43
44
|
none: false
|
44
45
|
requirements:
|
45
46
|
- - ~>
|
@@ -52,12 +53,12 @@ dependencies:
|
|
52
53
|
- beta
|
53
54
|
- 8
|
54
55
|
version: 2.0.0.beta.8
|
55
|
-
|
56
|
-
version_requirements: *id002
|
56
|
+
requirement: *id002
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
|
-
name: mocha
|
59
58
|
prerelease: false
|
60
|
-
|
59
|
+
type: :development
|
60
|
+
name: mocha
|
61
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
61
62
|
none: false
|
62
63
|
requirements:
|
63
64
|
- - ">="
|
@@ -66,8 +67,7 @@ dependencies:
|
|
66
67
|
segments:
|
67
68
|
- 0
|
68
69
|
version: "0"
|
69
|
-
|
70
|
-
version_requirements: *id003
|
70
|
+
requirement: *id003
|
71
71
|
description: Uses wkhtmltopdf to create PDFs using HTML
|
72
72
|
email: jared@codewordstudios.com
|
73
73
|
executables:
|
@@ -81,6 +81,8 @@ files:
|
|
81
81
|
- .document
|
82
82
|
- .gitignore
|
83
83
|
- .rspec
|
84
|
+
- Gemfile
|
85
|
+
- Gemfile.lock
|
84
86
|
- LICENSE
|
85
87
|
- POST_INSTALL
|
86
88
|
- README.md
|