shutter3_sps 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c1f278079cb8126419edafc2d827247280ec6075
4
+ data.tar.gz: b823dfbd3982a54ea4f90edd25616933d55e3256
5
+ SHA512:
6
+ metadata.gz: 13c65e08710343eedf7831b1dfd765c460bafb9ff6966687afaa55e88f1f47e182e1efc411b043cd78123635bfa3b4ff824a2397d29395313670bd201926079d
7
+ data.tar.gz: 04257d722a1670b557dd4aecec3118e9eba6ce31cc8eec7cb4e32e1abdb69733c6b10e818c91e654d7529a89a1eb0c695f36f0e3f4cb8f9c3fdc279a2fbe8e60
checksums.yaml.gz.sig ADDED
Binary file
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: shutter3_sps.rb
4
+
5
+ require 'sps-pub'
6
+ require 'shutter3'
7
+
8
+
9
+ class Shutter3Sps < Shutter3
10
+
11
+ def initialize(bdid, topic: 'shutter3', sps_address: nil, sps_port: 59000)
12
+
13
+ raise 'Shutter3Sps: Please provide a SPS addres' unless sps_address
14
+ super(bdid)
15
+ @sps = SPSPub.new host: sps_address
16
+ @topic = topic
17
+ end
18
+
19
+ def on_android_keypress()
20
+ @sps.notice @topic + ': button2 pressed'
21
+ end
22
+
23
+ def on_android_keydown()
24
+
25
+ end
26
+
27
+ def on_android_keyup()
28
+
29
+ end
30
+
31
+ def on_connect()
32
+ @sps.notice @topic + ': connected'
33
+ end
34
+
35
+ def on_disconnect()
36
+
37
+ @sps.notice @topic + ': dicconnected'
38
+ end
39
+
40
+ def on_ios_keypress()
41
+ @sps.notice @topic + ': button1 pressed'
42
+ end
43
+
44
+ def on_ios_keydown()
45
+
46
+ end
47
+
48
+ def on_ios_keyup()
49
+
50
+ end
51
+
52
+ end
53
+
54
+ if __FILE__ == $0 then
55
+
56
+ br = Shutter3Sps.new bdid=ARGV[0], sps_address: ARGV[1]
57
+ br.start
58
+
59
+ end
60
+
data.tar.gz.sig ADDED
Binary file
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shutter3_sps
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
+ 8ixkARkWAmV1MB4XDTE3MDYxNjEwMTA1M1oXDTE4MDYxNjEwMTA1M1owSDESMBAG
16
+ A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
+ EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
+ ggEBAKZm9Oa7PD1+B9cnZmsrLkOYjPBe0nzSxbNPXVv5BdfgpBLpfqUEcfmoyePi
19
+ kdAMiCchvn2VL4NUYg0VfASTUGwlXmYg6i5WLcjinCabeQYsU8Myo94cdw4SZxSB
20
+ yySCj2/EIB63LYQMw/6ifgk3BUYhtXfBlDwdMSYvzwukWzEGadYiaaoObm1R8b6M
21
+ nXBzbK0y9BDWdafvumGQxL1Eqxjr7v07Scyt1AxRZNa7DZCvsiO/6HRzpicZflNP
22
+ d9T44rqdQ7vWt0nEv0Dud6eUni9z90QWDXupI7SWxaCFzCgHvsEBK+TKrfGe5Jyh
23
+ uXsHOahTCcifSxnAq1YoWvBR6dkCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
+ DwQEAwIEsDAdBgNVHQ4EFgQUWIjPDIQG8qraPJrBVucgP9a4OV8wJgYDVR0RBB8w
25
+ HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAG/N39TGm
27
+ o7Wf3RKiY93naWNc4QXPXZhGM4ckx/t19UBekKK4qg3vcefG8AQqkQygDN1zIHkV
28
+ uOx8/tml5ihL9d3a0RwmqbdShSs5Y4kywOzxM+M7FsmDWxHKrfH7mHGP2ph1Y5BY
29
+ kDgY8bm4nfBKC+5pYOEC/Gnpd4o3CehGAbiNd3uyCCqN2vDQCw9Shl5vbEHfYxUt
30
+ Wq4FQ8s73HgsSiKjDOpj46+xHCtJ2MKG5EwjKpGgyTJHi1He4npY4SMcqdK3VrhK
31
+ td9JWzQUsb3R54I926JTxIuE2spOK4neG0f9JRLnEw+1cSvUTifc5eMI7F/9DymR
32
+ /m+ifkR0taZqrQ==
33
+ -----END CERTIFICATE-----
34
+ date: 2017-06-16 00:00:00.000000000 Z
35
+ dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: shutter3
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.1'
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 0.1.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.1'
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 0.1.3
56
+ - !ruby/object:Gem::Dependency
57
+ name: sps-pub
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.5'
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 0.5.5
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '0.5'
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 0.5.5
76
+ description:
77
+ email: james@jamesrobertson.eu
78
+ executables: []
79
+ extensions: []
80
+ extra_rdoc_files: []
81
+ files:
82
+ - lib/shutter3_sps.rb
83
+ homepage: https://github.com/jrobertson/shutter3_sps
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.6.8
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: Publishes Shutter3 (see the Shutter3 gem) button event notifications through
107
+ the SimplePubSub (SPS) messaging broker.
108
+ test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ R_(��glʠ ]�/R���-�C��\�0��r���u�k)�����/�&g����"��h�S�מ�c��2����rTI�y� s��­xH_��R;�5!���Dm+ߨ�-W<�]��w��};9�0�����1"��Ŋ� �����``�;Y+�y/!�n�'}S���8�Q[��h/�ʂ�T���T&c��Q9b5��$P�����Zl-U*��.7�I
2
+ ���*Lӓ���Q?)����leb;����