impuri 0.9.0 → 0.11.0

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: 44fb3692e45dc1de42d26f18c4a134fe6337e58333f7c69587e511e26530ecd4
4
- data.tar.gz: 83726d475b88fc52c4ab0860639da6a80f363de6c162e71c32993d5dab7eebad
3
+ metadata.gz: 137b242477de26374948f92a7033db38de59a1b08e5e53eceeca18e3c3c94d12
4
+ data.tar.gz: c918d32a40519df5d149faa8cc5d2b48cfd0abf5fcb3a1f2d684380cfa4250c4
5
5
  SHA512:
6
- metadata.gz: 3d4d7434d832be7a361cd53699904cef3c892b9c09a6a76ba853422cf4b18218718afe20167d4c0545c6b66f339fec7007e815e2574a48daa3323e8ef841c6df
7
- data.tar.gz: 7a03f5beb223d87fc130aed2fa04f346eabe0236173bc4a6285b8d7206357ce44655644d1810f631cab6a36c3721e786199b83b7500e719983d31f360c7390c8
6
+ metadata.gz: 54455a74f4486946e2948b1bed205a70af70d00c95dd453bc5a2c64382508be00dd6c2a4387d06355c36ef7bf0bdf83609be9b1211f9a5d5d1061b1ac4ead639
7
+ data.tar.gz: 350b3ba2ba2a9bf71696ceb903bf5961533f454301910bc0dcbd6c465f066cfa69223dc06ada2ad3ba5d5ea4a9f3791001004e04bca28f4ceb8b17bc623691fa
data/CHANGELOG CHANGED
@@ -2,7 +2,27 @@
2
2
 
3
3
  ## 20260805
4
4
 
5
- 0.9.0: Make the gem loadable on its own, rather than only where the helper files were already on the load path
5
+ 0.11.0: Name the entry point and the gemspec for the gem.
6
+
7
+ 1. lib/: /ImpURI.rb/impuri.rb/, so the require becomes require 'impuri' rather than require 'ImpURI'. This is the breaking change: anything using the gem must be altered. It resolves either way here, the volume being case insensitive, but not on Linux. namo, webdav and statistics.rb all name the entry point for the gem and keep the namespace directory in CamelCase, so lib/ImpURI/ is left as it is.
8
+ 2. /ImpURI.gemspec/impuri.gemspec/, and the spec.files entry with it. Invisible to anyone installing the gem, since nothing requires a gemspec.
9
+ 3. ~ tests: require 'ImpURI' --> require 'impuri'.
10
+
11
+ 0.10.1: Use let rather than instance variables set in a before block.
12
+
13
+ 1. ~ tests: before do @impuri = ... end --> let(:impuri){...}, for 25 blocks and 847 references across the two files. Nothing in lib changes, so this is a patch.
14
+ 2. Only the three names actually used were substituted, since the string literals hold http://user@example.com/ and git@github.com:thoran/ImpURI.git, and a general @word replacement would have rewritten those too.
15
+
16
+ 0.10.0: Move the tests onto the expectation form Minitest supports
17
+
18
+ 1. ~ tests: x.must_equal y --> _(x).must_equal y, across all 801 assertions in the two test files. The global form was Minitest reopening Object so that every object answered must_equal, which it has since removed. Minitest's own documentation prefers the wrapped form, because it carries the test context rather than reaching for a thread-local to find it.
19
+ 2. - ImpURI.gemspec: the development dependency upon minitest-global_expectations, which was added in 0.9.0 only to keep the tests running while they were in the old form.
20
+ 3. ~ tests: require 'minitest/global_expectations/autorun' --> require 'minitest/autorun'.
21
+
22
+
23
+ ## 20260805
24
+
25
+ 0.9.0: Make the gem loadable on its own, rather than only where the helper files were already on the load path.
6
26
 
7
27
  1. Moved the vendored helpers from lib/ImpURI/ up into lib/, so that they sit where they are required from. 0.8.0 shipped all seventeen of them, but one directory too deep: only lib/ goes onto the load path, so require '_meta/blankQ' looked for lib/_meta/blankQ.rb while the file sat at lib/ImpURI/_meta/blankQ.rb. The gem could therefore only be loaded on a machine which already had those helpers elsewhere on the load path, which is to say mine.
8
28
  2. + lib/Thoran/String/Urlencode/urlencode.rb and lib/Thoran/Hash/XWwwFormUrlencode/x_www_form_urlencode.rb, which had never been vendored at all. 0.8.0 required String/url_encode by way of Hash/x_www_form_urlencode.rb and shipped no such file, so that require was answered by whatever the machine happened to have: my own library, or any installed gem which vendored a file at that path. Both taken from http.rb 1.3.1, which carries the current implementation.
@@ -24,9 +44,10 @@
24
44
  18. ~ tests: require 'minitest/autorun' --> require 'minitest/global_expectations/autorun'. The tests are written in the global expectations style, as in `ImpURI.username(x).must_equal 'git'`, which Minitest has since removed, so every one of the 271 of them errored and not one of the 801 assertions ran. The shim restores that style without touching the tests; rewriting them to the `_(x).must_equal` form, and dropping the dependency again, is for 0.10.0.
25
45
  19. ~ ImpURI::VERSION: /0.8.0/0.9.0/
26
46
 
47
+
27
48
  ## 20200207
28
49
 
29
- 0.8.0: Preparation for release as a gem
50
+ 0.8.0: Preparation for release as a gem.
30
51
 
31
52
  1. Moved the contents of lib/ImpURI.rbd/ImpURI.rb into lib/ImpURI.rb and changed the directory name from lib/ImpURI.rbd to lib/ImpURI, so that it has a more conventional structure and while the .rbd stuff doesn't work!
32
53
  2. /must_equal nil/must_be_nil/ in tests, due to Mintest 6 deprecation messages.
@@ -38,7 +59,7 @@
38
59
 
39
60
  ## 20140707
40
61
 
41
- 0.7.0: Enable assignment of values to component parts
62
+ 0.7.0: Enable assignment of values to component parts.
42
63
 
43
64
  1. + #scheme=.
44
65
  2. + #username=.
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = ['lib']
23
23
 
24
24
  spec.files = [
25
- 'ImpURI.gemspec',
25
+ 'impuri.gemspec',
26
26
  'CHANGELOG',
27
27
  'Gemfile',
28
28
  'README.md',
@@ -32,7 +32,6 @@ Gem::Specification.new do |spec|
32
32
  ].flatten
33
33
 
34
34
  spec.development_dependencies = [
35
- ['minitest', '~> 6.0'],
36
- ['minitest-global_expectations', '~> 1.0']
35
+ ['minitest', '~> 6.0']
37
36
  ]
38
37
  end
@@ -2,5 +2,5 @@
2
2
  # ImpURI::VERSION
3
3
 
4
4
  class ImpURI
5
- VERSION = '0.9.0'
5
+ VERSION = '0.11.0'
6
6
  end
@@ -1,4 +1,4 @@
1
- # ImpURI.rb
1
+ # impuri.rb
2
2
  # ImpURI
3
3
 
4
4
  require_relative './_meta/blankQ'