intel_hex 0.5.1 → 0.5.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: 85e7256e202e9bd3721b5c2adb25c7b2b8d1072789e6bcb4a5567cf7c4f58a41
4
- data.tar.gz: 0c7133a23e85031d8e9320356cf63019b1d14b7a98297f93be859926527da905
3
+ metadata.gz: a67ed5207fb30323f40db0ef565965c501d7d85c3d040bbaf80eec3642c076b0
4
+ data.tar.gz: 7242a9b940678f30065fbfe71ff5e06c1d8cc953cd63f122eb1b6d9ce0416837
5
5
  SHA512:
6
- metadata.gz: 2e34a69bdf175daef67c3ba8fc0ff78c4d293913abbf66e8d1b909f58c0ce9d205b41f73549ba852863ddc9257f3a54ad07a359d08edff3aec202f7e7277efe9
7
- data.tar.gz: c346492af2d9fb5ac4b155cfcbd483be98fde9279f1fc08574327c1a1d9174cbfd855d76b71151bcd532fd1929e21d9ba62c041c90346cdc36b60eacfe86d72f
6
+ metadata.gz: e2db72c94bb8b1c062ce981255320f2b7dbb15441acdecc640ea4a4cfa5f411756c0e9ed22a485aef97c773bca82a37f8f0a8c7f4a7d5e2e134c5e5e9b58e3e3
7
+ data.tar.gz: e3db780d5faaac61770594eb0fe85055619d0bf76844afea4e591167a6d535636f8a610046126176bebbadfdcd60560625af92c308869b1cd25b3321dbc640c9
@@ -22,7 +22,7 @@ module IntelHex
22
22
  data: (1..255),
23
23
  eof: 0,
24
24
  esa: 2,
25
- ssa: 2,
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 <= 255
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, :data_to_uint16
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=, :uint16_to_data
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
@@ -1,3 +1,3 @@
1
1
  module IntelHex
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
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.1
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: 2019-05-17 00:00:00.000000000 Z
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.0.3
60
+ rubygems_version: 3.1.2
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: Parser for Intel hex files