serviced 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +34 -0
- data/LICENSE.txt +21 -0
- data/README.md +555 -0
- data/lib/serviced/configuration.rb +31 -0
- data/lib/serviced/errors.rb +37 -0
- data/lib/serviced/flow.rb +154 -0
- data/lib/serviced/query.rb +88 -0
- data/lib/serviced/result.rb +158 -0
- data/lib/serviced/result_helpers.rb +26 -0
- data/lib/serviced/service.rb +73 -0
- data/lib/serviced/typed.rb +105 -0
- data/lib/serviced/version.rb +5 -0
- data/lib/serviced.rb +79 -0
- metadata +83 -0
metadata
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: serviced
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Leonardo Bernardelli
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: activemodel
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '7.0'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '9.0'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: '7.0'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '9.0'
|
|
32
|
+
description: |
|
|
33
|
+
Serviced is a small framework for building service objects. Inputs are
|
|
34
|
+
declared as typed, immutable attributes (backed by ActiveModel), can be
|
|
35
|
+
validated with the ActiveModel validation DSL, and every call returns an
|
|
36
|
+
explicit Success or Failure result. Services compose into flows that run
|
|
37
|
+
with or without a database transaction.
|
|
38
|
+
email:
|
|
39
|
+
- leobernardelli@gmail.com
|
|
40
|
+
executables: []
|
|
41
|
+
extensions: []
|
|
42
|
+
extra_rdoc_files: []
|
|
43
|
+
files:
|
|
44
|
+
- CHANGELOG.md
|
|
45
|
+
- LICENSE.txt
|
|
46
|
+
- README.md
|
|
47
|
+
- lib/serviced.rb
|
|
48
|
+
- lib/serviced/configuration.rb
|
|
49
|
+
- lib/serviced/errors.rb
|
|
50
|
+
- lib/serviced/flow.rb
|
|
51
|
+
- lib/serviced/query.rb
|
|
52
|
+
- lib/serviced/result.rb
|
|
53
|
+
- lib/serviced/result_helpers.rb
|
|
54
|
+
- lib/serviced/service.rb
|
|
55
|
+
- lib/serviced/typed.rb
|
|
56
|
+
- lib/serviced/version.rb
|
|
57
|
+
homepage: https://github.com/lbernardelli/serviced
|
|
58
|
+
licenses:
|
|
59
|
+
- MIT
|
|
60
|
+
metadata:
|
|
61
|
+
source_code_uri: https://github.com/lbernardelli/serviced
|
|
62
|
+
changelog_uri: https://github.com/lbernardelli/serviced/blob/main/CHANGELOG.md
|
|
63
|
+
bug_tracker_uri: https://github.com/lbernardelli/serviced/issues
|
|
64
|
+
rubygems_mfa_required: 'true'
|
|
65
|
+
rdoc_options: []
|
|
66
|
+
require_paths:
|
|
67
|
+
- lib
|
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
|
+
requirements:
|
|
70
|
+
- - ">="
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: '3.1'
|
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
|
+
requirements:
|
|
75
|
+
- - ">="
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '0'
|
|
78
|
+
requirements: []
|
|
79
|
+
rubygems_version: 3.6.9
|
|
80
|
+
specification_version: 4
|
|
81
|
+
summary: Typed, immutable service objects with Success/Failure results and composable
|
|
82
|
+
flows.
|
|
83
|
+
test_files: []
|