nmea_plus 1.0.22 → 1.0.23

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
- SHA256:
3
- metadata.gz: b7c0c98fc5071f09522c714c193ed0f2ee652f81c4f2691451ddfd67f571b0d7
4
- data.tar.gz: 2608a5591399530744687f78a58ddb885984d76d7dfbc7297533ebc432713b5b
2
+ SHA1:
3
+ metadata.gz: 41c0e1dddb32b8870f5cd7722eb6a44f28bd3fd2
4
+ data.tar.gz: 1aaa6c32c71fffd7241fa083073b047a41bfb7bd
5
5
  SHA512:
6
- metadata.gz: 794ae47cd9e5a59cbc437dcef6694040e8979d71578d142ab3ed42416185d6efead51231416f7ad87b84221f90328ca3b2d38b66ee571419d9f0e9b863e5bb0c
7
- data.tar.gz: 135a44b2005b71cb4834975af78afd0b06fadfd3c9911df8f188126837f6677bcb5f62241b246fc411bea12fe9191ccabb5d2b505ffe448a3b3d3c916a9cd733
6
+ metadata.gz: 7d432daa3097b694fcc7644c24f2d2600475b5c3aeb74dcefbbdca6f97be0424ce77947e0a2c1e7ed1d77a6ad150d47f202b35332ec56933e89f9ca1c7b27dc5
7
+ data.tar.gz: b6021ad88bf390abb4a56779b62c6e788aa4563fb3af652a16479ad0338cd14711f553c71b40226eeb7b6e54e9abf66ba0640ccb1d396c24410d364b63248f28
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/nmea_plus.svg)](https://rubygems.org/gems/nmea_plus)
4
4
  [![Build Status](https://travis-ci.org/ianfixes/nmea_plus.svg)](https://travis-ci.org/ianfixes/nmea_plus)
5
- [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/nmea_plus/1.0.22)
5
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/nmea_plus/1.0.23)
6
6
  [![Documentation completeness](http://inch-ci.org/github/ianfixes/nmea_plus.svg?branch=master)](http://inch-ci.org/github/ianfixes/nmea_plus)
7
7
 
8
8
  [NMEA Plus](https://github.com/ianfixes/nmea_plus) is a Ruby gem for parsing and decoding "GPS" messages: NMEA, AIS, and any other similar formats of short messaging typically used by marine equipment. It provides convenient access (by name) to the fields of each message type, and a stream reader designed for use with Ruby Blocks.
@@ -33,6 +33,7 @@ require_relative "vdm_payload/vdm_msg13"
33
33
  require_relative "vdm_payload/vdm_msg14"
34
34
  require_relative "vdm_payload/vdm_msg15"
35
35
  require_relative "vdm_payload/vdm_msg16"
36
+ require_relative "vdm_payload/vdm_msg17"
36
37
  require_relative "vdm_payload/vdm_msg18"
37
38
  require_relative "vdm_payload/vdm_msg19"
38
39
  require_relative "vdm_payload/vdm_msg20"
@@ -66,7 +66,7 @@ module NMEAPlus
66
66
  def _access(start, length)
67
67
  part = @payload_bitstring[start, length]
68
68
  return nil if part.nil? || part.empty?
69
- yield part
69
+ block_given? ? (yield part) : part
70
70
  end
71
71
 
72
72
  # pull out 6b chunks from the payload, then convert those to their more familar characters
@@ -0,0 +1,17 @@
1
+ require_relative 'vdm_msg'
2
+
3
+ module NMEAPlus
4
+ module Message
5
+ module AIS
6
+ module VDMPayload
7
+ # AIS Type 17: DGNSS Broadcast Binary Message
8
+ class VDMMsg17 < NMEAPlus::Message::AIS::VDMPayload::VDMMsg
9
+ payload_reader :longitude, 40, 18, :_I, 60 * 10, 181
10
+ payload_reader :latitude, 58, 17, :_I, 60 * 10, 91
11
+ payload_reader :payload_2b, 80, 736, :_d
12
+ payload_reader :payload_8b, 80, 736, :_T
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module NMEAPlus
2
- VERSION = '1.0.22'.freeze
2
+ VERSION = '1.0.23'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nmea_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.22
4
+ version: 1.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Katz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-07 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: racc
@@ -208,6 +208,7 @@ files:
208
208
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg14.rb
209
209
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg15.rb
210
210
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg16.rb
211
+ - lib/nmea_plus/message/ais/vdm_payload/vdm_msg17.rb
211
212
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg18.rb
212
213
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg19.rb
213
214
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg2.rb
@@ -415,7 +416,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
415
416
  version: '0'
416
417
  requirements: []
417
418
  rubyforge_project:
418
- rubygems_version: 2.7.4
419
+ rubygems_version: 2.5.2.3
419
420
  signing_key:
420
421
  specification_version: 4
421
422
  summary: Parse and decode NMEA (GPS) and AIS messages