imap 0.4.3 → 0.4.5

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: e81ccc78552de60b7572c00689364274012b24af157f81fdd21c4caa4a8b31dc
4
- data.tar.gz: 432db4843d22cf60959de2ea0fe0ab43ecd1fc2da4c8b0858ef5045e24a57174
3
+ metadata.gz: 78ec20b3a5517359526f4c5e0437a05b1ab97be444c1e1c741992f1ea595376e
4
+ data.tar.gz: d5d2ac27eb982ff25264eaf947ee71981fba45cfc645b34dcce8148617a4c790
5
5
  SHA512:
6
- metadata.gz: 2dafa33325fcc4b61c9fa6a9d79ade8319b7b1c0a6738fd7f233f491cab209e6a65dc6d36a82a443263dbffb9fba6ac6a4be5fa56106a639703cc52f4176768b
7
- data.tar.gz: 8bcb54f18b64616cad2e6220da09a3f70c04e29c3aa33e7cc8824535f1dc7e402c8bddfa3523b5ad8e9bdfe11805eeb2c70edb2b66217b90f9ec08bd22642426
6
+ metadata.gz: 6a470cbf282ff1c1b84e6283b8e6a882262e02379eb03a50a65657346624667f576c5f14fecc1471ac94be2d6fe83bdca7f0d57ba76d65f613330662527c8e50
7
+ data.tar.gz: 9754404cd62da6dfd26caa4e9c0ef3a7023704ff8f99da0864e57835a605b7c1dd04d4f992e35700184802ca1e6f075734ac89e3767234b1fd8cafb674f27315
data/CHANGELOG CHANGED
@@ -1,5 +1,20 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [0.4.5] - 2026-09-17, + Gemfile; ~ imap.gemspec: dependencies=, - spec.date, + metadata
4
+ - + Gemfile: source and gemspec, as switches, eodhd and moby have it, so that the dependencies are declared once in the gemspec rather than restated here to drift. bitget and coinmarketcap restate theirs and are the minority. This was the only gem here with no Gemfile at all.
5
+ - ~ imap.gemspec: + 'Gemfile' to spec.files, which every other gem here ships.
6
+ - ~ imap.gemspec: dependencies= and development_dependencies= through the Gem::Specification extension, as switches, eodhd and moby have it and as bitget, coinmarketcap and this did not. The constraints survive: the splat takes a bare string or a [name, constraint] pair alike.
7
+ - ~ imap.gemspec: - spec.date = '2025-12-20', nine months and two versions stale, and the last one left in the estate. RubyGems answers 1980-01-02 in its place, the reproducible-build epoch, which is what coinmarketcap has carried since dropping its own at 0.6.0.
8
+ - ~ imap.gemspec: + metadata, the four uris switches and moby declare, so that the RubyGems page links to the issues, the changelog, the source and the README. master here where moby says main, each by the branch it is on.
9
+ - ~ Imap::VERSION: /0.4.4/0.4.5/
10
+
11
+ ## [0.4.4] - 2026-09-17, + Rakefile, - test/test_all.rb
12
+ - + 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.
13
+ - - 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.
14
+ - ~ 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.
15
+ - ~ imap.gemspec: + 'Rakefile' to spec.files, as eodhd, switches and moby have.
16
+ - ~ Imap::VERSION: /0.4.3/0.4.4/
17
+
3
18
  ## [0.4.3] - 2026-09-17, ~ test/test_helper.rb: + require 'minitest/mock', which minitest 6 no longer brings
4
19
  - ~ 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
20
  - ~ imap.gemspec: + minitest-mock as a development dependency, which minitest ~> 5.0 carried and minitest 6 does not.
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
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
@@ -2,11 +2,20 @@
2
2
 
3
3
  require_relative './lib/Imap/VERSION'
4
4
 
5
+ class Gem::Specification
6
+ def dependencies=(gems)
7
+ gems.each{|gem| add_dependency(*gem)}
8
+ end
9
+
10
+ def development_dependencies=(gems)
11
+ gems.each{|gem| add_development_dependency(*gem)}
12
+ end
13
+ end
14
+
5
15
  Gem::Specification.new do |spec|
6
16
  spec.name = 'imap'
7
17
 
8
18
  spec.version = Imap::VERSION
9
- spec.date = '2025-12-20'
10
19
 
11
20
  spec.summary = "IMAP for Ruby made easy."
12
21
  spec.description = "A Ruby wrapper around Net::IMAP with an elegant DSL for searching, reading, and managing email."
@@ -18,19 +27,32 @@ Gem::Specification.new do |spec|
18
27
 
19
28
  spec.required_ruby_version = '>= 2.7'
20
29
 
21
- spec.add_dependency 'net-imap', "~> 0.4"
30
+ spec.dependencies = [
31
+ ['net-imap', '~> 0.4']
32
+ ]
22
33
 
23
- spec.add_development_dependency 'minitest', '~> 5.0'
24
- spec.add_development_dependency 'minitest-mock'
25
- spec.add_development_dependency 'rake', '~> 13.0'
34
+ spec.development_dependencies = [
35
+ ['minitest', '~> 5.0'],
36
+ 'minitest-mock',
37
+ ['rake', '~> 13.0']
38
+ ]
26
39
 
27
40
  spec.files = [
28
41
  'imap.gemspec',
29
42
  Dir['lib/**/*.rb'],
30
43
  Dir['test/**/*.rb'],
31
44
  'CHANGELOG',
45
+ 'Gemfile',
46
+ 'Rakefile',
32
47
  'LICENSE',
33
48
  'README.md',
34
49
  ].flatten
35
50
  spec.require_paths = ['lib']
51
+
52
+ spec.metadata = {
53
+ "bug_tracker_uri" => "https://github.com/thoran/imap/issues",
54
+ "changelog_uri" => "https://github.com/thoran/imap/blob/master/CHANGELOG",
55
+ "source_code_uri" => "https://github.com/thoran/imap",
56
+ "documentation_uri" => "https://github.com/thoran/imap/blob/master/README.md"
57
+ }
36
58
  end
data/lib/Imap/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Imap
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.5'
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
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-12-20 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: net-imap
@@ -73,8 +73,10 @@ extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
75
  - CHANGELOG
76
+ - Gemfile
76
77
  - LICENSE
77
78
  - README.md
79
+ - Rakefile
78
80
  - imap.gemspec
79
81
  - lib/Imap/Message.rb
80
82
  - lib/Imap/Search.rb
@@ -84,12 +86,15 @@ files:
84
86
  - test/Imap/Search_test.rb
85
87
  - test/Imap/VERSION_test.rb
86
88
  - test/imap_test.rb
87
- - test/test_all.rb
88
89
  - test/test_helper.rb
89
90
  homepage: https://github.com/thoran/imap
90
91
  licenses:
91
92
  - MIT
92
- metadata: {}
93
+ metadata:
94
+ bug_tracker_uri: https://github.com/thoran/imap/issues
95
+ changelog_uri: https://github.com/thoran/imap/blob/master/CHANGELOG
96
+ source_code_uri: https://github.com/thoran/imap
97
+ documentation_uri: https://github.com/thoran/imap/blob/master/README.md
93
98
  rdoc_options: []
94
99
  require_paths:
95
100
  - lib
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'