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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 581350e2303d9070c849e3768aa3d6bb6fb043326d41fdf9d2203f89d054029b
4
- data.tar.gz: 32a0549736c2716df0361c51072df302a52757c51a7d1b4446beb76d421443d2
3
+ metadata.gz: 1465b74a2b0afa48c9b362c216ed5805cc071fb6d7eb3a747719c9fdd2ed0aef
4
+ data.tar.gz: d071e6da9037c65a6938e8e6ef892a0299bd0baf924a3ac3e397c59d6e9de5d1
5
5
  SHA512:
6
- metadata.gz: 17f1bd8bee97352f64560d545039653cb369cd52602254bc583aa008f1876298360a6b2bda370828399f5f0697a8ef8caee4190931fcd066690c3754b73dbc68
7
- data.tar.gz: 5aa838cc20cad5e7bf8c22ff3b93b6c69edfed285b59a2c5e8836a9c02c25bad2aa2bedf3d98c0580cfd2a2246b043ea5b0951a1879e21f44f5a65f01275c359
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
@@ -2,5 +2,5 @@
2
2
  # Moby::VERSION
3
3
 
4
4
  class Moby
5
- VERSION = '2.0.1'
5
+ VERSION = '2.0.2'
6
6
  end
@@ -4,20 +4,17 @@ require_relative '../test_helper'
4
4
 
5
5
  describe Moby do
6
6
  describe "VERSION" do
7
- it "has VERSION constant" do
8
- _(defined?(Moby::VERSION)).wont_be_nil
7
+ it "is a string" do
8
+ _(Moby::VERSION).must_be_instance_of String
9
9
  end
10
10
 
11
- it "version is a string" do
12
- _(Moby::VERSION).must_be_kind_of(String)
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 "version follows semver pattern" do
16
- _(Moby::VERSION).must_match(/\d+\.\d+\.\d+/)
17
- end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moby.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran