file_transactions 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/file_transactions/base_command.rb +6 -2
- data/lib/file_transactions/version.rb +1 -1
- data/lib/ft.rb +3 -0
- metadata +21 -21
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f333111e35b908dea1a9b61eeea86d106a8b722bb7bccb7b7398f762d852ce08
|
4
|
+
data.tar.gz: f9508c607adb457c2fda663bc3fa3bced04f94fc4a480ba964be30448036c049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 531faf14f2d23343f8319534889b98a89e41bf960d64063a26f8d163dea2c6185b2793d51917b0097ecfe4d95ec5811c5679ff58e323cda99f309862d88fb35c
|
7
|
+
data.tar.gz: a56db2de0ba85d0e3c806a23e0cb05b09ecaaa7bb79e10b72a39ddd81a3624b4a7a78db5053720983f8552239e26acaa74e34803a1884f51b11f8627bef0cd92
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -7,8 +7,12 @@ module FileTransactions
|
|
7
7
|
# group commands together and/or nested inside transactions (and other
|
8
8
|
# commands).
|
9
9
|
class BaseCommand
|
10
|
-
def self.execute(*args, &block)
|
11
|
-
|
10
|
+
def self.execute(*args, **kwargs, &block)
|
11
|
+
if RUBY_VERSION < '3.0' && kwargs.empty?
|
12
|
+
new(*args, &block).tap { |cmd| cmd.execute }
|
13
|
+
else
|
14
|
+
new(*args, **kwargs, &block).tap { |cmd| cmd.execute }
|
15
|
+
end
|
12
16
|
end
|
13
17
|
|
14
18
|
# Execute the command. This will trigger the following methods:
|
data/lib/ft.rb
ADDED
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.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sammy Henningsson
|
@@ -10,27 +10,26 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
M40=
|
13
|
+
MIIDVjCCAj6gAwIBAgIBATANBgkqhkiG9w0BAQsFADAqMSgwJgYDVQQDDB9zYW1t
|
14
|
+
eS5oZW5uaW5nc3Nvbi9EQz1oZXkvREM9Y29tMB4XDTIxMDIwMjEzNTY1OFoXDTIy
|
15
|
+
MDIwMjEzNTY1OFowKjEoMCYGA1UEAwwfc2FtbXkuaGVubmluZ3Nzb24vREM9aGV5
|
16
|
+
L0RDPWNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK+SDC1mfyhu
|
17
|
+
cJ6Va21rIHUGscEtQrdvyBqxFG1s2TgPMAv4RbqwdJVPa7kjtbCzslADlUE1oru2
|
18
|
+
C+rcJsMtVGX02ukMIPHT1OjTyy0/EMqLqSy3WeRI8APyDSxCVbe+h5BMf3zZnYfd
|
19
|
+
dR6AeG7ln09T1P/tX+9lTMc+I+DW1fUlQgY48CNUayvtJR61svXvXMrhLhi29SQi
|
20
|
+
g1qmH6Zoe22/JgH+m2JksPndY5Ep3gqfDc6Imwu2vGvmGErJD63FB0XQ/wb4WVH4
|
21
|
+
l7sHQSTfKDp8SImCt1xqNgIyjw578ZG2geGLoncuxgDrbQ/UFIJ11lDZd4vLevMh
|
22
|
+
nIxTSJpPr2cCAwEAAaOBhjCBgzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
|
23
|
+
HQ4EFgQUukjj1Cd2ea6IOHDLZe0ymzs2jWkwJAYDVR0RBB0wG4EZc2FtbXkuaGVu
|
24
|
+
bmluZ3Nzb25AaGV5LmNvbTAkBgNVHRIEHTAbgRlzYW1teS5oZW5uaW5nc3NvbkBo
|
25
|
+
ZXkuY29tMA0GCSqGSIb3DQEBCwUAA4IBAQBt310FZ56E/fp/y5Wym1xb4C0owfnI
|
26
|
+
LzUqOjXWZTO7RezlBJV/qIwqt6bEjYDQR56zULJFSp4YdoDsratmQ+/kwtbHF7xf
|
27
|
+
WYkSE36mhLP2ggQFH9fXtX6XdyIlwFqwEfNW73ZrkBXGjMxLVKIS9uHdN7PoNhbS
|
28
|
+
0YjOZZD/rq1Jf+klwl/G7bBDPjn58DWlUmwzoj49goGS/UBG37RssQxRwPelKHZh
|
29
|
+
5ZlcHq9h5CxVt380OKaU6wMg95RJBd/kUJqmPxxlxMH8QDQinTwZmmFA9wW7PJdy
|
30
|
+
wAx8px9LkSjTs0GVLH7VtVRWAELllsswCJktz63Adelx9fmIMgrTYgZM
|
32
31
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
32
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
34
33
|
dependencies: []
|
35
34
|
description: |
|
36
35
|
A library for creating commands can be done and
|
@@ -56,6 +55,7 @@ files:
|
|
56
55
|
- lib/file_transactions/move_file_command.rb
|
57
56
|
- lib/file_transactions/transaction.rb
|
58
57
|
- lib/file_transactions/version.rb
|
58
|
+
- lib/ft.rb
|
59
59
|
homepage: https://github.com/sammyhenningsson/file_transactions
|
60
60
|
licenses:
|
61
61
|
- MIT
|
metadata.gz.sig
CHANGED
Binary file
|