month.rb 0.11.2 → 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 +4 -4
- data/CHANGELOG +9 -0
- data/Rakefile +22 -0
- data/lib/Month/VERSION.rb +1 -1
- data/month.rb.gemspec +2 -0
- data/test/tc_gemspec.rb +2 -2
- metadata +16 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c141087e8890ae69123262e5c7563edb87e3ad47900fbe97dff39e95c37d6190
|
|
4
|
+
data.tar.gz: ec09272600bbc455fa2dbf478acfb9f06d00e6043bd6c787709eb041e253d0af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c77ba2bb1b454ba59609f4ec7f88b0ac4b4d9f6c7baae2827785d0f089ed98194b97ddf045f47096899c00a2f64650891f48de49458b3c6cf99f7c679e87f84e
|
|
7
|
+
data.tar.gz: 3326ea74d5ae774c300a9efbbb528882ab1ba77f994e9db3aee9c6a4e64a5380b59d438f374ebb94dad7e61630aa33dd8612258e84ac7b314d50be112140629c
|
data/CHANGELOG
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
|
|
5
14
|
0.11.2: + LICENSE, which the gemspec had claimed since 0.10.0 without one being present.
|
|
6
15
|
|
|
7
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.
|
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
data/month.rb.gemspec
CHANGED
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 LICENSE 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.
|
|
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,
|
|
@@ -37,6 +51,7 @@ files:
|
|
|
37
51
|
- Gemfile
|
|
38
52
|
- LICENSE
|
|
39
53
|
- README.md
|
|
54
|
+
- Rakefile
|
|
40
55
|
- TODO.txt
|
|
41
56
|
- lib/Array/extract_optionsX.rb
|
|
42
57
|
- lib/Date/to_month.rb
|