soar_sc_views 0.1.0 → 0.1.1

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: 4bbfcb76896e86fd9d54afde4b557350bf2b3dc8
4
- data.tar.gz: 140eb4ca2b02792306301882191b354ca1237cb1
3
+ metadata.gz: 4fc32036e06227312c80b2b476c99967b899957e
4
+ data.tar.gz: d78da4c1d0049d118173e13e1166c8a9930866fd
5
5
  SHA512:
6
- metadata.gz: 7d40d26c8babc87bb766886e26dac24e435b56905c9d6f11dac407f4eaf32143fc2d716a5c88dab5c927d8487c778b0c160821bfb1de48bd9c3e56d83c5e6d59
7
- data.tar.gz: 56a33c50ccf016831b063ef5c3f689f1c7e8a4eabb8240737ce23404c134080955cb92c47189b211d9d6af2a592de22d11ea6af42dbd954fd930d7848d40eb76
6
+ metadata.gz: ed77e807eb1f40aea8f988bdb38597b35a421fbee288071689a0d459921d15e98b8775b7ce6c90365f08bb3d72f079a441eb75b380850b21d24192ad9f66d514
7
+ data.tar.gz: db3da2c55307f8934a1cd8373e4269fba0880521a67c657f7a46b42525e698d1d5759736f05cd1f53629233a3164de4477ab709a1fecd5453eae535ed879bf93
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ *.gem
1
2
  /.bundle/
2
3
  /.yardoc
3
4
  /Gemfile.lock
@@ -27,9 +27,14 @@ module SoarSc
27
27
  end
28
28
 
29
29
  def self.error(ex)
30
- body = ex.is_a?(Exception) ? ex.message : ex.to_s
30
+ if ex.is_a?(Exception)
31
+ body = "#{ex.class}: #{ex.message}"
32
+ body = body + ":\n\t" + ex.backtrace.join("\n\t") if ENV['RACK_ENV'] == 'development'
33
+ else
34
+ body = ex.to_s
35
+ end
31
36
  [500, {"Content-Type" => "text/html"}, [body]]
32
- end
37
+ end
33
38
  end
34
39
  end
35
40
  end
@@ -1,3 +1,3 @@
1
1
  module SoarScViews
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_sc_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst Van Graan