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: 44cf23f9065e97caa7532489c6aa8f2ad0eb14c8cd9a6bfa5c632fbcb83b90cf
4
- data.tar.gz: 84402156bf4c055d70ef121692cc0e0ac415a5d0cfa6ed91be31bacb410e7a4a
3
+ metadata.gz: 50bc86a224ca66770b89a5d682a0bfe35a1656b984d03c4ddcf241db3b806419
4
+ data.tar.gz: eff170d586dd5d3b8c7b954dd93eccae0e4f95734da74bdbe0e9c5876032e8db
5
5
  SHA512:
6
- metadata.gz: ab5fcbe11d109a5e772522cd7f02d1482ca847b3b2b0aad5f005c0db46eee2b37811a689bf0b93131e7cb5910b7f1848f7179b054fc596ec4b2665d5baa1cad6
7
- data.tar.gz: f7d992056c9bb40ec9dca2bb6d4816695c6c24fc9413eb10266cbe3db266abfa12866deeb3d4178c2dad6e21209ec8dac766fb204514fde19e939adbc4df88b8
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"]["min"] == value
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
@@ -9,7 +9,7 @@ module ActiveAnalysis
9
9
  module VERSION
10
10
  MAJOR = 0
11
11
  MINOR = 2
12
- TINY = 0
12
+ TINY = 1
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage