declare_schema 0.6.1 → 0.6.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/CHANGELOG.md +9 -0
 - data/Gemfile +1 -0
 - data/Gemfile.lock +5 -3
 - data/lib/declare_schema/model/foreign_key_definition.rb +1 -1
 - data/lib/declare_schema/version.rb +1 -1
 - metadata +5 -5
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 4d4a25e64860b280537a5c131f10537323b6908099a8c58fd72c8da6e8117556
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 9b376403b635880e2e7bf3a8cd46dbd1bedc2dec030f7be03dc7a671ca956128
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3b8709130944d5eef82e8960a40df117b50c84d29b5ff1ba222bab5f8ff3978a84d2971b022b83c2bd122c2681aa715bd65e67238bc231eb1494d06949e0a297
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: bcf79bbe85dfef64f34a9d56c8f3cb7817a89796ddb086b3ddced1b7e91b1d79fe80f0f1f89de759c81417691cf3315c21655fbd4b93a3ced32495f601c1562f
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -4,6 +4,14 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). 
     | 
|
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
      
 7 
     | 
    
         
            +
            ## [0.6.2] - 2021-01-06
         
     | 
| 
      
 8 
     | 
    
         
            +
            ### Added
         
     | 
| 
      
 9 
     | 
    
         
            +
            - Added `sqlite3` as dev dependency for local development
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            ### Fixed
         
     | 
| 
      
 12 
     | 
    
         
            +
            - Fixed a bug in migration generation caused by `DeclareSchema::Model::ForeignKeyDefinition#to_add_statement`
         
     | 
| 
      
 13 
     | 
    
         
            +
              not being passed proper arguments.
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
       7 
15 
     | 
    
         
             
            ## [0.6.1] - 2021-01-06
         
     | 
| 
       8 
16 
     | 
    
         
             
            ### Added
         
     | 
| 
       9 
17 
     | 
    
         
             
            - Added Appraisals for MySQL as well as SQLite.
         
     | 
| 
         @@ -92,6 +100,7 @@ using the appropriate Rails configuration attributes. 
     | 
|
| 
       92 
100 
     | 
    
         
             
            ### Added
         
     | 
| 
       93 
101 
     | 
    
         
             
            - Initial version from https://github.com/Invoca/hobo_fields v4.1.0.
         
     | 
| 
       94 
102 
     | 
    
         | 
| 
      
 103 
     | 
    
         
            +
            [0.6.2]: https://github.com/Invoca/declare_schema/compare/v0.6.1...v0.6.2
         
     | 
| 
       95 
104 
     | 
    
         
             
            [0.6.1]: https://github.com/Invoca/declare_schema/compare/v0.6.0...v0.6.1
         
     | 
| 
       96 
105 
     | 
    
         
             
            [0.6.0]: https://github.com/Invoca/declare_schema/compare/v0.5.0...v0.6.0
         
     | 
| 
       97 
106 
     | 
    
         
             
            [0.5.0]: https://github.com/Invoca/declare_schema/compare/v0.4.2...v0.5.0
         
     | 
    
        data/Gemfile
    CHANGED
    
    
    
        data/Gemfile.lock
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            PATH
         
     | 
| 
       2 
2 
     | 
    
         
             
              remote: .
         
     | 
| 
       3 
3 
     | 
    
         
             
              specs:
         
     | 
