service_skeleton 0.0.0.1.ENOTAG → 0.0.0.2.g46c1e0e
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 +5 -5
- data/.gitignore +0 -2
- data/.rubocop.yml +114 -9
- data/.travis.yml +11 -0
- data/README.md +153 -279
- data/lib/service_skeleton/background_worker.rb +80 -0
- data/lib/service_skeleton/config.rb +18 -78
- data/lib/service_skeleton/config_variable.rb +8 -29
- data/lib/service_skeleton/config_variables.rb +68 -54
- data/lib/service_skeleton/error.rb +3 -5
- data/lib/service_skeleton/filtering_logger.rb +0 -2
- data/lib/service_skeleton/logging_helpers.rb +3 -10
- data/lib/service_skeleton/metrics_methods.rb +13 -28
- data/lib/service_skeleton/signal_handler.rb +183 -0
- data/lib/service_skeleton.rb +145 -22
- data/service_skeleton.gemspec +9 -10
- metadata +19 -102
- data/.editorconfig +0 -7
- data/.git-blame-ignore-revs +0 -2
- data/.github/workflows/ci.yml +0 -50
- data/lib/service_skeleton/config_class.rb +0 -16
- data/lib/service_skeleton/config_variable/boolean.rb +0 -21
- data/lib/service_skeleton/config_variable/enum.rb +0 -27
- data/lib/service_skeleton/config_variable/float.rb +0 -25
- data/lib/service_skeleton/config_variable/integer.rb +0 -25
- data/lib/service_skeleton/config_variable/kv_list.rb +0 -26
- data/lib/service_skeleton/config_variable/path_list.rb +0 -13
- data/lib/service_skeleton/config_variable/string.rb +0 -18
- data/lib/service_skeleton/config_variable/url.rb +0 -36
- data/lib/service_skeleton/config_variable/yaml_file.rb +0 -42
- data/lib/service_skeleton/generator.rb +0 -165
- data/lib/service_skeleton/metric_method_name.rb +0 -9
- data/lib/service_skeleton/runner.rb +0 -46
- data/lib/service_skeleton/service_name.rb +0 -20
- data/lib/service_skeleton/signal_manager.rb +0 -202
- data/lib/service_skeleton/signals_methods.rb +0 -15
- data/lib/service_skeleton/ultravisor_children.rb +0 -20
- data/lib/service_skeleton/ultravisor_loggerstash.rb +0 -11
- data/ultravisor/.yardopts +0 -1
- data/ultravisor/Guardfile +0 -9
- data/ultravisor/README.md +0 -404
- data/ultravisor/lib/ultravisor/child/call.rb +0 -21
- data/ultravisor/lib/ultravisor/child/call_receiver.rb +0 -14
- data/ultravisor/lib/ultravisor/child/cast.rb +0 -16
- data/ultravisor/lib/ultravisor/child/cast_receiver.rb +0 -11
- data/ultravisor/lib/ultravisor/child/process_cast_call.rb +0 -39
- data/ultravisor/lib/ultravisor/child.rb +0 -481
- data/ultravisor/lib/ultravisor/error.rb +0 -25
- data/ultravisor/lib/ultravisor/logging_helpers.rb +0 -32
- data/ultravisor/lib/ultravisor.rb +0 -216
- data/ultravisor/spec/example_group_methods.rb +0 -19
- data/ultravisor/spec/example_methods.rb +0 -8
- data/ultravisor/spec/spec_helper.rb +0 -52
- data/ultravisor/spec/ultravisor/add_child_spec.rb +0 -79
- data/ultravisor/spec/ultravisor/child/call_spec.rb +0 -121
- data/ultravisor/spec/ultravisor/child/cast_spec.rb +0 -111
- data/ultravisor/spec/ultravisor/child/id_spec.rb +0 -21
- data/ultravisor/spec/ultravisor/child/new_spec.rb +0 -152
- data/ultravisor/spec/ultravisor/child/restart_delay_spec.rb +0 -40
- data/ultravisor/spec/ultravisor/child/restart_spec.rb +0 -70
- data/ultravisor/spec/ultravisor/child/run_spec.rb +0 -95
- data/ultravisor/spec/ultravisor/child/shutdown_spec.rb +0 -124
- data/ultravisor/spec/ultravisor/child/spawn_spec.rb +0 -107
- data/ultravisor/spec/ultravisor/child/unsafe_instance_spec.rb +0 -55
- data/ultravisor/spec/ultravisor/child/wait_spec.rb +0 -32
- data/ultravisor/spec/ultravisor/new_spec.rb +0 -71
- data/ultravisor/spec/ultravisor/remove_child_spec.rb +0 -49
- data/ultravisor/spec/ultravisor/run_spec.rb +0 -334
- data/ultravisor/spec/ultravisor/shutdown_spec.rb +0 -106
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ed4f92117648407bc8af28119fe5fa904950718b
|
4
|
+
data.tar.gz: 7db90b0421844b8c24a44b63f82bc8ef99916b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a45aa55d9cde559f7a4f638d862ad6d1ec31c54c84570409cb5f566823a014c810ad100a14788431b7b02cc623dbed016ec1a91a97bfcf8a5b390ecf9b33cd87
|
7
|
+
data.tar.gz: 3dd46dc13f6ec1bcece56b16079a1ca6eb2a2864f7ccf6feb30d8b6eb600f0abb899678495c6331094b9bb6c9a7d796eee440efbf5c8de1e2e154dd973158221
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,11 +1,116 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.4
|
3
|
+
DisabledByDefault: true
|
4
|
+
Exclude:
|
5
|
+
- 'db/schema.rb'
|
6
|
+
- 'bundle/**/*'
|
7
|
+
- 'vendor/**/*'
|
8
|
+
- 'node_modules/**/*'
|
9
|
+
- 'public/**/*'
|
3
10
|
|
4
|
-
|
5
|
-
|
6
|
-
|
11
|
+
# Prefer &&/|| over and/or.
|
12
|
+
Style/AndOr:
|
13
|
+
Enabled: true
|
7
14
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
15
|
+
# Do not use braces for hash literals when they are the last argument of a
|
16
|
+
# method call.
|
17
|
+
Style/BracesAroundHashParameters:
|
18
|
+
Enabled: true
|
19
|
+
|
20
|
+
# Align `when` with `case`.
|
21
|
+
Layout/CaseIndentation:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
# Align comments with method definitions.
|
25
|
+
Layout/CommentIndentation:
|
26
|
+
Enabled: true
|
27
|
+
|
28
|
+
# No extra empty lines.
|
29
|
+
Layout/EmptyLines:
|
30
|
+
Enabled: true
|
31
|
+
|
32
|
+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
33
|
+
Style/HashSyntax:
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
# Two spaces, no tabs (for indentation).
|
37
|
+
Layout/IndentationWidth:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
Layout/SpaceAfterColon:
|
41
|
+
Enabled: true
|
42
|
+
|
43
|
+
Layout/SpaceAfterComma:
|
44
|
+
Enabled: true
|
45
|
+
|
46
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
47
|
+
Enabled: true
|
48
|
+
|
49
|
+
Layout/SpaceAroundKeyword:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
Layout/SpaceAroundOperators:
|
53
|
+
Enabled: true
|
54
|
+
|
55
|
+
Layout/SpaceBeforeFirstArg:
|
56
|
+
Enabled: true
|
57
|
+
|
58
|
+
# Defining a method with parameters needs parentheses.
|
59
|
+
Style/MethodDefParentheses:
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
# Use `foo {}` not `foo{}`.
|
63
|
+
Layout/SpaceBeforeBlockBraces:
|
64
|
+
Enabled: true
|
65
|
+
|
66
|
+
# Use `foo { bar }` not `foo {bar}`.
|
67
|
+
Layout/SpaceInsideBlockBraces:
|
68
|
+
Enabled: true
|
69
|
+
|
70
|
+
# Use `{ a: 1 }` not `{a:1}`.
|
71
|
+
Layout/SpaceInsideHashLiteralBraces:
|
72
|
+
Enabled: true
|
73
|
+
|
74
|
+
Layout/SpaceInsideParens:
|
75
|
+
Enabled: true
|
76
|
+
|
77
|
+
# Detect hard tabs, no hard tabs.
|
78
|
+
Layout/Tab:
|
79
|
+
Enabled: true
|
80
|
+
|
81
|
+
# Blank lines should not have any spaces.
|
82
|
+
Layout/TrailingBlankLines:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
# No trailing whitespace.
|
86
|
+
Layout/TrailingWhitespace:
|
87
|
+
Enabled: true
|
88
|
+
|
89
|
+
Lint/Debugger:
|
90
|
+
Enabled: true
|
91
|
+
|
92
|
+
Layout/BlockAlignment:
|
93
|
+
Enabled: true
|
94
|
+
|
95
|
+
# Align `end` with the matching keyword or starting expression except for
|
96
|
+
# assignments, where it should be aligned with the LHS.
|
97
|
+
Layout/EndAlignment:
|
98
|
+
Enabled: true
|
99
|
+
EnforcedStyleAlignWith: variable
|
100
|
+
|
101
|
+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
102
|
+
Lint/RequireParentheses:
|
103
|
+
Enabled: true
|
104
|
+
|
105
|
+
Lint/ShadowingOuterLocalVariable:
|
106
|
+
Enabled: true
|
107
|
+
|
108
|
+
Layout/MultilineMethodCallIndentation:
|
109
|
+
Enabled: true
|
110
|
+
EnforcedStyle: indented
|
111
|
+
|
112
|
+
Layout/AlignHash:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
Bundler/OrderedGems:
|
116
|
+
Enabled: false
|