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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03b8c9494bd4dfb5953973438b62cd909abb1a0d6fc46363928e9a3773e1e47a
4
- data.tar.gz: a46faa826bc3781860881b4c15d9e6c04fb86da6dedfd5df2487f62fa09fcbf1
3
+ metadata.gz: c4c151cc3c280c84c37f217c0d458b05da5b29aa39c82694c2c41d9755a8db13
4
+ data.tar.gz: c4a159fb8ae278468df4190e1103a315c5ee9dd0a83f9388d215dc1e312c277c
5
5
  SHA512:
6
- metadata.gz: 5f4243a62114c5098d56c59d273deaff5addf89b334377ba0d63032a6aee9759720ff3772805ae6a445179d3487a40b436024cc1c431f9a723e8de5140e2f683
7
- data.tar.gz: 86eed1938f6c92812ab461f25b8647a25034e06b1b8c23b81187c253ef987de84d49a5e6d1521874fc480cf9cbe136559d921ab91ea8d2501383a13688dcb49d
6
+ metadata.gz: dd7bbfed155dbc8216fe24495b00c3c0277055c68d916ff4ba3bd8cf85311de93eee3d680890a3e775bc0109ae874b2ee315b69866a10aa614e112dc674b5567
7
+ data.tar.gz: 1386691794edeecf721e771384725b5abbea6a31fb16579c64191cbc6ec67f6ad4e80c7ca6a029464b0bb7af0f328a68719125da4b87847f56d2d94aafe8cef2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
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 params.fetch(:file, true) && (r = @file_cmd.data2result(data))
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.3 ruby lib
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.3"
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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zsteg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey "Zed" Zaikin