saga 0.12.2 → 0.13.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b03eae8f29e0063947c22d3bc4a13560c53261568d7a708c4dbeaeef6bb26b3
4
- data.tar.gz: 219bd772b93ee7311859b97b4af056649f17db729a581bfac4a007b53aad182c
3
+ metadata.gz: bb16d806858071ae990221bbe0e3395b5915f602d6977ad7fcf6c80c9ddc3088
4
+ data.tar.gz: 196970e4f60fc8291b6c9058e94d7c11797d37e6afe5afd02fc4308130a9f292
5
5
  SHA512:
6
- metadata.gz: cb93fea044cf3dade2ad640d28e33762c79d08cd37963fa82eff4a47c9da1fb4302d4216d962881c446ac8a7fe40e01f850b28ffaf07dcc8c38217b8308c4ae5
7
- data.tar.gz: 943c9205ced09c32ecadff5113e86bdae93a01513da578cd0809cd38c11eb643534744fa5ead5874c873b9f4bc4b286a248f7b1645336b244575790f0605c8cb
6
+ metadata.gz: d5c4281d013be54655b5b731fce1ee72c5def64cc028d17640b6536c7186b004faac7a7e1138e8eadecfe915d8acc60c6b8284dbfef23a6dc906aee14b4f34b4
7
+ data.tar.gz: 7899e505f7a74ec1b63c7179389017ff51ff9b9445ac4cb8bd8d216d1fbddedc0aa0022588c9be86facee60b5ae6d63436c66672686193744ba7f679de874ab5
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Saga
4
- VERSION = '0.12.2'.freeze
4
+ VERSION = '0.13.0'.freeze
5
5
  end
@@ -1,79 +1,320 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
3
  <head>
