ImpUnit 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ImpUnit/version.rb +1 -1
  3. data/lib/ImpUnit.rb +26 -18
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a8c68f75fe135d9c3dd69bea906b491c6597b3be8c4213c9eeb39dc17e3fdbf
4
- data.tar.gz: 23cdc8d14bfcb63404796319fa486efc30fd918a198f1e2077ffdd2b8e05f5b9
3
+ metadata.gz: 7ee804d5e128a2beca2ddcd5900c2df26d1e9d8ad02b7fc2e20d8572ea046471
4
+ data.tar.gz: 4bc2eaef1d73f526cb6a904fda0a65afc225da7a18ef41f946d1dd95e5793b27
5
5
  SHA512:
6
- metadata.gz: c482de7dc2ea438381cd3f02d4528c4b83a361e95480aec76d7c4e117113ea151719e58e244fd0190593b175d86c64d28c3d82bf71f1473cba3b41962428bdcd
7
- data.tar.gz: f5661663d0ed69921cddf62d11b1d53043186efabc8c326f9b71a7e9911aaa5f71f16706d22d2a89eba605bb7e470c90a440deab88fcbf247f38de0df2eea6ec
6
+ metadata.gz: 7bc97dd0b99af7ef6022465c7f115ea7e3ed0a8394342ee38cbad70f2a6d119ee0f5fc0b66affdae74867f1da601c4ee84efff7adde1b0183076221b4f182e6b
7
+ data.tar.gz: 96824776c678112e1df0808d00cb16cff440a6b07580dc31f9ef0dd2c9796ae2598ab458a68cd28da757a91e0b0632d4836558dd7fd41464df64e9babef4bb8a
@@ -1,3 +1,3 @@
1
1
  module ImpUnit
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
data/lib/ImpUnit.rb CHANGED
@@ -676,30 +676,38 @@ end"
676
676
  end
677
677
  end
678
678
 
679
- #module Bianca
680
- #class SmallTalk
681
- #def self.name
682
- #end
679
+ module Bianca
680
+ class SmallTalk
681
+ def self.discuss
682
+ require "programr"
683
683
 
684
- #def self.pets
685
- #end
684
+ bot_name = File.read("data/bot_identity/name.txt").strip
685
+ usr_name = File.read("data/usr_identity/name.txt").strip
686
686
 
687
- #def self.hobbies
688
- #end
687
+ brains = Dir.glob("brain/*")
689
688
 
690
- #def self.jobs
691
- #end
689
+ robot = ProgramR::Facade.new
690
+ robot.learn(brains)
692
691
 
693
- #def self.skills
694
- #end
692
+ puts " Welcome to #{bot_name}. This is the terminal for Bianca."
695
693
 
696
- #def self.weather
697
- #end
694
+ while true
695
+ print "#{usr_name } >> "
696
+ s = STDIN.gets.chomp
698
697
 
699
- #def self.operate
700
- #end
701
- #end
702
- #end
698
+ reaction = robot.get_reaction(s)
699
+
700
+ if reaction == ""
701
+ STDOUT.puts "#{bot_name} << I have no idea."
702
+ elsif reaction == "Closing"
703
+ abort
704
+ else
705
+ STDOUT.puts "#{bot_name} << #{reaction}"
706
+ end
707
+ end
708
+ end
709
+ end
710
+ end
703
711
 
704
712
  ## Measuring the distance between objects and size of objects in space.
705
713
  #module SpatialRelationships
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ImpUnit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - LWFlouisa