dynamic_image 2.0.4 → 2.0.5

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
  SHA1:
3
- metadata.gz: c82de9910001e6bd9b12219dbf0b7c3fe205ed1f
4
- data.tar.gz: 57289784675b4655201fc50745c1b649530f7181
3
+ metadata.gz: 1a2e252d378bfd92a558e429e9519f610c04305a
4
+ data.tar.gz: 38099031934045185076f87e89a45cb20e427618
5
5
  SHA512:
6
- metadata.gz: 1fe98b98e7a733b98560040cf3b98176dff97d7cdce28aaa7c019d24ad4c590a079870654cfe5648edd3d93f8c7f275e46108b9568cc67bbe00ff1ed295004ed
7
- data.tar.gz: 5c24baa739944fcaa6f695fc370d5b098373235d252172b2c9050a52752772875667db4e6b01719f77e6a9dddba73e4e6997cb543fa50fbc4ec235abb1477ecd
6
+ metadata.gz: db27f9df8931a5520017bc20fe7dde9a517dae34dc88796331ebbf00913bef71a239a467f17dff2a2bd97abbe9a39222f75be8e264fed894500439bd6f371f06
7
+ data.tar.gz: c5a142c1573020984707c9e0b0b04b7e6246e8c5e41864b6fa3bc9bf3f50ff2108cade9cdd935ea85733edf03affa038d138b1afe308fba1dd1f67d56c7e19a8
@@ -12,6 +12,7 @@ module DynamicImage
12
12
  end
13
13
 
14
14
  def valid_header?
15
+ return false if file_header.blank?
15
16
  magic_bytes.each do |expr|
16
17
  if (expr.is_a?(Regexp) && file_header =~ /^#{expr}/) ||
17
18
  (expr.is_a?(String) && file_header.start_with?(expr))
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module DynamicImage
4
- VERSION = "2.0.4".freeze
4
+ VERSION = "2.0.5".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inge Jørgensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-04 00:00:00.000000000 Z
11
+ date: 2016-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -70,14 +70,14 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: 1.0.0
73
+ version: 1.0.6
74
74
  type: :runtime
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: 1.0.0
80
+ version: 1.0.6
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: sqlite3
83
83
  requirement: !ruby/object:Gem::Requirement