ldp_testsuite_wrapper 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ldp_testsuite_wrapper/instance.rb +5 -2
- data/lib/ldp_testsuite_wrapper/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: c600d9933a618a0ce2959c003f117d734c2ff634
|
4
|
+
data.tar.gz: 17b61302049f76a5aa0c10a5f8c5ec12cfa374e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16495ff63384618041cf1adec153782c583a6edbbc4330bc68d61a6294b786871a01e9ac299d05bfaca1acf72418787e58495900091447f8f96d497fa599ee30
|
7
|
+
data.tar.gz: b508117fa19d6628f9980cfe95190cb9a1967723089f4fb47bd16153f91ae43ad180bff6a9d201b0a305f9d1331ec5168d7a00502d0c298a6807d0db9798d4eb
|
@@ -94,7 +94,6 @@ module LdpTestsuiteWrapper
|
|
94
94
|
##
|
95
95
|
# Clean up any files ldp_testsuite_wrapper may have downloaded
|
96
96
|
def clean!
|
97
|
-
stop
|
98
97
|
remove_instance_dir!
|
99
98
|
FileUtils.remove_entry(download_path) if File.exist?(download_path)
|
100
99
|
FileUtils.remove_entry(tmp_save_dir, true) if File.exist? tmp_save_dir
|
@@ -146,7 +145,7 @@ module LdpTestsuiteWrapper
|
|
146
145
|
|
147
146
|
begin
|
148
147
|
FileUtils.remove_dir(instance_dir, true)
|
149
|
-
FileUtils.cp_r File.join(tmp_save_dir,
|
148
|
+
FileUtils.cp_r File.join(tmp_save_dir, zip_root_directory), instance_dir
|
150
149
|
rescue Exception => e
|
151
150
|
abort "Unable to copy #{tmp_save_dir} to #{instance_dir}: #{e.message}"
|
152
151
|
end
|
@@ -218,6 +217,10 @@ module LdpTestsuiteWrapper
|
|
218
217
|
@tmp_save_dir ||= Dir.mktmpdir
|
219
218
|
end
|
220
219
|
|
220
|
+
def zip_root_directory
|
221
|
+
options.fetch(:zip_root_directory, "ldp-testsuite-#{version}")
|
222
|
+
end
|
223
|
+
|
221
224
|
def fetch_with_progressbar(url, output)
|
222
225
|
pbar = ProgressBar.create(title: File.basename(url), total: nil, format: '%t: |%B| %p%% (%e )')
|
223
226
|
open(url, content_length_proc: lambda do |t|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ldp_testsuite_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|