aro 0.1.2 → 0.1.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 +4 -4
- data/.gitignore +6 -0
- data/.release +20 -0
- data/.ruby-version +1 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +105 -0
- data/LICENSE +21 -0
- data/README.md +70 -0
- data/Rakefile +5 -0
- data/aro.gemspec +30 -0
- data/bin/aro +7 -37
- data/bin/cli/config.rb +223 -0
- data/bin/cli/constants.rb +4 -2
- data/bin/cli/create.rb +8 -3
- data/bin/cli/deck.rb +63 -42
- data/bin/cli.rb +39 -0
- data/checksums/aro-0.1.4.gem.sha512 +1 -0
- data/lib/aro/create.rb +18 -19
- data/lib/aro/{database.rb → db.rb} +22 -28
- data/lib/aro/i18n.rb +8 -10
- data/lib/aro/prompt.rb +4 -0
- data/lib/aro/version.rb +2 -2
- data/lib/aro.rb +10 -7
- data/lib/models/deck.rb +124 -57
- data/lib/models/log.rb +8 -1
- data/locale/en.usage.yml +33 -10
- data/locale/en.yml +50 -14
- data/pkg/aro-0.1.0.gem +0 -0
- data/pkg/aro-0.1.1.gem +0 -0
- data/pkg/aro-0.1.2.gem +0 -0
- data/pkg/aro-0.1.3.gem +0 -0
- data/pkg/aro-0.1.4.gem +0 -0
- data/tasks/console.rake +8 -0
- data/tasks/make.rake +4 -0
- metadata +22 -22
data/locale/en.usage.yml
CHANGED
|
@@ -21,12 +21,15 @@ en:
|
|
|
21
21
|
create
|
|
22
22
|
create an aro directory named <name>. if directory already exists, abort.
|
|
23
23
|
|
|
24
|
-
aro create
|
|
24
|
+
aro create <name>
|
|
25
25
|
|
|
26
26
|
examples:
|
|
27
27
|
|
|
28
28
|
$ aro create <name>
|
|
29
29
|
|
|
30
|
+
config
|
|
31
|
+
manage your aro config - not yet implemented
|
|
32
|
+
|
|
30
33
|
deck
|
|
31
34
|
perform operations on the deck(s) in current aro instance
|
|
32
35
|
|
|
@@ -36,9 +39,9 @@ en:
|
|
|
36
39
|
|
|
37
40
|
$ aro deck
|
|
38
41
|
|
|
39
|
-
|
|
42
|
+
COMMANDS
|
|
40
43
|
|
|
41
|
-
|
|
44
|
+
create
|
|
42
45
|
|
|
43
46
|
creates a new deck with the specified name.
|
|
44
47
|
|
|
@@ -46,28 +49,48 @@ en:
|
|
|
46
49
|
|
|
47
50
|
$ aro deck create <name_of_new_deck>
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
show
|
|
53
|
+
|
|
54
|
+
displays the current deck's log record(s).
|
|
55
|
+
|
|
56
|
+
the default behavior is to display only the most recent log record.
|
|
57
|
+
|
|
58
|
+
note:
|
|
59
|
+
|
|
60
|
+
'less' is automatically used to display records if --count > 1
|
|
61
|
+
|
|
62
|
+
OPTIONS
|
|
63
|
+
|
|
64
|
+
[-n | --count] specify number of deck logs to show.
|
|
65
|
+
|
|
66
|
+
default is 1 (latest/current state)
|
|
67
|
+
|
|
68
|
+
passing 'all' display all logs
|
|
69
|
+
|
|
70
|
+
[-o | --order] specify the output order of the log records.
|
|
71
|
+
|
|
72
|
+
default is 'desc'
|
|
50
73
|
|
|
51
|
-
|
|
74
|
+
possible values: ['asc', 'desc']
|
|
52
75
|
|
|
53
|
-
|
|
76
|
+
shuffle
|
|
54
77
|
|
|
55
78
|
shuffles the current deck and generates a log record.
|
|
56
79
|
|
|
57
|
-
|
|
80
|
+
explore
|
|
58
81
|
|
|
59
82
|
allows user to browse each card in the current deck.
|
|
60
83
|
|
|
61
|
-
|
|
84
|
+
draw
|
|
62
85
|
|
|
63
86
|
draw a random card from the current deck.
|
|
64
87
|
|
|
65
|
-
|
|
88
|
+
replace
|
|
66
89
|
|
|
67
90
|
replaces all drawn cards FIFO and puts them on the bottom of
|
|
68
91
|
the deck. this will preserve all card orientations.
|
|
69
92
|
|
|
70
|
-
|
|
93
|
+
reset
|
|
71
94
|
|
|
72
95
|
completely reset the deck. replace all drawn and reset order.
|
|
73
96
|
all orientations will be set to upright.
|
data/locale/en.yml
CHANGED
|
@@ -1,30 +1,66 @@
|
|
|
1
1
|
en:
|
|
2
2
|
cli:
|
|
3
|
+
# VERY IMPORTANT!
|
|
4
|
+
very_important: "VERY IMPORTANT! %{dev_tarot}"
|
|
5
|
+
# VERY IMPORTANT!
|
|
6
|
+
|
|
7
|
+
config:
|
|
8
|
+
format_description: "aro output format. possible values: [${possible values}]"
|
|
9
|
+
def_type: "CLI::Config::DEF_TYPES"
|
|
10
|
+
dimension_description: "chosen dimension of aro space. possible values: [${possible values}]"
|
|
11
|
+
dimension_dev_tarot_description: "reads from /dev/tarot device if available."
|
|
12
|
+
dimension_ruby_facot_description: "generated ruby_facot (facade randomness)."
|
|
13
|
+
draw_count_description: "number of cards in one line of draws. valid range: (${min}-${max})"
|
|
14
|
+
generating_default_config: "missing config. generating default config file at %{name}."
|
|
15
|
+
json_format_description: "show aro responses in json format."
|
|
16
|
+
maximum: "max"
|
|
17
|
+
minimum: "min"
|
|
18
|
+
possible_values: "possible values"
|
|
19
|
+
text_format_description: "show aro responses in text format (default)"
|
|
20
|
+
type_int_description: "a primitive decimal-less numeric."
|
|
21
|
+
type_values_description: "an enumerated type."
|
|
22
|
+
sourcing_config: "loading configuration from %{name}..."
|
|
23
|
+
z_description: "sleep time between attempts to read /dev/tarot. valid range (%{min}-%{max})"
|
|
24
|
+
z_max_description: "max number of z long sleeps before giving up. valid range (%{min}-%{max})"
|
|
3
25
|
errors:
|
|
4
26
|
header: "error! something is out of place."
|
|
5
27
|
missing_args: "the command you entered, '%{cmd}', is missing required argument(s)"
|
|
28
|
+
missing_deck: "no deck selected. use 'aro deck' to select one or 'aro deck create deck_name' to create one."
|
|
29
|
+
warnings:
|
|
30
|
+
invalid_order: "the order specified for displaying logs in invalid. using default (desc)."
|
|
6
31
|
messages:
|
|
7
32
|
choose_card: "choose a card."
|
|
8
33
|
confirmation_prompt: "input 'aroyes' to reset %{name}, or enter to cancel (cancel): "
|
|
9
34
|
creating: "creating %{name}..."
|
|
10
|
-
creation_attempt: "
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
history_drawn: "drawn cards"
|
|
15
|
-
invalid_name: "-TO"
|
|
16
|
-
showing: "showing %{name}..."
|
|
17
|
-
shuffling: "shuffling %{name}'s cards..."
|
|
18
|
-
replacing_drawn: "all drawn cards to %{name}..."
|
|
19
|
-
resetting: "resetting %{name}'s cards..."
|
|
20
|
-
understood: "%{name} says: 'understood.'"
|
|
21
|
-
welcome: "welcome.to.the.%{name}."
|
|
35
|
+
creation_attempt: "attempting to create aro table named %{name}..."
|
|
36
|
+
creation_failure: "%{name} creation failed!"
|
|
37
|
+
creation_success: |
|
|
38
|
+
%{name} created successfully!
|
|
22
39
|
|
|
23
|
-
|
|
40
|
+
to get started navigate to the %{name} directory:
|
|
41
|
+
|
|
42
|
+
$ cd %{name}
|
|
24
43
|
|
|
44
|
+
see aro --help for usage.
|
|
45
|
+
deck_created_sucessfully: "%{name} deck created successfully"
|
|
46
|
+
drawing: "drawing a card from %{name}"
|
|
47
|
+
drawing_from_dimension: "in the the %{dimension} dimension..."
|
|
48
|
+
ruby_facot_random: |
|
|
49
|
+
unable to read from /dev/tarot - using facade randomness instead.
|
|
50
|
+
for more information visit:
|
|
51
|
+
https://github.com/arowmancy/dev_tarot
|
|
52
|
+
history_drawn: "drawn cards"
|
|
53
|
+
no_decks: |
|
|
25
54
|
no decks created yet.
|
|
26
55
|
|
|
27
56
|
use the following command to create one:
|
|
57
|
+
|
|
28
58
|
$ aro deck create <deck_name>
|
|
29
59
|
|
|
30
|
-
see aro --help for usage.
|
|
60
|
+
see aro --help for usage.
|
|
61
|
+
showing: "showing %{name} [count:%{count}, order:%{order}]..."
|
|
62
|
+
shuffling: "shuffling %{name}'s cards..."
|
|
63
|
+
replacing_drawn: "all drawn cards to %{name}..."
|
|
64
|
+
resetting: "resetting %{name}'s cards..."
|
|
65
|
+
understood: "%{name} says: 'understood.'"
|
|
66
|
+
welcome: "welcome.to.the.%{name}."
|
data/pkg/aro-0.1.0.gem
ADDED
|
Binary file
|
data/pkg/aro-0.1.1.gem
ADDED
|
Binary file
|
data/pkg/aro-0.1.2.gem
ADDED
|
Binary file
|
data/pkg/aro-0.1.3.gem
ADDED
|
Binary file
|
data/pkg/aro-0.1.4.gem
ADDED
|
Binary file
|
data/tasks/console.rake
ADDED
data/tasks/make.rake
ADDED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aro
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- i2097i
|
|
@@ -69,26 +69,6 @@ dependencies:
|
|
|
69
69
|
- - ">="
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
71
|
version: 3.13.2
|
|
72
|
-
- !ruby/object:Gem::Dependency
|
|
73
|
-
name: x
|
|
74
|
-
requirement: !ruby/object:Gem::Requirement
|
|
75
|
-
requirements:
|
|
76
|
-
- - "~>"
|
|
77
|
-
- !ruby/object:Gem::Version
|
|
78
|
-
version: '0.16'
|
|
79
|
-
- - ">="
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: 0.16.0
|
|
82
|
-
type: :runtime
|
|
83
|
-
prerelease: false
|
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
-
requirements:
|
|
86
|
-
- - "~>"
|
|
87
|
-
- !ruby/object:Gem::Version
|
|
88
|
-
version: '0.16'
|
|
89
|
-
- - ">="
|
|
90
|
-
- !ruby/object:Gem::Version
|
|
91
|
-
version: 0.16.0
|
|
92
72
|
- !ruby/object:Gem::Dependency
|
|
93
73
|
name: i18n
|
|
94
74
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -177,17 +157,29 @@ executables:
|
|
|
177
157
|
extensions: []
|
|
178
158
|
extra_rdoc_files: []
|
|
179
159
|
files:
|
|
160
|
+
- ".gitignore"
|
|
161
|
+
- ".release"
|
|
162
|
+
- ".ruby-version"
|
|
163
|
+
- Gemfile
|
|
164
|
+
- Gemfile.lock
|
|
165
|
+
- LICENSE
|
|
166
|
+
- README.md
|
|
167
|
+
- Rakefile
|
|
168
|
+
- aro.gemspec
|
|
180
169
|
- bin/aro
|
|
170
|
+
- bin/cli.rb
|
|
171
|
+
- bin/cli/config.rb
|
|
181
172
|
- bin/cli/constants.rb
|
|
182
173
|
- bin/cli/create.rb
|
|
183
174
|
- bin/cli/deck.rb
|
|
184
175
|
- bin/cli/usage.rb
|
|
176
|
+
- checksums/aro-0.1.4.gem.sha512
|
|
185
177
|
- db/migrate/1763374647_create_decks.rb
|
|
186
178
|
- db/migrate/1763432541_create_logs.rb
|
|
187
179
|
- lib/aro.rb
|
|
188
180
|
- lib/aro/c.rb
|
|
189
181
|
- lib/aro/create.rb
|
|
190
|
-
- lib/aro/
|
|
182
|
+
- lib/aro/db.rb
|
|
191
183
|
- lib/aro/environment.rb
|
|
192
184
|
- lib/aro/i18n.rb
|
|
193
185
|
- lib/aro/prompt.rb
|
|
@@ -197,6 +189,13 @@ files:
|
|
|
197
189
|
- locale/en.cards.yml
|
|
198
190
|
- locale/en.usage.yml
|
|
199
191
|
- locale/en.yml
|
|
192
|
+
- pkg/aro-0.1.0.gem
|
|
193
|
+
- pkg/aro-0.1.1.gem
|
|
194
|
+
- pkg/aro-0.1.2.gem
|
|
195
|
+
- pkg/aro-0.1.3.gem
|
|
196
|
+
- pkg/aro-0.1.4.gem
|
|
197
|
+
- tasks/console.rake
|
|
198
|
+
- tasks/make.rake
|
|
200
199
|
homepage: https://github.com/i2097i/aro
|
|
201
200
|
licenses:
|
|
202
201
|
- MIT
|
|
@@ -204,6 +203,7 @@ metadata: {}
|
|
|
204
203
|
rdoc_options: []
|
|
205
204
|
require_paths:
|
|
206
205
|
- lib
|
|
206
|
+
- bin/cli
|
|
207
207
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
208
|
requirements:
|
|
209
209
|
- - ">="
|