humble_rpi-plugin-rsf 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7ef1f68aad3284098b0544fef4a0429c91f4c18a
4
+ data.tar.gz: 2f4daf034cc7c7a47e00ae713cff8e642cd97b65
5
+ SHA512:
6
+ metadata.gz: 53c7c7c7862ebbaf48863d24e1f4f10908f007dca21b288942b6e9a94b7d083de34d452f4a13028c7855b2bd29d6979ac6e0d4b092ab4b9390dc5bf322af5977
7
+ data.tar.gz: 35dd29e2eb59d3b25e0b375ee3facfebacf9227a8d345d5603b448fdc481fa54014eb8b0ff48a9c87912fa5e681aae042b846eaf6d32c947babaaa0484bf37d6
Binary file
Binary file
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: humble_rpi-plugin-rsf.rb
4
+
5
+ require 'rscript'
6
+ require 'spstrigger_execute'
7
+
8
+
9
+ class HumbleRPiPluginRsf
10
+
11
+ def initialize(settings: {}, variables: {})
12
+
13
+ @ste = SPSTriggerExecute.new settings[:lookup]
14
+ @rscript = RScript.new
15
+
16
+ end
17
+
18
+ def on_do_message(message)
19
+
20
+ a = @ste.mae '', message
21
+
22
+ a.each do |type, x|
23
+
24
+ next unless type == :rse
25
+
26
+ code, args = @rscript.read x
27
+ eval code
28
+
29
+ end
30
+
31
+ end
32
+
33
+ end
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: humble_rpi-plugin-rsf
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/IsZAEZFg5qYW1lc3JvYmVydHNvbj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0JtWVEbwyCB90iVvfG2AsvoE0WPFZ1IcPkl91Xcwgv
31
+ Kk7Mus8AEsDQSSAs+ZoLdwjJtSvb+w2GusqaQX7j4AdIddHtQ8WOi6K9Y6xokPZh
32
+ P1UqHPsAWbp8fQ==
33
+ -----END CERTIFICATE-----
34
+ date: 2015-06-27 00:00:00.000000000 Z
35
+ dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: spstrigger_execute
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.4'
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 0.4.3
46
+ type: :runtime
47
+ prerelease: false
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '0.4'
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 0.4.3
56
+ - !ruby/object:Gem::Dependency
57
+ name: rscript
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.2'
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 0.2.2
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '0.2'
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 0.2.2
76
+ description:
77
+ email: james@r0bertson.co.uk
78
+ executables: []
79
+ extensions: []
80
+ extra_rdoc_files: []
81
+ files:
82
+ - lib/humble_rpi-plugin-rsf.rb
83
+ homepage: https://github.com/jrobertson/humble_rpi-plugin-rsf
84
+ licenses:
85
+ - MIT
86
+ metadata: {}
87
+ post_install_message:
88
+ rdoc_options: []
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ requirements: []
102
+ rubyforge_project:
103
+ rubygems_version: 2.4.6
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: humble_rpi-plugin-rsf
107
+ test_files: []
Binary file