fixture_dependencies 1.9.0 → 1.10.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
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 37de648e362288f3498e67fb4fb86cb6879eac0ff71bfabe765503675be589af
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c30678df08b1afca513cacf4c41a6b34c8273de7e6003d3c7b5d13801a5d165c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3b2bbc63521dee5eb5b704511bd99d509a499518e710c44ab9a39aa32babf121f0d3315d028cddb0f93883489f09d699dd989df77be58c564b2c6fdf066a40f8
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 82dfeb3a76c037fdbac0fcded19fc84fa98fa779c43fb9f4f56d5854630b91783086a4dcdb40f813c13de378b5acfadfb04c4663690c3eaef9feb0e207a247c8
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -96,6 +96,16 @@ FixtureDependencies: 
     | 
|
| 
       96 
96 
     | 
    
         
             
              FixtureDependencies.fixture_path = '/path/to/fixtures'
         
     | 
| 
       97 
97 
     | 
    
         
             
            ```
         
     | 
| 
       98 
98 
     | 
    
         | 
| 
      
 99 
     | 
    
         
            +
            A few helper methods are also available, just include them in your test superclass:
         
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
            ```
         
     | 
| 
      
 102 
     | 
    
         
            +
              require 'fixture_dependencies/helper_methods'
         
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
              class Test < Minitest::Test
         
     | 
| 
      
 105 
     | 
    
         
            +
                include FixtureDependencies::HelperMethods
         
     | 
| 
      
 106 
     | 
    
         
            +
              end
         
     | 
| 
      
 107 
     | 
    
         
            +
            ```
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
       99 
109 
     | 
    
         
             
            ## Changes to Rails default fixtures:
         
     | 
| 
       100 
110 
     | 
    
         | 
| 
       101 
111 
     | 
    
         
             
            fixture_dependencies is designed to require the least possible changes to
         
     | 
| 
         @@ -0,0 +1,18 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'fixture_dependencies'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            class FixtureDependencies
         
     | 
| 
      
 4 
     | 
    
         
            +
              module HelperMethods
         
     | 
| 
      
 5 
     | 
    
         
            +
                # Load given fixtures using FixtureDependencies
         
     | 
| 
      
 6 
     | 
    
         
            +
                def load(*fixture)
         
     | 
| 
      
 7 
     | 
    
         
            +
                  FixtureDependencies.load(*fixture)
         
     | 
| 
      
 8 
     | 
    
         
            +
                end
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
                def load_attributes(*args)
         
     | 
| 
      
 11 
     | 
    
         
            +
                  FixtureDependencies.load_attributes(*args)
         
     | 
| 
      
 12 
     | 
    
         
            +
                end
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
                def build(*args)
         
     | 
| 
      
 15 
     | 
    
         
            +
                  FixtureDependencies.build(*args)
         
     | 
| 
      
 16 
     | 
    
         
            +
                end
         
     | 
| 
      
 17 
     | 
    
         
            +
              end
         
     | 
| 
      
 18 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -1,15 +1,5 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'fixture_dependencies'
         
     | 
| 
      
 1 
     | 
    
         
            +
            require 'fixture_dependencies/helper_methods'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            class Minitest::Spec
         
     | 
| 
       4 
     | 
    
         
            -
               
     | 
| 
       5 
     | 
    
         
            -
                FixtureDependencies.load(*args)
         
     | 
| 
       6 
     | 
    
         
            -
              end
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
              def load_attributes(*args)
         
     | 
| 
       9 
     | 
    
         
            -
                FixtureDependencies.load_attributes(*args)
         
     | 
| 
       10 
     | 
    
         
            -
              end
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
              def build(*args)
         
     | 
| 
       13 
     | 
    
         
            -
                FixtureDependencies.build(*args)
         
     | 
| 
       14 
     | 
    
         
            -
              end
         
     | 
| 
      
 4 
     | 
    
         
            +
              include FixtureDependencies::HelperMethods
         
     | 
| 
       15 
5 
     | 
    
         
             
            end
         
     | 
| 
         @@ -1,3 +1,5 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'fixture_dependencies/helper_methods'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
       1 
3 
     | 
    
         
             
            if defined?(RSpec)
         
     | 
| 
       2 
4 
     | 
    
         
             
              example_group = RSpec::Core::ExampleGroup
         
     | 
| 
       3 
5 
     | 
    
         
             
              require 'rspec/version'
         
     | 
| 
         @@ -27,15 +29,5 @@ else 
     | 
|
| 
       27 
29 
     | 
    
         
             
            end
         
     | 
| 
       28 
30 
     | 
    
         | 
| 
       29 
31 
     | 
    
         
             
            example_group.class_eval do
         
     | 
| 
       30 
     | 
    
         
            -
               
     | 
| 
       31 
     | 
    
         
            -
                FixtureDependencies.load(*args)
         
     | 
| 
       32 
     | 
    
         
            -
              end
         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
              def load_attributes(*args)
         
     | 
| 
       35 
     | 
    
         
            -
                FixtureDependencies.load_attributes(*args)
         
     | 
| 
       36 
     | 
    
         
            -
              end
         
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
              def build(*args)
         
     | 
| 
       39 
     | 
    
         
            -
                FixtureDependencies.build(*args)
         
     | 
| 
       40 
     | 
    
         
            -
              end
         
     | 
| 
      
 32 
     | 
    
         
            +
              include FixtureDependencies::HelperMethods
         
     | 
| 
       41 
33 
     | 
    
         
             
            end
         
     | 
| 
         @@ -1,22 +1,5 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'fixture_dependencies'
         
     | 
| 
      
 1 
     | 
    
         
            +
            require 'fixture_dependencies/helper_methods'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
               
     | 
| 
       5 
     | 
    
         
            -
                class TestCase
         
     | 
| 
       6 
     | 
    
         
            -
                  private
         
     | 
| 
       7 
     | 
    
         
            -
                  
         
     | 
| 
       8 
     | 
    
         
            -
                  # Load given fixtures using FixtureDependencies
         
     | 
| 
       9 
     | 
    
         
            -
                  def load(*fixture)
         
     | 
| 
       10 
     | 
    
         
            -
                    FixtureDependencies.load(*fixture)
         
     | 
| 
       11 
     | 
    
         
            -
                  end
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
                  def load_attributes(*args)
         
     | 
| 
       14 
     | 
    
         
            -
                    FixtureDependencies.load_attributes(*args)
         
     | 
| 
       15 
     | 
    
         
            -
                  end
         
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
                  def build(*args)
         
     | 
| 
       18 
     | 
    
         
            -
                    FixtureDependencies.build(*args)
         
     | 
| 
       19 
     | 
    
         
            -
                  end
         
     | 
| 
       20 
     | 
    
         
            -
                end
         
     | 
| 
       21 
     | 
    
         
            -
              end
         
     | 
| 
      
 3 
     | 
    
         
            +
            class Test::Unit::TestCase
         
     | 
| 
      
 4 
     | 
    
         
            +
              include FixtureDependencies::HelperMethods
         
     | 
| 
       22 
5 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: fixture_dependencies
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.10.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Jeremy Evans
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2018-05-18 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: 
         
     | 
| 
       14 
14 
     | 
    
         
             
            email: code@jeremyevans.net
         
     | 
| 
         @@ -21,6 +21,7 @@ files: 
     | 
|
| 
       21 
21 
     | 
    
         
             
            - README.md
         
     | 
| 
       22 
22 
     | 
    
         
             
            - lib/fixture_dependencies.rb
         
     | 
| 
       23 
23 
     | 
    
         
             
            - lib/fixture_dependencies/active_record.rb
         
     | 
| 
      
 24 
     | 
    
         
            +
            - lib/fixture_dependencies/helper_methods.rb
         
     | 
| 
       24 
25 
     | 
    
         
             
            - lib/fixture_dependencies/minitest_spec.rb
         
     | 
| 
       25 
26 
     | 
    
         
             
            - lib/fixture_dependencies/minitest_spec/sequel.rb
         
     | 
| 
       26 
27 
     | 
    
         
             
            - lib/fixture_dependencies/rspec/sequel.rb
         
     | 
| 
         @@ -53,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       53 
54 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       54 
55 
     | 
    
         
             
            requirements: []
         
     | 
| 
       55 
56 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       56 
     | 
    
         
            -
            rubygems_version: 2.6 
     | 
| 
      
 57 
     | 
    
         
            +
            rubygems_version: 2.7.6
         
     | 
| 
       57 
58 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       58 
59 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       59 
60 
     | 
    
         
             
            summary: Sequel/ActiveRecord fixture loader that handles dependency graphs
         
     |