gmail_sender 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/gmail +4 -2
  3. data/gmail_sender.gemspec +2 -2
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/bin/gmail CHANGED
@@ -55,8 +55,10 @@ end
55
55
 
56
56
 
57
57
  mailer = GmailSender.new(params['sender_user'], params['sender_password'], params['sender_domain'])
58
- params['attachments'].each do |attachment|
59
- mailer.attach(attachment)
58
+ if params['attachments']
59
+ params['attachments'].each do |attachment|
60
+ mailer.attach(attachment)
61
+ end
60
62
  end
61
63
  content = params['content'] || (params['attachments'] && params['attachments'].join("\n"))
62
64
  mailer.send(params['receiver_email'], params['subject'], content || STDIN.read)
data/gmail_sender.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gmail_sender}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Daniel Cadenas"]
12
- s.date = %q{2009-12-24}
12
+ s.date = %q{2010-01-14}
13
13
  s.default_executable = %q{gmail}
14
14
  s.email = %q{dcadenas@gmail.com}
15
15
  s.executables = ["gmail"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmail_sender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Cadenas
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-24 00:00:00 -02:00
12
+ date: 2010-01-14 00:00:00 -02:00
13
13
  default_executable: gmail
14
14
  dependencies: []
15
15