activerecord-oracle_enhanced-adapter 5.2.0.rc1 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e19195d88863e1aee0c0455835a4b147089cf1d63f186313781c7a873971584
4
- data.tar.gz: b00a09707c748ce35f909a8bd9130236384e8b93fd968f44db018500dfecd957
3
+ metadata.gz: f5c56a2903f50e1f4d29ebce73f1d3ecfb8ccc20fdff51530358068c99e74182
4
+ data.tar.gz: 1230afe509076a53d1f797ccbdba4d74b29647fdc263f60849d1ae34145e6116
5
5
  SHA512:
6
- metadata.gz: '08d0dafa1bd9ab6babb68da03bdb4d72b0d5778c60065afbfaca1cd58b765705d6b3794343bae0d4d3c423f26206c776a54a20922aaa610d2f758af57e827729'
7
- data.tar.gz: 0fe5601895d3c5bee38f624908a89c8bbd2b3717f63769abb9c5169536e1aacdbc9a6fea490b8a30a5ad6a02964063a7182dbbefd76375d9a40f561341ec287e
6
+ metadata.gz: ba4c22c74b3da5cd8768681df7c57aa0b07d1037d13efeecd3588a3487543f79b2d0eea2e7c0fe7fd947aa66d0f339c39ff263bf680831b603c74052fa38e990
7
+ data.tar.gz: cc928edfef4189c8ce3ed0e1d1643b2b13369ef052467b21fa7223c03d4a31925b45572e3d60e2ec3b108d12365d601f3e17884eda599586cd869789841c4895
data/History.md CHANGED
@@ -1,3 +1,39 @@
1
+ ## 5.2.0 / 2018-04-10
2
+
3
+ * Major changes and fixes
4
+ * Support Rails 5.2.0
5
+
6
+ * Documentation changes
7
+ * Add README and UPGRADE sections for Rails 5.2 [#1637 #1638]
8
+ * Update bug templates for Rails 5.2 [#1663]
9
+
10
+ * Changes in specs
11
+ * Suppress expected exceptions by `report_on_exception` = `false` [#1655 #1656]
12
+
13
+ * Changes for CI and builds
14
+ * CI with JRuby 9.1.16.0 [#1659]
15
+ * CI with Ruby 2.5.1 [#1683 #1684]
16
+ * CI against Ruby 2.4.4 [#1686 #1687]
17
+ * Use ruby 2.3.7 and 2.2.10 for CI at release52 branch [#1688]
18
+ * Oracle enhanced adapter 5.2 needs Rails `5-2-stable` branch [#1654]
19
+
20
+ ## 5.2.0.rc1 / 2018-01-31
21
+
22
+ * Changes and bug fixes
23
+
24
+ * Support Rails 5.2.0.rc1
25
+ * Do not register `VARCHAR2(1)` sql type as `Type:Boolean` [#1621 #1623]
26
+ * Support `insert_fixtures_set` [#1633]
27
+ * Deprecated `insert_fixtures` [#1634]
28
+ * Refactor index options dumping [#1602]
29
+ * Skip failed spec explained at #1599 [#1599 #1604]
30
+ * CI with Ruby 2.5.0 [#1618]
31
+ * CI against JRuby 9.1.15.0 [#1605]
32
+ * Enable `Layout/SpaceBeforeComma` [#1606]
33
+ * Enable `Layout/LeadingCommentSpace` cop [#1607]
34
+ * Enable autocorrect for `Lint/EndAlignment` cop [#1629]
35
+ * Remove `--force` option for installing bundler [#1616]
36
+
1
37
  ## 5.2.0.beta1 / 2017-11-27
2
38
 
3
39
  * Major changes and fixes
data/README.md CHANGED
@@ -10,6 +10,17 @@ Oracle enhanced ActiveRecord adapter provides Oracle database access from Ruby o
10
10
 
11
11
  INSTALLATION
12
12
  ------------
13
+ ### Rails 5.2
14
+
15
+ Oracle enhanced adapter version 5.2 supports Rails 5.2.
16
+ When using Ruby on Rails version 5.2 then in Gemfile include
17
+
18
+ ```ruby
19
+ # Use oracle as the database for Active Record
20
+ gem 'activerecord-oracle_enhanced-adapter', '~> 5.2.0'
21
+ gem 'ruby-oci8' # only for CRuby users
22
+ ```
23
+
13
24
  ### Rails 5.1
14
25
 
15
26
  Oracle enhanced adapter version 1.8 just supports Rails 5.1 and does not support Rails 5.0 or lower version of Rails.
@@ -641,6 +652,30 @@ if any database structure changed by migrations, execute `rails db:schema:cache:
641
652
 
642
653
  UPGRADE
643
654
  ---------------
655
+ ### Upgrade Rails 5.0 or older version to Rails 5.2
656
+
657
+ * `emulate_booleans_from_strings = true` change
658
+
659
+ `VARCHAR2(1)` sql type is not registered as `Type:Boolean` even if `emulate_booleans_from_strings = true`
660
+
661
+ Configure each model attribute as follows:
662
+
663
+ ```ruby
664
+ class Post < ActiveRecord::Base
665
+ attribute :is_default, :boolean
666
+ end
667
+ ```
668
+
669
+ * Respect database instance `cursor_sharing` value exact by default
670
+
671
+ Oracle enhanced adapter changed `cursor_sharing` parameter value to `force` in Rails 5.1 or lower. However, Oracle enhanced adapter 5.2 supports prepared statements for dictionary queries There is no need to change `cursor_sharing` value to `exact` anymore.
672
+
673
+ If you want to keep the old behavior in Rails 5.2, set `cursor_sharing: :force` explicitly in the database.yml.
674
+
675
+ * Remove `OracleEnhancedAdapter.cache_columns` to use Rails `db:schema:cache:dump`
676
+
677
+ Refer https://github.com/rsim/oracle-enhanced#schema-cache
678
+
644
679
  ### Upgrade Rails 5.0 or older version to Rails 5.1
645
680
 
646
681
  If your application gets `ORA-01000: maximum open cursors exceeded`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.2.0.rc1
1
+ 5.2.0
@@ -570,6 +570,7 @@ describe "OracleEnhancedAdapter" do
570
570
  end
571
571
  class ::TestPost < ActiveRecord::Base
572
572
  end
573
+ Thread.report_on_exception, @original_report_on_exception = false, Thread.report_on_exception if Thread.respond_to?(:report_on_exception)
573
574
  end
574
575
 
575
576
  it "Raises Deadlocked when a deadlock is encountered" do
@@ -606,6 +607,7 @@ describe "OracleEnhancedAdapter" do
606
607
  end
607
608
  Object.send(:remove_const, "TestPost") rescue nil
608
609
  ActiveRecord::Base.clear_cache!
610
+ Thread.report_on_exception = @original_report_on_exception if Thread.respond_to?(:report_on_exception)
609
611
  end
610
612
  end
611
613
  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: 5.2.0.rc1
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raimonds Simanovskis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.0.rc
19
+ version: 5.2.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: 5.2.0.rc
26
+ version: 5.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-plsql
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: 1.8.11
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.7.3
137
+ rubygems_version: 2.7.6
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Oracle enhanced adapter for ActiveRecord