nmea_plus 1.0.23 → 1.0.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/nmea_plus/ais_message_factory.rb +3 -4
  4. data/lib/nmea_plus/generated_parser/parser.rb +5 -5
  5. data/lib/nmea_plus/generated_parser/tokenizer.rb +1 -1
  6. data/lib/nmea_plus/message/ais/base_ais.rb +1 -1
  7. data/lib/nmea_plus/message/ais/vdm.rb +25 -25
  8. data/lib/nmea_plus/message/ais/vdm_payload/payload.rb +2 -1
  9. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg.rb +2 -2
  10. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg1.rb +1 -1
  11. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg10.rb +1 -1
  12. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg11.rb +1 -1
  13. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb +1 -1
  14. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg13.rb +1 -1
  15. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg14.rb +1 -1
  16. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg15.rb +1 -1
  17. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg16.rb +1 -1
  18. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg17.rb +1 -1
  19. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg18.rb +1 -1
  20. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg19.rb +1 -1
  21. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg2.rb +1 -1
  22. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg20.rb +1 -1
  23. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb +1 -1
  24. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg24.rb +1 -1
  25. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg27.rb +1 -1
  26. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg3.rb +1 -1
  27. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg4.rb +1 -1
  28. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb +1 -1
  29. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg6.rb +8 -8
  30. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg6_dynamic_payload.rb +1 -1
  31. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1022f61.rb +2 -2
  32. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f0.rb +1 -1
  33. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f2.rb +1 -1
  34. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f3.rb +1 -1
  35. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f4.rb +1 -1
  36. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f5.rb +1 -1
  37. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d235f10.rb +1 -1
  38. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg7.rb +1 -1
  39. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb +6 -6
  40. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8_dynamic_payload.rb +1 -1
  41. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f0.rb +1 -1
  42. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f22.rb +2 -2
  43. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb +1 -1
  44. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d200f10.rb +1 -1
  45. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d366f56.rb +1 -1
  46. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb +1 -1
  47. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg_binary_acknowledgement.rb +1 -1
  48. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position.rb +1 -1
  49. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg_cnb.rb +1 -1
  50. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg_station_report.rb +1 -1
  51. data/lib/nmea_plus/message/ais/vdo.rb +1 -1
  52. data/lib/nmea_plus/message/base.rb +4 -4
  53. data/lib/nmea_plus/message/nmea/aam.rb +1 -1
  54. data/lib/nmea_plus/message/nmea/alm.rb +1 -1
  55. data/lib/nmea_plus/message/nmea/apa.rb +1 -1
  56. data/lib/nmea_plus/message/nmea/apb.rb +1 -1
  57. data/lib/nmea_plus/message/nmea/base_nmea.rb +1 -1
  58. data/lib/nmea_plus/message/nmea/bec.rb +1 -1
  59. data/lib/nmea_plus/message/nmea/ber.rb +1 -1
  60. data/lib/nmea_plus/message/nmea/bod.rb +1 -1
  61. data/lib/nmea_plus/message/nmea/bpi.rb +1 -1
  62. data/lib/nmea_plus/message/nmea/bwc.rb +2 -2
  63. data/lib/nmea_plus/message/nmea/bwr.rb +1 -1
  64. data/lib/nmea_plus/message/nmea/bww.rb +2 -2
  65. data/lib/nmea_plus/message/nmea/dbk.rb +1 -1
  66. data/lib/nmea_plus/message/nmea/dbs.rb +2 -2
  67. data/lib/nmea_plus/message/nmea/dbt.rb +2 -2
  68. data/lib/nmea_plus/message/nmea/dcn.rb +1 -1
  69. data/lib/nmea_plus/message/nmea/dpt.rb +1 -1
  70. data/lib/nmea_plus/message/nmea/dru.rb +1 -1
  71. data/lib/nmea_plus/message/nmea/dtm.rb +1 -1
  72. data/lib/nmea_plus/message/nmea/fsi.rb +1 -1
  73. data/lib/nmea_plus/message/nmea/gbs.rb +1 -1
  74. data/lib/nmea_plus/message/nmea/gda.rb +1 -1
  75. data/lib/nmea_plus/message/nmea/gdf.rb +1 -1
  76. data/lib/nmea_plus/message/nmea/gdp.rb +1 -1
  77. data/lib/nmea_plus/message/nmea/gga.rb +1 -1
  78. data/lib/nmea_plus/message/nmea/gla.rb +1 -1
  79. data/lib/nmea_plus/message/nmea/glc.rb +1 -1
  80. data/lib/nmea_plus/message/nmea/glf.rb +1 -1
  81. data/lib/nmea_plus/message/nmea/gll.rb +1 -1
  82. data/lib/nmea_plus/message/nmea/glp.rb +1 -1
  83. data/lib/nmea_plus/message/nmea/gns.rb +1 -1
  84. data/lib/nmea_plus/message/nmea/goa.rb +1 -1
  85. data/lib/nmea_plus/message/nmea/gof.rb +1 -1
  86. data/lib/nmea_plus/message/nmea/gop.rb +1 -1
  87. data/lib/nmea_plus/message/nmea/grs.rb +1 -1
  88. data/lib/nmea_plus/message/nmea/gsa.rb +1 -1
  89. data/lib/nmea_plus/message/nmea/gst.rb +1 -1
  90. data/lib/nmea_plus/message/nmea/gsv.rb +1 -1
  91. data/lib/nmea_plus/message/nmea/gtd.rb +1 -1
  92. data/lib/nmea_plus/message/nmea/gxa.rb +1 -1
  93. data/lib/nmea_plus/message/nmea/gxf.rb +1 -1
  94. data/lib/nmea_plus/message/nmea/gxp.rb +1 -1
  95. data/lib/nmea_plus/message/nmea/hcc.rb +1 -1
  96. data/lib/nmea_plus/message/nmea/hcd.rb +1 -1
  97. data/lib/nmea_plus/message/nmea/hdg.rb +1 -1
  98. data/lib/nmea_plus/message/nmea/hdm.rb +1 -1
  99. data/lib/nmea_plus/message/nmea/hdt.rb +1 -1
  100. data/lib/nmea_plus/message/nmea/hfb.rb +1 -1
  101. data/lib/nmea_plus/message/nmea/hsc.rb +1 -1
  102. data/lib/nmea_plus/message/nmea/htc.rb +1 -1
  103. data/lib/nmea_plus/message/nmea/hvd.rb +1 -1
  104. data/lib/nmea_plus/message/nmea/hvm.rb +1 -1
  105. data/lib/nmea_plus/message/nmea/ima.rb +1 -1
  106. data/lib/nmea_plus/message/nmea/its.rb +1 -1
  107. data/lib/nmea_plus/message/nmea/lcd.rb +1 -1
  108. data/lib/nmea_plus/message/nmea/mda.rb +1 -1
  109. data/lib/nmea_plus/message/nmea/mhu.rb +1 -1
  110. data/lib/nmea_plus/message/nmea/mmb.rb +1 -1
  111. data/lib/nmea_plus/message/nmea/msk.rb +1 -1
  112. data/lib/nmea_plus/message/nmea/mss.rb +1 -1
  113. data/lib/nmea_plus/message/nmea/mta.rb +1 -1
  114. data/lib/nmea_plus/message/nmea/mtw.rb +1 -1
  115. data/lib/nmea_plus/message/nmea/mwh.rb +1 -1
  116. data/lib/nmea_plus/message/nmea/mws.rb +1 -1
  117. data/lib/nmea_plus/message/nmea/mwv.rb +1 -1
  118. data/lib/nmea_plus/message/nmea/oln.rb +1 -1
  119. data/lib/nmea_plus/message/nmea/olw.rb +1 -1
  120. data/lib/nmea_plus/message/nmea/omp.rb +1 -1
  121. data/lib/nmea_plus/message/nmea/onz.rb +1 -1
  122. data/lib/nmea_plus/message/nmea/osd.rb +1 -1
  123. data/lib/nmea_plus/message/nmea/proprietary/pashr.rb +1 -1
  124. data/lib/nmea_plus/message/nmea/r00.rb +1 -1
  125. data/lib/nmea_plus/message/nmea/rma.rb +1 -1
  126. data/lib/nmea_plus/message/nmea/rmb.rb +1 -1
  127. data/lib/nmea_plus/message/nmea/rmc.rb +1 -1
  128. data/lib/nmea_plus/message/nmea/rnn.rb +1 -1
  129. data/lib/nmea_plus/message/nmea/rot.rb +1 -1
  130. data/lib/nmea_plus/message/nmea/rpm.rb +1 -1
  131. data/lib/nmea_plus/message/nmea/rsa.rb +1 -1
  132. data/lib/nmea_plus/message/nmea/rsd.rb +1 -1
  133. data/lib/nmea_plus/message/nmea/rte.rb +1 -1
  134. data/lib/nmea_plus/message/nmea/sbk.rb +1 -1
  135. data/lib/nmea_plus/message/nmea/scd.rb +1 -1
  136. data/lib/nmea_plus/message/nmea/scy.rb +1 -1
  137. data/lib/nmea_plus/message/nmea/sdb.rb +1 -1
  138. data/lib/nmea_plus/message/nmea/sfi.rb +1 -1
  139. data/lib/nmea_plus/message/nmea/sgd.rb +1 -1
  140. data/lib/nmea_plus/message/nmea/sgr.rb +1 -1
  141. data/lib/nmea_plus/message/nmea/siu.rb +1 -1
  142. data/lib/nmea_plus/message/nmea/slc.rb +1 -1
  143. data/lib/nmea_plus/message/nmea/snc.rb +1 -1
  144. data/lib/nmea_plus/message/nmea/snu.rb +1 -1
  145. data/lib/nmea_plus/message/nmea/sps.rb +1 -1
  146. data/lib/nmea_plus/message/nmea/ssf.rb +1 -1
  147. data/lib/nmea_plus/message/nmea/stc.rb +1 -1
  148. data/lib/nmea_plus/message/nmea/stn.rb +1 -1
  149. data/lib/nmea_plus/message/nmea/str.rb +1 -1
  150. data/lib/nmea_plus/message/nmea/sys.rb +1 -1
  151. data/lib/nmea_plus/message/nmea/tds.rb +1 -1
  152. data/lib/nmea_plus/message/nmea/tec.rb +1 -1
  153. data/lib/nmea_plus/message/nmea/tep.rb +1 -1
  154. data/lib/nmea_plus/message/nmea/tfi.rb +1 -1
  155. data/lib/nmea_plus/message/nmea/tga.rb +1 -1
  156. data/lib/nmea_plus/message/nmea/tif.rb +1 -1
  157. data/lib/nmea_plus/message/nmea/tpc.rb +1 -1
  158. data/lib/nmea_plus/message/nmea/tpr.rb +1 -1
  159. data/lib/nmea_plus/message/nmea/tpt.rb +1 -1
  160. data/lib/nmea_plus/message/nmea/trf.rb +1 -1
  161. data/lib/nmea_plus/message/nmea/trp.rb +1 -1
  162. data/lib/nmea_plus/message/nmea/trs.rb +1 -1
  163. data/lib/nmea_plus/message/nmea/ttm.rb +1 -1
  164. data/lib/nmea_plus/message/nmea/vbw.rb +1 -1
  165. data/lib/nmea_plus/message/nmea/vcd.rb +1 -1
  166. data/lib/nmea_plus/message/nmea/vdr.rb +1 -1
  167. data/lib/nmea_plus/message/nmea/vhw.rb +1 -1
  168. data/lib/nmea_plus/message/nmea/vlw.rb +1 -1
  169. data/lib/nmea_plus/message/nmea/vpe.rb +1 -1
  170. data/lib/nmea_plus/message/nmea/vpw.rb +1 -1
  171. data/lib/nmea_plus/message/nmea/vta.rb +1 -1
  172. data/lib/nmea_plus/message/nmea/vtg.rb +1 -1
  173. data/lib/nmea_plus/message/nmea/vti.rb +1 -1
  174. data/lib/nmea_plus/message/nmea/vwe.rb +1 -1
  175. data/lib/nmea_plus/message/nmea/vwr.rb +1 -1
  176. data/lib/nmea_plus/message/nmea/vwt.rb +1 -1
  177. data/lib/nmea_plus/message/nmea/wcv.rb +1 -1
  178. data/lib/nmea_plus/message/nmea/wdc.rb +1 -1
  179. data/lib/nmea_plus/message/nmea/wdr.rb +1 -1
  180. data/lib/nmea_plus/message/nmea/wfm.rb +1 -1
  181. data/lib/nmea_plus/message/nmea/wnc.rb +1 -1
  182. data/lib/nmea_plus/message/nmea/wnr.rb +1 -1
  183. data/lib/nmea_plus/message/nmea/wpl.rb +1 -1
  184. data/lib/nmea_plus/message/nmea/xdr.rb +1 -1
  185. data/lib/nmea_plus/message/nmea/xte.rb +1 -1
  186. data/lib/nmea_plus/message/nmea/xtr.rb +1 -1
  187. data/lib/nmea_plus/message/nmea/ywp.rb +1 -1
  188. data/lib/nmea_plus/message/nmea/yws.rb +1 -1
  189. data/lib/nmea_plus/message/nmea/zaa.rb +1 -1
  190. data/lib/nmea_plus/message/nmea/zcd.rb +1 -1
  191. data/lib/nmea_plus/message/nmea/zda.rb +1 -1
  192. data/lib/nmea_plus/message/nmea/zev.rb +1 -1
  193. data/lib/nmea_plus/message/nmea/zfi.rb +1 -1
  194. data/lib/nmea_plus/message/nmea/zfo.rb +1 -1
  195. data/lib/nmea_plus/message/nmea/zlz.rb +1 -1
  196. data/lib/nmea_plus/message/nmea/zpi.rb +1 -1
  197. data/lib/nmea_plus/message/nmea/zta.rb +1 -1
  198. data/lib/nmea_plus/message/nmea/zte.rb +1 -1
  199. data/lib/nmea_plus/message/nmea/ztg.rb +1 -1
  200. data/lib/nmea_plus/message/nmea/zti.rb +1 -1
  201. data/lib/nmea_plus/message/nmea/zwp.rb +1 -1
  202. data/lib/nmea_plus/message/nmea/zzu.rb +1 -1
  203. data/lib/nmea_plus/nmea_message_factory.rb +151 -151
  204. data/lib/nmea_plus/version.rb +1 -1
  205. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41c0e1dddb32b8870f5cd7722eb6a44f28bd3fd2
