fluiddb 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/FluidDb/Firebird.rb +7 -2
- metadata +2 -2
data/lib/FluidDb/Firebird.rb
CHANGED
@@ -14,12 +14,17 @@ module FluidDb
|
|
14
14
|
|
15
15
|
user = uri.user || "sysdba"
|
16
16
|
password = uri.password || "masterkey"
|
17
|
-
|
17
|
+
port = uri.port || 3050
|
18
|
+
|
19
|
+
path = uri.path
|
20
|
+
path = path.slice(1,uri.path.length-1) if path.slice(0,3) == "/C:"
|
21
|
+
path = URI.unescape( path )
|
22
|
+
|
18
23
|
|
19
24
|
# The Database class acts as a factory for Connections.
|
20
25
|
# It can also create and drop databases.
|
21
26
|
db = Database.new(
|
22
|
-
:database => "#{uri.host}:#{
|
27
|
+
:database => "#{uri.host}/#{port}:#{path};",
|
23
28
|
:username => user,
|
24
29
|
:password => password)
|
25
30
|
# :database is the only parameter without a default.
|
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.1.
|
4
|
+
version: 0.1.3
|
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: 2013-08-
|
12
|
+
date: 2013-08-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A semantic layer for db interaction
|
15
15
|
email: guy@guyirvine.com
|