daemonite 0.1 → 0.1.1
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 +4 -4
- data/README.md +12 -5
- data/daemonite.gemspec +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83c22b4354294d6ab1d4ba786f449b4d4b1455bd
|
4
|
+
data.tar.gz: 5faa5bd5b52029c79832f2d824d68c1eea9b6d47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f19be74ff69ea90a0e9f795f9992e55af3f0153162957ccb292939bfc908b3dbad5d0b73ae045a21f5ac40566aa42fbaf8b00cf90f6cb6412b8f0b162b7a21a5
|
7
|
+
data.tar.gz: 32366eda543ccbc3b256a39913ffd3adb7852d904c256f2a14c49cc67f3eacc9fb3c5afae5b7eb8ec09b4cc4ec670f15bcee07e1c1dcf3254ea0511bb759e6f9
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Daemonite
|
2
2
|
|
3
3
|
Copyright (C) 2004-2018 Jürgen "eTM" Mangler <juergen.mangler@gmail.com>
|
4
4
|
|
@@ -11,9 +11,15 @@ details.
|
|
11
11
|
## Introduction
|
12
12
|
|
13
13
|
Deamonite is just syntactic sugar around Process.daemon and argparse, which are
|
14
|
-
part of standard ruby.
|
15
|
-
|
16
|
-
solution if you have to.
|
14
|
+
part of standard ruby. And it gives you a simple loop. And it only works on
|
15
|
+
*nix because it runs 'ps ax' (that rhymes). I know, thats clumsy and I'm a lazy
|
16
|
+
git. Please contribute a better solution if you have to.
|
17
|
+
|
18
|
+
## Why
|
19
|
+
|
20
|
+
After I reused similar code in about 20 projects I had make it into a gem.
|
21
|
+
Sorry. Probably much better code out there does the same, but I am too lazy to
|
22
|
+
search for it. Sorry.
|
17
23
|
|
18
24
|
## Usage
|
19
25
|
|
@@ -32,7 +38,8 @@ end.loop!
|
|
32
38
|
|
33
39
|
Everything inside the #new block is executed once. Everything inside the #run
|
34
40
|
block is executed periodically. So make sure to include sleep to not bog down
|
35
|
-
your CPU. #loop! finally starts
|
41
|
+
your CPU. Or not - listen to network connections. #loop! finally starts the
|
42
|
+
contents of #run sequentially.
|
36
43
|
|
37
44
|
In order to override options, or provide your own options at start:
|
38
45
|
|
data/daemonite.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "daemonite"
|
3
|
-
s.version = "0.1"
|
3
|
+
s.version = "0.1.1"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0"
|
6
|
-
s.summary = "Daemonite - Process.daemon and argparse wrapper."
|
6
|
+
s.summary = "Daemonite - Process.daemon and argparse wrapper for loopies."
|
7
7
|
|
8
|
-
s.description = "Daemonite - Process.daemon and argparse wrapper."
|
8
|
+
s.description = "Daemonite - Process.daemon and argparse wrapper for loopies."
|
9
9
|
|
10
10
|
s.files = Dir['{example/**/*,lib/*}'] + %w(COPYING Changelog Rakefile daemonite.gemspec README.md AUTHORS TODO)
|
11
11
|
s.require_path = 'lib'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daemonite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -10,7 +10,7 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Daemonite - Process.daemon and argparse wrapper.
|
13
|
+
description: Daemonite - Process.daemon and argparse wrapper for loopies.
|
14
14
|
email: juergen.mangler@gmail.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
@@ -48,5 +48,5 @@ rubyforge_project:
|
|
48
48
|
rubygems_version: 2.6.6
|
49
49
|
signing_key:
|
50
50
|
specification_version: 4
|
51
|
-
summary: Daemonite - Process.daemon and argparse wrapper.
|
51
|
+
summary: Daemonite - Process.daemon and argparse wrapper for loopies.
|
52
52
|
test_files: []
|