kanrisuru 0.16.8 → 0.16.9

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: 19051625865d261facba9c6c32d6a91ae68cbc23e6723713c07eee7f674dba04
4
- data.tar.gz: 62485343ad12ecc892c70ad30168f30366bdcb6cc4dd2eff37aa378e63790186
3
+ metadata.gz: ffeb83d91c285f197ed82ea9faf1f2d4ed95f8394cd383354eebed18dc6ace91
4
+ data.tar.gz: 5b4d615c7754eb2d520f175d77cecafb774e2d841d9077c23b8ccb39d7fde059
5
5
  SHA512:
6
- metadata.gz: '08760e0e1d80c29dd4db38984a13aabb554321555820834f4ccb50ba48562af5e1fd932e946bb7fd223d734dcf936c199b24936d0f3a1204e70dc4b204c25f95'
7
- data.tar.gz: 5d6590c530553c36b0aea32e2dff7fe14f6ced645445d53933b4e564364a44786825fb8ae3cbc886bfe418edcc04c03bba4c8ed297c2b75ac3b31a7a1ce7483c
6
+ metadata.gz: eac9603360b49938e188cf36babef60f57106091f93d5ad1f7e74a45e523b5f235463653ea305b34d700c728382707496662212c83e59ad629f954c695644f33
7
+ data.tar.gz: 2b6214a7c61f3273f226290ad87fbf3da0eb5f401a9b6923a45779beca89b1ba7e5cbece32247136fba5b24eb8c4ea38015fc136e752d3508d62845ba24e70ba
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## Kanrisuru 0.16.9 (December 27, 2021) ##
2
+ * Use cp intead of mv for recurisive dir overwrite on upload command.
3
+
1
4
  ## Kanrisuru 0.16.8 (December 27, 2021) ##
2
5
  * Fix return value of field for dmi parser.
3
6
  * Fix upload command to copy contents of directory when transfering directories from tmp location.
@@ -12,16 +12,16 @@ module Kanrisuru
12
12
 
13
13
  ## Need to copy internal dir contents, not the tmp dir itself
14
14
  if opts[:recursive]
15
- tmp_path = "#{tmp_path}/*"
16
-
17
15
  unless dir?(remote_path)
18
16
  mkdir(remote_path, silent: true)
19
17
  end
20
- end
21
18
 
22
- result = mv(tmp_path, remote_path)
23
- raise 'Unable to move file to remote path' unless result.success?
19
+ result = cp("#{tmp_path}/*", remote_path, recursive: true)
20
+ else
21
+ result = mv(tmp_path, remote_path)
22
+ end
24
23
 
24
+ raise "Unable to move file to remote path - #{result.command.raw_result}" unless result.success?
25
25
  stat(remote_path)
26
26
  ensure
27
27
  rm(tmp_path, force: true) if inode?(tmp_path)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.16.8'
4
+ VERSION = '0.16.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kanrisuru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.8
4
+ version: 0.16.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mammina