refinerycms 0.9.8.8 → 0.9.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/changelog.md +7 -0
- data/config/environments/development.rb +3 -0
- data/config/environments/production.rb +3 -0
- data/config/environments/test.rb +3 -0
- data/db/seeds/pages_for_inquiries.rb +1 -1
- data/vendor/refinerycms/authentication/app/mailers/user_mailer.rb +6 -0
- data/vendor/refinerycms/core/app/views/shared/admin/_error_messages.html.erb +4 -4
- data/vendor/refinerycms/core/lib/refinery/application_controller.rb +6 -4
- data/vendor/refinerycms/refinery.rb +6 -2
- metadata +3 -3
data/changelog.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 0.9.8.9 [21 December 2010]
|
2
|
+
* Fixed error in the inquiries engine seeds. [Philip Arndt](https://github.com/parndt)
|
3
|
+
* Separate each error message into its own ``<li>``. [Uģis Ozols](https://github.com/ugisozols)
|
4
|
+
* Add ``rescue_not_found`` option to turn on/off 404 rendering. [Ryan Bigg](https://github.com/radar)
|
5
|
+
* Add ``:from`` key to ``UserMailer`` for password reset. [Earle Clubb](https://github.com/eclubb)
|
6
|
+
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.8.8...0.9.8.9)
|
7
|
+
|
1
8
|
## 0.9.8.8 [16 December 2010]
|
2
9
|
* Prevented RefinerySetting from accessing its database table before it is created. [Philip Arndt](https://github.com/parndt)
|
3
10
|
* Added more options to ``bin/refinerycms`` like ability to specify database username and password. [Philip Arndt](https://github.com/parndt)
|
@@ -55,3 +55,6 @@ end
|
|
55
55
|
# instead of the default file system for resources and images
|
56
56
|
# Make sure to your bucket info is correct in amazon_s3.yml
|
57
57
|
Refinery.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
|
58
|
+
|
59
|
+
# Handle some exceptions with the 404 page.
|
60
|
+
Refinery.rescue_not_found = true
|
data/config/environments/test.rb
CHANGED
@@ -5,6 +5,12 @@ class UserMailer < ActionMailer::Base
|
|
5
5
|
subject I18n.translate('user_mailer.link_to_reset_your_password')
|
6
6
|
@url = reset_users_url(:host => request.host_with_port,
|
7
7
|
:reset_code => user.perishable_token)
|
8
|
+
|
9
|
+
domain = request.domain(RefinerySetting.find_or_set(:tld_length, 1))
|
10
|
+
|
11
|
+
mail(:to => user.email,
|
12
|
+
:subject => I18n.translate('user_mailer.link_to_reset_your_password'),
|
13
|
+
:from => "\"#{RefinerySetting[:site_name]}\" <no-reply@#{domain}>")
|
8
14
|
end
|
9
15
|
|
10
16
|
protected
|
@@ -3,12 +3,12 @@
|
|
3
3
|
<p><%= t('.problems_in_following_fields') %>:</p>
|
4
4
|
<ul>
|
5
5
|
<% unless defined?(include_object_name) and include_object_name %>
|
6
|
-
<% object.errors.
|
7
|
-
<li><%=
|
6
|
+
<% object.errors.each do |key, value| %>
|
7
|
+
<li><%= value %></li>
|
8
8
|
<% end %>
|
9
9
|
<% else %>
|
10
|
-
<% object.errors.full_messages.each do |
|
11
|
-
<li><%=
|
10
|
+
<% object.errors.full_messages.each do |value| %>
|
11
|
+
<li><%= value %></li>
|
12
12
|
<% end %>
|
13
13
|
<% end %>
|
14
14
|
</ul>
|
@@ -27,10 +27,12 @@ module Refinery::ApplicationController
|
|
27
27
|
c.send :after_filter, :store_current_location!,
|
28
28
|
:if => Proc.new {|c| c.send(:refinery_user?) rescue false }
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
if Refinery.rescue_not_found
|
31
|
+
c.send :rescue_from, ActiveRecord::RecordNotFound,
|
32
|
+
ActionController::UnknownAction,
|
33
|
+
ActionView::MissingTemplate,
|
34
|
+
:with => :error_404
|
35
|
+
end
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
@@ -5,7 +5,7 @@ module Refinery
|
|
5
5
|
WINDOWS = !!(RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw)!)
|
6
6
|
|
7
7
|
class << self
|
8
|
-
attr_accessor :root, :s3_backend, :base_cache_key
|
8
|
+
attr_accessor :root, :s3_backend, :base_cache_key, :rescue_not_found
|
9
9
|
|
10
10
|
def root
|
11
11
|
@root ||= Pathname.new(File.expand_path(__FILE__).split('vendor').first.to_s)
|
@@ -19,6 +19,10 @@ module Refinery
|
|
19
19
|
@base_cache_key ||= "refinery"
|
20
20
|
end
|
21
21
|
|
22
|
+
def rescue_not_found
|
23
|
+
!!@rescue_not_found
|
24
|
+
end
|
25
|
+
|
22
26
|
def version
|
23
27
|
::Refinery::Version.to_s
|
24
28
|
end
|
@@ -28,7 +32,7 @@ module Refinery
|
|
28
32
|
@major = 0
|
29
33
|
@minor = 9
|
30
34
|
@tiny = 8
|
31
|
-
@build =
|
35
|
+
@build = 9
|
32
36
|
|
33
37
|
class << self
|
34
38
|
attr_reader :major, :minor, :tiny, :build
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 9
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.9.8.
|
9
|
+
- 9
|
10
|
+
version: 0.9.8.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Resolve Digital
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-12-
|
20
|
+
date: 2010-12-21 00:00:00 +13:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|