duration.rb 0.5.0 → 0.5.1

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: 9e8c196994e5358c6875d3ee17471f379cf8cffe2fa9924856729a6fc64c88d0
4
- data.tar.gz: de2a825ddec433cb81b9797015833a61eac8b5548166b592686623f86cc9101a
3
+ metadata.gz: b6ba0b1a782117f5c6f5b7798620456110e617f5cf2f59ccedd45845cab01674
4
+ data.tar.gz: aa225e9b5369e6f334fc0a0962e57cb64c5a6ead3008d91fcbc74448c91fba2e
5
5
  SHA512:
6
- metadata.gz: e47937b8086f02fd9ab15d4444bc9b9f38c7d7b01e8948c99c500adfaef01697ea17d8898c93cc727b8961610f904810e3aaeb9da00aa762fbee4a1ffd25ed57
7
- data.tar.gz: 17f71a43aa5680b73bc5ca532e2c172964cf988d74668b2bfa253105c4b46d31a34810e9ee31ff37a0e85d36a91df42fd39194394c7429186ddff34afb1274b1
6
+ metadata.gz: '045846aba621660eabc73c4115457a15e5f3838a0ba8fcced57fa5381c20ce68cc73ea64b51c2acf1d5bfbe7efc3c36c4854c41f019e9d156eb2687826ad4a4a'
7
+ data.tar.gz: d0f3455bd9631c7f423151f3aa14fc1a0b4f9bca264a4fe83ad56e535404e4d48b246af457814d5077f429ccfcc064b3f376d9bf649995fe1abff71301d9a349
data/CHANGELOG CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 20260812
4
+
5
+ 0.5.1: + VERSION test.
6
+
7
+ 1. + test/Duration/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 ensure that one moves with the other.
8
+ 2. + .gitignore
9
+ 3. ~ README.md: /Months is slated for removal in 0.5.0/Months is therefore slated for removal/, 0.5.0 having been and gone with Months still in place.
10
+ 4. ~ Duration::VERSION: /0.5.0/0.5.1/
11
+
12
+
3
13
  ## 20260811
4
14
 
5
15
  0.5.0: + Multiplication and division, and with them the dimensionless ratio.
data/README.md CHANGED
@@ -138,8 +138,8 @@ the calendar. Its conversions use the Gregorian mean month (2629746 seconds),
138
138
  so they are honest only as a statistical average, never as calendar-correct
139
139
  arithmetic. Its `ago`/`hence` inherit this — they displace by the mean month,
140
140
  so they are approximate rather than calendar-correct; reach for a
141
- calendar-anchored type such as `month.rb` when that matters. `Months` is slated
142
- for removal in 0.5.0.
141
+ calendar-anchored type such as `month.rb` when that matters. `Months` is
142
+ therefore slated for removal.
143
143
 
144
144
  ## Contributing
145
145
 
@@ -1,3 +1,3 @@
1
1
  module Duration
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -0,0 +1,22 @@
1
+ # test/duration/version_test.rb
2
+
3
+ require_relative '../test_helper'
4
+
5
+ # Note that VERSION.rb is the one file duration.rb requires rather than autoloaded, because an autoloaded file goes unread until its constant is named and nothing else here names this one.
6
+
7
+ describe Duration do
8
+ describe "VERSION" do
9
+ it "is a string" do
10
+ _(Duration::VERSION).must_be_instance_of String
11
+ end
12
+
13
+ it "is three numbers separated by dots" do
14
+ _(Duration::VERSION).must_match(/\A\d+\.\d+\.\d+\z/)
15
+ end
16
+
17
+ it "matches the newest entry in the CHANGELOG" do
18
+ changelog = File.read(File.expand_path('../../CHANGELOG', __dir__))
19
+ _(changelog[/^(\d+\.\d+\.\d+):/, 1]).must_equal Duration::VERSION
20
+ end
21
+ end
22
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duration.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -87,6 +87,7 @@ files:
87
87
  - test/Duration/Nanoseconds_test.rb
88
88
  - test/Duration/Numeric_test.rb
89
89
  - test/Duration/Seconds_test.rb
90
+ - test/Duration/VERSION_test.rb
90
91
  - test/Duration/Weeks_test.rb
91
92
  - test/test_helper.rb
92
93
  homepage: http://github.com/thoran/duration.rb