maildir 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1fb9ccc7242532f5e36faf35d23d198f3bbaf60
4
- data.tar.gz: e110f4de262ddefd243c3472b82b28a69881bb87
3
+ metadata.gz: a176f1ec0ee95f1ac07a290050324663261cba6d
4
+ data.tar.gz: bb6db71c09e4ff1ed2f5631c9b7d8d317949d268
5
5
  SHA512:
6
- metadata.gz: 1ee591c840b4916db962d5c7cdb865311cd58f54b4bf78710fa32606cdd38867ff5a525ca1d1e53b48bc36fddf27134eacf436ff29f5d355e398cf604aa9eecb
7
- data.tar.gz: 3ecb6b1ee524b73f321669d5fe734adc8aeac735d5c9a395471ff162a876e00ad2b288ad1d7f3728ff8c0f7d7c3244d7a65371f0d190413fd0b7b40d912b9ffc
6
+ metadata.gz: 155410fc05ce7dfad4ee4791e8361d34bc2297265fcfc0f539a7858d52ed69057b45d54017bf3f7973869e2c08e35364e1dff4801613d128aa58e8e7ba0a6741
7
+ data.tar.gz: bd5cf2e5896568f0d53658f680d38494292c5f4a0cc271526f0ad65f8411da32aff0134f797d4280d99a65f99b8d12b7878c46e0f30b0a43a1fe82cbcf8cfb37
@@ -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')
@@ -17,7 +17,8 @@ class Maildir
17
17
  attr_accessor :serializer
18
18
 
19
19
  # Default serializer.
20
- @@serializer = Maildir::Serializer::Base.new
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
@@ -1,3 +1,3 @@
1
1
  class Maildir
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.1'
3
3
  end
@@ -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
@@ -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.0
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-02-03 00:00:00.000000000 Z
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: aaron@ktheory.com
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/test_serializers.rb
133
- - test/test_unique_name.rb
136
+ - test/helper.rb
134
137
  - test/test_maildir.rb
135
138
  - test/test_message.rb
136
- - test/helper.rb
139
+ - test/test_serializers.rb
140
+ - test/test_unique_name.rb