origen_doc_helpers 0.5.0 → 0.5.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
  SHA1:
3
- metadata.gz: 85440fbd42fa86dac86aff8e5ef6e22a5aecb055
4
- data.tar.gz: 6d0935c7dd8915560615bf036d9c1f9b0f419624
3
+ metadata.gz: 21e11bbcc80ff339bededd853ce5841d32557e1d
4
+ data.tar.gz: d18fed9d16abc208a24386a57eeda59bdd058034
5
5
  SHA512:
6
- metadata.gz: 2e719551ff40ef9e1786270e35ebcb3807bd8a7301d5eb8a092667c98ca5f936422be58762b460aea522895f360d7cde806710047610104f1c6a50912c7a4ce0
7
- data.tar.gz: 7caa6a40056f25f56681807cba4c20a36666a83906e87debe13221038a0bcc0206dbf9c2aa0bb3cdf82a1a6682f1da78ee1563845b45d6f40abe7264fe874ae1
6
+ metadata.gz: 8de31f7120554896056beecd98a9764e3d202f271f0b55a206fa6609955eaf02dd4c1565cb6b8fde004b37e2e7f2fe28f58269d3ccccb2ec67d63790e5ab5e1d
7
+ data.tar.gz: 196abe9267e4754a2c699042c6b941a55f1378cb9ed2127272c42450b721f6e694d9794cb1c3d1ebfbf220e8fe4c5774e7de22f793914d1ac995aeb9a04a1888
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module OrigenDocHelpers
2
2
  MAJOR = 0
3
3
  MINOR = 5
4
- BUGFIX = 0
4
+ BUGFIX = 1
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -56,12 +56,14 @@
56
56
  %#############################################
57
57
  <tr class="read">
58
58
  <td class="heading">R</td>
59
+ % alignment_done = false
59
60
  % reg.named_bits :include_spacers => true do |name, bit|
60
61
  % if _bit_in_range?(bit, max_bit, min_bit)
61
- % if max_bit > (reg.size - 1)
62
+ % if max_bit > (reg.size - 1) && !alignment_done
62
63
  % (max_bit - (reg.size - 1)).times do
63
64
  <td class="spacer"></td>
64
65
  % end
66
+ % alignment_done = true
65
67
  % end
66
68
  % if bit.size > 1
67
69
  % if name
@@ -114,12 +116,14 @@
114
116
  %#############################################
115
117
  <tr class="write">
116
118
  <td class="heading">W</td>
119
+ % alignment_done = false
117
120
  % reg.named_bits :include_spacers => true do |name, bit|
118
121
  % if _bit_in_range?(bit, max_bit, min_bit)
119
- % if max_bit > (reg.size - 1)
122
+ % if max_bit > (reg.size - 1) && !alignment_done
120
123
  % (max_bit - (reg.size - 1)).times do
121
124
  <td class="spacer"></td>
122
125
  % end
126
+ % alignment_done = true
123
127
  % end
124
128
  % if bit.size > 1
125
129
  % if name
@@ -166,12 +170,14 @@
166
170
  %#############################################
167
171
  <tr class="reset">
168
172
  <td class="heading">Reset</td>
173
+ % alignment_done = false
169
174
  % reg.named_bits :include_spacers => true do |name, bit|
170
175
  % if _bit_in_range?(bit, max_bit, min_bit)
171
- % if max_bit > (reg.size - 1)
176
+ % if max_bit > (reg.size - 1) && !alignment_done
172
177
  % (max_bit - (reg.size - 1)).times do
173
178
  <td class="spacer"></td>
174
179
  % end
180
+ % alignment_done = true
175
181
  % end
176
182
  % if bit.size > 1
177
183
  % if name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_doc_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-16 00:00:00.000000000 Z
11
+ date: 2017-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen