mork 0.13.2 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  module Mork
4
- describe SheetPDF do
4
+ describe SheetPDF, focus: true do
5
5
  let(:content) {
6
6
  {
7
7
  barcode: 183251937962,
@@ -113,6 +113,13 @@ module Mork
113
113
  SheetPDF.new(c).save dest('p20')
114
114
  end
115
115
 
116
+ it 'creates blank pages for duplex printing' do
117
+ c = 5.times.map do |x|
118
+ content.merge({ header: {title: "Test #{x+1}"}, barcode: x})
119
+ end
120
+ SheetPDF.new(c, nil, true).save dest('duplex5')
121
+ end
122
+
116
123
  it 'creates a PDF with the maximum possible choice cells if none are specified' do
117
124
  ct = [{}, {choices: [3]*20}]
118
125
  SheetPDF.new(ct).save dest('nocontent')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giuseppe Bertini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-11 00:00:00.000000000 Z
11
+ date: 2018-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: narray