MonkeyEngine 1.0.0 → 1.1.0

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
  SHA1:
3
- metadata.gz: 09d197e83bd2486b0665ab6d6de1d35e71580599
4
- data.tar.gz: e8a828dc4d63eaf19dc0d0db9ef13224aa3d12e9
3
+ metadata.gz: e0924ae5fddd5e3930bc413874379031b2602b6b
4
+ data.tar.gz: 093a6b9fa64beb733d917ca59bcfbf14bd38acdb
5
5
  SHA512:
6
- metadata.gz: 461cb39ee9d18de96c6b3500f050c5c6237b7a140cde90bca9bb347b77d4d5fe665614911a51dff1568f624c94b790fe913df0ffce38643d8d7affad29cee8fc
7
- data.tar.gz: 74f14f7e1c92f92095e096e4c4168b37ba7503261b17de1df1277025d243276b3baf4220115fd2ce8a22ef1ff00f7b4cdd77aa38d5dcf70475482e365b209cef
6
+ metadata.gz: 3ba12279435ef01bcfc4bfb96a3ae7a7cd61c30a823dd6ef2f83ecc1758365e278e038f3a323ee97c930b72b32b4754988c181ffe94331fc44c7238a59e30d0f
7
+ data.tar.gz: 3cbbab73c83c2d064cdb4de4409275238a0257609b8fb760626aa39913802c309e3f452e30e9a19bc859b1e8ab4787a34a7d43ef1733bbe1d018596a99fa7b39
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ### Version 1.1.0
2
+ * Made some changes to the sample rake task $ bundle exec rake engine:run
3
+ * Added this CHANGELOG.md file
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # MonkeyEngine
2
2
 
3
- Have some fun! MonkeyEngine is a gem that allows virtual monkeys to tap away on a virtual keyboard.
3
+ Have some fun! MonkeyEngine is a gem that allows virtual monkeys to tap away on a virtual keyboard! Can any of them complete a sentence? write a book? The sky's the limit! Add your own AI! Publish the results! Go...BANANAS!
4
+
5
+ Run the following rake task at the command line to see a little sample app:
6
+
7
+ $ bundle exec rake engine:run
4
8
 
5
9
  ## Installation
6
10
 
@@ -1,3 +1,3 @@
1
1
  module MonkeyEngine
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
data/lib/tasks/engine.rb CHANGED
@@ -66,7 +66,7 @@ end
66
66
  namespace :engine do
67
67
  desc "Run the MonkeyEngine"
68
68
  task :run do
69
- runtime = 10 #ARGV[0]
69
+ runtime = 15 #ARGV[0]
70
70
 
71
71
  service = MonkeyEngine::MonkeyService.instance
72
72
 
@@ -77,14 +77,26 @@ namespace :engine do
77
77
 
78
78
  service.kill_all!
79
79
  service.join_all(10)
80
-
81
- puts "Total valid words: #{runner.words.count}"
80
+ sleep(3)
82
81
 
83
82
  runner.words.sort!{|a,b| a[:monkey]<=>b[:monkey]}
84
83
 
85
- runner.words.each { |word|
86
- puts "Monkey [#{word[:monkey].capitalize}] typed [#{word[:word].capitalize}]"
84
+ puts '-----------------------------------------'
85
+ puts "Valid words:"
86
+
87
+ runner.words.each_with_index { |word, index|
88
+ if word[:word].length > 2
89
+ puts "#{index + 1}. Monkey [#{word[:monkey].capitalize}] typed [#{word[:word].capitalize}] <=== #{word[:word].length}-letter word!"
90
+ else
91
+ puts "#{index + 1}. Monkey [#{word[:monkey].capitalize}] typed [#{word[:word].capitalize}]"
92
+ end
87
93
  }
94
+
95
+ puts '-----------------------------------------'
96
+ puts "Total valid words: #{runner.words.count}"
97
+ puts 'Done.'
98
+ puts
99
+ puts
88
100
  end
89
101
  end
90
102
 
data/monkeyengine.gemspec CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.version = MonkeyEngine::VERSION
9
9
  spec.authors = ["Gene M. Angelo, Jr."]
10
10
  spec.email = ["public.gma@gmail.com"]
11
- spec.description = %q{MonkeyEngine - FUN!}
11
+ spec.description = %q{Have some fun! MonkeyEngine is a gem that allows virtual monkeys to tap away on a virtual keyboard! Can any of them complete a sentence? write a book? The sky's the limit! Add your own AI! Publish the results! Go...BANANAS!}
12
12
  spec.summary = %q{The engine that drives my monkeys!}
13
- spec.homepage = "http://www.geneangelo.com"
13
+ spec.homepage = "https://github.com/gangelo/monkeyengine"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: MonkeyEngine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gene M. Angelo, Jr.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-01 00:00:00.000000000 Z
11
+ date: 2017-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,7 +140,9 @@ dependencies:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
142
  version: 2.0.0
143
- description: MonkeyEngine - FUN!
143
+ description: Have some fun! MonkeyEngine is a gem that allows virtual monkeys to tap
144
+ away on a virtual keyboard! Can any of them complete a sentence? write a book? The
145
+ sky's the limit! Add your own AI! Publish the results! Go...BANANAS!
144
146
  email:
145
147
  - public.gma@gmail.com
146
148
  executables: []
@@ -163,6 +165,7 @@ files:
163
165
  - ".idea/vcs.xml"
164
166
  - ".idea/workspace.xml"
165
167
  - ".ruby-version"
168
+ - CHANGELOG.md
166
169
  - Gemfile
167
170
  - LICENSE.txt
168
171
  - README.md
@@ -214,7 +217,7 @@ files:
214
217
  - spec/monkey_spec.rb
215
218
  - spec/spec_helpers.rb
216
219
  - spec/support/shared_examples.rb
217
- homepage: http://www.geneangelo.com
220
+ homepage: https://github.com/gangelo/monkeyengine
218
221
  licenses:
219
222
  - MIT
220
223
  metadata: {}