aro 0.2.1 → 0.2.3

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 (93) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +1 -1
  5. data/aro.gemspec +3 -3
  6. data/bin/aos +10 -3
  7. data/bin/aro +18 -11
  8. data/checksums/aro-0.2.1.gem.sha512 +1 -0
  9. data/checksums/aro-0.2.2.gem.sha512 +1 -0
  10. data/checksums/aro-0.2.3.gem.sha512 +1 -0
  11. data/locale/en.abot.yml +81 -0
  12. data/locale/en.amg.yml +44 -0
  13. data/locale/en.aos.yml +8 -38
  14. data/locale/en.cor.yml +47 -0
  15. data/locale/en.data.yml +30 -0
  16. data/locale/en.dom.yml +22 -18
  17. data/locale/en.flie.yml +29 -0
  18. data/locale/en.usage.yml +39 -26
  19. data/locale/en.yml +10 -51
  20. data/sys/aos/abot.rb +256 -0
  21. data/sys/aos/amg.rb +58 -56
  22. data/sys/aos/aos.rb +425 -180
  23. data/sys/aos/cor.rb +773 -0
  24. data/sys/aos/data.rb +117 -0
  25. data/sys/aos/db/migrate/1765148774_create_yous.rb +1 -0
  26. data/sys/aos/db/migrate/{1765762724_create_libs.rb → 1765762724_create_ilibs.rb} +5 -5
  27. data/sys/aos/db/migrate/1765907766_create_ilogs.rb +18 -0
  28. data/sys/aos/db/migrate/1765933985_create_agodos.rb +22 -0
  29. data/sys/aos/db/migrate/1766203888_create_fpxies.rb +18 -0
  30. data/sys/aos/db.rb +47 -27
  31. data/sys/aos/flie.rb +144 -0
  32. data/sys/aos/models/agodo.rb +96 -0
  33. data/sys/aos/models/base_model.rb +13 -0
  34. data/sys/aos/models/fpxy.rb +28 -0
  35. data/sys/{shr/lib/lib.rb → aos/models/ilib.rb} +11 -6
  36. data/sys/aos/models/ilog.rb +29 -0
  37. data/sys/aos/models/you.rb +98 -0
  38. data/sys/aos/s.rb +2 -1
  39. data/sys/aos/vws/base.rb +69 -78
  40. data/sys/aos/vws/dom.rb +1 -2
  41. data/sys/aos/vws/games/abot.rb +21 -0
  42. data/sys/aos/vws/games/{game.rb → teck.rb} +27 -24
  43. data/sys/aos/vws/home.rb +23 -0
  44. data/sys/aos/vws/know/{temple.rb → body.rb} +3 -3
  45. data/sys/aos/vws/know/{library.rb → mind.rb} +3 -3
  46. data/sys/aos/vws/know/spirit.rb +19 -0
  47. data/sys/aos/vws/{setup → root}/amg.rb +1 -2
  48. data/sys/aos/vws/{setup → root}/config.rb +4 -4
  49. data/sys/aos/vws/root/data.rb +21 -0
  50. data/sys/aos/vws/root/flie.rb +21 -0
  51. data/sys/aos/vws/{setup.rb → root.rb} +3 -3
  52. data/sys/aos/vws/welcome/waite.rb +1 -0
  53. data/sys/aos/vws/welcome.rb +47 -0
  54. data/sys/aro/d.rb +4 -2
  55. data/sys/aro/db/migrate/{1763374647_create_decks.rb → 1763374647_create_tecks.rb} +5 -5
  56. data/sys/aro/db/migrate/1763432541_create_tlogs.rb +20 -0
  57. data/sys/aro/db.rb +28 -19
  58. data/sys/aro/mancy.rb +18 -22
  59. data/sys/aro/models/base_model.rb +13 -0
  60. data/sys/{models/deck.rb → aro/models/teck.rb} +60 -57
  61. data/sys/aro/models/tlog.rb +21 -0
  62. data/sys/aro/p.rb +1 -1
  63. data/sys/aro/r.rb +2 -1
  64. data/sys/aro/v.rb +2 -2
  65. data/sys/cli/constants.rb +4 -10
  66. data/sys/cli/create.rb +2 -3
  67. data/sys/cli/dom.rb +1 -2
  68. data/sys/cli/{deck.rb → teck.rb} +38 -45
  69. data/sys/cli.rb +10 -11
  70. data/sys/dom/d.rb +68 -46
  71. data/sys/dom/dom.rb +79 -44
  72. data/sys/dom/p.rb +1 -1
  73. data/sys/fpx.rb +116 -0
  74. data/sys/reiquire.rb +8 -8
  75. data/sys/shr/prompt.rb +2 -6
  76. data/sys/shr/t.rb +11 -13
  77. data/sys/shr/version.rb +1 -1
  78. data/tasks/make.rake +1 -1
  79. metadata +82 -62
  80. data/locale/en.cngelog.yml +0 -5
  81. data/sys/aos/vws/games/abpps.rb +0 -19
  82. data/sys/aos/vws/games/hbpps.rb +0 -19
  83. data/sys/aos/vws/games/shpps.rb +0 -19
  84. data/sys/aos/vws/games/vipps.rb +0 -19
  85. data/sys/aos/you.rb +0 -21
  86. data/sys/aro/db/migrate/1763432541_create_logs.rb +0 -20
  87. data/sys/dom/config.rb +0 -665
  88. data/sys/models/log.rb +0 -20
  89. /data/sys/shr/{lib → ilib}/crs/CMakeLists.txt +0 -0
  90. /data/sys/shr/{lib → ilib}/crs/compile.sh +0 -0
  91. /data/sys/shr/{lib → ilib}/crs/crs.c +0 -0
  92. /data/sys/shr/{lib → ilib}/crs/crs.o +0 -0
  93. /data/sys/shr/{lib → ilib}/crs/libcrs.so +0 -0
@@ -0,0 +1,98 @@
1
+ =begin
2
+
3
+ you.rb
4
+
5
+ aos you object.
6
+
7
+ by i2097i
8
+
9
+ =end
10
+
11
+ require_relative :"./base_model".to_s
12
+
13
+ module Aos
14
+ class You < ActiveRecord::Base
15
+ has_many :ilogs
16
+ has_one :agodo
17
+ has_many :fpxies
18
+ before_validation :set_pwd
19
+ before_create :create_home_directory
20
+ after_update :clear_aos_display
21
+
22
+ enum :access, [
23
+ :agodo,
24
+ :user,
25
+ :root,
26
+ ]
27
+
28
+ ARO_SRT_FILE = :".aro_srt"
29
+
30
+ def generate_ilog(cmd)
31
+ ilogs.create(
32
+ pwd: Aos::Os.osify(pwd),
33
+ cmd: cmd
34
+ )
35
+ end
36
+
37
+ def fpx
38
+ {
39
+ name: self.name,
40
+ home: self.home,
41
+ pwd: self.pwd,
42
+ }
43
+ end
44
+
45
+ def home!
46
+ h = home
47
+ Aro::D.say("#{__method__}#{Aos::Os::A}#{h}")
48
+ update(pwd: h)
49
+ end
50
+
51
+ def home?
52
+ self.pwd == self.home
53
+ end
54
+
55
+ def home
56
+ File.join(
57
+ Aro::Dom::dom_root,
58
+ Aro::Dom.room_path(root? ? Aro::Dom::COR : Aro::Dom::HOME),
59
+ root? ? "" : self.name
60
+ )
61
+ end
62
+
63
+ def get_lines
64
+ [
65
+ I18n.t(
66
+ "data.yous.display",
67
+ name: name&.ljust(Aro::Mancy::NUMERALS[:XIV]),
68
+ access: access&.ljust(Aro::Mancy::NUMERALS[:XIV]),
69
+ pwd: Aos::Os.osify(pwd)&.ljust(Aro::Mancy::NUMERALS[:XIV])
70
+ )
71
+ ]
72
+ end
73
+
74
+ def stream(lines)
75
+ File.open(File.join(self.home, Aos::You::ARO_SRT_FILE.to_s), "a+") do |aro_srt|
76
+ aro_srt.write(lines.join("\n"))
77
+ aro_srt.write("\n")
78
+ end
79
+ end
80
+
81
+ private
82
+
83
+ def set_pwd
84
+ self.pwd = Dir.pwd if self.pwd.nil?
85
+ end
86
+
87
+ def create_home_directory
88
+ return if root? || agodo? || Dir.exist?(File.join(Aro::Dom.room_path(Aro::Dom::HOME), self.name))
89
+ Aro::Dom.instance.generate_room(Aro::Dom::D::LAYOUT[:HOME], {name: self.name.to_sym})
90
+ end
91
+
92
+ def clear_aos_display
93
+ return unless Aos::Os.instance.you == self || Aos::Os.instance.you_flag == self
94
+ Aos::Os.instance.display_lines ||= []
95
+ Aos::Os.instance.display_lines << ">" + Aos::Os.osify(pwd, true)
96
+ end
97
+ end
98
+ end
data/sys/aos/s.rb CHANGED
@@ -14,7 +14,8 @@ module Aos
14
14
  class S < Aro::Prompt
