eventful.rb 2.1.2 → 2.1.3
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.md +10 -0
- data/lib/Eventful/VERSION.rb +1 -1
- data/test/Eventful.rb +1 -0
- data/test/VERSION.rb +29 -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: d271f90e99c2261b1b21ce4da28171d91bda5066e889e585f0109c1742e718c6
|
|
4
|
+
data.tar.gz: bd84c6412dca2a2a2972a42b4b9f9745f860c0d15cc87f7b0d02f0fcd2813392
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 684ebee0503e8111f0b41f68136281f40eea3b8521dc1d945c74cd7f616e2d0c290835420c0ad7434b7cb7d4b14a0eb281d85d355a9f132d93ef891d70c7c49f
|
|
7
|
+
data.tar.gz: 596b9776d46717e035dadbf2738c9c4b424a3efb9b8a09c10a03ce5951968c256e2dc4622f448d38ed35efb619061a98027bc6331cb2dac0bc1d062f5623dd1d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# eventful/CHANGELOG.md
|
|
2
2
|
|
|
3
|
+
## 2.1.3 (20260911): + test/VERSION.rb, so the version the library serves is asserted rather than assumed.
|
|
4
|
+
----------------------------------------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
### +
|
|
7
|
+
1. test/VERSION.rb: that Eventful::VERSION is a string, that it is three numbers separated by dots, and that it matches the newest entry in the changelog. Modelled on moby's, which is where the convention comes from. The test loads the library rather than VERSION.rb, which is the whole of its value: run against v2.1.2 it fails with "uninitialized constant Eventful::VERSION".
|
|
8
|
+
|
|
9
|
+
### ~
|
|
10
|
+
1. test/Eventful.rb: + `require_relative 'VERSION'`, the runner naming each test file rather than globbing for them.
|
|
11
|
+
2. Eventful::VERSION: /2.1.2/2.1.3/
|
|
12
|
+
|
|
3
13
|
## 2.1.2 (20260910): ~ lib/Eventful.rb: + require of Eventful/VERSION, so a consumer can ask the library its version.
|
|
4
14
|
-----------------------------------------------------------------------------------------------------------------------
|
|
5
15
|
|
data/lib/Eventful/VERSION.rb
CHANGED
data/test/Eventful.rb
CHANGED
data/test/VERSION.rb
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# test/VERSION.rb
|
|
2
|
+
|
|
3
|
+
gem 'minitest'
|
|
4
|
+
gem 'minitest-spec-context'
|
|
5
|
+
|
|
6
|
+
require 'minitest/autorun'
|
|
7
|
+
require 'minitest-spec-context'
|
|
8
|
+
|
|
9
|
+
lib_dir = File.expand_path(File.join(__FILE__, '..', '..', 'lib'))
|
|
10
|
+
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
|
|
11
|
+
|
|
12
|
+
require 'Eventful'
|
|
13
|
+
|
|
14
|
+
describe Eventful do
|
|
15
|
+
describe "VERSION" do
|
|
16
|
+
it "is a string" do
|
|
17
|
+
_(Eventful::VERSION).must_be_instance_of String
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it "is three numbers separated by dots" do
|
|
21
|
+
_(Eventful::VERSION).must_match(/\A\d+\.\d+\.\d+\z/)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it "matches the newest entry in the CHANGELOG" do
|
|
25
|
+
changelog = File.read(File.expand_path('../CHANGELOG.md', __dir__))
|
|
26
|
+
_(changelog[/^## (\d+\.\d+\.\d+) \(/, 1]).must_equal Eventful::VERSION
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eventful.rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoran
|
|
@@ -104,6 +104,7 @@ files:
|
|
|
104
104
|
- test/ActiveRecordWhenNoFinalState.rb
|
|
105
105
|
- test/Eventful.rb
|
|
106
106
|
- test/Poro.rb
|
|
107
|
+
- test/VERSION.rb
|
|
107
108
|
homepage: http://github.com/thoran/eventful
|
|
108
109
|
licenses:
|
|
109
110
|
- MIT
|