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: 3e1123fe33b0f99c729eb6259c4b96d370312c31079638e73fce91e556801b61
4
- data.tar.gz: fecdb9609a53c130e2017d5ded17b5aa1ec18cd7b11fb8b6cd1bfed8d05b167e
3
+ metadata.gz: cc1ce1e4555d54693b81f9031445ee0fba7661ceba3f9436455dd4c65bb736b0
4
+ data.tar.gz: c3e88fd5999b53ad16dcba732021492fc093a3287c5c8aba2d378c9f85d94304
5
5
  SHA512:
6
- metadata.gz: 236586e4ffcf8d8009605dd2fc43bd99a81800b63ee8bff01f8a1eccb9e537bd34a6d822cd94cf3ecff2c637e630303af409d7ee8411203443ed94949cc48a0c
7
- data.tar.gz: e2bcecb95383425be3692f6bf1f40cbd8f023eec74a589c43ce19c3e9e2f44ddb8657ec9e705aed7b10d7ab25e6f2d8920971f468d1f95e46324bb3f96eec115
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, 'app', 'lib', 'forest_admin_rpc_agent', 'create_rpc_agent.rb')
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 = 'app/lib/forest_admin_rpc_agent/create_rpc_agent.rb'.freeze
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
@@ -1,3 +1,3 @@
1
1
  module ForestAdminRpcAgent
2
- VERSION = "1.12.1"
2
+ VERSION = "1.12.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_rpc_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.1
4
+ version: 1.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu