intel_hex 0.5.1 → 0.5.2
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/lib/intel_hex/record.rb +4 -4
- data/lib/intel_hex/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a67ed5207fb30323f40db0ef565965c501d7d85c3d040bbaf80eec3642c076b0
|
|
4
|
+
data.tar.gz: 7242a9b940678f30065fbfe71ff5e06c1d8cc953cd63f122eb1b6d9ce0416837
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2db72c94bb8b1c062ce981255320f2b7dbb15441acdecc640ea4a4cfa5f411756c0e9ed22a485aef97c773bca82a37f8f0a8c7f4a7d5e2e134c5e5e9b58e3e3
|
|
7
|
+
data.tar.gz: e3db780d5faaac61770594eb0fe85055619d0bf76844afea4e591167a6d535636f8a610046126176bebbadfdcd60560625af92c308869b1cd25b3321dbc640c9
|
data/lib/intel_hex/record.rb
CHANGED
|
@@ -22,7 +22,7 @@ module IntelHex
|
|
|
22
22
|
data: (1..255),
|
|
23
23
|
eof: 0,
|
|
24
24
|
esa: 2,
|
|
25
|
-
ssa:
|
|
25
|
+
ssa: 4,
|
|
26
26
|
ela: 2,
|
|
27
27
|
sla: 4,
|
|
28
28
|
}
|
|
@@ -144,7 +144,7 @@ module IntelHex
|
|
|
144
144
|
|
|
145
145
|
def validate_offset
|
|
146
146
|
raise InvalidOffsetError.new("Offset #{offset} is negative") unless offset >= 0
|
|
147
|
-
raise InvalidOffsetError.new("Offset #{offset} is too large") unless offset
|
|
147
|
+
raise InvalidOffsetError.new("Offset #{offset} is too large") unless offset < 2**16
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
def validate_length
|
|
@@ -216,12 +216,12 @@ module IntelHex
|
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
alias_method :esa, :data_to_uint16
|
|
219
|
-
alias_method :ssa, :
|
|
219
|
+
alias_method :ssa, :data_to_uint32
|
|
220
220
|
alias_method :ela, :data_to_uint16
|
|
221
221
|
alias_method :sla, :data_to_uint32
|
|
222
222
|
|
|
223
223
|
alias_method :esa=, :uint16_to_data
|
|
224
|
-
alias_method :ssa=, :
|
|
224
|
+
alias_method :ssa=, :uint32_to_data
|
|
225
225
|
alias_method :ela=, :uint16_to_data
|
|
226
226
|
alias_method :sla=, :uint32_to_data
|
|
227
227
|
end
|
data/lib/intel_hex/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: intel_hex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Cole
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-06-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
58
|
version: '0'
|
|
59
59
|
requirements: []
|
|
60
|
-
rubygems_version: 3.
|
|
60
|
+
rubygems_version: 3.1.2
|
|
61
61
|
signing_key:
|
|
62
62
|
specification_version: 4
|
|
63
63
|
summary: Parser for Intel hex files
|