gloo 4.1.0 → 4.1.1

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: f56c4555331bec60162670855f1719a51f45a7e071894e593cc3c03978fc99af
4
- data.tar.gz: 4728ef424397e70d8d0cd61ff1aec8bbf89a6eb18474e0a9cb1e283f7fb627a2
3
+ metadata.gz: 1d9b6223c71e44de42c8c7b4c65eed2b115637e19ddff41d312bf2dbdd49862b
4
+ data.tar.gz: 30364ee85c87f6c13d2e0ae378243a7c6142c09cd05a3381b8987629b36dbd8e
5
5
  SHA512:
6
- metadata.gz: d08f2ccb6e471d19bc34897a5cce4f906d5b3345e3937b7d291853a9e122783ae797afe56b1e76268dad9f0b6b4eb99a49d577a56cf5261f7d0442b7caf9ff52
7
- data.tar.gz: 987e9c14f85397171f44a853fa7db9e7455d1b2afc5a5e515d79cc47b5a8b57629e4e58d2ad28b7c3d7d0d13008634fbd7dd9766580f3d875b20ca795bcfcb86
6
+ metadata.gz: ae6327342d2d1aa26a8b54f552f897ae92fe0181db0f2ce3415cde972297adf394c35279172cdf282f53b57d3c83a827e4a0096a5d87faf401fe6c7186028946
7
+ data.tar.gz: 6795c6979ecbfd98172bdb861938843c06b9e616db340ca4c39daf7b91596b5133ba2e7d46f0b6cdfaac7ddffe240aaf31d8f2c7f53ef7777d7e2893b0f23dec
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 4.1.0
1
+ 4.1.1
data/lib/VERSION_NOTES CHANGED
@@ -1,3 +1,7 @@
1
+ 4.1.1 - 2025.05.09
2
+ Fixes issue with empty table renderer data.
3
+
4
+
1
5
  4.1.0 - 2025.05.01
2
6
  - Adds File Render as page option
3
7
  - Adds initial support for multipart forms (file uploads)
@@ -69,8 +69,9 @@ module Gloo
69
69
  def data
70
70
  o = find_child DATA
71
71
  return [] unless o
72
-
72
+
73
73
  o = Gloo::Objs::Alias.resolve_alias( @engine, o )
74
+ return [] unless o
74
75
 
75
76
  if o.is_a? Gloo::Objs::Query
76
77
  @engine.log.debug "Table getting data from query."
@@ -14,6 +14,8 @@ module Gloo
14
14
  ROW = 'row'.freeze
15
15
  CELL = 'cell'.freeze
16
16
 
17
+ NO_DATA_FOUND = "<p>No data found.</p>".freeze
18
+
17
19
  # ---------------------------------------------------------------------
18
20
  # Initialization
19
21
  # ---------------------------------------------------------------------
@@ -44,13 +46,12 @@ module Gloo
44
46
  #
45
47
  def data_to_table params
46
48
  data = params[ :rows ]
49
+ return NO_DATA_FOUND if data.nil? || ( data.length == 0 )
47
50
 
48
51
  single_row = true if ( data.length == 1 )
49
52
  single_row = false if params[ :always_rows ]
50
53
 
51
- if data.nil? || ( data.length == 0 )
52
- return "<p>No data found.</p>"
53
- elsif single_row
54
+ if single_row
54
55
  return data_to_single_row_table( params )
55
56
  else
56
57
  return data_to_table_rows( params )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-05-01 00:00:00.000000000 Z
11
+ date: 2025-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler