jfb 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jfb/jfb.rb +3 -2
  3. data/lib/jfb/version.rb +4 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a85b77aebd017455c6cb61b610f8053594f87be
4
- data.tar.gz: 1d158053d441b6520b0208f096c419cd57b1099e
3
+ metadata.gz: fbfacf01831afd0a13633dbec71a78ba606678b6
4
+ data.tar.gz: 24913f07a307d047972895eeb7153e9697a3e98e
5
5
  SHA512:
6
- metadata.gz: 60f5c0a8e81b3d5b6952bd0c13b053e72db11ef295d5a3ca39c02464b19622e65091e7e37a5df16eb31b40e11473c455116ce9f9486e50fa893713b0b7376cc3
7
- data.tar.gz: c8b093f49047962c1ee8030a84dd6f527f0d5c3c74e731cc9d92b1e7a5d8c5e41036c1d8da47658e763e2f213e87fe92d54ae23bd0db32ad0f7bd8a061d5cdb7
6
+ metadata.gz: 55e2a0732aed8ad025abcee96ac7dca6cf4604786a386add463f8df4d862f947ded33e4aa824ef9325bade17659a2a33e14b472338beb2ac535e2debfb259c29
7
+ data.tar.gz: 9a471bb493f3ff45115a33c0fd1204f8bc49dcddecf49a35d0ad9ef6f0db2ab67619cf71454aa031b5338b5baab8c7703171ffa16b522f25304a101ec7b4969b
@@ -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 Error => erro
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 Error => erro
58
+ rescue Exception => erro
58
59
  puts "Error message:\n#{erro}"
59
60
  end
60
61
  else
@@ -1,5 +1,5 @@
1
1
  module Jfb
2
- VERSION = "0.2.6"
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.6
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-21 00:00:00.000000000 Z
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