behavior_tree 0.1.5 → 0.1.9

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: 41738c879844393217c6624368151bad50df71a0dda8191be8006176d02c2e1c
4
- data.tar.gz: 7c53dd3e201b3166f75784d0dc4e2afc481098264088b21b76a4e00b51321290
3
+ metadata.gz: 8af6c345222e4e45faa0520059deb7147bc83df6cb81bcc9fb79cb9038d60353
4
+ data.tar.gz: 3289fcff927c355c2d74f13ee841c311890b6f493d9849a04bd2fa379b61e3d9
5
5
  SHA512:
6
- metadata.gz: b58aad80da6c27fea37a40297b76377ed7f2f1b9def64455d3f2c9d04ce554434ee2fcd58841894deca1c1ceb5668f120486c55b620b574b3e2a2cc5fba41ae7
7
- data.tar.gz: c5ae0ea767653b130523a03a0a797f79a9f93e5a1e808ea7790a77a7555c100c8b3b1c3c1e7fa407e03c4815993e4270969d82fe4cf66263b5d52596f93e4acf
6
+ metadata.gz: fbabf30199a869a1be7195b7c0bf68c55ca45bdb0f2053174e5bc66a315ed5445429d3b190d7c6d490dc4942d22ac6def4d6f8cdc8f106222a5ed56a35ba0c7e
7
+ data.tar.gz: 3170b58a7a6045afcdac5e9e9b7d01cb4a0222bf42b765ad91e58c0295422ba6b514fafe7ab9162895b9741e4590d6788dd6815513870e23053bd097800613a6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- behavior_tree (0.1.5)
4
+ behavior_tree (0.1.9)
5
5
  colorize (~> 0.8.1)
6
6
 
7
7
  GEM
@@ -69,4 +69,4 @@ DEPENDENCIES
69
69
  simplecov
70
70
 
71
71
  BUNDLED WITH
72
- 2.2.21
72
+ 2.1.2
data/lib/behavior_tree.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Load all files from lib.
4
- Gem.find_files('behavior_tree/**/*.rb').each { |path| require path }
4
+ Dir[File.join(__dir__, 'behavior_tree', '**', '*.rb')].sort.each { |file| require_relative file }
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative '../node_base'
4
- require_relative '../concerns/node_iterators/prioritize_running'
5
- require_relative '../concerns/node_iterators/all_nodes'
6
4
 
7
5
  module BehaviorTree
8
6
  # A node that has children (abstract class).
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative './decorator_base'
4
- require_relative '../concerns/validations/proc_or_block'
5
4
 
6
5
  module BehaviorTree
7
6
  module Decorators
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative './decorator_base'
4
-
5
3
  module BehaviorTree
6
4
  module Decorators
7
5
  # Returns the inverted child status.
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative './repeat_times_base'
4
-
5
3
  module BehaviorTree
6
4
  module Decorators
7
5
  # Repeat N times while child has success status.
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative './concerns/tree_structure/algorithms'
4
-
5
3
  module BehaviorTree
6
4
  # A node (abstract class).
7
5
  class NodeBase
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative './node_base'
4
- require_relative './concerns/validations/single_child'
5
-
6
3
  module BehaviorTree
7
4
  # A node that has a single child (abstract class).
8
5
  class SingleChildNodeBase < NodeBase
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative '../node_base'
4
- require_relative '../concerns/validations/proc_or_block'
5
-
6
3
  module BehaviorTree
7
4
  # A task (leaf) node.
8
5
  class TaskBase < NodeBase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BehaviorTree
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.9'
5
5
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: behavior_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felo Vilches
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2021-07-15 00:00:00.000000000 Z
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.8.1
27
- description:
27
+ description:
28
28
  email:
29
29
  - felovilches@gmail.com
30
30
  executables: []
@@ -79,7 +79,7 @@ homepage: https://github.com/FeloVilches/Ruby-Behavior-Tree
79
79
  licenses:
80
80
  - MIT
81
81
  metadata: {}
82
- post_install_message:
82
+ post_install_message:
83
83
  rdoc_options: []
84
84
  require_paths:
85
85
  - lib
@@ -94,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.2.3
98
- signing_key:
97
+ rubygems_version: 3.1.2
98
+ signing_key:
99
99
  specification_version: 4
100
100
  summary: Behavior Tree (AI) library for Ruby.
101
101
  test_files: []