jfb 0.2.9 → 0.3.9

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 +15 -5
  3. data/lib/jfb/version.rb +9 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25ec31237d41218ae73629d00a2def1f8e61b9dd
4
- data.tar.gz: 6ac7a920fa3a3c85ae42eb7950864dd39a0ef2e2
3
+ metadata.gz: ac4dc04f6a5c33ffdab4bc7b787d7a8865246d7a
4
+ data.tar.gz: a5b21418c2b6ea791e70a9567246925613bb5cb0
5
5
  SHA512:
6
- metadata.gz: 70d24b930b427b8266f58f35925445e04cee57312cc80de5a402e616ca1269fbd3343b5a738d87b55299b6ae0159c12e6c9252d15d1918be7e1314add076aea4
7
- data.tar.gz: cf25bf943a4644e64433a56260b08e1c30238b3b7163480dc0f044afe8c6f4c3d02aa87fdf6eb369259872255015e7e55d3cfe20c0a0454c7430ec1d38447a24
6
+ metadata.gz: a8473f3b4811eca96c6ae03b9cd16a7f7e9ca9c2acd547a85c05c7ee6f27cdcfdf847689b849f72db2e43eb59ae6257dc52c9720cb95cb055a77575534692097
7
+ data.tar.gz: 6f1c3bafb3a2a659bd7a8c830a7629797d84fb3cad6b15ed85dcc301f16f44a792a18fd298356e1efdd73fae15d2c0168d29ffcd7158cc1c7bcb01e532a24c07
@@ -43,7 +43,7 @@ class JFB
43
43
  begin
44
44
  return RS.new(@con.createStatement().executeQuery(cmd))
45
45
  rescue Exception => erro
46
- puts "Error message:\n#{erro}"
46
+ puts "Error message while querying:\n#{erro}\nQuery: #{cmd}"
47
47
  end
48
48
  end
49
49
 
@@ -55,7 +55,7 @@ class JFB
55
55
  begin
56
56
  @con.createStatement().executeUpdate(cmd)
57
57
  rescue Exception => erro
58
- puts "Error message:\n#{erro}"
58
+ puts "Error message while updating:\n#{erro}\nUpdate: #{cmd}"
59
59
  end
60
60
  else
61
61
  return nil
@@ -64,14 +64,24 @@ class JFB
64
64
 
65
65
  def commit
66
66
  if not @closed then
67
- @con.commit()
67
+ begin
68
+ @con.commit()
69
+ rescue Exception => erro
70
+ puts "Error message while commiting:\n#{erro}"
71
+ end
68
72
  end
69
73
  end
70
74
 
71
75
  def close
72
76
  if not @closed then
73
- @con.commit()
74
- @con.close()
77
+ commit()
78
+
79
+ begin
80
+ @con.close()
81
+ rescue Exception => erro
82
+ puts "Error message while closing connection:\n#{erro}"
83
+ end
84
+
75
85
  @con = nil
76
86
  @closed = true
77
87
  end
@@ -1,5 +1,10 @@
1
1
  module Jfb
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.9"
3
+
4
+ #What the numbers mean: rr.ff.hh
5
+ # rr: Major releases and changes in the project;
6
+ # ff: Features added
7
+ # hh: Hotfixes in the project
3
8
 
4
9
  #Version 0.1.0
5
10
  # Creates proper interface with jdbc
@@ -38,4 +43,7 @@ module Jfb
38
43
 
39
44
  #Version 0.2.9
40
45
  # Adds commit function.
46
+
47
+ #Version 0.3.9
48
+ # Improves error reporting.
41
49
  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.9
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - rCamposCruz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-30 00:00:00.000000000 Z
11
+ date: 2017-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement