riven 0.1.0 → 0.1.1
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 +4 -4
- data/Gemfile.lock +3 -7
- data/css/style.css +16 -1
- data/lib/riven/version.rb +1 -1
- data/lib/riven/wkhtmltopdf.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d484f138d62f942c7612e49993833ab823e7d185
|
|
4
|
+
data.tar.gz: ddf8c965eb813b617e708d0567fd6de09100a9b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de2c88862b6747650e2e105f869cdf5b0eaf5e9bb0591c69651d306bb9dc9b92cda33254526259a0380a4187132643288eba7d58e6337784293085f7cb72f58c
|
|
7
|
+
data.tar.gz: ab2c3e48dba6aad174c2bc8b2a56c2d6ac66ff7c92abe9c5df72573bee449e4fb0e052747104551a6e45f72c885f8149470cd6e53d9b664afbd21282df6b3eb7
|
data/Gemfile.lock
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
riven (0.0
|
|
5
|
-
coderay (~> 1.1
|
|
6
|
-
|
|
7
|
-
redcarpet (~> 3.2.2)
|
|
4
|
+
riven (0.1.0)
|
|
5
|
+
coderay (~> 1.1)
|
|
6
|
+
redcarpet (~> 3.2)
|
|
8
7
|
|
|
9
8
|
GEM
|
|
10
9
|
remote: https://rubygems.org/
|
|
11
10
|
specs:
|
|
12
11
|
coderay (1.1.0)
|
|
13
|
-
github-markup (1.2.1)
|
|
14
|
-
posix-spawn (~> 0.3.8)
|
|
15
|
-
posix-spawn (0.3.9)
|
|
16
12
|
rake (10.4.2)
|
|
17
13
|
redcarpet (3.2.2)
|
|
18
14
|
|
data/css/style.css
CHANGED
|
@@ -752,7 +752,13 @@ ol.CodeRay li { white-space: pre-wrap; word-wrap: break-word; }
|
|
|
752
752
|
.CodeRay .head .head { color: #f4f; }
|
|
753
753
|
|
|
754
754
|
|
|
755
|
-
|
|
755
|
+
.cover-page {
|
|
756
|
+
text-align: center;
|
|
757
|
+
margin: 0;
|
|
758
|
+
padding: 0;
|
|
759
|
+
width: 100%;
|
|
760
|
+
overflow: visible;
|
|
761
|
+
}
|
|
756
762
|
|
|
757
763
|
.cover-page h1,
|
|
758
764
|
.cover-page h2,
|
|
@@ -760,15 +766,24 @@ ol.CodeRay li { white-space: pre-wrap; word-wrap: break-word; }
|
|
|
760
766
|
.cover-page img {
|
|
761
767
|
text-align: center;
|
|
762
768
|
border-bottom: none;
|
|
769
|
+
padding: 0;
|
|
770
|
+
margin-left: 0;
|
|
771
|
+
margin-right: 0;
|
|
772
|
+
|
|
773
|
+
/* since text-align: center is buggy */
|
|
774
|
+
position: relative;
|
|
775
|
+
left: -55px;
|
|
763
776
|
}
|
|
764
777
|
|
|
765
778
|
.cover-page h1 {
|
|
766
779
|
margin: 15px 0;
|
|
767
780
|
font-size: 60px;
|
|
768
781
|
page-break-before: avoid;
|
|
782
|
+
width: 100%;
|
|
769
783
|
}
|
|
770
784
|
|
|
771
785
|
.cover-page h2 {
|
|
772
786
|
margin-top: 0.5em;
|
|
773
787
|
color: #666;
|
|
788
|
+
width: 100%;
|
|
774
789
|
}
|
data/lib/riven/version.rb
CHANGED
data/lib/riven/wkhtmltopdf.rb
CHANGED
|
@@ -13,14 +13,14 @@ module Riven
|
|
|
13
13
|
public def generate_pdf(html_file, cover_html_file, output_file, options)
|
|
14
14
|
params = [
|
|
15
15
|
'--page-size A4',
|
|
16
|
-
'--margin-bottom
|
|
17
|
-
'--margin-top
|
|
18
|
-
'--margin-left
|
|
19
|
-
'--margin-right
|
|
16
|
+
'--margin-bottom 20mm',
|
|
17
|
+
'--margin-top 20mm',
|
|
18
|
+
'--margin-left 30mm',
|
|
19
|
+
'--margin-right 30mm',
|
|
20
20
|
'--footer-left "[section]"',
|
|
21
21
|
'--footer-right "[page] / [toPage]"',
|
|
22
22
|
'--footer-font-size 7',
|
|
23
|
-
'--footer-spacing
|
|
23
|
+
'--footer-spacing 10'
|
|
24
24
|
]
|
|
25
25
|
|
|
26
26
|
unless options[:cover_file] === ''
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: riven
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamin Kammerl
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-02-
|
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|