proclaim 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +6 -0
- data/README.md +10 -2
- data/VERSION +1 -1
- data/app/mailers/proclaim/subscription_mailer.rb +1 -1
- data/app/views/proclaim/comments/_comment.html.erb +1 -1
- data/app/views/proclaim/comments/_form.html.erb +1 -1
- data/lib/generators/proclaim/templates/initialize_proclaim.rb +3 -0
- data/lib/proclaim.rb +3 -0
- data/lib/proclaim/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95376276542d333bb59c9ae6c18791bed276b629
|
4
|
+
data.tar.gz: 3d7f91736e0aabd04624da823c4973b072be0270
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92414f0b8e9f7b4a2059a06868e2e68fd39d5e9dd4e2a8702da1232f07ab2705ec217cf45c8a36aed960b4569671c7abdcab85b157bf1789e0e780bbbb59b1df
|
7
|
+
data.tar.gz: d6fa347afc769970dd4eb03bacd3d677e6665897db1a5e391e0679db2acae90716f869ef2307ae3828c15fc545faeb9f032a478fb0b57bc64f1fd42a2f7ee590
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
v 0.2.4
|
2
|
+
- Added simple format to comments, to preserve line breaks
|
3
|
+
|
4
|
+
v 0.2.3
|
5
|
+
- Fixed inability to set "from" field in emails sent from Proclaim
|
6
|
+
|
1
7
|
v 0.2.2
|
2
8
|
- Fixed post titles showing HTML entities
|
3
9
|
- Fixed posts index to show published time instead of updated time
|
data/README.md
CHANGED
@@ -25,10 +25,11 @@ scheme is given below.
|
|
25
25
|
|
26
26
|
### Get Proclaim
|
27
27
|
|
28
|
-
Proclaim 0.
|
28
|
+
Proclaim 0.2 works with Rails 4.2 and on, with Ruby 1.9.3 and on. Add it to your
|
29
|
+
Gemfile with:
|
29
30
|
|
30
31
|
```ruby
|
31
|
-
gem 'proclaim', "~> 0.2.
|
32
|
+
gem 'proclaim', "~> 0.2.4"
|
32
33
|
```
|
33
34
|
|
34
35
|
Run `bundle install` to install it.
|
@@ -105,6 +106,7 @@ Proclaim.current_author_method = :current_user
|
|
105
106
|
Proclaim.authentication_method = :authenticate_user!
|
106
107
|
Proclaim.excerpt_length = 500
|
107
108
|
Proclaim.editor_toolbar_buttons = ['bold', 'italic', 'underline', 'anchor', 'header1', 'header2', 'quote']
|
109
|
+
Proclaim.mailer_sender = nil
|
108
110
|
```
|
109
111
|
|
110
112
|
- **Proclaim.author_class**
|
@@ -139,6 +141,12 @@ Proclaim.editor_toolbar_buttons = ['bold', 'italic', 'underline', 'anchor', 'hea
|
|
139
141
|
The buttons to be displayed on the Medium Editor toolbar. For a full list of
|
140
142
|
options, see the README for [that project][1].
|
141
143
|
|
144
|
+
- **Proclaim.mailer_sender**
|
145
|
+
|
146
|
+
The email address to use in the "from" field of all emails from Proclaim. If
|
147
|
+
not specified (the default), the mailer's default params will be used, which
|
148
|
+
means it should be set in your environment.
|
149
|
+
|
142
150
|
Astute readers may note that the defaults corresponds to defaults from Devise (on
|
143
151
|
the User class). If that's not your setup, all of these options can be changed
|
144
152
|
in the initializer installed by `rails generate proclaim:install`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
@@ -22,4 +22,7 @@ Proclaim.setup do |config|
|
|
22
22
|
|
23
23
|
# Buttons to display on post editor toolbar
|
24
24
|
#config.editor_toolbar_buttons = ['bold', 'italic', 'underline', 'anchor', 'header1', 'header2', 'quote']
|
25
|
+
|
26
|
+
# Email address to use in the "from" field of all emails
|
27
|
+
#config.mailer_sender = '"My Blog" <blog@example.com>'
|
25
28
|
end
|
data/lib/proclaim.rb
CHANGED
@@ -19,6 +19,9 @@ module Proclaim
|
|
19
19
|
mattr_accessor :editor_toolbar_buttons
|
20
20
|
@@editor_toolbar_buttons = ['bold', 'italic', 'underline', 'anchor', 'header1', 'header2', 'quote']
|
21
21
|
|
22
|
+
mattr_accessor :mailer_sender
|
23
|
+
@@mailer_sender = nil
|
24
|
+
|
22
25
|
def self.setup
|
23
26
|
yield self
|
24
27
|
end
|
data/lib/proclaim/version.rb
CHANGED