forest_admin_rpc_agent 1.12.1 → 1.12.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc1ce1e4555d54693b81f9031445ee0fba7661ceba3f9436455dd4c65bb736b0
|
|
4
|
+
data.tar.gz: c3e88fd5999b53ad16dcba732021492fc093a3287c5c8aba2d378c9f85d94304
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dae5e6d2cf9b37307a3e7f6e3323297e80f8c83d83e39f029503aac8ab84dd8daca4a171028448f2739b39f0a60a12db9d79008ea8ef9820093463945d9d92a9
|
|
7
|
+
data.tar.gz: d113efe7420625e7727d9fe36bffa5a7dc52922943e08f9804da976562a731f82d0dfc5104200154fd998bff603c952cd58d13dcf817fac39fecc9380fd11e2c
|
|
@@ -2,6 +2,10 @@ module ForestAdminRpcAgent
|
|
|
2
2
|
class Engine < ::Rails::Engine
|
|
3
3
|
isolate_namespace ForestAdminRpcAgent
|
|
4
4
|
|
|
5
|
+
initializer 'forest_admin_rpc_agent.add_autoload_paths', before: :set_autoload_paths do |app|
|
|
6
|
+
app.config.autoload_paths << Rails.root.join('lib')
|
|
7
|
+
end
|
|
8
|
+
|
|
5
9
|
config.after_initialize do
|
|
6
10
|
Rails.error.handle(ForestAdminDatasourceToolkit::Exceptions::ForestException) do
|
|
7
11
|
agent = ForestAdminRpcAgent::Agent.instance
|
|
@@ -2,7 +2,7 @@ module ForestAdminRpcAgent
|
|
|
2
2
|
module Extensions
|
|
3
3
|
module ConfigLoader
|
|
4
4
|
def self.load_configuration
|
|
5
|
-
config_file = File.join(Dir.pwd, '
|
|
5
|
+
config_file = File.join(Dir.pwd, 'lib', 'forest_admin_rpc_agent', 'create_rpc_agent.rb')
|
|
6
6
|
return unless File.exist?(config_file)
|
|
7
7
|
|
|
8
8
|
ForestAdminRpcAgent::CreateRpcAgent.setup!
|
|
@@ -14,7 +14,7 @@ module ForestAdminRpcAgent
|
|
|
14
14
|
method_option :app_file, type: :string, required: false, desc: 'Main file of the Sinatra application (ex: app.rb)'
|
|
15
15
|
|
|
16
16
|
RAILS_CONFIG_PATH = 'config/initializers/forest_admin_rpc_agent.rb'.freeze
|
|
17
|
-
RAILS_AGENT_PATH = '
|
|
17
|
+
RAILS_AGENT_PATH = 'lib/forest_admin_rpc_agent/create_rpc_agent.rb'.freeze
|
|
18
18
|
|
|
19
19
|
SINATRA_CONFIG_PATH = 'config/forest_admin_rpc_agent.rb'.freeze
|
|
20
20
|
SINATRA_AGENT_PATH = 'config/create_rpc_agent.rb'.freeze
|