unconstrained 0.0.2 → 0.0.3
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/unconstrained.rb +2 -2
- data/lib/unconstrained/active_record_plugin.rb +5 -20
- data/lib/unconstrained/handlers.rb +3 -4
- data/lib/unconstrained/handlers/abstract_handler.rb +2 -2
- data/lib/unconstrained/handlers/postgresql.rb +2 -2
- data/lib/unconstrained/version.rb +1 -1
- data/test/dummy/config/application.rb +0 -3
- data/test/dummy/db/migrate/20150207083618_parents_with_children.rb +1 -1
- data/test/dummy/db/schema.rb +3 -4
- data/test/dummy/log/test.log +1116 -1199
- metadata +20 -22
- data/test/dummy/log/development.log +0 -12
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: unconstrained
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Alexandros Giouzenis
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2017-07-20 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rails
         | 
| @@ -16,26 +16,26 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - "~>"
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version:  | 
| 19 | 
            +
                    version: '5.0'
         | 
| 20 20 | 
             
              type: :runtime
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 24 | 
             
                - - "~>"
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version:  | 
| 26 | 
            +
                    version: '5.0'
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: pg
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 30 | 
             
                requirements:
         | 
| 31 | 
            -
                - - " | 
| 31 | 
            +
                - - "~>"
         | 
| 32 32 | 
             
                  - !ruby/object:Gem::Version
         | 
| 33 33 | 
             
                    version: '0'
         | 
| 34 34 | 
             
              type: :development
         | 
| 35 35 | 
             
              prerelease: false
         | 
| 36 36 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 37 | 
             
                requirements:
         | 
| 38 | 
            -
                - - " | 
| 38 | 
            +
                - - "~>"
         | 
| 39 39 | 
             
                  - !ruby/object:Gem::Version
         | 
| 40 40 | 
             
                    version: '0'
         | 
| 41 41 | 
             
            description: This gem converts the foreign key exceptions raised by the database into
         | 
| @@ -68,7 +68,6 @@ files: | |
| 68 68 | 
             
            - test/dummy/db/migrate/20150207083618_parents_with_children.rb
         | 
| 69 69 | 
             
            - test/dummy/db/schema.rb
         | 
| 70 70 | 
             
            - test/dummy/db/test.sqlite3
         | 
| 71 | 
            -
            - test/dummy/log/development.log
         | 
| 72 71 | 
             
            - test/dummy/log/test.log
         | 
| 73 72 | 
             
            - test/fixtures/children.yml
         | 
| 74 73 | 
             
            - test/fixtures/parents.yml
         | 
| @@ -84,9 +83,9 @@ require_paths: | |
| 84 83 | 
             
            - lib
         | 
| 85 84 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 86 85 | 
             
              requirements:
         | 
| 87 | 
            -
              - - " | 
| 86 | 
            +
              - - "~>"
         | 
| 88 87 | 
             
                - !ruby/object:Gem::Version
         | 
| 89 | 
            -
                  version: '0'
         | 
| 88 | 
            +
                  version: '2.0'
         | 
| 90 89 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 91 90 | 
             
              requirements:
         | 
| 92 91 | 
             
              - - ">="
         | 
| @@ -94,28 +93,27 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 94 93 | 
             
                  version: '0'
         | 
| 95 94 | 
             
            requirements: []
         | 
| 96 95 | 
             
            rubyforge_project: 
         | 
| 97 | 
            -
            rubygems_version: 2. | 
| 96 | 
            +
            rubygems_version: 2.6.11
         | 
| 98 97 | 
             
            signing_key: 
         | 
| 99 98 | 
             
            specification_version: 4
         | 
| 100 99 | 
             
            summary: A gem that converts Active Record foreign key exceptions.
         | 
| 101 100 | 
             
            test_files:
         | 
| 102 | 
            -
            - test/test_helper.rb
         | 
| 103 | 
            -
            - test/save_test.rb
         | 
| 104 | 
            -
            - test/destroy_test.rb
         | 
| 105 | 
            -
            - test/dummy/config.ru
         | 
| 106 101 | 
             
            - test/dummy/Rakefile
         | 
| 107 | 
            -
            - test/dummy/ | 
| 108 | 
            -
            - test/dummy/ | 
| 109 | 
            -
            - test/dummy/db/schema.rb
         | 
| 102 | 
            +
            - test/dummy/config.ru
         | 
| 103 | 
            +
            - test/dummy/db/test.sqlite3
         | 
| 110 104 | 
             
            - test/dummy/db/migrate/20150207083618_parents_with_children.rb
         | 
| 111 105 | 
             
            - test/dummy/db/development.sqlite3
         | 
| 112 | 
            -
            - test/dummy/db/ | 
| 113 | 
            -
            - test/dummy/config/database.yml
         | 
| 114 | 
            -
            - test/dummy/config/application.rb
         | 
| 106 | 
            +
            - test/dummy/db/schema.rb
         | 
| 115 107 | 
             
            - test/dummy/config/boot.rb
         | 
| 116 108 | 
             
            - test/dummy/config/environment.rb
         | 
| 117 109 | 
             
            - test/dummy/config/environments/test.rb
         | 
| 118 | 
            -
            - test/dummy/ | 
| 110 | 
            +
            - test/dummy/config/database.yml
         | 
| 111 | 
            +
            - test/dummy/config/application.rb
         | 
| 112 | 
            +
            - test/dummy/app/models/child.rb
         | 
| 113 | 
            +
            - test/dummy/app/models/parent.rb
         | 
| 119 114 | 
             
            - test/dummy/log/test.log
         | 
| 120 | 
            -
            - test/ | 
| 115 | 
            +
            - test/save_test.rb
         | 
| 116 | 
            +
            - test/destroy_test.rb
         | 
| 117 | 
            +
            - test/test_helper.rb
         | 
| 121 118 | 
             
            - test/fixtures/parents.yml
         | 
| 119 | 
            +
            - test/fixtures/children.yml
         | 
| @@ -1,12 +0,0 @@ | |
| 1 | 
            -
              [1m[36m (15.1ms)[0m  [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
         | 
| 2 | 
            -
              [1m[35m (0.3ms)[0m  select sqlite_version(*)
         | 
| 3 | 
            -
              [1m[36m (15.2ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
         | 
| 4 | 
            -
              [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m  SELECT "schema_migrations".* FROM "schema_migrations"
         | 
| 5 | 
            -
              [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m  [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
         | 
| 6 | 
            -
            Migrating to ParentsWithChildren (20150207083618)
         | 
| 7 | 
            -
              [1m[35m (0.1ms)[0m  begin transaction
         | 
| 8 | 
            -
              [1m[36m (0.3ms)[0m  [1mCREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
         | 
| 9 | 
            -
              [1m[35m (0.1ms)[0m  CREATE TABLE "children" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parents_id" integer) 
         | 
| 10 | 
            -
              [1m[36mSQL (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m  [["version", "20150207083618"]]
         | 
| 11 | 
            -
              [1m[35m (17.9ms)[0m  commit transaction
         | 
| 12 | 
            -
              [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m  [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
         |