activestorage-hotcell-server 0.2.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42399adf3e7993d0df16dd7a13010053ff389ddad17b3c90a6f7705052b3c2e7
4
- data.tar.gz: 324c2a21f2e55e7747355f2155542d5ef572164ac53938a1077db3156fbc1c87
3
+ metadata.gz: db442348d3994653c203d9d5ab83373d73c36fedc8bd6e22e9ac038f88bb3f66
4
+ data.tar.gz: 654f3937bb892200fb4fb4edbddf06ebc80c2e896ffb4d484549538c519c26de
5
5
  SHA512:
6
- metadata.gz: f596b308fbdf479792bdb2de90d1fb626ed9207c6194d60a618a1342cca51ae13a7f47a456c15c1ca764f807477070b6d7697f00bc6d4f1dfa7b31788fa37b94
7
- data.tar.gz: a6b15cc763f189ce7249bb473f1cd11c24f4d112f8ecad66f97c2e4ad1afb63f845c201dd704e17147a690866dc79b1c49795b61f915719e1c28c91f952236b7
6
+ metadata.gz: 93e1b31a60d950149622c0d18f068b70253ac6b4a4e303837ff078d0dcbd2e912600da942efa33c9b7956a640dd36921dbc510b6d8649e54d73b14be63955944
7
+ data.tar.gz: f531653511415fe1394b1148f2b989c42e05125c86f0f058a5e24937f0426080049a2ace8400d90112d0e8d7415cb3f4ea9db2f7a0136d923d7c5efdb43b4109
@@ -22,8 +22,14 @@ require "image_processing/mini_magick"
22
22
  # is covered too. Note what this is: mini_magick filters the environment it was given, where `run_tool`
23
23
  # writes a fresh one. Driving `magick` directly would make it ours, and that is the separate enhancement
24
24
  # this class already names.
25
+ #
26
+ # The OpenMP variables come from the cell's environment rather than being named here: the number belongs
27
+ # to the image, which is configured to match the container's CPU quota. Without them the restriction would
28
+ # hand `magick` the pool the image's bound was meant to take away. `run_tool` carries the same pair.
25
29
  MiniMagick.restricted_env = true
26
- MiniMagick.cli_env = { "LANG" => "C.UTF-8", "LC_ALL" => "C.UTF-8" }
30
+ MiniMagick.cli_env = { "LANG" => "C.UTF-8", "LC_ALL" => "C.UTF-8",
31
+ "OMP_NUM_THREADS" => ENV["OMP_NUM_THREADS"],
32
+ "OMP_THREAD_LIMIT" => ENV["OMP_THREAD_LIMIT"] }.compact
27
33
 
28
34
  module ActiveStorage
29
35
  module HotCell
@@ -3,7 +3,7 @@
3
3
  module ActiveStorage
4
4
  module HotCell
5
5
  module Server
6
- VERSION = "0.2.0"
6
+ VERSION = "0.3.0"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activestorage-hotcell-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.2.0
18
+ version: 0.3.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.2.0
25
+ version: 0.3.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: image_processing
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -43,28 +43,28 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: '4.0'
46
+ version: 5.2.0
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '4.0'
53
+ version: 5.2.0
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: ruby-vips
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '2.2'
60
+ version: 2.2.1
61
61
  type: :runtime
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: '2.2'
67
+ version: 2.2.1
68
68
  description: |
69
69
  The HotCell operations behind activestorage-hotcell-client: image transformation with libvips or
70
70
  ImageMagick, image and media analysis, PDF previews with mutool or poppler, and video previews with
@@ -99,8 +99,8 @@ licenses:
99
99
  - MIT
100
100
  metadata:
101
101
  homepage_uri: https://github.com/basecamp/hotcell
102
- source_code_uri: https://github.com/basecamp/hotcell/tree/v0.2.0/activestorage-hotcell-server
103
- changelog_uri: https://github.com/basecamp/hotcell/blob/v0.2.0/CHANGELOG.md
102
+ source_code_uri: https://github.com/basecamp/hotcell/tree/v0.3.0/activestorage-hotcell-server
103
+ changelog_uri: https://github.com/basecamp/hotcell/blob/v0.3.0/CHANGELOG.md
104
104
  bug_tracker_uri: https://github.com/basecamp/hotcell/issues
105
105
  rubygems_mfa_required: 'true'
106
106
  rdoc_options: []