imap 0.4.1 → 0.4.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: 36a98f533f3efc95ca01f656505fbd67dbb7a8e8c759168a34f13eb22637265d
4
- data.tar.gz: 6ba05ab591dae64b8063983e91aa4674418297c4a826826a7cc112e8254fa999
3
+ metadata.gz: e81ccc78552de60b7572c00689364274012b24af157f81fdd21c4caa4a8b31dc
4
+ data.tar.gz: 432db4843d22cf60959de2ea0fe0ab43ecd1fc2da4c8b0858ef5045e24a57174
5
5
  SHA512:
6
- metadata.gz: f6c794508328e95c245bd4c0b0570c47d87b4fb09cdfb4e627644f045d1f7435e73f3fb85f8ccf064956013ec03652a4c285d488f953272a28d19416556913ae
7
- data.tar.gz: a82c52d40384357b821f4afde670772cfee63172cdfe363ac3ae0cc8d4c3ab9f3ea13a248e1c2fe3f25aca0c0dc105bee5334c322e0d288cc22e4e92b512d4c4
6
+ metadata.gz: 2dafa33325fcc4b61c9fa6a9d79ade8319b7b1c0a6738fd7f233f491cab209e6a65dc6d36a82a443263dbffb9fba6ac6a4be5fa56106a639703cc52f4176768b
7
+ data.tar.gz: 8bcb54f18b64616cad2e6220da09a3f70c04e29c3aa33e7cc8824535f1dc7e402c8bddfa3523b5ad8e9bdfe11805eeb2c70edb2b66217b90f9ec08bd22642426
data/CHANGELOG CHANGED
@@ -1,5 +1,16 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [0.4.3] - 2026-09-17, ~ test/test_helper.rb: + require 'minitest/mock', which minitest 6 no longer brings
4
+ - ~ test/test_helper.rb: + `require 'minitest/mock'`. 35 of the 42 tests call stub and not one of them could: the suite answered "42 runs, 7 assertions, 0 failures, 35 errors". minitest 5's autorun required minitest/mock and shipped it, so the suite ran until minitest 6 dropped both the require and the file; the same thing coinmarketcap 0.6.1 found.
5
+ - ~ imap.gemspec: + minitest-mock as a development dependency, which minitest ~> 5.0 carried and minitest 6 does not.
6
+ - ~ Imap::VERSION: /0.4.2/0.4.3/
7
+
8
+ ## [0.4.2] - 2026-09-10, ~ lib/imap.rb: + require_relative './Imap/VERSION'; + test/Imap/VERSION_test.rb
9
+ - ~ 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.
10
+ - + 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.
11
+ - 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.
12
+ - ~ Imap::VERSION: /0.4.1/0.4.2/
13
+
3
14
  ## [0.4.1] - 2026-08-22, + LICENSE; ~ imap.gemspec: + CHANGELOG
4
15
  - + LICENSE: the MIT text, copyright 2025-2026 thoran. The gemspec had declared MIT while the repository carried no licence text at all.
5
16
  - ~ imap.gemspec: + 'LICENSE' and 'CHANGELOG' to spec.files, neither of which the gem had been shipping.
data/imap.gemspec CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'net-imap', "~> 0.4"
22
22
 
23
23
  spec.add_development_dependency 'minitest', '~> 5.0'
24
+ spec.add_development_dependency 'minitest-mock'
24
25
  spec.add_development_dependency 'rake', '~> 13.0'
25
26
 
26
27
  spec.files = [
data/lib/Imap/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Imap
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.3'
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
data/test/test_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # test/test_helper.rb
2
2
 
3
3
  require 'minitest/autorun'
4
+ require 'minitest/mock'
4
5
  require 'minitest/spec'
5
6
  require 'ostruct'
6
7
  require_relative '../lib/imap'
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -37,6 +37,20 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '5.0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: minitest-mock
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
40
54
  - !ruby/object:Gem::Dependency
41
55
  name: rake
42
56
  requirement: !ruby/object:Gem::Requirement
@@ -68,6 +82,7 @@ files:
68
82
  - lib/imap.rb
69
83
  - test/Imap/Message_test.rb
70
84
  - test/Imap/Search_test.rb
85
+ - test/Imap/VERSION_test.rb
71
86
  - test/imap_test.rb
72
87
  - test/test_all.rb
73
88
  - test/test_helper.rb
@@ -89,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
104
  - !ruby/object:Gem::Version
90
105
  version: '0'
91
106
  requirements: []
92
- rubygems_version: 4.0.19
107
+ rubygems_version: 4.0.20
93
108
  specification_version: 4
94
109
  summary: IMAP for Ruby made easy.
95
110
  test_files: []