reaver 0.10.1 → 0.11.0

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: 0fa3014398fc15a35e20032c065846bff2a3e9046ee13ebfec9e2c618f6d5a1e
4
+ data.tar.gz: 88d073275dcc5e1908c1156876722580bc7123995a9ddac1d7ef32104219517f
5
5
  SHA512:
6
- metadata.gz: fd900ba9a85d977377b8ad011efcab4e1957b5a5334916e08245774ec8f6d15cff279e19a0fc0a35532fafceaa0acc47c67e1204f9019b67f171aa538ff4586e
7
- data.tar.gz: 0dbf7794f0ae570ed6f742c77cbb417211dae02642951d27a77eab164859db62f8e1c7c3dcca9120aacaa8beacef54b3cbd7791d9b2135b2d1a99c1f056de62d
6
+ metadata.gz: 6333e552024a93186a22fc87be8500027117091796ffcb1c44a791d2e899fe29485c65f51340519bd7fed0f59ad44f8a9b59b3b84074357e76cf5f41c9beb1ff
7
+ data.tar.gz: b148922de512faebf56e415facbc10c84bc0f6bb2af0a84e966e4feb528b39c9d62d72fb9aea97e95c36252593193e7f2b90f40a9e43825b43caefc6f0795eae
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.11.0, release 10/2024
2
+ - can extract tar.xz archive.
3
+
1
4
  ## 0.10.1
2
5
  - For `all_to_dir_path` or `things.dest_dir`, all paths are relative to `$HOME` (or
3
6
  /home/<name>), so don't include shell variable `~` or `$HOME`.
@@ -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.0'
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 -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.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - szorfein
metadata.gz.sig CHANGED
Binary file