forest_liana 9.10.0 → 9.10.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: a58597dd7d22f7cd995453eb64aab0e9bc139d78d39996c6eead7df857d12a53
4
- data.tar.gz: 1d0294bc707d57f597c38dfcd4b2db875554f378ed4b9259952f32e559a7afa0
3
+ metadata.gz: f91ac72edcbf1db54688692ac1d6a5cc1ad7632987d17fbfc868d6e7d8ce10e2
4
+ data.tar.gz: 065c79a32c35d9a43fbe6c5348f56eabba4a8fc22cfb7cc561b628785874cf2e
5
5
  SHA512:
6
- metadata.gz: cbaee82b313669c8224758449baff48e2f7634e13f98b8967c44148ade69a693f210cd3772078dcedae3d3d86821c5c6af00106b6a207c79b1058d4c6aa064e6
7
- data.tar.gz: 0e09cb5f71607198d78fa2f3cd21d7f03ae27dabddb32146d0dcb37aed5c03237665821d1c956bc48e07beffc23af9ffd1a7336d48f771f13f9ae9f3b9251022
6
+ metadata.gz: dde6bb3a0f721cad5f03a3add67f87fda17d8fe98614ad2505b5ffb267ea32551e9c63f26d4d17255a9c786d59e14d092fb0e8dfa22cf9124883eacd495f91e2
7
+ data.tar.gz: 31a7b78747f0c888e030a319bca43d2999da7767a0d7b721f94b0536c71a093c5368e26760915399ee938dff4b1b201917fca370a10e2b156b121312f7776ba4
@@ -162,7 +162,7 @@ module ForestLiana
162
162
  else
163
163
  model_association = model.reflect_on_association(relation_name.to_sym)
164
164
  if model_association
165
- model_name = model_association.class_name
165
+ model_name = ForestLiana.name_for(model_association.klass)
166
166
  # NOTICE: Join fields in case of model with self-references.
167
167
  if fields[model_name]
168
168
  fields[model_name] = [
@@ -318,9 +318,11 @@ module ForestLiana
318
318
  end
319
319
  rescue Errno::ECONNREFUSED, SocketError
320
320
  FOREST_LOGGER.warn "Cannot send the apimap to Forest. Are you online?"
321
- rescue
322
- FOREST_LOGGER.warn "Cannot send the apimap to Forest. Forest might " \
321
+ rescue => error
322
+ FOREST_REPORTER.report error
323
+ FOREST_LOGGER.error "Cannot send the apimap to Forest (#{forest_url}). Forest might " \
323
324
  "currently be in maintenance."
325
+ FOREST_LOGGER.error "#{error}\n#{error.backtrace.join("\n\t")}"
324
326
  end
325
327
  end
326
328
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "9.10.0"
2
+ VERSION = "9.10.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.10.0
4
+ version: 9.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-11 00:00:00.000000000 Z
11
+ date: 2025-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails