no_notifier_needed 2.3.4 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.4
1
+ 2.3.5
@@ -24,6 +24,16 @@ class Notifier < ActionMailer::Base
24
24
  :password => NoNotifierNeeded.mandrill_password,
25
25
  :authentication => 'login' # Mandrill supports 'plain' or 'login'
26
26
  }
27
+ else
28
+ Notifier.smtp_settings = {
29
+ address: 'smtp.gmail.com',
30
+ port: 587,
31
+ domain: NoNotifierNeeded.domain,
32
+ user_name: NoNotifierNeeded.gmail_user_name,
33
+ password: NoNotifierNeeded.gmail_password,
34
+ authentication: 'login',
35
+ enable_starttls_auto: true
36
+ }
27
37
  end
28
38
 
29
39
  args_to_instance_vars(args)
@@ -14,6 +14,9 @@ module NoNotifierNeeded
14
14
  :mandrill_port,
15
15
  :current_user_model,
16
16
  :current_user_id_method,
17
+ :gmail_password,
18
+ :gmail_user_name,
19
+ :domain
17
20
  ].freeze
18
21
 
19
22
  # @private
@@ -29,6 +29,7 @@ module NoNotifierNeeded
29
29
  #else make it a @#{name}=#{value}
30
30
 
31
31
  args.each do |k,v|
32
+ k, v = k.to_s, v.to_s
32
33
  if Object.const_defined?(k.classify) && known_models.include?(k.classify.constantize)
33
34
  self.instance_eval("@#{k}= #{k.classify}.find(#{v})")
34
35
  else
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "no_notifier_needed"
8
- s.version = "2.3.4"
8
+ s.version = "2.3.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Robert R. Meyer"]
12
- s.date = "2013-04-15"
12
+ s.date = "2013-05-03"
13
13
  s.description = "A work in progress: Replace ActionMailer::Base class redundency. Temlating using haml or erb."
14
14
  s.email = "Blue.Dog.Archolite@gmail.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: no_notifier_needed
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
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-15 00:00:00.000000000 Z
12
+ date: 2013-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: haml