mangos 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mangos/decorated_pathname.rb +1 -1
- data/lib/mangos/processor.rb +8 -1
- data/lib/mangos/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f9ac32132cd1ca0d0d5f8a3f7cb3290aadf01c6589223dca1f08e8dc07362a8
|
4
|
+
data.tar.gz: c2a88d97fd983b65c25eeac47678430f91713d1db5272177ba4e0175271dd83d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b8f20c53a4d8fb71e8009250102507ceb9b915c6f0def70dd18bc17fab75f27ec2e219593c3c804cf6313aa87f085474d5668efe15799438599533318ea2dda
|
7
|
+
data.tar.gz: 257aa94d37ea85f291ee490d4158e614357bab6aaf9bafe71b6cee442e24b21c8a52e7d2769880a4288da428f1fe1aa809c625b442875754c6a12af6a0bfdbd4
|
data/lib/mangos/processor.rb
CHANGED
@@ -9,11 +9,18 @@ class Mangos::Processor
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def update(path, book)
|
12
|
-
return false if
|
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
|
data/lib/mangos/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|