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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9b1a14689933d1d7a46f7ebf6619e5807369ed65455d6d0692f170689054c73
4
- data.tar.gz: 4d2926d31cbf21835ee921f07561a7a3f895b468ffac5ed785d4229daef63e13
3
+ metadata.gz: a6fd7a7020d8a692cd3852ed9aa2820322ad24b9e61a368d9e70dd4a2a9b6682
4
+ data.tar.gz: 4b535cc818bef4bfd17ea1e3b2ef177706fede6a5772c48f7184d57e252314ee
5
5
  SHA512:
6
- metadata.gz: df0b85c36dac9788b1c84bae13536a49e4444dd6953b2a512121b38261137ef3d99328cdde7ab202013246846b7271c4cd888b3ee049754f562cbebb1dbc7dd6
7
- data.tar.gz: 07ff77f55a32f39134cf410de9eafd92deb5359d5b8398fde310500c1e024464001eef150eef9aee140922bedfedd6d6c165394de98540826f60cea5d43ada9d
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
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 thoran
3
+ Copyright (c) 2009-2026 thoran
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/lib/HTTP/VERSION.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # HTTP::VERSION
3
3
 
4
4
  module HTTP
5
- VERSION = '1.3.2'
5
+ VERSION = '1.3.4'
6
6
  end
@@ -2,3 +2,4 @@
2
2
  # HTTP
3
3
 
4
4
  require 'HTTP/METHODS'
5
+ require 'HTTP/VERSION'
@@ -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.2
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.18
144
+ rubygems_version: 4.0.22
144
145
  specification_version: 4
145
146
  summary: HTTP made easy.
146
147
  test_files: []