ntq_tools 0.7.3 → 0.7.4

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: bdfcea4f27002577998567b60bce394305373b5a6bb3a31c9aef29b4f9857abd
4
- data.tar.gz: 7ae78c43d5f13ab835aa27b9a31f033c484ad44f511a589216d344ee3fe98806
3
+ metadata.gz: d9a6423facf8642edbfb60c8e40feb6ce68d3ebbdcba52c3677df5e7a154f3ad
4
+ data.tar.gz: b239adf65c0b94498e36a23cbeb13377b2767856352964e216f49d4454f4ef6e
5
5
  SHA512:
6
- metadata.gz: 9406290d22ab4d908d5f4c6331259039a165c216f97ef393fbdb1ac66f214e9649701937a2618b48de9e932ecb2f713955bf4c0dbb6aca5db18e8e0754e9e04c
7
- data.tar.gz: 26a4cf2dc0a34406569134364bc5bc8a3b467edf29cddde3c9eea7eebc7bb3bbfc3d63dbf477b88fbb78954cecf688a40a72181be8fc17f619659d2d81f88cf0
6
+ metadata.gz: ac007f1cf19c09875bbdebc547ffe9d48e5c73f849771e09232e4ec14a1344e9b23da1dd702898f99c87bc3a35a7570cbee81eb5c0d6929b40d077fe7809902a
7
+ data.tar.gz: d7f97a1da8afbda1ca27d6a2022258c913c59ad5bde214d37ca571458dcf60aab7802735f8bac882ef85a4c0315aa1d1f5134d8fbb7eed319a561cf6cfbc2374
@@ -9,7 +9,7 @@ module NtqTools
9
9
 
10
10
  respond_to do |format|
11
11
  format.json do
12
- render json: { status: @status, services_status: @services_status }, status: @status == :ok ? :ok : :service_unavailable
12
+ render json: { status: @status, services_status: @services_status, container_version: ENV['CONTAINER_VERSION'] }, status: @status == :ok ? :ok : :service_unavailable
13
13
  end
14
14
  format.html do
15
15
  end
@@ -239,7 +239,7 @@ FILE
239
239
  if defined?(Interactor)
240
240
  create_file "app/interactors/#{plural_name}/search_#{plural_name}.rb", <<-FILE
241
241
  module #{context_name}
242
- class Search#{class_name}
242
+ class Search#{plural_name.camelcase}
243
243
  include Interactor::Organizer
244
244
 
245
245
  organize Get#{plural_name.camelcase}, PaginateRecords
@@ -249,7 +249,7 @@ end
249
249
 
250
250
  create_file "app/interactors/#{plural_name}/get_#{plural_name}.rb", <<-FILE
251
251
  module #{context_name}
252
- class Get#{class_name}
252
+ class Get#{plural_name.camelcase}
253
253
  include Interactor
254
254
 
255
255
  def call
@@ -6,4 +6,6 @@ NtqTools.setup do |config|
6
6
  config.impersonation_enabled = true
7
7
  config.impersonation_user_models = ["User"]
8
8
 
9
+ # config.js_model_dir = Rails.root.join("app", "javascript", "react", "hooks")
10
+
9
11
  end
@@ -1,3 +1,3 @@
1
1
  module NtqTools
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
data/lib/ntq_tools.rb CHANGED
@@ -9,6 +9,9 @@ module NtqTools
9
9
  mattr_accessor :impersonation_user_models
10
10
  @@impersonation_user_models = []
11
11
 
12
+ mattr_accessor :js_model_dir
13
+ @@js_model_dir = nil
14
+
12
15
  def self.setup
13
16
  yield self
14
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ntq_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-09 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails