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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f545d49caa535de0fa085638036a2ce3e36255e5
4
- data.tar.gz: b5df7dd9b78f608c2720b31d3b425edc49e9b06a
3
+ metadata.gz: c600d9933a618a0ce2959c003f117d734c2ff634
4
+ data.tar.gz: 17b61302049f76a5aa0c10a5f8c5ec12cfa374e8
5
5
  SHA512:
6
- metadata.gz: 755b66ea3c3e1b7ef6de28fd286a0b35324770becd161172c5c2101a4330e39ec51a660f9b62b577e32b458f3743284bade6aafe2117f04834b44427716a842c
7
- data.tar.gz: d3ddb33f239451fa5661439883ee5482eb0cc0208a8d3b4f7998a54c6eced90e0350d3a1c4e58a7f19c8b06d6e9d38f8585181e4915c056832aea0c638c4bc13
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, "ldp-testsuite-#{version}"), instance_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|
@@ -1,3 +1,3 @@
1
1
  module LdpTestsuiteWrapper
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '0.0.3'.freeze
3
3
  end
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.2
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-10 00:00:00.000000000 Z
11
+ date: 2016-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip