zsteg 0.1.2 → 0.2.0

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
- SHA1:
3
- metadata.gz: 9c404bfeb56a154e348ab6b9317d39f2ed111909
4
- data.tar.gz: 4757c7c83b8cc4b7ed7ce818df237846784c9e72
2
+ SHA256:
3
+ metadata.gz: 6c3df1cb23705566ae711f5916b200de58607e377ad469516e23ef5e7c593c3a
4
+ data.tar.gz: ee5175fbaccc64e440c8ae3f520624485c42a0ac7fe2228f8cb1bed66cc4d7fd
5
5
  SHA512:
6
- metadata.gz: 5bedebed7ee62ad32d4eebdcd881ede8ac8750d85c39107138ce5ddd3532947afd7114876017191c274ae34398243f9cacaf9b949d3304d5f326ae029cd4b6d1
7
- data.tar.gz: 90f91286daabad120e67ba8f1eb15c531c8f17fbc1e85e79fda39841d8ef265fac7ac5067acc23521ac016ef139bc829474427afcdb1957b266b64e6a8cc544a
6
+ metadata.gz: bf7fabe958651053060be974ce6cbb79f15a9f09f6837e817a2329bbf2e0db063b0087e842f558e0b3888648d56d5a0f5b5c14f34ce43db2f7afecc2c338ef4b
7
+ data.tar.gz: 1e19798636051be8b90683e4e4efdfa758f82a0122a9573196b221026684f0620e4f354561480eb82e6756638d03ea694adf48f3f152dfa3e869ef34b20a741d
data/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'zpng', ">= 0.2.5"
3
+ gem 'zpng', ">= 0.3.0"
4
4
  gem "iostruct"
5
5
 
6
6
  group :development do
7
- gem "rspec", ">= 2.8.0"
8
- gem "bundler", ">= 1.0.0"
9
- gem "jeweler", "~> 1.8.4"
7
+ gem "rspec", "~> 3.9.0"
8
+ gem "bundler", "~> 2.1.4"
9
+ gem "jeweler", "~> 2.3.9"
10
10
  end
@@ -1,66 +1,81 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- addressable (2.3.5)
5
- builder (3.2.2)
6
- diff-lcs (1.1.3)
7
- faraday (0.8.9)
8
- multipart-post (~> 1.2.0)
9
- git (1.2.6)
10
- github_api (0.10.1)
11
- addressable
12
- faraday (~> 0.8.1)
13
- hashie (>= 1.2)
14
- multi_json (~> 1.4)
15
- nokogiri (~> 1.5.2)
16
- oauth2
17
- hashie (2.0.5)
18
- highline (1.6.21)
4
+ addressable (2.4.0)
5
+ builder (3.2.4)
6
+ descendants_tracker (0.0.4)
7
+ thread_safe (~> 0.3, >= 0.3.1)
8
+ diff-lcs (1.3)
9
+ faraday (0.9.2)
10
+ multipart-post (>= 1.2, < 3)
11
+ git (1.5.0)
12
+ github_api (0.16.0)
13
+ addressable (~> 2.4.0)
14
+ descendants_tracker (~> 0.0.4)
15
+ faraday (~> 0.8, < 0.10)
16
+ hashie (>= 3.4)
17
+ mime-types (>= 1.16, < 3.0)
18
+ oauth2 (~> 1.0)
19
+ hashie (4.0.0)
20
+ highline (2.0.3)
19
21
  iostruct (0.0.1)
20
- jeweler (1.8.8)
22
+ jeweler (2.3.9)
21
23
  builder
22
- bundler (~> 1.0)
24
+ bundler
23
25
  git (>= 1.2.5)
24
- github_api (= 0.10.1)
26
+ github_api (~> 0.16.0)
25
27
  highline (>= 1.6.15)
26
- nokogiri (= 1.5.10)
28
+ nokogiri (>= 1.5.10)
29
+ psych
27
30
  rake
28
31
  rdoc