15
15
  def self.say(message)
16
16
  return unless Aos::S.should_print?
17
- Aro::P::p.say(message)
17
+ # todo: stream this
18
+ Aos::S.p.say(message)
18
19
  end
19
20
 
20
21
  def self.should_print?
data/sys/aos/vws/base.rb CHANGED
@@ -8,8 +8,6 @@
8
8
 
9
9
  =end
10
10
 
11
- require :aro.to_s
12
-
13
11
  module Aos
14
12
  module Vw
15
13
  class Base
@@ -19,46 +17,25 @@ module Aos
19
17
  MARGIN_H = Aro::Mancy::S
20
18
 
21
19
  def self.show
22
- draw([self.name])
23
- end
24
-
25
- def self.get_json(lines)
26
- {
27
- body: lines,
28
- you: Aos::Os.instance.you.to_json,
29
- domain: self.get_domain,
30
- clock: self.get_clock,
31
- dimension: self.get_dimension,
32
- dev_tarot: self.get_dt,
33
- }
20
+ draw([
21
+ "the #{self.name} room.",
22
+ "",
23
+ "getting directory listing...",
24
+ "",
25
+ Aos::Os.instance.get_ls([])
26
+ ])
34
27
  end
35
28
 
36
29
  def self.draw(body_lines)
37
- unless Aro::Config.is_format_text?
38
- Aos::S.say(self.get_json(lines))
39
- return true
40
- end
41
-
42
30
  return false unless body_lines.kind_of?(Array)
43
31
  lines = []
44
- dc = Aro::Config.display_configuration
45
- height = dc[:HEIGHT]
46
- width = dc[:WIDTH]
47
-
48
- # header
49
- # lines << "".center(width, "=")
50
- # lines << "".center(width)
51
32
 
52
- # half = ((width - self.name.length) / Aro::Mancy::OS.to_f).ceil
53
- # domain = self.get_domain
54
- # clock = self.get_clock
55
- # lines << (
56
- # (
57
- # domain.ljust(half) + self.name.to_s.upcase
58
- # ).ljust(width - clock.length) + clock
59
- # )
33
+ dc = Aos::Cor.display_configuration
34
+ width = dc[:WIDTH]
60
35
 
61
- # lines << "".center(width, dc[:DIVIDER])
36
+ if Aro::Dom.in_arodom?
37
+ lines += get_main_divider(width, true)
38
+ end
62
39
 
63
40
  # top vertical margin
64
41
  Aos::Vw::Base::MARGIN_V.times do
@@ -70,47 +47,73 @@ module Aos
70
47
  lines << get_body_line(line)
71
48
  }
72
49
 
73
- lines += get_aos_display_lines
74
-
75
- # footer
76
- # display_dim = self.get_display_dimension
77
- # lines << (
78
- # (
79
- # ">[#{domain}]>#{Aos::Os::osify(Aos::Os.instance.you&.pwd || Dir.pwd)}"
80
- # ).ljust(width - display_dim.length) + display_dim
81
- # )
50
+ if Aro::Dom.in_arodom?
51
+ lines += get_aos_display_lines
52
+ end
82
53
 
83
54
  # print everything
84
- Aos::S.say(lines.join("\n"))
55
+
56
+ Aro::Prompt.say(lines)
85
57
 
86
58
  # explicitly return true
87
59
  true
88
60
  end
89
61
 
