padrino-contrib 0.1.3 → 0.1.4

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.

Potentially problematic release.


This version of padrino-contrib might be problematic. Click here for more details.

data/Rakefile CHANGED
@@ -10,9 +10,12 @@ end
10
10
 
11
11
  desc "Bump version on github"
12
12
  task :bump do
13
- puts "\e[31mNothing to commit (working directory clean)\e[0m" and return unless `git status -s`.chomp!
14
- version = Bundler.load_gemspec(Dir[File.expand_path('../*.gemspec', __FILE__)].first).version
15
- sh "git add .; git commit -a -m \"Bump to version #{version}\""
13
+ if `git status -s`.chomp!
14
+ version = Bundler.load_gemspec(Dir[File.expand_path('../*.gemspec', __FILE__)].first).version
15
+ sh "git add .; git commit -a -m \"Bump to version #{version}\""
16
+ else
17
+ puts "\e[31mNothing to commit (working directory clean)\e[0m"
18
+ end
16
19
  end
17
20
 
18
21
  task :release => :bump
@@ -24,4 +27,4 @@ RSpec::Core::RakeTask.new("spec") do |t|
24
27
  t.rspec_opts = %w(-fs --color --fail-fast)
25
28
  end
26
29
 
27
- task :default => :spec
30
+ task :default => :spec
@@ -35,6 +35,7 @@ module Padrino
35
35
  I18n.locale = $1.to_sym
36
36
  else
37
37
  I18n.locale = options.locales[0]
38
+ not_found if request.path_info !~ /^\/?$/
38
39
  end
39
40
  end
40
41
 
@@ -56,4 +57,4 @@ module Padrino
56
57
  end
57
58
  end # AutoLocale
58
59
  end # Contrib
59
- end # Padrino
60
+ end # Padrino
@@ -23,6 +23,7 @@ module Padrino
23
23
  app.set :exceptions_subject, "Exception"
24
24
  app.set :exceptions_to, "errors@localhost.local"
25
25
  app.set :exceptions_from, "foo@bar.local"
26
+ app.set :exceptions_layout, :layout
26
27
  app.set :redmine, {}
27
28
  app.error 500 do
28
29
  boom = env['sinatra.error']
@@ -41,14 +42,14 @@ module Padrino
41
42
  end
42
43
  response.status = 500
43
44
  content_type 'text/html', :charset => "utf-8"
44
- render settings.exceptions_page
45
+ render settings.exceptions_page, :layout => settings.exceptions_layout
45
46
  end
46
47
  app.error 404 do
47
48
  response.status = 404
48
49
  content_type 'text/html', :charset => "utf-8"
49
- render settings.exceptions_page
50
+ render settings.exceptions_page, :layout => settings.exceptions_layout
50
51
  end
51
52
  end # self.registered
52
53
  end # ExceptionNotifier
53
54
  end # Contrib
54
- end # Padrino
55
+ end # Padrino
@@ -1,5 +1,5 @@
1
1
  module Padrino
2
2
  module Contrib
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
- end
5
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-contrib
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Davide D'Agostino
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-07-28 00:00:00 +02:00
20
+ date: 2011-07-30 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies: []
23
23