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 +4 -4
- data/lib/ruby_home/tlv/tlv.rb +1 -1
- data/lib/ruby_home/tlv/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d87805b6001094ed54811996c27f39ab496a4a876c3042144c1caf00e920c26
|
4
|
+
data.tar.gz: eb1207881525215600991c77393a138e917cadbf102ac28402b3518691960a61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7c5c45627ec5993317628c6a5b2ee3addf97dcc38e1463db435a21674c0a32b85b10fc0c226e778f57258f70e939c0e8369cf15c4ef5ae5f8fed181949dc2ef
|
7
|
+
data.tar.gz: 1e6af77a4e403b0505a065a94dbe43d83d1d5e417348ae464645790120739f0724432156f092d137d7c8e736f28ceaf67d577e5dc8d4e5971c280cfb4c33b731
|
data/lib/ruby_home/tlv/tlv.rb
CHANGED
@@ -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:
|
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
|
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.
|
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:
|
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
|
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
|
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: '
|
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: '
|
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:
|