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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88c6d3677c49c8b6f9977add7a3716bedaae5d2b9b802cc695bdb84312b2069e
4
- data.tar.gz: 30b346cce42bce4ad8a63f441be831abb838363ad4ddf9b001cd2f91d1090295
3
+ metadata.gz: a6a477bf1c4eb467427a4f4d47c58072a0aa686019248288bc7cef2b69559024
4
+ data.tar.gz: 7fffb7b40ffeaf2f1c3e59e29c9f359a99feca1a4e35f0ecd643d9d4ed217873
5
5
  SHA512:
6
- metadata.gz: 85b41f41dcd5e55cfa489302082d8ebe075f6e46a9e29c42dd17f5627a2350783efea37cdb91313ccbef41bb6c226c59e164deeb0d905a0c6c07e2951d79d4bf
7
- data.tar.gz: e17e043551d74fe86613b18077a5b89c3ef43a4ec7b39def328c6d886cadd9c090bc05580ab585759b09294666a9890fa1581c8941a8e2793970fb536dcca9c1
6
+ metadata.gz: 655bf04c3bdc56f8c039c17e455783d4fde81d7830e5749e0b48b07f98eead574de8a0d912f633f69a8cd023b947015d07568d923bcedfbd1a39613db4139dfe
7
+ data.tar.gz: e835b3be6d702eda7037189d71a1c8bc3ab638565fbc90b78da877d5783b875071c65d5ed9735da49b96647ccfa009fd577bf8979dea9cb11bfb736747c7dd63
@@ -81,7 +81,8 @@ class LL::Checklist
81
81
 
82
82
  def supported_versions
83
83
  %w[ 0.0.2
84
- 0.0.3 ]
84
+ 0.0.3
85
+ 0.0.4 ]
85
86
  end
86
87
 
87
88
  def kind
@@ -51,15 +51,33 @@ class LL::ListyList
51
51
  end
52
52
 
53
53
  def react
54
- end
54
+ consider @input do
55
55
 
56
- def show_help
57
- self.uri = "/help"
58
- @cli.print_help
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
- self.show_help
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
- puts :display
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: "hi"
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?
@@ -1,6 +1,6 @@
1
1
  module LL
2
2
 
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  Version = VERSION
5
5
 
6
6
  def version
@@ -35,7 +35,6 @@ class ChecklistTest < Minitest::Test
35
35
  json = checklist.vv_json
36
36
  parsed_json = JSON.parse json
37
37
 
38
-
39
38
  expected_authority = "github.com/zachaysan/ll"
40
39
  expected_kind = "checklist"
41
40
  expected_format = "json"
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
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-03-23 00:00:00.000000000 Z
11
+ date: 2019-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vv