aro 0.1.8 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 345792256f8f05280325a6624e2b48f4dffbd0215edd29e166d299c9b43a1824
4
- data.tar.gz: ede644cd354d9a8e51ec0081284122546266d1e74ddc7af263eddf7f97e150fc
3
+ metadata.gz: b015a69c685e9cda66781c4b96bd8ffbcb08165b71df89f300caa3bfb03eaff7
4
+ data.tar.gz: 428e7d962faec02772f1ef203f055ffef482fd11912d9a87577ca17afe5bf657
5
5
  SHA512:
6
- metadata.gz: af57fefc8b44ce65dea0f8b94e1d2a6de610875b15a1d3682d5a07d9fcd8537b54f94461da569b877269933fbe4c27c0e84770118b7221904bf8ec0364e27fdf
7
- data.tar.gz: 8a4a5bd92dd6056a3af2e76760912e2785d2bf95c535a0046302e9d67fa4e227c974f1f607125c9723d8912b7bd28d1c1cc2056fbc66186dfd81ee203f54025f
6
+ metadata.gz: 4a0d9378161d2ca7a8b02ae10b5297dac32b1945af986e9538708df6be54ac85d4c23bf4692c77870259478adf35052d5ec5581c84eb8f32358b79f20cd3146d
7
+ data.tar.gz: 27cebaa507ac475cb0d4204ba9874afcce52199d36c48f31f39ce318b7e8f5870c1be7cfb80cf938c3a1670329cde4d252d9e6fa6dd12efd9163980742e74e6c
data/bin/aos CHANGED
@@ -12,8 +12,13 @@
12
12
 
13
13
  require :aro.to_s
14
14
 
15
- if CLI::ARGV0 == CLI::CMDS[:AOS][:WATCH]
16
- Aos::watch
17
- else CLI::ARGV0 == CLI::CMDS[:AOS][:RUN] || CLI::ARGV0.nil?
15
+ unless Aro::Dom.in_arodom?
16
+ Aos::S.say(I18n.t("cli.errors.not_in_aos" , cmd: Aos::Os.name))
17
+ exit(CLI::EXIT_CODES[:GENERAL_ERROR])
18
+ end
19
+
20
+ if CLI::ARGV0.nil?
18
21
  exit(Aos::run)
22
+ else #if Aos::Os.is_aos_command?(ARGV[Aro::Mancy::O])
23
+ exit(Aos::process)
19
24
  end
data/bin/aro CHANGED
@@ -34,8 +34,11 @@ when CLI::CMDS[:ARO][:INIT]
34
34
  Aro::Mancy.init
35
35
  else
36
36
  unless Aro::Mancy.game.nil? || CLI::FLAGS[:HELP].include?(CLI::ARGV0)
37
- Aro::P.say(I18n.t("cli.messages.welcome", name: "#{Aro::Mancy.name}.game"))
38
- Aro::Mancy.game.show
37
+ # unless ARGV.include?(:aos.to_s)
38
+ Aro::P.say(I18n.t("cli.messages.welcome", name: "#{Aro::Mancy.name}.game"))
39
+ Aro::Mancy.game.show
40
+ # end
41
+
39
42
  exit(CLI::EXIT_CODES[:SUCCESS])
40
43
  end
41
44
 
@@ -0,0 +1 @@
1
+ 696d446a043f8261f31ec9750bccbe8749b00d119aa42ab98e164826df266e8b7f7260a88ca2223b36ad14fe6907d5f6305e238c10dc1bfa2cb31450007d911a
@@ -0,0 +1 @@
1
+ ec0d966a5c7af2141593e80dd8a9e23898b3560289f8893a0bfda0975cfe6bc1aeec0403a3a713b37e120afc947184510e8c1cdb9cc13961428f373bb35109c8
@@ -3,8 +3,8 @@ class CreateDecks < ActiveRecord::Migration[8.1]
3
3
  def self.up
4
4
  create_table :decks do |t|
5
5
  t.string :name
6
- t.string :cards
7
- t.string :drawn
6
+ t.string :cards, null: false, default: ""
7
+ t.string :drawn, null: false, default: ""
8
8
 
9
9
  t.timestamps
10
10
  end
data/listen.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require :listen.to_s
2
2
 
3
- listener = Listen.to(*[:sys.to_s, :bin.to_s, :spec.to_s, :locale.to_s], only: /[\.rb\.yml]/) {|modified, added, removed|
3
+ listener = Listen.to(*[:sys.to_s, :bin.to_s, :spec.to_s, :locale.to_s, :db.to_s], only: /[\.rb\.yml]/) {|modified, added, removed|
4
4
  # puts modified
5
5
  # puts added
6
6
  # puts removed
data/locale/en.aos.yml CHANGED
@@ -4,8 +4,9 @@ en:
4
4
  description:
5
5
  cd: "change directory. no args navigates to arodom root."
6
6
  config: "open settings."
7
- config_set: "set a ivar config variable to a specified value."
7
+ config_set: "sets an ivar to a specified value. the prefix '%{prefix}' can be omitted."
8
8
  exit: "exit."
9
+ ll: "list files and folders in the pwd including hidden files."
9
10
  ls: "list files and folders in the pwd."
10
11
  pwd: "show pwd."
11
12
  usage:
@@ -13,6 +14,7 @@ en:
13
14
  config: "$ config"
14
15
  config_set: "$ config set <var_name> <var_value>"
15
16
  exit: "$ exit"
17
+ ll: "$ ll"
16
18
  ls: "$ ls"
17
19
  pwd: "$ pwd"
18
20
  constants:
@@ -25,3 +27,5 @@ en:
25
27
  game:
26
28
  title: "aro"
27
29
  description: "enter commands to play."
30
+ is_the: "welcome to the %{name} game room."
31
+ designed_for: "originally designed for %{description}"