http.rb 1.3.2 → 1.3.4
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/LICENSE +1 -1
- 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: a6fd7a7020d8a692cd3852ed9aa2820322ad24b9e61a368d9e70dd4a2a9b6682
|
|
4
|
+
data.tar.gz: 4b535cc818bef4bfd17ea1e3b2ef177706fede6a5772c48f7184d57e252314ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0c53543092fbf97a7fd94418b3c6360320dc4d4eb8711bc092c7a95d1801965e7c62e51b67988e6d28e637531f7bdcc74c4ed1633fabc4ae7be8bfb70b29bdf
|
|
7
|
+
data.tar.gz: becf134eada7e1ba1d3af4433c17599e2aaecce3b100b538a9818b8f0c4ea269086642f6d8b8acce59c41872898b0ee333bf37702f2841e1fb710623b8498a75
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 20261011
|
|
4
|
+
|
|
5
|
+
1.3.4: ~ LICENSE: /2026/2009-2026/
|
|
6
|
+
|
|
7
|
+
1. ~ LICENSE: the copyright years run from 2009, which is when the README dates the library from. The first commit, 2015, is when its history was imported rather than when it began, so the usual rule of taking the year of the first commit would understate it here.
|
|
8
|
+
2. ~ HTTP::VERSION: /1.3.3/1.3.4/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## 20260910
|
|
12
|
+
|
|
13
|
+
1.3.3: ~ lib/HTTP.rb: + require 'HTTP/VERSION'; + test/HTTP/VERSION_test.rb
|
|
14
|
+
|
|
15
|
+
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.
|
|
16
|
+
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.
|
|
17
|
+
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.
|
|
18
|
+
4. ~ HTTP::VERSION: /1.3.2/1.3.3/
|
|
19
|
+
|
|
20
|
+
|
|
3
21
|
## 20260819
|
|
4
22
|
|
|
5
23
|
1.3.2: ~ http.rb.gemspec: spec.files reordered, the globs first.
|
data/LICENSE
CHANGED
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.4
|
|
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: []
|