4
- data.tar.gz: 1aaa6c32c71fffd7241fa083073b047a41bfb7bd
3
+ metadata.gz: d9ded4f69edc5edef8b0bb72fd568f5a8930bfef
4
+ data.tar.gz: 4ede957791552800b73615a0bb611ea385b12565
5
5
  SHA512:
6
- metadata.gz: 7d432daa3097b694fcc7644c24f2d2600475b5c3aeb74dcefbbdca6f97be0424ce77947e0a2c1e7ed1d77a6ad150d47f202b35332ec56933e89f9ca1c7b27dc5
7
- data.tar.gz: b6021ad88bf390abb4a56779b62c6e788aa4563fb3af652a16479ad0338cd14711f553c71b40226eeb7b6e54e9abf66ba0640ccb1d396c24410d364b63248f28
6
+ metadata.gz: d33c17e8eabf3949401d3445502f2aa4b621243ca11ebd2237111831e230e6228dc12615267bdffc224d89ea6e4120e9c14300b689cf9e8cc7c337061fcad10d
7
+ data.tar.gz: 80cd387fc2953f67143e36449e7bc1f6aec1ce7670dc2996a0ee71375fe1a8682762bc0c63c9eb0a71ff51b06a359c1a37d30ed45a5cb3dd329c0265fc9ad2f9
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.23)
5
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/nmea_plus/1.0.24)
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.
@@ -71,6 +71,7 @@ source_decoder.each_complete_message do |message|
71
71
  puts message.ais.callsign.strip # prints "ZA83R"
