fluiddb 0.0.14 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/FluidDb.rb +5 -0
  2. data/lib/FluidDb/Db.rb +1 -0
  3. metadata +2 -2
data/lib/FluidDb.rb CHANGED
@@ -18,9 +18,12 @@ module FluidDb
18
18
  end
19
19
 
20
20
  class Base
21
+
22
+ attr_writer :verbose
21
23
 
22
24
  @connection;
23
25
  @uri
26
+ @verbose
24
27
 
25
28
  # Constructor.
26
29
  #
@@ -62,6 +65,8 @@ module FluidDb
62
65
  end
63
66
  end
64
67
 
68
+ puts sql if @verbose == true
69
+
65
70
  return sql
66
71
  end
67
72
 
data/lib/FluidDb/Db.rb CHANGED
@@ -3,6 +3,7 @@ require "FluidDb"
3
3
  module FluidDb
4
4
 
5
5
  def FluidDb.Db( uri )
6
+ uri = URI.parse( uri ) if uri.is_a? String
6
7
 
7
8
  case uri.scheme
8
9
  when "mysql"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluiddb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-06 00:00:00.000000000 Z
12
+ date: 2012-11-19 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A semantic layer for db interaction
15
15
  email: guy@guyirvine.com