on_strum-service 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/on_strum/service/core.rb +10 -0
- data/lib/on_strum/service/instance_methods.rb +2 -0
- data/lib/on_strum/service/version.rb +1 -1
- data/lib/on_strum/service.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7131fa690f8510959fdfccd7f88c46541e9b59cec92dd8e01fdd9bc33ce364af
|
4
|
+
data.tar.gz: c0b7d320b5aad204d47c573db2e27808144f654be203c9f90483821224a7ab5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8195cc677e846f06ed52ca7672a919674156e045fbddb0147c473a698e574ff403503f5a0330caf3bd5f08e28af3a0895f377af4493a9294a850b3b18ba4cb74
|
7
|
+
data.tar.gz: 9f4c30ab307aaa38a14f7de2c1899baec4f4339ea441a374603079eff31801f743fd27214daebc1e73e8c3d667b5ffde9d8172e7ec768ff465f00e6ebee34a9b
|
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
module OnStrum
|
4
4
|
module Service
|
5
|
+
WARNING = <<~MESSAGE
|
6
|
+
📢 Note: You have both Strum::Service and OnStrum::Service installed.
|
7
|
+
You can safely migrate your services by replacing:
|
8
|
+
include Strum::Service
|
9
|
+
with:
|
10
|
+
include OnStrum::Service
|
11
|
+
|
12
|
+
All public APIs and behavior are fully compatible!
|
13
|
+
MESSAGE
|
14
|
+
|
5
15
|
module Error
|
6
16
|
require_relative 'error/runtime'
|
7
17
|
end
|
data/lib/on_strum/service.rb
CHANGED
@@ -6,10 +6,10 @@ module OnStrum
|
|
6
6
|
module Service
|
7
7
|
def self.included(base)
|
8
8
|
base.extend(OnStrum::Service::ClassMethods)
|
9
|
-
base.
|
10
|
-
end
|
9
|
+
base.include(OnStrum::Service::InstanceMethods)
|
11
10
|
|
12
|
-
|
11
|
+
::Kernel.warn(OnStrum::Service::WARNING) if defined?(Strum::Service)
|
12
|
+
end
|
13
13
|
|
14
14
|
def call
|
15
15
|
raise OnStrum::Service::Error::Runtime, OnStrum::Service::Error::Runtime::NOT_IMPLEMENTED
|