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 +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/Stateful/VERSION.rb +1 -1
- data/lib/Stateful.rb +2 -0
- data/test/Stateful.rb +2 -0
- data/test/VERSION.rb +25 -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: 76836b904757327dca9d69e1938022b78f22b7eba4883d631662b90a7c73f092
|
|
4
|
+
data.tar.gz: 3eeffc4c8bab601de3a158a562f7f4cb9847b014af3a5099edb7e37c0edd0557
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
### +
|
data/lib/Stateful/VERSION.rb
CHANGED
data/lib/Stateful.rb
CHANGED
data/test/Stateful.rb
CHANGED
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.
|
|
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
|