webdav 0.2.2 → 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 +4 -4
- data/CHANGELOG +11 -1
- data/lib/WebDAV/VERSION.rb +1 -1
- data/lib/webdav.rb +1 -0
- data/test/WebDAV/VERSION_test.rb +20 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b5e53dcfe56166852d471d91b66d9cf59d55019af18900d2172f00ded838fb8
|
|
4
|
+
data.tar.gz: 6c8eee635b4c83ff1446048a5929f94b4c9a46b0a70e06c23bf9eaaed2614076
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80ddb019f4533d8f2631ae66436eed5ab1360e6d0b750748d622549b397446ce7d2d0e72ce32e51240e4eb3fe33fc81e1aa788ffd2b641764924d03b03aa17b6
|
|
7
|
+
data.tar.gz: 04cb8a1ae63fb0e876179b9b26c3e54e5ddf537e37ff5eefb0008d2b270ae71a4d2b8d60e08f6a7132ad3db59421d2013b1f204a04250e2d43978074c0e99ca1
|
data/CHANGELOG
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
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
|
+
|
|
2
12
|
|
|
3
13
|
## 20260826
|
|
4
14
|
|
data/lib/WebDAV/VERSION.rb
CHANGED
data/lib/webdav.rb
CHANGED
|
@@ -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
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
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.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.
|
|
129
|
+
rubygems_version: 4.0.20
|
|
129
130
|
specification_version: 4
|
|
130
131
|
summary: A Ruby WebDAV client library.
|
|
131
132
|
test_files: []
|