hamidashi 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32c708bb23a9090277add5311adc7979d715d65b
4
- data.tar.gz: 0f029059449c5d1dcf1fe98d48ee9e361e0bf903
3
+ metadata.gz: 4854e83ea5eda5c7c11a93809d4e29b629341ef2
4
+ data.tar.gz: 6c9c29df89bdbb83d1d87431c99545a927a8ede1
5
5
  SHA512:
6
- metadata.gz: bc4e66ee2e305a6a3c82b1212b78b1c4fed4f4f30efc2a989a0f7f0e65c74003360ec0b2c59fba6663dfcc28b5a50f5f4c00e01bb51f30a8d2d30a07c6702bf7
7
- data.tar.gz: c98d83ae98bb74905c3d17b645109c14f967582d8fa9188c54476e7f103fd17d9cc031a6e1d47ef6c4f266e82a967b0ab869607716ab3a05e966ced4f2a2c4f2
6
+ metadata.gz: aa4fd40cf1fd8e55b47ebd7cb59a8b7343a06e651d8c36f5362c0093513aa8d77206d57c1de96b7d42161192bb07e66ca67b162e8da63b122c97a72da770062b
7
+ data.tar.gz: 35c8af4e294f9abaf05540cccab31161cc7d34a737e4d398c558ada7c0897ab3c9be87352d55fcedf2d3970f044d71d3671c0764223498ae4ceb1871e384c794
@@ -7,16 +7,16 @@ class Hamidashi
7
7
  end
8
8
 
9
9
  def overflow?(pdf_path, page)
10
- colornum=`convert -density 92 -geometry #{width} -crop #{crop} "#{pdf_path.shellescape}[#{page.shellescape}]" -format %c histogram:info: | wc -l`.to_i
10
+ colornum=`convert -density 92 -geometry #{width} -crop #{crop} "#{pdf_path.shellescape}[#{page.to_s.shellescape}]" -format %c histogram:info: | wc -l`.to_i
11
11
  colornum != expected_colornum
12
12
  end
13
13
 
14
14
  def save_page(pdf_path, page, path)
15
- `convert -density 92 -geometry #{width} "#{pdf_path.shellescape}[#{page.shellescape}]" #{path.shellescape}`
15
+ `convert -density 92 -geometry #{width} "#{pdf_path.shellescape}[#{page.to_s.shellescape}]" #{path.shellescape}`
16
16
  end
17
17
 
18
18
  def save_preview_page(pdf_path, page, path)
19
- `convert -density 92 -geometry #{width} -fill "rgba(0, 255, 0, 50%)" -strokewidth 0 -draw "rectangle #{width - crop_width},#{height},#{width},0" "#{pdf_path.shellescape}[#{page.shellescape}]" #{path.shellescape}`
19
+ `convert -density 92 -geometry #{width} -fill "rgba(0, 255, 0, 50%)" -strokewidth 0 -draw "rectangle #{width - crop_width},#{height},#{width},0" "#{pdf_path.shellescape}[#{page.to_s.shellescape}]" #{path.shellescape}`
20
20
  end
21
21
 
22
22
  private
@@ -1,3 +1,3 @@
1
1
  class Hamidashi
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamidashi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seiei Miyagi