dji_mqtt_connect 0.1.16 → 0.1.16.2

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
  SHA256:
3
- metadata.gz: dc9663b6e47df7b5cb49186748af7973143782dcd7dfcb8c8fd64f4023857d78
4
- data.tar.gz: e1e0849ffbbf5ed675792d80e453b1f36d1ff10e50e5f0f94381ecec04ca1e0f
3
+ metadata.gz: 451ea15acecd32c735d0fded52d5f87386868215ef7f751a2e6c22c918897148
4
+ data.tar.gz: 64bb22481167ca930d352e29470f27e348f6381e88413cd34b89808888d79fd1
5
5
  SHA512:
6
- metadata.gz: f88bcf6906c9d340447825dff46b410a6f6548448ea53c78183f20d24d7ee7626f9ef81994c353de6c7aff3b5c3a47790eb029bccd6ea47a02443089a1285a3b
7
- data.tar.gz: d360b73a17536d58d2df09e8a2d9de7e13328f81e9acb65d33df69efbbbc8df6a4bfd52f973c336f25a35e1def4b9b468ca7941bcb98d0794b5b84bc5da28381
6
+ metadata.gz: 0bfad81b0998eef1fd58a6746235ac4e0a776108c8a4ef1188cd9721cce66786fcd0ab87daba990223fed47ad0c0a180f3e6d23b0cd8658d674f8c9625195971
7
+ data.tar.gz: b50bf6994384ae57779784bfa7d36ca700a7241e9658801a181d450e214f0367cd7c828f606c3e4129465bfd2ffe69d7005affced12dfa2f7ea35ee6a2bb253d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dji_mqtt_connect (0.1.16)
4
+ dji_mqtt_connect (0.1.16.2)
5
5
  activesupport (>= 6.0, <= 8)
6
6
  dry-struct (~> 1.6)
7
7
  dry-transformer (~> 1.0)
@@ -11,10 +11,10 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activejob (7.0.5)
15
- activesupport (= 7.0.5)
14
+ activejob (7.0.6)
15
+ activesupport (= 7.0.6)
16
16
  globalid (>= 0.3.6)
17
- activesupport (7.0.5)
17
+ activesupport (7.0.6)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
19
  i18n (>= 1.6, < 2)
20
20
  minitest (>= 5.1)
@@ -46,20 +46,22 @@ GEM
46
46
  zeitwerk (~> 2.6)
47
47
  globalid (1.1.0)
48
48
  activesupport (>= 5.0)
49
- i18n (1.13.0)
49
+ i18n (1.14.1)
50
50
  concurrent-ruby (~> 1.0)
51
51
  ice_nine (0.11.2)
52
52
  json (2.6.3)
53
53
  language_server-protocol (3.17.0.3)
54
- lint_roller (1.0.0)
55
- minitest (5.18.0)
54
+ lint_roller (1.1.0)
55
+ minitest (5.18.1)
56
56
  mqtt (0.6.0)
57
57
  parallel (1.23.0)
58
- parser (3.2.2.1)
58
+ parser (3.2.2.3)
59
59
  ast (~> 2.4.1)
60
+ racc
61
+ racc (1.7.1)
60
62
  rainbow (3.1.1)
61
63
  rake (13.0.6)
62
- regexp_parser (2.8.0)
64
+ regexp_parser (2.8.1)
63
65
  rexml (3.2.5)
64
66
  rspec (3.12.0)
65
67
  rspec-core (~> 3.12.0)
@@ -70,27 +72,27 @@ GEM
70
72
  rspec-expectations (3.12.3)
71
73
  diff-lcs (>= 1.2.0, < 2.0)
72
74
  rspec-support (~> 3.12.0)
73
- rspec-mocks (3.12.5)
75
+ rspec-mocks (3.12.6)
74
76
  diff-lcs (>= 1.2.0, < 2.0)
75
77
  rspec-support (~> 3.12.0)
76
- rspec-support (3.12.0)
77
- rubocop (1.50.2)
78
+ rspec-support (3.12.1)
79
+ rubocop (1.52.1)
78
80
  json (~> 2.3)
79
81
  parallel (~> 1.10)
80
- parser (>= 3.2.0.0)
82
+ parser (>= 3.2.2.3)
81
83
  rainbow (>= 2.2.2, < 4.0)
82
84
  regexp_parser (>= 1.8, < 3.0)
83
85
  rexml (>= 3.2.5, < 4.0)
84
86
  rubocop-ast (>= 1.28.0, < 2.0)
85
87
  ruby-progressbar (~> 1.7)
86
88
  unicode-display_width (>= 2.4.0, < 3.0)
87
- rubocop-ast (1.28.1)
89
+ rubocop-ast (1.29.0)
88
90
  parser (>= 3.2.1.0)
89
91
  rubocop-capybara (2.18.0)
90
92
  rubocop (~> 1.41)
91
93
  rubocop-factory_bot (2.23.1)
92
94
  rubocop (~> 1.33)
93
- rubocop-performance (1.16.0)
95
+ rubocop-performance (1.18.0)
94
96
  rubocop (>= 1.7.0, < 2.0)
95
97
  rubocop-ast (>= 0.4.0)
96
98
  rubocop-rake (0.6.0)
@@ -106,17 +108,17 @@ GEM
106
108
  simplecov_json_formatter (~> 0.1)
107
109
  simplecov-html (0.12.3)
108
110
  simplecov_json_formatter (0.1.4)
109
- standard (1.28.4)
111
+ standard (1.30.1)
110
112
  language_server-protocol (~> 3.17.0.2)
111
113
  lint_roller (~> 1.0)
112
- rubocop (~> 1.50.2)
114
+ rubocop (~> 1.52.0)
113
115
  standard-custom (~> 1.0.0)
