koinz 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ class Email < ActionMailer::Base
2
+ default :from => 'no-reply@koinz.com',
3
+ :return_path => 'no-reply@koinz.com',
4
+ :content_type => 'text/html'
5
+
6
+ def post(options)
7
+ mail(options)
8
+ end
9
+ end
@@ -37,5 +37,9 @@ module Koinz
37
37
  def self.publish(event, payload)
38
38
  REDIS.publish(event, payload)
39
39
  end
40
+
41
+ def self.email(payload)
42
+ Email.post(payload).deliver
43
+ end
40
44
  end
41
45
  end
data/lib/koinz/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Koinz
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/koinz.rb CHANGED
@@ -2,3 +2,4 @@ require 'koinz/koinz'
2
2
  require 'koinz/omniauth_client'
3
3
  require 'koinz/redis'
4
4
  require 'koinz/notification'
5
+ require 'koinz/email'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koinz
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gautam Rege
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-05 00:00:00 +05:30
18
+ date: 2011-01-10 00:00:00 +05:30
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -76,6 +76,7 @@ files:
76
76
  - Rakefile
77
77
  - koinz.gemspec
78
78
  - lib/koinz.rb
79
+ - lib/koinz/email.rb
79
80
  - lib/koinz/koinz.rb
80
81
  - lib/koinz/notification.rb
81
82
  - lib/koinz/omniauth_client.rb