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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e51cc73835e18a0910192ab0bcbf4e63ba0430018d7cfa73038acd7d1ab379c8
4
- data.tar.gz: f85f4950731e1b5f04df53c4d566d0b8c88d6ed173e13b74adb36262c747913e
3
+ metadata.gz: 118618189a913482a15a805c57558bc67e33f26482be9d7573b743984c0cc5b8
4
+ data.tar.gz: ba262df443639cf0e9f5b7d2243854d072ac434a5ac756e44c63a8eff6dfd103
5
5
  SHA512:
6
- metadata.gz: 7b79e9be2c5060ee9c6300f8c4fb41be29bc92f3753472885d76a39cb425a6305734ff8c6054b2c62bf0299065fa9c7ab7dbc49b5868fb4d922c7ff5e144399d
7
- data.tar.gz: cb0cb202fcc7598ef0af0ddd2fe10485dd8178d5701ff4908745240f54318e9c9cd8e76310d24de4ba99bfd0df534d3360061e704917b67f946b48e55ffa9a56
6
+ metadata.gz: 9bb23eff9e996f7bd3e58a0d03dca4f0709c4221bff2f9e95d88fc120df5a3b30ea449efd91d58108f124f34232a6fd2da969b55520a7059ef71450ac150a411
7
+ data.tar.gz: 845122329b2cf2ef7a37d129336c55f4604d1d582ca5fcebb2c2f1483723e3c9a61ff167abea99ba574f926af478fc48d77d7559669439ead498c18a5d3a8f5f
@@ -33,9 +33,14 @@ module Gamefic
33
33
  private
34
34
 
35
35
  def send_and_receive
36
- @user.update @character.state
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.state[:prompt]} ")
43
+ input = @user.query("#{@character.output[:prompt]} ")
39
44
  @character.queue.push input unless input.nil?
40
45
  end
41
46
  end
@@ -1,5 +1,5 @@
1
1
  module Gamefic
2
2
  module Tty
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
  end
5
5
  end
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.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-24 00:00:00.000000000 Z
11
+ date: 2020-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gamefic