29
- json (1.8.1)
30
- jwt (0.1.11)
31
- multi_json (>= 1.5)
32
- multi_json (1.8.4)
33
- multi_xml (0.5.5)
34
- multipart-post (1.2.0)
35
- nokogiri (1.5.10)
36
- oauth2 (0.9.3)
37
- faraday (>= 0.8, < 0.10)
38
- jwt (~> 0.1.8)
32
+ semver2
33
+ jwt (2.2.1)
34
+ mime-types (2.99.3)
35
+ mini_portile2 (2.4.0)
36
+ multi_json (1.14.1)
37
+ multi_xml (0.6.0)
38
+ multipart-post (2.1.1)
39
+ nokogiri (1.10.7)
40
+ mini_portile2 (~> 2.4.0)
41
+ oauth2 (1.4.2)
42
+ faraday (>= 0.8, < 2.0)
43
+ jwt (>= 1.0, < 3.0)
39
44
  multi_json (~> 1.3)
40
45
  multi_xml (~> 0.5)
41
- rack (~> 1.2)
42
- rack (1.5.2)
46
+ rack (>= 1.2, < 3)
47
+ psych (3.1.0)
48
+ rack (2.1.1)
43
49
  rainbow (2.0.0)
44
- rake (10.1.1)
45
- rdoc (4.1.1)
46
- json (~> 1.4)
47
- rspec (2.12.0)
48
- rspec-core (~> 2.12.0)
49
- rspec-expectations (~> 2.12.0)
50
- rspec-mocks (~> 2.12.0)
51
- rspec-core (2.12.2)
52
- rspec-expectations (2.12.1)
53
- diff-lcs (~> 1.1.3)
54
- rspec-mocks (2.12.1)
55
- zpng (0.2.5)
56
- rainbow
50
+ rake (13.0.1)
51
+ rdoc (6.2.1)
52
+ rspec (3.9.0)
53
+ rspec-core (~> 3.9.0)
54
+ rspec-expectations (~> 3.9.0)
55
+ rspec-mocks (~> 3.9.0)
56
+ rspec-core (3.9.1)
57
+ rspec-support (~> 3.9.1)
58
+ rspec-expectations (3.9.0)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.9.0)
61
+ rspec-mocks (3.9.1)
62
+ diff-lcs (>= 1.2.0, < 2.0)
63
+ rspec-support (~> 3.9.0)
64
+ rspec-support (3.9.2)
65
+ semver2 (3.4.2)
66
+ thread_safe (0.3.6)
67
+ zpng (0.3.0)
68
+ rainbow (~> 2.0.0)
57
69
 
58
70
  PLATFORMS
59
71
  ruby
60
72
 
61
73
  DEPENDENCIES
62
- bundler (>= 1.0.0)
74
+ bundler (~> 2.1.4)
63
75
  iostruct
64
- jeweler (~> 1.8.4)
65
- rspec (>= 2.8.0)
66
- zpng (>= 0.2.5)
76
+ jeweler (~> 2.3.9)
77
+ rspec (~> 3.9.0)
78
+ zpng (>= 0.3.0)
79
+
80
+ BUNDLED WITH
81
+ 2.1.4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.2.0
@@ -0,0 +1 @@
1
+ bin/zsteg
@@ -0,0 +1 @@
1
+ bin/zsteg
@@ -1,3 +1,4 @@
1
+ #coding: binary
1
2
  module ZSteg
2
3
  class Checker
3
4
  module ScanlineChecker
@@ -1,3 +1,4 @@
1
+ #coding: binary
1
2
  module ZSteg
2
3
  class Checker
3
4
  module WBStego
@@ -124,7 +124,11 @@ module ZSteg
124
124
  @options[:verbose] -= 1
125
125
  end
126
126
  opts.on "-C", "--[no-]color", "Force (or disable) color output (default: auto)" do |x|
127
- Sickill::Rainbow.enabled = x
127
+ if defined?(Rainbow) && Rainbow.respond_to?(:enabled=)
128
+ Rainbow.enabled = x
129
+ else
130
+ Sickill::Rainbow.enabled = x
131
+ end
128
132
  end
129
133
  opts.separator "\nPARAMS SHORTCUT\n"+
130
134
  "\tzsteg fname.png 2b,b,lsb,xy ==> --bits 2 --channel b --lsb --order xy"
@@ -77,7 +77,11 @@ module ZSteg
77
77
  @options[:verbose] -= 1
78
78
  end
79
79
  opts.on "-C", "--[no-]color", "Force (or disable) color output (default: auto)" do |x|
80
- Sickill::Rainbow.enabled = x
80
+ if defined?(Rainbow) && Rainbow.respond_to?(:enabled=)
81
+ Rainbow.enabled = x
82
+ else
83
+ Sickill::Rainbow.enabled = x
84
+ end
81
85
  end
82
86
  end
83
87
 
@@ -1,3 +1,4 @@
1
+ #coding: binary
1
2
  require 'optparse'
2
3
  require 'stringio'
3
4
  require 'set'
@@ -68,7 +69,11 @@ module ZSteg
68
69
  @options[:verbose] -= 1
69
70
  end
70
71
  opts.on "-C", "--[no-]color", "Force (or disable) color output (default: auto)" do |x|
71
- Sickill::Rainbow.enabled = x
72
+ if defined?(Rainbow) && Rainbow.respond_to?(:enabled=)
73
+ Rainbow.enabled = x
74
+ else
75
+ Sickill::Rainbow.enabled = x
76
+ end
72
77
  end
73
78
  end
74
79
 
@@ -1,3 +1,4 @@
1
+ #coding: binary
1
2
  module ZSteg
2
3
  class Extractor
3
4
  # ByteExtractor extracts bits from each scanline bytes
@@ -1,3 +1,4 @@
1
+ #coding: binary
1
2
  module ZSteg
2
3
  class Extractor
3
4
  # ColorExtractor extracts bits from each pixel's color
@@ -1,3 +1,4 @@
1
+ #coding: binary
1
2
  module ZSteg
2
3
  module Result
3
4
 
@@ -3,7 +3,9 @@ require 'spec_helper'
3
3
  describe "cats.png" do
4
4
  subject{ cli(sample("cats.png")) }
5
5
 
6
- its(:size){ should < 4_000 }
6
+ it "size should be < 4k" do
7
+ subject.size.should < 4_000
8
+ end
7
9
 
8
10
  it "should get 2nd cat" do
9
11
  should include("Second cat is Marussia")
@@ -5,7 +5,8 @@ sample("newbiecontest/alph1-surprise.bmp") do |fname|
5
5
  describe fname do
6
6
  subject{ cli(fname) }
7
7
 
8
- it { should include "PE32 executable for MS Windows" }
8
+ it { should include "PE32 executable" }
9
+ it { should include "MS Windows" }
9
10
  it { should include "is program canno" }
10
11
 
11
12
  describe "--extract" do
@@ -7,37 +7,51 @@ sample('polictf2012_f200.bmp') do |fname|
7
7
  end
8
8
 
9
9
  describe "hidden BMP #1" do
10
- subject(:data){ cli(fname, "--extract", "4b,lsb,bY") }
11
- its(:size){ should == 416816 }
10
+ before(:all) do
11
+ @data = cli(fname, "--extract", "4b,lsb,bY")
12
+ end
13
+
14
+ it "should be 416816 bytes" do
15
+ @data.size.should == 416816
16
+ end
12
17
 
13
18
  it "should have BMP header" do
14
- data[0,2].should == "BM"
19
+ @data[0,2].should == "BM"
15
20
  end
16
21
 
17
22
  it "should have 7zip after BMP" do
18
- data.index("7z").should == 2005
23
+ @data.index("7z").should == 2005
19
24
  end
20
25
 
21
26
  describe "deeper" do
22
- let(:tname){ File.join("tmp", File.basename(fname) + ".bmp") }
23
- before(:all){ File.open(tname, "wb"){ |f| f<<data } }
27
+ before(:all) do
28
+ @tname = File.join("tmp", File.basename(fname) + ".bmp")
29
+ File.open(@tname, "wb"){ |f| f<<@data }
30
+ end
24
31
 
25
32
  it "should detect 7z & BMP" do
26
- out = cli(tname)
33
+ out = cli(@tname)
27
34
  out.should include('7-zip archive')
28
35
  out.should include('PC bitmap, Windows 3.x format, 100 x 55 x 24')
29
36
  end
30
37
 
31
38
  describe "hidden BMP #2" do
32
- subject(:data2){ cli(tname, "--extract", "2b,lsb,bY") }
33
- its(:size){ should == 103875 }
39
+ before(:all) do
40
+ @data2 = cli(@tname, "--extract", "2b,lsb,bY")
41
+ end
42
+
43
+ it "should be 103875 bytes" do
44
+ @data2.size.should == 103875
45
+ end
34
46
 
35
47
  describe "deeper" do
36
- let(:tname2){ File.join("tmp", File.basename(tname) + ".bmp") }
37
- before(:all){ File.open(tname2, "wb"){ |f| f<<data2 } }
48
+ before(:all) do
49
+ @tname2 = File.join("tmp", File.basename(@tname) + ".bmp")
50
+ File.open(@tname2, "wb"){ |f| f<<@data2 }
51
+ end
38
52
 
39
53
  it "should detect text" do
40
- out = cli(tname2)
54
+ out = cli(@tname2)
41
55
  out.should include('sticazziantanieancoraunavoltacomesefossestato')
42
56
  end
43
57
  end
@@ -1,3 +1,4 @@
1
+ #coding: binary
1
2
  $:.unshift(File.expand_path("../lib", File.dirname(__FILE__)))
2
3
  require 'zsteg'
3
4
 
@@ -19,7 +20,7 @@ def sample fname
19
20
  end
20
21
 
21
22
  def cli *args
22
- @@cli_cache ||= {}
23
+ @cli_cache ||= {}
23
24
  args.map! do |arg|
24
25
  if arg.is_a?(String) && arg[' ']
25
26
  # split strings with spaces into arrays
@@ -29,7 +30,7 @@ def cli *args
29
30
  end
30
31
  end
31
32
  args.flatten!
32
- @@cli_cache[args.inspect] ||=
33
+ @cli_cache[args.inspect] ||=
33
34
  begin
34
35
  klass =
35
36
  if args.first.is_a?(Symbol)
@@ -52,6 +53,7 @@ def cli *args
52
53
  end
53
54
 
54
55
  RSpec.configure do |config|
56
+ config.expect_with(:rspec) { |c| c.syntax = :should }
55
57
  config.before :suite do
56
58
  Dir[File.join(SAMPLES_DIR, "**", "*.7z")].each do |fname|
57
59
  next if File.exist?(fname.sub(/\.7z$/,''))
@@ -2,16 +2,18 @@
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.0 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = "zsteg"
8
- s.version = "0.1.2"
8
+ s.name = "zsteg".freeze
9
+ s.version = "0.2.0"
9
10
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Andrey \"Zed\" Zaikin"]
12
- s.date = "2014-03-01"
13
- s.email = "zed.0xff@gmail.com"
14
- s.executables = ["zsteg", "zsteg-mask", "zsteg-reflow"]
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Andrey \"Zed\" Zaikin".freeze]
14
+ s.date = "2020-01-14"
15
+ s.email = "zed.0xff@gmail.com".freeze
16
+ s.executables = ["zsteg".freeze, "zsteg-mask".freeze, "zsteg-reflow".freeze]
15
17
  s.extra_rdoc_files = [
16
18
  "README.md",
17
19
  "README.md.tpl",
@@ -99,34 +101,33 @@ Gem::Specification.new do |s|
99
101
  "writers/zlib_append.rb",
100
102
  "zsteg.gemspec"
101
103
  ]
102
- s.homepage = "http://github.com/zed-0xff/zsteg"
103
- s.licenses = ["MIT"]
104
- s.require_paths = ["lib"]
105
- s.rubygems_version = "2.0.3"
106
- s.summary = "Detect stegano-hidden data in PNG & BMP files."
104
+ s.homepage = "http://github.com/zed-0xff/zsteg".freeze
105
+ s.licenses = ["MIT".freeze]
106
+ s.rubygems_version = "2.7.6".freeze
107
+ s.summary = "Detect stegano-hidden data in PNG & BMP files.".freeze
107
108
 
108
109
  if s.respond_to? :specification_version then
109
110
  s.specification_version = 4
110
111
 
111
112
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
112
- s.add_runtime_dependency(%q<zpng>, [">= 0.2.5"])
113
- s.add_runtime_dependency(%q<iostruct>, [">= 0"])
114
- s.add_development_dependency(%q<rspec>, [">= 2.8.0"])
115
- s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
116
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
113
+ s.add_runtime_dependency(%q<zpng>.freeze, [">= 0.3.0"])
114
+ s.add_runtime_dependency(%q<iostruct>.freeze, [">= 0"])
115
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.9.0"])
116
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 2.1.4"])
117
+ s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3.9"])
117
118
  else
118
- s.add_dependency(%q<zpng>, [">= 0.2.5"])
119
- s.add_dependency(%q<iostruct>, [">= 0"])
120
- s.add_dependency(%q<rspec>, [">= 2.8.0"])
121
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
122
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
119
+ s.add_dependency(%q<zpng>.freeze, [">= 0.3.0"])
120
+ s.add_dependency(%q<iostruct>.freeze, [">= 0"])
121
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.9.0"])
122
+ s.add_dependency(%q<bundler>.freeze, ["~> 2.1.4"])
123
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.3.9"])
123
124
  end
124
125
  else
125
- s.add_dependency(%q<zpng>, [">= 0.2.5"])
126
- s.add_dependency(%q<iostruct>, [">= 0"])
127
- s.add_dependency(%q<rspec>, [">= 2.8.0"])
128
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
129
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
126
+ s.add_dependency(%q<zpng>.freeze, [">= 0.3.0"])
127
+ s.add_dependency(%q<iostruct>.freeze, [">= 0"])
128
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.9.0"])
129
+ s.add_dependency(%q<bundler>.freeze, ["~> 2.1.4"])
130
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.3.9"])
130
131
  end
131
132
  end
132
133
 
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zsteg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
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: 2014-03-01 00:00:00.000000000 Z
11
+ date: 2020-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zpng
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.5
19
+ version: 0.3.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.2.5
26
+ version: 0.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: iostruct
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.8.0
47
+ version: 3.9.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: 2.8.0
54
+ version: 3.9.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: 1.0.0
61
+ version: 2.1.4
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: 1.0.0
68
+ version: 2.1.4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jeweler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.8.4
75
+ version: 2.3.9
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: 1.8.4
82
+ version: 2.3.9
83
83
  description:
84
84
  email: zed.0xff@gmail.com
85
85
  executables:
@@ -182,17 +182,17 @@ require_paths:
182
182
  - lib
183
183
  required_ruby_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  requirements:
190
- - - '>='
190
+ - - ">="
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.0.3
195
+ rubygems_version: 2.7.6
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Detect stegano-hidden data in PNG & BMP files.
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- base = File.expand_path('../lib', File.dirname(__FILE__))
4
- $:.unshift(base)
5
-
6
- require File.join(base, 'zsteg')
7
-
8
- ZSteg::CLI.run
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- base = File.expand_path('../lib', File.dirname(__FILE__))
4
- $:.unshift(base)
5
-
6
- require File.join(base, 'zsteg')
7
-
8
- ZSteg::CLI.run