month.rb 0.11.3 → 0.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c141087e8890ae69123262e5c7563edb87e3ad47900fbe97dff39e95c37d6190
4
- data.tar.gz: ec09272600bbc455fa2dbf478acfb9f06d00e6043bd6c787709eb041e253d0af
3
+ metadata.gz: c004af1b4f720469a5273c6d496a1fa5476e0b67565e58afdbccc49209ae12f8
4
+ data.tar.gz: c5bb6d9b626f1782708d30e39d94dc9d1aefb3432a5ef0016816e90784f5cfc8
5
5
  SHA512:
6
- metadata.gz: c77ba2bb1b454ba59609f4ec7f88b0ac4b4d9f6c7baae2827785d0f089ed98194b97ddf045f47096899c00a2f64650891f48de49458b3c6cf99f7c679e87f84e
7
- data.tar.gz: 3326ea74d5ae774c300a9efbbb528882ab1ba77f994e9db3aee9c6a4e64a5380b59d438f374ebb94dad7e61630aa33dd8612258e84ac7b314d50be112140629c
6
+ metadata.gz: 749d57f2edc1f54274c0b349fbd57baa5942537bacf365850d810f1684cb51dad62ffd594ca2a3e20b7cdc5dd40e65757ecc51ab8a7afd30ae24d56922baa267
7
+ data.tar.gz: 143821255b2b195c56297085986c862b35f129642af9b4f5777b0fa16f02883bc58cc73ce6ac63a00f055e448ae36f0923ff95c4d1bb3ccd5694b9276c96eac1
data/CHANGELOG CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## 20260819
4
4
 
5
+ 0.11.4: Adopt the CHANGELOG-matching version test.
6
+
7
+ 1. + test/tc_VERSION.rb: that Month::VERSION is a String, that it is three numbers separated by dots, and that it matches the newest entry in the CHANGELOG. The last is the one with teeth — a release which moves the constant and forgets the CHANGELOG, or the reverse, fails here rather than shipping — and it was verified by pointing it at a stale constant, which it caught. This gem had exactly that fault before 0.10.2: the constant read 0.10.1 while the CHANGELOG's newest entry was 0.10.0. Modelled on moby's, which is where this pair was settled.
8
+ 2. ~ Month::VERSION: /0.11.3/0.11.4/
9
+
10
+
5
11
  0.11.3: + Rakefile, so that this gem is run the way every other one here is.
6
12
 
7
13
  1. + Rakefile: Rake::TestTask over FileList['test/ts_*.rb'], with default: :test, a :spec alias and a :version task, modelled on moby's. Every other gem here is run with rake and this one had none, the suite being run by naming test/ts_Month.rb by hand.
data/lib/Month/VERSION.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # Month::VERSION
3
3
 
4
4
  class Month
5
- VERSION = '0.11.3' unless defined?(VERSION)
5
+ VERSION = '0.11.4' unless defined?(VERSION)
6
6
  end
@@ -0,0 +1,18 @@
1
+ # test/tc_VERSION.rb
2
+
3
+ class TC_VERSION < Minitest::Test
4
+
5
+ def test_is_a_string
6
+ assert_instance_of String, Month::VERSION
7
+ end
8
+
9
+ def test_is_three_numbers_separated_by_dots
10
+ assert_match(/\A\d+\.\d+\.\d+\z/, Month::VERSION)
11
+ end
12
+
13
+ def test_matches_the_newest_entry_in_the_changelog
14
+ changelog = File.read(File.expand_path('../CHANGELOG', __dir__))
15
+ assert_equal Month::VERSION, changelog[/^(\d+\.\d+\.\d+):/, 1]
16
+ end
17
+
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: month.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -281,6 +281,7 @@ files:
281
281
  - test/tc_Month_to_number.rb
282
282
  - test/tc_Month_to_s.rb
283
283
  - test/tc_Month_to_short.rb
284
+ - test/tc_VERSION.rb
284
285
  - test/tc_gemspec.rb
285
286
  - test/ts_Month.rb
286
287
  homepage: https://github.com/thoran/month.rb