slow_blink 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +9 -0
- data/ext/slow_blink/ext_schema_parser/parser.c +4 -4
- data/ext/slow_blink/message/ext_compact_encoder/compact_encoder.c +5 -5
- data/ext/slow_blink/message/ext_compact_encoder/ext_compact_encoder.c +31 -18
- data/lib/slow_blink/annotatable.rb +20 -17
- data/lib/slow_blink/annotation.rb +20 -18
- data/lib/slow_blink/binary.rb +20 -17
- data/lib/slow_blink/boolean.rb +20 -17
- data/lib/slow_blink/date.rb +20 -17
- data/lib/slow_blink/decimal.rb +20 -17
- data/lib/slow_blink/definition.rb +21 -19
- data/lib/slow_blink/enumeration.rb +30 -26
- data/lib/slow_blink/field.rb +20 -17
- data/lib/slow_blink/fixed.rb +20 -17
- data/lib/slow_blink/floating_point.rb +20 -17
- data/lib/slow_blink/group.rb +21 -18
- data/lib/slow_blink/incremental_annotation.rb +21 -18
- data/lib/slow_blink/integer.rb +20 -17
- data/lib/slow_blink/log.rb +20 -17
- data/lib/slow_blink/message/binary.rb +23 -18
- data/lib/slow_blink/message/boolean.rb +22 -17
- data/lib/slow_blink/message/date.rb +23 -18
- data/lib/slow_blink/message/decimal.rb +38 -21
- data/lib/slow_blink/message/enumeration.rb +31 -21
- data/lib/slow_blink/message/field.rb +23 -18
- data/lib/slow_blink/message/fixed.rb +23 -19
- data/lib/slow_blink/message/floating_point.rb +22 -17
- data/lib/slow_blink/message/group.rb +90 -55
- data/lib/slow_blink/message/integer.rb +51 -24
- data/lib/slow_blink/message/model.rb +197 -131
- data/lib/slow_blink/message/sequence.rb +31 -25
- data/lib/slow_blink/message/string.rb +23 -18
- data/lib/slow_blink/message/time.rb +31 -25
- data/lib/slow_blink/message/time_of_day.rb +24 -18
- data/lib/slow_blink/name_with_id.rb +20 -17
- data/lib/slow_blink/namespace.rb +22 -19
- data/lib/slow_blink/object.rb +20 -17
- data/lib/slow_blink/parse_error.rb +26 -0
- data/lib/slow_blink/ref.rb +20 -17
- data/lib/slow_blink/schema.rb +26 -24
- data/lib/slow_blink/schema_buffer.rb +20 -17
- data/lib/slow_blink/sequence.rb +20 -17
- data/lib/slow_blink/string.rb +20 -17
- data/lib/slow_blink/sym.rb +20 -17
- data/lib/slow_blink/time.rb +20 -17
- data/lib/slow_blink/time_of_day.rb +20 -17
- data/lib/slow_blink/type.rb +20 -17
- data/lib/slow_blink/version.rb +21 -18
- data/lib/slow_blink.rb +19 -17
- data/test/tc_compact_encoder.rb +64 -30
- data/test/tc_group.rb +0 -19
- data/test/tc_incr_annote.rb +0 -21
- data/test/tc_model_decimal.rb +94 -0
- data/test/tc_model_dynamic_group.rb +0 -19
- data/test/tc_model_extension.rb +0 -19
- data/test/tc_model_sequence_of_string.rb +29 -0
- data/test/tc_model_static_group.rb +0 -19
- data/test/tc_model_think_blink.rb +0 -19
- data/test/tc_types.rb +0 -19
- metadata +8 -4
- data/lib/slow_blink/compact_encoder.rb +0 -72
- data/lib/slow_blink/error.rb +0 -23
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slow_blink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Harper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -60,6 +60,7 @@ extensions:
|
|
60
60
|
- ext/slow_blink/message/ext_compact_encoder/extconf.rb
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
+
- ".yardopts"
|
63
64
|
- ext/slow_blink/ext_schema_parser/common.h
|
64
65
|
- ext/slow_blink/ext_schema_parser/extconf.rb
|
65
66
|
- ext/slow_blink/ext_schema_parser/lexer.c
|
@@ -75,12 +76,10 @@ files:
|
|
75
76
|
- lib/slow_blink/annotation.rb
|
76
77
|
- lib/slow_blink/binary.rb
|
77
78
|
- lib/slow_blink/boolean.rb
|
78
|
-
- lib/slow_blink/compact_encoder.rb
|
79
79
|
- lib/slow_blink/date.rb
|
80
80
|
- lib/slow_blink/decimal.rb
|
81
81
|
- lib/slow_blink/definition.rb
|
82
82
|
- lib/slow_blink/enumeration.rb
|
83
|
-
- lib/slow_blink/error.rb
|
84
83
|
- lib/slow_blink/field.rb
|
85
84
|
- lib/slow_blink/fixed.rb
|
86
85
|
- lib/slow_blink/floating_point.rb
|
@@ -106,6 +105,7 @@ files:
|
|
106
105
|
- lib/slow_blink/name_with_id.rb
|
107
106
|
- lib/slow_blink/namespace.rb
|
108
107
|
- lib/slow_blink/object.rb
|
108
|
+
- lib/slow_blink/parse_error.rb
|
109
109
|
- lib/slow_blink/ref.rb
|
110
110
|
- lib/slow_blink/schema.rb
|
111
111
|
- lib/slow_blink/schema_buffer.rb
|
@@ -123,8 +123,10 @@ files:
|
|
123
123
|
- test/tc_group.rb
|
124
124
|
- test/tc_incr_annote.rb
|
125
125
|
- test/tc_inputs.rb
|
126
|
+
- test/tc_model_decimal.rb
|
126
127
|
- test/tc_model_dynamic_group.rb
|
127
128
|
- test/tc_model_extension.rb
|
129
|
+
- test/tc_model_sequence_of_string.rb
|
128
130
|
- test/tc_model_static_group.rb
|
129
131
|
- test/tc_model_think_blink.rb
|
130
132
|
- test/tc_namespace.rb
|
@@ -156,10 +158,12 @@ summary: Blink Protocol in Ruby
|
|
156
158
|
test_files:
|
157
159
|
- test/tc_model_static_group.rb
|
158
160
|
- test/tc_model_extension.rb
|
161
|
+
- test/tc_model_decimal.rb
|
159
162
|
- test/tc_compact_encoder.rb
|
160
163
|
- test/tc_group.rb
|
161
164
|
- test/tc_inputs.rb
|
162
165
|
- test/tc_namespace.rb
|
166
|
+
- test/tc_model_sequence_of_string.rb
|
163
167
|
- test/tc_types.rb
|
164
168
|
- test/capture_stderr.rb
|
165
169
|
- test/tc_model_think_blink.rb
|
@@ -1,72 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016 Cameron Harper
|
2
|
-
#
|
3
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
-
# this software and associated documentation files (the "Software"), to deal in
|
5
|
-
# the Software without restriction, including without limitation the rights to
|
6
|
-
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
7
|
-
# the Software, and to permit persons to whom the Software is furnished to do so,
|
8
|
-
# subject to the following conditions:
|
9
|
-
#
|
10
|
-
# The above copyright notice and this permission notice shall be included in all
|
11
|
-
# copies or substantial portions of the Software.
|
12
|
-
#
|
13
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
15
|
-
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
|
-
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
|
-
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
-
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
-
|
20
|
-
module SlowBlink
|
21
|
-
|
22
|
-
# @api private
|
23
|
-
module CompactEncoder
|
24
|
-
|
25
|
-
# @!method getU8(input)
|
26
|
-
# @param input [String]
|
27
|
-
# @return [nil, Integer]
|
28
|
-
# @raise [Error]
|
29
|
-
|
30
|
-
# @!method getU16(input)
|
31
|
-
# @param input [String]
|
32
|
-
# @return [nil, Integer]
|
33
|
-
# @raise [Error]
|
34
|
-
|
35
|
-
# @!method getU32(input)
|
36
|
-
# @param input [String]
|
37
|
-
# @return [nil, Integer]
|
38
|
-
# @raise [Error]
|
39
|
-
|
40
|
-
# @!method getU64(input)
|
41
|
-
# @param input [String]
|
42
|
-
# @return [nil, Integer]
|
43
|
-
# @raise [Error]
|
44
|
-
|
45
|
-
# @!method getI8(input)
|
46
|
-
# @param input [String]
|
47
|
-
# @return [nil, Integer]
|
48
|
-
# @raise [Error]
|
49
|
-
|
50
|
-
# @!method getI16(input)
|
51
|
-
# @param input [String]
|
52
|
-
# @return [nil, Integer]
|
53
|
-
# @raise [Error]
|
54
|
-
|
55
|
-
# @!method getI32(input)
|
56
|
-
# @param input [String]
|
57
|
-
# @return [nil, Integer]
|
58
|
-
# @raise [Error]
|
59
|
-
|
60
|
-
# @!method getI64(input)
|
61
|
-
# @param input [String]
|
62
|
-
# @return [nil, Integer]
|
63
|
-
# @raise [Error]
|
64
|
-
|
65
|
-
# @!method getF64(input)
|
66
|
-
# @param input [String]
|
67
|
-
# @return [nil, Integer]
|
68
|
-
# @raise [Error]
|
69
|
-
|
70
|
-
end
|
71
|
-
|
72
|
-
end
|
data/lib/slow_blink/error.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016 Cameron Harper
|
2
|
-
#
|
3
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
-
# this software and associated documentation files (the "Software"), to deal in
|
5
|
-
# the Software without restriction, including without limitation the rights to
|
6
|
-
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
7
|
-
# the Software, and to permit persons to whom the Software is furnished to do so,
|
8
|
-
# subject to the following conditions:
|
9
|
-
#
|
10
|
-
# The above copyright notice and this permission notice shall be included in all
|
11
|
-
# copies or substantial portions of the Software.
|
12
|
-
#
|
13
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
15
|
-
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
|
-
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
|
-
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
-
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
-
|
20
|
-
module SlowBlink
|
21
|
-
class Error < StandardError
|
22
|
-
end
|
23
|
-
end
|