llama_bot_rails 0.1.9 → 0.1.10
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.
- checksums.yaml +4 -4
- data/lib/llama_bot_rails/version.rb +1 -1
- data/lib/llama_bot_rails.rb +3 -1
- metadata +1 -2
- data/lib/llama_bot_rails/railtie.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a76c323b0d08220d2952ce3c1c3962dd203e645556123306fd9beb58c6ae17e6
|
4
|
+
data.tar.gz: 9e7c143edb324d49097ddabad7006635027ea6150cb07407702110546f0503c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 232cd0a6410caffa47b25d0fd0e62a69ba9fdfdc779f7adc9ded2cab80879544dffc1de5a4a65e1dabfeadad6b4c0a5ff410d26d71e0ed44101ec9ab00ef0af2
|
7
|
+
data.tar.gz: 730c59884b06bbb671955a2d128c31c6e6b85c24fe6b70120bb7d67af5249d88696eb7069d99689598ed35dc2aaa422626111fe8d3f6b154d2c68dde3d72cda6
|
data/lib/llama_bot_rails.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
require "llama_bot_rails/version"
|
2
2
|
require "llama_bot_rails/engine"
|
3
|
+
|
4
|
+
# require "llama_bot_rails/railtie" # We don't need this, as we're loading the LlamaBot path directly in the engine.
|
3
5
|
require "llama_bot_rails/llama_bot"
|
4
|
-
require "llama_bot_rails/
|
6
|
+
require "llama_bot_rails/agent_state_builder"
|
5
7
|
|
6
8
|
module LlamaBotRails
|
7
9
|
class << self
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: llama_bot_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kody Kendall
|
@@ -129,7 +129,6 @@ files:
|
|
129
129
|
- lib/llama_bot_rails/agent_state_builder.rb
|
130
130
|
- lib/llama_bot_rails/engine.rb
|
131
131
|
- lib/llama_bot_rails/llama_bot.rb
|
132
|
-
- lib/llama_bot_rails/railtie.rb
|
133
132
|
- lib/llama_bot_rails/tools/rails_console_tool.rb
|
134
133
|
- lib/llama_bot_rails/version.rb
|
135
134
|
- lib/tasks/llama_bot_rails_tasks.rake
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module LlamaBotRails
|
2
|
-
class Railtie < ::Rails::Railtie
|
3
|
-
config.before_configuration do |app|
|
4
|
-
llama_bot_path = Rails.root.join("app", "llama_bot")
|
5
|
-
|
6
|
-
# Add to autoload paths if it exists and isn't already included
|
7
|
-
if llama_bot_path.exist? && !app.config.autoload_paths.include?(llama_bot_path.to_s)
|
8
|
-
app.config.autoload_paths << llama_bot_path.to_s
|
9
|
-
Rails.logger&.info "[LlamaBot] Added #{llama_bot_path} to autoload_paths"
|
10
|
-
end
|
11
|
-
|
12
|
-
# Add to eager load paths if it exists and isn't already included
|
13
|
-
if llama_bot_path.exist? && !app.config.eager_load_paths.include?(llama_bot_path.to_s)
|
14
|
-
app.config.eager_load_paths << llama_bot_path.to_s
|
15
|
-
Rails.logger&.info "[LlamaBot] Added #{llama_bot_path} to eager_load_paths"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|