riven 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 249713d59e43598175a09dbf188fdc4afaf4023c
4
- data.tar.gz: 9843a8a2a382623f06c416d6e074d9c8cf9efea4
3
+ metadata.gz: d484f138d62f942c7612e49993833ab823e7d185
4
+ data.tar.gz: ddf8c965eb813b617e708d0567fd6de09100a9b7
5
5
  SHA512:
6
- metadata.gz: ebe32bc24a34766e3eda31553d1205adc2c2457976d1eb9f32d1113fde593fe842ecc1022d3fa8b0d4b328aa910a81dfc1f11662b78cdc3c97ebea6d21e59019
7
- data.tar.gz: 52592999799d5e60e0ea8ead3c192187a0d3bc1f5dd3ddb8bf77ca3d22da600860509bbb35587cc2c53b8d69304f64ae6f8e70b88414583379090ea872593b57
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.1)
5
- coderay (~> 1.1.0)
6
- github-markup (~> 1.2.0)
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
@@ -1,3 +1,3 @@
1
1
  class Riven
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -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 10mm',
17
- '--margin-top 10mm',
18
- '--margin-left 20mm',
19
- '--margin-right 20mm',
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 4'
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2015-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler