ruby_home-tlv 0.1.0 → 0.1.1

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: aad62338971b49260c5bcdbc07b939efe6ee8c851eecf4a637c9b710d0bfd02b
4
- data.tar.gz: 7befc811fe0ca3414448826a5767e17d17484ef9394fdad52b6d90054e007ea6
3
+ metadata.gz: 2d87805b6001094ed54811996c27f39ab496a4a876c3042144c1caf00e920c26
4
+ data.tar.gz: eb1207881525215600991c77393a138e917cadbf102ac28402b3518691960a61
5
5
  SHA512:
6
- metadata.gz: bad405abdbb982dc63d3ac92520a1982c28837aaf4252289890144dfbaf221979738077967e7d31e6e2027b0a9b35234065f89ecaf5adb3049e75bc77a6a31ee
7
- data.tar.gz: 5b468cb11932120c7c2c762708107e302894f2fa0732e06f0f2735e95e022c7799eba55f6c30f34870ff59fba6df11fab0053402b847cf93fad286d007cc21bb
6
+ metadata.gz: d7c5c45627ec5993317628c6a5b2ee3addf97dcc38e1463db435a21674c0a32b85b10fc0c226e778f57258f70e939c0e8369cf15c4ef5ae5f8fed181949dc2ef
7
+ data.tar.gz: 1e6af77a4e403b0505a065a94dbe43d83d1d5e417348ae464645790120739f0724432156f092d137d7c8e736f28ceaf67d577e5dc8d4e5971c280cfb4c33b731
@@ -5,7 +5,7 @@ module RubyHome
5
5
  class TLV < BinData::Record
6
6
  uint8 :type_id
7
7
  uint8 :len, value: -> { val.to_binary_s.length }
8
- choice :val, selection: :type_id do
8
+ choice :val, selection: -> { type_id.to_i } do
9
9
  string :default, read_length: :len
10
10
 
11
11
  uint8 0, read_length: :len
@@ -1,5 +1,5 @@
1
1
  module RubyHome
2
2
  module TLV
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_home-tlv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Entwistle
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-28 00:00:00.000000000 Z
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -36,28 +36,28 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.17'
39
+ version: '2.1'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.17'
46
+ version: '2.1'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '10.0'
53
+ version: '13.0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '10.0'
60
+ version: '13.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rspec
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -102,7 +102,7 @@ files:
102
102
  homepage: https://github.com/karlentwistle/ruby_home-tlv
103
103
  licenses: []
104
104
  metadata: {}
105
- post_install_message:
105
+ post_install_message:
106
106
  rdoc_options: []
107
107
  require_paths:
108
108
  - lib
@@ -117,8 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubygems_version: 3.0.1
121
- signing_key:
120
+ rubygems_version: 3.2.0.rc.1
121
+ signing_key:
122
122
  specification_version: 4
123
123
  summary: encode / decode TRV HAP
124
124
  test_files: