limbo 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -16,6 +16,23 @@ Or install it yourself as:
16
16
 
17
17
  $ gem install limbo
18
18
 
19
+ ## Compatibility
20
+
21
+ Ruby version 1.9.2 and 1.9.3
22
+
23
+ [GemTesters](http://test.rubygems.org/gems/limbo) has
24
+ more information on which platforms limbo is tested.
25
+
26
+
27
+ ## Test
28
+
29
+ gem install rubygems-test
30
+ gem test limbo
31
+
32
+
33
+ For more info see: [GemTesters](http://test.rubygems.org/)
34
+
35
+
19
36
  ## Usage
20
37
 
21
38
  TODO: Write usage instructions here
@@ -27,7 +27,8 @@ module Limbo
27
27
  session: Limbo::Rails::ParameterFilter.filter(@session.to_hash),
28
28
  # TODO: We must filter this better.
29
29
  # request_env: Limbo::RailsParameterFilter.filter(@request.env)
30
- backtrace: @exception.backtrace
30
+ backtrace: @exception.backtrace,
31
+ exception_message: @exception.message
31
32
  }.merge(@hash)
32
33
  end
33
34
  end
data/lib/limbo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Limbo
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -35,7 +35,10 @@ describe Limbo::Rails::Data do
35
35
  custom: "I am added by the user"
36
36
  }
37
37
  end
38
- before { exception.should_receive(:backtrace).exactly(1) { "backtrace" } }
38
+ before do
39
+ exception.should_receive(:backtrace).exactly(1) { "backtrace" }
40
+ exception.should_receive(:message).exactly(1) { "exception_message" }
41
+ end
39
42
 
40
43
  it "returns a transformed hash" do
41
44
  transformed_hash = Limbo::Rails::Data.new(hash).transform
@@ -47,6 +50,7 @@ describe Limbo::Rails::Data do
47
50
  transformed_hash[:url].should eq("http://example.com/blog")
48
51
  transformed_hash[:session].should eq({user_id: "2"})
49
52
  transformed_hash[:backtrace].should eq("backtrace")
53
+ transformed_hash[:exception_message].should eq("exception_message")
50
54
  end
51
55
 
52
56
  it "applies filter on some keys" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limbo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: