disclosure 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module Disclosure
2
2
  class EmailReactor < ActionMailer::Base
3
- default Disclosure.configuration.email_reactor_defaults
3
+ default from: Proc.new { Disclosure.configuration.mail_sender }
4
4
 
5
5
  def react!(model, action, user)
6
6
  self.notification(model, action, user).deliver
@@ -1,11 +1,11 @@
1
1
  class Disclosure::Configuration
2
- attr_accessor :owner_class, :notifier_classes, :reactor_classes, :email_reactor_defaults
2
+ attr_accessor :owner_class, :notifier_classes, :reactor_classes, :mail_sender
3
3
 
4
4
  def initialize
5
5
  self.owner_class = "User"
6
6
  self.reactor_classes = [Disclosure::EmailReactor]
7
7
  self.notifier_classes = []
8
- self.email_reactor_defaults = {:from => "please-change-me@localhost"}
8
+ self.mail_sender = "please-change-me@localhost"
9
9
  end
10
10
 
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Disclosure
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disclosure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-05 00:00:00.000000000 Z
12
+ date: 2013-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -100,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: -2030519306870457110
103
+ hash: 267531103065366895
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  segments:
111
111
  - 0
112
- hash: -2030519306870457110
112
+ hash: 267531103065366895
113
113
  requirements: []
114
114
  rubyforge_project:
115
115
  rubygems_version: 1.8.23