sortah 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,14 @@
1
1
  ##11/02/11
2
2
 
3
+ ### BUG FIXES
4
+
3
5
  - fixed the "sortah hangs when redirecting to another router" bug
4
6
  - this required changing cleanroom to be a normal Object subclass, instead of
5
7
  a BasicObject subclass, I need to investigate re-adding certain methods to
6
8
  Object so that the throw/catch machinery will be in place for BasicObject
9
+ - fixed an error in the bin/sortah script which caused emails to sometimes be
10
+ read with the headers as part of the body.
11
+
12
+ ### MINOR IMPROVEMENTS
13
+
7
14
  - made bin/sortah more verbose
data/bin/sortah CHANGED
@@ -13,9 +13,7 @@ end
13
13
  puts "Dry-run mode" if opts[:"dry-run"]
14
14
 
15
15
  puts "Reading mail" if opts[:verbose]
16
- email = Mail.new do
17
- body ARGF.read
18
- end
16
+ email = Mail.new(ARGF.read)
19
17
 
20
18
  puts "Loading sortah rc" if opts[:verbose]
21
19
  load File.expand_path(opts[:rc])
@@ -1,3 +1,3 @@
1
1
  module Sortah
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -357,13 +357,14 @@ describe Sortah do
357
357
  end
358
358
 
359
359
  personal_email = Mail.new do
360
- To 'jfredett@place.com'
361
- From 'sfredett@somewhere.com'
360
+ to 'jfredett@place.com'
361
+ from 'sfredett@somewhere.com'
362
362
  end
363
+
363
364
  work_email = Mail.new do
364
- To 'joe@work.com'
365
- From 'brian@work.com'
366
- Subject 'You get a raise, you brilliant bastard.'
365
+ to 'joe@work.com'
366
+ from 'brian@work.com'
367
+ subject 'You get a raise, you brilliant bastard.'
367
368
  #shuttup, I can dream.
368
369
  end
369
370
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sortah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-02 00:00:00.000000000Z
12
+ date: 2011-11-03 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail
16
- requirement: &2164841700 !ruby/object:Gem::Requirement
16
+ requirement: &2161518260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2164841700
24
+ version_requirements: *2161518260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: trollop
27
- requirement: &2164841260 !ruby/object:Gem::Requirement
27
+ requirement: &2161517580 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2164841260
35
+ version_requirements: *2161517580
36
36
  description: ! "\n Sortah provides a simple, declarative internal DSL for sorting
37
37
  \n your email. It provides an executable which may serve as an external\n mail
38
38
  delivery agent for such programs as `getmail`. Finally, since\n your sorting