aro 0.2.5 → 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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -2
  3. data/.ruby-version +1 -0
  4. data/Gemfile.lock +106 -89
  5. data/aro.gemspec +10 -11
  6. data/bin/oss_om +15 -0
  7. data/checksums/aro-0.2.5.gem.sha512 +1 -0
  8. data/checksums/aro-0.2.6.gem.sha512 +1 -0
  9. data/locale/en.cards.yml +1 -1
  10. data/locale/en.cmd.yml +34 -0
  11. data/locale/en.cor.yml +5 -8
  12. data/locale/en.menu_items.yml +2 -0
  13. data/locale/en.menus.yml +2 -0
  14. data/locale/en.usage.yml +21 -98
  15. data/locale/en.yml +61 -50
  16. data/sys/aro/cmd.rb +96 -0
  17. data/sys/{aos → aro}/cor.rb +224 -268
  18. data/sys/aro/d.rb +4 -3
  19. data/sys/aro/db/migrate/.DS_Store +0 -0
  20. data/sys/aro/db/migrate/1793913747_create_data_bases.rb +13 -0
  21. data/sys/aro/db/migrate/1793913777_create_data_base_directories.rb +14 -0
  22. data/sys/aro/db/migrate/1793913796_create_data_base_files.rb +12 -0
  23. data/sys/aro/db/migrate/1793913841_create_menus.rb +11 -0
  24. data/sys/aro/db/migrate/1793913861_create_menu_items.rb +14 -0
  25. data/sys/aro/db.rb +72 -33
  26. data/sys/aro/designer.rb +281 -0
  27. data/sys/aro/locale.rb +136 -0
  28. data/sys/aro/ma_ain.rb +54 -0
  29. data/sys/aro/mancy.rb +53 -28
  30. data/sys/aro/models/concerns/.keep +0 -0
  31. data/sys/aro/models/concerns/uuid.rb +29 -0
  32. data/sys/aro/models/data_base.rb +97 -0
  33. data/sys/aro/models/directory.rb +44 -0
  34. data/sys/aro/models/file.rb +27 -0
  35. data/sys/aro/models/menu.rb +27 -0
  36. data/sys/aro/models/menu_item.rb +47 -0
  37. data/sys/aro/models/teck.rb +19 -28
  38. data/sys/aro/p.rb +6 -3
  39. data/sys/aro/r.rb +1 -2
  40. data/sys/aro/store.rb +147 -0
  41. data/sys/aro/v.rb +2 -2
  42. data/sys/aro/views/base.rb +25 -0
  43. data/sys/aro/views/teck.rb +30 -0
  44. data/sys/aro.rb +1 -2
  45. data/sys/cli/constants.rb +1 -6
  46. data/sys/cli/create.rb +3 -3
  47. data/sys/cli/nterface.rb +8 -8
  48. data/sys/cli/teck.rb +17 -18
  49. data/sys/cli/usage.rb +4 -8
  50. data/sys/cli.rb +0 -1
  51. data/sys/reiquire.rb +146 -25
  52. data/sys/shr/.DS_Store +0 -0
  53. data/sys/shr/prompt.rb +8 -2
  54. data/sys/shr/t.rb +5 -5
  55. data/sys/shr/version.rb +9 -2
  56. data/tasks/make.rake +2 -1
  57. metadata +53 -116
  58. data/bin/aos +0 -31
  59. data/bin/aro +0 -50
  60. data/bin/ino +0 -22
  61. data/ino_rules_todo.txt +0 -28
  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 -47
  67. data/locale/en.flie.yml +0 -29
  68. data/locale/en.ino.yml +0 -9
  69. data/sys/aos/abot.rb +0 -254
  70. data/sys/aos/amg.rb +0 -184
  71. data/sys/aos/aos.rb +0 -672
  72. data/sys/aos/data.rb +0 -117
  73. data/sys/aos/db/migrate/1765148774_create_yous.rb +0 -20
  74. data/sys/aos/db/migrate/1765762724_create_ilibs.rb +0 -22
  75. data/sys/aos/db/migrate/1765907766_create_ilogs.rb +0 -18
  76. data/sys/aos/db/migrate/1765933985_create_agodos.rb +0 -22
  77. data/sys/aos/db/migrate/1766203888_create_fpxies.rb +0 -18
  78. data/sys/aos/db.rb +0 -105
  79. data/sys/aos/flie.rb +0 -144
  80. data/sys/aos/models/agodo.rb +0 -103
  81. data/sys/aos/models/fpxy.rb +0 -26
  82. data/sys/aos/models/ilib.rb +0 -46
  83. data/sys/aos/models/ilog.rb +0 -27
  84. data/sys/aos/models/you.rb +0 -138
  85. data/sys/aos/s.rb +0 -26
  86. data/sys/aos/vws/base.rb +0 -159
  87. data/sys/aos/vws/dom.rb +0 -32
  88. data/sys/aos/vws/games/abot.rb +0 -21
  89. data/sys/aos/vws/games/ino.rb +0 -21
  90. data/sys/aos/vws/games/teck.rb +0 -122
  91. data/sys/aos/vws/games.rb +0 -19
  92. data/sys/aos/vws/home.rb +0 -23
  93. data/sys/aos/vws/know/body.rb +0 -19
  94. data/sys/aos/vws/know/mind.rb +0 -19
  95. data/sys/aos/vws/know/spirit.rb +0 -19
  96. data/sys/aos/vws/know.rb +0 -19
  97. data/sys/aos/vws/root/amg.rb +0 -21
  98. data/sys/aos/vws/root/config.rb +0 -21
  99. data/sys/aos/vws/root/data.rb +0 -21
  100. data/sys/aos/vws/root/flie.rb +0 -21
  101. data/sys/aos/vws/root.rb +0 -19
  102. data/sys/aos/vws/welcome/waite.rb +0 -31
  103. data/sys/aos/vws/welcome/winner.rb +0 -19
  104. data/sys/aos/vws/welcome.rb +0 -66
  105. data/sys/aro/db/migrate/1768856981_create_scrolls.rb +0 -20
  106. data/sys/aro/db/migrate/1768858841_create_legends.rb +0 -16
  107. data/sys/aro/db/migrate/1768858967_create_stories.rb +0 -17
  108. data/sys/aro/db/migrate/1768859060_create_chapters.rb +0 -15
  109. data/sys/aro/db/migrate/1768859126_create_statements.rb +0 -22
  110. data/sys/aro/db/migrate/1768859144_create_players.rb +0 -18
  111. data/sys/aro/ino.rb +0 -64
  112. data/sys/aro/models/chapter.rb +0 -18
  113. data/sys/aro/models/legend.rb +0 -28
  114. data/sys/aro/models/player.rb +0 -17
  115. data/sys/aro/models/scroll.rb +0 -46
  116. data/sys/aro/models/statement.rb +0 -14
  117. data/sys/aro/models/story.rb +0 -28
  118. data/sys/cli/dom.rb +0 -43
  119. data/sys/dom/d.rb +0 -138
  120. data/sys/dom/dom.rb +0 -215
  121. data/sys/dom/p.rb +0 -17
  122. data/sys/fpx.rb +0 -104
  123. data/sys/shr/ilib/crs/CMakeLists.txt +0 -12
  124. data/sys/shr/ilib/crs/compile.sh +0 -5
  125. data/sys/shr/ilib/crs/crs.c +0 -24
  126. data/sys/shr/ilib/crs/crs.o +0 -0
  127. data/sys/shr/ilib/crs/libcrs.so +0 -0
data/locale/en.yml CHANGED
@@ -1,57 +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
- printing_card: "printing %{card}..."
52
- showing: "showing %{name} [count:%{count}, order:%{order}]..."
53
- shuffling: "shuffling %{name}'s cards..."
54
- replacing_drawn: "replacing all drawn cards to %{name}..."
55
- resetting: "resetting %{name}'s cards..."
56
- understood: "%{name} says: 'understood.'"
57
- 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