nesty 1.0.1 → 1.0.2
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.
- checksums.yaml +4 -4
 - data/lib/nesty/nested_error.rb +1 -1
 - data/lib/nesty/version.rb +1 -1
 - data/spec/lib/nesty/nested_error_spec.rb +4 -4
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 458313e946f4c0a982a0dd14d1e9513c9914d972
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c58c084a7da893b6f79d4c8d34ab59c902d9b35b
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3bdf564ea88f72c1d860a9a445aeb113093319c1f37082f7e674a48f50cc569bdf43c87d328293fd5c7e32521f58d70896eb14a79c48e1d2997f3cafcd1092bc
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 77759c90a995e585a00f15455b44c5f1b3836c3cd38b1d5c14ed48252c946da44317c5dc5c3318656fefe0c3fa46e81dccd705c051cc377549d8953490d4ca35
         
     | 
    
        data/lib/nesty/nested_error.rb
    CHANGED
    
    | 
         @@ -11,7 +11,7 @@ module Nesty 
     | 
|
| 
       11 
11 
     | 
    
         
             
                  @raw_backtrace = backtrace
         
     | 
| 
       12 
12 
     | 
    
         
             
                  if nested
         
     | 
| 
       13 
13 
     | 
    
         
             
                    backtrace = backtrace - nested_raw_backtrace
         
     | 
| 
       14 
     | 
    
         
            -
                    backtrace += ["#{nested.backtrace.first}: #{nested.message}"]
         
     | 
| 
      
 14 
     | 
    
         
            +
                    backtrace += ["#{nested.backtrace.first}: #{nested.message} (#{nested.class.name})"]
         
     | 
| 
       15 
15 
     | 
    
         
             
                    backtrace += nested.backtrace[1..-1] || []
         
     | 
| 
       16 
16 
     | 
    
         
             
                  end
         
     | 
| 
       17 
17 
     | 
    
         
             
                  super(backtrace)
         
     | 
    
        data/lib/nesty/version.rb
    CHANGED
    
    
| 
         @@ -59,7 +59,7 @@ describe Nesty::NestedError do 
     | 
|
| 
       59 
59 
     | 
    
         
             
                    it {subject.message.should == 'hello'}
         
     | 
| 
       60 
60 
     | 
    
         
             
                    it {subject.backtrace.size.should == 3}
         
     | 
| 
       61 
61 
     | 
    
         
             
                    it {subject.backtrace[0].should == 'x'}
         
     | 
| 
       62 
     | 
    
         
            -
                    it {subject.backtrace[1].should == "a: #{nested_message}"}
         
     | 
| 
      
 62 
     | 
    
         
            +
                    it {subject.backtrace[1].should == "a: #{nested_message} (StandardError)"}
         
     | 
| 
       63 
63 
     | 
    
         
             
                    it {subject.backtrace[2].should == 'b'}
         
     | 
| 
       64 
64 
     | 
    
         
             
                  end
         
     | 
| 
       65 
65 
     | 
    
         | 
| 
         @@ -81,7 +81,7 @@ describe Nesty::NestedError do 
     | 
|
| 
       81 
81 
     | 
    
         
             
                    it {subject.message.should == 'hello'}
         
     | 
| 
       82 
82 
     | 
    
         
             
                    it {subject.backtrace.size.should == 3}
         
     | 
| 
       83 
83 
     | 
    
         
             
                    it {subject.backtrace[0].should == 'x'}
         
     | 
| 
       84 
     | 
    
         
            -
                    it {subject.backtrace[1].should == "a: #{nested_message}"}
         
     | 
| 
      
 84 
     | 
    
         
            +
                    it {subject.backtrace[1].should == "a: #{nested_message} (StandardError)"}
         
     | 
| 
       85 
85 
     | 
    
         
             
                    it {subject.backtrace[2].should == 'b'}
         
     | 
| 
       86 
86 
     | 
    
         
             
                  end
         
     | 
| 
       87 
87 
     | 
    
         
             
                end
         
     | 
| 
         @@ -113,9 +113,9 @@ describe Nesty::NestedError do 
     | 
|
| 
       113 
113 
     | 
    
         
             
                  it {subject.backtrace.size.should == 6}
         
     | 
| 
       114 
114 
     | 
    
         
             
                  it {subject.backtrace[0].should == 'w'}
         
     | 
| 
       115 
115 
     | 
    
         
             
                  it {subject.backtrace[1].should == 'x'}
         
     | 
| 
       116 
     | 
    
         
            -
                  it {subject.backtrace[2].should == "y: #{nested_message}"}
         
     | 
| 
      
 116 
     | 
    
         
            +
                  it {subject.backtrace[2].should == "y: #{nested_message} (TestError)"}
         
     | 
| 
       117 
117 
     | 
    
         
             
                  it {subject.backtrace[3].should == 'z'}
         
     | 
| 
       118 
     | 
    
         
            -
                  it {subject.backtrace[4].should == "a: #{nested_nested_message}"}
         
     | 
| 
      
 118 
     | 
    
         
            +
                  it {subject.backtrace[4].should == "a: #{nested_nested_message} (StandardError)"}
         
     | 
| 
       119 
119 
     | 
    
         
             
                  it {subject.backtrace[5].should == 'b'}
         
     | 
| 
       120 
120 
     | 
    
         
             
                end
         
     | 
| 
       121 
121 
     | 
    
         
             
              end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: nesty
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Alan Skorkin
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2013-04- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2013-04-12 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     |