duration.rb 0.5.1 → 0.5.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 +4 -4
- data/CHANGELOG +9 -0
- data/duration.rb.gemspec +1 -1
- data/lib/Duration/VERSION.rb +1 -1
- data/test/gemspec_test.rb +27 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55bc0f38eb9c213a08b6ca49ea69908c2aeff8679637df50ab7309bc564ad457
|
|
4
|
+
data.tar.gz: 14032f8850e3499398761abcf3155c1390d22b89e71e1c2be302cfe6b9863f5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41cc6f366ad11f553d299616312fbf325bb7979dfd7f978302a3b0afc4697b2d92dd506b35481deb17718add06377b0037df7d022a1f817010da69396a939cf4
|
|
7
|
+
data.tar.gz: ef8d3edc58e19d3a2715901904af9be11600e52e1ec6b03cc5a58e920d69c6db1e4e26632169aa887c6d3ddbf99b9d6da928053f505faa4cf5c8890ad4a4229f
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 20260812
|
|
4
|
+
|
|
5
|
+
0.5.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 Duration::VERSION, and that the runtime and development dependencies are those expected.
|
|
8
|
+
2. ~ duration.rb.gemspec: /a description identical to the summary/a description of its own/. Found by the test above upon its first run, spec.validate having warned of it. The summary says what the gem is; the description now says how it goes about it.
|
|
9
|
+
3. ~ Duration::VERSION: /0.5.1/0.5.2/
|
|
10
|
+
|
|
11
|
+
|
|
3
12
|
## 20260812
|
|
4
13
|
|
|
5
14
|
0.5.1: + VERSION test.
|
data/duration.rb.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.version = Duration::VERSION
|
|
12
12
|
|
|
13
13
|
spec.summary = "Objects for handling durations of time."
|
|
14
|
-
spec.description = "
|
|
14
|
+
spec.description = "The unit is the class rather than a decoration upon a number of seconds, so a Minutes holds minutes and no unit is privileged as a base. Nothing is normalised at construction and conversions divide by exact ratios, so an Integer or a Rational stays exact the whole way through, with to_f left for the edge."
|
|
15
15
|
|
|
16
16
|
spec.author = 'thoran'
|
|
17
17
|
spec.email = 'code@thoran.com'
|
data/lib/Duration/VERSION.rb
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# test/gemspec_test.rb
|
|
2
|
+
|
|
3
|
+
require_relative './test_helper'
|
|
4
|
+
|
|
5
|
+
describe 'duration.rb.gemspec' do
|
|
6
|
+
let(:spec){Gem::Specification.load(File.expand_path('../duration.rb.gemspec', __dir__))}
|
|
7
|
+
|
|
8
|
+
it "is a valid specification" do
|
|
9
|
+
_(spec.validate).must_equal(true)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
it "does not pin a date" do
|
|
13
|
+
_(spec.date).must_equal(Gem::Specification.new.date)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
it "takes its version from Duration::VERSION" do
|
|
17
|
+
_(spec.version.to_s).must_equal(Duration::VERSION)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it "declares no runtime dependencies" do
|
|
21
|
+
_(spec.runtime_dependencies.map(&:name).sort).must_equal([])
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it "declares its development dependencies" do
|
|
25
|
+
_(spec.development_dependencies.map(&:name).sort).must_equal(%w{minitest minitest-spec-context rake})
|
|
26
|
+
end
|
|
27
|
+
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.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoran
|
|
@@ -51,7 +51,10 @@ dependencies:
|
|
|
51
51
|
- - ">="
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '0'
|
|
54
|
-
description:
|
|
54
|
+
description: The unit is the class rather than a decoration upon a number of seconds,
|
|
55
|
+
so a Minutes holds minutes and no unit is privileged as a base. Nothing is normalised
|
|
56
|
+
at construction and conversions divide by exact ratios, so an Integer or a Rational
|
|
57
|
+
stays exact the whole way through, with to_f left for the edge.
|
|
55
58
|
email: code@thoran.com
|
|
56
59
|
executables: []
|
|
57
60
|
extensions: []
|
|
@@ -89,6 +92,7 @@ files:
|
|
|
89
92
|
- test/Duration/Seconds_test.rb
|
|
90
93
|
- test/Duration/VERSION_test.rb
|
|
91
94
|
- test/Duration/Weeks_test.rb
|
|
95
|
+
- test/gemspec_test.rb
|
|
92
96
|
- test/test_helper.rb
|
|
93
97
|
homepage: http://github.com/thoran/duration.rb
|
|
94
98
|
licenses:
|