aro 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fbe5d3c80bb0ee155fda4ff9c3b3f977098304642b3633196dadad7883d281e
4
- data.tar.gz: effa7d459255498ba45e38a0096a055e1a5fa5b8718bacb63db1651ef5584703
3
+ metadata.gz: 2b3019177fe17bec1d6a879c37c30588cb6b244ef438b3b9b12cad704eb7103e
4
+ data.tar.gz: e0752e127a1be3da46ca8176e0d27e2ea7b77fac66ec2e014ab4c5d90397f24e
5
5
  SHA512:
6
- metadata.gz: 829b44b60ae9b5190025d58dae70b2559ae122576e8e9746a459e3ae597cf8a6c725b716aa3e1ded97d5dc8d66861c46c94847963ac44e1ff6f41f4ecd9a2c97
7
- data.tar.gz: d809fef60f8d2620a0e579e38ceafb0242d4a3621083a256248054a20b06f568b1bfc4e3f0768f4d8d651e8e0e63d0b7487c67f4864255ca0c908be23e34cf67
6
+ metadata.gz: 2ab53ad2937068b388fb965cf291e741ea86e10825f055e79668e8d0c02dc2976a251a41fdb2528fe3c091cfebbb74f7c52a051d996de639a3260e92422ccbeb
7
+ data.tar.gz: 1518dc1172b417d050fbbd157333c3b11e0a6fe2ac4bc4265d5f8b9b833f364cc77434633d7fd9cd7e537147f3cb071d29ad678a177e626a3698574323d4f8b3
data/aro.gemspec CHANGED
@@ -26,15 +26,15 @@ Gem::Specification.new do |spec|
26
26
  spec.required_ruby_version = ">= 3.4.7"
27
27
 
28
28
  # development gems
29
- spec.add_development_dependency "bundler", "~> 2.7", ">= 2.7.2"
30
- spec.add_development_dependency "listen", "~> 3.9", ">= 3.9.0"
31
- spec.add_development_dependency "rake", "~> 13.3", ">= 13.3.1"
32
- spec.add_development_dependency "rspec", "~> 3.13", ">= 3.13.2"
29
+ spec.add_development_dependency "bundler", "~> 2.7", ">= 2.7.2"
30
+ spec.add_development_dependency "listen", "~> 3.9", ">= 3.9.0"
31
+ spec.add_development_dependency "rake", "~> 13.3", ">= 13.3.1"
32
+ spec.add_development_dependency "rspec", "~> 3.13", ">= 3.13.2"
33
33
 
34
34
  # runtime gems
35
- spec.add_runtime_dependency "activerecord", "~> 8.1", ">= 8.1.1"
36
- spec.add_runtime_dependency "ffi", "~> 1.17", ">= 1.17.2"
37
- spec.add_runtime_dependency "i18n", "~> 1.14", ">= 1.14.7"
38
- spec.add_runtime_dependency "sqlite3", "~> 2.8", ">= 2.8.0"
39
- spec.add_runtime_dependency "tty-prompt", "~> 0.23.1", ">= 0.23.1"
35
+ spec.add_runtime_dependency "activerecord", "~> 8.1", ">= 8.1.1"
36
+ spec.add_runtime_dependency "ffi", "~> 1.17", ">= 1.17.2"
37
+ spec.add_runtime_dependency "i18n", "~> 1.14", ">= 1.14.7"
38
+ spec.add_runtime_dependency "sqlite3", "~> 2.8", ">= 2.8.0"
39
+ spec.add_runtime_dependency "tty-prompt", "~> 0.23.1", ">= 0.23.1"
40
40
  end
data/bin/aro CHANGED
@@ -28,7 +28,13 @@ if CLI::FLAGS[:VERSION].include?(CLI::ARGV0)
28
28
  exit(CLI::EXIT_CODES[:SUCCESS])
29
29
  end
30
30
 
31
- # cli parser
31
+ if !CLI::ARGV0&.to_s&.upcase.nil? &&
32
+ I18n.t("cards.index").include?(Aro::Teck.card_strip(CLI::ARGV0.to_s.upcase))
33
+ Aro::Teck.print_card(CLI::ARGV0.to_s.upcase)
34
+ exit(CLI::EXIT_CODES[:SUCCESS])
35
+ end
36
+
37
+
32
38
  case CLI::ARGV0
33
39
  when CLI::CMDS[:ARO][:COR]
34
40
  Aos.cor
@@ -49,6 +55,6 @@ else
49
55
  exit(CLI::EXIT_CODES[:SUCCESS])
50
56
  end
51
57
 
52
- CLI.usage
58
+ CLI.usage_main
53
59
  exit(CLI::EXIT_CODES[:SUCCESS])
54
60
  end
data/locale/en.abot.yml CHANGED
@@ -8,11 +8,11 @@ en:
8
8
  stop: "power off an agodo."
9
9
  start: "power on an agodo."
10
10
  usage:
