dragonfly_pdf 0.0.5 → 0.0.6

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: af0bd06c8f18ba0d4d17d560bcb95037ca732e3c
4
- data.tar.gz: c976c19c34d4a2a6501f64569f2d1a475cc72027
3
+ metadata.gz: 8ee23007036641281d4325d303511da0796a1f6a
4
+ data.tar.gz: 2c83a852242b6cb5f78f69c96fba43b7900e2959
5
5
  SHA512:
6
- metadata.gz: 29e5f6b494b74bc570482ad6a79210bb22d70ebf560d6b792c287bf28a190dd3027cfbfbe9348d8a6d044633a0caee90311d202dabfa5a0e731c4b38f603913d
7
- data.tar.gz: 02ceb2c7c85dfc91f68d88de5073f99122ab763dc99a54d7316a0800547cd20f4cc40b39ff77cbe930a79ab162d494af6d8f3c02294aeffd4c5d0376b6a1ff71
6
+ metadata.gz: 701c02304a959ed3757befceb4e708bd1cbca373efab15150b760c78671910a1156f7d808a88c7a6b4ef451a82c4e08215a448600d63cd56259e3df4b9386972
7
+ data.tar.gz: 0bb95b962d22d78e76dc21e4b47c58160210e9bd054f71f8e3d6278aec5447b03166f5a1a60f9b8b64c5be98377b10053f8d0627392e3b51855b424e91d28745
@@ -5,8 +5,8 @@ module DragonflyPdf
5
5
  class PageThumb
6
6
 
7
7
  def call content, page_number=1, opts={}
8
- format = opts.fetch(:format, :png)
9
- density = opts.fetch(:density, 150)
8
+ format = opts['format'] || :png
9
+ density = opts['density'] || 150
10
10
  spreads = content.meta['spreads'] || false
11
11
 
12
12
  args = "-alpha deactivate -background white -colorspace sRGB -density #{density}x#{density} -define pdf:use-cropbox=true -define pdf:use-trimbox=true"
@@ -1,3 +1,3 @@
1
1
  module DragonflyPdf
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragonfly_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-25 00:00:00.000000000 Z
11
+ date: 2015-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dragonfly