stateful.rb 2.3.3 → 2.3.4

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: 36b830fd690c778367717cc317ffe39d53801ee9dc93e0fea1d42ba60ad099f1
4
- data.tar.gz: 4e9ea424b04703d2202afdcb9b73df9fb7b17514176e64202f54d3ae98092535
3
+ metadata.gz: 76836b904757327dca9d69e1938022b78f22b7eba4883d631662b90a7c73f092
4
+ data.tar.gz: 3eeffc4c8bab601de3a158a562f7f4cb9847b014af3a5099edb7e37c0edd0557
5
5
  SHA512:
6
- metadata.gz: a24a02097f130a4993bab84684fbfd060c4a95c7a33cf1090bd8d02cf1468b11daba5fa99190670a4a42273b8881574dac0c52519198a40affbe903115c174f4
7
- data.tar.gz: 5b21b16363b87c18ba78034102072e84cd7f5696cfbd1810bf766732cc798641434800275768d4c241940347c3ce7db39e169997cfcf6df1f411123359951bb0
6
+ metadata.gz: f667aceca2eb2a708cd7b6a41e7e246a14d5dea2944ccf28c75762492046f93fea0d3f979d40b6fca91584e8bdb11bab39b123858ca393ccb08e2c0ffa02c252
7
+ data.tar.gz: f268873ad0d04c7437f1ad55158acf6ad8b3d7c0e2a1cd4dd5ae2d2ae450600041039d31e9fda1c33346e500bfbe5a34c364807af6ffa665fe4ce64b34c68084
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # stateful/CHANGELOG.md
2
2
 
3
+ ## 2.3.4 (20260910): ~ lib/Stateful.rb: + require_relative File.join('Stateful', 'VERSION'); + test/VERSION.rb
4
+ ----------------------------------------------------------------------------------------------------
5
+
6
+ ### +
7
+ 1. test/VERSION.rb: that Stateful::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.3.3 it fails with "uninitialized constant Stateful::VERSION".
8
+
9
+ ### ~
10
+ 1. lib/Stateful.rb: + `require_relative File.join('Stateful', 'VERSION')`. The file has been present and unreached, so `require 'stateful.rb'` left Stateful::VERSION undefined and the gemspec was the only thing loading it.
11
+ 2. test/Stateful.rb: + `require_relative 'VERSION'`, the runner globbing only the three persistence directories.
12
+ 3. Stateful::VERSION: /2.3.3/2.3.4/
13
+
3
14
  ## 2.3.3 (20260822): + LICENSE, and correct the README.
4
15
  -----------------------------------------------------------------------------------------------------------------------
5
16
  ### +
@@ -1,3 +1,3 @@
1
1
  module Stateful
2
- VERSION = '2.3.3'
2
+ VERSION = '2.3.4'
3
3
  end
data/lib/Stateful.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  # Stateful.rb
2
2
  # Stateful
3
3
 
4
+ require_relative File.join('Stateful', 'VERSION')
5
+
4
6
  module Stateful
5
7
 
6
8
  class << self
data/test/Stateful.rb CHANGED
@@ -10,3 +10,5 @@ poro_specs.each{|spec| require spec}
10
10
 
11
11
  sequel_specs = Dir[File.join(test_dir, 'Sequel', '**', '*.rb')]
12
12
  sequel_specs.each{|spec| require spec}
13
+
14
+ require_relative 'VERSION'
data/test/VERSION.rb ADDED
@@ -0,0 +1,25 @@
1
+ # test/VERSION.rb
2
+
3
+ gem 'minitest'
4
+ gem 'minitest-spec-context'
5
+
6
+ require 'minitest/autorun'
7
+ require 'minitest-spec-context'
8
+ require_relative '../lib/Stateful'
9
+
10
+ describe Stateful do
11
+ describe "VERSION" do
12
+ it "is a string" do
13
+ _(Stateful::VERSION).must_be_instance_of String
14
+ end
15
+
16
+ it "is three numbers separated by dots" do
17
+ _(Stateful::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.md', __dir__))
22
+ _(changelog[/^## (\d+\.\d+\.\d+) \(/, 1]).must_equal Stateful::VERSION
23
+ end
24
+ end
25
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stateful.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -148,6 +148,7 @@ files:
148
148
  - test/Sequel/WithPersistenceSpecificExtendAndStatefulBlock.rb
149
149
  - test/Sequel/test_helper.rb
150
150
  - test/Stateful.rb
151
+ - test/VERSION.rb
151
152
  homepage: http://github.com/thoran/stateful
152
153
  licenses:
153
154
  - MIT