nanoc-core 4.11.16 → 4.11.17
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 748b150c5ee93de8c4ce8dcd31ddc4e4dc64897a73d86dd91be9d743b1ff476d
|
4
|
+
data.tar.gz: '008722ff9d57b3c5e13fda3e5ac60dd4860a1240076383067a37664ebb7df2ca'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49b011afe4838c9150bd91ccaf17acd7150f5d143af69b13e623f542ff2af7965205f4b2a595b07e651babada9e902a98e2c879f923070be21c14fd199c5674d
|
7
|
+
data.tar.gz: aefeed726b1ac55565446d4fc7ccce5a3d5293029ad7b0e534e33f8f0ff338d0f7d8f9641dfd964125e5a71dbb243aa95e9cf447d071478fea03d1e2a485ea4c
|
@@ -3,6 +3,12 @@
|
|
3
3
|
module Nanoc
|
4
4
|
module Core
|
5
5
|
class CompilationItemRepView < ::Nanoc::Core::BasicItemRepView
|
6
|
+
# How long to wait before the requested file appears.
|
7
|
+
#
|
8
|
+
# This is a bit of a hack -- ideally, Nanoc would know that the file is
|
9
|
+
# being generated, and wait the appropriate amount of time.
|
10
|
+
FILE_APPEAR_TIMEOUT = 10.0
|
11
|
+
|
6
12
|
# @abstract
|
7
13
|
def item_view_class
|
8
14
|
Nanoc::Core::CompilationItemView
|
@@ -27,7 +33,7 @@ module Nanoc
|
|
27
33
|
# Wait for file to exist
|
28
34
|
if res
|
29
35
|
start = Time.now
|
30
|
-
sleep 0.05 until File.file?(res) || Time.now - start >
|
36
|
+
sleep 0.05 until File.file?(res) || Time.now - start > FILE_APPEAR_TIMEOUT
|
31
37
|
raise Nanoc::Core::Errors::InternalInconsistency, "File did not apear in time: #{res}" unless File.file?(res)
|
32
38
|
end
|
33
39
|
|
data/lib/nanoc/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.11.
|
4
|
+
version: 4.11.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ddmemoize
|
@@ -300,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
300
300
|
- !ruby/object:Gem::Version
|
301
301
|
version: '0'
|
302
302
|
requirements: []
|
303
|
-
rubygems_version: 3.1.
|
303
|
+
rubygems_version: 3.1.4
|
304
304
|
signing_key:
|
305
305
|
specification_version: 4
|
306
306
|
summary: Core of Nanoc
|