reaver 0.10.1 → 0.11.1

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: bdd577808ca0bae2cded787b089161dc9edf442705c2676ed89c8fb696a7190f
4
- data.tar.gz: 9e83785bfffdc7a792ff630261cb39e30a165b0f3b58162015dc617f65d182b9
3
+ metadata.gz: 383dabbf4efb260aab57ed47fd941e745e3b41e96e091256d617f761aec8caaf
4
+ data.tar.gz: 144a702aa351e1e6e20b77aa6f203f1f8bf12db13d5007c7b668703ef29be93c
5
5
  SHA512:
6
- metadata.gz: fd900ba9a85d977377b8ad011efcab4e1957b5a5334916e08245774ec8f6d15cff279e19a0fc0a35532fafceaa0acc47c67e1204f9019b67f171aa538ff4586e
7
- data.tar.gz: 0dbf7794f0ae570ed6f742c77cbb417211dae02642951d27a77eab164859db62f8e1c7c3dcca9120aacaa8beacef54b3cbd7791d9b2135b2d1a99c1f056de62d
6
+ metadata.gz: 3d1e21da7de1424b899405afe9e34c131fda1107670ce8c68f1146bee46210ec43083b5aa990b66ee712bd6efdd82c04e576a503d6dce788491028a7a8425e8f
7
+ data.tar.gz: 6c21d4d8a493ec66d0429719299731a5814d1ded064e514335d4dbb64c6eaa349763bbf5be50017168aad240a862374fc4b1d092432d7d2b9f1bede4588e3a35
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ - add `--strip-components=1` to tar
2
+
3
+ ## 0.11.0, release 10/2024
4
+ - can extract tar.xz archive.
5
+
1
6
  ## 0.10.1
2
7
  - For `all_to_dir_path` or `things.dest_dir`, all paths are relative to `$HOME` (or
3
8
  /home/<name>), so don't include shell variable `~` or `$HOME`.
data/README.md CHANGED
@@ -6,7 +6,7 @@ move things to the right spot.
6
6
 
7
7
  ## Dependencies
8
8
 
9
- Reaver need only `unzip` and `tar`.
9
+ Reaver need only `unzip`, `xz` and `tar`.
10
10
 
11
11
  ## Collections
12
12
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reaver
4
- VERSION = '0.10.1'
4
+ VERSION = '0.11.1'
5
5
  end
data/lib/reaver/walk.rb CHANGED
@@ -17,11 +17,11 @@ module Reaver
17
17
 
18
18
  def x
19
19
  case @extension
20
- when %r{^image/jpeg} || %r{^image/png}
20
+ when %r{^image/(jpeg|png)}
21
21
  copy_file
22
22
  when %r{^application/zip}
23
23
  extract_zip
24
- when %r{^application/gzip}
24
+ when %r{^application/(gzip|x-xz)}
25
25
  extract_gzip
26
26
  when %r{^font/ttf}
27
27
  copy_file
@@ -60,9 +60,10 @@ module Reaver
60
60
  end
61
61
 
62
62
  def extract_gzip
63
- puts "Extracting gzip archive #{@filename} at #{@final_dest}..."
63
+ ext = @extension.split('/').last
64
+ puts "Extracting #{ext} archive #{@filename} at #{@final_dest}..."
64
65
  FileUtils.mkdir_p @final_dest
65
- `tar -x --strip-components=1 -f #{@filename} --one-top-level=#{@final_dest}`
66
+ `tar x --strip-components=1 -f #{@filename} --one-top-level=#{@final_dest}`
66
67
  end
67
68
  end
68
69
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reaver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - szorfein
metadata.gz.sig CHANGED
Binary file