impuri 0.12.2 → 0.12.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 +10 -0
- data/Rakefile +22 -0
- data/impuri.gemspec +2 -0
- data/lib/ImpURI/VERSION.rb +1 -1
- data/test/ImpURI/VERSION_test.rb +1 -6
- data/test/ImpURI/{class_methods.rb → class_methods_test.rb} +2 -7
- data/test/ImpURI/{instance_methods.rb → instance_methods_test.rb} +2 -7
- data/test/gemspec_test.rb +2 -7
- data/test/test_helper.rb +5 -0
- metadata +19 -4
- data/test/ImpURI.rb +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1167e07cbc4adc3b5a12b103494126b8e973d144accacb2ed85f19795b30baa3
|
|
4
|
+
data.tar.gz: 9a590aead3dc67127d2523a10346b0f63e4719418fe7ca499e8247d7f55047ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab3fc45f1e442c1acd681c6b2424ca9ba08682ee976cfd0c81a74dde1f831835cb9f35001402eb0356baa81caa7f24deae44c6dd9ee187d1f30066c89f079c0e
|
|
7
|
+
data.tar.gz: 76053d1fa19597ad89720337e77a985544dff53ae3a3cdeaae12098d122ca26dc9951c3416883bf52cafc637e3d3777a7f09969f971bb4f7c674fa7d22d0478b
|
data/CHANGELOG
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
## 20260819
|
|
4
4
|
|
|
5
|
+
0.12.3: Bring the tests up to standard: a Rakefile, *_test.rb naming, and a test helper.
|
|
6
|
+
|
|
7
|
+
1. + Rakefile: Rake::TestTask over FileList['test/**/*_test.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 no Rakefile at all, the suite being run by hand through a loader.
|
|
8
|
+
2. ~ test/ImpURI/class_methods.rb --> test/ImpURI/class_methods_test.rb, and instance_methods.rb likewise, so that the runner finds them by pattern rather than by a loader naming each one.
|
|
9
|
+
3. + test/test_helper.rb: minitest/autorun and the library. Each test file had been repeating gem 'minitest', a $LOAD_PATH.unshift and two requires; they now require the helper alone.
|
|
10
|
+
4. - test/ImpURI.rb: the hand-written loader. It named each test file, so a new test had to be registered in two places, and both tests added at 0.12.1 and 0.12.2 needed a line there. FileList does that now.
|
|
11
|
+
5. ~ impuri.gemspec: + 'Rakefile' to spec.files and + rake to spec.development_dependencies, both following from the above.
|
|
12
|
+
6. ~ test/gemspec_test.rb: + rake to the expected development dependencies, that assertion being exact.
|
|
13
|
+
7. ~ ImpURI::VERSION: /0.12.2/0.12.3/
|
|
14
|
+
|
|
5
15
|
0.12.2: Adopt the CHANGELOG-matching version test.
|
|
6
16
|
|
|
7
17
|
1. + test/ImpURI/VERSION_test.rb: that ImpURI::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. Modelled on moby's, which is where this pair was settled.
|
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/**/*_test.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/ImpURI/VERSION'
|
|
21
|
+
puts "impuri #{ImpURI::VERSION}"
|
|
22
|
+
end
|
data/impuri.gemspec
CHANGED
data/lib/ImpURI/VERSION.rb
CHANGED
data/test/ImpURI/VERSION_test.rb
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
# test/ImpURI/VERSION_test.rb
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib')))
|
|
6
|
-
|
|
7
|
-
require 'impuri'
|
|
8
|
-
require 'minitest/autorun'
|
|
3
|
+
require_relative '../test_helper'
|
|
9
4
|
|
|
10
5
|
describe ImpURI do
|
|
11
6
|
describe "VERSION" do
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
# test/ImpURI/
|
|
1
|
+
# test/ImpURI/class_methods_test.rb
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib')))
|
|
6
|
-
|
|
7
|
-
require 'impuri'
|
|
8
|
-
require 'minitest/autorun'
|
|
3
|
+
require_relative '../test_helper'
|
|
9
4
|
|
|
10
5
|
describe ImpURI do
|
|
11
6
|
describe 'ImpURI class methods' do
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
# test/ImpURI/
|
|
1
|
+
# test/ImpURI/instance_methods_test.rb
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib')))
|
|
6
|
-
|
|
7
|
-
require 'impuri'
|
|
8
|
-
require 'minitest/autorun'
|
|
3
|
+
require_relative '../test_helper'
|
|
9
4
|
|
|
10
5
|
describe ImpURI do
|
|
11
6
|
describe 'attribute readers' do
|
data/test/gemspec_test.rb
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
# test/gemspec_test.rb
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
|
|
6
|
-
|
|
7
|
-
require 'impuri'
|
|
8
|
-
require 'minitest/autorun'
|
|
3
|
+
require_relative './test_helper'
|
|
9
4
|
|
|
10
5
|
describe 'impuri.gemspec' do
|
|
11
6
|
let(:spec){Gem::Specification.load(File.expand_path('../impuri.gemspec', __dir__))}
|
|
@@ -37,6 +32,6 @@ describe 'impuri.gemspec' do
|
|
|
37
32
|
end
|
|
38
33
|
|
|
39
34
|
it "declares its development dependencies" do
|
|
40
|
-
_(spec.development_dependencies.map(&:name).sort).must_equal(%w{minitest})
|
|
35
|
+
_(spec.development_dependencies.map(&:name).sort).must_equal(%w{minitest rake})
|
|
41
36
|
end
|
|
42
37
|
end
|
data/test/test_helper.rb
ADDED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: impuri
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.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: '6.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: This is a hand-written non-validating parser for URI's and ssh/scp almost
|
|
27
41
|
URI resource descriptors, which is intended to be cleaner and simpler than Ruby's
|
|
28
42
|
standard URI.
|
|
@@ -34,6 +48,7 @@ files:
|
|
|
34
48
|
- CHANGELOG
|
|
35
49
|
- Gemfile
|
|
36
50
|
- README.md
|
|
51
|
+
- Rakefile
|
|
37
52
|
- TODO.txt
|
|
38
53
|
- impuri.gemspec
|
|
39
54
|
- lib/Array/all_but_first.rb
|
|
@@ -56,11 +71,11 @@ files:
|
|
|
56
71
|
- lib/TrueClass/blankQ.rb
|
|
57
72
|
- lib/_meta/blankQ.rb
|
|
58
73
|
- lib/impuri.rb
|
|
59
|
-
- test/ImpURI.rb
|
|
60
74
|
- test/ImpURI/VERSION_test.rb
|
|
61
|
-
- test/ImpURI/
|
|
62
|
-
- test/ImpURI/
|
|
75
|
+
- test/ImpURI/class_methods_test.rb
|
|
76
|
+
- test/ImpURI/instance_methods_test.rb
|
|
63
77
|
- test/gemspec_test.rb
|
|
78
|
+
- test/test_helper.rb
|
|
64
79
|
homepage: https://github.com/thoran/ImpURI
|
|
65
80
|
licenses:
|
|
66
81
|
- MIT
|
data/test/ImpURI.rb
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# test/ImpURI.rb
|
|
2
|
-
|
|
3
|
-
gem 'minitest'
|
|
4
|
-
|
|
5
|
-
test_dir = File.dirname(File.expand_path(__FILE__))
|
|
6
|
-
$LOAD_PATH.unshift(test_dir) unless $LOAD_PATH.include?(test_dir)
|
|
7
|
-
|
|
8
|
-
require 'ImpURI/class_methods'
|
|
9
|
-
require 'ImpURI/instance_methods'
|
|
10
|
-
require 'gemspec_test'
|
|
11
|
-
require 'ImpURI/VERSION_test'
|