humble_rpi-plugin-gps 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: 1cbdc84139cecdb939c794b46843f73d61c80b3e
4
- data.tar.gz: 2864729f21296e8c54872d2f61ceba77b12c1058
3
+ metadata.gz: 0daa479ef3bb5998f0f2d4d7d9c86ffa608fc85e
4
+ data.tar.gz: b1cf03275f82d60ee41609b846773577dae83dca
5
5
  SHA512:
6
- metadata.gz: cc13e2da1306625f12fd3ae83dde9e605a9a45f16a94268187b2cf50bc9fa240049d13633b446d3a6cd220df58eb5f145a1a62b17903df455fdd6d1c363908f1
7
- data.tar.gz: 7d0d6e63fddf8bf048b5a0f1a071d48b0b7705d2eb401ccc78958c471e5153a20b4ffd557f07b8155df1ea0805000e759840a3d1c4343d1013a1e627b6859b90
6
+ metadata.gz: 912b58c151f555c02c8fbc6645c7a6e661c6c529358a4e4c9cf26126cd5d343b4c59276e862c23e8189bc7b1c7e8242785f7e7c9b306ae833526e87a704f5c09
7
+ data.tar.gz: 27a6c9f45bc85ebb3a17c0a14505bae151e9985a6ef0f1eec0ccb31357ad501245afc736538860529e8c20dc1df9fbff89f06c2b4a297ab94b4e704847d89169
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- #Pk�Z�ջ�/�&9�(�����-�/�xi�5x��@���%p��E��i>P������ 8��$�U�S3'U�Y{��۟x9��|Պٿ�_��u.ctJ'�(���.�\se���i'cOI&�f����yU���ޗ�G���@��˖p$dҔl@v�w(���|j�
2
- b�w+�4M� s1{ܻ��2�&�3
1
+ ��o��+:�]+�!�-�0B���<Ra/nz���|�! ��9f��&�"��;�1�ʐ�_z��+Q��[y3"�_x�s]�Ξc1%)j�X�����Hs%9��]&����t'�$^�z/_m��?K��[�%1��Nz��`c��Wݑ~U~������� ���t��ņRm=����_J !B$�Ń�����������t����c}ed>$��&C �"o3��v��F��JEK
2
+ ��a���7
@@ -7,8 +7,9 @@ require 'serialport_gps'
7
7
 
8
8
  class HumbleRPiPluginGps < SerialPortGPS
9
9
 
10
- def initialize(settings: {port: "/dev/ttyAMA0", baud_rate: 9600, refresh_rate: 8}, variables: {})
10
+ def initialize(settings: {}, variables: {})
11
11
 
12
+ h = {port: "/dev/ttyAMA0", baud_rate: 9600, refresh_rate: 8}.merge settings
12
13
  device_id = variables[:device_id] || 'pi'
13
14
 
14
15
  gps_notification = lambda do |x|
@@ -17,10 +18,10 @@ class HumbleRPiPluginGps < SerialPortGPS
17
18
  [device_id, x.latitude, x.longitude]
18
19
  end
19
20
 
20
- h = settings
21
- super(port: h[:port], baud_rate: h[:baud_rate], refresh_rate: h[:refresh_rate], callback: gps_notification)
22
- end
21
+ super(port: h[:port], baud_rate: h[:baud_rate], refresh_rate: h[:refresh_rate], callback: gps_notification)
23
22
 
23
+ end
24
+
24
25
  alias on_start start
25
26
 
26
- end
27
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humble_rpi-plugin-gps
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
@@ -31,7 +31,7 @@ cert_chain:
31
31
  GNTzzhiTs04If8HHqRQACcm33kroUEvvkvGHYKSRWxs76BZ7THSSKpcMB+ayBo5s
32
32
  408o5mfDmHEIrQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-06-16 00:00:00.000000000 Z
34
+ date: 2015-06-17 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: serialport_gps
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- �B("%0��c�ܫ�� MW��i�V�ӓEr��֥��ydMtf��B[/IS��i���+:�1�:J���;Lz��bMn7���{Srig�,ݓ�����
1
+ y_���0x�*t2�J��on��Kv�y���G�-i�hj`�CP�$�i\̷�.� ��Z� "j�b����s���P*5��� ��0%�eQ �����'�t�gjœ\c��|�|�^3�����~Rݬ����Fǐ��C�JT��mX��Y�Q[\j�?�L��6�����p���D�Y�mI����
2
+ $q�/,��k{��T�/�� �N��͜T�Ե��Y��\�|Zqߥ�5ަ��8.�n��q9c���Xǡ