mrmanga 0.5.0 → 0.6.0

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: 678d8ae8f1d141f0a7c1321b4c91a08ba45eee8c
4
- data.tar.gz: 5c33d990fb4611db3b25a1de5f27cba57b7d215f
3
+ metadata.gz: c37699a3f2403eafb1b08d93e30750f9effb2f0a
4
+ data.tar.gz: c0552e5564d65e8b9734fe2b371a2e56d32bdd6a
5
5
  SHA512:
6
- metadata.gz: 6b0a410ad42475ecc9d9a66920a7c1f79d0b14b33d0ce9c67159e4dd0055092a60cc4454857e6004e4a5a39ffd633a921768967129f4b01ea7f75344c49fbe55
7
- data.tar.gz: e8e5ad5bcdef19ea6ded2ad62028a31b93a64090d3efb66b095118fff23d3bd9b6751dfc58832b0d4081d216d8a8d48a1a3a56727f1cf49b600ce391337f7c53
6
+ metadata.gz: cfcea86b1e693849748a4fdd07759e5cbaf8fa9c77d4826653b59558a3f26a0945678d74537326a6a42777d6fc870401bcd909e58591e205c522ecf32cb27c57
7
+ data.tar.gz: 8171a5bafe7990fdbbd3d20f9fbc1a5d3be0a912137219b2a7facaa39a51f9d1d32d157695c900d66e276292062f3791569d7965f6baa985481fca9fee91c973
@@ -47,7 +47,7 @@ module Mrmanga
47
47
  }
48
48
 
49
49
  if create_pdfs
50
- pdf_settings[:disable_outline_pages] = !agree('Add pages in PDF outline?') { |q| q.default = 'no' }
50
+ pdf_settings[:disable_outline_pages] = !agree('Add pages in PDF outline?') { |q| q.default = 'yes' }
51
51
  end
52
52
 
53
53
  say 'Parsing manga info'
@@ -28,14 +28,18 @@ module Mrmanga
28
28
  begin
29
29
  doc.image(page[:file])
30
30
  rescue Prawn::Errors::UnsupportedImageType
31
- # Some pdfs may fail, so we convert them to jpg
31
+ # Some pngs may fail, so we convert them to jpg
32
32
  puts "Error in image #{page[:file]}, force converting to jpg and writing jpg version"
33
33
  conv = MiniMagick::Image.open(page[:file])
34
34
 
35
35
  conv.format 'jpg'
36
36
  conv.quality 100
37
37
 
38
- doc.image(conv.path)
38
+ begin
39
+ doc.image(conv.path)
40
+ rescue Prawn::Errors::UnsupportedImageType
41
+ puts "And again, error in image #{conv.path}, skipping it"
42
+ end
39
43
  end
40
44
  end
41
45
  end
@@ -1,3 +1,3 @@
1
1
  module Mrmanga
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mrmanga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Viktorov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-08 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline