reaver 0.10.0 → 0.10.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: 3dfb30ee44d119ba98c2d8f0aa24a12db7d333447aac2acd371a3a0a668c6685
4
- data.tar.gz: 7ce4e56102a407c06ed8895dc1a9191c1070bcf3705fe4f61c8d6af9dc9a89b2
3
+ metadata.gz: bdd577808ca0bae2cded787b089161dc9edf442705c2676ed89c8fb696a7190f
4
+ data.tar.gz: 9e83785bfffdc7a792ff630261cb39e30a165b0f3b58162015dc617f65d182b9
5
5
  SHA512:
6
- metadata.gz: 3d51222bcd09ef5f123f14d17219fee0b2e59053b3743bea8efecf303004c8c7523176fd0afec27d5b396f68ac7246cc35bd3daf911941e09de23d61fb0e90c1
7
- data.tar.gz: 98d6e1025629ac00371ae10c909363439662e80adb4d5d7ed233c34d2b1beb8921ea32868fc2b89cd7b271c21743a0b1e3d186d1c3fb5cdf3face02cc06887fe
6
+ metadata.gz: fd900ba9a85d977377b8ad011efcab4e1957b5a5334916e08245774ec8f6d15cff279e19a0fc0a35532fafceaa0acc47c67e1204f9019b67f171aa538ff4586e
7
+ data.tar.gz: 0dbf7794f0ae570ed6f742c77cbb417211dae02642951d27a77eab164859db62f8e1c7c3dcca9120aacaa8beacef54b3cbd7791d9b2135b2d1a99c1f056de62d
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.10.1
2
+ - For `all_to_dir_path` or `things.dest_dir`, all paths are relative to `$HOME` (or
3
+ /home/<name>), so don't include shell variable `~` or `$HOME`.
4
+ - unzip not interactive with `-o`.
5
+
1
6
  ## 0.10.0, release 10/2024
2
7
  - New variable for collections, all_into_dir, things.dest_dir, keep_name and
3
8
  force_download.
data/README.md CHANGED
@@ -35,7 +35,7 @@ things:
35
35
  - name: nerdtree.tar.gz
36
36
  url: https://github.com/preservim/nerdtree/archive/refs/heads/master.tar.gz
37
37
  time: 86000
38
- all_into_dir: ~/.config/pack/myvimpluggins/start
38
+ all_into_dir: .config/pack/myvimpluggins/start
39
39
  keep_name: true
40
40
  ```
41
41
 
@@ -52,7 +52,9 @@ A collection can include:
52
52
  - `things.url: <string>`
53
53
  - `time: 86000` (in second) is for search every day ( 60 * 60 * 24 ).
54
54
 
55
- If `all_into_dir` is defined, `things.dest_dir` is not used.
55
+ If `all_into_dir` is defined, `things.dest_dir` is not used.
56
+ All paths given are relative to `$HOME` so don't include `~` or any shell
57
+ variables.
56
58
 
57
59
  And start reaver simply with:
58
60
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reaver
4
- VERSION = '0.10.0'
4
+ VERSION = '0.10.1'
5
5
  end
data/lib/reaver/walk.rb CHANGED
@@ -40,7 +40,11 @@ module Reaver
40
40
 
41
41
  def check_name
42
42
  name = @filename.split('.').first
43
- @final_dest = @keep_name ? "#{@dest}/#{name}" : @dest
43
+ @final_dest = if @keep_name
44
+ "#{ENV['HOME']}/#{@dest}/#{name}"
45
+ else
46
+ "#{ENV['HOME']}/#{@dest}"
47
+ end
44
48
  end
45
49
 
46
50
  def copy_file
@@ -52,7 +56,7 @@ module Reaver
52
56
  def extract_zip
53
57
  puts "Extracting zip archive #{@filename} at #{@final_dest}..."
54
58
  FileUtils.mkdir_p @final_dest
55
- `unzip -j #{@filename} -d #{@final_dest}`
59
+ `unzip -o -j #{@filename} -d #{@final_dest}`
56
60
  end
57
61
 
58
62
  def extract_gzip
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.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - szorfein
@@ -36,7 +36,7 @@ cert_chain:
36
36
  urXgRIzALxd/xazPCnoLSXPzfJSI6Y77S1EBvhPd9RaSO8IyH9RhPDP9mnTvW2Kl
37
37
  NAUnoL+txK5a
38
38
  -----END CERTIFICATE-----
39
- date: 2024-10-06 00:00:00.000000000 Z
39
+ date: 2024-10-07 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: marcel
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- ���sv_�rl1)YKL�N8.לK���oC�*�F��.�(�0�7\Ƚ
1
+ '�7��om�� �*��VV���)�<:��y1jewk��|FwB~+a�<.b?�q/qm�,ir��X���RH