moby.rb 2.0.1 → 2.0.2
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 +5 -0
- data/lib/Moby/VERSION.rb +1 -1
- data/test/Moby/VERSION_test.rb +7 -10
- 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: 1465b74a2b0afa48c9b362c216ed5805cc071fb6d7eb3a747719c9fdd2ed0aef
|
|
4
|
+
data.tar.gz: d071e6da9037c65a6938e8e6ef892a0299bd0baf924a3ac3e397c59d6e9de5d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c91b4244e49d8307c95f834606a5a986c21de651643d3de4f0697620ae131f77f6a5150ef30e0a0cd4aae6310b0fdcd4dd72108481a121fa9b68fa3cc2480397
|
|
7
|
+
data.tar.gz: 2091c48b06c880523eaa00ae3be858b3b13a87316c5af506e25adce3b6b9ff6867918fdbe88b5744c7c1f4a70510e648f7a634ce2a13d0371042585e576d59ac
|
data/CHANGELOG
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## 20260812
|
|
4
4
|
|
|
5
|
+
2.0.2: Adopt the CHANGELOG-matching version test.
|
|
6
|
+
|
|
7
|
+
1. ~ test/Moby/VERSION_test.rb: replace the hardcoded "version is X.Y.Z" assertion and the loose semver check with the standard form — VERSION is a String, an anchored X.Y.Z, and matches the newest CHANGELOG entry. It no longer needs a per-release edit and it guards against VERSION.rb ↔ CHANGELOG drift.
|
|
8
|
+
2. ~ lib/Moby/VERSION.rb: VERSION: /2.0.1/2.0.2/
|
|
9
|
+
|
|
5
10
|
2.0.1: Tidy the gemspec and guard it with a test.
|
|
6
11
|
|
|
7
12
|
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).
|
data/lib/Moby/VERSION.rb
CHANGED
data/test/Moby/VERSION_test.rb
CHANGED
|
@@ -4,20 +4,17 @@ require_relative '../test_helper'
|
|
|
4
4
|
|
|
5
5
|
describe Moby do
|
|
6
6
|
describe "VERSION" do
|
|
7
|
-
it "
|
|
8
|
-
_(
|
|
7
|
+
it "is a string" do
|
|
8
|
+
_(Moby::VERSION).must_be_instance_of String
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
it "
|
|
12
|
-
_(Moby::VERSION).
|
|
11
|
+
it "is three numbers separated by dots" do
|
|
12
|
+
_(Moby::VERSION).must_match(/\A\d+\.\d+\.\d+\z/)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
it "
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
it "version is 2.0.1" do
|
|
20
|
-
_(Moby::VERSION).must_equal('2.0.1')
|
|
15
|
+
it "matches the newest entry in the CHANGELOG" do
|
|
16
|
+
changelog = File.read(File.expand_path('../../CHANGELOG', __dir__))
|
|
17
|
+
_(changelog[/^(\d+\.\d+\.\d+):/, 1]).must_equal Moby::VERSION
|
|
21
18
|
end
|
|
22
19
|
end
|
|
23
20
|
end
|