dji_mqtt_connect 0.1.19 → 0.1.19.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: d79c6acb7c5be4e14a79b1592039fd385c1fb0bdb7886e9c07282bef039b1a66
4
- data.tar.gz: 0f715b3bcc5964fe3c3d6f26378ac833eea6c97d4cce49d6d2ab612586a89af7
3
+ metadata.gz: 32ee39b795f662201b49e2390046aba2b90963940ce03980fd6e07f9f7de6c0e
4
+ data.tar.gz: d47a3c8bc1154aba8d282ed0095a9c4b986c82dde7359e3ef15db241569085f7
5
5
  SHA512:
6
- metadata.gz: 8e5f42c56bbf32787b3d50abbb60929bb6ead17d29e7288d0fec9db11473d77e9671354162f8afdf340a07e407c4d3299ae7353b15bda17de8df02cb0ca6d0d1
7
- data.tar.gz: eeae798ff32212fa8bc0af6f6200667cef77d347201da7681dd52db6a97ac76d34a6806a9d377f7ff4b5488bd6cd0f1c2055646d567244731e8299a8b8decc78
6
+ metadata.gz: a75908421b0588112f72b1b08452c18cd6209efb45e6be675c544acf7e5d5e475c4bb85e2a7f3803b49bed114efb9827522285f581489699a59c4079765b89a3
7
+ data.tar.gz: 5fc3beab2ba3cb2514704491ce4e084b1578f36e126e71c1e91971b9a7d0a7d26eb2cec9bd6b1d5de9eb48808bd31b492df6ddfcf011d89cdbaf2571c4ce49c3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dji_mqtt_connect (0.1.19)
4
+ dji_mqtt_connect (0.1.19.2)
5
5
  activesupport (>= 6.0, <= 8)
6
6
  dry-struct (~> 1.6)
7
7
  dry-transformer (~> 1.0)
@@ -75,6 +75,9 @@ module DjiMqttConnect
75
75
  raise ParseError.new(e, "Unable to parse message as JSON")
76
76
  rescue Dry::Struct::Error => e
77
77
  raise ParseError.new(e, "Unexpected #{message_class} payload")
78
+ rescue TypeError => e
79
+ # FIXME: airsense messages have data as an array, this breaks a lot of code...
80
+ raise ParseError.new(e, "Unable to parse message")
78
81
  end
79
82
 
80
83
  private
@@ -58,7 +58,7 @@ module DjiMqttConnect
58
58
  end
59
59
  attribute :elevation, Types::JSON::Decimal
60
60
 
61
- attribute :firmware_version, Types::String
61
+ attribute? :firmware_version, Types::String
62
62
  attribute :gear, Types::Integer
63
63
  attribute :height, Types::JSON::Decimal
64
64
  attribute? :height_limit, Types::JSON::Decimal
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DjiMqttConnect
4
- VERSION = "0.1.19"
4
+ VERSION = "0.1.19.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dji_mqtt_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sphere Drones