gamefic-tty 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gamefic-tty/engine.rb +7 -2
- data/lib/gamefic-tty/version.rb +1 -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: 118618189a913482a15a805c57558bc67e33f26482be9d7573b743984c0cc5b8
|
4
|
+
data.tar.gz: ba262df443639cf0e9f5b7d2243854d072ac434a5ac756e44c63a8eff6dfd103
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bb23eff9e996f7bd3e58a0d03dca4f0709c4221bff2f9e95d88fc120df5a3b30ea449efd91d58108f124f34232a6fd2da969b55520a7059ef71450ac150a411
|
7
|
+
data.tar.gz: 845122329b2cf2ef7a37d129336c55f4604d1d582ca5fcebb2c2f1483723e3c9a61ff167abea99ba574f926af478fc48d77d7559669439ead498c18a5d3a8f5f
|
data/lib/gamefic-tty/engine.rb
CHANGED
@@ -33,9 +33,14 @@ module Gamefic
|
|
33
33
|
private
|
34
34
|
|
35
35
|
def send_and_receive
|
36
|
-
@user.update @character.
|
36
|
+
@user.update @character.output
|
37
|
+
until @character.queue.empty? || @character.concluded?
|
38
|
+
@plot.update
|
39
|
+
@plot.ready
|
40
|
+
@user.update @character.output
|
41
|
+
end
|
37
42
|
return if @character.concluded?
|
38
|
-
input = @user.query("#{@character.
|
43
|
+
input = @user.query("#{@character.output[:prompt]} ")
|
39
44
|
@character.queue.push input unless input.nil?
|
40
45
|
end
|
41
46
|
end
|
data/lib/gamefic-tty/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gamefic-tty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Snyder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gamefic
|