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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b570065ce6deae8ebafaa50d8abb0d1b94796a7f578a6f349ce6f58f8511ebb
4
- data.tar.gz: a9586974108f22ea35ee47bb917a21a407b8ee5201b143e4797347e12061bb9d
3
+ metadata.gz: d271f90e99c2261b1b21ce4da28171d91bda5066e889e585f0109c1742e718c6
4
+ data.tar.gz: bd84c6412dca2a2a2972a42b4b9f9745f860c0d15cc87f7b0d02f0fcd2813392
5
5
  SHA512:
6
- metadata.gz: 88f2bb73d3a3a68f4cb69528ceb834705379571d4d08c389e133a631e6b1018e18e8e3defa0d5a3b9372f982d14ef7e779a1b299b8879d48143a3b0000588e52
7
- data.tar.gz: 6ead4eae95793cc73cfb0149bb7a306e8ea7a0478483c207845ff558c4e777a9e483857f40387abaf821c57e38f159e95dabdc2272c67970338c050ccfed3caa
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
 
@@ -2,5 +2,5 @@
2
2
  # Eventful::VERSION
3
3
 
4
4
  module Eventful
5
- VERSION = '2.1.2'
5
+ VERSION = '2.1.3'
6
6
  end
data/test/Eventful.rb CHANGED
@@ -5,3 +5,4 @@ active_record_test_file = ['ActiveRecord', 'ActiveRecordWhenNoFinalState'][rand(
5
5
  require_relative active_record_test_file
6
6
 
7
7
  require_relative 'Poro'
8
+ require_relative 'VERSION'
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.2
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