zsteg 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/zsteg/checker.rb +4 -4
- data/zsteg.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4c151cc3c280c84c37f217c0d458b05da5b29aa39c82694c2c41d9755a8db13
|
4
|
+
data.tar.gz: c4a159fb8ae278468df4190e1103a315c5ee9dd0a83f9388d215dc1e312c277c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd7bbfed155dbc8216fe24495b00c3c0277055c68d916ff4ba3bd8cf85311de93eee3d680890a3e775bc0109ae874b2ee315b69866a10aa614e112dc674b5567
|
7
|
+
data.tar.gz: 1386691794edeecf721e771384725b5abbea6a31fb16579c64191cbc6ec67f6ad4e80c7ca6a029464b0bb7af0f328a68719125da4b87847f56d2d94aafe8cef2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/lib/zsteg/checker.rb
CHANGED
@@ -26,7 +26,7 @@ module ZSteg
|
|
26
26
|
%w'r g b rgb bgr'
|
27
27
|
end
|
28
28
|
@verbose = params[:verbose] || -2
|
29
|
-
@file_cmd = FileCmd.new
|
29
|
+
@file_cmd = FileCmd.new if params.fetch(:file, true)
|
30
30
|
@results = []
|
31
31
|
|
32
32
|
@params[:bits] ||= DEFAULT_BITS
|
@@ -65,7 +65,7 @@ module ZSteg
|
|
65
65
|
|
66
66
|
def check
|
67
67
|
@found_anything = false
|
68
|
-
@file_cmd.start!
|
68
|
+
@file_cmd.start! if @file_cmd
|
69
69
|
|
70
70
|
if @extra_checks
|
71
71
|
check_extradata
|
@@ -116,7 +116,7 @@ module ZSteg
|
|
116
116
|
# return everything found if this method was called from some code
|
117
117
|
@results
|
118
118
|
ensure
|
119
|
-
@file_cmd.stop!
|
119
|
+
@file_cmd.stop! if @file_cmd
|
120
120
|
end
|
121
121
|
|
122
122
|
def check_imagedata
|
@@ -355,7 +355,7 @@ module ZSteg
|
|
355
355
|
return Result::WholeText.new(data, 0)
|
356
356
|
end
|
357
357
|
|
358
|
-
if
|
358
|
+
if @file_cmd && (r = @file_cmd.data2result(data))
|
359
359
|
return r
|
360
360
|
end
|
361
361
|
|
data/zsteg.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: zsteg 0.2.
|
5
|
+
# stub: zsteg 0.2.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "zsteg".freeze
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|