epuber 0.7.1 → 0.7.3
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 +4 -4
- data/lib/epuber/command/build.rb +1 -1
- data/lib/epuber/compiler/file_types/abstract_file.rb +1 -1
- data/lib/epuber/compiler.rb +1 -1
- data/lib/epuber/lockfile.rb +1 -1
- data/lib/epuber/server.rb +5 -3
- data/lib/epuber/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: 52fe047285b476bde13a682764c8a2040502e10d79511c007b4ce226a5284112
|
4
|
+
data.tar.gz: 48d189ecceec30367c4a565fef7eca73728b2e620ac510d889be6ecd5aef4204
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28ab4f13842a57c0a62b4509dbc2ab352d857021045b831f6b7320fc432ba8272acd492ddbac9a449cd3c632885d513b3e30ccaf53116646cc734a2413e191af
|
7
|
+
data.tar.gz: b97a62b37d26bf6577e21b46fe6a56918fc3bbc04f5563ff0bbd5d0c92f54a342a5128d0f070b33015f474ec40756eaf94ee64f587666f550748489424ccc5f1
|
data/lib/epuber/command/build.rb
CHANGED
data/lib/epuber/compiler.rb
CHANGED
@@ -113,7 +113,7 @@ module Epuber
|
|
113
113
|
Dir.chdir(@file_resolver.destination_path) do
|
114
114
|
new_paths = @file_resolver.package_files.map(&:pkg_destination_path)
|
115
115
|
|
116
|
-
if ::File.
|
116
|
+
if ::File.exist?(epub_path)
|
117
117
|
Zip::File.open(epub_path, true) do |zip_file|
|
118
118
|
old_paths = zip_file.instance_eval { @entry_set.entries.map(&:name) }
|
119
119
|
diff = old_paths - new_paths
|
data/lib/epuber/lockfile.rb
CHANGED
data/lib/epuber/server.rb
CHANGED
@@ -485,9 +485,11 @@ module Epuber
|
|
485
485
|
# @param [String] file_path
|
486
486
|
#
|
487
487
|
def handle_file(file_path)
|
488
|
-
return not_found unless File.
|
488
|
+
return not_found unless File.exist?(file_path)
|
489
489
|
|
490
|
-
|
490
|
+
mtime = File.mtime(file_path)
|
491
|
+
last_modified(mtime)
|
492
|
+
etag(mtime.to_s)
|
491
493
|
|
492
494
|
case File.extname(file_path)
|
493
495
|
when '.styl'
|
@@ -507,7 +509,7 @@ module Epuber
|
|
507
509
|
end
|
508
510
|
end
|
509
511
|
|
510
|
-
send_file(file_path, type: type)
|
512
|
+
send_file(file_path, type: type, last_modified: mtime)
|
511
513
|
end
|
512
514
|
end
|
513
515
|
|
data/lib/epuber/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epuber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Kříž
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -585,7 +585,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
585
585
|
- !ruby/object:Gem::Version
|
586
586
|
version: '0'
|
587
587
|
requirements: []
|
588
|
-
rubygems_version: 3.3
|
588
|
+
rubygems_version: 3.4.3
|
589
589
|
signing_key:
|
590
590
|
specification_version: 4
|
591
591
|
summary: Epuber is simple tool to compile and pack source files into EPUB format.
|