autobuild 1.8.2 → 1.8.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/autobuild/import/archive.rb +8 -2
- data/lib/autobuild/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71fc9a4d13e16cb68906457a8d9afd08f8c3700c
|
|
4
|
+
data.tar.gz: 4d940353cece1bc2681254bafb90cd48e0dbba46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcc2b5bc4bc96b0b27288e3478744dc91191a3e498a125bc71fd317142f7adbea64b60b826bc82bda595bf182d622091f6aa6df4630d97ea132267d1841c713e
|
|
7
|
+
data.tar.gz: 993285ac044926d5867c956942fc778c7d05823eaca884eeeda22d6c867ba668947b672f252ae2f0afdccef8009dcbb22c7bc4eb5c955c8c6f324d42c1537d3e
|
|
@@ -58,7 +58,7 @@ module Autobuild
|
|
|
58
58
|
# With wget, it is the timeout used for DNS resolution, connection and
|
|
59
59
|
# idle time (time without receiving data)
|
|
60
60
|
#
|
|
61
|
-
# It defaults to
|
|
61
|
+
# It defaults to 10s
|
|
62
62
|
attr_accessor :timeout
|
|
63
63
|
|
|
64
64
|
# The number of time we should retry downloading if the underlying tool
|
|
@@ -249,9 +249,15 @@ module Autobuild
|
|
|
249
249
|
# Package#srcdir
|
|
250
250
|
# [:no_subdirectory] the archive does not have the custom archive
|
|
251
251
|
# subdirectory.
|
|
252
|
+
# [:retries] The number of retries for downloading
|
|
253
|
+
# [:timeout] The timeout (in seconds) used during downloading, it defaults to 10s
|
|
254
|
+
# [:filename] Rename the archive to this filename (in cache) -- will be
|
|
255
|
+
# also used to infer the mode
|
|
256
|
+
# [:mode] The unpack mode: one of Zip, Bzip, Gzip or Plain, this is
|
|
257
|
+
# usually automatically inferred from the filename
|
|
252
258
|
def initialize(url, options)
|
|
253
259
|
sourceopts, options = Kernel.filter_options options,
|
|
254
|
-
:source_id, :repository_id
|
|
260
|
+
:source_id, :repository_id, :filename, :mode
|
|
255
261
|
super(options)
|
|
256
262
|
|
|
257
263
|
if !@options.has_key?(:update_cached_file)
|
data/lib/autobuild/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: autobuild
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.8.
|
|
4
|
+
version: 1.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sylvain Joyeux
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|