MonkeyEngine 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +192 -0
  3. data/CHANGELOG.md +12 -4
  4. data/Gemfile.lock +16 -19
  5. data/lib/Action/action.rb +0 -2
  6. data/lib/Monkey/monkey.rb +1 -2
  7. data/lib/MonkeyAction/monkey_action.rb +0 -2
  8. data/lib/MonkeyAction/monkey_action_dead.rb +1 -3
  9. data/lib/MonkeyAction/monkey_action_eat.rb +1 -3
  10. data/lib/MonkeyAction/monkey_action_pause.rb +1 -3
  11. data/lib/MonkeyAction/monkey_action_sleep.rb +1 -3
  12. data/lib/MonkeyAction/monkey_action_type.rb +5 -7
  13. data/lib/MonkeyAction/monkey_action_wake.rb +1 -3
  14. data/lib/MonkeyAction/monkey_timed_action.rb +2 -4
  15. data/lib/MonkeyEngine/action_rules.rb +1 -1
  16. data/lib/MonkeyEngine/monkey_engine.rb +2 -8
  17. data/lib/MonkeyEngine/version.rb +1 -1
  18. data/lib/MonkeyKeyboard/keyboard_char.rb +0 -1
  19. data/lib/MonkeyKeyboard/keyboard_key.rb +9 -9
  20. data/lib/MonkeyKeyboard/keyboard_key_evaluator.rb +1 -1
  21. data/lib/MonkeyKeyboard/monkey_keyboard_en_us.rb +2 -2
  22. data/lib/MonkeyManager/monkey_manager.rb +5 -5
  23. data/lib/tasks/engine.rb +11 -7
  24. data/monkeyengine.gemspec +6 -2
  25. data/spec/action_rules_spec.rb +8 -14
  26. data/spec/engine_spec.rb +10 -10
  27. data/spec/keyboard_char_spec.rb +1 -1
  28. data/spec/keyboard_key_spec.rb +5 -5
  29. data/spec/monkey_action_eat_spec.rb +8 -8
  30. data/spec/monkey_action_pause_spec.rb +9 -9
  31. data/spec/monkey_action_sleep_spec.rb +9 -9
  32. data/spec/monkey_action_type_spec.rb +7 -7
  33. data/spec/monkey_action_wake_spec.rb +5 -5
  34. data/spec/monkey_factory_spec.rb +3 -11
  35. data/spec/monkey_keyboard_en_us_spec.rb +4 -7
  36. data/spec/monkey_manager_spec.rb +1 -1
  37. data/spec/monkey_service_spec.rb +11 -11
  38. data/spec/monkey_spec.rb +1 -1
  39. data/spec/spec_helper.rb +1 -1
  40. data/spec/support/shared_examples.rb +9 -9
  41. metadata +10 -9
@@ -2,27 +2,27 @@
2
2
 
3
3
  # Shared for monkey action.
4
4
  shared_examples_for 'MonkeyAction' do
5
- it 'should have read access to monkey' do
6
- @it.respond_to?(:monkey).should == true
5
+ it 'has read access to monkey' do
6
+ @it.respond_to?(:monkey).should be true
7
7
  end
8
8
 
9
- it 'should not have write access to monkey' do
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
- it_should_behave_like 'Action'
13
+ it_behaves_like 'Action'
14
14
  end
15
15
 
16
16
  # Action
17
17
  shared_examples_for 'Action' do
18
- it 'should respond_to? :value' do
18
+ it 'respond_to?s :value' do
19
19
  # "Value: #{@it.value}"
20
- @it.respond_to?(:value).should == true
20
+ @it.respond_to?(:value).should be true
21
21
  end
22
22
 
23
- it 'should respond_to? :weight' do
23
+ it 'respond_to?s :weight' do
24
24
  # "Weight: #{@it.weight}"
25
- @it.respond_to?(:weight).should == true
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 == true
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.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-04-05 00:00:00.000000000 Z
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.3'
19
+ version: '2.4'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 2.3.20
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.3'
29
+ version: '2.4'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 2.3.20
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's the limit! Add your own AI! Publish the results! Go...BANANAS!
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: '0'
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.3.22
255
+ rubygems_version: 3.2.15
255
256
  signing_key:
256
257
  specification_version: 4
257
258
  summary: The engine that drives my monkeys!