62
+ def self.get_main_divider(width, clock = false)
63
+ left = "#{Aos::Os::PS1}"
64
+ if clock
65
+ left = "#{left}#{get_domain} >"
66
+ else
67
+ left = "#{left}v#{Aro::VERSION} >"
68
+ end
69
+ right = "< " + (clock ? get_clock : get_display_dimension.strip)
70
+ lines = []
71
+ lines << ""
72
+ lines << left.ljust(width - right.length, "-".to_s) + right
73
+ lines << ""
74
+ lines
75
+ end
76
+
90
77
  def self.get_aos_display_lines
91
78
  # current Aos::Os output
79
+
80
+ width = Aos::Cor.display_configuration[:WIDTH]
92
81
  lines = []
82
+ Aos::Os.instance.display_lines ||= []
93
83
  unless Aos::Os.instance.display_lines.empty?
94
- dc = Aro::Config.display_configuration
95
- width = dc[:WIDTH]
96
- lines << "".center(width)
97
- display_dim = get_display_dimension
98
84
  Aos::Os.instance.display_lines.each{|line|
99
85
  lines << line
100
86
  }
87
+ Aos::Os.instance.display_lines = []
101
88
  lines << "".center(width)
102
- lines << "v#{Aro::VERSION.to_s}".ljust(width - display_dim.length) + display_dim
103
- # lines << "".center(width, "=")
104
89
  end
90
+
91
+ Aos::Db.load
92
+
93
+ the_you = Aos::Os.instance.you_flag || Aos::Os.instance.you
94
+ Aro::V.say(Aos::Os.you_name_from_flag_arg)
95
+ Aro::V.say(the_you.inspect)
96
+ present_users = Aos::You.order(
97
+ name: :asc
98
+ ).where(
99
+ pwd: the_you.pwd,
100
+ access: [:agodo, :user]
101
+ ).map{|y|
102
+ (the_you == y ? Aos::Os::STAR.to_s : "") +
103
+ y.name
104
+ }
105
+
106
+ if present_users.any?
107
+ lines << "[ yous in the room ]".center(width)
108
+ lines << ("[ " + present_users.join(" ") + " ]").center(width)
109
+ end
110
+ lines << ":you_are_root".center(width) if the_you.root?
111
+ lines += get_main_divider(width)
105
112
  lines
106
113
  end
107
114
 
108
115
  def self.get_display_dimension
109
- "#{self.get_dt.rjust(Aro::Mancy::V)} :<[#{self.get_dimension}]<"
110
- end
111
-
112
- def self.get_dt
113
- Aro::T.read_dev_tarot.strip[Aro::Mancy::S..]
116
+ "#{Aro::T.read_dev_tarot(true).rjust(Aro::Mancy::V)} :<[#{self.get_dimension}]<"
114
117
  end
115
118
 
116
119
  def self.get_dimension
@@ -118,7 +121,7 @@ module Aos
118
121
  end
119
122
 
120
123
  def self.get_domain
121
- Aro::Dom.in_arodom? ? Aro::Dom::domain : Aro::Mancy.domain
124
+ Aro::Mancy.in_aro? ? Aro::Mancy.domain : Aro::Dom.domain
122
125
  end
123
126
 
124
127
  def self.get_clock
@@ -126,7 +129,7 @@ module Aos
126
129
  end
127
130
 
128
131
  def self.viewport_width
129
- dc = Aro::Config.display_configuration
132
+ dc = Aos::Cor.display_configuration
130
133
  width = dc[:WIDTH]
131
134
  bar_width = (Aos::Vw::Base::BAR.length * Aro::Mancy::OS)
132
135
  h_margin_width = (Aos::Vw::Base::MARGIN_H * Aro::Mancy::OS)
@@ -138,31 +141,19 @@ module Aos
138
141
  hm = Aos::Vw::Base::MARGIN_H
139
142
  bar = Aos::Vw::Base::BAR
140
143
  hm_space = " " * Aos::Vw::Base::MARGIN_H
141
- just = Aro::Config.display_configuration[:WIDTH] - (hm_space.length + bar.length)
144
+ just = Aos::Cor.display_configuration[:WIDTH] - (hm_space.length + bar.length)
142
145
  (bar + hm_space + (line || "")).ljust(just) + hm_space + bar
143
146
  end
144
147
 
145
148
  def self.lines_for_cmd(cmd)
146
149
  just_cmds = Aro::Mancy::NUMERALS[:IX]