72
72
  puts message.ais.name.strip # prints "ARCO AVON"
73
73
  puts message.ais.ship_cargo_type # prints 69
74
+ puts message.ais.ship_cargo_type_description # prints "Passenger, No additional information"
74
75
  puts message.ais.ship_dimension_to_bow # prints 113
75
76
  puts message.ais.ship_dimension_to_stern # prints 31
76
77
  puts message.ais.ship_dimension_to_port # prints 17
@@ -1,8 +1,7 @@
1
1
 
2
- require_relative 'message_factory'
3
-
4
- require_relative 'message/ais/vdm'
5
- require_relative 'message/ais/vdo'
2
+ require 'nmea_plus/message_factory'
3
+ require 'nmea_plus/message/ais/vdm'
4
+ require 'nmea_plus/message/ais/vdo'
6
5
 
7
6
  module NMEAPlus
8
7
 
@@ -7,8 +7,8 @@
7
7
  require 'racc/parser.rb'
8
8
 
9
9
 
10
- require_relative "../nmea_message_factory"
11
- require_relative "../ais_message_factory"
10
+ require 'nmea_plus/nmea_message_factory'
11
+ require 'nmea_plus/ais_message_factory'
12
12
 
13
13
  module NMEAPlus
14
14
  class Parser < Racc::Parser