4
- <meta charset="utf-8">
5
- <title>Requirements <%= title %></title>
6
- <link rel="stylesheet" type="text/css" media="all" href="http://resources.fngtps.com/2019/doc.css" />
4
+ <meta charset="utf-8">
5
+ <title>Requirements <%= title %></title>
6
+ <style>
7
+ a
8
+ {
9
+ text-decoration: none;
10
+ }
11
+ a:hover,
12
+ a:active
13
+ {
14
+ text-decoration: underline;
15
+ }
16
+ body
17
+ {
18
+ margin: 1.5em 1em;
19
+ font-family: palatino, georgia, serif;
20
+ line-height: 1.25;
21
+ }
22
+ h1,
23
+ h2,
24
+ h3
25
+ {
26
+ margin: 0;
27
+ font-size: 150%;
28
+ line-height: 1;
29
+ font-weight: normal;
30
+ }
31
+ h2
32
+ {
33
+ margin: 1em 0;
34
+ }
35
+ h3
36
+ {
37
+ margin: 0.75em 0 0.25em 0;
38
+ font-size: 125%;
39
+ }
40
+ table + h2,
41
+ dl + h2,
42
+ table + h3
43
+ {
44
+ margin-top: 2em;
45
+ }
46
+ p,
47
+ ul
48
+ {
49
+ margin: 1em 0;
50
+ }
51
+ ul.authors
52
+ {
53
+ padding: 0;
54
+ font-style: italic;
55
+ list-style-type: none;
56
+ color: #444;
57
+ }
58
+ table
59
+ {
60
+ margin: 1em -1em;
61
+ border-collapse: collapse;
62
+ empty-cells: show;
63
+ border-bottom: 1px solid #ddd;
64
+ margin-top: -1em;
65
+ }
66
+ tbody tr:not(.notes)
67
+ {
68
+ border-top: 1px solid #ddd;
69
+ }
70
+ tr.notes
71
+ {
72
+ color: #444;
73
+ font-style: italic;
74
+ }
75
+ th,
76
+ td
77
+ {
78
+ padding: .5em 0.25em;
79
+ vertical-align: top;
80
+ text-align: left;
81
+ }
82
+ th:first-child,
83
+ td:first-child
84
+ {
85
+ padding-left: 1em;
86
+ }
87
+ th:last-child,
88
+ td:last-child
89
+ {
90
+ padding-right: 1em;
91
+ }
92
+ th
93
+ {
94
+ text-align: right;
95
+ }
96
+ tr.notes td
97
+ {
98
+ padding-top: 0;
99
+ }
100
+ td.story
101
+ {
102
+ width: 100%;
103
+ }
104
+ th.meta
105
+ {
106
+ cursor: help;
107
+ }
108
+ td.meta
109
+ {
110
+ text-align: right !important;
111
+ white-space: nowrap;
112
+ }
113
+ .dropped
114
+ {
115
+ color: #888;
116
+ text-decoration: line-through;
117
+ }
118
+ .done
119
+ {
120
+ background-color: #f0f8ff;
121
+ }
122
+ tr.nested td.story
123
+ {
124
+ padding-left: 1em;
125
+ }
126
+ td.id
127
+ {
128
+ text-align: right !important;
129
+ }
130
+ td.id a
131
+ {
132
+ color: #000;
133
+ }
134
+ dl
135
+ {
136
+ margin: 1em -1em;
137
+ }
138
+ dt,
139
+ dd
140
+ {
141
+ display: block;
142
+ }
143
+ dt
144
+ {
145
+ float: left;
146
+ clear: both;
147
+ margin: 0;
148
+ padding: 0 0 0 1em;
149
+ font-weight: bold;
150
+ }
151
+ dt:after
152
+ {
153
+ content: ": ";
154
+ }
155
+ dd
156
+ {
157
+ margin: 0 0 1em 0;
158
+ padding: 0 1em;
159
+ display: block;
160
+ }
161
+ @media (min-width: 40em) {
162
+ body
163
+ {
164
+ margin: 2em;
165
+ }
166
+ table,
167
+ dl
168
+ {
169
+ margin-left: -2em;
170
+ margin-right: -2em;
171
+ }
172
+ th:first-child,
173
+ td:first-child
174
+ {
175
+ padding-left: 2em;
176
+ }
177
+ th:last-child,
178
+ td:last-child
179
+ {
180
+ padding-right: 2em;
181
+ }
182
+ dl
183
+ {
184
+ border-bottom: 1px solid #ddd;
185
+ }
186
+ dt
187
+ {
188
+ padding: .5em 0 0 2em;
189
+ border-top: none;
190
+ }
191
+ dd
192
+ {
193
+ margin: 0;
194
+ padding: .5em 2em .5em 20em;
195
+ border-top: 1px solid #ddd;
196
+ }
197
+ }
198
+ @media print
199
+ {
200
+ body
201
+ {
202
+ margin: 0;
203
+ font-size: 10pt;
204
+ }
205
+ table,
206
+ dl
207
+ {
208
+ margin-left: 0;
209
+ margin-right: 0;
210
+ }
211
+ th:first-child,
212
+ td:first-child
213
+ {
214
+ padding-left: 0;
215
+ }
216
+ th:last-child,
217
+ td:last-child
218
+ {
219
+ padding-right: 0;
220
+ }
221
+ dl
222
+ {
223
+ border-bottom: 1px solid #ddd;
224
+ }
225
+ dt
226
+ {
227
+ padding: .5em 0 0 0;
228
+ border-top: none;
229
+ }
230
+ dd
231
+ {
232
+ margin: 0;
233
+ padding: .5em 0 .5em 40%;
234
+ border-top: 1px solid #ddd;
235
+ }
236
+ }
237
+ </style>
7
238
  </head>
8
- <body id="doc" class="requirements">
9
- <h1>Requirements<br><%= title %></h1>
239
+ <body>
10
240
 
11
- <% authors.each do |author| %>
12
- <p class="author"><%= format_author(author) %></p>
13
- <% end %>
241
+ <h1>Requirements <%= title %></h1>
242
+
243
+ <% unless authors.empty? %>
244
+ <ul class="authors">
245
+ <% authors.each do |author| %>
246
+ <li><%= format_author(author) %></li>
247
+ <% end %>
248
+ </ul>
249
+ <% end %>
14
250
 
15
- <% introduction.each do |paragraph| %>
251
+ <% introduction.each do |paragraph| %>
16
252
  <p><%=h paragraph %></p>
17
- <% end %>
253
+ <% end %>
18
254
 
19
- <% unless stories.empty? %>
255
+ <% unless stories.empty? %>
20
256
  <h2>User stories</h2>
21
257
  <% stories.each do |header, stories| %>
