jfb 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jfb/jfb.rb +3 -2
- data/lib/jfb/version.rb +4 -1
- 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: fbfacf01831afd0a13633dbec71a78ba606678b6
|
4
|
+
data.tar.gz: 24913f07a307d047972895eeb7153e9697a3e98e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55e2a0732aed8ad025abcee96ac7dca6cf4604786a386add463f8df4d862f947ded33e4aa824ef9325bade17659a2a33e14b472338beb2ac535e2debfb259c29
|
7
|
+
data.tar.gz: 9a471bb493f3ff45115a33c0fd1204f8bc49dcddecf49a35d0ad9ef6f0db2ab67619cf71454aa031b5338b5baab8c7703171ffa16b522f25304a101ec7b4969b
|
data/lib/jfb/jfb.rb
CHANGED
@@ -2,6 +2,7 @@ require_relative 'rs'
|
|
2
2
|
require_relative 'jaybird-2.2.10.jar'
|
3
3
|
java_import 'java.sql.ResultSet'
|
4
4
|
java_import 'java.sql.SQLRecoverableException'
|
5
|
+
java_import 'java.lang.Exception'
|
5
6
|
|
6
7
|
class JFB
|
7
8
|
@con = nil
|
@@ -42,7 +43,7 @@ class JFB
|
|
42
43
|
if not @closed then
|
43
44
|
begin
|
44
45
|
return RS.new(@con.createStatement().executeQuery(cmd))
|
45
|
-
rescue
|
46
|
+
rescue Exception => erro
|
46
47
|
puts "Error message:\n#{erro}"
|
47
48
|
end
|
48
49
|
end
|
@@ -54,7 +55,7 @@ class JFB
|
|
54
55
|
if not @closed then
|
55
56
|
begin
|
56
57
|
@con.createStatement().executeUpdate(cmd)
|
57
|
-
rescue
|
58
|
+
rescue Exception => erro
|
58
59
|
puts "Error message:\n#{erro}"
|
59
60
|
end
|
60
61
|
else
|
data/lib/jfb/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Jfb
|
2
|
-
VERSION = "0.2.
|
2
|
+
VERSION = "0.2.7"
|
3
3
|
|
4
4
|
#Version 0.1.0
|
5
5
|
# Creates proper interface with jdbc
|
@@ -29,4 +29,7 @@ module Jfb
|
|
29
29
|
|
30
30
|
#Version 0.2.6
|
31
31
|
# Fix typos at method calls
|
32
|
+
|
33
|
+
#Version 0.2.7
|
34
|
+
# Proper Exception handling for query/update.
|
32
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jfb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rCamposCruz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|