@@ -29,13 +29,13 @@ end
29
29
  ##### State transition tables begin ###
30
30
 
31
31
  racc_action_table = [
32
- 2, 3, 6, 5, 4, 7, 8, 9 ]
32
+ 2, 3, 4, 5, 6, 7, 8, 9 ]
33
33
 
34
34
  racc_action_check = [
35
- 0, 0, 3, 2, 1, 4, 5, 6 ]
35
+ 0, 0, 1, 2, 3, 4, 5, 6 ]
36
36
 
37
37
  racc_action_pointer = [
38
- -3, 4, -2, -3, 5, 4, 5, nil, nil, nil ]
38
+ -3, 2, -2, -1, 5, 4, 5, nil, nil, nil ]
39
39
 
40
40
  racc_action_default = [
41
41
  -3, -3, -3, -3, -3, -3, -3, 10, -1, -2 ]
@@ -1,7 +1,7 @@
1
1
  #--
2
2
  # DO NOT MODIFY!!!!
3
3
  # This file is automatically generated by rex 1.0.5
4
- # from lexical definition file "/Users/ikatz/Development/non-wayfair/nmea_plus/parser/tokenizer.rex".
4
+ # from lexical definition file "/Users/ikatz/Development/Public Github/nmea_plus/parser/tokenizer.rex".
5
5
  #++
