active_analysis 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50bc86a224ca66770b89a5d682a0bfe35a1656b984d03c4ddcf241db3b806419
|
4
|
+
data.tar.gz: eff170d586dd5d3b8c7b954dd93eccae0e4f95734da74bdbe0e9c5876032e8db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ec4bb9f83d259d7331562b2ff741bbf12514ac8521c7f61810f139a2f3a7271851766ce85859b1df58910e3d9c02feeffe2d2f8a08bee8a508bb14c85958c3f
|
7
|
+
data.tar.gz: c964a651bc33f323bc71f11814e32d56328dcab774725bc7b2cddf1bf412e0ac978e7548596d863b388dcd3099d4aa538f1060f18ab410a1df16cf527e54c5fd
|
@@ -39,7 +39,7 @@ module ActiveAnalysis
|
|
39
39
|
return true unless image.data["channelDepth"].key?("alpha")
|
40
40
|
|
41
41
|
value = image.data["version"] =~ /7.\d/ ? 255 : 0
|
42
|
-
image.data["channelStatistics"]["alpha"]["
|
42
|
+
image.data["channelStatistics"]["alpha"]["mean"] == value
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -24,7 +24,7 @@ module ActiveAnalysis
|
|
24
24
|
initializer "active_analysis.configs" do
|
25
25
|
config.after_initialize do |app|
|
26
26
|
ActiveAnalysis.logger = app.config.active_analysis.logger || Rails.logger
|
27
|
-
ActiveAnalysis.image_library = app.config.active_analysis.image_library || app.config.active_storage.variant_processor
|
27
|
+
ActiveAnalysis.image_library = app.config.active_analysis.image_library || app.config.active_storage.variant_processor || :mini_magick
|
28
28
|
ActiveAnalysis.image_analyzer = app.config.active_analysis.image_analyzer || true
|
29
29
|
ActiveAnalysis.audio_analyzer = app.config.active_analysis.audio_analyzer || true
|
30
30
|
ActiveAnalysis.pdf_analyzer = app.config.active_analysis.pdf_analyzer || true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_analysis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Breno Gazzola
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage
|