no_notifier_needed 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +4 -4
- data/VERSION +1 -1
- data/lib/generators/no_notifier_needed/templates/install.rb +16 -0
- data/lib/no_notifier_needed/send.rb +2 -1
- data/no_notifier_needed.gemspec +2 -2
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -69,7 +69,7 @@ GEM
|
|
69
69
|
googlecharts (1.6.8)
|
70
70
|
haml (4.0.2)
|
71
71
|
tilt
|
72
|
-
hike (1.2.
|
72
|
+
hike (1.2.2)
|
73
73
|
hirb (0.7.1)
|
74
74
|
i18n (0.6.1)
|
75
75
|
japgolly-Saikuro (1.1.1.0)
|
@@ -162,9 +162,9 @@ GEM
|
|
162
162
|
ruby2ruby (2.0.2)
|
163
163
|
ruby_parser (~> 3.1)
|
164
164
|
sexp_processor (~> 4.0)
|
165
|
-
ruby_parser (3.1.
|
165
|
+
ruby_parser (3.1.3)
|
166
166
|
sexp_processor (~> 4.1)
|
167
|
-
sexp_processor (4.2.
|
167
|
+
sexp_processor (4.2.1)
|
168
168
|
shoulda (3.4.0)
|
169
169
|
shoulda-context (~> 1.0, >= 1.0.1)
|
170
170
|
shoulda-matchers (~> 1.0, >= 1.4.1)
|
@@ -183,7 +183,7 @@ GEM
|
|
183
183
|
tilt (~> 1.1, != 1.3.0)
|
184
184
|
sqlite3 (1.3.7)
|
185
185
|
thor (0.18.1)
|
186
|
-
tilt (1.3.
|
186
|
+
tilt (1.3.7)
|
187
187
|
treetop (1.4.12)
|
188
188
|
polyglot
|
189
189
|
polyglot (>= 0.3.1)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.1
|
@@ -9,10 +9,26 @@ class <%= migration_class_name %> < ActiveRecord::Migration
|
|
9
9
|
t.string :body
|
10
10
|
t.string :template_type
|
11
11
|
t.boolean :send_via_mandrill, :default => false, :null => false
|
12
|
+
t.integer :email_template_type_id
|
12
13
|
end
|
14
|
+
|
15
|
+
create_table :email_template_types do |t|
|
16
|
+
t.string :type
|
17
|
+
t.boolean :critical, :default => false, :null => false
|
18
|
+
end
|
19
|
+
|
20
|
+
create_table :email_template_types_users do |t|
|
21
|
+
t.integer :email_template_id
|
22
|
+
t.integer :user_id
|
23
|
+
end
|
24
|
+
|
25
|
+
add_index :email_tt_users, [:email_template_id, :user_id]
|
26
|
+
add_index :users_email_tt, [:user_id, :email_template_id]
|
13
27
|
end
|
14
28
|
|
15
29
|
def down
|
16
30
|
drop_table :email_templates
|
31
|
+
drop_table :email_templates_type
|
32
|
+
drop_table :email_template_types_users
|
17
33
|
end
|
18
34
|
end
|
@@ -31,7 +31,8 @@ module NoNotifierNeeded
|
|
31
31
|
th[:which_email] = which_email
|
32
32
|
|
33
33
|
if NoNotifierNeeded.send(:current_user_model)
|
34
|
-
|
34
|
+
current_user_id = instance_eval(NoNotifierNeeded.send(:current_user_id_method))
|
35
|
+
th[:current_user] = current_user_id if current_user_id
|
35
36
|
end
|
36
37
|
|
37
38
|
args = args.flatten if args.respond_to?(:flatten)
|
data/no_notifier_needed.gemspec
CHANGED
@@ -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.
|
8
|
+
s.version = "2.3.1"
|
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-
|
12
|
+
s.date = "2013-04-11"
|
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
|
+
version: 2.3.1
|
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-
|
12
|
+
date: 2013-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: haml
|