serialport_gps 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4ebd808d18eebd6ae742fea6b4d575e254e0bd4
4
- data.tar.gz: 5f02c583785e65e395ef6d334cf086a9887ecd4e
3
+ metadata.gz: 48c435325f10ed24180ad144007f8e23d830d83f
4
+ data.tar.gz: 1b381072fe903f171440caa8d23e8921898940b2
5
5
  SHA512:
6
- metadata.gz: 225ceae8493d24e47a34844b427b66418bca594d06a603bbad46bc8675256ff4ea5b4c87de9f295262d68961da1025f7b2ec3d2fa2fde14f53e7cf065ace05b5
7
- data.tar.gz: 3e92c052493bfa98a7de591d56b439fafeed611083ded4edc300aa0bbd9adc0b26de51270ac2bf0805bd88870269616fce229c77a46297f70ab4f306196be321
6
+ metadata.gz: 07cd876b9cc7efb3d44dcb563ea367e005092a080cded89ce15d8265ce21a97fe40a74519597665e331261ea8fa36c9464b35ac8f92f53ba9aebf3d9027c44b3
7
+ data.tar.gz: 927b4de2bced62f7d98d5dc6ad26d2b951379c85e514edf25c24cab3b6890a9afb1f3eb62437c52f10852589f7e9de8137c0e441852c7ba9c2324e101f9c7f1b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -12,7 +12,7 @@ class SerialPortGPS
12
12
  attr_reader :time, :latitude, :longitude, :to_h
13
13
 
14
14
  def initialize(port: "/dev/ttyAMA0", baud_rate: 9600,
15
- refresh_rate: 8, callback: Proc.new {puts self.to_h.inspect})
15
+ refresh_rate: 8, callback: ->(gps){ puts gps.to_h.inspect})
16
16
 
17
17
 
18
18
  # if the refresh rate is any less than 8 seconds the serial connection
@@ -52,7 +52,7 @@ class SerialPortGPS
52
52
 
53
53
  @time, @latitude, @longitude, @to_h = @np.time, @np.latitude,
54
54
  @np.longitude, @np.to_h
55
- @callback.call
55
+ @callback.call self
56
56
  end
57
57
  end
58
58
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serialport_gps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  ewjgWJOdFqxFejbi9KWKC5p41B61CLUVpBaNg+MMy6q1GwkifCJIdi2tKu5b/O0K
32
32
  Z4KfhyVeTsL078HV
33
33
  -----END CERTIFICATE-----
34
- date: 2014-07-06 00:00:00.000000000 Z
34
+ date: 2014-07-07 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: nmea_parser
metadata.gz.sig CHANGED
Binary file