moby.rb 2.0.0 → 2.0.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG +10 -0
- data/lib/Moby/VERSION.rb +1 -1
- data/moby.rb.gemspec +21 -9
- data/test/Moby/VERSION_test.rb +2 -2
- data/test/gemspec_test.rb +27 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 581350e2303d9070c849e3768aa3d6bb6fb043326d41fdf9d2203f89d054029b
|
|
4
|
+
data.tar.gz: 32a0549736c2716df0361c51072df302a52757c51a7d1b4446beb76d421443d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17f1bd8bee97352f64560d545039653cb369cd52602254bc583aa008f1876298360a6b2bda370828399f5f0697a8ef8caee4190931fcd066690c3754b73dbc68
|
|
7
|
+
data.tar.gz: 5aa838cc20cad5e7bf8c22ff3b93b6c69edfed285b59a2c5e8836a9c02c25bad2aa2bedf3d98c0580cfd2a2246b043ea5b0951a1879e21f44f5a65f01275c359
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 20260812
|
|
4
|
+
|
|
5
|
+
2.0.1: Tidy the gemspec and guard it with a test.
|
|
6
|
+
|
|
7
|
+
1. ~ moby.rb.gemspec: declare the dependencies as data — spec.dependencies = [...] and spec.development_dependencies = [...], via setters added in a local reopening of Gem::Specification — in place of the add_dependency/add_development_dependency calls; - spec.date, which was a stale literal (2.0.0 shipped the gem with it), letting RubyGems' default stand (rubygems.org uses the push time regardless).
|
|
8
|
+
2. + test/gemspec_test.rb: loads moby.rb.gemspec and checks that it validates, pins no date (spec.date left at RubyGems' default), takes its version from Moby::VERSION, and declares the expected runtime and development dependencies — a guard for the declarative gemspec above, whose custom setters are where a dependency could silently go missing, and against re-pinning the stale date that 2.0.0 shipped with.
|
|
9
|
+
3. ~ lib/Moby/VERSION.rb: VERSION: /2.0.0/2.0.1/
|
|
10
|
+
4. ~ test/Moby/VERSION_test.rb: /2.0.0/2.0.1/
|
|
11
|
+
|
|
12
|
+
|
|
3
13
|
## 20260811
|
|
4
14
|
|
|
5
15
|
2.0.0: Move the Mechanize engine into a pluggable backend and add a Selenium backend alongside it.
|
data/lib/Moby/VERSION.rb
CHANGED
data/moby.rb.gemspec
CHANGED
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative './lib/Moby/VERSION'
|
|
4
4
|
|
|
5
|
+
class Gem::Specification
|
|
6
|
+
def dependencies=(gems)
|
|
7
|
+
gems.each{|gem| add_dependency(*gem)}
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def development_dependencies=(gems)
|
|
11
|
+
gems.each{|gem| add_development_dependency(*gem)}
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
5
15
|
Gem::Specification.new do |spec|
|
|
6
16
|
spec.name = 'moby.rb'
|
|
7
|
-
|
|
8
17
|
spec.version = Moby::VERSION
|
|
9
|
-
spec.date = '2026-01-08'
|
|
10
18
|
|
|
11
19
|
spec.summary = "Moby is a credentials poisoning tool which floods phishing forms with fake credentials."
|
|
12
20
|
spec.description = "Sometimes when they go fishing, they get a whale and it sinks their boat. Moby is a counter-phishing tool that floods phishing websites with fake login credentials, making harvested data useless."
|
|
@@ -18,14 +26,18 @@ Gem::Specification.new do |spec|
|
|
|
18
26
|
|
|
19
27
|
spec.required_ruby_version = ">= 3.3.0"
|
|
20
28
|
|
|
21
|
-
spec.
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
spec.dependencies = [
|
|
30
|
+
['mechanize', '~> 2'],
|
|
31
|
+
['selenium-webdriver', '~> 4'],
|
|
32
|
+
['switches.rb', '~> 0'],
|
|
33
|
+
]
|
|
24
34
|
|
|
25
|
-
spec.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
spec.development_dependencies = [
|
|
36
|
+
'minitest',
|
|
37
|
+
'minitest-spec-context',
|
|
38
|
+
'rake',
|
|
39
|
+
'webmock'
|
|
40
|
+
]
|
|
29
41
|
|
|
30
42
|
spec.files = Dir[
|
|
31
43
|
'bin/*',
|
data/test/Moby/VERSION_test.rb
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# test/gemspec_test.rb
|
|
2
|
+
|
|
3
|
+
require_relative './test_helper'
|
|
4
|
+
|
|
5
|
+
describe 'moby.rb.gemspec' do
|
|
6
|
+
let(:spec){Gem::Specification.load(File.expand_path('../moby.rb.gemspec', __dir__))}
|
|
7
|
+
|
|
8
|
+
it "is a valid specification" do
|
|
9
|
+
_(spec.validate).must_equal(true)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
it "does not pin a date" do
|
|
13
|
+
_(spec.date).must_equal(Gem::Specification.new.date)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
it "takes its version from Moby::VERSION" do
|
|
17
|
+
_(spec.version.to_s).must_equal(Moby::VERSION)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it "declares its runtime dependencies" do
|
|
21
|
+
_(spec.runtime_dependencies.map(&:name).sort).must_equal(%w{mechanize selenium-webdriver switches.rb})
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it "declares its development dependencies" do
|
|
25
|
+
_(spec.development_dependencies.map(&:name).sort).must_equal(%w{minitest minitest-spec-context rake webmock})
|
|
26
|
+
end
|
|
27
|
+
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moby.rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoran
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: mechanize
|
|
@@ -140,6 +140,7 @@ files:
|
|
|
140
140
|
- test/Moby/Configuration_test.rb
|
|
141
141
|
- test/Moby/RandomInputGenerator_test.rb
|
|
142
142
|
- test/Moby/VERSION_test.rb
|
|
143
|
+
- test/gemspec_test.rb
|
|
143
144
|
- test/moby_test.rb
|
|
144
145
|
- test/test_helper.rb
|
|
145
146
|
homepage: https://github.com/thoran/moby
|