humble_rpi-plugin-logger 0.1.0
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 +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/humble_rpi-plugin-logger.rb +37 -0
- metadata +68 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 57edc08bf637d1fa56cc52ea7d6e5c8f9cf42182
|
|
4
|
+
data.tar.gz: 925ae726ea469fd723269c085629aef7d539b873
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: f76ef4e195d2517667f3da765acbb5a9bb748d6b3422d5f693ef6566515a474ef0db161329dc66c92e3b372d781c78460b003f4e2154c3ff8d81cb2949378cad
|
|
7
|
+
data.tar.gz: cdd0f2bd887efeaad1517a5a795097590964da9bfdf95c3c7402ae6ad4ae28ce640afd34859700f525fe436a9e9c4f783e1ab376247d42564d7c9ada9f0b19fb
|
checksums.yaml.gz.sig
ADDED
|
Binary file
|
data.tar.gz.sig
ADDED
|
Binary file
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
# file: humble_rpi-plugin-logger.rb
|
|
4
|
+
|
|
5
|
+
require 'logger'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class HumbleRPiPluginLogger
|
|
9
|
+
|
|
10
|
+
def initialize(settings: {}, variables: {})
|
|
11
|
+
|
|
12
|
+
@log = Logger.new(settings[:filepath] || 'hrpi.log')
|
|
13
|
+
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def method_missing(method_name, *args)
|
|
17
|
+
@log.info "method %s invoked; args: %s" % [method_name, args]
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def respond_to?(name)
|
|
21
|
+
true
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def start()
|
|
25
|
+
|
|
26
|
+
@log.info 'on_start() invoked'
|
|
27
|
+
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
alias on_start start
|
|
31
|
+
|
|
32
|
+
def on_exit()
|
|
33
|
+
@log.info 'on_exit() invoked'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: humble_rpi-plugin-logger
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- James Robertson
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain:
|
|
11
|
+
- |
|
|
12
|
+
-----BEGIN CERTIFICATE-----
|
|
13
|
+
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
|
14
|
+
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
|
15
|
+
8ixkARkWAmV1MB4XDTE1MDgwNjE0NDQxNFoXDTE2MDgwNTE0NDQxNFowSDESMBAG
|
|
16
|
+
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
|
17
|
+
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
|
18
|
+
ggEBAKWcYxfnZS+/mGLS4r1K1hVsm5/5N1jiPdkNpNoyz4rvOE3njkCe9T6sWSeu
|
|
19
|
+
UVoo0rWXyRm8hiLDLEYkKJ4ZMQ9+LBLC5hBqMWVjtjli6CQH4nd5lmCKLJo06y0a
|
|
20
|
+
bsq55PHFr84JhdB/lDV/tuFi3EAPB25b9dyFyfxvL6qKEsjJPPd5HeqDrk9v3JN2
|
|
21
|
+
va1+pibznyOkhEG8K29QZSspo5yM6mddNdgsPGf9XDMbx06aOiaDuV29FLIyiJF5
|
|
22
|
+
glncF23mfrW4vMlGAQtN7jwdBMMlagTKL8Z/YcJIWSPMdH044/5NGfb8nBQT2it1
|
|
23
|
+
LZxWn+tJ9Nmzw8yxiH1QdjsCl6kCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUxwblKjn0nc7iNhRJf6FLolNIqk0wJgYDVR0RBB8w
|
|
25
|
+
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAW8YbcYNl
|
|
27
|
+
dZ0MAII9+bgW8zBZZsC2LTEDaga5yykdojhuCLixJk5d+G2zJJuPzknueq0CxVp1
|
|
28
|
+
bY8TAPeCsWOITToVPwfQXFz0HN5RGEDREFfjcM8Eg9p25KghgzKhbBYB/mdGvBdr
|
|
29
|
+
1BPnBs66xSQ2lEl8oAjLSNugdSL6hOroHw71s3gOfbZgswihtwwhxDEJNsdqUb76
|
|
30
|
+
hztqxx9LVYLCifBE9vzu/4pgSutPXGpSmb/OdwQMxLnGYD0GX1HJi12Kua+y1dpJ
|
|
31
|
+
6Cwh3JJG62S8vdHA4rqChtgGMLyAfghR7pB1IlXKHW2lQifMf4I4N/GAR9wRrkQK
|
|
32
|
+
VHjMoTBL/D0vIg==
|
|
33
|
+
-----END CERTIFICATE-----
|
|
34
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
|
35
|
+
dependencies: []
|
|
36
|
+
description:
|
|
37
|
+
email: james@r0bertson.co.uk
|
|
38
|
+
executables: []
|
|
39
|
+
extensions: []
|
|
40
|
+
extra_rdoc_files: []
|
|
41
|
+
files:
|
|
42
|
+
- lib/humble_rpi-plugin-logger.rb
|
|
43
|
+
homepage: https://github.com/jrobertson/humble_rpi-plugin-logger
|
|
44
|
+
licenses:
|
|
45
|
+
- MIT
|
|
46
|
+
metadata: {}
|
|
47
|
+
post_install_message:
|
|
48
|
+
rdoc_options: []
|
|
49
|
+
require_paths:
|
|
50
|
+
- lib
|
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - ">="
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '0'
|
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '0'
|
|
61
|
+
requirements: []
|
|
62
|
+
rubyforge_project:
|
|
63
|
+
rubygems_version: 2.4.8
|
|
64
|
+
signing_key:
|
|
65
|
+
specification_version: 4
|
|
66
|
+
summary: A Humble RPi plugin which listens and logs the messages sent to plugins from
|
|
67
|
+
within the HumbleRPi gem.
|
|
68
|
+
test_files: []
|
metadata.gz.sig
ADDED
|
Binary file
|