djvu 0.2.0 → 0.2.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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/djvu.rb +5 -1
  4. data/lib/djvu/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 429d5cbf8b922aae12d9834ef45985363abaeb54
4
- data.tar.gz: d7c37ac6c7ff1593fd293ef554ccfb326c645687
3
+ metadata.gz: 2687afa35fca23b50c76f435ef81e47c28bdf831
4
+ data.tar.gz: 19e508cfb1ae7170de461bf936177b08a333674c
5
5
  SHA512:
6
- metadata.gz: 16559b6be5719fe4d2124e4f885e8d1b0e8d1a445d4ab7737224fabd31b8c1534085a0c38e28579c3d542750cc6a48d25c795844f2b7ff741d937c7aa21ec9b4
7
- data.tar.gz: bd9692b0c1951df0e2bb0d3de8774026c49b61d641054fda4a9c777126128e477eb6e54729ebf5301d82984cad4ca6932429420a1dab6ed7be417ebacb42d419
6
+ metadata.gz: bf6c19d2ab3b604be79a7f56f3d4df17bd4b417bcc0d99d5a3b9ce2dc19ceb1a26533f1127704f5ef33bcf47ea695afbf841657b9c792d8728b2e02edfea1dda
7
+ data.tar.gz: e13fb7e6a6b0cc7e37a4e38d323711d340a381da95f3d19cdaff87ee7beb2f1660da7c1fc79a99c428df134a7835efc395332738302b7c25318210c36cd8e459
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Djvu
1
+ ## Djvu
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/djvu.svg)](https://rubygems.org/gems/djvu)
4
4
  [![Build Status](https://travis-ci.org/1v/djvu.svg?branch=master)](https://travis-ci.org/1v/djvu)
@@ -48,7 +48,7 @@ Djvu.file('Alice_in_Wonderland.djvu').ddjvu(format: 'ppm', page: 1, output_file:
48
48
  ```
49
49
  Convert `ppm` to any image format with [rmagick](https://github.com/rmagick/rmagick) or [minimagick](https://github.com/minimagick/minimagick):
50
50
  ```ruby
51
- MiniMagick::Image.open('1.ppm').write('1.png')
51
+ MiniMagick::Image.open('1.ppm').format('png').write('1.png')
52
52
  ```
53
53
  ### [djvutxt](http://djvu.sourceforge.net/doc/man/djvutxt.html)
54
54
  ```ruby
@@ -93,7 +93,11 @@ module Djvu
93
93
  command = []
94
94
  options.each do |key, val|
95
95
  next if key === :output_file
96
- command << pattern % [key, val]
96
+ if val === true
97
+ command << "-#{key}"
98
+ else
99
+ command << pattern % [key, val]
100
+ end
97
101
  end
98
102
  command.join(' ')
99
103
  end
@@ -1,3 +1,3 @@
1
1
  module Djvu
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djvu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 1v
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-24 00:00:00.000000000 Z
11
+ date: 2016-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler