imap 0.4.1 → 0.4.2

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: 36a98f533f3efc95ca01f656505fbd67dbb7a8e8c759168a34f13eb22637265d
4
- data.tar.gz: 6ba05ab591dae64b8063983e91aa4674418297c4a826826a7cc112e8254fa999
3
+ metadata.gz: 9b6a23a10253422d92d39fedd0aaf2b049f9299e469591eeb29ba818a464c294
4
+ data.tar.gz: 0522d1df9b764e67e9b9387ace78e2e0d2c10fd8d9514a43ed6a91993b183d40
5
5
  SHA512:
6
- metadata.gz: f6c794508328e95c245bd4c0b0570c47d87b4fb09cdfb4e627644f045d1f7435e73f3fb85f8ccf064956013ec03652a4c285d488f953272a28d19416556913ae
7
- data.tar.gz: a82c52d40384357b821f4afde670772cfee63172cdfe363ac3ae0cc8d4c3ab9f3ea13a248e1c2fe3f25aca0c0dc105bee5334c322e0d288cc22e4e92b512d4c4
6
+ metadata.gz: 7975fc5e941153f9667f453b2e48919fb18251628706a98c06c22648e78457a253fd192b7650497c2fc712b81c0dbb87e2a7e82de1a2c5e2c0e7f01d3f0c8471
7
+ data.tar.gz: 55231af457bf5e7d541fbab46c9934094d844fb22c4702bf9a4f095d9c1814ea4255b2a763d83c4d528858440ace311bae89930f8777b3776abbf14f09ba2afb
data/CHANGELOG CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [0.4.2] - 2026-09-10, ~ lib/imap.rb: + require_relative './Imap/VERSION'; + test/Imap/VERSION_test.rb
4
+ - ~ lib/imap.rb: + `require_relative './Imap/VERSION'`, last among the requires. The file had been present and unreached, so `require 'imap'` left Imap::VERSION undefined and the gemspec was the only thing loading it.
5
+ - + test/Imap/VERSION_test.rb: that Imap::VERSION is a string and that it is three numbers separated by dots. Modelled on moby's, less the example comparing against the changelog, which was unreachable here while the file was misspelt.
6
+ - The test loads the library rather than VERSION.rb, which is the whole of its value: run against v0.4.1 it fails with "uninitialized constant Imap::VERSION". Nine libraries were in that state and not one of them carried this test.
7
+ - ~ Imap::VERSION: /0.4.1/0.4.2/
8
+
3
9
  ## [0.4.1] - 2026-08-22, + LICENSE; ~ imap.gemspec: + CHANGELOG
4
10
  - + LICENSE: the MIT text, copyright 2025-2026 thoran. The gemspec had declared MIT while the repository carried no licence text at all.
5
11
  - ~ imap.gemspec: + 'LICENSE' and 'CHANGELOG' to spec.files, neither of which the gem had been shipping.
data/lib/Imap/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Imap
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
data/lib/imap.rb CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'net/imap'
5
5
  require_relative './Imap/Message'
6
+ require_relative './Imap/VERSION'
6
7
 
7
8
  class Imap
8
9
  class << self
@@ -0,0 +1,15 @@
1
+ # test/Imap/VERSION_test.rb
2
+
3
+ require_relative '../test_helper'
4
+
5
+ describe Imap do
6
+ describe "VERSION" do
7
+ it "is a string" do
8
+ _(Imap::VERSION).must_be_instance_of String
9
+ end
10
+
11
+ it "is three numbers separated by dots" do
12
+ _(Imap::VERSION).must_match(/\A\d+\.\d+\.\d+\z/)
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -68,6 +68,7 @@ files:
68
68
  - lib/imap.rb
69
69
  - test/Imap/Message_test.rb
70
70
  - test/Imap/Search_test.rb
71
+ - test/Imap/VERSION_test.rb
71
72
  - test/imap_test.rb
72
73
  - test/test_all.rb
73
74
  - test/test_helper.rb