no_notifier_needed 2.0.17 → 2.1.0

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.17
1
+ 2.1.0
@@ -1,5 +1,5 @@
1
1
  class Notifier < ActionMailer::Base
2
- # helper :application, :notifier
2
+ # helper :application, :notifier
3
3
 
4
4
  #Includes to Help with Rendering
5
5
  include Rails.application.routes.url_helpers # brings ActionDispatch::Routing::UrlFor
@@ -15,6 +15,17 @@ class Notifier < ActionMailer::Base
15
15
  @template = EmailTemplate.find_by_name(email_name)
16
16
  raise "Email Template name not found" if @template.nil?
17
17
 
18
+ if @template.send_via_mandrill?
19
+ Notifier.smtp_settings = {
20
+ :address => "smtp.mandrillapp.com",
21
+ :port => NoNotifierNeeded.mandrill_port,
22
+ :enable_starttls_auto => true, # detects and uses STARTTLS
23
+ :user_name => NoNotifierNeeded.mandrill_user_name,
24
+ :password => NoNotifierNeeded.mandrill_password,
25
+ :authentication => 'login' # Mandrill supports 'plain' or 'login'
26
+ }
27
+ end
28
+
18
29
  args_to_instance_vars(args)
19
30
 
20
31
  send_hash = get_send_hash(@template)
@@ -4,17 +4,6 @@ module NoNotifierNeeded
4
4
  @template = EmailTemplate.find_by_name(email_name)
5
5
  raise "Email Template name not found" if @template.nil?
6
6
 
7
- if @template.send_via_mandrill?
8
- ActionMailer::Base.smtp_settings = {
9
- :address => "smtp.mandrillapp.com",
10
- :port => NoNotifierNeeded.mandrill_port,
11
- :enable_starttls_auto => true, # detects and uses STARTTLS
12
- :user_name => NoNotifierNeeded.mandrill_user_name,
13
- :password => NoNotifierNeeded.mandrill_password,
14
- :authentication => 'login' # Mandrill supports 'plain' or 'login'
15
- }
16
- end
17
-
18
7
  args_to_instance_vars(args)
19
8
 
20
9
  mail_is = mail(get_send_hash) do|format|
@@ -9,9 +9,6 @@ require 'no_notifier_needed/railtie'
9
9
  module NoNotifierNeeded
10
10
  extend Config
11
11
  extend Send
12
- # include Render
13
- # include Translate
14
- # include Sender
15
12
 
16
13
  def self.sender(options={})
17
14
  NoNotifierNeeded::Sender.new(options)
@@ -30,5 +27,3 @@ module NoNotifierNeeded
30
27
  return sender.respond_to?(method) || super
31
28
  end
32
29
  end
33
-
34
- #require 'no_notifier_needed/railtie.rb' if defined?(Rails)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "no_notifier_needed"
8
- s.version = "2.0.17"
8
+ s.version = "2.1.0"
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-02-13"
12
+ s.date = "2013-02-14"
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.0.17
4
+ version: 2.1.0
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-02-13 00:00:00.000000000 Z
12
+ date: 2013-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: haml
@@ -258,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
258
258
  version: '0'
259
259
  segments:
260
260
  - 0
261
- hash: -79091945844534265
261
+ hash: 1511180290832466023
262
262
  required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  none: false
264
264
  requirements: