http.rb 0.25.0 → 1.0.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: e13135b5b435a5698be8796e1b9875519747ec50ef9b67c28b81e2f635f43934
4
- data.tar.gz: 05adbd72d459b796093914c3e47b1be023fd543a41305b4fa42b8d90e3fc3a6a
3
+ metadata.gz: c6cf64d373fd047e68f56e4d612f0aa7569c69e183dde7057c7cef706861d7b0
4
+ data.tar.gz: e817f97f6747c05c492823dfeea938f45db80fc77fb2ef5adb93e69818a12faa
5
5
  SHA512:
6
- metadata.gz: db5b30d4185591e0a52fb740514f135b4bd21e06482f160d1ecf7c6c69068e57d8b27e2af9735d8beabd8e41a33ad4f25e400d9ed9999225b576b3ef79e4d545
7
- data.tar.gz: a751c3f915491a27cbea213524c5c83271b3b61b1c7b04c9c279e8f26956b718d45467a970a0eb22eb5d5d7bc710cbb6074105dbb55cdd61c7f257424a621dd2
6
+ metadata.gz: 466fadc13d04a2333864c0e2c5337454bb6010293f86346d9a8d8ea06f4e577952a3451eb16997f6723882ca4fe8f598784c1675698b56a3f1594a2a39781f0a
7
+ data.tar.gz: f52d5e6362127c020091e1d8b2317ad909edf1f3a36e4341f8dba1d8ba92a358ff9fab206eb7e276d7e4e670db7e9af55b885ae9e54224d94d05b6d9563f7d84
data/CHANGELOG CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  ## 20260522
4
4
 
5
+ 1.0.0: API stability declaration.
6
+
7
+ The verb interface (HTTP.get, HTTP.post, HTTP.put, HTTP.delete, HTTP.head, HTTP.options, HTTP.patch, HTTP.trace), the options hash, the redirect handling, the response predicates, and the retry configuration have been stable in shape for several releases. This release declares that commitment publicly: from here, any breaking change requires a major version bump.
8
+
9
+ 1. ~ HTTP::VERSION: /0.26.0/1.0.0/
10
+ 2. ~ CHANGELOG: + 1.0.0 entry
11
+
12
+ ## 20260522
13
+
14
+ 0.26.0: Documentation and housekeeping polish before 1.0.
15
+
16
+ 1. ~ README.md: Opening blurb now lists all supported verbs (get, head, options, trace, post, put, patch, delete) rather than claiming only GET/POST support.
17
+ 2. - TODO: All entries were marked (Done as of …); CHANGELOG carries the same history more legibly.
18
+ 3. ~ http.rb.gemspec: /http:\/\/github.com\/thoran\/HTTP/https:\/\/github.com\/thoran\/http/. Lowercase matches the actual repo; https since GitHub no longer serves plain http.
19
+ 4. ~ HTTP::VERSION: /0.25.0/0.26.0/
20
+ 5. ~ CHANGELOG: + 0.26.0 entry
21
+
22
+ ## 20260522
23
+
5
24
  0.25.0: Remove unused internal machinery; require Ruby >= 3.2.
6
25
 
7
26
  1. ~ HTTP/verbs.rb: /"Net::HTTP::#{verb.to_s.capitalize}".to_const/Net::HTTP.const_get(verb.to_s.capitalize)/. The recursive String#to_const was overkill for a single-level lookup inside Net::HTTP; const_get does it directly.
data/README.md CHANGED
@@ -4,7 +4,7 @@ For many years this was a personal library, from around the middle of 2009 from
4
4
 
5
5
  Like many others before and after me with their respective libraries, I created it to simplify the heinous interface that is Net::HTTP. At the time of it's original creation I was doing a lot of a webscraping and didn't want a half-dozen line setup to make simple requests. It has stood the test of time, for me personally insofar as the interface remaining simpler than most other similar libraries, though it is also less full featured, but nevertheless for it's tiny size it packs in quite a bit.
6
6
 
7
- Perhaps some will appreciate its relative simplicity, since it is much smaller and the usage simpler than any of the other 'wrapper' libraries, such that it can be read and comprehended in full in as little as a couple of minutes. It does just enough to do most simple HTTP GET and POST requests as simply as should be.
7
+ Perhaps some will appreciate its relative simplicity, since it is much smaller and the usage simpler than any of the other 'wrapper' libraries, such that it can be read and comprehended in full in as little as a couple of minutes. All the standard verbs `get`, `head`, `options`, `trace`, `post`, `put`, `patch`, `delete` are supported through a single uniform interface.
8
8
 
9
9
 
10
10
  ## Installation
data/http.rb.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.author = 'thoran'
19
19
  spec.email = 'code@thoran.com'
20
- spec.homepage = "http://github.com/thoran/HTTP"
20
+ spec.homepage = "https://github.com/thoran/http"
21
21
  spec.license = 'MIT'
22
22
 
23
23
  spec.required_ruby_version = '>= 3.2'
data/lib/HTTP/VERSION.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # HTTP::VERSION
3
3
 
4
4
  module HTTP
5
- VERSION = '0.25.0'
5
+ VERSION = '1.0.0'
6
6
  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: 0.25.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -115,7 +115,7 @@ files:
115
115
  - test/HTTP/trace_test.rb
116
116
  - test/Net/HTTPResponse/StatusPredicates_test.rb
117
117
  - test/helper.rb
118
- homepage: http://github.com/thoran/HTTP
118
+ homepage: https://github.com/thoran/http
119
119
  licenses:
120
120
  - MIT
121
121
  metadata: {}