ll 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ll/checklist.rb +2 -1
- data/lib/ll/listy_list.rb +49 -8
- data/lib/ll/version.rb +1 -1
- data/test/test_checklist.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6a477bf1c4eb467427a4f4d47c58072a0aa686019248288bc7cef2b69559024
|
4
|
+
data.tar.gz: 7fffb7b40ffeaf2f1c3e59e29c9f359a99feca1a4e35f0ecd643d9d4ed217873
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 655bf04c3bdc56f8c039c17e455783d4fde81d7830e5749e0b48b07f98eead574de8a0d912f633f69a8cd023b947015d07568d923bcedfbd1a39613db4139dfe
|
7
|
+
data.tar.gz: e835b3be6d702eda7037189d71a1c8bc3ab638565fbc90b78da877d5783b875071c65d5ed9735da49b96647ccfa009fd577bf8979dea9cb11bfb736747c7dd63
|
data/lib/ll/checklist.rb
CHANGED
data/lib/ll/listy_list.rb
CHANGED
@@ -51,15 +51,33 @@ class LL::ListyList
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def react
|
54
|
-
|
54
|
+
consider @input do
|
55
55
|
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
given String.empty_string do
|
57
|
+
self.uri = "/"
|
58
|
+
end
|
59
|
+
|
60
|
+
given "help" do
|
61
|
+
self.uri = "/help"
|
62
|
+
end
|
63
|
+
|
64
|
+
given "install" do
|
65
|
+
self.uri = "/install"
|
66
|
+
end
|
67
|
+
|
68
|
+
within %w[ version v ] do
|
69
|
+
self.uri = "/version"
|
70
|
+
end
|
71
|
+
|
72
|
+
otherwise do
|
73
|
+
self.uri = "/unknown"
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
59
77
|
end
|
60
78
|
|
61
79
|
def show_help!
|
62
|
-
|
80
|
+
@cli.print_help
|
63
81
|
self.shutdown!
|
64
82
|
end
|
65
83
|
|
@@ -103,6 +121,8 @@ class LL::ListyList
|
|
103
121
|
@cli.data_path.file_join "listy.lock"
|
104
122
|
end
|
105
123
|
|
124
|
+
# ZACH WAS HERE: run ./bin/listy and hit lock error. Maybe
|
125
|
+
# it was me assuming that a lock would have happened?
|
106
126
|
def lock_contents
|
107
127
|
File.read(lock_path).chomp
|
108
128
|
end
|
@@ -123,7 +143,28 @@ class LL::ListyList
|
|
123
143
|
end
|
124
144
|
|
125
145
|
def display
|
126
|
-
|
146
|
+
consider self.uri do
|
147
|
+
|
148
|
+
puts self.uri
|
149
|
+
|
150
|
+
given "/help" do
|
151
|
+
@cli.print_help
|
152
|
+
end
|
153
|
+
|
154
|
+
given "/install" do
|
155
|
+
directory = File.pwd.file_join "exe"
|
156
|
+
@cli.install( executable_directory: directory )
|
157
|
+
end
|
158
|
+
|
159
|
+
given "/version" do
|
160
|
+
@cli.print_version
|
161
|
+
end
|
162
|
+
|
163
|
+
given "/unknown" do
|
164
|
+
@cli.print_error command: @input
|
165
|
+
end
|
166
|
+
|
167
|
+
end
|
127
168
|
end
|
128
169
|
|
129
170
|
def persist
|
@@ -152,8 +193,8 @@ class LL::ListyList
|
|
152
193
|
end
|
153
194
|
|
154
195
|
def await_input
|
155
|
-
input = @cli.await_input message: "
|
156
|
-
input
|
196
|
+
@input = @cli.await_input message: "listy>"
|
197
|
+
@input
|
157
198
|
end
|
158
199
|
|
159
200
|
# Log this. Maybe incorporate into VV::CLI?
|
data/lib/ll/version.rb
CHANGED
data/test/test_checklist.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Aysan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vv
|