image_validator 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. data/lib/image_validator.rb +3 -1
  2. metadata +26 -33
@@ -1,8 +1,10 @@
1
+ require 'stringio'
2
+
1
3
  module ImageValidator
2
4
  def valid?(file)
3
5
  file = thing_to_io(file)
4
6
  check_image_magick_is_available
5
- IO.popen("identify - &> /dev/null", "w") do |identify|
7
+ IO.popen("identify - >/dev/null 2>&1", "w") do |identify|
6
8
  some_content_has_been_read = false
7
9
  while blk = file.read(1024**2)
8
10
  identify << blk
metadata CHANGED
@@ -1,27 +1,24 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: image_validator
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Tom Lea
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
-
12
- date: 2010-02-02 00:00:00 +00:00
13
- default_executable:
12
+ date: 2012-11-27 00:00:00.000000000 Z
14
13
  dependencies: []
15
-
16
- description:
14
+ description: A simple wrapper around the ImageMagick command line to check if an image
15
+ is valid.
17
16
  email: contrib@tomlea.co.uk
18
17
  executables: []
19
-
20
18
  extensions: []
21
-
22
- extra_rdoc_files:
19
+ extra_rdoc_files:
23
20
  - README.markdown
24
- files:
21
+ files:
25
22
  - README.markdown
26
23
  - test/fixtures/dolphin.txt
27
24
  - test/fixtures/space-lincoln.gif
@@ -30,34 +27,30 @@ files:
30
27
  - test/image_validator_test.rb
31
28
  - test/test_helper.rb
32
29
  - lib/image_validator.rb
33
- has_rdoc: true
34
30
  homepage: http://tomlea.co.uk
35
31
  licenses: []
36
-
37
32
  post_install_message:
38
- rdoc_options:
33
+ rdoc_options:
39
34
  - --main
40
35
  - README.markdown
41
- require_paths:
36
+ require_paths:
42
37
  - lib
43
- required_ruby_version: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: "0"
48
- version:
49
- required_rubygems_version: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: "0"
54
- version:
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
55
50
  requirements: []
56
-
57
51
  rubyforge_project: image_validator
58
- rubygems_version: 1.3.5
52
+ rubygems_version: 1.8.15
59
53
  signing_key:
60
54
  specification_version: 3
61
- summary: A simple wrapper around the ImageMagick command line to check if an image is valid.
55
+ summary: Check if an image is valid
62
56
  test_files: []
63
-