month.rb 0.11.1 → 0.11.3

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: 143cb13b6147f69bcc9547c1e2c322d5a5834b341e7151fd0462279434996bda
4
- data.tar.gz: a6f735def7556a0944c29badda59dee8aef2941a28c1cc00d499c581ab745d01
3
+ metadata.gz: c141087e8890ae69123262e5c7563edb87e3ad47900fbe97dff39e95c37d6190
4
+ data.tar.gz: ec09272600bbc455fa2dbf478acfb9f06d00e6043bd6c787709eb041e253d0af
5
5
  SHA512:
6
- metadata.gz: 6967cc8e70165761e05b1e2c1cff0f7bf221827c4efe24d649bd156b524a2b10c141420abea46a0930f30a1b0a6316fd68574ca65baf5bc55dd2bfed8402cfa4
7
- data.tar.gz: d7feb1ad56abe79c3325e125b160c43e86b204afe4c0e2b43593168071439ae87b298fd8cab910d8f1063bd7daa54f6062e42f62ae756f63bbe969614c5f8034
6
+ metadata.gz: c77ba2bb1b454ba59609f4ec7f88b0ac4b4d9f6c7baae2827785d0f089ed98194b97ddf045f47096899c00a2f64650891f48de49458b3c6cf99f7c679e87f84e
7
+ data.tar.gz: 3326ea74d5ae774c300a9efbbb528882ab1ba77f994e9db3aee9c6a4e64a5380b59d438f374ebb94dad7e61630aa33dd8612258e84ac7b314d50be112140629c
data/CHANGELOG CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  ## 20260819
4
4
 
5
+ 0.11.3: + Rakefile, so that this gem is run the way every other one here is.
6
+
7
+ 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.
8
+ 2. The test files are left as they are. test/ts_Month.rb globs test/*.rb and loads each, so it already does what a FileList would, and it does so by pattern rather than by naming files — unlike impuri's loader, which had to be edited for every test added. Renaming twenty-nine tc_ files to *_test.rb would buy consistency with the other gems and nothing else, and the compat/ suites use the same ts_/tc_ convention. Piecemeal, later, if at all.
9
+ 3. ~ month.rb.gemspec: + 'Rakefile' to spec.files and + rake to the development dependencies, both following from the above.
10
+ 4. ~ test/tc_gemspec.rb: + Rakefile to the loose files, and + rake to the expected development dependencies, both assertions being exact.
11
+ 5. ~ Month::VERSION: /0.11.2/0.11.3/
12
+
13
+
14
+ 0.11.2: + LICENSE, which the gemspec had claimed since 0.10.0 without one being present.
15
+
16
+ 1. + LICENSE: the MIT text, copyright 2006-2026. spec.license = 'MIT' has been declared since the gemspec was written, so rubygems has shown a licence for this gem that the repository did not carry and the built gem did not contain. Anyone taking the gem at its word had nothing to read. impuri was in the same state and fixed it at its 0.12.4.
17
+ 2. ~ month.rb.gemspec: + 'LICENSE' to spec.files, without which the file would sit in the repository and still not ship.
18
+ 3. ~ test/tc_gemspec.rb: + LICENSE to the loose files the gem is expected to carry. That assertion is exact, so the file and the manifest cannot part company without the suite saying so.
19
+ 4. ~ Month::VERSION: /0.11.1/0.11.2/
20
+
21
+
5
22
  0.11.1: Tidy the gemspec, ship what it should, fill in its metadata, and guard it with a test.
6
23
 
7
24
  1. - month.rb.gemspec: spec.date, pinned to '2024-03-06'. A build sets the date; pinning it means every gem built since has claimed to be from that day. impuri removed the same at its 0.9.0.
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2006-2026 thoran
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,22 @@
1
+ # Rakefile
2
+
3
+ require 'rake/testtask'
4
+
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << 'lib'
7
+ t.libs << 'test'
8
+ t.test_files = FileList['test/ts_*.rb']
9
+ t.verbose = true
10
+ t.warning = false
11
+ end
12
+
13
+ task default: :test
14
+
15
+ desc "Run tests"
16
+ task :spec => :test
17
+
18
+ desc "Show version"
19
+ task :version do
20
+ require_relative './lib/Month/VERSION'
21
+ puts "month.rb #{Month::VERSION}"
22
+ end
data/lib/Month/VERSION.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # Month::VERSION
3
3
 
4
4
  class Month
5
- VERSION = '0.11.1' unless defined?(VERSION)
5
+ VERSION = '0.11.3' unless defined?(VERSION)
6
6
  end
data/month.rb.gemspec CHANGED
@@ -34,10 +34,13 @@ Gem::Specification.new do |spec|
34
34
  Dir['test/**/*.rb'],
35
35
  'CHANGELOG',
36
36
  'Gemfile',
37
+ 'LICENSE',
37
38
  'month.rb.gemspec',
39
+ 'Rakefile',
38
40
  'README.md',
39
41
  'TODO.txt',
40
42
  ].flatten
41
43
 
42
44
  spec.add_development_dependency('minitest')
45
+ spec.add_development_dependency('rake')
43
46
  end
data/test/tc_gemspec.rb CHANGED
@@ -28,7 +28,7 @@ class TC_gemspec < Minitest::Test
28
28
  end
29
29
 
30
30
  def test_ships_the_loose_files_and_not_only_lib
31
- assert_equal %w{CHANGELOG Gemfile README.md TODO.txt month.rb.gemspec}, spec.files.reject{|f| f =~ %r{^(lib|test)/}}.sort
31
+ assert_equal %w{CHANGELOG Gemfile LICENSE README.md Rakefile TODO.txt month.rb.gemspec}, spec.files.reject{|f| f =~ %r{^(lib|test)/}}.sort
32
32
  end
33
33
 
34
34
  def test_declares_no_runtime_dependencies
@@ -36,7 +36,7 @@ class TC_gemspec < Minitest::Test
36
36
  end
37
37
 
38
38
  def test_declares_its_development_dependencies
39
- assert_equal %w{minitest}, spec.development_dependencies.map(&:name).sort
39
+ assert_equal %w{minitest rake}, spec.development_dependencies.map(&:name).sort
40
40
  end
41
41
 
42
42
  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.1
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -23,6 +23,20 @@ dependencies:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
25
  version: '0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
26
40
  description: |
27
41
  This library enables the use of numeric or text representations of months,
28
42
  conversions between month and date objects,
@@ -35,7 +49,9 @@ extra_rdoc_files: []
35
49
  files:
36
50
  - CHANGELOG
37
51
  - Gemfile
52
+ - LICENSE
38
53
  - README.md
54
+ - Rakefile
39
55
  - TODO.txt
40
56
  - lib/Array/extract_optionsX.rb
41
57
  - lib/Date/to_month.rb