imap 0.4.2 → 0.4.4

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: 9b6a23a10253422d92d39fedd0aaf2b049f9299e469591eeb29ba818a464c294
4
- data.tar.gz: 0522d1df9b764e67e9b9387ace78e2e0d2c10fd8d9514a43ed6a91993b183d40
3
+ metadata.gz: 2b76876b4d1c1ddc5defaa94a8890166b334c133312ca17a8b809364aaba585b
4
+ data.tar.gz: d6b4bdf67504e50422fda5d737ae5311060b38fbf5f3f754daad45bb292a154f
5
5
  SHA512:
6
- metadata.gz: 7975fc5e941153f9667f453b2e48919fb18251628706a98c06c22648e78457a253fd192b7650497c2fc712b81c0dbb87e2a7e82de1a2c5e2c0e7f01d3f0c8471
7
- data.tar.gz: 55231af457bf5e7d541fbab46c9934094d844fb22c4702bf9a4f095d9c1814ea4255b2a763d83c4d528858440ace311bae89930f8777b3776abbf14f09ba2afb
6
+ metadata.gz: c5360236b3f337c04191d7debe88a74ab44e30adf242565973baf1aee561b6deb57cf96f2e1c52d4d0c680e32f4517eccabae5ac7ccf18be961ed60e9ce0c5ee
7
+ data.tar.gz: bc7a2e7096757a0274ffc54b3136537f646f3ad3a150f2ef2fca3ea960a5410a600942d09e1d49c1231b8f7ab199b7b2265e87a921b04f9186b39f64fb593a9d
data/CHANGELOG CHANGED
@@ -1,5 +1,17 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [0.4.4] - 2026-09-17, + Rakefile, - test/test_all.rb
4
+ - + Rakefile: Rake::TestTask over FileList['test/**/*_test.rb'], with libs for lib and test, and warning = true. The minimal form nine of the gems here use rather than the fuller one five use: the :spec alias and the :version task belong to the minority, and a :version task reading VERSION.rb would not have caught 0.4.1, where require 'imap' left Imap::VERSION undefined while VERSION.rb sat there defining it. rake has been a development dependency since 0.4.0 with nothing here to run.
5
+ - - test/test_all.rb: a second entry point which the Rakefile's FileList makes redundant, and which had drifted from the files on disk in two ways: it never loaded test/Imap/VERSION_test.rb, added in 0.4.2, so it ran 42 tests where there are 44; and it required './Imap_test' for a file named imap_test.rb, which resolved only because the filesystem is case insensitive and would not have on Linux. A glob cannot drift. 14 of the 16 gems here with a Rakefile carry no such file; switches keeps spec/all.rb because its Rakefile targets it, and bitget carries the same redundancy this removes.
6
+ - ~ test/Imap/Message_test.rb: must_match(/Mock body/) for must_match /Mock body/, the ambiguous / which warning = true reports and which is the only warning the suite raises.
7
+ - ~ imap.gemspec: + 'Rakefile' to spec.files, as eodhd, switches and moby have.
8
+ - ~ Imap::VERSION: /0.4.3/0.4.4/
9
+
10
+ ## [0.4.3] - 2026-09-17, ~ test/test_helper.rb: + require 'minitest/mock', which minitest 6 no longer brings
11
+ - ~ 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.
12
+ - ~ imap.gemspec: + minitest-mock as a development dependency, which minitest ~> 5.0 carried and minitest 6 does not.
13
+ - ~ Imap::VERSION: /0.4.2/0.4.3/
14
+
3
15
  ## [0.4.2] - 2026-09-10, ~ lib/imap.rb: + require_relative './Imap/VERSION'; + test/Imap/VERSION_test.rb
4
16
  - ~ 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
17
  - + 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.
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # Rakefile
2
+
3
+ require 'rake/testtask'
4
+
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << 'lib'
7
+ t.libs << 'test'
8
+ t.test_files = FileList['test/**/*_test.rb']
9
+ t.warning = true
10
+ end
11
+
12
+ task default: :test
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 = [
@@ -28,6 +29,7 @@ Gem::Specification.new do |spec|
28
29
  Dir['lib/**/*.rb'],
29
30
  Dir['test/**/*.rb'],
30
31
  'CHANGELOG',
32
+ 'Rakefile',
31
33
  'LICENSE',
32
34
  'README.md',
33
35
  ].flatten
data/lib/Imap/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Imap
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.4'
3
3
  end
@@ -32,7 +32,7 @@ describe Imap::Message do
32
32
 
33
33
  describe '#body' do
34
34
  it 'returns the message body' do
35
- _(imap_message.body).must_match /Mock body/
35
+ _(imap_message.body).must_match(/Mock body/)
36
36
  end
37
37
 
38
38
  it 'caches the result' do
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.2
4
+ version: 0.4.4
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
@@ -61,6 +75,7 @@ files:
61
75
  - CHANGELOG
62
76
  - LICENSE
63
77
  - README.md
78
+ - Rakefile
64
79
  - imap.gemspec
65
80
  - lib/Imap/Message.rb
66
81
  - lib/Imap/Search.rb
@@ -70,7 +85,6 @@ files:
70
85
  - test/Imap/Search_test.rb
71
86
  - test/Imap/VERSION_test.rb
72
87
  - test/imap_test.rb
73
- - test/test_all.rb
74
88
  - test/test_helper.rb
75
89
  homepage: https://github.com/thoran/imap
76
90
  licenses:
@@ -90,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
104
  - !ruby/object:Gem::Version
91
105
  version: '0'
92
106
  requirements: []
93
- rubygems_version: 4.0.19
107
+ rubygems_version: 4.0.20
94
108
  specification_version: 4
95
109
  summary: IMAP for Ruby made easy.
96
110
  test_files: []
data/test/test_all.rb DELETED
@@ -1,6 +0,0 @@
1
- # test/test_all.rb
2
-
3
- require_relative './test_helper'
4
- require_relative './Imap_test'
5
- require_relative './Imap/Message_test'
6
- require_relative './Imap/Search_test'