shutter3_sps 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fcb3a7ea2df2c7ff249c272b9ec3a0161409590
4
- data.tar.gz: 4b815188d4cc0a5f19a8b0b0d9368174d05b001b
3
+ metadata.gz: 0d3398b840e084243617666b0dc5421de2199596
4
+ data.tar.gz: 021dc6e9741e60de47136e213f12e366992854a8
5
5
  SHA512:
6
- metadata.gz: 16e061ed09196fe4bff4c47d7be7f0513c0c4265ff849ce6f187003413532265933628f85c15afecf76894b366e511a63223d1d8331f4cc925876ddf8aeed960
7
- data.tar.gz: 28cdc5d10d366536bc3b12593cd4868693f76ca7c51b97ee18f011563a9061924040ac0148214dfd394864b5b0af8830e996cd0b3c9c5f9dae6ba4a035b045b5
6
+ metadata.gz: b8667ebc4ed2e3cf258e97a76c512125d46d46f0b8840720a749f68a0d97b7ba9f8446f7ba45ae8e7e523adeba12b71ab53ded3f2379cbbfb538dd71714cd1cd
7
+ data.tar.gz: ac59fa89e693faa03a23c83267d39e6dd59920439c7a155cd0e26a09791c0939678824114a38588f539bd409557ecab3fd5c6c9665807ffd26bd91497134b72c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -12,12 +12,12 @@ class Shutter3Sps < Shutter3
12
12
 
13
13
  raise 'Shutter3Sps: Please provide an SPS address' unless sps_address
14
14
  super(bdid)
15
- @sps = SPSPub.new host: sps_address
15
+ @pub= SPSPub.new host: sps_address
16
16
  @topic = topic
17
17
  end
18
18
 
19
19
  def on_android_keypress()
20
- @sps.notice @topic + ': button2 pressed'
20
+ notify 'button2 pressed'
21
21
  end
22
22
 
23
23
  def on_android_keydown()
@@ -29,16 +29,15 @@ class Shutter3Sps < Shutter3
29
29
  end
30
30
 
31
31
  def on_connect()
32
- @sps.notice @topic + ': connected'
32
+ notify 'connected'
33
33
  end
34
34
 
35
35
  def on_disconnect()
36
-
37
- @sps.notice @topic + ': disconnected'
36
+ notify 'disconnected'
38
37
  end
39
38
 
40
39
  def on_ios_keypress()
41
- @sps.notice @topic + ': button1 pressed'
40
+ notify 'button1 pressed'
42
41
  end
43
42
 
44
43
  def on_ios_keydown()
@@ -48,6 +47,12 @@ class Shutter3Sps < Shutter3
48
47
  def on_ios_keyup()
49
48
 
50
49
  end
50
+
51
+ protected
52
+
53
+ def notify(m)
54
+ @pub.notice @topic + ': ' + m
55
+ end
51
56
 
52
57
  end
53
58
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shutter3_sps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- XY,^����T���J�x�w�L"���#`��Fg ��pc����Yx�w^�g��-\�@,V�Zs�\{N ���A�y�/�S������� #8���̈��{=��P��{;@)Uf��>�es�+��ϑ���%a���-# D5y�C�hjE�3 |9E�� ���lB�C����]ǵAT@ϙ�n�h|����(D3ZSr ��?�Jn�� �ѹ4�� ������2�����DD�\�m���o��Ŗ�H0���t�
1
+ �Q�+��گ,;A��o�=BVc������\�ǚ}�e�d̷M�>BW~�K:<�da%4l}�(fov'RA�.�G��Iii8