maildir 2.2.0 → 2.2.1
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 +4 -4
- data/bin/rake +16 -0
- data/lib/maildir.rb +2 -1
- data/lib/maildir/version.rb +1 -1
- data/test/test_message.rb +5 -0
- data/test/test_serializers.rb +4 -1
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a176f1ec0ee95f1ac07a290050324663261cba6d
|
4
|
+
data.tar.gz: bb6db71c09e4ff1ed2f5631c9b7d8d317949d268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 155410fc05ce7dfad4ee4791e8361d34bc2297265fcfc0f539a7858d52ed69057b45d54017bf3f7973869e2c08e35364e1dff4801613d128aa58e8e7ba0a6741
|
7
|
+
data.tar.gz: bd5cf2e5896568f0d53658f680d38494292c5f4a0cc271526f0ad65f8411da32aff0134f797d4280d99a65f99b8d12b7878c46e0f30b0a43a1fe82cbcf8cfb37
|
data/bin/rake
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rake' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('rake', 'rake')
|
data/lib/maildir.rb
CHANGED
@@ -17,7 +17,8 @@ class Maildir
|
|
17
17
|
attr_accessor :serializer
|
18
18
|
|
19
19
|
# Default serializer.
|
20
|
-
|
20
|
+
DEFAULT_SERIALIZER = Maildir::Serializer::Base.new.freeze
|
21
|
+
@@serializer = DEFAULT_SERIALIZER
|
21
22
|
|
22
23
|
# Gets the default serializer.
|
23
24
|
def self.serializer
|
data/lib/maildir/version.rb
CHANGED
data/test/test_message.rb
CHANGED
@@ -77,6 +77,11 @@ class TestMessage < Minitest::Test
|
|
77
77
|
assert File.exists?(@message.path)
|
78
78
|
end
|
79
79
|
|
80
|
+
# Detect order-dependent regressions when SEED=48094.
|
81
|
+
should "use the Base serializer" do
|
82
|
+
assert_equal Maildir::Serializer::Base, Maildir.serializer.class
|
83
|
+
end
|
84
|
+
|
80
85
|
should "have the correct data" do
|
81
86
|
assert_equal @data, @message.data
|
82
87
|
end
|
data/test/test_serializers.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require_relative 'helper'
|
2
2
|
class TestSerializers < Minitest::Test
|
3
3
|
|
4
|
-
|
5
4
|
serializers = [
|
6
5
|
# Test the base serializer with a string
|
7
6
|
[Maildir::Serializer::Base, lambda {|data| data}],
|
@@ -35,6 +34,10 @@ class TestSerializers < Minitest::Test
|
|
35
34
|
@message = temp_maildir.add(@data)
|
36
35
|
end
|
37
36
|
|
37
|
+
teardown do
|
38
|
+
Maildir.serializer = Maildir::DEFAULT_SERIALIZER
|
39
|
+
end
|
40
|
+
|
38
41
|
should "have the correct data" do
|
39
42
|
assert_equal @data, @message.data
|
40
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maildir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Suggs
|
8
|
+
- Todd A. Jacobs
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
+
date: 2015-03-22 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|
@@ -82,7 +83,9 @@ dependencies:
|
|
82
83
|
version: 0.3.2
|
83
84
|
description: A ruby library for reading and writing arbitrary messages in DJB's maildir
|
84
85
|
format
|
85
|
-
email:
|
86
|
+
email:
|
87
|
+
- aaron@ktheory.com
|
88
|
+
- spamivore+maildir.gem@codegnome.org
|
86
89
|
executables: []
|
87
90
|
extensions: []
|
88
91
|
extra_rdoc_files: []
|
@@ -90,6 +93,7 @@ files:
|
|
90
93
|
- LICENSE
|
91
94
|
- README.rdoc
|
92
95
|
- Rakefile
|
96
|
+
- bin/rake
|
93
97
|
- lib/maildir.rb
|
94
98
|
- lib/maildir/message.rb
|
95
99
|
- lib/maildir/serializer/base.rb
|
@@ -129,8 +133,8 @@ signing_key:
|
|
129
133
|
specification_version: 4
|
130
134
|
summary: Read & write messages in the maildir format
|
131
135
|
test_files:
|
132
|
-
- test/
|
133
|
-
- test/test_unique_name.rb
|
136
|
+
- test/helper.rb
|
134
137
|
- test/test_maildir.rb
|
135
138
|
- test/test_message.rb
|
136
|
-
- test/
|
139
|
+
- test/test_serializers.rb
|
140
|
+
- test/test_unique_name.rb
|