jmazzi-atnotify 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. data/bin/atnotify +3 -1
  2. metadata +1 -1
data/bin/atnotify CHANGED
@@ -24,7 +24,9 @@ else
24
24
  end
25
25
  body = ""
26
26
  twit.replies(conditions).each do |s|
27
- Post.create(:username => s.user.screen_name, :name => s.user.name, :body => s.text, :last_post_id => s.id)
27
+ p = Post.new
28
+ p.attributes = {:username => s.user.screen_name, :name => s.user.name, :body => s.text, :last_post_id => s.id}
29
+ p.save!
28
30
  body << "#{s.user.name} said: #{s.text} At #{Time.parse(s.created_at).strftime("%I:%M %p %b %d")}\n"
29
31
  end
30
32
  send_mail(config['email'], body) unless body.empty?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jmazzi-atnotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Mazzi