transactable 0.4.1 → 0.4.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/README.adoc +33 -17
- data/lib/transactable/steps/check.rb +2 -2
- data/lib/transactable/steps/insert.rb +2 -2
- data/lib/transactable/steps/tee.rb +2 -2
- data/lib/transactable/steps/to.rb +2 -2
- data/lib/transactable/steps/use.rb +2 -2
- data/lib/transactable/steps/validate.rb +2 -2
- data/transactable.gemspec +4 -4
- data.tar.gz.sig +0 -0
- metadata +30 -23
- 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: e7e47f7fa9f03846876538e85d5d6213ef7bca6f4ab89ef2b4dd9ba2f2b6fc3e
|
4
|
+
data.tar.gz: 0e6d53eddaa2669e264754bf741bc2fb7d470916e31bfbbe6adfb3b6dbfa3134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51106c2916ccf9918d57943d15b925781ed96d4182c9589a4acb49d096dc9ed9ad6c69bee544421eeb7f11139a57aa721b9eb411fb1b3efe17fa5a3327acd7d3
|
7
|
+
data.tar.gz: bd529f25021dfc2e5251db19401c0d1efbc6c9b20a34da347963e3f4c67fb29e4b55e81879f4f554f96fb8c1a165497925f1044c31dff2bc0fdbaf9a9d10d849
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
:toclevels: 5
|
3
3
|
:figure-caption!:
|
4
4
|
|
5
|
-
:command_pattern_link: link:https://
|
6
|
-
:function_composition_link: link:https://
|
5
|
+
:command_pattern_link: link:https://alchemists.io/articles/command_pattern[Command Pattern]
|
6
|
+
:function_composition_link: link:https://alchemists.io/articles/ruby_function_composition[Function Composition]
|
7
7
|
:debug_link: link:https://github.com/ruby/debug[Debug]
|
8
8
|
:dry_container_link: link:https://dry-rb.org/gems/dry-container[Dry Container]
|
9
9
|
:dry_events_link: link:https://dry-rb.org/gems/dry-events[Dry Events]
|
@@ -31,18 +31,34 @@ toc::[]
|
|
31
31
|
|
32
32
|
== Setup
|
33
33
|
|
34
|
-
To install, run:
|
34
|
+
To install _with_ security, run:
|
35
|
+
|
36
|
+
[source,bash]
|
37
|
+
----
|
38
|
+
# 💡 Skip this line if you already have the public certificate installed.
|
39
|
+
gem cert --add <(curl --compressed --location https://alchemists.io/gems.pem)
|
40
|
+
gem install transactable --trust-policy HighSecurity
|
41
|
+
----
|
42
|
+
|
43
|
+
To install _without_ security, run:
|
35
44
|
|
36
45
|
[source,bash]
|
37
46
|
----
|
38
47
|
gem install transactable
|
39
48
|
----
|
40
49
|
|
41
|
-
|
50
|
+
You can also add the gem directly to your project:
|
51
|
+
|
52
|
+
[source,bash]
|
53
|
+
----
|
54
|
+
bundle add transactable
|
55
|
+
----
|
56
|
+
|
57
|
+
Once the gem is installed, you only need to require it:
|
42
58
|
|
43
59
|
[source,ruby]
|
44
60
|
----
|
45
|
-
|
61
|
+
require "transactable"
|
46
62
|
----
|
47
63
|
|
48
64
|
== Usage
|
@@ -392,8 +408,8 @@ module MySteps
|
|
392
408
|
class Join < Transactable::Steps::Abstract
|
393
409
|
prepend Transactable::Instrumentable
|
394
410
|
|
395
|
-
def initialize
|
396
|
-
super(**
|
411
|
+
def initialize(delimiter = "_", **)
|
412
|
+
super(**)
|
397
413
|
@delimiter = delimiter
|
398
414
|
end
|
399
415
|
|
@@ -520,8 +536,8 @@ The architecture of this gem is built on top of the following concepts and gems:
|
|
520
536
|
* {dry_events_link} - Allows all steps to be observable so you can subscribe to any/all events for metric, logging, and other capabilities.
|
521
537
|
* {dry_monads_link} - Critical to ensuring the entire pipeline of steps adhere to the _Railway Pattern_ and leans heavily on the `Result` object.
|
522
538
|
* link:https://dry-rb.org/gems/dry-transaction[Dry Transaction] - Specifically the concept of a _step_ where each step can have an _operation_ and/or _input_ to be processed. Instrumentation is used as well so you can have rich metrics, logging, or any other kind of observer wired up as desired.
|
523
|
-
* link:https://
|
524
|
-
* link:https://
|
539
|
+
* link:https://alchemists.io/projects/infusible[Infusible] - Coupled with {dry_container_link}, allows dependencies to be automatically injected.
|
540
|
+
* link:https://alchemists.io/projects/marameters[Marameters] - Through the use of the `.categorize` method, dynamic message passing is possible by inspecting the operation method's parameters.
|
525
541
|
|
526
542
|
=== Style Guide
|
527
543
|
|
@@ -597,19 +613,19 @@ bin/benchmark
|
|
597
613
|
|
598
614
|
💡 You can view current benchmarks at the end of the above file if you don't want to manually run them.
|
599
615
|
|
600
|
-
== link:https://
|
616
|
+
== link:https://alchemists.io/policies/license[License]
|
601
617
|
|
602
|
-
== link:https://
|
618
|
+
== link:https://alchemists.io/policies/security[Security]
|
603
619
|
|
604
|
-
== link:https://
|
620
|
+
== link:https://alchemists.io/policies/code_of_conduct[Code of Conduct]
|
605
621
|
|
606
|
-
== link:https://
|
622
|
+
== link:https://alchemists.io/policies/contributions[Contributions]
|
607
623
|
|
608
|
-
== link:https://
|
624
|
+
== link:https://alchemists.io/projects/transactable/versions[Versions]
|
609
625
|
|
610
|
-
== link:https://
|
626
|
+
== link:https://alchemists.io/community[Community]
|
611
627
|
|
612
628
|
== Credits
|
613
629
|
|
614
|
-
* Built with link:https://
|
615
|
-
* Engineered by link:https://
|
630
|
+
* Built with link:https://alchemists.io/projects/gemsmith[Gemsmith].
|
631
|
+
* Engineered by link:https://alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
|
@@ -8,8 +8,8 @@ module Transactable
|
|
8
8
|
|
9
9
|
LAST = -1
|
10
10
|
|
11
|
-
def initialize
|
12
|
-
super(*positionals, **
|
11
|
+
def initialize(*positionals, at: LAST, **)
|
12
|
+
super(*positionals, **)
|
13
13
|
@value = positionals.empty? ? base_keywords : positionals.flatten
|
14
14
|
@at = at
|
15
15
|
end
|
data/transactable.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "transactable"
|
5
|
-
spec.version = "0.4.
|
5
|
+
spec.version = "0.4.3"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
|
-
spec.homepage = "https://
|
8
|
+
spec.homepage = "https://alchemists.io/projects/transactable"
|
9
9
|
spec.summary = "A DSL for transactional workflows built atop function composition."
|
10
10
|
spec.license = "Hippocratic-2.1"
|
11
11
|
|
12
12
|
spec.metadata = {
|
13
13
|
"bug_tracker_uri" => "https://github.com/bkuhlmann/transactable/issues",
|
14
|
-
"changelog_uri" => "https://
|
15
|
-
"documentation_uri" => "https://
|
14
|
+
"changelog_uri" => "https://alchemists.io/projects/transactable/versions",
|
15
|
+
"documentation_uri" => "https://alchemists.io/projects/transactable",
|
16
16
|
"funding_uri" => "https://github.com/sponsors/bkuhlmann",
|
17
17
|
"label" => "Transactable",
|
18
18
|
"rubygems_mfa_required" => "true",
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transactable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -10,25 +10,32 @@ 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
|
-
|
13
|
+
MIIEeDCCAuCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZicm9v
|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LmlvMA0GCSqGSIb3DQEBCwUAA4IBgQAX+EGY
|
29
|
+
9RLYGxF1VLZz+G1ACQc4uyrCB6kXwI06kzUa5dF9tPXqTX9ffnz3/W8ck2IQhKzu
|
30
|
+
MKO2FVijzbDWTsZeZGglS4E+4Jxpau1lU9HhOIcKolv6LeC6UdALTFudY+GLb8Xw
|
31
|
+
REXgaJkjzzhkUSILmEnRwEbY08dVSl7ZAaxVI679vfI2yapLlIwpbBgmQTiTvPr3
|
32
|
+
qyyLUno9flYEOv9fmGHunSrM+gE0/0niGTXa5GgXBXYGS2he4LQGgSBfGp/cTwMU
|
33
|
+
rDKJRcusZ12lNBeDfgqACz/BBJF8FLodgk6rGMRZz7+ZmjjHEmpG5bQpR6Q2BuWL
|
34
|
+
XMtYk/QzaWuhiR7pWjiF8jbdd7RO6or0ohq7iFkokz/5xrtQ/vPzU2RQ3Qc6YaKw
|
35
|
+
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
|
+
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
30
37
|
-----END CERTIFICATE-----
|
31
|
-
date: 2023-
|
38
|
+
date: 2023-04-30 00:00:00.000000000 Z
|
32
39
|
dependencies:
|
33
40
|
- !ruby/object:Gem::Dependency
|
34
41
|
name: dry-container
|
@@ -162,13 +169,13 @@ files:
|
|
162
169
|
- lib/transactable/steps/use.rb
|
163
170
|
- lib/transactable/steps/validate.rb
|
164
171
|
- transactable.gemspec
|
165
|
-
homepage: https://
|
172
|
+
homepage: https://alchemists.io/projects/transactable
|
166
173
|
licenses:
|
167
174
|
- Hippocratic-2.1
|
168
175
|
metadata:
|
169
176
|
bug_tracker_uri: https://github.com/bkuhlmann/transactable/issues
|
170
|
-
changelog_uri: https://
|
171
|
-
documentation_uri: https://
|
177
|
+
changelog_uri: https://alchemists.io/projects/transactable/versions
|
178
|
+
documentation_uri: https://alchemists.io/projects/transactable
|
172
179
|
funding_uri: https://github.com/sponsors/bkuhlmann
|
173
180
|
label: Transactable
|
174
181
|
rubygems_mfa_required: 'true'
|
@@ -188,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
195
|
- !ruby/object:Gem::Version
|
189
196
|
version: '0'
|
190
197
|
requirements: []
|
191
|
-
rubygems_version: 3.4.
|
198
|
+
rubygems_version: 3.4.12
|
192
199
|
signing_key:
|
193
200
|
specification_version: 4
|
194
201
|
summary: A DSL for transactional workflows built atop function composition.
|
metadata.gz.sig
CHANGED
Binary file
|