114
- standard-performance (~> 1.0.1)
115
- standard-custom (1.0.0)
116
+ standard-performance (~> 1.1.0)
117
+ standard-custom (1.0.1)
116
118
  lint_roller (~> 1.0)
117
- standard-performance (1.0.1)
118
- lint_roller (~> 1.0)
119
- rubocop-performance (~> 1.16.0)
119
+ standard-performance (1.1.1)
120
+ lint_roller (~> 1.1)
121
+ rubocop-performance (~> 1.18.0)
120
122
  tzinfo (2.0.6)
121
123
  concurrent-ruby (~> 1.0)
122
124
  unicode-display_width (2.4.2)
@@ -125,6 +127,7 @@ GEM
125
127
  zeitwerk (2.6.8)
126
128
 
127
129
  PLATFORMS
130
+ arm64-darwin-22
128
131
  x86_64-darwin-21
129
132
  x86_64-linux
130
133
 
@@ -11,11 +11,11 @@ module DjiMqttConnect
11
11
  attribute :output do
12
12
  attribute :ext do
13
13
  attribute :current_waypoint_index, Types::Integer
14
- attribute :media_count, Types::Integer
14
+ attribute? :media_count, Types::Integer
15
15
  attribute :track_id, Types::String
16
16
  attribute :flight_id, Types::String
17
17
 
18
- attribute :break_point do
18
+ attribute? :break_point do
19
19
  attribute :index, Types::Integer
20
20
 
21
21
  # {"0":"On the wayline segment","1":"On the waypoint"}
@@ -34,7 +34,7 @@ module DjiMqttConnect
34
34
  # {"unit":"m","unitName":"meter"}
35
35
  attribute :height, Types::JSON::Decimal
36
36
 
37
- attribute :attitude_head, Types::Integer
37
+ attribute :attitude_head, Types::Integer | Types::JSON::Decimal
38
38
  end
39
39
  end
40
40
 
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DjiMqttConnect
4
+ module Thing::Product
5
+ class TrackEventsMessage < EventsMessage
6
+ attribute :_method, Types::String.enum("track")
7
+ end
8
+ end
9
+ end
@@ -23,6 +23,7 @@ module DjiMqttConnect
23
23
 
24
24
  attribute :_method, Types::String.enum(
25
25
  "device_exit_homing_notify",
26
+ "device_reboot",
26
27
  "file_upload_callback",
27
28
  "fileupload_progress",
28
29
  "flighttask_progress",
@@ -8,7 +8,7 @@ module DjiMqttConnect
8
8
  attribute :data do
9
9
  attribute :result, Types::Integer
10
10
 
11
- attribute :output do
11
+ attribute? :output do
12
12
  include Mixins::ServicesOutputStatusChecks
13
13
 
14
14
  # {"sent":"sent","in_progress":"in progress","ok":"succeeded","paused":"paused","rejected":"rejected","failed":"failed","canceled":"canceled or terminated","timeout":"timeout"}
@@ -13,8 +13,8 @@ module DjiMqttConnect
13
13
  # Not a Strict UUID format... turns out DJI doesn't follow one
14
14
  UUID = Strict::String.constrained(format: /\A[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\z/i)
15
15
 
16
- # Just make sure Timestamps are positive
17
- Timestamp = Types::Integer.constrained(gteq: 0)
16
+ # Just make sure Timestamps are 13 digits long
17
+ Timestamp = Types::Integer & Types::Coercible::String.constrained(format: /\A[1-9][0-9]{12}\z/)
18
18
 
19
19
  SerialNumber = Types::String
20
20
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DjiMqttConnect
4
- VERSION = "0.1.16"
4
+ VERSION = "0.1.16.2"
5
5
  end
@@ -46,6 +46,7 @@ module DjiMqttConnect
46
46
  autoload :HighestPriorityUploadFlighttaskMediaEventsMessage, "dji_mqtt_connect/messages/thing/product/events/highest_priority_upload_flighttask_media"
47
47
  autoload :HmsEventsMessage, "dji_mqtt_connect/messages/thing/product/events/hms"
48
48
  autoload :StatusCodeEventsMessage, "dji_mqtt_connect/messages/thing/product/events/status_code"
49
+ autoload :TrackEventsMessage, "dji_mqtt_connect/messages/thing/product/events/track"
49
50
  autoload :EventsMessage, "dji_mqtt_connect/messages/thing/product/events_message"
50
51
 
51
52
  autoload :EventsReplyMessage, "dji_mqtt_connect/messages/thing/product/events_reply_message"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dji_mqtt_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sphere Drones
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-28 00:00:00.000000000 Z
11
+ date: 2023-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -137,6 +137,7 @@ files:
137
137
  - lib/dji_mqtt_connect/messages/thing/product/events/highest_priority_upload_flighttask_media.rb
138
138
  - lib/dji_mqtt_connect/messages/thing/product/events/hms.rb
139
139
  - lib/dji_mqtt_connect/messages/thing/product/events/status_code.rb
140
+ - lib/dji_mqtt_connect/messages/thing/product/events/track.rb
140
141
  - lib/dji_mqtt_connect/messages/thing/product/events_message.rb
141
142
  - lib/dji_mqtt_connect/messages/thing/product/events_reply_message.rb
142
143
  - lib/dji_mqtt_connect/messages/thing/product/osd/dock.rb
@@ -230,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
231
  - !ruby/object:Gem::Version
231
232
  version: '0'
232
233
  requirements: []
233
- rubygems_version: 3.4.12
234
+ rubygems_version: 3.4.16
234
235
  signing_key:
235
236
  specification_version: 4
236
237
  summary: Manages MQTT Connections with DJI Drones