himg 0.0.9-aarch64-linux → 0.0.10-aarch64-linux
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/CHANGELOG.md +6 -0
- data/lib/himg/3.2/himg.so +0 -0
- data/lib/himg/3.3/himg.so +0 -0
- data/lib/himg/3.4/himg.so +0 -0
- data/lib/himg/version.rb +1 -1
- data/lib/himg.rb +2 -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: b4a23ed02a3c1a4845377d1e53a7c2c926e75510313fd30324f27df19885f184
|
4
|
+
data.tar.gz: 628064bcedddc3d765f2f60ee781106d9ae329a9974471886b4f467568233d70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1276e22902987c705e9f651e0d6bb1db8328e6583b3d7b2b92cb56782cfe37e428a5f20c994632845efec8f6c54f948520f873fc541b6d8ab245a52e72c7dabf
|
7
|
+
data.tar.gz: da6665b68e54ed03707a0be63d5011c45629e0ffb445984b7faa79cab6da825bbbbb8f28214d079fc7000a61c263cb843e2324d491a2fbf87aa1ca2fa26521ba
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
3
|
|
4
|
+
## [0.0.10] - 2025-08-01
|
5
|
+
|
6
|
+
- Fixed himg require from native extension
|
7
|
+
- Catch rust panics and wrap with ruby Error
|
8
|
+
- GpuNotFound error extending Himg::Error
|
9
|
+
|
4
10
|
## [0.0.9] - 2025-07-31
|
5
11
|
|
6
12
|
- Returned to CPU-only rendering by default
|
data/lib/himg/3.2/himg.so
CHANGED
Binary file
|
data/lib/himg/3.3/himg.so
CHANGED
Binary file
|
data/lib/himg/3.4/himg.so
CHANGED
Binary file
|
data/lib/himg/version.rb
CHANGED
data/lib/himg.rb
CHANGED
@@ -8,7 +8,7 @@ require "himg/railtie" if defined?(Rails::Railtie)
|
|
8
8
|
# Fall back to loading the non-versioned extension if version-specific loading fails.
|
9
9
|
begin
|
10
10
|
RUBY_VERSION =~ /(\d+\.\d+)/
|
11
|
-
require "
|
11
|
+
require "himg/#{Regexp.last_match(1)}/himg"
|
12
12
|
rescue LoadError
|
13
13
|
require "himg/himg"
|
14
14
|
end
|
@@ -19,6 +19,7 @@ end
|
|
19
19
|
module Himg
|
20
20
|
RENDER_OPTIONS = %i[width height truncate verbose base_url disable_fetch fetch_timeout gpu].freeze
|
21
21
|
class Error < StandardError; end
|
22
|
+
class GpuNotFound < Error; end
|
22
23
|
|
23
24
|
def self.render(html, width: 720, height: 405, truncate: true, verbose: false, base_url: nil, disable_fetch: false, fetch_timeout: 10, gpu: false)
|
24
25
|
render_to_string(html, "width" => width.to_i, "height" => height.to_i, "truncate" => truncate, "verbose" => verbose, "base_url" => BaseUrl.new(base_url).to_s, "disable_fetch" => disable_fetch, "fetch_timeout" => fetch_timeout.to_f, "gpu" => gpu)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: himg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: aarch64-linux
|
6
6
|
authors:
|
7
7
|
- James Edwards-Jones
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|