imap 0.4.0 → 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: 587a50234d8535c27ceeace7941c30f74147ef68bb65e835eb84b04878bc91c7
4
- data.tar.gz: 2778297913ec8a25dcb39e014cff11c538b8eee0bb706846d13045f744995096
3
+ metadata.gz: 9b6a23a10253422d92d39fedd0aaf2b049f9299e469591eeb29ba818a464c294
4
+ data.tar.gz: 0522d1df9b764e67e9b9387ace78e2e0d2c10fd8d9514a43ed6a91993b183d40
5
5
  SHA512:
6
- metadata.gz: fb5a7c2332893c2a2fd9c0728480a6c098302d14a389986c1003cc5b547ec85a9dbff6ab4f7927bfdc5039b45d54719da17a1b1b4e0e88f35a03d741cb096313
7
- data.tar.gz: 8ac81274dd278a5fd71fa3434837df50c39a73db7e311e9ddfdc15e51e7320992383987a129f321cbda3a6ad8c2a8da55ab02c272a713e2ed8a9ff72f7af0768
6
+ metadata.gz: 7975fc5e941153f9667f453b2e48919fb18251628706a98c06c22648e78457a253fd192b7650497c2fc712b81c0dbb87e2a7e82de1a2c5e2c0e7f01d3f0c8471
7
+ data.tar.gz: 55231af457bf5e7d541fbab46c9934094d844fb22c4702bf9a4f095d9c1814ea4255b2a763d83c4d528858440ace311bae89930f8777b3776abbf14f09ba2afb
data/CHANGELOG ADDED
@@ -0,0 +1,18 @@
1
+ # CHANGELOG
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
+
9
+ ## [0.4.1] - 2026-08-22, + LICENSE; ~ imap.gemspec: + CHANGELOG
10
+ - + LICENSE: the MIT text, copyright 2025-2026 thoran. The gemspec had declared MIT while the repository carried no licence text at all.
11
+ - ~ imap.gemspec: + 'LICENSE' and 'CHANGELOG' to spec.files, neither of which the gem had been shipping.
12
+ - ~ Imap::VERSION: /0.4.0/0.4.1/
13
+
14
+ ## [0.4.0] - 2025-12-20, Cleanup for publishing.
15
+ - /ImapClient/Imap/
16
+ - + imap.gemspec
17
+ - + tests
18
+ - + Imap::Message#to.
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 thoran
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/imap.gemspec CHANGED
@@ -26,8 +26,10 @@ Gem::Specification.new do |spec|
26
26
  spec.files = [
27
27
  'imap.gemspec',
28
28
  Dir['lib/**/*.rb'],
29
+ Dir['test/**/*.rb'],
30
+ 'CHANGELOG',
31
+ 'LICENSE',
29
32
  'README.md',
30
- Dir['test/**/*.rb']
31
33
  ].flatten
32
34
  spec.require_paths = ['lib']
33
35
  end
data/lib/Imap/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Imap
2
- VERSION = '0.4.0'
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.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -58,6 +58,8 @@ executables: []
58
58
  extensions: []
59
59
  extra_rdoc_files: []
60
60
  files:
61
+ - CHANGELOG
62
+ - LICENSE
61
63
  - README.md
62
64
  - imap.gemspec
63
65
  - lib/Imap/Message.rb
@@ -66,6 +68,7 @@ files:
66
68
  - lib/imap.rb
67
69
  - test/Imap/Message_test.rb
68
70
  - test/Imap/Search_test.rb
71
+ - test/Imap/VERSION_test.rb
69
72
  - test/imap_test.rb
70
73
  - test/test_all.rb
71
74
  - test/test_helper.rb
@@ -87,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
90
  - !ruby/object:Gem::Version
88
91
  version: '0'
89
92
  requirements: []
90
- rubygems_version: 4.0.2
93
+ rubygems_version: 4.0.19
91
94
  specification_version: 4
92
95
  summary: IMAP for Ruby made easy.
93
96
  test_files: []