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 +4 -4
- data/History.md +5 -0
- data/VERSION +1 -1
- data/activerecord-oracle_enhanced-adapter.gemspec +2 -2
- data/lib/active_record/connection_adapters/oracle_enhanced/jdbc_connection.rb +2 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb +13 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3bf47194eb3711fcdc5cc04ea0c11ca3afe5ba8
|
4
|
+
data.tar.gz: cb7f41143131f866bf881a9fbc19d76785ff5c75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 976de1d723fa15c16a103e6ea6c9961f1600a04f1e08f4817e804b1a05dca1aec5d1759a5a1a42c938061118caf1bd2f1b40f0b0328763b052631ff765e92e50
|
7
|
+
data.tar.gz: 01fa3f9969c749aa645571e219a5069c333d05afc39d138733ef723846da8ef8b0dfffef699cc3385c8df4a7233fff83bc551c08fead510aab683560a92166cd
|
data/History.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
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
|
+
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-
|
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
|
}
|
@@ -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.
|
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-
|
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.
|
278
|
+
rubygems_version: 2.6.11
|
279
279
|
signing_key:
|
280
280
|
specification_version: 4
|
281
281
|
summary: Oracle enhanced adapter for ActiveRecord
|