nonschema_migrations 5.1.2.1 → 6.0.alpha1
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 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 6216f98f76c03cbdcd3a2bd60bcd54b7622c2a1d32b268a097e365492e6a2fd5
         | 
| 4 | 
            +
              data.tar.gz: 2feb072bd145e3da6d22ebd5abddee024fb32c90ce35e9cd1847144c60b5d6ce
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 0fe28ee8aaf9f93b693e0d18d9c3ece88b161cb81730fc239ba630eb5b3fc5fe7a24d3832018f3b2317be96bcc031eb23da1ea7b36487ae7ab7dcff8a31b0a77
         | 
| 7 | 
            +
              data.tar.gz: 1f2cfc4d4613e2fa4e8775905d684512fb7ea8960f6a046a795b2aa5e30365133cb49384e491b4feebac5b2fee0e7b1369e43d6f6b90c610385d74021638bc89
         | 
| @@ -1,6 +1,6 @@ | |
| 1 | 
            -
            class CreateDataMigrations < ActiveRecord::Migration[ | 
| 1 | 
            +
            class CreateDataMigrations < ActiveRecord::Migration[<%= Gem.loaded_specs['activerecord'].version.to_s.split(".")[0..1].join(".") %>]
         | 
| 2 2 | 
             
              def self.up
         | 
| 3 | 
            -
                create_table :data_migrations do |t|
         | 
| 3 | 
            +
                create_table :data_migrations, id: false do |t|
         | 
| 4 4 | 
             
                  t.string :version
         | 
| 5 5 | 
             
                end
         | 
| 6 6 | 
             
              end
         | 
    
        data/lib/nonschema_migrator.rb
    CHANGED
    
    | @@ -71,7 +71,7 @@ class NonschemaMigrator < ActiveRecord::Migrator | |
| 71 71 | 
             
                  end
         | 
| 72 72 |  | 
| 73 73 | 
             
                  def move(direction, steps)
         | 
| 74 | 
            -
                    migrator = new_migrator(direction, migrations,  | 
| 74 | 
            +
                    migrator = new_migrator(direction, migrations, schema_migration)
         | 
| 75 75 |  | 
| 76 76 | 
             
                    if current_version != 0 && !migrator.current_migration
         | 
| 77 77 | 
             
                      raise UnknownMigrationVersionError.new(current_version)
         | 
| @@ -96,7 +96,7 @@ class NonschemaMigrator < ActiveRecord::Migrator | |
| 96 96 | 
             
                                            migrations
         | 
| 97 97 | 
             
                                          end
         | 
| 98 98 |  | 
| 99 | 
            -
                    new_migrator(:up, selected_migrations,  | 
| 99 | 
            +
                    new_migrator(:up, selected_migrations, target_version).migrate
         | 
| 100 100 | 
             
                  end
         | 
| 101 101 |  | 
| 102 102 | 
             
                  def down(target_version = nil)
         | 
| @@ -106,7 +106,7 @@ class NonschemaMigrator < ActiveRecord::Migrator | |
| 106 106 | 
             
                                            migrations
         | 
| 107 107 | 
             
                                          end
         | 
| 108 108 |  | 
| 109 | 
            -
                    new_migrator(:down, selected_migrations,  | 
| 109 | 
            +
                    new_migrator(:down, selected_migrations, target_version).migrate
         | 
| 110 110 | 
             
                  end
         | 
| 111 111 | 
             
                end
         | 
| 112 112 |  | 
| @@ -130,7 +130,7 @@ class NonschemaMigrator < ActiveRecord::Migrator | |
| 130 130 | 
             
                  end
         | 
| 131 131 |  | 
| 132 132 | 
             
                  def run(direction, path, target_version)
         | 
| 133 | 
            -
                    new_migrator(path, direction, context(path).migrations,  | 
| 133 | 
            +
                    new_migrator(path, direction, context(path).migrations, target_version).run
         | 
| 134 134 | 
             
                  end
         | 
| 135 135 | 
             
                end
         | 
| 136 136 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: nonschema_migrations
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version:  | 
| 4 | 
            +
              version: 6.0.alpha1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Jason Fleetwood-Boldt
         | 
| @@ -14,22 +14,16 @@ dependencies: | |
| 14 14 | 
             
              name: activerecord
         | 
| 15 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 16 | 
             
                requirements:
         | 
| 17 | 
            -
                - -  | 
| 17 | 
            +
                - - '='
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version:  | 
| 20 | 
            -
                - - "<"
         | 
| 21 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 22 | 
            -
                    version: '7'
         | 
| 19 | 
            +
                    version: 7.0.0.alpha2
         | 
| 23 20 | 
             
              type: :runtime
         | 
| 24 21 | 
             
              prerelease: false
         | 
| 25 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 26 23 | 
             
                requirements:
         | 
| 27 | 
            -
                - -  | 
| 28 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            -
                    version: '6.0'
         | 
| 30 | 
            -
                - - "<"
         | 
| 24 | 
            +
                - - '='
         | 
| 31 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 32 | 
            -
                    version:  | 
| 26 | 
            +
                    version: 7.0.0.alpha2
         | 
| 33 27 | 
             
            description: Separate schema-only migrations from nonschema (data) migrations in your
         | 
| 34 28 | 
             
              Rails app
         | 
| 35 29 | 
             
            email: code@jasonfb.net
         | 
| @@ -45,19 +39,21 @@ files: | |
| 45 39 | 
             
            - lib/nonschema_migrations/railtie.rb
         | 
| 46 40 | 
             
            - lib/nonschema_migrator.rb
         | 
| 47 41 | 
             
            - lib/tasks/data.rb
         | 
| 48 | 
            -
            homepage: https:// | 
| 42 | 
            +
            homepage: https://github.com/jasonfb/nonschema_migrations
         | 
| 49 43 | 
             
            licenses:
         | 
| 50 44 | 
             
            - MIT
         | 
| 51 45 | 
             
            metadata:
         | 
| 52 46 | 
             
              source_code_uri: https://github.com/jasonfb/nonschema_migrations
         | 
| 53 47 | 
             
              documentation_uri: https://jasonfleetwoodboldt.com/my-open-source-projects/nonschema-migrations/
         | 
| 54 | 
            -
              homepage_uri: https:// | 
| 48 | 
            +
              homepage_uri: https://heliosdev.shop/
         | 
| 55 49 | 
             
            post_install_message: |
         | 
| 56 50 | 
             
              ---------------------------------------------
         | 
| 57 51 | 
             
              Welcome to Nonschema Migrations
         | 
| 58 52 | 
             
              to set up, please run
         | 
| 59 53 |  | 
| 60 54 | 
             
              rails generate data_migrations:install
         | 
| 55 | 
            +
             | 
| 56 | 
            +
              For support please check us out at https://heliosdev.shop/
         | 
| 61 57 | 
             
              ---------------------------------------------
         | 
| 62 58 | 
             
            rdoc_options: []
         | 
| 63 59 | 
             
            require_paths:
         | 
| @@ -69,9 +65,9 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 69 65 | 
             
                  version: '0'
         | 
| 70 66 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 71 67 | 
             
              requirements:
         | 
| 72 | 
            -
              - - " | 
| 68 | 
            +
              - - ">"
         | 
| 73 69 | 
             
                - !ruby/object:Gem::Version
         | 
| 74 | 
            -
                  version:  | 
| 70 | 
            +
                  version: 1.3.1
         | 
| 75 71 | 
             
            requirements: []
         | 
| 76 72 | 
             
            rubygems_version: 3.1.4
         | 
| 77 73 | 
             
            signing_key:
         |