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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f997a9cf6037eb202d5a5d506fbbce598c959283a814b0efe35dbc4f7269788
4
- data.tar.gz: 281f7cf2ccc22f57d5f19683bc0b2e7bc23ca446efd636dfa7cd643b5be7a5ff
3
+ metadata.gz: 2b5e53dcfe56166852d471d91b66d9cf59d55019af18900d2172f00ded838fb8
4
+ data.tar.gz: 6c8eee635b4c83ff1446048a5929f94b4c9a46b0a70e06c23bf9eaaed2614076
5
5
  SHA512:
6
- metadata.gz: f8701fdd32e92e49936800fe52b8aa75084f8d898fd7dbce9c38ffd1f62551d66edd10eb4961ad5b84f5b4d60cecaa2a54fd4c8f1d25d418b4ba45ce53e320a1
7
- data.tar.gz: c23240bfac93ea558a0dc67fc694af589bd06476e7397d4008a09e6f3bc2f3063a603ddbc41904813e33662ed94d375c3797b0fe20054ba1b6c8799527a02931
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
 
@@ -2,5 +2,5 @@
2
2
  # WebDAV::VERSION
3
3
 
4
4
  class WebDAV
5
- VERSION = '0.2.2'
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
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.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.19
129
+ rubygems_version: 4.0.20
129
130
  specification_version: 4
130
131
  summary: A Ruby WebDAV client library.
131
132
  test_files: []