oop_rails_server 0.0.21 → 0.0.22

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: 0fd5c9a3aed8080c6f1f60a4a707499fe77c8493
4
- data.tar.gz: 0b7a9569c5a9cea17bd59f48c99c7e5e0eca5c74
3
+ metadata.gz: 3d59483bdfe97f34e39632230300cf37f6e95737
4
+ data.tar.gz: 0b36b1482eec1a6ce5d637bd203bc253bb701257
5
5
  SHA512:
6
- metadata.gz: ebc57432de0117bc6f0fa37b064d0ff9abcae527656b8e1b3634289f41518440c3caf8733aa11492d3ae02e33ecc6ec89a561c8d495e9698c23663581039f725
7
- data.tar.gz: 3476971dc63f6160e709de57b8b40d6627cd457fe37366c1b6ac1012a07fbf9af9f40867f6cc79742aeff02e3746ddfc6281b3a4ac76cf3f0b09a083835ee6c5
6
+ metadata.gz: 08ad2cadd68042cb72cdac8e99c4b6ae175664ab3ed2f70df16d7427d47b5c903bb40eaefe9cfcc57b9e43d368404f9cbd60a0661b2fcf038ed7bfe93a19d88b
7
+ data.tar.gz: dcfa773fad0e8e3f44f9c60549aecc8b4a7789fa56461974f25d8b0c0398910e962a67976d77e7a424191f7dca0cae699a74e122da27d5d121d6291e9ec3e3ff
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # `oop_rails_server` Releases
2
2
 
3
+ ## 0.0.22, 27 September 2016
4
+
5
+ * Fixed a bug caused by trying to call `Exception#cause` without checking if it exists; this doesn't exist in older
6
+ Ruby versions.
7
+
3
8
  ## 0.0.21, 27 September 2016
4
9
 
5
10
  * Fixed an issue that broke compatibility with older Ruby versions, since `Net::HTTP::Get.new` could not accept a
@@ -1,3 +1,3 @@
1
1
  module OopRailsServer
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
@@ -17,7 +17,7 @@ class ApplicationController < ActionController::Base
17
17
  :backtrace => exception.backtrace
18
18
  }
19
19
 
20
- if exception.cause && (! exception.cause.equal?(exception))
20
+ if exception.respond_to?(:cause) && exception.cause && (! exception.cause.equal?(exception))
21
21
  out[:cause] = exception_to_hash(exception.cause)
22
22
  end
23
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oop_rails_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Geweke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2016-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json