activerecord-oracle_enhanced-adapter 1.7.0.beta5 → 1.7.0.beta6
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/History.md +16 -0
 - data/README.md +1 -1
 - data/VERSION +1 -1
 - data/activerecord-oracle_enhanced-adapter.gemspec +2 -2
 - data/lib/active_record/connection_adapters/oracle_enhanced/procedures.rb +1 -1
 - data/spec/active_record/connection_adapters/oracle_enhanced_schema_statements_spec.rb +6 -6
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 77097c9429eda534b2eae3d69206b6c0ba156761
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: eb88e16a2ed58c08f1dcc840e4025270a19de242
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: f745b95441442a003e10f4eabbd17ee5df10cbddaa0f732cc02580d6abc4bfccdb1a50c8d7db8f3ce30956abda010f753c325a1141d682b5c35c5cf7f7cbd18d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: fa99a5a10abec54add4ed655b3d41031e40872bb1bcecf9256df2ebbe84fa6d18621183f428aacb2da010dc4e2ac9659c01dbb6721e677a1335af194d94934df
         
     | 
    
        data/History.md
    CHANGED
    
    | 
         @@ -1,3 +1,19 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ## 1.7.0.beta6 / 2016-07-29
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            * Changes and bug fixes
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
             * Use attributes.keys to update all attributes when partial_write is disabled [#906 #943]
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            * Known issues
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
             - Only with JRuby
         
     | 
| 
      
 10 
     | 
    
         
            +
             * Rails 5 : explain should explain query with binds got Java::JavaSql::SQLException: Invalid column index [#908]
         
     | 
| 
      
 11 
     | 
    
         
            +
             - CRuby and JRuby
         
     | 
| 
      
 12 
     | 
    
         
            +
             * Rails 5 : custom methods for create record when exception is raised in after_create callback fails [#944]
         
     | 
| 
      
 13 
     | 
    
         
            +
             * Rails 5 : emulate_booleans_from_strings support [#942]
         
     | 
| 
      
 14 
     | 
    
         
            +
             * Rails 5 : undefined method `to_i' for #<Arel::Nodes::BindParam:0x00000002c92910> [#848, rails/arel#438]
         
     | 
| 
      
 15 
     | 
    
         
            +
                * #848 reproduces when database version is 11gR2 or older, it does not reproduce with 12c
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
       1 
17 
     | 
    
         
             
            ## 1.7.0.beta5 / 2016-07-28
         
     | 
| 
       2 
18 
     | 
    
         | 
| 
       3 
19 
     | 
    
         
             
            * Changes and bug fixes
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -18,7 +18,7 @@ Oracle enhanced adapter Rails 5 support is still in beta release, so use with ca 
     | 
|
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
            ```ruby
         
     | 
| 
       20 
20 
     | 
    
         
             
            # Use oracle as the database for Active Record
         
     | 
| 
       21 
     | 
    
         
            -
            gem 'activerecord-oracle_enhanced-adapter', '~> 1.7.0. 
     | 
| 
      
 21 
     | 
    
         
            +
            gem 'activerecord-oracle_enhanced-adapter', '~> 1.7.0.beta6'
         
     | 
| 
       22 
22 
     | 
    
         
             
            ```
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
            ### Rails 4.2
         
     | 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            1.7.0. 
     | 
| 
      
 1 
     | 
    
         
            +
            1.7.0.beta6
         
     | 
| 
         @@ -1,12 +1,12 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            Gem::Specification.new do |s|
         
     | 
| 
       2 
2 
     | 
    
         
             
              s.name = %q{activerecord-oracle_enhanced-adapter}
         
     | 
| 
       3 
     | 
    
         
            -
              s.version = "1.7.0. 
     | 
| 
      
 3 
     | 
    
         
            +
              s.version = "1.7.0.beta6"
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         
     | 
| 
       6 
6 
     | 
    
         
             
              s.required_ruby_version     = '>= 2.2.2'
         
     | 
| 
       7 
7 
     | 
    
         
             
              s.license = 'MIT'
         
     | 
| 
       8 
8 
     | 
    
         
             
              s.authors = [%q{Raimonds Simanovskis}]
         
     | 
| 
       9 
     | 
    
         
            -
              s.date = %q{2016-07- 
     | 
| 
      
 9 
     | 
    
         
            +
              s.date = %q{2016-07-29}
         
     | 
| 
       10 
10 
     | 
    
         
             
              s.description = %q{Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases.
         
     | 
| 
       11 
11 
     | 
    
         
             
            This adapter is superset of original ActiveRecord Oracle adapter.
         
     | 
| 
       12 
12 
     | 
    
         
             
            }
         
     | 
| 
         @@ -154,7 +154,7 @@ module ActiveRecord #:nodoc: 
     | 
|
| 
       154 
154 
     | 
    
         
             
                        # changed in place.
         
     | 
| 
       155 
155 
     | 
    
         
             
                        update_using_custom_method(changed | (attributes.keys & self.class.columns.select {|column| column.is_a?(Type::Serialized)}))
         
     | 
| 
       156 
156 
     | 
    
         
             
                      else
         
     | 
| 
       157 
     | 
    
         
            -
                        update_using_custom_method( 
     | 
| 
      
 157 
     | 
    
         
            +
                        update_using_custom_method(attributes.keys)
         
     | 
| 
       158 
158 
     | 
    
         
             
                      end
         
     | 
| 
       159 
159 
     | 
    
         
             
                    end
         
     | 
| 
       160 
160 
     | 
    
         
             
                  else
         
     | 
| 
         @@ -438,7 +438,7 @@ describe "OracleEnhancedAdapter schema definition" do 
     | 
|
| 
       438 
438 
     | 
    
         
             
                it "should raise error when new table name length is too long" do
         
     | 
| 
       439 
439 
     | 
    
         
             
                  expect do
         
     | 
| 
       440 
440 
     | 
    
         
             
                    @conn.rename_table("test_employees","a"*31)
         
     | 
| 
       441 
     | 
    
         
            -
                  end.to raise_error
         
     | 
| 
      
 441 
     | 
    
         
            +
                  end.to raise_error(ArgumentError)
         
     | 
| 
       442 
442 
     | 
    
         
             
                end
         
     | 
| 
       443 
443 
     | 
    
         | 
| 
       444 
444 
     | 
    
         
             
                it "should not raise error when new sequence name length is too long" do
         
     | 
| 
         @@ -542,19 +542,19 @@ describe "OracleEnhancedAdapter schema definition" do 
     | 
|
| 
       542 
542 
     | 
    
         
             
                it "should raise error when current index name and new index name are identical" do
         
     | 
| 
       543 
543 
     | 
    
         
             
                  expect do
         
     | 
| 
       544 
544 
     | 
    
         
             
                    @conn.rename_index("test_employees","i_test_employees_first_name","i_test_employees_first_name")
         
     | 
| 
       545 
     | 
    
         
            -
                  end.to raise_error
         
     | 
| 
      
 545 
     | 
    
         
            +
                  end.to raise_error(ActiveRecord::StatementInvalid)
         
     | 
| 
       546 
546 
     | 
    
         
             
                end
         
     | 
| 
       547 
547 
     | 
    
         | 
| 
       548 
548 
     | 
    
         
             
                it "should raise error when new index name length is too long" do
         
     | 
| 
       549 
549 
     | 
    
         
             
                  expect do
         
     | 
| 
       550 
550 
     | 
    
         
             
                    @conn.rename_index("test_employees","i_test_employees_first_name","a"*31)
         
     | 
| 
       551 
     | 
    
         
            -
                  end.to raise_error
         
     | 
| 
      
 551 
     | 
    
         
            +
                  end.to raise_error(ArgumentError)
         
     | 
| 
       552 
552 
     | 
    
         
             
                end
         
     | 
| 
       553 
553 
     | 
    
         | 
| 
       554 
554 
     | 
    
         
             
                it "should raise error when current index name does not exist" do
         
     | 
| 
       555 
555 
     | 
    
         
             
                  expect do
         
     | 
| 
       556 
556 
     | 
    
         
             
                    @conn.rename_index("test_employees","nonexist_index_name","new_index_name")
         
     | 
| 
       557 
     | 
    
         
            -
                  end.to raise_error
         
     | 
| 
      
 557 
     | 
    
         
            +
                  end.to raise_error(ArgumentError)
         
     | 
| 
       558 
558 
     | 
    
         
             
                end
         
     | 
| 
       559 
559 
     | 
    
         | 
| 
       560 
560 
     | 
    
         
             
                it "should rename index name with new one" do
         
     | 
| 
         @@ -930,7 +930,7 @@ end 
     | 
|
| 
       930 
930 
     | 
    
         
             
                it "should disable all foreign keys" do
         
     | 
| 
       931 
931 
     | 
    
         
             
                  expect do
         
     | 
| 
       932 
932 
     | 
    
         
             
                    @conn.execute "INSERT INTO test_comments (id, body, test_post_id) VALUES (1, 'test', 1)"
         
     | 
| 
       933 
     | 
    
         
            -
                  end.to raise_error
         
     | 
| 
      
 933 
     | 
    
         
            +
                  end.to raise_error(ActiveRecord::InvalidForeignKey)
         
     | 
| 
       934 
934 
     | 
    
         
             
                  @conn.disable_referential_integrity do
         
     | 
| 
       935 
935 
     | 
    
         
             
                    expect do
         
     | 
| 
       936 
936 
     | 
    
         
             
                      @conn.execute "INSERT INTO test_comments (id, body, test_post_id) VALUES (2, 'test', 2)"
         
     | 
| 
         @@ -939,7 +939,7 @@ end 
     | 
|
| 
       939 
939 
     | 
    
         
             
                  end
         
     | 
| 
       940 
940 
     | 
    
         
             
                  expect do
         
     | 
| 
       941 
941 
     | 
    
         
             
                    @conn.execute "INSERT INTO test_comments (id, body, test_post_id) VALUES (3, 'test', 3)"
         
     | 
| 
       942 
     | 
    
         
            -
                  end.to raise_error
         
     | 
| 
      
 942 
     | 
    
         
            +
                  end.to raise_error(ActiveRecord::InvalidForeignKey)
         
     | 
| 
       943 
943 
     | 
    
         
             
                end
         
     | 
| 
       944 
944 
     | 
    
         | 
| 
       945 
945 
     | 
    
         
             
              end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: activerecord-oracle_enhanced-adapter
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.7.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.7.0.beta6
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Raimonds Simanovskis
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016-07- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-07-29 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: activerecord
         
     |