gloo 4.5.0 → 4.6.0
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/VERSION_NOTES +4 -0
- data/lib/gloo/objs/web_svr/page.rb +18 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b1e92d71d83b685d683e227bdd72ff8e7fdd5b407b31d979f9c19feae43c260
|
4
|
+
data.tar.gz: 1aae0b03ead99c6f5217c1ba4e74eda67cc094ddff5e444f9ca885758d4fd6a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcd415b7a6328f5ad4ba0450e5a844e5abb22cd4d7367dc768f68c70cebd7c4f37661858617b0838209542a8f6718048456a376a6f35a67b522d812498bf4651
|
7
|
+
data.tar.gz: 78e495f4c2ec8d377c7e085a496a585071e9396d154e1a0c40fa478e68eb2522840b40bfa0d7c45308bb682373abbda5b23f75dbcfd4fe067def9945a0ca704d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.
|
1
|
+
4.6.0
|
data/lib/VERSION_NOTES
CHANGED
@@ -42,6 +42,7 @@ module Gloo
|
|
42
42
|
FILE_TYPE = 'file_type'.freeze
|
43
43
|
FILE_PATH = 'file_path'.freeze
|
44
44
|
FILE_NAME = 'file_name'.freeze
|
45
|
+
FILE_DATA = 'file_data'.freeze
|
45
46
|
DOWNLOAD_FILE = 'download_file'.freeze
|
46
47
|
|
47
48
|
#
|
@@ -506,6 +507,17 @@ module Gloo
|
|
506
507
|
return o&.value
|
507
508
|
end
|
508
509
|
|
510
|
+
#
|
511
|
+
# Get the File content
|
512
|
+
#
|
513
|
+
def file_data
|
514
|
+
o = find_child FILE_DATA
|
515
|
+
return nil unless o
|
516
|
+
|
517
|
+
o = Gloo::Objs::Alias.resolve_alias( @engine, o )
|
518
|
+
return o&.value
|
519
|
+
end
|
520
|
+
|
509
521
|
#
|
510
522
|
# Get the name of the file.
|
511
523
|
#
|
@@ -530,7 +542,12 @@ module Gloo
|
|
530
542
|
#
|
531
543
|
def render_file params
|
532
544
|
type = file_type
|
533
|
-
|
545
|
+
inline_content = file_data
|
546
|
+
if inline_content.nil?
|
547
|
+
data = File.binread( file_path )
|
548
|
+
else
|
549
|
+
data = inline_content
|
550
|
+
end
|
534
551
|
code = Gloo::WebSvr::ResponseCode::SUCCESS
|
535
552
|
fname = file_name
|
536
553
|
download = download_file
|
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.
|
4
|
+
version: 4.6.0
|
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-08-
|
11
|
+
date: 2025-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|