impuri 0.12.1 → 0.12.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 +6 -0
- data/lib/ImpURI/VERSION.rb +1 -1
- data/test/ImpURI/VERSION_test.rb +25 -0
- data/test/ImpURI.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5cc899b2f4bb6e635e782943a9d0d59a612865b6bbfd44926849080a0fd1f27
|
|
4
|
+
data.tar.gz: 5fb2d56fd7fd4c77b176353395c031712c86c4c490dc407329f9d06bff8ce9c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a2a76bb15ea534ea0d4ff62e23ed902bf4eef572c81e95ef06ee0dc239eef0544afc35bab23ee6080665e6a9fbb4beb39bce0d7c063cfc1701cea0d7cbffc5e
|
|
7
|
+
data.tar.gz: 7f7231c76af182b6bf4173956d6bc1547d99d5ac80afeabbb2d88cb065587e0c9c4f7a54422d41d734ec269b7528fd5ac5ca3fdff00f4c39d543396d3babe618
|
data/CHANGELOG
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## 20260819
|
|
4
4
|
|
|
5
|
+
0.12.2: Adopt the CHANGELOG-matching version test.
|
|
6
|
+
|
|
7
|
+
1. + test/ImpURI/VERSION_test.rb: that ImpURI::VERSION is a String, that it is three numbers separated by dots, and that it matches the newest entry in the CHANGELOG. The last is the one with teeth — a release which moves the constant and forgets the CHANGELOG, or the reverse, fails here rather than shipping — and it was verified by pointing it at a stale constant, which it caught. Modelled on moby's, which is where this pair was settled.
|
|
8
|
+
2. ~ test/ImpURI.rb: + require 'ImpURI/VERSION_test', the loader naming each test file by hand.
|
|
9
|
+
3. ~ ImpURI::VERSION: /0.12.1/0.12.2/
|
|
10
|
+
|
|
5
11
|
0.12.1: Tidy the gemspec, fill in its metadata, and guard both with a test.
|
|
6
12
|
|
|
7
13
|
1. ~ impuri.gemspec: + a header comment naming the file, as every other file here carries, and + trailing commas to the last element of spec.files and spec.development_dependencies, so that adding to either touches one line rather than two. ~ spec.files reordered, the globs first and the loose files alphabetically after them, as moby and measurand have it. The globs are what the gem is and the rest is paperwork, so adding paperwork now never disturbs them. This repo had followed namo and http, which pin the gemspec first and put the globs last.
|
data/lib/ImpURI/VERSION.rb
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# test/ImpURI/VERSION_test.rb
|
|
2
|
+
|
|
3
|
+
gem 'minitest'
|
|
4
|
+
|
|
5
|
+
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib')))
|
|
6
|
+
|
|
7
|
+
require 'impuri'
|
|
8
|
+
require 'minitest/autorun'
|
|
9
|
+
|
|
10
|
+
describe ImpURI do
|
|
11
|
+
describe "VERSION" do
|
|
12
|
+
it "is a string" do
|
|
13
|
+
_(ImpURI::VERSION).must_be_instance_of String
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
it "is three numbers separated by dots" do
|
|
17
|
+
_(ImpURI::VERSION).must_match(/\A\d+\.\d+\.\d+\z/)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it "matches the newest entry in the CHANGELOG" do
|
|
21
|
+
changelog = File.read(File.expand_path('../../CHANGELOG', __dir__))
|
|
22
|
+
_(changelog[/^(\d+\.\d+\.\d+):/, 1]).must_equal ImpURI::VERSION
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
data/test/ImpURI.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: impuri
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoran
|
|
@@ -57,6 +57,7 @@ files:
|
|
|
57
57
|
- lib/_meta/blankQ.rb
|
|
58
58
|
- lib/impuri.rb
|
|
59
59
|
- test/ImpURI.rb
|
|
60
|
+
- test/ImpURI/VERSION_test.rb
|
|
60
61
|
- test/ImpURI/class_methods.rb
|
|
61
62
|
- test/ImpURI/instance_methods.rb
|
|
62
63
|
- test/gemspec_test.rb
|