http.rb 1.3.1 → 1.3.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 +18 -0
- data/http.rb.gemspec +3 -3
- data/lib/HTTP/VERSION.rb +1 -1
- data/lib/{http.rb → HTTP.rb} +1 -0
- data/test/HTTP/VERSION_test.rb +20 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a795663915a0501b6632b5e154672a12ab5e1efa92815c8d38cd6afcfb495ff9
|
|
4
|
+
data.tar.gz: 2f309b3bde060651bcacbce8e48bdc568dd34fe1d65d4839127b9d2e16bfd38e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6905883e9395fa6c6e687b645fa7b86d53ca45d889b3e1c939de4cfd9a0c925b28716c3c91f345901e4394a36c49a4253129343561edb56c40f723d53d8dfa5
|
|
7
|
+
data.tar.gz: 9d2c5b0fd7d59e030aa48caa6c68ed9a57b5f6152169d15807da0a958a3215ba564c953ee5234fcfe5d6b2a1ed089ab2d73ef26404ba5bd5ab7da44a798e6350
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 20260910
|
|
4
|
+
|
|
5
|
+
1.3.3: ~ lib/HTTP.rb: + require 'HTTP/VERSION'; + test/HTTP/VERSION_test.rb
|
|
6
|
+
|
|
7
|
+
1. ~ lib/HTTP.rb: + `require 'HTTP/VERSION'`, last among the requires. The file has been present and unreached, so `require 'http.rb'` left HTTP::VERSION undefined and the gemspec was the only thing loading it.
|
|
8
|
+
2. + test/HTTP/VERSION_test.rb: that HTTP::VERSION is a string, that it is three numbers separated by dots, and that it matches the newest entry in the changelog. Modelled on moby's, which is where the convention comes from.
|
|
9
|
+
3. The test loads the library rather than VERSION.rb, which is the whole of its value: run against v1.3.2 it fails with "uninitialized constant HTTP::VERSION". Nine libraries were in that state and not one of them carried this test, which is how it went unseen.
|
|
10
|
+
4. ~ HTTP::VERSION: /1.3.2/1.3.3/
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## 20260819
|
|
14
|
+
|
|
15
|
+
1.3.2: ~ http.rb.gemspec: spec.files reordered, the globs first.
|
|
16
|
+
|
|
17
|
+
1. ~ http.rb.gemspec: spec.files reordered, the two Dir globs first and the loose files alphabetically after them, as moby and measurand have it. The globs are what the gem is and the rest is paperwork, so adding a file to the paperwork now never disturbs them. This gemspec had been pinned first with the globs last, which namo shared and impuri left at its 0.12.1. The same 35 files ship, in the same gem; only the order in the source changes.
|
|
18
|
+
2. ~ HTTP::VERSION: /1.3.1/1.3.2/
|
|
19
|
+
|
|
20
|
+
|
|
3
21
|
## 20260713
|
|
4
22
|
|
|
5
23
|
1.3.1: Use Thoran Namespace for URL-encoding extensions.
|
data/http.rb.gemspec
CHANGED
|
@@ -24,14 +24,14 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.require_paths = ['lib']
|
|
25
25
|
|
|
26
26
|
spec.files = [
|
|
27
|
-
'
|
|
27
|
+
Dir['lib/**/*.rb'],
|
|
28
|
+
Dir['test/**/*.rb'],
|
|
28
29
|
'CHANGELOG',
|
|
29
30
|
'Gemfile',
|
|
31
|
+
'http.rb.gemspec',
|
|
30
32
|
'LICENSE',
|
|
31
33
|
'Rakefile',
|
|
32
34
|
'README.md',
|
|
33
|
-
Dir['lib/**/*.rb'],
|
|
34
|
-
Dir['test/**/*.rb'],
|
|
35
35
|
].flatten
|
|
36
36
|
|
|
37
37
|
spec.development_dependencies = [
|
data/lib/HTTP/VERSION.rb
CHANGED
data/lib/{http.rb → HTTP.rb}
RENAMED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# test/HTTP/VERSION_test.rb
|
|
2
|
+
|
|
3
|
+
require_relative '../helper'
|
|
4
|
+
|
|
5
|
+
describe HTTP do
|
|
6
|
+
describe "VERSION" do
|
|
7
|
+
it "is a string" do
|
|
8
|
+
_(HTTP::VERSION).must_be_instance_of String
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
it "is three numbers separated by dots" do
|
|
12
|
+
_(HTTP::VERSION).must_match(/\A\d+\.\d+\.\d+\z/)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
it "matches the newest entry in the CHANGELOG" do
|
|
16
|
+
changelog = File.read(File.expand_path('../../CHANGELOG', __dir__))
|
|
17
|
+
_(changelog[/^(\d+\.\d+\.\d+):/, 1]).must_equal HTTP::VERSION
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: http.rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoran
|
|
@@ -93,6 +93,7 @@ files:
|
|
|
93
93
|
- README.md
|
|
94
94
|
- Rakefile
|
|
95
95
|
- http.rb.gemspec
|
|
96
|
+
- lib/HTTP.rb
|
|
96
97
|
- lib/HTTP/METHODS.rb
|
|
97
98
|
- lib/HTTP/RETRY.rb
|
|
98
99
|
- lib/HTTP/VERSION.rb
|
|
@@ -106,9 +107,9 @@ files:
|
|
|
106
107
|
- lib/Thoran/Hash/XWwwFormUrlencode/x_www_form_urlencode.rb
|
|
107
108
|
- lib/Thoran/String/Urlencode/urlencode.rb
|
|
108
109
|
- lib/URI/Generic/use_sslQ.rb
|
|
109
|
-
- lib/http.rb
|
|
110
110
|
- test/HTTP/METHODS_test.rb
|
|
111
111
|
- test/HTTP/RETRY_test.rb
|
|
112
|
+
- test/HTTP/VERSION_test.rb
|
|
112
113
|
- test/HTTP/basic_auth_test.rb
|
|
113
114
|
- test/HTTP/delete_test.rb
|
|
114
115
|
- test/HTTP/get_test.rb
|
|
@@ -140,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
141
|
- !ruby/object:Gem::Version
|
|
141
142
|
version: '0'
|
|
142
143
|
requirements: []
|
|
143
|
-
rubygems_version: 4.0.
|
|
144
|
+
rubygems_version: 4.0.22
|
|
144
145
|
specification_version: 4
|
|
145
146
|
summary: HTTP made easy.
|
|
146
147
|
test_files: []
|