11
- agodo: "$ abot agodo <go> <do> <rate>"
12
- derez: "$ abot derez <name>"
13
- rate: "$ abot rate <name> <rate>"
14
- stop: "abot stop <name>"
15
- start: "abot start <name>"
11
+ agodo: "$ abot agodo var_go var_do var_rate"
12
+ derez: "$ abot derez var_name"
13
+ rate: "$ abot rate var_name var_rate"
14
+ stop: "abot stop var_name"
15
+ start: "abot start var_name"
16
16
  agodo:
17
17
  display: "power: %{power}, go: %{go}, do: %{do}, rate: %{rate}, home: %{home}"
18
18
  messages:
@@ -25,14 +25,14 @@ en:
25
25
 
26
26
  usage: |
27
27
 
28
- abot [-h | --help] <command>
28
+ abot [-h | --help] var_command
29
29
  fun with cron and agodos.
30
30
 
31
31
  go to the directory where you want to spawn an agodo
32
32
  and use the 'abot agodo' command to create one there.
33
33
  note: passing no arguments to abot agodo will bring
34
34
  you back to the abot room unless you pass args for
35
- <go> <do> and <rate>.
35
+ var_go var_do and var_rate.
36
36
 
37
37
  COMMANDS
38
38
 
@@ -52,30 +52,30 @@ en:
52
52
 
53
53
  to create an agodo:
54
54
 
55
- $ abot agodo <go> <do> <rate>
55
+ $ abot agodo var_go var_do var_rate
56
56
 
57
57
  parameters:
58
- <go>: valid arodome room name.
59
- <do>: valid aos cmd.
60
- <rate>: agodo cycles-per-minute.
58
+ var_go: valid arodome room name.
59
+ var_do: valid aos cmd.
60
+ var_rate: agodo cycles-per-minute.
61
61
 
62
62
  derez
63
63
  destroy an agodo:
64
64
 
65
- $ abot derez <name>
65
+ $ abot derez var_name
66
66
 
67
67
  rate
68
68
  update an agodo's rate:
69
69
 
70
- $ abot rate <name> <rate>
70
+ $ abot rate var_name var_rate
71
71
 
72
72
  stop
73
73
  power off an agodo:
74
74
 
75
- $ abot stop <name>
75
+ $ abot stop var_name
76
76
 
77
77
  start
78
78
  power on an agodo:
79
79
 
80
- $ abot start <name>
80
+ $ abot start var_name
81
81
 
data/locale/en.amg.yml CHANGED
@@ -5,8 +5,8 @@ en:
5
5
  inst: "show installed ilibs or install a lib."
6
6
  instun: "show uninstalled ilibs or uninstall a lib."
7
7
  usage:
8
- inst: "$ amg inst <lib>"
9
- instun: "$ amg instun <lib>"
8
+ inst: "$ amg inst var_lib"
9
+ instun: "$ amg instun var_lib"
10
10
  messages:
11
11
  already_installed: "%{name} lib is already installed."
12
12
  cannot_locate: "could not find %{name} lib."
@@ -24,7 +24,7 @@ en:
24
24
  uninstall_failure: "failed to uninstall %{name}."
25
25
  usage: |
26
26
 
27
- amg [-h | --help] <command>
27
+ amg [-h | --help] var_command
28
28
  aos system management.
29
29
 
30
30
  COMMANDS
@@ -32,13 +32,13 @@ en:
32
32
  inst
33
33
  show installed ilibs.
34
34
 
35
- install a lib named <lib>.
35
+ install a lib named var_lib.
36
36
 
37
- $ amg inst <lib>
37
+ $ amg inst var_lib
38
38
 
39
39
  instun
40
40
  show uninstalled ilibs.
41
41
 
42
- uninstall a lib named <lib>.
42
+ uninstall a lib named var_lib.
43
43
 
44
- $ amg instun <lib>
44
+ $ amg instun var_lib
data/locale/en.aos.yml CHANGED
@@ -14,11 +14,11 @@ en:
14
14
  ls: "list files and folders in the pwd."
15
15
  pwd: "show pwd."
16
16
  usage:
17
- abot: "$ abot [-h | --help] <command>"
18
- amg: "$ amg [-h | --help] <command>"
19
- cd: "$ cd <name>"
20
- cor: "$ cor <var_name> <var_value>"
21
- data: "$ data [-h | --help] <command>"
17
+ abot: "$ abot [-h | --help] var_command"
18
+ amg: "$ amg [-h | --help] var_command"
19
+ cd: "$ cd var_name"
20
+ cor: "$ cor var_name var_value"
21
+ data: "$ data [-h | --help] var_command"
22
22
  exit: "$ exit"
23
23
  flie: "$ flie"
24
24
  help: "$ help"
@@ -30,9 +30,9 @@ en:
30
30
  subcommands: "SUBCOMMANDS"
31
31
  views:
32
32
  dom:
33
- title: "ready to go..."
33
+ title: "you are in the dom root. navigate here quickly by entering 'cd'"
34
34
  description: "awaiting input..."
35
- quick_navigation: "the following room names are reserved for quick navigation. enter any of them to navigate to that room."
35
+ quick_navigation: "the following words are reserved for quick navigation. enter any of them to navigate to that room."
36
36
  game:
37
37
  title: "you are playing aro..."
38
38
  description: "enter commands to play."