file_transactions 0.1.3 → 1.1.4

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: f333111e35b908dea1a9b61eeea86d106a8b722bb7bccb7b7398f762d852ce08
4
- data.tar.gz: f9508c607adb457c2fda663bc3fa3bced04f94fc4a480ba964be30448036c049
3
+ metadata.gz: cc7e230c401f4ebcce7939c9d905b0bed0dbb6c3cc3c1627f01293b50a1cfb97
4
+ data.tar.gz: 478ebd581fd714e44fc55b29a0166a19355fcd50f6e0061f822f9030a475dace
5
5
  SHA512:
6
- metadata.gz: 531faf14f2d23343f8319534889b98a89e41bf960d64063a26f8d163dea2c6185b2793d51917b0097ecfe4d95ec5811c5679ff58e323cda99f309862d88fb35c
7
- data.tar.gz: a56db2de0ba85d0e3c806a23e0cb05b09ecaaa7bb79e10b72a39ddd81a3624b4a7a78db5053720983f8552239e26acaa74e34803a1884f51b11f8627bef0cd92
6
+ metadata.gz: e26ed37198365edcf6f45d9200ce142830178a2e3337f8af82b2176e2236eb0cb1be33457d102ec839591f53a61ce7b52368bf6e27a6d7d6349b467b5c3b21c6
7
+ data.tar.gz: 69b8566d074c3d9835173073fb927d2b44c4a55f0d7fb87ba0652541181628f3f8c80ac029fb4f0907d30e35d231b7a533d6e5055b412251bc7fed9682168902
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -54,7 +54,7 @@ module FileTransactions
54
54
  end
55
55
 
56
56
  def undo!
57
- FileUtils.copy tmp_name, name
57
+ FileUtils.copy(tmp_name, name) if File.exist? tmp_name
58
58
  end
59
59
 
60
60
  def tmp_name
@@ -38,7 +38,7 @@ module FileTransactions
38
38
  end
39
39
 
40
40
  def undo!
41
- directories.reverse_each { |dir| Dir.unlink dir }
41
+ directories.reverse_each { |dir| Dir.unlink(dir) if Dir.exist? dir }
42
42
  end
43
43
 
44
44
  def directories
@@ -51,7 +51,7 @@ module FileTransactions
51
51
  end
52
52
 
53
53
  def undo!
54
- File.unlink name
54
+ File.unlink(name) if File.exist? name
55
55
  end
56
56
  end
57
57
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FileTransactions
4
- VERSION = "0.1.3"
4
+ VERSION = "1.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_transactions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sammy Henningsson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  5ZlcHq9h5CxVt380OKaU6wMg95RJBd/kUJqmPxxlxMH8QDQinTwZmmFA9wW7PJdy
30
30
  wAx8px9LkSjTs0GVLH7VtVRWAELllsswCJktz63Adelx9fmIMgrTYgZM
31
31
  -----END CERTIFICATE-----
32
- date: 2021-02-04 00:00:00.000000000 Z
32
+ date: 2021-02-09 00:00:00.000000000 Z
33
33
  dependencies: []
34
34
  description: |
35
35
  A library for creating commands can be done and
metadata.gz.sig CHANGED
Binary file