Dex_Rack 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  require "sinatra/base"
2
2
 
3
3
  class Dex_Rack < Sinatra::Base
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -46,7 +46,11 @@ div.recent_nav! {
46
46
 
47
47
  if vars[:list].empty?
48
48
  div.empty {
49
- p "No exceptions created."
49
+ if vars[:app].request.path_info == '/'
50
+ p "No unresolved exceptions."
51
+ else
52
+ p "No exceptions found."
53
+ end
50
54
  a.button( :href=>"/create-sample" ) {
51
55
  "Create Sample Exception"
52
56
  }
data/spec/Dex_App.rb CHANGED
@@ -42,7 +42,7 @@ describe "get /" do
42
42
 
43
43
  it "renders message when there are no exceptions" do
44
44
  get "/"
45
- renders %r!No exceptions!
45
+ renders %r!No unresolved exceptions!
46
46
  end
47
47
 
48
48
  it "renders a recent list of 10" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Dex_Rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: