zsteg 0.2.3 → 0.2.7

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: 447ec5942756d91a88be724a4a2e09a6012a9c75e5367648d0d3625094499a1d
4
+ data.tar.gz: b5e7a11f02ce2007a3eabcf5d2371b6afa1d328af43aa4c879b5f4b27c4e3d34
5
5
  SHA512:
6
- metadata.gz: 5f4243a62114c5098d56c59d273deaff5addf89b334377ba0d63032a6aee9759720ff3772805ae6a445179d3487a40b436024cc1c431f9a723e8de5140e2f683
7
- data.tar.gz: 86eed1938f6c92812ab461f25b8647a25034e06b1b8c23b81187c253ef987de84d49a5e6d1521874fc480cf9cbe136559d921ab91ea8d2501383a13688dcb49d
6
+ metadata.gz: 5290aae655ff3efd5c5c3c66a4328799fd42be0e34ae68c5c565ad5269b865414394a8647c54965b3f91baef09ff5c91493a5998afec5e40fecbd76d6a388ccf
7
+ data.tar.gz: 3d8b0eb84de4df3f08fd002a5f4edcf7c2bd3edb8f720433c71feed15cbf160de91bdc4b147219df57782e6300bfe8d59f27f661255cb4ee4832808e2289d263
data/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'zpng', ">= 0.3.1"
3
+ gem 'zpng', ">= 0.4.0"
4
4
  gem "iostruct"
5
5
 
6
6
  group :development do
7
- gem "rspec", "~> 3.9.0"
8
- gem "bundler", "~> 2.2.3"
9
- gem "jeweler", "~> 2.3.9"
7
+ gem "rspec"
8
+ gem "bundler"
9
+ gem "juwelier"
10
10
  end
data/Gemfile.lock CHANGED
@@ -1,85 +1,113 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- addressable (2.4.0)
4
+ addressable (2.8.0)
5
+ public_suffix (>= 2.0.2, < 5.0)
5
6
  builder (3.2.4)
6
7
  descendants_tracker (0.0.4)
7
8
  thread_safe (~> 0.3, >= 0.3.1)
8
- diff-lcs (1.4.4)
9
- faraday (0.9.2)
9
+ diff-lcs (1.5.0)
10
+ faraday (1.9.3)
11
+ faraday-em_http (~> 1.0)
12
+ faraday-em_synchrony (~> 1.0)
13
+ faraday-excon (~> 1.1)
14
+ faraday-httpclient (~> 1.0)
15
+ faraday-multipart (~> 1.0)
16
+ faraday-net_http (~> 1.0)
17
+ faraday-net_http_persistent (~> 1.0)
18
+ faraday-patron (~> 1.0)
19
+ faraday-rack (~> 1.0)
20
+ faraday-retry (~> 1.0)
21
+ ruby2_keywords (>= 0.0.4)
22
+ faraday-em_http (1.0.0)
23
+ faraday-em_synchrony (1.0.0)
24
+ faraday-excon (1.1.0)
25
+ faraday-httpclient (1.0.1)
26
+ faraday-multipart (1.0.3)
10
27
  multipart-post (>= 1.2, < 3)
11
- git (1.8.1)
28
+ faraday-net_http (1.0.1)
29
+ faraday-net_http_persistent (1.2.0)
30
+ faraday-patron (1.0.0)
31
+ faraday-rack (1.0.0)
32
+ faraday-retry (1.0.3)
33
+ git (1.10.2)
12
34
  rchardet (~> 1.8)
13
- github_api (0.16.0)
14
- addressable (~> 2.4.0)
35
+ github_api (0.19.0)
36
+ addressable (~> 2.4)
15
37
  descendants_tracker (~> 0.0.4)
16
- faraday (~> 0.8, < 0.10)
17
- hashie (>= 3.4)
18
- mime-types (>= 1.16, < 3.0)
38
+ faraday (>= 0.8, < 2)
39
+ hashie (~> 3.5, >= 3.5.2)
19
40
  oauth2 (~> 1.0)
20
- hashie (4.1.0)
41
+ hashie (3.6.0)
21
42
  highline (2.0.3)
22
43
  iostruct (0.0.4)
23
- jeweler (2.3.9)
44
+ juwelier (2.4.9)
24
45
  builder
25
46
  bundler
26
- git (>= 1.2.5)
27
- github_api (~> 0.16.0)
28
- highline (>= 1.6.15)
29
- nokogiri (>= 1.5.10)
47
+ git
48
+ github_api
49
+ highline
50
+ kamelcase (~> 0)
51
+ nokogiri
30
52
  psych
31
53
  rake
32
54
  rdoc
33
55
  semver2
34
- jwt (2.2.2)
35
- mime-types (2.99.3)
36
- mini_portile2 (2.5.0)
56
+ jwt (2.3.0)
57
+ kamelcase (0.0.2)
58
+ semver2 (~> 3)
59
+ mini_portile2 (2.7.1)
37
60
  multi_json (1.15.0)
38
61
  multi_xml (0.6.0)
39
62
  multipart-post (2.1.1)
40
- nokogiri (1.11.1)
41
- mini_portile2 (~> 2.5.0)
63
+ nokogiri (1.13.1)
64
+ mini_portile2 (~> 2.7.0)
42
65
  racc (~> 1.4)
43
- oauth2 (1.4.4)
66
+ oauth2 (1.4.7)
44
67
  faraday (>= 0.8, < 2.0)
45
68
  jwt (>= 1.0, < 3.0)
46
69
  multi_json (~> 1.3)
47
70
  multi_xml (~> 0.5)
48
71
  rack (>= 1.2, < 3)
49
- psych (3.3.0)
50
- racc (1.5.2)
72
+ psych (4.0.3)
73
+ stringio
74
+ public_suffix (4.0.6)
75
+ racc (1.6.0)
51
76
  rack (2.2.3)
52
- rainbow (3.0.0)
53
- rake (13.0.3)
77
+ rainbow (3.1.1)
78
+ rake (13.0.6)
54
79
  rchardet (1.8.0)
55
- rdoc (6.3.0)
56
- rspec (3.9.0)
57
- rspec-core (~> 3.9.0)
58
- rspec-expectations (~> 3.9.0)
59
- rspec-mocks (~> 3.9.0)
60
- rspec-core (3.9.3)
61
- rspec-support (~> 3.9.3)
62
- rspec-expectations (3.9.4)
80
+ rdoc (6.4.0)
81
+ psych (>= 4.0.0)
82
+ rspec (3.10.0)
83
+ rspec-core (~> 3.10.0)
84
+ rspec-expectations (~> 3.10.0)
85
+ rspec-mocks (~> 3.10.0)
86
+ rspec-core (3.10.2)
87
+ rspec-support (~> 3.10.0)
88
+ rspec-expectations (3.10.2)
63
89
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.9.0)
65
- rspec-mocks (3.9.1)
90
+ rspec-support (~> 3.10.0)
91
+ rspec-mocks (3.10.3)
66
92
  diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.9.0)
68
- rspec-support (3.9.4)
93
+ rspec-support (~> 3.10.0)
94
+ rspec-support (3.10.3)
95
+ ruby2_keywords (0.0.5)
69
96
  semver2 (3.4.2)
97
+ stringio (3.0.1)
70
98
  thread_safe (0.3.6)
71
- zpng (0.3.2)
99
+ zpng (0.4.0)
72
100
  rainbow
73
101
 
74
102
  PLATFORMS
75
103
  ruby
76
104
 
77
105
  DEPENDENCIES
78
- bundler (~> 2.2.3)
106
+ bundler
79
107
  iostruct
80
- jeweler (~> 2.3.9)
81
- rspec (~> 3.9.0)
82
- zpng (>= 0.3.1)
108
+ juwelier
109
+ rspec
110
+ zpng (>= 0.4.0)
83
111
 
84
112
  BUNDLED WITH
85
- 2.2.3
113
+ 2.2.32
data/Rakefile CHANGED
@@ -11,8 +11,8 @@ rescue Bundler::BundlerError => e
11
11
  end
12
12
  require 'rake'
13
13
 
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
14
+ require 'juwelier'
15
+ Juwelier::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "zsteg"
18
18
  gem.homepage = "http://github.com/zed-0xff/zsteg"
@@ -27,7 +27,7 @@ Jeweler::Tasks.new do |gem|
27
27
  gem.files.exclude "samples/*"
28
28
  # dependencies defined in Gemfile
29
29
  end
30
- Jeweler::RubygemsDotOrgTasks.new
30
+ Juwelier::RubygemsDotOrgTasks.new
31
31
 
32
32
  require 'rspec/core'
33
33
  require 'rspec/core/rake_task'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.7
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
@@ -1,17 +1,17 @@
1
- # Generated by jeweler
1
+ # Generated by juwelier
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
3
+ # Instead, edit Juwelier::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.7 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.7"
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]
13
13
  s.authors = ["Andrey \"Zed\" Zaikin".freeze]
14
- s.date = "2021-02-18"
14
+ s.date = "2022-01-31"
15
15
  s.email = "zed.0xff@gmail.com".freeze
16
16
  s.executables = ["zsteg".freeze, "zsteg-mask".freeze, "zsteg-reflow".freeze]
17
17
  s.extra_rdoc_files = [
@@ -103,7 +103,7 @@ Gem::Specification.new do |s|
103
103
  ]
104
104
  s.homepage = "http://github.com/zed-0xff/zsteg".freeze
105
105
  s.licenses = ["MIT".freeze]
106
- s.rubygems_version = "3.2.3".freeze
106
+ s.rubygems_version = "3.2.32".freeze
107
107
  s.summary = "Detect stegano-hidden data in PNG & BMP files.".freeze
108
108
 
109
109
  if s.respond_to? :specification_version then
@@ -111,17 +111,17 @@ Gem::Specification.new do |s|
111
111
  end
112
112
 
113
113
  if s.respond_to? :add_runtime_dependency then
114
- s.add_runtime_dependency(%q<zpng>.freeze, [">= 0.3.1"])
114
+ s.add_runtime_dependency(%q<zpng>.freeze, [">= 0.4.0"])
115
115
  s.add_runtime_dependency(%q<iostruct>.freeze, [">= 0"])
116
- s.add_development_dependency(%q<rspec>.freeze, ["~> 3.9.0"])
117
- s.add_development_dependency(%q<bundler>.freeze, ["~> 2.2.3"])
118
- s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3.9"])
116
+ s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
117
+ s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
118
+ s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
119
119
  else
120
- s.add_dependency(%q<zpng>.freeze, [">= 0.3.1"])
120
+ s.add_dependency(%q<zpng>.freeze, [">= 0.4.0"])
121
121
  s.add_dependency(%q<iostruct>.freeze, [">= 0"])
122
- s.add_dependency(%q<rspec>.freeze, ["~> 3.9.0"])
123
- s.add_dependency(%q<bundler>.freeze, ["~> 2.2.3"])
124
- s.add_dependency(%q<jeweler>.freeze, ["~> 2.3.9"])
122
+ s.add_dependency(%q<rspec>.freeze, [">= 0"])
123
+ s.add_dependency(%q<bundler>.freeze, [">= 0"])
124
+ s.add_dependency(%q<juwelier>.freeze, [">= 0"])
125
125
  end
126
126
  end
127
127
 
metadata CHANGED
@@ -1,14 +1,14 @@
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey "Zed" Zaikin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-18 00:00:00.000000000 Z
11
+ date: 2022-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zpng
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.1
19
+ version: 0.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.1
26
+ version: 0.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: iostruct
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,44 +42,44 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 3.9.0
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 3.9.0
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 2.2.3
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 2.2.3
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: jeweler
70
+ name: juwelier
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 2.3.9
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 2.3.9
82
+ version: '0'
83
83
  description:
84
84
  email: zed.0xff@gmail.com
85
85
  executables:
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0'
193
193
  requirements: []
194
- rubygems_version: 3.2.3
194
+ rubygems_version: 3.2.32
195
195
  signing_key:
196
196
  specification_version: 4
197
197
  summary: Detect stegano-hidden data in PNG & BMP files.