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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 696f119acc51ed572b6d30d377e94fd6c403682f0b0b70f3e9f6d6c7c28d56a1
4
- data.tar.gz: c3b13982bb28f3b082e3a0d28fbcb63999f6997ccd10a9a03d76eabcfc3d8902
3
+ metadata.gz: 7131fa690f8510959fdfccd7f88c46541e9b59cec92dd8e01fdd9bc33ce364af
4
+ data.tar.gz: c0b7d320b5aad204d47c573db2e27808144f654be203c9f90483821224a7ab5c
5
5
  SHA512:
6
- metadata.gz: 5251dc7e864e3c73e68d1bcb3dbadc2d7e6ad67b70edf1e758d2f97b0a0ff9426e54c0bf41cb4824c2a1106ecc3ad120c882617b7b070783af9649e68fc2f26a
7
- data.tar.gz: 5cddb35de5cd273d962396edce2e7b95f7c09074452dacb6de19b7fc60833fe14d77be8a9a3013f4f3fbc99bb2aa1e2401e273bac0c9abc52818db7539a88276
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
@@ -75,6 +75,8 @@ module OnStrum
75
75
  inputs_snapshot[OnStrum::Service::InstanceMethods::DEFAULT_CTX_KEY]
76
76
  end
77
77
 
78
+ def audit; end
79
+
78
80
  def args
79
81
  inputs.slice(*inputs.keys - [OnStrum::Service::InstanceMethods::DEFAULT_CTX_KEY])
80
82
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OnStrum
4
4
  module Service
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.2'
6
6
  end
7
7
  end
@@ -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.prepend(OnStrum::Service::InstanceMethods)
8
- end
9
+ base.include(OnStrum::Service::InstanceMethods)
9
10
 
10
- def audit; end
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OnStrum
4
4
  module Service
5
- require_relative 'on_strum/service/core'
5
+ require_relative 'on_strum/service'
6
6
  end
7
7
  end
@@ -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 'ffaker', '~> 2.21'
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.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-02 00:00:00.000000000 Z
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.0'
19
+ version: '13.2'
34
20
  - - ">="
35
21
  - !ruby/object:Gem::Version
36
- version: 13.0.6
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.0'
29
+ version: '13.2'
44
30
  - - ">="
45
31
  - !ruby/object:Gem::Version
46
- version: 13.0.6
32
+ version: 13.2.1
47
33
  - !ruby/object:Gem::Dependency
48
34
  name: rspec
49
35
  requirement: !ruby/object:Gem::Requirement