kanrisuru 0.8.7 → 0.8.8

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: 401e4f3fbff30e96891e65a0cb9d1916d022f1128c3667de554776c775ea0b19
4
- data.tar.gz: 7e560e7e8c6e217fab2bf8b5afbe9c57224e488bac510cc58305d990880b0a7e
3
+ metadata.gz: 389f21ebed2d778e05d949ab651e91e7fd959c4249c32d936355fa1f093802db
4
+ data.tar.gz: f83d7f3385b871890a856470a140d6ce2c2efc7ceefdc4f6fe8b9e2f7a454beb
5
5
  SHA512:
6
- metadata.gz: 715a07d652de292cdc587b49b4a5b43b373e5eac5c225439c5fb15a464a860a8cdee43a13c5a2e2439c13f21d2afb0d8000deaf3146148febb7b2b0fb9114c21
7
- data.tar.gz: f1ff0104249a8524d3d8d6c8bf7730af8ad0a55e84ef5a1c9ec75926c8f922c11aa7e46e9086dda36c2a0e6373008649e279182a1cc0aa8e74187bbab3f52e57
6
+ metadata.gz: '0185c24a3ff1bdbcc386999f63fb8544a18e8bf9c824e94d001be81785e6a10b7fb47cbcef421399e7e6b1bff805385d5dd4b253b8be7ce2b93fa94022d38596'
7
+ data.tar.gz: 74557bd5df7e1d10223a965d6c3e38fa8bed84f77ff4bfb75614abec344fd088299c7b4e92f9fb08b7aad1fa9630ee8c93d208dd40d3a4189ddf157bb048c694
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## Kanrisuru 0.8.8 (August 21, 2021) ##
2
+ * Add shorthand notation for tar command actions, such as `x` for `extract`, `t` for `list`, and `c` for `create`.
3
+
1
4
  ## Kanrisuru 0.8.7 (August 21, 2021) ##
2
5
  * Fix `FileInfo` field for ls command. Was set to `memory_blocks`, but was incorrect, corrected this to `hard_links`.
3
6
 
@@ -24,7 +24,7 @@ module Kanrisuru
24
24
  set_compression(command, compress) if compress
25
25
 
26
26
  case action
27
- when 'list'
27
+ when 'list', 't'
28
28
  command.append_flag('-t')
29
29
  command.append_arg('--occurrence', opts[:occurrence])
30
30
  command.append_flag('--label', opts[:label])
@@ -38,9 +38,10 @@ module Kanrisuru
38
38
  FilePath.new(item)
39
39
  end
40
40
  end
41
- when 'extract', 'get'
41
+ when 'extract', 'get', 'x'
42
42
  command.append_flag('-x')
43
43
  command.append_arg('--occurrence', opts[:occurrence])
44
+
44
45
  command.append_flag('--no-same-owner', opts[:no_same_owner])
45
46
  command.append_flag('--no-same-permissions', opts[:no_same_permissions])
46
47
  command.append_flag('--no-selinux', opts[:no_selinux])
@@ -64,7 +65,7 @@ module Kanrisuru
64
65
 
65
66
  execute_shell(command)
66
67
  Kanrisuru::Result.new(command)
67
- when 'create'
68
+ when 'create', 'c'
68
69
  command.append_flag('-c')
69
70
  command.append_flag('--multi-volume', opts[:multi_volume])
70
71
 
@@ -81,7 +82,7 @@ module Kanrisuru
81
82
  execute_shell(command)
82
83
 
83
84
  Kanrisuru::Result.new(command)
84
- when 'append'
85
+ when 'append', 'r'
85
86
  command.append_flag('-r')
86
87
 
87
88
  if Kanrisuru::Util.present?(paths)
@@ -91,7 +92,7 @@ module Kanrisuru
91
92
 
92
93
  execute_shell(command)
93
94
  Kanrisuru::Result.new(command)
94
- when 'catenate', 'concat'
95
+ when 'catenate', 'concat', 'A'
95
96
  command.append_flag('-A')
96
97
 
97
98
  if Kanrisuru::Util.present?(paths)
@@ -101,7 +102,7 @@ module Kanrisuru
101
102
 
102
103
  execute_shell(command)
103
104
  Kanrisuru::Result.new(command)
104
- when 'update'
105
+ when 'update', 'u'
105
106
  command.append_flag('-u')
106
107
 
107
108
  if Kanrisuru::Util.present?(paths)
@@ -111,7 +112,7 @@ module Kanrisuru
111
112
 
112
113
  execute_shell(command)
113
114
  Kanrisuru::Result.new(command)
114
- when 'diff', 'compare'
115
+ when 'diff', 'compare', 'd'
115
116
  command.append_flag('-d')
116
117
  command.append_arg('--occurrence', opts[:occurrence])
117
118
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.8.7'
4
+ VERSION = '0.8.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kanrisuru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mammina
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-21 00:00:00.000000000 Z
11
+ date: 2021-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec