aro 0.2.4 → 0.2.6

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.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -2
  3. data/Gemfile.lock +126 -50
  4. data/LICENSE +1 -1
  5. data/README.md +1 -1
  6. data/aro.gemspec +10 -11
  7. data/bin/oss_om +15 -0
  8. data/checksums/aro-0.2.4.gem.sha512 +1 -0
  9. data/checksums/aro-0.2.5.gem.sha512 +1 -0
  10. data/checksums/aro-0.2.6.gem.sha512 +1 -0
  11. data/locale/en.cards.yml +19 -21
  12. data/locale/en.cmd.yml +34 -0
  13. data/locale/en.cor.yml +5 -8
  14. data/locale/en.menu_items.yml +2 -0
  15. data/locale/en.menus.yml +2 -0
  16. data/locale/en.usage.yml +24 -45
  17. data/locale/en.yml +61 -49
  18. data/sys/aro/cmd.rb +96 -0
  19. data/sys/{aos → aro}/cor.rb +224 -268
  20. data/sys/aro/d.rb +4 -3
  21. data/sys/aro/db/migrate/.DS_Store +0 -0
  22. data/sys/aro/db/migrate/1793913747_create_data_bases.rb +13 -0
  23. data/sys/aro/db/migrate/1793913777_create_data_base_directories.rb +14 -0
  24. data/sys/aro/db/migrate/1793913796_create_data_base_files.rb +12 -0
  25. data/sys/aro/db/migrate/1793913841_create_menus.rb +11 -0
  26. data/sys/aro/db/migrate/1793913861_create_menu_items.rb +14 -0
  27. data/sys/aro/db.rb +72 -33
  28. data/sys/aro/designer.rb +281 -0
  29. data/sys/aro/locale.rb +136 -0
  30. data/sys/aro/ma_ain.rb +54 -0
  31. data/sys/aro/mancy.rb +53 -28
  32. data/sys/aro/models/concerns/.keep +0 -0
  33. data/sys/aro/models/concerns/uuid.rb +29 -0
  34. data/sys/aro/models/data_base.rb +97 -0
  35. data/sys/aro/models/directory.rb +44 -0
  36. data/sys/aro/models/file.rb +27 -0
  37. data/sys/aro/models/menu.rb +27 -0
  38. data/sys/aro/models/menu_item.rb +47 -0
  39. data/sys/aro/models/teck.rb +40 -31
  40. data/sys/aro/p.rb +6 -3
  41. data/sys/aro/r.rb +1 -2
  42. data/sys/aro/store.rb +147 -0
  43. data/sys/aro/v.rb +2 -2
  44. data/sys/aro/views/base.rb +25 -0
  45. data/sys/aro/views/teck.rb +30 -0
  46. data/sys/aro.rb +1 -2
  47. data/sys/cli/constants.rb +1 -7
  48. data/sys/cli/create.rb +3 -3
  49. data/sys/cli/nterface.rb +8 -8
  50. data/sys/cli/teck.rb +17 -18
  51. data/sys/cli/usage.rb +4 -4
  52. data/sys/cli.rb +0 -1
  53. data/sys/reiquire.rb +146 -25
  54. data/sys/shr/.DS_Store +0 -0
  55. data/sys/shr/prompt.rb +8 -2
  56. data/sys/shr/t.rb +5 -5
  57. data/sys/shr/version.rb +9 -2
  58. data/tasks/make.rake +2 -1
  59. metadata +57 -103
  60. data/bin/aos +0 -31
  61. data/bin/aro +0 -60
  62. data/locale/en.abot.yml +0 -81
  63. data/locale/en.amg.yml +0 -44
  64. data/locale/en.aos.yml +0 -40
  65. data/locale/en.data.yml +0 -30
  66. data/locale/en.dom.yml +0 -46
  67. data/locale/en.flie.yml +0 -29
  68. data/sys/aos/abot.rb +0 -255
  69. data/sys/aos/amg.rb +0 -184
  70. data/sys/aos/aos.rb +0 -665
  71. data/sys/aos/data.rb +0 -117
  72. data/sys/aos/db/migrate/1765148774_create_yous.rb +0 -20
  73. data/sys/aos/db/migrate/1765762724_create_ilibs.rb +0 -22
  74. data/sys/aos/db/migrate/1765907766_create_ilogs.rb +0 -18
  75. data/sys/aos/db/migrate/1765933985_create_agodos.rb +0 -22
  76. data/sys/aos/db/migrate/1766203888_create_fpxies.rb +0 -18
  77. data/sys/aos/db.rb +0 -105
  78. data/sys/aos/flie.rb +0 -144
  79. data/sys/aos/models/agodo.rb +0 -95
  80. data/sys/aos/models/fpxy.rb +0 -26
  81. data/sys/aos/models/ilib.rb +0 -46
  82. data/sys/aos/models/ilog.rb +0 -27
  83. data/sys/aos/models/you.rb +0 -102
  84. data/sys/aos/s.rb +0 -26
  85. data/sys/aos/vws/base.rb +0 -159
  86. data/sys/aos/vws/dom.rb +0 -32
  87. data/sys/aos/vws/games/abot.rb +0 -21
  88. data/sys/aos/vws/games/teck.rb +0 -124
  89. data/sys/aos/vws/games.rb +0 -19
  90. data/sys/aos/vws/home.rb +0 -23
  91. data/sys/aos/vws/know/body.rb +0 -19
  92. data/sys/aos/vws/know/mind.rb +0 -19
  93. data/sys/aos/vws/know/spirit.rb +0 -19
  94. data/sys/aos/vws/know.rb +0 -19
  95. data/sys/aos/vws/root/amg.rb +0 -21
  96. data/sys/aos/vws/root/config.rb +0 -21
  97. data/sys/aos/vws/root/data.rb +0 -21
  98. data/sys/aos/vws/root/flie.rb +0 -21
  99. data/sys/aos/vws/root.rb +0 -19
  100. data/sys/aos/vws/welcome/waite.rb +0 -31
  101. data/sys/aos/vws/welcome/winner.rb +0 -19
  102. data/sys/aos/vws/welcome.rb +0 -66
  103. data/sys/aro/models/base_model.rb +0 -13
  104. data/sys/cli/dom.rb +0 -43
  105. data/sys/dom/d.rb +0 -138
  106. data/sys/dom/dom.rb +0 -210
  107. data/sys/dom/p.rb +0 -17
  108. data/sys/fpx.rb +0 -104
  109. data/sys/shr/ilib/crs/CMakeLists.txt +0 -12
  110. data/sys/shr/ilib/crs/compile.sh +0 -5
  111. data/sys/shr/ilib/crs/crs.c +0 -24
  112. data/sys/shr/ilib/crs/crs.o +0 -0
  113. data/sys/shr/ilib/crs/libcrs.so +0 -0
data/locale/en.usage.yml CHANGED
@@ -1,41 +1,30 @@
1
1
  en:
2
2
  usage:
3
- dom: |
4
- aro dom
5
- aos arodome management.
3
+ cor: |
4
+ aro cor management.
6
5
 
7
- $ aro dom var_command
6
+ $ aro cor [-h | --help]
8
7
 
9
- quickstart or tldr;
8
+ $ aro cor var_name var_value
10
9
 
11
- $ aro dom new var_name && cd var_name && aro dom init var_root_username var_root_password
10
+ basic usage:
12
11
 
13
- COMMANDS
14
- init
15
- initialize and generate the arodome.
16
- run once from the dom base directory.
17
-
18
- params:
19
- var_root_username: root aos username.
20
- var var_root_password: root aos password.
12
+ no params prints the cor (writable) ivars.
21
13
 
22
- usage:
14
+ $ aro cor [ivars|ovars]
23
15
 
24
- $ aro dom init var_root_username var_root_password
16
+ param var_name prints the var named var_name.
25
17
 
26
- new
27
- create a new arodome with the specified name.
18
+ $ aro cor var_name
28
19
 
29
- example:
20
+ param var_name & param var_value updates a var named var_name with var_value.
30
21
 
31
- $ aro dom new var_name
22
+ $ aro cor var_name var_value
32
23
 
33
-
34
- aro by i2097i is copyright (2025)
35
24
  main: |
36
- NAME
25
+ SUMMARY
37
26
 
38
- aro - a cli for tarot.
27
+ aro.
39
28
 
40
29
  SYNOPSIS
41
30
 
@@ -49,6 +38,10 @@ en:
49
38
 
50
39
  $ aro +TXXI
51
40
 
41
+ or, equivalently:
42
+
43
+ $ aro +txxi
44
+
52
45
  COMMANDS
53
46
  create
54
47
  create and init an aro space named var_name:
@@ -62,36 +55,22 @@ en:
62
55
  this runs by default after create and has no effect if init is complete.
63
56
 
64
57
  cor
65
- aro cor management.
66
-
67
- $ aro cor var_name var_value
68
-
69
- basic usage:
70
-
71
- no params prints the cor.
72
-
73
- $ aro cor
74
-
75
- param var_name prints the var named var_name.
76
-
77
- $ aro cor var_name
78
-
79
- param var_name & param var_value updates a var named var_name with var_value.
58
+ aro cor unix env bindings.
80
59
 
81
- $ aro cor var_name var_value
60
+ $ aro cor [-h | --help]
82
61
 
83
62
  teck
84
63
  aro teck commands.
85
64
 
86
65
  $ aro teck [-h | --help]
87
66
 
88
- dom
89
- aos arodome management.
67
+ data
68
+ aro data commands.
90
69
 
91
- $ aro dom [-h | --help]
70
+ $ aro data [-h | --help]
92
71
 
93
72
 
94
- aro by i2097i is copyright (2025)
73
+ aro by i2097i is copyright (2026)
95
74
  teck: |
96
75
  aro teck
97
76
  manage tecks in the aro space.
@@ -160,4 +139,4 @@ en:
160
139
  shuffles the current teck and generates a log record.
161
140
 
162
141
 
163
- aro by i2097i is copyright (2025)
142
+ aro by i2097i is copyright (2026)
data/locale/en.yml CHANGED
@@ -1,56 +1,68 @@
1
1
  en:
2
- cli:
3
- # VERY IMPORTANT!
4
- very_important: "VERY IMPORTANT! %{dev_tarot}"
5
- # VERY IMPORTANT!
6
-
2
+ open_menu:
3
+ welcome: "welcome to oss_om"
4
+ edit_menu_localized_name: "designing open menu '%{localized_name}'"
5
+ get_new_value_from_user: "input new value (press enter to cancel): "
6
+ designer:
7
+ create_menu: "enter display text for the new menu"
7
8
  errors:
8
- header: "%{cmd} says there was a problem."
9
- invalid_usage: "%{cmd} says you're not supposed to be here."
10
- missing_args: "%{cmd} says missing required argument(s)."
11
- missing_teck: "%{cmd} says no teck selected. use 'aro teck' to select one or 'aro teck new var_name' to create one."
12
- not_found: "%{cmd} not found."
13
- not_in_aro: "%{cmd} says you are not in aro space. that command will not work here."
14
- not_in_aos: "%{cmd} says you are not in aos space. that command will not work here."
15
- not_initialized_dom: "%{cmd} says you need to initialize dom. $ aro dom init var_root_username var_root_password"
16
- not_initialized: "%{cmd} says you need to initialize aro. run 'aro init' to do so"
17
- warnings:
18
- invalid_order: "the order specified for displaying tlogs in invalid. using default (desc)."
19
- messages:
20
- choose_card: "choose a card."
21
- choose_teck: "choose a teck."
22
- confirmation_prompt: "input 'aroyes' to reset %{name}, or enter to cancel (cancel): "
23
- creating: "creating %{name}..."
24
- creation_attempt: "attempting to create aro table named %{name}..."
25
- creation_failure: "%{name} creation failed!"
26
- creation_success: |
27
- %{name} created successfully!
9
+ invalid_i18n_path: "invalid_i18n_path"
10
+ constants:
11
+ commands: "COMMANDS"
12
+ subcommands: "SUBCOMMANDS"
13
+ # VERY IMPORTANT!
14
+ very_important: "VERY IMPORTANT! %{dev_tarot}"
15
+ # VERY IMPORTANT!
16
+
17
+ errors:
18
+ header: "%{cmd} says there was a problem."
19
+ invalid_usage: "%{cmd} says you're not supposed to be here."
20
+ missing_args: "%{cmd} says missing required argument(s)."
21
+ missing_teck: "%{cmd} says no teck selected. use 'aro teck' to select one or 'aro teck new var_name' to create one."
22
+ not_found: "%{cmd} not found."
23
+ not_in_aro: "%{cmd} says you are not in aro space. that command will not work here."
24
+ not_initialized: "%{cmd} says you need to initialize aro. run 'aro init' to do so"
25
+ missing_base_migrations: "missing_base_migrations"
26
+ locale_load_error: "locale_load_error: failed to load locale %{named} library"
27
+ warnings:
28
+ invalid_order: "the order specified for displaying tlogs in invalid. using default (desc)."
29
+ messages:
30
+ base_db_password_prompt: "enter main password for base sqlite3 database <%{sql_filepath}> (default %{aro_name}): "
31
+ choose_card: "choose a card."
32
+ choose_teck: "choose a teck."
33
+ confirmation_prompt: "input 'aroyes' to reset %{name}, or enter to cancel (cancel): "
34
+ creating: "creating %{name}..."
35
+ creation_attempt: "attempting to create aro table named %{name}..."
36
+ creation_failure: "%{name} creation failed!"
37
+ creation_success: |
38
+ %{name} created successfully!
39
+
40
+ to get started navigate to the %{name} directory:
28
41
 
29
- to get started navigate to the %{name} directory:
30
-
31
- $ cd %{name}
42
+ $ cd %{name}
32
43
 
33
- see aro --help for usage.
34
- teck_created_sucessfully: "%{name} teck created successfully"
35
- teck_selected: "%{name} teck selected in the %{room} room."
36
- drawing: "drawing a card from %{name}"
37
- drawing_from_dimension: "in the the %{dimension} dimension..."
38
- ruby_facot_random: |
39
- unable to read from /dev/tarot - using facade randomness instead.
40
- for more information visit:
41
- https://github.com/arowmancy/dev_tarot
42
- history_drawn: "drawn cards"
43
- no_tecks: |
44
- no tecks created yet.
44
+ see aro --help for usage.
45
+ teck_created_sucessfully: "%{name} teck created successfully"
46
+ teck_selected: "%{name} teck selected in the %{room} room."
47
+ drawing: "drawing a card from %{name}"
48
+ drawing_from_dimension: "in the the %{dimension} dimension..."
49
+ ruby_facot_random: |
50
+ unable to read from /dev/tarot - using facade randomness instead.
51
+ for more information visit:
52
+ https://github.com/arowmancy/dev_tarot
53
+ history_drawn: "drawn cards"
54
+ no_tecks: |
55
+ no tecks created yet.
45
56
 
46
- use the following command to create one:
57
+ use the following command to create one:
47
58
 
48
- $ aro teck new var_name
59
+ $ aro teck new var_name
49
60
 
50
- see aro --help for usage.
51
- showing: "showing %{name} [count:%{count}, order:%{order}]..."
52
- shuffling: "shuffling %{name}'s cards..."
53
- replacing_drawn: "replacing all drawn cards to %{name}..."
54
- resetting: "resetting %{name}'s cards..."
55
- understood: "%{name} says: 'understood.'"
56
- welcome: "summoned %{name}"
61
+ see aro --help for usage.
62
+ printing_card: "printing %{card}..."
63
+ showing: "showing %{name} [count:%{count}, order:%{order}]..."
64
+ shuffling: "shuffling %{name}'s cards..."
65
+ replacing_drawn: "replacing all drawn cards to %{name}..."
66
+ resetting: "resetting %{name}'s cards..."
67
+ understood: "%{name} says: 'understood.'"
68
+ welcome: "summoned %{name}"
data/sys/aro/cmd.rb ADDED
@@ -0,0 +1,96 @@
1
+ =begin
2
+
3
+ cmd.rb
4
+
5
+ cmd interface.
6
+
7
+ by i2097i
8
+
9
+ =end
10
+
11
+ module Aro
12
+ class Cmd
13
+ include Singleton
14
+
15
+ CMDS = {
16
+ CONSOLE: {
17
+ key: :console,
18
+ description: I18n.t("cmd.commands.console_description"),
19
+ usage: I18n.t("cmd.commands.console_usage")
20
+ },
21
+ CREATE: {
22
+ key: :create,
23
+ description: I18n.t("cmd.commands.create_description"),
24
+ usage: I18n.t("cmd.commands.create_usage")
25
+ },
26
+ COR: {
27
+ key: :cor,
28
+ description: I18n.t("cmd.commands.cor_description"),
29
+ usage: I18n.t("cmd.commands.cor_usage"),
30
+ subcommands: {
31
+ IVARS: {
32
+ key: :ivars,
33
+ description: I18n.t("cmd.subcommands.ivars_description"),
34
+ usage: I18n.t("cmd.subcommands.ivars_usage")
35
+ },
36
+ OVARS: {
37
+ key: :ovars,
38
+ description: I18n.t("cmd.subcommands.ovars_description"),
39
+ usage: I18n.t("cmd.subcommands.ovars_usage")
40
+ }
41
+ }
42
+ },
43
+ TECK: {
44
+ key: :teck,
45
+ description: I18n.t("cmd.commands.teck_description"),
46
+ usage: I18n.t("cmd.commands.teck_usage"),
47
+ subcommands: {
48
+ DRAW: {
49
+ key: :draw,
50
+ description: I18n.t("cmd.subcommands.draw_description"),
51
+ usage: I18n.t("cmd.subcommands.draw_usage")
52
+ },
53
+ EXPLORE: {
54
+ key: :explore,
55
+ description: I18n.t("cmd.subcommands.explore_description"),
56
+ usage: I18n.t("cmd.subcommands.explore_usage")
57
+ },
58
+ NEW: {
59
+ key: :new,
60
+ description: I18n.t("cmd.subcommands.teck_new_description"),
61
+ usage: I18n.t("cmd.subcommands.teck_new_usage")
62
+ },
63
+ REPLACE: {
64
+ key: :replace,
65
+ description: I18n.t("cmd.subcommands.replace_description"),
66
+ usage: I18n.t("cmd.subcommands.replace_usage")
67
+ },
68
+ RESET: {
69
+ key: :reset,
70
+ description: I18n.t("cmd.subcommands.reset_description"),
71
+ usage: I18n.t("cmd.subcommands.reset_usage")
72
+ },
73
+ SHOW: {
74
+ key: :show,
75
+ description: I18n.t("cmd.subcommands.show_description"),
76
+ usage: I18n.t("cmd.subcommands.show_usage")
77
+ },
78
+ SHUFFLE: {
79
+ key: :shuffle,
80
+ description: I18n.t("cmd.subcommands.shuffle_description"),
81
+ usage: I18n.t("cmd.subcommands.shuffle_usage")
82
+ }
83
+ }
84
+ },
85
+ INIT: {
86
+ key: :init,
87
+ description: I18n.t("cmd.commands.init_description"),
88
+ usage: I18n.t("cmd.commands.init_usage")
89
+ }
90
+ }
91
+
92
+ def self.display_lines
93
+ JSON.pretty_generate(CMDS).split("\n")
94
+ end
95
+ end
96
+ end