147
- cmd_lines = []
148
- key_proc = Proc.new{|k| "$ #{k}"}
149
- desc_proc = Proc.new{|desc| "#{"desc:".rjust(just_cmds)} #{desc}"}
150
- usage_proc = Proc.new{|usage| "#{"usage:".rjust(just_cmds)} #{usage}"}
151
-
152
- cmd_lines << key_proc.call(cmd[:key])
153
- cmd_lines << desc_proc.call(cmd[:description])
154
- cmd_lines << usage_proc.call(cmd[:usage])
155
- (cmd[:cmds] || []).each{|k, v|
156
- cmd_lines << key_proc.call("#{cmd[:key]} #{v[:key]}")
157
- cmd_lines << desc_proc.call(v[:description])
158
- cmd_lines << usage_proc.call(v[:usage])
159
- }
160
-
161
- cmd_lines
162
- end
163
-
164
- def self.debug_log(lines)
165
- Aro::V.say(lines)
150
+ lines = []
151
+ lines << "\"#{cmd[:key]}\""
152
+ lines << " => #{cmd[:description]}"
153
+ lines << ""
154
+ lines << "#{" ".rjust(just_cmds)} #{cmd[:usage]}"
155
+ lines << ""
156
+ lines
166
157
  end
167
158
  end
168
159
  end
data/sys/aos/vws/dom.rb CHANGED
@@ -13,7 +13,6 @@ require_relative :"./base".to_s
13
13
  module Aos
14
14
  module Vw
15
15
  class Dom < Aos::Vw::Base
16
-
17
16
  def self.show
18
17
  lines = []
19
18
  lines << I18n.t("aos.views.dom.title")
@@ -24,7 +23,7 @@ module Aos
24
23
  lines << ""
25
24
  lines << I18n.t("aos.views.dom.quick_navigation")
26
25
  lines << ""
27
- lines << " => #{Aro::Dom::D.reserved_words.join(" ")}"
26
+ lines << " => #{Aro::Dom::D.reserved_words(Aos::Os.instance.you.root?).join(" ")}"
28
27
  lines << ""
29
28
  draw(lines)
30
29
  end
@@ -0,0 +1,21 @@
1
+ =begin
2
+
3
+ vws/games/abot.rb
4
+
5
+ the abot view.
6
+
7
+ by i2097i
8
+
9
+ =end
10
+
11
+ require_relative :"../base".to_s
12
+
13
+ module Aos
14
+ module Vw
15
+ class Abot < Aos::Vw::Base
16
+ def self.show
17
+ draw(Aos::Abot.instance.display_lines)
18
+ end
19
+ end
20
+ end
21
+ end
@@ -8,29 +8,31 @@
8
8
 
9
9
  =end
10
10
 
11
- require_relative :"../../../models/deck".to_s
11
+ require_relative :"../../../aro/models/teck".to_s
12
12
  require_relative :"../base".to_s
13
13
 
14
14
  module Aos
15
15
  module Vw
16
- class Game < Aos::Vw::Base
16
+ class Teck < Aos::Vw::Base
17
17
 