| 
       4 
     | 
    
         
            -
                declare_schema (0.6. 
     | 
| 
      
 4 
     | 
    
         
            +
                declare_schema (0.6.2)
         
     | 
| 
       5 
5 
     | 
    
         
             
                  rails (>= 4.2)
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            GEM
         
     | 
| 
         @@ -64,12 +64,12 @@ GEM 
     | 
|
| 
       64 
64 
     | 
    
         
             
                crass (1.0.6)
         
     | 
| 
       65 
65 
     | 
    
         
             
                diff-lcs (1.4.4)
         
     | 
| 
       66 
66 
     | 
    
         
             
                erubi (1.9.0)
         
     | 
| 
       67 
     | 
    
         
            -
                ffi (1. 
     | 
| 
      
 67 
     | 
    
         
            +
                ffi (1.14.2)
         
     | 
| 
       68 
68 
     | 
    
         
             
                globalid (0.4.2)
         
     | 
| 
       69 
69 
     | 
    
         
             
                  activesupport (>= 4.2.0)
         
     | 
| 
       70 
70 
     | 
    
         
             
                i18n (1.8.5)
         
     | 
| 
       71 
71 
     | 
    
         
             
                  concurrent-ruby (~> 1.0)
         
     | 
| 
       72 
     | 
    
         
            -
                listen (3. 
     | 
| 
      
 72 
     | 
    
         
            +
                listen (3.4.0)
         
     | 
| 
       73 
73 
     | 
    
         
             
                  rb-fsevent (~> 0.10, >= 0.10.3)
         
     | 
| 
       74 
74 
     | 
    
         
             
                  rb-inotify (~> 0.9, >= 0.9.10)
         
     | 
| 
       75 
75 
     | 
    
         
             
                loofah (2.7.0)
         
     | 
| 
         @@ -166,6 +166,7 @@ GEM 
     | 
|
| 
       166 
166 
     | 
    
         
             
                  actionpack (>= 4.0)
         
     | 
| 
       167 
167 
     | 
    
         
             
                  activesupport (>= 4.0)
         
     | 
| 
       168 
168 
     | 
    
         
             
                  sprockets (>= 3.0.0)
         
     | 
| 
      
 169 
     | 
    
         
            +
                sqlite3 (1.4.2)
         
     | 
| 
       169 
170 
     | 
    
         
             
                thor (1.0.1)
         
     | 
| 
       170 
171 
     | 
    
         
             
                thread_safe (0.3.6)
         
     | 
| 
       171 
172 
     | 
    
         
             
                tzinfo (1.2.7)
         
     | 
| 
         @@ -192,6 +193,7 @@ DEPENDENCIES 
     | 
|
| 
       192 
193 
     | 
    
         
             
              responders
         
     | 
| 
       193 
194 
     | 
    
         
             
              rspec
         
     | 
| 
       194 
195 
     | 
    
         
             
              rubocop
         
     | 
| 
      
 196 
     | 
    
         
            +
              sqlite3 (~> 1.4)
         
     | 
| 
       195 
197 
     | 
    
         
             
              yard
         
     | 
| 
       196 
198 
     | 
    
         | 
| 
       197 
199 
     | 
    
         
             
            BUNDLED WITH
         
     | 
| 
         @@ -50,7 +50,7 @@ module DeclareSchema 
     | 
|
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         
             
                  attr_writer :parent_table_name
         
     | 
| 
       52 
52 
     | 
    
         | 
| 
       53 
     | 
    
         
            -
                  def to_add_statement
         
     | 
| 
      
 53 
     | 
    
         
            +
                  def to_add_statement(_new_table_name = nil, _existing_primary_key = nil)
         
     | 
| 
       54 
54 
     | 
    
         
             
                    statement = "ALTER TABLE #{@child_table} ADD CONSTRAINT #{@constraint_name} FOREIGN KEY #{@index_name}(#{@foreign_key_name}) REFERENCES #{parent_table_name}(id) #{'ON DELETE CASCADE' if on_delete_cascade}"
         
     | 
| 
       55 
55 
     | 
    
         
             
                    "execute #{statement.inspect}"
         
     | 
| 
       56 
56 
     | 
    
         
             
                  end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: declare_schema
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.6. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.6.2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Invoca Development adapted from hobo_fields by Tom Locke
         
     | 
| 
       8 
     | 
    
         
            -
            autorequire: 
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2021-01- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-01-14 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rails
         
     | 
| 
         @@ -93,7 +93,7 @@ homepage: https://github.com/Invoca/declare_schema 
     | 
|
| 
       93 
93 
     | 
    
         
             
            licenses: []
         
     | 
| 
       94 
94 
     | 
    
         
             
            metadata:
         
     | 
| 
       95 
95 
     | 
    
         
             
              allowed_push_host: https://rubygems.org
         
     | 
| 
       96 
     | 
    
         
            -
            post_install_message: 
     | 
| 
      
 96 
     | 
    
         
            +
            post_install_message:
         
     | 
| 
       97 
97 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       98 
98 
     | 
    
         
             
            require_paths:
         
     | 
| 
       99 
99 
     | 
    
         
             
            - lib
         
     | 
| 
         @@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       109 
109 
     | 
    
         
             
                  version: 1.3.6
         
     | 
| 
       110 
110 
     | 
    
         
             
            requirements: []
         
     | 
| 
       111 
111 
     | 
    
         
             
            rubygems_version: 3.0.3
         
     | 
| 
       112 
     | 
    
         
            -
            signing_key: 
     | 
| 
      
 112 
     | 
    
         
            +
            signing_key:
         
     | 
| 
       113 
113 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       114 
114 
     | 
    
         
             
            summary: Database schema declaration and migration generator for Rails
         
     | 
| 
       115 
115 
     | 
    
         
             
            test_files: []
         
     |