resurrected_god 1.1.0 → 1.1.1

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: 48f0fc6744473a296e2203abfbfb1d723166166e04e1f371af3575dc2c69b94c
4
- data.tar.gz: 718a83da60bdcaae421163d7e9d7104d7de146945d7d812ae76b970260e11586
3
+ metadata.gz: e65b14e71958dd94729eeba93780283ccdb73e49a202859d816b94832656436f
4
+ data.tar.gz: 9a32895548e3f07d7a0e0f0907475d20217da6fe58e2227fcc5c852644b968b4
5
5
  SHA512:
6
- metadata.gz: 3e202fdde19b9808a0b323c984ef1c84a140e30763ffde8fccea8fa06639e267ddf7da16f533bd6b4024748ad21c030e2a43d36ddcea989fc03b2608bcc89c99
7
- data.tar.gz: af645648a614834208a01c543411e54a641172ee201061565312d8d09816977635ee26d75136eb735e3bb9b2d460eee66dfe33e49434f82a64abbdef1281797e
6
+ metadata.gz: 37610457947e042fbeaa46aca0087b5f8cf022188ad9049c0512decf13136a879f19b8993da7ace3035dd574163d94fdd2ffb63bb148ab13513aaa45bcb29044
7
+ data.tar.gz: f0cc1a3ffc8a58c0c6b5285a30134a6a4657ed7479913b4bcfd66ebaf7978eba1aaf2ac3a409543ecf17caf84b872e48fa16b841056b56a07aa33eaadbcd4e3d
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.1.1 / 2023-12-29
2
+
3
+ * Minor Changes
4
+ * Add drb and syslog to runtime dependencies for Ruby 3.4+
5
+
1
6
  ## 1.1.0 / 2022-06-29
2
7
 
3
8
  * Major Changes
