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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f01a5d261bff3eb7daf30ba4bde79f074c20e58
4
- data.tar.gz: 1519808eae64115a710a98131470e6b4fa61cd5f
3
+ metadata.gz: 95376276542d333bb59c9ae6c18791bed276b629
4
+ data.tar.gz: 3d7f91736e0aabd04624da823c4973b072be0270
5
5
  SHA512:
6
- metadata.gz: ef0e2bdf09f08125eaf80c8f7fd91c7831b8081b4414ba28b472463d8f29db4fb196772d01f10185261c3eb57b9a0d8bc3d9797591134ca803f707a499866f2b
7
- data.tar.gz: ce8688fb5521fa7777645fb4fabdaa7ae7a75e95860974cd2c769f9eb91b6e19b0cf75518a527b3167a58f4df6a6643fa74e10fd625e703f3618d8231cf47e86
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.1 works with Rails 4.2 and on. Add it to your Gemfile with:
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.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.2
1
+ 0.2.4
@@ -1,6 +1,6 @@
1
1
  module Proclaim
2
2
  class SubscriptionMailer < ActionMailer::Base
3
- default from: "from@example.com"
3
+ default from: Proclaim.mailer_sender || default_params[:from] || "from@example.com"
4
4
 
5
5
  def welcome_email(subscription)
6
6
  @subscription = subscription
@@ -1,6 +1,6 @@
1
1
  <div id = "comment_<%= comment.id %>" class = "comment">
2
2
  <div class = "comment_body">
3
- <%= comment.body %>
3
+ <%= simple_format h comment.body %>
4
4
  </div>
5
5
  <p class = "comment_author">By <%= comment.author %></p>
6
6
 
@@ -25,7 +25,7 @@
25
25
  <%= f.label :author %><br />
26
26
  <%= f.text_field :author %><br />
27
27
  <%= f.label :body %><br />
28
- <%= f.text_area :body %><br />
28
+ <%= f.text_area :body, rows: 7, cols: 50 %><br />
29
29
 
30
30
 
31
31
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Proclaim
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proclaim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fazzari