spreen-wiki 0.1.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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +114 -0
- data/exe/spreen +6 -0
- data/lib/spreen/wiki/application.rb +151 -0
- data/lib/spreen/wiki/cli.rb +159 -0
- data/lib/spreen/wiki/configuration.rb +217 -0
- data/lib/spreen/wiki/home.rb +102 -0
- data/lib/spreen/wiki/sidebar.rb +50 -0
- data/lib/spreen/wiki/templates/category/english.md +8 -0
- data/lib/spreen/wiki/templates/category/japanese.md +8 -0
- data/lib/spreen/wiki/templates/owner/english.md +8 -0
- data/lib/spreen/wiki/templates/owner/japanese.md +8 -0
- data/lib/spreen/wiki/unknown_wiki_count_list_exporter.rb +61 -0
- data/lib/spreen/wiki/unknown_wiki_list_exporter_for_llm.rb +53 -0
- data/lib/spreen/wiki/version.rb +8 -0
- data/lib/spreen/wiki.rb +20 -0
- data/lib/spreen-wiki.rb +6 -0
- data/sig/generated/spreen/wiki/application.rbs +93 -0
- data/sig/generated/spreen/wiki/cli.rbs +70 -0
- data/sig/generated/spreen/wiki/configuration.rbs +150 -0
- data/sig/generated/spreen/wiki/home.rbs +54 -0
- data/sig/generated/spreen/wiki/sidebar.rbs +31 -0
- data/sig/generated/spreen/wiki/unknown_wiki_count_list_exporter.rbs +40 -0
- data/sig/generated/spreen/wiki/unknown_wiki_list_exporter_for_llm.rbs +37 -0
- data/sig/generated/spreen/wiki/version.rbs +7 -0
- data/sig/generated/spreen/wiki.rbs +10 -0
- data/sig/generated/spreen-wiki.rbs +2 -0
- data/sig/generated/test/application_test.rbs +30 -0
- data/sig/generated/test/configuration_test.rbs +38 -0
- data/sig/generated/test/home_test.rbs +60 -0
- data/sig/generated/test/sidebar_test.rbs +42 -0
- data/sig/generated/test/unknown_wiki_count_list_exporter_test.rbs +161 -0
- data/sig/generated/test/unknown_wiki_list_exporter_for_llm_test.rbs +53 -0
- metadata +80 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Generated from lib/spreen/wiki/home.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module Spreen
|
|
4
|
+
module Wiki
|
|
5
|
+
# Generates the wiki Home page, optionally splitting per-owner content out
|
|
6
|
+
# into `wikis-by-owner/<owner>.md` when home_overflow is enabled. Returns
|
|
7
|
+
# the configured wiki URL (if any) so callers can point at the result.
|
|
8
|
+
class Home < Application
|
|
9
|
+
# @rbs return: String?
|
|
10
|
+
def run: () -> String?
|
|
11
|
+
|
|
12
|
+
private
|
|
13
|
+
|
|
14
|
+
# @rbs return: String
|
|
15
|
+
def path_to_wikis_by_owner: () -> String
|
|
16
|
+
|
|
17
|
+
# @rbs return: String
|
|
18
|
+
def path_to_home_template: () -> String
|
|
19
|
+
|
|
20
|
+
# @rbs return: Array[String]
|
|
21
|
+
def home_passage: () -> Array[String]
|
|
22
|
+
|
|
23
|
+
# @rbs return: void
|
|
24
|
+
def write_home_passage: () -> void
|
|
25
|
+
|
|
26
|
+
# @rbs return: void
|
|
27
|
+
def write_concise_home_passage: () -> void
|
|
28
|
+
|
|
29
|
+
# @rbs return: void
|
|
30
|
+
def write_per_namespace_files: () -> void
|
|
31
|
+
|
|
32
|
+
# @rbs return: void
|
|
33
|
+
def write_home_table_of_contents: () -> void
|
|
34
|
+
|
|
35
|
+
# @rbs passage: Array[String]
|
|
36
|
+
# @rbs namespace: String
|
|
37
|
+
# @rbs wikis: Array[String]
|
|
38
|
+
# @rbs owned: bool
|
|
39
|
+
# @rbs return: void
|
|
40
|
+
def append_block: (Array[String] passage, String namespace, Array[String] wikis, owned: bool) -> void
|
|
41
|
+
|
|
42
|
+
# @rbs namespace: String
|
|
43
|
+
# @rbs wikis: Array[String]
|
|
44
|
+
# @rbs owned: bool
|
|
45
|
+
# @rbs return: void
|
|
46
|
+
def write_overflow_block: (String namespace, Array[String] wikis, owned: bool) -> void
|
|
47
|
+
|
|
48
|
+
# @rbs namespace: String
|
|
49
|
+
# @rbs owned: bool
|
|
50
|
+
# @rbs return: String
|
|
51
|
+
def heading_for: (String namespace, owned: bool) -> String
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Generated from lib/spreen/wiki/sidebar.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module Spreen
|
|
4
|
+
module Wiki
|
|
5
|
+
# Generates the wiki _Sidebar.md as a nested list of owners/categories and
|
|
6
|
+
# their wiki pages.
|
|
7
|
+
class Sidebar < Application
|
|
8
|
+
# @rbs return: void
|
|
9
|
+
def run: () -> void
|
|
10
|
+
|
|
11
|
+
private
|
|
12
|
+
|
|
13
|
+
# @rbs return: Array[String]
|
|
14
|
+
def wiki_list: () -> Array[String]
|
|
15
|
+
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def update_wiki_list: () -> void
|
|
18
|
+
|
|
19
|
+
# @rbs namespace: String
|
|
20
|
+
# @rbs wikis: Array[String]
|
|
21
|
+
# @rbs owned: bool
|
|
22
|
+
# @rbs return: void
|
|
23
|
+
def append_section: (String namespace, Array[String] wikis, owned: bool) -> void
|
|
24
|
+
|
|
25
|
+
# @rbs namespace: String
|
|
26
|
+
# @rbs owned: bool
|
|
27
|
+
# @rbs return: String
|
|
28
|
+
def section_heading: (String namespace, owned: bool) -> String
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated from lib/spreen/wiki/unknown_wiki_count_list_exporter.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module Spreen
|
|
4
|
+
module Wiki
|
|
5
|
+
# Writes a sorted text report of how many wikis exist under each of the
|
|
6
|
+
# configured "unknown owner/category" namespaces.
|
|
7
|
+
class UnknownWikiCountListExporter < Application
|
|
8
|
+
DEFAULT_OUTPUT_FILENAME: ::String
|
|
9
|
+
|
|
10
|
+
# @rbs base_path: String
|
|
11
|
+
# @rbs group_by: String
|
|
12
|
+
# @rbs language: String
|
|
13
|
+
# @rbs home_overflow: (bool | String)
|
|
14
|
+
# @rbs output: String?
|
|
15
|
+
# @rbs **options: untyped
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (?base_path: String, ?group_by: String, ?language: String, ?home_overflow: bool | String, ?output: String?, **untyped) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs return: [Array[String], String]
|
|
20
|
+
def run: () -> [ Array[String], String ]
|
|
21
|
+
|
|
22
|
+
private
|
|
23
|
+
|
|
24
|
+
attr_reader path_to_export: String
|
|
25
|
+
|
|
26
|
+
# @rbs filename: String
|
|
27
|
+
# @rbs return: String
|
|
28
|
+
def resolve_output_path: (String filename) -> String
|
|
29
|
+
|
|
30
|
+
# @rbs return: Array[String]
|
|
31
|
+
def namespace_list: () -> Array[String]
|
|
32
|
+
|
|
33
|
+
# @rbs return: Array[String]
|
|
34
|
+
def missing_count_list_by_namespace: () -> Array[String]
|
|
35
|
+
|
|
36
|
+
# @rbs return: Array[String]
|
|
37
|
+
def count_list_by_namespace: () -> Array[String]
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Generated from lib/spreen/wiki/unknown_wiki_list_exporter_for_llm.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module Spreen
|
|
4
|
+
module Wiki
|
|
5
|
+
# Writes a flat list of the wikis under the configured "unknown
|
|
6
|
+
# owner/category" namespace in a form suitable for feeding to an LLM.
|
|
7
|
+
class UnknownWikiListExporterForLLM < Application
|
|
8
|
+
DEFAULT_OUTPUT_FILENAME: ::String
|
|
9
|
+
|
|
10
|
+
# @rbs base_path: String
|
|
11
|
+
# @rbs group_by: String
|
|
12
|
+
# @rbs language: String
|
|
13
|
+
# @rbs home_overflow: (bool | String)
|
|
14
|
+
# @rbs output: String?
|
|
15
|
+
# @rbs **options: untyped
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (?base_path: String, ?group_by: String, ?language: String, ?home_overflow: bool | String, ?output: String?, **untyped) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs return: String
|
|
20
|
+
def run: () -> String
|
|
21
|
+
|
|
22
|
+
private
|
|
23
|
+
|
|
24
|
+
attr_reader path_to_export: String
|
|
25
|
+
|
|
26
|
+
# @rbs filename: String
|
|
27
|
+
# @rbs return: String
|
|
28
|
+
def resolve_output_path: (String filename) -> String
|
|
29
|
+
|
|
30
|
+
# @rbs return: String
|
|
31
|
+
def target_namespace: () -> String
|
|
32
|
+
|
|
33
|
+
# @rbs return: Array[String]
|
|
34
|
+
def unknown_wiki_list_for_llm: () -> Array[String]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Generated from lib/spreen/wiki.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module Spreen
|
|
4
|
+
# Spreens a GitHub wiki — the falcon's stoop, then the preen: generates
|
|
5
|
+
# Home.md and _Sidebar.md grouped by the Owner/Category declared on the
|
|
6
|
+
# first line of each page, and exports reports of the pages whose owner
|
|
7
|
+
# or category is unknown.
|
|
8
|
+
module Wiki
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Generated from test/application_test.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ApplicationTest < Minitest::Test
|
|
4
|
+
TEST_FILE_MAPS: Hash[Array[String], Hash[String, String]]
|
|
5
|
+
|
|
6
|
+
def setup: (?base_path: untyped, ?group_by: untyped, ?language: untyped, ?home_overflow: untyped) -> untyped
|
|
7
|
+
|
|
8
|
+
def teardown: () -> untyped
|
|
9
|
+
|
|
10
|
+
def test_validate_group_by!: () -> untyped
|
|
11
|
+
|
|
12
|
+
def test_validate_language!: () -> untyped
|
|
13
|
+
|
|
14
|
+
def test_validate_home_overflow!: () -> untyped
|
|
15
|
+
|
|
16
|
+
def test_self_run: () -> untyped
|
|
17
|
+
|
|
18
|
+
private
|
|
19
|
+
|
|
20
|
+
attr_reader base_path: untyped
|
|
21
|
+
|
|
22
|
+
attr_reader group_by: untyped
|
|
23
|
+
|
|
24
|
+
attr_reader language: untyped
|
|
25
|
+
|
|
26
|
+
attr_reader home_overflow: untyped
|
|
27
|
+
|
|
28
|
+
# @rbs return: Hash[String, String]
|
|
29
|
+
def test_file_maps: () -> Hash[String, String]
|
|
30
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Generated from test/configuration_test.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ConfigurationTest < ApplicationTest
|
|
4
|
+
CUSTOM_CONFIG: ::String
|
|
5
|
+
|
|
6
|
+
def test_default_group_bys_and_languages: () -> untyped
|
|
7
|
+
|
|
8
|
+
def test_default_labels: () -> untyped
|
|
9
|
+
|
|
10
|
+
def test_default_unknown_namespaces: () -> untyped
|
|
11
|
+
|
|
12
|
+
def test_default_excluded_dirs: () -> untyped
|
|
13
|
+
|
|
14
|
+
def test_urls_are_absent_without_an_organisation: () -> untyped
|
|
15
|
+
|
|
16
|
+
def test_urls_derived_from_organisation_and_repository: () -> untyped
|
|
17
|
+
|
|
18
|
+
def test_explicit_urls_win_over_derived_ones: () -> untyped
|
|
19
|
+
|
|
20
|
+
def test_empty_values_are_treated_as_absent: () -> untyped
|
|
21
|
+
|
|
22
|
+
def test_default_template_dir_ships_with_the_library: () -> untyped
|
|
23
|
+
|
|
24
|
+
def test_config_file_overrides_values: () -> untyped
|
|
25
|
+
|
|
26
|
+
def test_config_file_extends_languages: () -> untyped
|
|
27
|
+
|
|
28
|
+
def test_explicit_options_win_over_the_config_file: () -> untyped
|
|
29
|
+
|
|
30
|
+
def test_config_file_language_passes_validation: () -> untyped
|
|
31
|
+
|
|
32
|
+
def test_exporter_honours_custom_output_filename: () -> untyped
|
|
33
|
+
|
|
34
|
+
private
|
|
35
|
+
|
|
36
|
+
# @rbs return: void
|
|
37
|
+
def write_config_file: () -> void
|
|
38
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Generated from test/home_test.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class HomeTest < ApplicationTest
|
|
4
|
+
def setup: (?group_by: untyped, ?language: untyped, ?home_overflow: untyped) -> untyped
|
|
5
|
+
|
|
6
|
+
private
|
|
7
|
+
|
|
8
|
+
attr_reader path_to_home: untyped
|
|
9
|
+
|
|
10
|
+
attr_reader home: untyped
|
|
11
|
+
|
|
12
|
+
attr_reader path_to_wikis_by_owner: untyped
|
|
13
|
+
|
|
14
|
+
# Expected Home pages live under test/fixtures/home/.
|
|
15
|
+
# @rbs basename: String
|
|
16
|
+
# @rbs return: String
|
|
17
|
+
def expected_home: (String basename) -> String
|
|
18
|
+
|
|
19
|
+
module English
|
|
20
|
+
class OwnedHomeTest < HomeTest
|
|
21
|
+
class NonOverflowTest < OwnedHomeTest
|
|
22
|
+
def test_self_run: () -> untyped
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
class OverflowTest < OwnedHomeTest
|
|
26
|
+
def setup: () -> untyped
|
|
27
|
+
|
|
28
|
+
def test_self_run: () -> untyped
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
class CategorisedHomeTest < HomeTest
|
|
33
|
+
def setup: () -> untyped
|
|
34
|
+
|
|
35
|
+
def test_self_run: () -> untyped
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
module Japanese
|
|
40
|
+
class OwnedHomeTest < HomeTest
|
|
41
|
+
class NonOverflowTest < OwnedHomeTest
|
|
42
|
+
def setup: () -> untyped
|
|
43
|
+
|
|
44
|
+
def test_self_run: () -> untyped
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
class OverflowTest < OwnedHomeTest
|
|
48
|
+
def setup: () -> untyped
|
|
49
|
+
|
|
50
|
+
def test_self_run: () -> untyped
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
class CategorisedHomeTest < HomeTest
|
|
55
|
+
def setup: () -> untyped
|
|
56
|
+
|
|
57
|
+
def test_self_run: () -> untyped
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Generated from test/sidebar_test.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class SidebarTest < ApplicationTest
|
|
4
|
+
def setup: (?group_by: untyped, ?language: untyped) -> untyped
|
|
5
|
+
|
|
6
|
+
private
|
|
7
|
+
|
|
8
|
+
attr_reader path_to_sidebar: untyped
|
|
9
|
+
|
|
10
|
+
attr_reader sidebar: untyped
|
|
11
|
+
|
|
12
|
+
# Expected Sidebar pages live under test/fixtures/sidebar/.
|
|
13
|
+
# @rbs basename: String
|
|
14
|
+
# @rbs return: String
|
|
15
|
+
def expected_sidebar: (String basename) -> String
|
|
16
|
+
|
|
17
|
+
module English
|
|
18
|
+
class OwnedSidebarTest < SidebarTest
|
|
19
|
+
def test_self_run: () -> untyped
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
class PlainSidebarTest < SidebarTest
|
|
23
|
+
def setup: () -> untyped
|
|
24
|
+
|
|
25
|
+
def test_self_run: () -> untyped
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
module Japanese
|
|
30
|
+
class OwnedSidebarTest < SidebarTest
|
|
31
|
+
def setup: () -> untyped
|
|
32
|
+
|
|
33
|
+
def test_self_run: () -> untyped
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
class PlainSidebarTest < SidebarTest
|
|
37
|
+
def setup: () -> untyped
|
|
38
|
+
|
|
39
|
+
def test_self_run: () -> untyped
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# Generated from test/unknown_wiki_count_list_exporter_test.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class UnknownWikiCountListExporterTest < ApplicationTest
|
|
4
|
+
def setup: (?group_by: untyped, ?language: untyped) -> untyped
|
|
5
|
+
|
|
6
|
+
private
|
|
7
|
+
|
|
8
|
+
attr_reader path_to_unknown_wiki_count_list: untyped
|
|
9
|
+
|
|
10
|
+
attr_reader unknown_wiki_count_list: untyped
|
|
11
|
+
|
|
12
|
+
module English
|
|
13
|
+
class OwnershipTest < UnknownWikiCountListExporterTest
|
|
14
|
+
class RegularCase1 < OwnershipTest
|
|
15
|
+
def test_self_run: () -> untyped
|
|
16
|
+
|
|
17
|
+
private
|
|
18
|
+
|
|
19
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
class RegularCase2 < OwnershipTest
|
|
23
|
+
def test_self_run: () -> untyped
|
|
24
|
+
|
|
25
|
+
private
|
|
26
|
+
|
|
27
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
28
|
+
|
|
29
|
+
def test_file_maps: () -> untyped
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
class IrregularCase1 < OwnershipTest
|
|
33
|
+
def test_self_run: () -> untyped
|
|
34
|
+
|
|
35
|
+
private
|
|
36
|
+
|
|
37
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
38
|
+
|
|
39
|
+
def test_file_maps: () -> untyped
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
class IrregularCase2 < OwnershipTest
|
|
43
|
+
def test_self_run: () -> untyped
|
|
44
|
+
|
|
45
|
+
private
|
|
46
|
+
|
|
47
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
48
|
+
|
|
49
|
+
def test_file_maps: () -> untyped
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
class IrregularCase3 < OwnershipTest
|
|
53
|
+
def test_self_run: () -> untyped
|
|
54
|
+
|
|
55
|
+
private
|
|
56
|
+
|
|
57
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
58
|
+
|
|
59
|
+
def test_file_maps: () -> untyped
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
class CategoryTest < UnknownWikiCountListExporterTest
|
|
64
|
+
def setup: () -> untyped
|
|
65
|
+
|
|
66
|
+
class RegularCase < CategoryTest
|
|
67
|
+
def test_self_run: () -> untyped
|
|
68
|
+
|
|
69
|
+
private
|
|
70
|
+
|
|
71
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
class IrregularCase < CategoryTest
|
|
75
|
+
def test_self_run: () -> untyped
|
|
76
|
+
|
|
77
|
+
private
|
|
78
|
+
|
|
79
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
80
|
+
|
|
81
|
+
def test_file_maps: () -> untyped
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
module Japanese
|
|
87
|
+
class OwnershipTest < UnknownWikiCountListExporterTest
|
|
88
|
+
def setup: () -> untyped
|
|
89
|
+
|
|
90
|
+
class RegularCase1 < OwnershipTest
|
|
91
|
+
def test_self_run: () -> untyped
|
|
92
|
+
|
|
93
|
+
private
|
|
94
|
+
|
|
95
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
class RegularCase2 < OwnershipTest
|
|
99
|
+
def test_self_run: () -> untyped
|
|
100
|
+
|
|
101
|
+
private
|
|
102
|
+
|
|
103
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
104
|
+
|
|
105
|
+
def test_file_maps: () -> untyped
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
class IrregularCase1 < OwnershipTest
|
|
109
|
+
def test_self_run: () -> untyped
|
|
110
|
+
|
|
111
|
+
private
|
|
112
|
+
|
|
113
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
114
|
+
|
|
115
|
+
def test_file_maps: () -> untyped
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
class IrregularCase2 < OwnershipTest
|
|
119
|
+
def test_self_run: () -> untyped
|
|
120
|
+
|
|
121
|
+
private
|
|
122
|
+
|
|
123
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
124
|
+
|
|
125
|
+
def test_file_maps: () -> untyped
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
class IrregularCase3 < OwnershipTest
|
|
129
|
+
def test_self_run: () -> untyped
|
|
130
|
+
|
|
131
|
+
private
|
|
132
|
+
|
|
133
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
134
|
+
|
|
135
|
+
def test_file_maps: () -> untyped
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
class CategoryTest < UnknownWikiCountListExporterTest
|
|
140
|
+
def setup: () -> untyped
|
|
141
|
+
|
|
142
|
+
class RegularCase < CategoryTest
|
|
143
|
+
def test_self_run: () -> untyped
|
|
144
|
+
|
|
145
|
+
private
|
|
146
|
+
|
|
147
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
class IrregularCase < CategoryTest
|
|
151
|
+
def test_self_run: () -> untyped
|
|
152
|
+
|
|
153
|
+
private
|
|
154
|
+
|
|
155
|
+
def unknown_wiki_count_list_by_namespace: () -> untyped
|
|
156
|
+
|
|
157
|
+
def test_file_maps: () -> untyped
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Generated from test/unknown_wiki_list_exporter_for_llm_test.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class UnknownWikiListExporterForLLMTest < ApplicationTest
|
|
4
|
+
def setup: (?group_by: untyped, ?language: untyped) -> untyped
|
|
5
|
+
|
|
6
|
+
private
|
|
7
|
+
|
|
8
|
+
attr_reader path_to_unknown_wiki_list_for_llm: untyped
|
|
9
|
+
|
|
10
|
+
attr_reader unknown_wiki_list_for_llm: untyped
|
|
11
|
+
|
|
12
|
+
module English
|
|
13
|
+
class OwnershipTest < UnknownWikiListExporterForLLMTest
|
|
14
|
+
def test_self_run: () -> untyped
|
|
15
|
+
|
|
16
|
+
private
|
|
17
|
+
|
|
18
|
+
def unknown_wiki_list: () -> untyped
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
class CategoryTest < UnknownWikiListExporterForLLMTest
|
|
22
|
+
def setup: () -> untyped
|
|
23
|
+
|
|
24
|
+
def test_self_run: () -> untyped
|
|
25
|
+
|
|
26
|
+
private
|
|
27
|
+
|
|
28
|
+
def unknown_wiki_list: () -> untyped
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
module Japanese
|
|
33
|
+
class OwnershipTest < UnknownWikiListExporterForLLMTest
|
|
34
|
+
def setup: () -> untyped
|
|
35
|
+
|
|
36
|
+
def test_self_run: () -> untyped
|
|
37
|
+
|
|
38
|
+
private
|
|
39
|
+
|
|
40
|
+
def unknown_wiki_list: () -> untyped
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class CategoryTest < UnknownWikiListExporterForLLMTest
|
|
44
|
+
def setup: () -> untyped
|
|
45
|
+
|
|
46
|
+
def test_self_run: () -> untyped
|
|
47
|
+
|
|
48
|
+
private
|
|
49
|
+
|
|
50
|
+
def unknown_wiki_list: () -> untyped
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: spreen-wiki
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- hayat01sh1da
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: Spreen — the falcon's stoop, then the preen. Generates Home.md and _Sidebar.md
|
|
13
|
+
for a GitHub wiki by grouping pages by the Owner/Category declared on the first
|
|
14
|
+
line of each page (English and Japanese labels built in, extensible via .spreen.yml),
|
|
15
|
+
and exports reports of the pages whose owner or category is unknown.
|
|
16
|
+
executables:
|
|
17
|
+
- spreen
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- LICENSE.txt
|
|
22
|
+
- README.md
|
|
23
|
+
- exe/spreen
|
|
24
|
+
- lib/spreen-wiki.rb
|
|
25
|
+
- lib/spreen/wiki.rb
|
|
26
|
+
- lib/spreen/wiki/application.rb
|
|
27
|
+
- lib/spreen/wiki/cli.rb
|
|
28
|
+
- lib/spreen/wiki/configuration.rb
|
|
29
|
+
- lib/spreen/wiki/home.rb
|
|
30
|
+
- lib/spreen/wiki/sidebar.rb
|
|
31
|
+
- lib/spreen/wiki/templates/category/english.md
|
|
32
|
+
- lib/spreen/wiki/templates/category/japanese.md
|
|
33
|
+
- lib/spreen/wiki/templates/owner/english.md
|
|
34
|
+
- lib/spreen/wiki/templates/owner/japanese.md
|
|
35
|
+
- lib/spreen/wiki/unknown_wiki_count_list_exporter.rb
|
|
36
|
+
- lib/spreen/wiki/unknown_wiki_list_exporter_for_llm.rb
|
|
37
|
+
- lib/spreen/wiki/version.rb
|
|
38
|
+
- sig/generated/spreen-wiki.rbs
|
|
39
|
+
- sig/generated/spreen/wiki.rbs
|
|
40
|
+
- sig/generated/spreen/wiki/application.rbs
|
|
41
|
+
- sig/generated/spreen/wiki/cli.rbs
|
|
42
|
+
- sig/generated/spreen/wiki/configuration.rbs
|
|
43
|
+
- sig/generated/spreen/wiki/home.rbs
|
|
44
|
+
- sig/generated/spreen/wiki/sidebar.rbs
|
|
45
|
+
- sig/generated/spreen/wiki/unknown_wiki_count_list_exporter.rbs
|
|
46
|
+
- sig/generated/spreen/wiki/unknown_wiki_list_exporter_for_llm.rbs
|
|
47
|
+
- sig/generated/spreen/wiki/version.rbs
|
|
48
|
+
- sig/generated/test/application_test.rbs
|
|
49
|
+
- sig/generated/test/configuration_test.rbs
|
|
50
|
+
- sig/generated/test/home_test.rbs
|
|
51
|
+
- sig/generated/test/sidebar_test.rbs
|
|
52
|
+
- sig/generated/test/unknown_wiki_count_list_exporter_test.rbs
|
|
53
|
+
- sig/generated/test/unknown_wiki_list_exporter_for_llm_test.rbs
|
|
54
|
+
homepage: https://github.com/hayat01sh1da/spreen-wiki
|
|
55
|
+
licenses:
|
|
56
|
+
- MIT
|
|
57
|
+
metadata:
|
|
58
|
+
homepage_uri: https://github.com/hayat01sh1da/spreen-wiki
|
|
59
|
+
source_code_uri: https://github.com/hayat01sh1da/spreen-wiki
|
|
60
|
+
changelog_uri: https://github.com/hayat01sh1da/spreen-wiki/blob/master/CHANGELOG.md
|
|
61
|
+
bug_tracker_uri: https://github.com/hayat01sh1da/spreen-wiki/issues
|
|
62
|
+
rubygems_mfa_required: 'true'
|
|
63
|
+
rdoc_options: []
|
|
64
|
+
require_paths:
|
|
65
|
+
- lib
|
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
|
+
requirements:
|
|
68
|
+
- - ">="
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '3.4'
|
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
requirements: []
|
|
77
|
+
rubygems_version: 4.0.16
|
|
78
|
+
specification_version: 4
|
|
79
|
+
summary: 'Spreen your GitHub wiki: organise Home and _Sidebar pages by owner or category.'
|
|
80
|
+
test_files: []
|