18
- DECK_PARAMS = [
19
- :deck,
20
- :h_logs,
18
+ TECK_PARAMS = [
19
+ :teck,
20
+ :tlog_records,
21
21
  :count_n,
22
22
  :order_o,
23
23
  ]
24
24
 
25
+ DIV_CHAR = :"."
26
+
25
27
  def self.show
26
- unless Aro::Mancy.game.nil?
27
- Aro::Mancy.game.show
28
+ unless Aro::Mancy.teck.nil?
29
+ Aro::Mancy.teck.show
28
30
  return
29
31
  end
30
32
 
31
33
  lines = []
32
- lines << I18n.t("aos.views.game.title").center(viewport_width)
33
- lines << I18n.t("aos.views.game.description").center(viewport_width)
34
+ lines << I18n.t("aos.views.game.title").center(Aos::Vw::Base.viewport_width)
35
+ lines << I18n.t("aos.views.game.description").center(Aos::Vw::Base.viewport_width)
34
36
 
35
37
  room_def = Aro::Dom::D::WINGS[:GAMES].values.filter{|gr|
36
38
  "#{Aos::Vw.name}::#{gr[:name].to_s.downcase.capitalize}" == self.name
@@ -45,39 +47,40 @@ module Aos
45
47
 
46
48
  def self.show_game(model)
47
49
  mk = model.keys
48
- dp = Aos::Vw::Game::DECK_PARAMS
50
+ dp = Aos::Vw::Teck::TECK_PARAMS
49
51
  return nil unless (mk & dp).count == dp.count
50
52
  return nil unless model.values.all?{|v| v != nil}
51
53
 
52
- deck = model[:deck]
53
- h_logs = model[:h_logs]
54
+ teck = model[:teck]
55
+ tlog_records = model[:tlog_records]
56
+ teck_tlog_count = teck.tlogs.count
54
57
  count_n = model[:count_n]
55
58
  order_o = model[:order_o]
56
59
 
57
- dc = Aro::Config.display_configuration
58
- width = count_n == Aro::Mancy::S ? viewport_width : dc[:WIDTH]
59
- divider = dc[:DIVIDER] * width
60
+ divider = Aos::Vw::Teck::DIV_CHAR.to_s * Aos::Vw::Base.viewport_width
60
61
  lines = []
61
62
  lines << divider
62
- lines << "#{deck.name.upcase.center(width)}"
63
- h_logs.each_with_index{|l, i|
63
+ lines << "#{teck.name.upcase.center(Aos::Vw::Base.viewport_width)}"
64
+ tlog_records.each_with_index{|l, i|
64
65
  lines << divider
65
66
  lines << ""
66
- timestamp = l.created_at.strftime(Aro::Config::DATE_FORMAT)
67
- of_text = "#{order_o.to_sym == Aro::Log::ORDERING[:DESC] ? deck.logs.count - i : 1 + i} of #{deck.logs.count}"
68
- lines << of_text.ljust(width - timestamp.length) + timestamp
67
+ timestamp = l.created_at.strftime(Aos::Cor::DATE_FORMAT)
68
+ of_text = "#{order_o.to_sym == Aro::Tlog::ORDERING[:DESC] ? teck_tlog_count - i : 1 + i} of #{teck_tlog_count}"
69
+ lines << Aos::Vw::Base.get_body_line(
70
+ of_text.ljust(Aos::Vw::Base.viewport_width - timestamp.length - Aro::Mancy::OS) + timestamp
71
+ )
69
72
  lines << divider
70
- cards = Base64::decode64(l.card_data).split(Aro::Deck::CARD_DELIM.to_s)
73
+ cards = Base64::decode64(l.card_data).split(Aro::Teck::CARD_DELIM.to_s)
71
74
  if !cards.nil? && cards.any?
72
75
  # lines << ""
73
76
  lines += self.get_display_for_cards(cards)
74
77
  # lines << divider
75
78
  end
76
79
 
77
- drawn_cards = Base64::decode64(l.drawn_data).split(Aro::Deck::CARD_DELIM.to_s)
80
+ drawn_cards = Base64::decode64(l.drawn_data).split(Aro::Teck::CARD_DELIM.to_s)
78
81
  if !drawn_cards.nil? && drawn_cards.any?
79
82
  lines << ""
80
- lines << I18n.t("cli.messages.history_drawn").center(width)
83
+ lines << I18n.t("cli.messages.history_drawn").center(Aos::Vw::Base.viewport_width)
81
84
  lines << divider
82
85
  lines << ""
83
86
  lines += self.get_display_for_cards(
@@ -96,7 +99,7 @@ module Aos
96
99
 
97
100
  def self.get_display_for_cards(input = [])
98
101
  columns = Aos::Vw::Base::COL_POW.call(
99
- Aro::Config.display_configuration[:WIDTH].to_i
102
+ Aos::Cor.display_configuration[:WIDTH].to_i
100
103
  )
101
104
  lines = []
102
105
  return lines unless input.any?
@@ -0,0 +1,23 @@
1
+ =begin
2
+
3
+ vws/root/home.rb
4
+
5
+ the home view.
6
+
7
+ by i2097i
8
+
9
+ =end
10
+
11
+ require_relative :"./base".to_s
12
+
13
+ module Aos
14
+ module Vw
15
+ class Home < Aos::Vw::Base
16
+ def self.show
17
+ if Aos::Os.instance.you.home?
18
+ draw(Aos::Cor.instance.display_lines)
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,8 +1,8 @@
1
1
  =begin
2
2
 
3
- vws/know/temple.rb
3
+ vws/know/body.rb
4
4
 
5
- the temple view.
5
+ the body view.
6
6
 
7
7
  by i2097i
8
8
 
@@ -12,7 +12,7 @@ require_relative :"../base".to_s
12
12
 
13
13
  module Aos
14
14
  module Vw
15
- class Temple < Aos::Vw::Base
15
+ class Body < Aos::Vw::Base
16
16
 
17
17
  end
18
18
  end
@@ -1,8 +1,8 @@
1
1
  =begin
2
2
 
3
- vws/know/library.rb
3
+ vws/know/mind.rb
4
4
 
5
- the library view.
5
+ the mind view.
6
6
 
7
7
  by i2097i
8
8
 
@@ -12,7 +12,7 @@ require_relative :"../base".to_s
12
12
 
13
13
  module Aos
14
14
  module Vw
15
- class Library < Aos::Vw::Base
15
+ class Mind < Aos::Vw::Base
16
16
 
17
17
  end
18
18
  end
@@ -0,0 +1,19 @@
1
+ =begin
2
+
3
+ vws/know/spirit.rb
4
+
5
+ the spirit view.
6
+
7
+ by i2097i
8
+
9
+ =end
10
+
11
+ require_relative :"../base".to_s
12
+
13
+ module Aos
14
+ module Vw
15
+ class Spirit < Aos::Vw::Base
16
+
17
+ end
18
+ end
19
+ end
@@ -1,6 +1,6 @@
1
1
  =begin
2
2
 
3
- vws/setup/amg.rb
3
+ vws/root/amg.rb
4
4
 
5
5
  the amg view.
6
6
 
@@ -14,7 +14,6 @@ module Aos
14
14
  module Vw
15
15
  class Amg < Aos::Vw::Base
16
16
  def self.show
17
- # draw output
18
17
  draw(Aos::Amg.instance.display_lines)
19
18
  end
20
19
  end
@@ -1,8 +1,8 @@
1
1
  =begin
2
2
 
3
- vws/setup/config.rb
3
+ vws/root/cor.rb
4
4
 
5
- the config view.
5
+ the cor view.
6
6
 
7
7
  by i2097i
8
8
 
@@ -12,9 +12,9 @@ require_relative :"../base".to_s
12
12
 
13
13
  module Aos
14
14
  module Vw
15
- class Config < Aos::Vw::Base
15
+ class Cor < Aos::Vw::Base
16
16
  def self.show
17
- draw(Aro::Config.instance.display_lines)
17
+ draw(Aos::Cor.instance.display_lines)
18
18
  end
19
19
  end
20
20
  end
@@ -0,0 +1,21 @@
1
+ =begin
2
+
3
+ vws/root/data.rb
4
+
5
+ the data view.
6
+
7
+ by i2097i
8
+
9
+ =end
10
+
11
+ require_relative :"../base".to_s
12
+
13
+ module Aos
14
+ module Vw
15
+ class Data < Aos::Vw::Base
16
+ def self.show
17
+ draw(Aos::Data.instance.display_lines)
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ =begin
2
+
3
+ vws/root/flie.rb
4
+
5
+ the flie view.
6
+
7
+ by i2097i
8
+
9
+ =end
10
+
11
+ require_relative :"../base".to_s
12
+
13
+ module Aos
14
+ module Vw
15
+ class Flie < Aos::Vw::Base
16
+ def self.show
17
+ draw(Aos::Flie.instance.display_lines)
18
+ end
19
+ end
20
+ end
21
+ end
@@ -1,8 +1,8 @@
1
1
  =begin
2
2
 
3
- vws/setup.rb
3
+ vws/root.rb
4
4
 
5
- the setup view.
5
+ the root view.
6
6
 
7
7
  by i2097i
8
8
 
@@ -12,7 +12,7 @@ require_relative :"./base".to_s
12
12
 
13
13
  module Aos
14
14
  module Vw
15
- class Setup < Aos::Vw::Base
15
+ class Root < Aos::Vw::Base
16
16
 
17
17
  end
18
18
  end
@@ -18,6 +18,7 @@ module Aos
18
18
  lines = []
19
19
  lines << ""
20
20
  lines << I18n.t("aos.constants.commands")
21
+ lines << ""
21
22
  Aos::Os::CMDS.values.each{|v|
22
23
  lines += lines_for_cmd(v)
23
24
  }