on_strum-service 1.0.0 → 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/LICENSE.txt +1 -1
- 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 +5 -3
- data/lib/on_strum.rb +1 -1
- data/on_strum-service.gemspec +1 -2
- metadata +6 -20
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
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2022 onStrum and friends
|
3
|
+
Copyright (c) 2022-2025 onStrum and friends
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -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
@@ -1,13 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require_relative 'service/core'
|
4
|
+
|
3
5
|
module OnStrum
|
4
6
|
module Service
|
5
7
|
def self.included(base)
|
6
8
|
base.extend(OnStrum::Service::ClassMethods)
|
7
|
-
base.
|
8
|
-
end
|
9
|
+
base.include(OnStrum::Service::InstanceMethods)
|
9
10
|
|
10
|
-
|
11
|
+
::Kernel.warn(OnStrum::Service::WARNING) if defined?(Strum::Service)
|
12
|
+
end
|
11
13
|
|
12
14
|
def call
|
13
15
|
raise OnStrum::Service::Error::Runtime, OnStrum::Service::Error::Runtime::NOT_IMPLEMENTED
|
data/lib/on_strum.rb
CHANGED
data/on_strum-service.gemspec
CHANGED
@@ -26,7 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(bin|lib)/|.ruby-version|on_strum-service.gemspec|LICENSE}) }
|
27
27
|
spec.require_paths = %w[lib]
|
28
28
|
|
29
|
-
spec.add_development_dependency '
|
30
|
-
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
29
|
+
spec.add_development_dependency 'rake', '~> 13.2', '>= 13.2.1'
|
31
30
|
spec.add_development_dependency 'rspec', '~> 3.12'
|
32
31
|
end
|
metadata
CHANGED
@@ -1,49 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: on_strum-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serhiy Nazarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: ffaker
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '2.21'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '2.21'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rake
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
17
|
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: '13.
|
19
|
+
version: '13.2'
|
34
20
|
- - ">="
|
35
21
|
- !ruby/object:Gem::Version
|
36
|
-
version: 13.
|
22
|
+
version: 13.2.1
|
37
23
|
type: :development
|
38
24
|
prerelease: false
|
39
25
|
version_requirements: !ruby/object:Gem::Requirement
|
40
26
|
requirements:
|
41
27
|
- - "~>"
|
42
28
|
- !ruby/object:Gem::Version
|
43
|
-
version: '13.
|
29
|
+
version: '13.2'
|
44
30
|
- - ">="
|
45
31
|
- !ruby/object:Gem::Version
|
46
|
-
version: 13.
|
32
|
+
version: 13.2.1
|
47
33
|
- !ruby/object:Gem::Dependency
|
48
34
|
name: rspec
|
49
35
|
requirement: !ruby/object:Gem::Requirement
|