22
- <% unless header.strip == '' %>
23
- <h3><%=h header %></h3>
24
- <% end %>
25
- <table class="review">
26
- <tr>
27
- <th></th>
28
- <th title="id">#</th>
29
- <th title="Estimate">e</th>
30
- <th title="Iteration">i</th>
31
- <th title="Status">s</th>
32
- </tr>
33
- <% stories.each do |story| %>
34
- <tr class="<%= story[:status] %>" id="story<%= story[:id] %>">
35
- <td class="story"><%=h story[:description] %></td>
36
- <td class="meta id"><%=h story[:id] %></td>
37
- <td class="meta estimate"><%= format_estimate(*story[:estimate]) if story[:estimate] %></td>
38
- <td class="meta iteration"><%=h story[:iteration] %></td>
39
- <td class="meta status"><%=h story[:status] %></td>
40
- </tr>
41
- <% if story[:notes] %>
42
- <tr class="<%= story[:status] %>">
43
- <td class="notes" colspan="5"><%=h story[:notes] %></td>
44
- </tr>
45
- <% end %>
46
- <% if story[:stories] %>
47
- <% story[:stories].each do |nested| %>
48
- <tr class="nested <%= nested[:status] %>" id="story<%= nested[:id] %>">
49
- <td class="story"><%=h nested[:description] %></td>
50
- <td class="meta id"><%=h nested[:id] %></td>
51
- <td class="meta estimate"><%= format_estimate(*nested[:estimate]) if nested[:estimate] %></td>
52
- <td class="meta iteration"><%=h nested[:iteration] %></td>
53
- <td class="meta status"><%=h nested[:status] %></td>
54
- </tr>
55
- <% if nested[:notes] %>
56
- <tr class="nested <%= nested[:status] %>">
57
- <td class="notes" colspan="5"><%=h nested[:notes] %></td>
58
- </tr>
59
- <% end %>
60
- <% end %>
61
- <% end %>
62
- <% end %>
63
- </table>
64
- <% end %>
258
+ <% unless header.strip == '' %>
259
+ <h3><%=h header %></h3>
260
+ <% end %>
261
+ <table>
262
+ <thead>
263
+ <tr>
264
+ <th></th>
265
+ <th class="meta" title="id">#</th>
266
+ <th class="meta" title="Estimate">e</th>
267
+ <th class="meta" title="Iteration">i</th>
268
+ <th class="meta" title="Status">s</th>
269
+ </tr>
270
+ </thead>
271
+ <tbody>
272
+ <% stories.each do |story| %>
273
+ <tr class="<%= story[:status] %>" id="story<%= story[:id] %>">
274
+ <td class="story"><%=h story[:description] %></td>
275
+ <td class="meta id"><%=h story[:id] %></td>
276
+ <td class="meta estimate"><%= format_estimate(*story[:estimate]) if story[:estimate] %></td>
277
+ <td class="meta iteration"><%=h story[:iteration] %></td>
278
+ <td class="meta status"><%=h story[:status] %></td>
279
+ </tr>
280
+ <% if story[:notes] %>
281
+ <tr class="notes <%= story[:status] %>">
282
+ <td colspan="5"><%=h story[:notes] %></td>
283
+ </tr>
284
+ <% end %>
285
+ <% if story[:stories] %>
286
+ <% story[:stories].each do |nested| %>
287
+ <tr class="nested <%= nested[:status] %>" id="story<%= nested[:id] %>">
288
+ <td class="story"><%=h nested[:description] %></td>
289
+ <td class="meta id"><%=h nested[:id] %></td>
290
+ <td class="meta estimate"><%= format_estimate(*nested[:estimate]) if nested[:estimate] %></td>
291
+ <td class="meta iteration"><%=h nested[:iteration] %></td>
292
+ <td class="meta status"><%=h nested[:status] %></td>
293
+ </tr>
294
+ <% if nested[:notes] %>
295
+ <tr class="nested notes <%= nested[:status] %>">
296
+ <td colspan="5"><%=h nested[:notes] %></td>
297
+ </tr>
298
+ <% end %>
299
+ <% end %>
300
+ <% end %>
301
+ <% end %>
302
+ </tbody>
303
+ </table>
65
304
  <% end %>
305
+ <% end %>
66
306
 
67
- <% definitions.each do |header, definitions| %>
307
+ <% definitions.each do |header, definitions| %>
68
308
  <% unless header.strip == '' %>
69
- <h2><%= format_header(header) %></h2>
309
+ <h2><%= format_header(header) %></h2>
70
310
  <% end %>
71
311
  <dl>
72
- <% definitions.each do |definition| %>
73
- <dt><%=h definition[:title] %></dt>
74
- <dd><%=h definition[:definition] %></dd>
75
- <% end %>
312
+ <% definitions.each do |definition| %>
313
+ <dt><%=h definition[:title] %></dt>
314
+ <dd><%=h definition[:definition] %></dd>
315
+ <% end %>
76
316
  </dl>
77
- <% end %>
78
- </body>
79
- </html>
317
+ <% end %>
318
+
319
+ </body>
320
+ </html>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manfred Stienstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-05 00:00:00.000000000 Z
11
+ date: 2019-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport