monotonic.rb 0.7.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 577e4ce149e58981c889c52eaed6256c4c11a5bf2d1e6144513d3cd8c0d72705
4
- data.tar.gz: 60b83880903cbe10e28ab23462953ecc6b43296c1c39ae08e5c8cc6442697794
3
+ metadata.gz: cf995a6ab7105dc05b1b11b660fc4a28b34f07d784c5c13af2b83e46c1d5b949
4
+ data.tar.gz: 871dc0fc14b0771d4ddc00d7717787df34ace4d98b248e8613ba24918c40e641
5
5
  SHA512:
6
- metadata.gz: '084908b43a5095d6ff4a3928a6161abb5800ce113714036afdd3bbc89c361886292c603d2f44bd33014d4fa0c5f8e25779c183933e1c4336c2767991ec21b194'
7
- data.tar.gz: 252ba0130e324f322c37cb4df402a307ff534580ff422fc8b7ddbda494b3e8b28d0c681417dde96989d6d8f1d4dc8f2eb6bd5c9847b167b3176295fc88f27561
6
+ metadata.gz: 809325b41986a73bea427d0685a4b63f42a6a89a090716edda20e400c5f9a0b91ec8ba28e1844ef63470cdef8368b913f3479488e449076abd2f63321c9aaa42
7
+ data.tar.gz: 744d49e5aaa3028ac0fbf9180e146dd73ceb5c2ea6da50fcb33e72ef5659586aacff6786be1526244ab195f6e144a9b8a75b6fe488ed7a1cbd398e273eaa9ae2
data/CHANGELOG CHANGED
@@ -1,5 +1,21 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 20260812
4
+
5
+ 0.7.2: + gemspec test.
6
+
7
+ 1. + test/gemspec_test.rb: Ensure that the specification validates, that no date is pinned, that the version comes from Monotonic::VERSION, and that the runtime and development dependencies are those expected.
8
+ 2. ~ Monotonic::VERSION: /0.7.1/0.7.2/
9
+
10
+
11
+ ## 20260812
12
+
13
+ 0.7.1: + VERSION test.
14
+
15
+ 1. + test/Monotonic/VERSION_test.rb: Ensure that VERSION is a string, that it has three dotted numbers, and that it matches the newest entry in the CHANGELOG. A release edits both files and this now ensures that one moves with the other. Modelled upon moby.rb's.
16
+ 2. ~ Monotonic::VERSION: /0.7.0/0.7.1/
17
+
18
+
3
19
  ## 20260811
4
20
 
5
21
  0.7.0: Read the clock exactly, and read a clock worth reading exactly.
@@ -2,5 +2,5 @@
2
2
  # Monotonic::VERSION
3
3
 
4
4
  module Monotonic
5
- VERSION = '0.7.0'
5
+ VERSION = '0.7.2'
6
6
  end
@@ -0,0 +1,21 @@
1
+ require_relative '../../lib/monotonic.rb'
2
+
3
+ require 'minitest/autorun'
4
+ require 'minitest-spec-context'
5
+
6
+ describe Monotonic do
7
+ describe "VERSION" do
8
+ it "is a string" do
9
+ _(Monotonic::VERSION).must_be_instance_of String
10
+ end
11
+
12
+ it "is three numbers separated by dots" do
13
+ _(Monotonic::VERSION).must_match(/\A\d+\.\d+\.\d+\z/)
14
+ end
15
+
16
+ it "matches the newest entry in the CHANGELOG" do
17
+ changelog = File.read(File.expand_path('../../CHANGELOG', __dir__))
18
+ _(changelog[/^(\d+\.\d+\.\d+):/, 1]).must_equal Monotonic::VERSION
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,28 @@
1
+ require_relative '../lib/monotonic.rb'
2
+
3
+ require 'minitest/autorun'
4
+ require 'minitest-spec-context'
5
+
6
+ describe 'monotonic.rb.gemspec' do
7
+ let(:spec){Gem::Specification.load(File.expand_path('../monotonic.rb.gemspec', __dir__))}
8
+
9
+ it "is a valid specification" do
10
+ _(spec.validate).must_equal(true)
11
+ end
12
+
13
+ it "does not pin a date" do
14
+ _(spec.date).must_equal(Gem::Specification.new.date)
15
+ end
16
+
17
+ it "takes its version from Monotonic::VERSION" do
18
+ _(spec.version.to_s).must_equal(Monotonic::VERSION)
19
+ end
20
+
21
+ it "declares its runtime dependencies" do
22
+ _(spec.runtime_dependencies.map(&:name).sort).must_equal(%w{sys-uptime})
23
+ end
24
+
25
+ it "declares its development dependencies" do
26
+ _(spec.development_dependencies.map(&:name).sort).must_equal(%w{minitest minitest-spec-context rake})
27
+ end
28
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monotonic.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -82,6 +82,8 @@ files:
82
82
  - monotonic.rb.gemspec
83
83
  - test/Monotonic/Time_test.rb
84
84
  - test/Monotonic/Timer_test.rb
85
+ - test/Monotonic/VERSION_test.rb
86
+ - test/gemspec_test.rb
85
87
  homepage: https://github.com/thoran/monotonic.rb
86
88
  licenses:
87
89
  - MIT