6
6
 
7
7
 
@@ -1,5 +1,5 @@
1
1
 
2
- require_relative "../base"
2
+ require 'nmea_plus/message/base'
3
3
 
4
4
  module NMEAPlus
5
5
  module Message
@@ -1,7 +1,7 @@
1
- require_relative "base_ais"
1
+ require 'nmea_plus/message/ais/base_ais'
2
2
 
3
3
  =begin boilerplate for vdm payload objects
4
- require_relative 'vdm_msg'
4
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
5
5
 
6
6
  module NMEAPlus
7
7
  module Message
@@ -17,29 +17,29 @@ end
17
17
 
18
18
  =end
19
19
 
20
- require_relative "vdm_payload/vdm_msg1"
21
- require_relative "vdm_payload/vdm_msg2"
22
- require_relative "vdm_payload/vdm_msg3"
23
- require_relative "vdm_payload/vdm_msg4"
24
- require_relative "vdm_payload/vdm_msg5"
25
- require_relative "vdm_payload/vdm_msg6"
26
- require_relative "vdm_payload/vdm_msg7"
27
- require_relative "vdm_payload/vdm_msg8"
28
- require_relative "vdm_payload/vdm_msg9"
29
- require_relative "vdm_payload/vdm_msg10"
30
- require_relative "vdm_payload/vdm_msg11"
31
- require_relative "vdm_payload/vdm_msg12"
32
- require_relative "vdm_payload/vdm_msg13"
33
- require_relative "vdm_payload/vdm_msg14"
34
- require_relative "vdm_payload/vdm_msg15"
35
- require_relative "vdm_payload/vdm_msg16"
36
- require_relative "vdm_payload/vdm_msg17"
37
- require_relative "vdm_payload/vdm_msg18"
38
- require_relative "vdm_payload/vdm_msg19"
39
- require_relative "vdm_payload/vdm_msg20"
40
- require_relative "vdm_payload/vdm_msg21"
41
- require_relative "vdm_payload/vdm_msg24"
42
- require_relative "vdm_payload/vdm_msg27"
20
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg1'
21
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg2'
22
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg3'
23
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg4'
24
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg5'
25
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6'
26
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg7'
27
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg8'
28
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg9'
29
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg10'
30
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg11'
31
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg12'
32
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg13'
33
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg14'
34
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg15'
35
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg16'
36
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg17'
37
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg18'
38
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg19'
39
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg20'
40
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg21'
41
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg24'
42
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg27'
43
43
 
