Almirah 0.1.4 → 0.1.5
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/almirah/doc_types/traceability.rb +12 -1
- data/lib/almirah/project.rb +2 -0
- data/lib/almirah/templates/page.html +9 -0
- data/lib/almirah.rb +17 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99a9591235fc0f0e1820c572da3c24a1365e93ff7f32a78ceda1083e982f9ad3
|
4
|
+
data.tar.gz: 95a400de1b4ad0c471d1fbbc1ee68339618127ac18d9cb5e9429dc36bda2d252
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f77bcf2b93586fe371b48b863d27604390c22180666441cc8bc7329d2e87d361ce33d08da873b410245d77cabbc0784c285fad17946838fbd9f4d30d1ca34da2
|
7
|
+
data.tar.gz: 5f227475da116c2b5d13a023d3d1cb4476a49a862392819a854ac35e4d0624af20f7abe8730fa092177fa733259953bf1ab410dc96ba3f37d1e635955b4b0647
|
@@ -57,7 +57,7 @@ class Traceability < BaseDocument
|
|
57
57
|
def render_table_row(top_item)
|
58
58
|
s = ""
|
59
59
|
top_f_text = top_item.format_string( top_item.text )
|
60
|
-
|
60
|
+
|
61
61
|
if top_item.down_links
|
62
62
|
|
63
63
|
if @is_agregated
|
@@ -81,6 +81,7 @@ class Traceability < BaseDocument
|
|
81
81
|
end
|
82
82
|
|
83
83
|
else
|
84
|
+
top_item_rendered = false
|
84
85
|
top_item.down_links.each do |bottom_item|
|
85
86
|
|
86
87
|
id_color = ""
|
@@ -97,8 +98,18 @@ class Traceability < BaseDocument
|
|
97
98
|
s += "\t\t<td class=\"item_text\" style='width: 34%;'>#{bottom_f_text}</td>\n"
|
98
99
|
s += "\t\t<td class=\"item_text\" style='width: 16%;'>#{document_section}</td>\n"
|
99
100
|
s += "\t</tr>\n"
|
101
|
+
top_item_rendered = true
|
100
102
|
end
|
101
103
|
end
|
104
|
+
unless top_item_rendered
|
105
|
+
s += "\t<tr>\n"
|
106
|
+
s += "\t\t<td class=\"item_id\" #{id_color}><a href=\"./../#{top_item.parent_doc.id}/#{top_item.parent_doc.id}.html##{top_item.id}\" class=\"external\">#{top_item.id}</a></td>\n"
|
107
|
+
s += "\t\t<td class=\"item_text\" style='width: 34%;'>#{top_f_text}</td>\n"
|
108
|
+
s += "\t\t<td class=\"item_id\"></td>\n"
|
109
|
+
s += "\t\t<td class=\"item_text\" style='width: 34%;'></td>\n"
|
110
|
+
s += "\t\t<td class=\"item_text\" style='width: 16%;'></td>\n"
|
111
|
+
s += "\t</tr>\n"
|
112
|
+
end
|
102
113
|
end
|
103
114
|
else
|
104
115
|
s += "\t<tr>\n"
|
data/lib/almirah/project.rb
CHANGED
@@ -15,6 +15,7 @@ class Project
|
|
15
15
|
attr_accessor :specifications_dictionary
|
16
16
|
attr_accessor :index
|
17
17
|
attr_accessor :project
|
18
|
+
attr_accessor :on_server
|
18
19
|
|
19
20
|
def initialize(path)
|
20
21
|
@project_root_directory = path
|
@@ -25,6 +26,7 @@ class Project
|
|
25
26
|
@specifications_dictionary = Hash.new
|
26
27
|
@index = nil
|
27
28
|
@project = self
|
29
|
+
@on_server = false
|
28
30
|
|
29
31
|
FileUtils.remove_dir(@project_root_directory + "/build", true)
|
30
32
|
end
|
@@ -303,6 +303,13 @@ window.onload = (event) => {
|
|
303
303
|
elem.style.width = "640px";
|
304
304
|
}
|
305
305
|
}
|
306
|
+
// Scroll a bit to make navigated anchor visible
|
307
|
+
setTimeout(function() {
|
308
|
+
window.scrollBy({
|
309
|
+
top: -40,
|
310
|
+
behavior: "smooth"
|
311
|
+
});
|
312
|
+
}, 200);
|
306
313
|
};
|
307
314
|
|
308
315
|
function downlink_OnClick(clicked){
|
@@ -316,6 +323,8 @@ function navigate_to_home(){
|
|
316
323
|
if (document.title != "Document Index")
|
317
324
|
{
|
318
325
|
window.location.href = "./../../index.html";
|
326
|
+
}else{
|
327
|
+
window.location.href = "./index.html";
|
319
328
|
}
|
320
329
|
}
|
321
330
|
|
data/lib/almirah.rb
CHANGED
@@ -7,9 +7,9 @@ class CLI < Thor
|
|
7
7
|
def please(project_folder)
|
8
8
|
a = Almirah.new project_folder
|
9
9
|
if options[:results]
|
10
|
-
a.results options[:results]
|
10
|
+
a.results( options[:results], false )
|
11
11
|
else
|
12
|
-
a.default
|
12
|
+
a.default(false)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
@@ -18,6 +18,17 @@ class CLI < Thor
|
|
18
18
|
a = Almirah.new project_folder
|
19
19
|
a.transform "docx"
|
20
20
|
end
|
21
|
+
|
22
|
+
option :results
|
23
|
+
desc "server <project_folder>", "say <project_folder>"
|
24
|
+
def server(project_folder)
|
25
|
+
a = Almirah.new project_folder
|
26
|
+
if options[:results]
|
27
|
+
a.results( options[:results], true )
|
28
|
+
else
|
29
|
+
a.default(true)
|
30
|
+
end
|
31
|
+
end
|
21
32
|
end
|
22
33
|
|
23
34
|
class Almirah
|
@@ -32,7 +43,8 @@ class Almirah
|
|
32
43
|
File.expand_path './..', File.dirname(__FILE__)
|
33
44
|
end
|
34
45
|
|
35
|
-
def results( test_run )
|
46
|
+
def results( test_run, on_server )
|
47
|
+
@project.on_server = on_server
|
36
48
|
@project.specifications_and_results test_run
|
37
49
|
end
|
38
50
|
|
@@ -40,7 +52,8 @@ class Almirah
|
|
40
52
|
@project.transform file_extension
|
41
53
|
end
|
42
54
|
|
43
|
-
def default()
|
55
|
+
def default(on_server)
|
56
|
+
@project.on_server = on_server
|
44
57
|
@project.specifications_and_protocols
|
45
58
|
end
|
46
59
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Almirah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleksandr Ivanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The software part of the Almirah framework
|
14
14
|
email: oleksandr.ivanov.development@gmail.com
|