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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 877914f1551238a6f03b03e24f4670b247a3df7339303d2b174db0ba2a60b2ff
4
- data.tar.gz: 06b545de3377911e4502f35788fe10e2034daf51a319c9d80830aa11c28588d7
3
+ metadata.gz: f333111e35b908dea1a9b61eeea86d106a8b722bb7bccb7b7398f762d852ce08
4
+ data.tar.gz: f9508c607adb457c2fda663bc3fa3bced04f94fc4a480ba964be30448036c049
5
5
  SHA512:
6
- metadata.gz: 96b18e2d349cbcde39e6c2b870d88a156ff7de0a9a0f7dc458418ef68a0610487090a8611d9068ef2e85abfc89a5f3dd1de2fd3311ccf2eba461a593b41f54f1
7
- data.tar.gz: 41ab3cf26cfbc1f908ed1064f3503fd9e6a0d83b87b76d9a6a26c475d8a3991529c0297fe1940f4972b19e0057af2bf8f14bb30af8f1e5e6a1a86f59c2eeba69
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
- new(*args, &block).tap { |cmd| cmd.execute }
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:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FileTransactions
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
data/lib/ft.rb ADDED
@@ -0,0 +1,3 @@
1
+ require 'file_transactions'
2
+
3
+ FT = FileTransactions
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.2
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
- MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFzYW1t
14
- eS5oZW5uaW5nc3Nvbi9EQz1nbWFpbC9EQz1jb20wHhcNMTgwNzE2MTYzNTMzWhcN
15
- MjAwNzE2MTYzNTMzWjAsMSowKAYDVQQDDCFzYW1teS5oZW5uaW5nc3Nvbi9EQz1n
16
- bWFpbC9EQz1jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvkgwt
17
- Zn8obnCelWttayB1BrHBLUK3b8gasRRtbNk4DzAL+EW6sHSVT2u5I7Wws7JQA5VB
18
- NaK7tgvq3CbDLVRl9NrpDCDx09To08stPxDKi6kst1nkSPAD8g0sQlW3voeQTH98
19
- 2Z2H3XUegHhu5Z9PU9T/7V/vZUzHPiPg1tX1JUIGOPAjVGsr7SUetbL171zK4S4Y
20
- tvUkIoNaph+maHttvyYB/ptiZLD53WORKd4Knw3OiJsLtrxr5hhKyQ+txQdF0P8G
21
- +FlR+Je7B0Ek3yg6fEiJgrdcajYCMo8Oe/GRtoHhi6J3LsYA620P1BSCddZQ2XeL
22
- y3rzIZyMU0iaT69nAgMBAAGjgYowgYcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
23
- HQYD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fDc6Imwu2vGvmGErJD63FB0XQ/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: 2020-06-20 00:00:00.000000000 Z
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