44
44
  module NMEAPlus
45
45
  module Message
@@ -38,7 +38,8 @@ module NMEAPlus
38
38
  args << fmt_arg unless fmt_arg.nil?
39
39
  args << fmt_arg2 unless fmt_arg2.nil?
40
40
  args << fmt_arg3 unless fmt_arg3.nil?
41
- self.class_eval("def #{name};#{formatter}(#{args.join(', ')});end")
41
+
42
+ define_method(name) { self.send(formatter, *args) }
42
43
  end
43
44
 
44
45
  # Return an object by its class name, or nil if it isn't defined
@@ -1,5 +1,5 @@
1
- require_relative "payload"
2
- require_relative "mmsi_info"
1
+ require 'nmea_plus/message/ais/vdm_payload/payload'
2
+ require 'nmea_plus/message/ais/vdm_payload/mmsi_info'
3
3
 
4
4
  module NMEAPlus
5
5
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg_cnb'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg_cnb'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg_station_report'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg_station_report'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg_binary_acknowledgement'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg_binary_acknowledgement'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg_class_b_cs_position'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg_class_b_cs_position'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg_cnb'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg_cnb'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg_cnb'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg_cnb'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg_station_report'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg_station_report'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,11 +1,11 @@
1
- require_relative 'vdm_msg'
2
- require_relative 'vdm_msg6d1f0'
3
- require_relative 'vdm_msg6d1f2'
4
- require_relative 'vdm_msg6d1f3'
5
- require_relative 'vdm_msg6d1f4'
6
- require_relative 'vdm_msg6d1f5'
7
- require_relative 'vdm_msg6d235f10'
8
- require_relative 'vdm_msg6d1022f61'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6d1f0'
3
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6d1f2'
4
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6d1f3'
5
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6d1f4'
6
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6d1f5'
7
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6d235f10'
8
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6d1022f61'
9
9
 
10
10
  module NMEAPlus
11
11
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'payload'
1
+ require 'nmea_plus/message/ais/vdm_payload/payload'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg6_dynamic_payload'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6_dynamic_payload'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -42,7 +42,7 @@ module NMEAPlus
42
42
  # @!attribute [r] $1
43
43
  # @return [bool] The value in bit $2 of the status field
44
44
  def self.bit_reader(name, position)
45
- self.class_eval("def #{name};_field0_bit(#{position});end")
45
+ define_method(name) { self.send(:_field0_bit, position) }
46
46
  end
47
47
 
48
48
  bit_reader :supply_fail?, 0
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg6_dynamic_payload'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6_dynamic_payload'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg6_dynamic_payload'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6_dynamic_payload'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg6_dynamic_payload'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6_dynamic_payload'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg6_dynamic_payload'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6_dynamic_payload'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg6_dynamic_payload'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6_dynamic_payload'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg6_dynamic_payload'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg6_dynamic_payload'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg_binary_acknowledgement'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg_binary_acknowledgement'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,9 +1,9 @@
1
- require_relative 'vdm_msg'
2
- require_relative 'vdm_msg8d1f0'
3
- require_relative 'vdm_msg8d1f22'
4
- require_relative 'vdm_msg8d1f31'
5
- require_relative 'vdm_msg8d200f10'
6
- require_relative 'vdm_msg8d366f56'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg'
2
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg8d1f0'
3
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg8d1f22'
4
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31'
5
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg8d200f10'
6
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg8d366f56'
7
7
 
8
8
  module NMEAPlus
9
9
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'payload'
1
+ require 'nmea_plus/message/ais/vdm_payload/payload'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,4 +1,4 @@
1
- require_relative 'vdm_msg8_dynamic_payload'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg8_dynamic_payload'
2
2
 
3
3
  module NMEAPlus
4
4
  module Message
@@ -1,5 +1,5 @@
1
- require_relative 'vdm_msg8_dynamic_payload'
2
- require_relative 'sub_area'
1
+ require 'nmea_plus/message/ais/vdm_payload/vdm_msg8_dynamic_payload'
2
+ require 'nmea_plus/message/ais/vdm_payload/sub_area'
3
3
 
4
4
  module NMEAPlus
5
5
  module Message