digest_notifier 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{digest_notifier}
8
- s.version = "0.0.6"
7
+ s.name = "digest_notifier"
8
+ s.version = "0.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Naveed Ahmad}]
12
- s.date = %q{2013-01-04}
13
- s.description = %q{pending}
14
- s.email = %q{naveedahmada036@gmail.com}
11
+ s.authors = ["Naveed Ahmad"]
12
+ s.date = "2013-02-12"
13
+ s.description = "pending"
14
+ s.email = "naveedahmada036@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.md",
@@ -44,11 +44,11 @@ Gem::Specification.new do |s|
44
44
  "lib/generators/digest_notifier/templates/create_digest_email_items.rb",
45
45
  "lib/generators/digest_notifier/templates/digest_notifier_config.rb"
46
46
  ]
47
- s.homepage = %q{http://github.com/naveed-ahmad/digest_notifier}
48
- s.licenses = [%q{MIT}]
49
- s.require_paths = [%q{lib}]
50
- s.rubygems_version = %q{1.8.6}
51
- s.summary = %q{Send notifications to user via one digest email.}
47
+ s.homepage = "http://github.com/naveed-ahmad/digest_notifier"
48
+ s.licenses = ["MIT"]
49
+ s.require_paths = ["lib"]
50
+ s.rubygems_version = "1.8.25"
51
+ s.summary = "Send notifications to user via one digest email."
52
52
 
53
53
  if s.respond_to? :specification_version then
54
54
  s.specification_version = 3
@@ -16,7 +16,7 @@ class DigestEmailGroup < ActiveRecord::Base
16
16
  end
17
17
 
18
18
  def digest_recipients
19
- I18n::t("digest_notifier.#{i18n_name_space}.recipient", :default => recipients).to_s.split(',')
19
+ I18n::t("digest_notifier.#{i18n_name_space}.recipient", :default => default_recipients).to_s.split(',')
20
20
  end
21
21
 
22
22
  def create_digest_items(performable)
@@ -44,4 +44,9 @@ class DigestEmailGroup < ActiveRecord::Base
44
44
  group
45
45
  end
46
46
  end
47
+
48
+ protected
49
+ def default_recipients
50
+ recipients || I18n::t("digest_notifier.digest_mailer.recipient")
51
+ end
47
52
  end
@@ -9,7 +9,7 @@ module DigestNotifier
9
9
  end
10
10
 
11
11
  def method_missing(method, *args)
12
- DigestEmailGroup.enqueue PerformableDigest.new(@target, method.to_sym, args, @options)
12
+ ::DigestEmailGroup.enqueue PerformableDigest.new(@target, method.to_sym, args, @options)
13
13
  end
14
14
  end
15
15
 
@@ -4,7 +4,7 @@ module DigestNotifier
4
4
  # Digest email sender
5
5
  #
6
6
  mattr_accessor :mailer_sender
7
-
7
+
8
8
  #Delete digest enteries after sending email
9
9
  #false by default
10
10
  mattr_accessor :delete_digest_after_sending
@@ -32,12 +32,12 @@ module DigestNotifier
32
32
  @app_name ||= Rails.application.class.parent.to_s
33
33
  end
34
34
  end
35
-
35
+
36
36
  ActionMailer::Base.class_eval do
37
37
  extend DigestNotifier::MessageSending
38
38
  end
39
39
  end
40
-
41
40
  require 'app/mailer/digest_mailer'
41
+
42
42
  require 'digest_notifier/railtie' if defined?(Rails::Railtie)
43
43
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digest_notifier
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Naveed Ahmad
@@ -15,9 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-04 00:00:00 Z
18
+ date: 2013-02-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
+ prerelease: false
21
22
  name: slim
22
23
  version_requirements: &id001 !ruby/object:Gem::Requirement
23
24
  none: false
@@ -30,10 +31,10 @@ dependencies:
30
31
  - 0
31
32
  - 4
32
33
  version: 1.0.4
33
- prerelease: false
34
- requirement: *id001
35
34
  type: :runtime
35
+ requirement: *id001
36
36
  - !ruby/object:Gem::Dependency
37
+ prerelease: false
37
38
  name: shoulda
38
39
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
40
  none: false
@@ -44,10 +45,10 @@ dependencies:
44
45
  segments:
45
46
  - 0
46
47
  version: "0"
47
- prerelease: false
48
- requirement: *id002
49
48
  type: :development
49
+ requirement: *id002
50
50
  - !ruby/object:Gem::Dependency
51
+ prerelease: false
51
52
  name: rdoc
52
53
  version_requirements: &id003 !ruby/object:Gem::Requirement
53
54
  none: false
@@ -59,10 +60,10 @@ dependencies:
59
60
  - 3
60
61
  - 12
61
62
  version: "3.12"
62
- prerelease: false
63
- requirement: *id003
64
63
  type: :development
64
+ requirement: *id003
65
65
  - !ruby/object:Gem::Dependency
66
+ prerelease: false
66
67
  name: bundler
67
68
  version_requirements: &id004 !ruby/object:Gem::Requirement
68
69
  none: false
@@ -75,10 +76,10 @@ dependencies:
75
76
  - 0
76
77
  - 0
77
78
  version: 1.0.0
78
- prerelease: false
79
- requirement: *id004
80
79
  type: :development
80
+ requirement: *id004
81
81
  - !ruby/object:Gem::Dependency
82
+ prerelease: false
82
83
  name: jeweler
83
84
  version_requirements: &id005 !ruby/object:Gem::Requirement
84
85
  none: false
@@ -91,10 +92,10 @@ dependencies:
91
92
  - 8
92
93
  - 4
93
94
  version: 1.8.4
94
- prerelease: false
95
- requirement: *id005
96
95
  type: :development
96
+ requirement: *id005
97
97
  - !ruby/object:Gem::Dependency
98
+ prerelease: false
98
99
  name: rcov
99
100
  version_requirements: &id006 !ruby/object:Gem::Requirement
100
101
  none: false
@@ -105,9 +106,8 @@ dependencies:
105
106
  segments:
106
107
  - 0
107
108
  version: "0"
108
- prerelease: false
109
- requirement: *id006
110
109
  type: :development
110
+ requirement: *id006
111
111
  description: pending
112
112
  email: naveedahmada036@gmail.com
113
113
  executables: []
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  requirements: []
174
174
 
175
175
  rubyforge_project:
176
- rubygems_version: 1.8.6
176
+ rubygems_version: 1.8.25
177
177
  signing_key:
178
178
  specification_version: 3
179
179
  summary: Send notifications to user via one digest email.