wiimote_sps 0.3.1 → 0.4.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 +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/wiimote_sps.rb +8 -5
- metadata +37 -34
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3f17641e270070e2cd5969c2a1196ce2410885b09db063c01dc9936db413c6b5
|
4
|
+
data.tar.gz: 58e33f22de8f4e53588f4916338a547bc0c0ad64184fa72086fe259ab65b6070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2af345c5a406ac0ab933e23caeea87fbf954b4eb87f65c90156ca62ed6c3ae6fe564c8dcf0367f71c7753d7f4d87f70448d7819f07b752627019ff88d501e94
|
7
|
+
data.tar.gz: fbd53300a1c14950c45048f77830f219c64a8d2eefebe38758a88094b12cf756decb856aeafc8238a43379f10f93e09892be4b411beab3f6b723e5ecb335bbd4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/wiimote_sps.rb
CHANGED
@@ -9,11 +9,13 @@ require 'simple_wiimote'
|
|
9
9
|
|
10
10
|
class WiimoteSps < SimpleWiimote
|
11
11
|
|
12
|
-
def initialize(device_id: 'wiimote', sps_address: nil, sps_port: 59000
|
12
|
+
def initialize(device_id: 'wiimote', sps_address: nil, sps_port: 59000,
|
13
|
+
led_xor: true)
|
13
14
|
|
14
15
|
raise 'WiimoteSps: Please provide a SPS addres' unless sps_address
|
15
16
|
super()
|
16
|
-
|
17
|
+
|
18
|
+
@device_id, @led_xor = device_id, led_xor
|
17
19
|
|
18
20
|
@pub = @sub = SPSSub.new address: sps_address, callback: self
|
19
21
|
|
@@ -71,8 +73,9 @@ class WiimoteSps < SimpleWiimote
|
|
71
73
|
[:off]
|
72
74
|
|
73
75
|
end
|
74
|
-
|
75
|
-
@led
|
76
|
+
|
77
|
+
@led.each {|x| x.send :off} if @led_xor
|
78
|
+
@led[index.to_i].send(*a) if index.to_i < @led.length
|
76
79
|
end
|
77
80
|
end
|
78
81
|
end
|
@@ -100,4 +103,4 @@ class WiimoteSps < SimpleWiimote
|
|
100
103
|
end
|
101
104
|
|
102
105
|
|
103
|
-
end
|
106
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wiimote_sps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
+
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTkwNDAyMTMzNjQ5WhcN
|
15
|
+
MjAwNDAxMTMzNjQ5WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCzwZ6+
|
17
|
+
ssBeDIsl04Afzn6CXoy2RqFLXix0nVB5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6
|
32
|
+
RBZ9U/Cd7jYSipHmWKezfGxlFAWN5o3wCdclxssg9pK+Dr7i6hXLVaSaX3/mOP/t
|
33
|
+
a6rVUtMUwLM6oz3Lav0r0X9AoShXZD+4Z+vUvURgVoCLiWlZPGlo4EQ5IFK9FoMh
|
34
|
+
Ln7kKQ4Ke53TXNTWiohVRb5iPAvZLR6ve5HTSDCCcberZOUMyW+qT+RMVyC528cQ
|
35
|
+
LQxEqsrS9x46SB8tqcWMKqsLZhFk+0JG0hJZaxx7XnRZMUGWXzaESi7ttFlsnLLc
|
36
|
+
PORfFKhNjn7eee2KEZQEodjs
|
33
37
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
38
|
+
date: 2019-04-02 00:00:00.000000000 Z
|
35
39
|
dependencies:
|
36
40
|
- !ruby/object:Gem::Dependency
|
37
41
|
name: sps-sub
|
@@ -42,7 +46,7 @@ dependencies:
|
|
42
46
|
version: '0.3'
|
43
47
|
- - ">="
|
44
48
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.3.
|
49
|
+
version: 0.3.7
|
46
50
|
type: :runtime
|
47
51
|
prerelease: false
|
48
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -52,27 +56,27 @@ dependencies:
|
|
52
56
|
version: '0.3'
|
53
57
|
- - ">="
|
54
58
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.3.
|
59
|
+
version: 0.3.7
|
56
60
|
- !ruby/object:Gem::Dependency
|
57
61
|
name: simple_wiimote
|
58
62
|
requirement: !ruby/object:Gem::Requirement
|
59
63
|
requirements:
|
60
|
-
- - "~>"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0.3'
|
63
64
|
- - ">="
|
64
65
|
- !ruby/object:Gem::Version
|
65
|
-
version: 0.
|
66
|
+
version: 0.6.0
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.6'
|
66
70
|
type: :runtime
|
67
71
|
prerelease: false
|
68
72
|
version_requirements: !ruby/object:Gem::Requirement
|
69
73
|
requirements:
|
70
|
-
- - "~>"
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: '0.3'
|
73
74
|
- - ">="
|
74
75
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
76
|
+
version: 0.6.0
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0.6'
|
76
80
|
description:
|
77
81
|
email: james@jamesrobertson.eu
|
78
82
|
executables: []
|
@@ -99,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
103
|
- !ruby/object:Gem::Version
|
100
104
|
version: '0'
|
101
105
|
requirements: []
|
102
|
-
|
103
|
-
rubygems_version: 2.6.8
|
106
|
+
rubygems_version: 3.0.1
|
104
107
|
signing_key:
|
105
108
|
specification_version: 4
|
106
109
|
summary: Uses a Wiimote to publish key presses to a SimplePubSub broker.
|
metadata.gz.sig
CHANGED
Binary file
|