activerecord-oracle_enhanced-adapter 1.6.8 → 1.6.9

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
  SHA1:
3
- metadata.gz: b0fbbf8088124f049e32170d6d45e369ee9167a2
4
- data.tar.gz: a601d05f95b7763d9688aa06a5aedc8eab3ab841
3
+ metadata.gz: d3bf47194eb3711fcdc5cc04ea0c11ca3afe5ba8
4
+ data.tar.gz: cb7f41143131f866bf881a9fbc19d76785ff5c75
5
5
  SHA512:
6
- metadata.gz: fa62056e503ced618cf72c9344712ba4b751a8bdcecce0dea8573ee8755fa7a63837e1f368a33f296a3a2241f3c63ff1a65bff69274d55030f95c9703dc0e0ea
7
- data.tar.gz: d16f49fd9c02333cf25e501c75f5bcf353e876bc0c6e2209f4c58615168182e8abcf72f7255b7db7fff0098de2766629a1b8a701ad80e7c913ed33504bdce5dd
6
+ metadata.gz: 976de1d723fa15c16a103e6ea6c9961f1600a04f1e08f4817e804b1a05dca1aec5d1759a5a1a42c938061118caf1bd2f1b40f0b0328763b052631ff765e92e50
7
+ data.tar.gz: 01fa3f9969c749aa645571e219a5069c333d05afc39d138733ef723846da8ef8b0dfffef699cc3385c8df4a7233fff83bc551c08fead510aab683560a92166cd
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.6.9 / 2017-03-29
2
+
3
+ * Changes and bug fixes since 1.6.8
4
+ * Fix the BINARY_FLOAT column type returns nil in JRuby [#1257]
5
+
1
6
  ## 1.6.8 / 2017-03-18
2
7
 
3
8
  * Changes and bug fixes since 1.6.7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.8
1
+ 1.6.9
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{activerecord-oracle_enhanced-adapter}
8
- s.version = "1.6.8"
8
+ s.version = "1.6.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.license = 'MIT'
12
12
  s.authors = [%q{Raimonds Simanovskis}]
13
- s.date = %q{2017-03-18}
13
+ s.date = %q{2017-03-29}
14
14
  s.description = %q{Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases.
15
15
  This adapter is superset of original ActiveRecord Oracle adapter.
16
16
  }
@@ -532,6 +532,8 @@ module ActiveRecord
532
532
  else
533
533
  BigDecimal.new(d.stringValue)
534
534
  end
535
+ when :BINARY_FLOAT
536
+ rset.getFloat(i)
535
537
  when :VARCHAR2, :CHAR, :LONG, :NVARCHAR2, :NCHAR
536
538
  rset.getString(i)
537
539
  when :DATE
@@ -1490,9 +1490,14 @@ describe "OracleEnhancedAdapter handling of BINARY_FLOAT columns" do
1490
1490
  CREATE SEQUENCE test2_employees_seq MINVALUE 1
1491
1491
  INCREMENT BY 1 START WITH 10040 CACHE 20 NOORDER NOCYCLE
1492
1492
  SQL
1493
+
1494
+ class ::Test2Employee < ActiveRecord::Base
1495
+ end
1493
1496
  end
1494
1497
 
1495
1498
  after(:all) do
1499
+ Object.send(:remove_const, "Test2Employee")
1500
+
1496
1501
  @conn.execute "DROP TABLE test2_employees"
1497
1502
  @conn.execute "DROP SEQUENCE test2_employees_seq"
1498
1503
  end
@@ -1502,4 +1507,12 @@ describe "OracleEnhancedAdapter handling of BINARY_FLOAT columns" do
1502
1507
  column = columns.detect{|c| c.name == "hourly_rate"}
1503
1508
  column.type.should == :float
1504
1509
  end
1510
+
1511
+ it "should BINARY_FLOAT column type returns an approximate value" do
1512
+ employee = Test2Employee.create(hourly_rate: 4.4)
1513
+
1514
+ employee.reload
1515
+
1516
+ expect(employee.hourly_rate).to eq(4.400000095367432)
1517
+ end
1505
1518
  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.6.8
4
+ version: 1.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raimonds Simanovskis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-18 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jeweler
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  requirements: []
277
277
  rubyforge_project:
278
- rubygems_version: 2.6.10
278
+ rubygems_version: 2.6.11
279
279
  signing_key:
280
280
  specification_version: 4
281
281
  summary: Oracle enhanced adapter for ActiveRecord