MonkeyEngine 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +192 -0
- data/CHANGELOG.md +12 -4
- data/Gemfile.lock +16 -19
- data/lib/Action/action.rb +0 -2
- data/lib/Monkey/monkey.rb +1 -2
- data/lib/MonkeyAction/monkey_action.rb +0 -2
- data/lib/MonkeyAction/monkey_action_dead.rb +1 -3
- data/lib/MonkeyAction/monkey_action_eat.rb +1 -3
- data/lib/MonkeyAction/monkey_action_pause.rb +1 -3
- data/lib/MonkeyAction/monkey_action_sleep.rb +1 -3
- data/lib/MonkeyAction/monkey_action_type.rb +5 -7
- data/lib/MonkeyAction/monkey_action_wake.rb +1 -3
- data/lib/MonkeyAction/monkey_timed_action.rb +2 -4
- data/lib/MonkeyEngine/action_rules.rb +1 -1
- data/lib/MonkeyEngine/monkey_engine.rb +2 -8
- data/lib/MonkeyEngine/version.rb +1 -1
- data/lib/MonkeyKeyboard/keyboard_char.rb +0 -1
- data/lib/MonkeyKeyboard/keyboard_key.rb +9 -9
- data/lib/MonkeyKeyboard/keyboard_key_evaluator.rb +1 -1
- data/lib/MonkeyKeyboard/monkey_keyboard_en_us.rb +2 -2
- data/lib/MonkeyManager/monkey_manager.rb +5 -5
- data/lib/tasks/engine.rb +11 -7
- data/monkeyengine.gemspec +6 -2
- data/spec/action_rules_spec.rb +8 -14
- data/spec/engine_spec.rb +10 -10
- data/spec/keyboard_char_spec.rb +1 -1
- data/spec/keyboard_key_spec.rb +5 -5
- data/spec/monkey_action_eat_spec.rb +8 -8
- data/spec/monkey_action_pause_spec.rb +9 -9
- data/spec/monkey_action_sleep_spec.rb +9 -9
- data/spec/monkey_action_type_spec.rb +7 -7
- data/spec/monkey_action_wake_spec.rb +5 -5
- data/spec/monkey_factory_spec.rb +3 -11
- data/spec/monkey_keyboard_en_us_spec.rb +4 -7
- data/spec/monkey_manager_spec.rb +1 -1
- data/spec/monkey_service_spec.rb +11 -11
- data/spec/monkey_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/support/shared_examples.rb +9 -9
- metadata +10 -9
@@ -2,27 +2,27 @@
|
|
2
2
|
|
3
3
|
# Shared for monkey action.
|
4
4
|
shared_examples_for 'MonkeyAction' do
|
5
|
-
it '
|
6
|
-
@it.respond_to?(:monkey).should
|
5
|
+
it 'has read access to monkey' do
|
6
|
+
@it.respond_to?(:monkey).should be true
|
7
7
|
end
|
8
8
|
|
9
|
-
it '
|
9
|
+
it 'does not have write access to monkey' do
|
10
10
|
@it.respond_to?(:monkey=).should_not == true
|
11
11
|
end
|
12
12
|
|
13
|
-
|
13
|
+
it_behaves_like 'Action'
|
14
14
|
end
|
15
15
|
|
16
16
|
# Action
|
17
17
|
shared_examples_for 'Action' do
|
18
|
-
it '
|
18
|
+
it 'respond_to?s :value' do
|
19
19
|
# "Value: #{@it.value}"
|
20
|
-
@it.respond_to?(:value).should
|
20
|
+
@it.respond_to?(:value).should be true
|
21
21
|
end
|
22
22
|
|
23
|
-
it '
|
23
|
+
it 'respond_to?s :weight' do
|
24
24
|
# "Weight: #{@it.weight}"
|
25
|
-
@it.respond_to?(:weight).should
|
25
|
+
@it.respond_to?(:weight).should be true
|
26
26
|
end
|
27
27
|
|
28
28
|
# value
|
@@ -36,6 +36,6 @@ shared_examples_for 'Action' do
|
|
36
36
|
end
|
37
37
|
|
38
38
|
it '@weight should be is_a? Float' do
|
39
|
-
@it.weight.is_a?(Float).should
|
39
|
+
@it.weight.is_a?(Float).should be true
|
40
40
|
end
|
41
41
|
end
|
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: 2.0.
|
4
|
+
version: 2.0.2
|
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: 2023-
|
11
|
+
date: 2023-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.4'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 2.
|
22
|
+
version: 2.4.21
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '2.
|
29
|
+
version: '2.4'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 2.
|
32
|
+
version: 2.4.21
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: colorize
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,7 +168,7 @@ dependencies:
|
|
168
168
|
version: 2.0.3
|
169
169
|
description: Have some fun! MonkeyEngine is a gem that allows virtual monkeys to tap
|
170
170
|
away on a virtual keyboard! Can any of them complete a sentence? write a book? The
|
171
|
-
sky
|
171
|
+
sky is the limit! Add your own AI! Publish the results! Go...BANANAS!
|
172
172
|
email:
|
173
173
|
- public.gma@gmail.com
|
174
174
|
executables: []
|
@@ -177,6 +177,7 @@ extra_rdoc_files: []
|
|
177
177
|
files:
|
178
178
|
- ".gitignore"
|
179
179
|
- ".rspec"
|
180
|
+
- ".rubocop.yml"
|
180
181
|
- ".ruby-version"
|
181
182
|
- CHANGELOG.md
|
182
183
|
- Gemfile
|
@@ -244,14 +245,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
244
245
|
requirements:
|
245
246
|
- - ">="
|
246
247
|
- !ruby/object:Gem::Version
|
247
|
-
version:
|
248
|
+
version: 3.0.1
|
248
249
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
250
|
requirements:
|
250
251
|
- - ">="
|
251
252
|
- !ruby/object:Gem::Version
|
252
253
|
version: '0'
|
253
254
|
requirements: []
|
254
|
-
rubygems_version: 3.
|
255
|
+
rubygems_version: 3.2.15
|
255
256
|
signing_key:
|
256
257
|
specification_version: 4
|
257
258
|
summary: The engine that drives my monkeys!
|