mangos 0.3 → 0.4

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
  SHA256:
3
- metadata.gz: 56f79d3fe8221ed638d73e158b60c45bd18092993cb3117fd0fc83c2403ffd5e
4
- data.tar.gz: 05e239fa6821f9a47cd345b8a8b1c045d853712bd41f7e6cb8f4ca93ce6915c0
3
+ metadata.gz: 3f9ac32132cd1ca0d0d5f8a3f7cb3290aadf01c6589223dca1f08e8dc07362a8
4
+ data.tar.gz: c2a88d97fd983b65c25eeac47678430f91713d1db5272177ba4e0175271dd83d
5
5
  SHA512:
6
- metadata.gz: 1fa3467468280687b46ee14b86f78c4cdb4949760d862b4b67a0454195225986f6677edcbe7ac1ec038cbde3b7bf4e4a2abb3350e243c62c01faee944c7693e7
7
- data.tar.gz: 3bde1bfee0cf1e539d390623032fcc45ff6eee3682dc483e931a2f0044b2c10c9d926522c66218920e7834c04a3f07be8b73f7834b4cd8b98e5279a2d14b5819
6
+ metadata.gz: 7b8f20c53a4d8fb71e8009250102507ceb9b915c6f0def70dd18bc17fab75f27ec2e219593c3c804cf6313aa87f085474d5668efe15799438599533318ea2dda
7
+ data.tar.gz: 257aa94d37ea85f291ee490d4158e614357bab6aaf9bafe71b6cee442e24b21c8a52e7d2769880a4288da428f1fe1aa809c625b442875754c6a12af6a0bfdbd4
@@ -1,6 +1,6 @@
1
1
  class DecoratedPathname < Pathname
2
2
  def image?
3
- file? && extname && %w(.jpg .jpeg .png .gif).include?(extname.downcase)
3
+ file? && extname && %w(.jpg .jpeg .png .gif .webp).include?(extname.downcase)
4
4
  end
5
5
 
6
6
  def hidden?
@@ -9,11 +9,18 @@ class Mangos::Processor
9
9
  end
10
10
 
11
11
  def update(path, book)
12
- return false if !@package.force? && path.mtime < @original_mtime
12
+ return false if !update?(path, book)
13
13
  Mangos::BookUpdater.new(@package, book, path).update
14
14
  true
15
15
  end
16
16
 
17
+ def update?(path, book)
18
+ return true if @package.force?
19
+ return true if path.mtime >= @original_mtime
20
+ return true if book.pages == 0
21
+ false
22
+ end
23
+
17
24
  def delete(book)
18
25
  end
19
26
  end
@@ -1,3 +1,3 @@
1
1
  module Mangos
2
- VERSION = "0.3"
2
+ VERSION = "0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mangos
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brenton "B-Train" Fletcher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-21 00:00:00.000000000 Z
11
+ date: 2023-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: 1.3.6
119
119
  requirements: []
120
- rubygems_version: 3.0.3
120
+ rubygems_version: 3.3.7
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Mangos indexes a collection of manga or comis and generates a SPA that browses