data/README.md CHANGED
@@ -2,7 +2,7 @@ ResurrectedGod: The Ruby Framework for Process Management
2
2
  ==============================================
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/resurrected_god.svg)](https://badge.fury.io/rb/resurrected_god)
5
- [![CI](https://github.com/mishina2228/resurrected_god/actions/workflows/ci.yml/badge.svg)](https://github.com/mishina2228/resurrected_god/actions/workflows/ci.yml)
5
+ [![Test](https://github.com/mishina2228/resurrected_god/actions/workflows/test.yml/badge.svg)](https://github.com/mishina2228/resurrected_god/actions/workflows/test.yml)
6
6
  [![Documentation](https://img.shields.io/badge/docs-rubydoc.info-blue.svg)](https://rubydoc.info/gems/resurrected_god)
7
7
  [![Maintainability](https://api.codeclimate.com/v1/badges/27b37a69e634eba75483/maintainability)](https://codeclimate.com/github/mishina2228/resurrected_god/maintainability)
8
8
  [![codecov](https://codecov.io/gh/mishina2228/resurrected_god/branch/master/graph/badge.svg?token=K1DJPS9PSU)](https://codecov.io/gh/mishina2228/resurrected_god)
@@ -27,7 +27,7 @@ module God
27
27
  def dispatch
28
28
  if %w[load status signal log quit terminate].include?(@command)
29
29
  setup
30
- send("#{@command}_command")
30
+ send(:"#{@command}_command")
31
31
  elsif %w[start stop restart monitor unmonitor remove].include?(@command)
32
32
  setup
33
33
  lifecycle_command
@@ -48,13 +48,13 @@ module God
48
48
  active = pid && System::Process.new(pid).exists?
49
49
 
50
50
  if running && active
51
- info.concat(['process is running'])
51
+ info.push('process is running')
52
52
  true
53
53
  elsif !running && !active
54
- info.concat(['process is not running'])
54
+ info.push('process is not running')
55
55
  true
56
56
  else
57
- info.concat(['process is not running']) if running
57
+ info.push('process is not running') if running
58
58
  false
59
59
  end
60
60
  end
data/lib/god/contact.rb CHANGED
@@ -28,7 +28,7 @@ module God
28
28
  end
29
29
 
30
30
  def arg(name)
31
- instance_variable_get("@#{name}") || self.class.instance_variable_get("@#{name}")
31
+ instance_variable_get(:"@#{name}") || self.class.instance_variable_get(:"@#{name}")
32
32
  end
33
33
 
34
34
  # Normalize the given notify specification into canonical form.
data/lib/god/process.rb CHANGED
@@ -253,7 +253,7 @@ module God
253
253
  $stdout.reopen(w)
254
254
  r.close
255
255
  pid = self.spawn(command)
256
- puts pid.to_s # send pid back to forker
256
+ puts pid # send pid back to forker
257
257
  exit!(0)
258
258
  end
259
259
 
data/lib/god/timeline.rb CHANGED
@@ -16,7 +16,7 @@ module God
16
16
  #
17
17
  # Returns Timeline
18
18
  def push(val)
19
- concat([val])
19
+ super
20
20
  shift if size > @max_size
21
21
  end
22
22
 
data/lib/god/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module God
4
4
  # The String version number for this package.
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
  end
data/lib/god/watch.rb CHANGED
@@ -284,7 +284,7 @@ module God
284
284
  before_items = behaviors
285
285
  before_items += [condition] if condition
286
286
  before_items.each do |b|
287
- info = b.send("before_#{action}")
287
+ info = b.send(:"before_#{action}")
288
288
  if info
289
289
  msg = "#{name} before_#{action}: #{info} (#{b.base_name})"
290
290
  applog(self, :info, msg)
@@ -304,7 +304,7 @@ module God
304
304
  after_items = behaviors
305
305
  after_items += [condition] if condition
306
306
  after_items.each do |b|
307
- info = b.send("after_#{action}")
307
+ info = b.send(:"after_#{action}")
308
308
  if info
309
309
  msg = "#{name} after_#{action}: #{info} (#{b.base_name})"
310
310
  applog(self, :info, msg)
data/lib/god.rb CHANGED
@@ -124,7 +124,7 @@ if $load_god
124
124
  class Module
125
125
  def safe_attr_accessor(*args)
126
126
  args.each do |arg|
127
- define_method("#{arg}=".intern) do |other|
127
+ define_method(:"#{arg}=") do |other|
128
128
  abort "God.#{arg} must be set before any Tasks are defined" if !running && inited
129
129
 
130
130
  if running && inited
@@ -132,11 +132,11 @@ if $load_god
132
132
  return
133
133
  end
134
134
 
135
- instance_variable_set("@#{arg}".intern, other)
135
+ instance_variable_set(:"@#{arg}", other)
136
136
  end
137
137
 
138
138
  define_method(arg) do
139
- instance_variable_get("@#{arg}".intern)
139
+ instance_variable_get(:"@#{arg}")
140
140
  end
141
141
  end
142
142
  end
@@ -461,7 +461,7 @@ if $load_god
461
461
  # Returns true on success, false if all tasks could not be stopped within 10
462
462
  # seconds
463
463
  def self.stop_all
464
- watches.sort.each do |_name, w|
464
+ watches.sort.each do |(_name, w)|
465
465
  Thread.new do
466
466
  w.action(:stop)
467
467
  w.unmonitor if w.state != :unmonitored
metadata CHANGED
@@ -1,18 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resurrected_god
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
8
8
  - Kevin Clark
9
9
  - Eric Lindvall
10
10
  - mishina2228
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-06-29 00:00:00.000000000 Z
15
- dependencies: []
14
+ date: 2023-12-29 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: drb
18
+ requirement: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '2.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: syslog
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - "~>"
35
+ - !ruby/object:Gem::Version
36
+ version: '0.1'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '0.1'
16
44
  description: An easy to configure, easy to extend monitoring framework written in
17
45
  Ruby.
18
46
  email:
@@ -91,8 +119,8 @@ metadata:
91
119
  changelog_uri: https://github.com/mishina2228/resurrected_god/blob/master/History.md
92
120
  homepage_uri: https://github.com/mishina2228/resurrected_god
93
121
  rubygems_mfa_required: 'true'
94
- source_code_uri: https://github.com/mishina2228/resurrected_god/tree/v1.1.0
95
- post_install_message:
122
+ source_code_uri: https://github.com/mishina2228/resurrected_god/tree/v1.1.1
123
+ post_install_message:
96
124
  rdoc_options: []
97
125
  require_paths:
98
126
  - lib
@@ -108,8 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
136
  - !ruby/object:Gem::Version
109
137
  version: '0'
110
138
  requirements: []
111
- rubygems_version: 3.3.7
112
- signing_key:
139
+ rubygems_version: 3.4.10
140
+ signing_key:
113
141
  specification_version: 4
114
142
  summary: Process monitoring framework.
115
143
  test_files: []