Skip to content

Commit

Permalink
Add fix for issue #4 and add version for ruby-ole dependency.
Browse files Browse the repository at this point in the history
git-svn-id: https://ruby-msg.googlecode.com/svn/trunk@99 c30d66de-b626-0410-988f-81f6512a6d81
  • Loading branch information
aquasync committed Aug 21, 2007
1 parent 3ad330a commit f9d49bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec = Gem::Specification.new do |s|

s.autorequire = 'msg'

s.add_dependency 'ruby-ole'
s.add_dependency 'ruby-ole', '>=1.2.1'
end

Rake::GemPackageTask.new(spec) do |p|
Expand Down
4 changes: 2 additions & 2 deletions lib/msg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def populate_headers
# of the ole name, or just leave it if we can't
recips = recips_by_type[type]
recips = (recips.sort_by { |r| r.obj.name[/\d{8}$/].hex } rescue recips)
# are you supposed to use ; or , to separate?
# switched to using , for separation, not ;. see issue #4
# recips.empty? is strange. i wouldn't have thought it possible, but it was right?
headers[type.to_s.sub(/^(.)/) { $1.upcase }] = [recips.join('; ')] unless recips.empty?
headers[type.to_s.sub(/^(.)/) { $1.upcase }] = [recips.join(', ')] unless recips.empty?
end
headers['Subject'] = [props.subject] if props.subject

Expand Down

0 comments on commit f9d49bb

Please sign in to comment.