jabe 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,14 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
module Jabe
|
2
|
+
class CommentMailer < ActionMailer::Base
|
3
|
+
default :from => Jabe::SETTINGS.mail_from
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
def notification(comment, request)
|
6
|
+
@comment = comment
|
7
|
+
@request = request
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
mail(:to => Admin.all.map(&:email),
|
10
|
+
:subject => "Comment on: #{comment.entry.title}"
|
11
|
+
)
|
12
|
+
end
|
11
13
|
end
|
12
14
|
end
|
data/app/models/jabe/comment.rb
CHANGED
@@ -16,11 +16,11 @@ module Jabe
|
|
16
16
|
acts_as_textiled :body
|
17
17
|
|
18
18
|
def send_notification(request)
|
19
|
-
begin
|
19
|
+
# begin
|
20
20
|
CommentMailer.notification(self, request).deliver
|
21
|
-
rescue => e
|
22
|
-
|
23
|
-
end
|
21
|
+
# rescue => e
|
22
|
+
# logger.error "#{e}\n#{e.backtrace.join("\n")}"
|
23
|
+
# end
|
24
24
|
end
|
25
25
|
|
26
26
|
private
|
@@ -3,6 +3,7 @@
|
|
3
3
|
= form.input :host_name, :label => 'Domain and port', :hint => '(e.g. pixels-and-bits.com or localhost:3000)'
|
4
4
|
= form.input :site_name
|
5
5
|
= form.input :tagline
|
6
|
+
= form.input :mail_from
|
6
7
|
= form.input :time_zone, :label => 'Your local time zone'
|
7
8
|
= form.input :entries_per_page, :label => 'Entries on the home page'
|
8
9
|
= form.input :sidebar_heading
|
data/lib/jabe/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jabe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2012-02-01 00:00:00.000000000Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &70308167442220 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.1.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70308167442220
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: devise
|
28
|
-
requirement: &
|
28
|
+
requirement: &70308167441680 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 2.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70308167441680
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: friendly_id
|
39
|
-
requirement: &
|
39
|
+
requirement: &70308167441080 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 4.0.0
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70308167441080
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: gravtastic
|
50
|
-
requirement: &
|
50
|
+
requirement: &70308167440460 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: 3.2.6
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70308167440460
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: haml
|
61
|
-
requirement: &
|
61
|
+
requirement: &70308167439800 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: 3.1.4
|
67
67
|
type: :runtime
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *70308167439800
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: haml-rails
|
72
|
-
requirement: &
|
72
|
+
requirement: &70308167438600 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ! '>='
|
@@ -77,10 +77,10 @@ dependencies:
|
|
77
77
|
version: 0.3.4
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *70308167438600
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: kaminari
|
83
|
-
requirement: &
|
83
|
+
requirement: &70308167437760 !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|
86
86
|
- - ! '>='
|
@@ -88,10 +88,10 @@ dependencies:
|
|
88
88
|
version: 0.13.0
|
89
89
|
type: :runtime
|
90
90
|
prerelease: false
|
91
|
-
version_requirements: *
|
91
|
+
version_requirements: *70308167437760
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: RedCloth
|
94
|
-
requirement: &
|
94
|
+
requirement: &70308167436480 !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
97
97
|
- - ! '>='
|
@@ -99,10 +99,10 @@ dependencies:
|
|
99
99
|
version: 4.2.9
|
100
100
|
type: :runtime
|
101
101
|
prerelease: false
|
102
|
-
version_requirements: *
|
102
|
+
version_requirements: *70308167436480
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: sass-rails
|
105
|
-
requirement: &
|
105
|
+
requirement: &70308167427020 !ruby/object:Gem::Requirement
|
106
106
|
none: false
|
107
107
|
requirements:
|
108
108
|
- - ! '>='
|
@@ -110,10 +110,10 @@ dependencies:
|
|
110
110
|
version: 3.1.0
|
111
111
|
type: :runtime
|
112
112
|
prerelease: false
|
113
|
-
version_requirements: *
|
113
|
+
version_requirements: *70308167427020
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: simple_form
|
116
|
-
requirement: &
|
116
|
+
requirement: &70308167425680 !ruby/object:Gem::Requirement
|
117
117
|
none: false
|
118
118
|
requirements:
|
119
119
|
- - ! '>='
|
@@ -121,10 +121,10 @@ dependencies:
|
|
121
121
|
version: 1.5.2
|
122
122
|
type: :runtime
|
123
123
|
prerelease: false
|
124
|
-
version_requirements: *
|
124
|
+
version_requirements: *70308167425680
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: sqlite3
|
127
|
-
requirement: &
|
127
|
+
requirement: &70308167424960 !ruby/object:Gem::Requirement
|
128
128
|
none: false
|
129
129
|
requirements:
|
130
130
|
- - ! '>='
|
@@ -132,7 +132,7 @@ dependencies:
|
|
132
132
|
version: '0'
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
|
-
version_requirements: *
|
135
|
+
version_requirements: *70308167424960
|
136
136
|
description: Blog engine for Rails 3.1+
|
137
137
|
email:
|
138
138
|
- michael@pixels-and-bits.com
|
@@ -225,7 +225,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
segments:
|
227
227
|
- 0
|
228
|
-
hash:
|
228
|
+
hash: 4235558458386184658
|
229
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
230
|
none: false
|
231
231
|
requirements:
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
version: '0'
|
235
235
|
segments:
|
236
236
|
- 0
|
237
|
-
hash:
|
237
|
+
hash: 4235558458386184658
|
238
238
|
requirements: []
|
239
239
|
rubyforge_project:
|
240
240
|
rubygems_version: 1.8.10
|