webdav.rb 0.2.1 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11276a2f0788ae73a2174746bc48900ef91355d946f0af27b7bd36b00674e8b8
4
- data.tar.gz: '08912af75301ee512c4d9c08b52f836e94f055e255762890a5ea03b604cd379c'
3
+ metadata.gz: 25fcf98d8c8cceb04d073ef6aca7d351c0cdadba715c8558aba9d51b1dcc36d7
4
+ data.tar.gz: 36d96a9c86ee0a09cf99048e2fc4cf28f214ed9f11f91e4bf0fd8a296b1c40af
5
5
  SHA512:
6
- metadata.gz: 3997386c5837b0070a49b5a01901e3cc54e2bca7860668375a863753b2b7a12b7ccebac405d327b4349de6a27b3c1b5256eb480b072b3c6ed5bc58ff7d5435c8
7
- data.tar.gz: 6a74951f911f9ba0d8e9463f4a17da9bb0348e761728a23fa3e9f93d5afb9935ba4923b1f3cf5407193dcadc04385159b3328bbcea213e56d83ad6b35d33cb22
6
+ metadata.gz: 7cc9fa35c7dc8b1ff83de0d46aa17e2179be321489542192a751e0f911303390b53319b55f39ac00cf7620b9c822f636990a7cadaef9fa1f2328cee61e26d3cb
7
+ data.tar.gz: bf1d892873e9479784edc3510e061c6883e13caa9780241a79722f85e6c953c2e6ff614fff3ba7c444e05c02eab317fcce192799d9e1250b16fe85263a7de49d
data/CHANGELOG CHANGED
@@ -1,4 +1,23 @@
1
- # CHANGELOG
1
+ # webdav/CHANGELOG
2
+
3
+ ## 20260910
4
+
5
+ 0.2.3: ~ lib/webdav.rb: + require_relative './WebDAV/VERSION'; + test/WebDAV/VERSION_test.rb
6
+
7
+ 1. ~ lib/webdav.rb: + `require_relative './WebDAV/VERSION'`, last among the requires. The file has been present and unreached, so `require 'webdav'` left WebDAV::VERSION undefined and the gemspec was the only thing loading it.
8
+ 2. + test/WebDAV/VERSION_test.rb: that WebDAV::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 v0.2.2 it fails with "uninitialized constant WebDAV::VERSION". Nine libraries were in that state and not one of them carried this test, which is how it went unseen.
10
+ 4. ~ WebDAV::VERSION: /0.2.2/0.2.3/
11
+
12
+
13
+ ## 20260826
14
+
15
+ 0.2.2: ~ Gemfile, which bundler has been unable to parse since 0.2.1.
16
+
17
+ 1. ~ Gemfile: /gemspec/gemspec name: 'webdav'/. The bare gemspec directive refuses outright where it finds more than one gemspec to choose from, and 0.2.1 added webdav.rb.gemspec beside webdav.gemspec without the Gemfile following. Either name resolves the same dependencies, the two files differing only in their own; the one already on rubygems is the one named.
18
+ 2. Nothing had reported it: the Rakefile is a plain rake/testtask with no bundler/setup, so rake test never goes through bundler and has gone on passing against whatever the system Ruby holds. http.rb, rexml, minitest, minitest-mock and rake are declared here and nowhere else, so from 20260821 to now bundler could resolve none of them.
19
+ 3. ~ WebDAV::VERSION: /0.2.1/0.2.2/
20
+
2
21
 
3
22
  ## 20260821
4
23
 
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gemspec
3
+ gemspec name: 'webdav'
@@ -2,5 +2,5 @@
2
2
  # WebDAV::VERSION
3
3
 
4
4
  class WebDAV
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.3'
6
6
  end
data/lib/webdav.rb CHANGED
@@ -10,6 +10,7 @@ require_relative './String/to_const'
10
10
  require_relative './WebDAV/Error'
11
11
  require_relative './WebDAV/MultiStatus'
12
12
  require_relative './WebDAV/Response'
13
+ require_relative './WebDAV/VERSION'
13
14
 
14
15
  class WebDAV
15
16
 
@@ -0,0 +1,20 @@
1
+ # test/WebDAV/VERSION_test.rb
2
+
3
+ require_relative '../helper'
4
+
5
+ describe WebDAV do
6
+ describe "VERSION" do
7
+ it "is a string" do
8
+ _(WebDAV::VERSION).must_be_instance_of String
9
+ end
10
+
11
+ it "is three numbers separated by dots" do
12
+ _(WebDAV::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 WebDAV::VERSION
18
+ end
19
+ end
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webdav.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -104,6 +104,7 @@ files:
104
104
  - test/WebDAV/Error_test.rb
105
105
  - test/WebDAV/MultiStatus_test.rb
106
106
  - test/WebDAV/Response_test.rb
107
+ - test/WebDAV/VERSION_test.rb
107
108
  - test/helper.rb
108
109
  - test/webdav_test.rb
109
110
  - webdav.rb.gemspec
@@ -125,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
126
  - !ruby/object:Gem::Version
126
127
  version: '0'
127
128
  requirements: []
128
- rubygems_version: 4.0.18
129
+ rubygems_version: 4.0.20
129
130
  specification_version: 4
130
131
  summary: A Ruby WebDAV client library.
131
132
  test_files: []