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 +4 -4
- data/CHANGELOG +10 -0
- data/README.md +2 -2
- data/lib/Duration/VERSION.rb +1 -1
- data/test/Duration/VERSION_test.rb +22 -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: b6ba0b1a782117f5c6f5b7798620456110e617f5cf2f59ccedd45845cab01674
|
|
4
|
+
data.tar.gz: aa225e9b5369e6f334fc0a0962e57cb64c5a6ead3008d91fcbc74448c91fba2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
142
|
-
for removal
|
|
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
|
|
data/lib/Duration/VERSION.rb
CHANGED
|
@@ -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.
|
|
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
|