flexmock 2.0.0.rc1 → 2.0.0
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/CHANGES +5 -1
 - data/README.md +2 -10
 - data/flexmock.gemspec +1 -0
 - data/lib/flexmock/minitest_integration.rb +2 -2
 - data/lib/flexmock/partial_mock.rb +0 -8
 - data/lib/flexmock/version.rb +1 -1
 - metadata +19 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 03806072bb0d8d4aec632fc5afb44d54f8f9f6f9
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: b6d7c1a49f566b1cf6d38b51388f1196941098f0
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: a82fdf26a842b8f00177c8d00987563c749818c17c6d75e465200e7472c5de0aeac8654023ef8d295ae603e9918f9ed9e4927b6236f6f79c92d9814482b1f059
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 3a236755c5b7754acc77c86e7595dfa4bec2800390eebbe6c2c9f9d4591b32e345ceda0b124769d169c123745fc268d7327aa4d8aa4c722ae0fec90baf308b4b
         
     | 
    
        data/CHANGES
    CHANGED
    
    | 
         @@ -8,8 +8,12 @@ 
     | 
|
| 
       8 
8 
     | 
    
         
             
            * dropped support for pre-2.0 Rubies
         
     | 
| 
       9 
9 
     | 
    
         
             
            * added explicit minitest support. This makes the minitest integration much
         
     | 
| 
       10 
10 
     | 
    
         
             
              nicer to work with (in particular, the flexmock_teardown is now executed "just
         
     | 
| 
       11 
     | 
    
         
            -
              at the right place"), and fixes issues with minitest 5
         
     | 
| 
      
 11 
     | 
    
         
            +
              at the right place"), and fixes issues with minitest 5. Just require
         
     | 
| 
      
 12 
     | 
    
         
            +
              flexmock/minitest to get it.
         
     | 
| 
       12 
13 
     | 
    
         
             
            * partial mocks now supports prepended modules
         
     | 
| 
      
 14 
     | 
    
         
            +
            * validation errors that happen when a method is called (i.e. unexpected
         
     | 
| 
      
 15 
     | 
    
         
            +
              arguments, wrong call count) are reported with the backtrace of the call
         
     | 
| 
      
 16 
     | 
    
         
            +
              instead of with the backtrace of the expectation definition.
         
     | 
| 
       13 
17 
     | 
    
         | 
| 
       14 
18 
     | 
    
         
             
            == Version 1.0.0
         
     | 
| 
       15 
19 
     | 
    
         | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -2,20 +2,12 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            [](https://travis-ci.org/doudou/flexmock)
         
     | 
| 
       4 
4 
     | 
    
         
             
            [](http://badge.fury.io/rb/flexmock)
         
     | 
| 
      
 5 
     | 
    
         
            +
            [](https://coveralls.io/github/doudou/flexmock?branch=master)
         
     | 
| 
      
 6 
     | 
    
         
            +
            [](http://rubydoc.info/gems/flexmock/frames)
         
     | 
| 
       5 
7 
     | 
    
         | 
| 
       6 
8 
     | 
    
         
             
            FlexMock is a simple, but flexible, mock object library for Ruby unit
         
     | 
| 
       7 
9 
     | 
    
         
             
            testing.
         
     | 
| 
       8 
10 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
            Version :: 2.0
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
            # Links
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
            * **Documents** -- http://rubydoc.info/gems/flemxock
         
     | 
| 
       14 
     | 
    
         
            -
            * **RubyGems**   -- Install with: `gem install flexmock`
         
     | 
| 
       15 
     | 
    
         
            -
            * **Source** -- https://github.com/doudou/flexmock
         
     | 
| 
       16 
     | 
    
         
            -
            * **Bug Reports / Issue Tracking** -- https://github.com/doudou/flexmock/issues
         
     | 
| 
       17 
     | 
    
         
            -
            * **Continuous Integration** -- http://travis-ci.org/#!/doudou/flexmock
         
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
11 
     | 
    
         
             
            ## Installation
         
     | 
| 
       20 
12 
     | 
    
         | 
| 
       21 
13 
     | 
    
         
             
            You can install FlexMock with the following command.
         
     | 
    
        data/flexmock.gemspec
    CHANGED
    
    
| 
         @@ -62,8 +62,8 @@ class FlexMock 
     | 
|
| 
       62 
62 
     | 
    
         
             
              # Adapter for adapting FlexMock to the Test::Unit framework.
         
     | 
| 
       63 
63 
     | 
    
         
             
              #
         
     | 
| 
       64 
64 
     | 
    
         
             
              class MinitestFrameworkAdapter
         
     | 
| 
       65 
     | 
    
         
            -
                if defined?(Minitest 
     | 
| 
       66 
     | 
    
         
            -
                  include Minitest::Assertions
         
     | 
| 
      
 65 
     | 
    
         
            +
                if defined?(::Minitest)
         
     | 
| 
      
 66 
     | 
    
         
            +
                  include ::Minitest::Assertions
         
     | 
| 
       67 
67 
     | 
    
         
             
                else
         
     | 
| 
       68 
68 
     | 
    
         
             
                  include MiniTest::Assertions
         
     | 
| 
       69 
69 
     | 
    
         
             
                end
         
     | 
| 
         @@ -319,14 +319,6 @@ class FlexMock 
     | 
|
| 
       319 
319 
     | 
    
         
             
                  end
         
     | 
| 
       320 
320 
     | 
    
         
             
                end
         
     | 
| 
       321 
321 
     | 
    
         | 
| 
       322 
     | 
    
         
            -
                # Restore the original singleton defintion for method_name that
         
     | 
| 
       323 
     | 
    
         
            -
                # was saved earlier.
         
     | 
| 
       324 
     | 
    
         
            -
                def restore_original_definition(method_name)
         
     | 
| 
       325 
     | 
    
         
            -
                  proxy_module_eval do
         
     | 
| 
       326 
     | 
    
         
            -
                    remove_method method_name
         
     | 
| 
       327 
     | 
    
         
            -
                  end
         
     | 
| 
       328 
     | 
    
         
            -
                end
         
     | 
| 
       329 
     | 
    
         
            -
             
     | 
| 
       330 
322 
     | 
    
         
             
                # Have we been detached from the existing object?
         
     | 
| 
       331 
323 
     | 
    
         
             
                def detached?
         
     | 
| 
       332 
324 
     | 
    
         
             
                  @obj.nil?
         
     | 
    
        data/lib/flexmock/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: flexmock
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 2.0.0 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.0.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Jim Weirich
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2015-09- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2015-09-17 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: minitest
         
     | 
| 
         @@ -39,6 +39,20 @@ dependencies: 
     | 
|
| 
       39 
39 
     | 
    
         
             
                - - ">="
         
     | 
| 
       40 
40 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       41 
41 
     | 
    
         
             
                    version: '0'
         
     | 
| 
      
 42 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 43 
     | 
    
         
            +
              name: coveralls
         
     | 
| 
      
 44 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 45 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 46 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 47 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 48 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 49 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 50 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 51 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 52 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 53 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 54 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 55 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       42 
56 
     | 
    
         
             
            description: "\n    FlexMock is a extremely simple mock object class compatible\n
         
     | 
| 
       43 
57 
     | 
    
         
             
              \   with the Minitest framework.  Although the FlexMock's\n    interface is simple,
         
     | 
| 
       44 
58 
     | 
    
         
             
              it is very flexible.\n  "
         
     | 
| 
         @@ -152,9 +166,9 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       152 
166 
     | 
    
         
             
                  version: '2.0'
         
     | 
| 
       153 
167 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       154 
168 
     | 
    
         
             
              requirements:
         
     | 
| 
       155 
     | 
    
         
            -
              - - " 
     | 
| 
      
 169 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       156 
170 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       157 
     | 
    
         
            -
                  version:  
     | 
| 
      
 171 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       158 
172 
     | 
    
         
             
            requirements: []
         
     | 
| 
       159 
173 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       160 
174 
     | 
    
         
             
            rubygems_version: 2.2.3
         
     | 
| 
         @@ -162,3 +176,4 @@ signing_key: 
     | 
|
| 
       162 
176 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       163 
177 
     | 
    
         
             
            summary: Simple and Flexible Mock Objects for Testing
         
     | 
| 
       164 
178 
     | 
    
         
             
            test_files: []
         
     | 
| 
      
 179 
     | 
    
         
            +
            has_rdoc: 
         
     |