sandthorn_driver_sequel 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 906dc7ee0774059ef789a16481e505f1a8d8bceb
|
4
|
+
data.tar.gz: 40e2cbffb0b5538137ee0eaec2eed54b869a64fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78b32d22e9a0cbbd7f96c273f8d3dd99c37f288311e3fdefbc16a3685e5fb48095386440b1db94dc94c39375071cba4cd01ee0ef74c576ffb36980638ae8f461
|
7
|
+
data.tar.gz: a4585c75b94eaab75ce465b9996527f68b30a5504ffcda81cf96c4bcb963759ad02f61200d5746845e4ce38bc9f072b615501b7b1d1daed81934b3f94bece93d
|
@@ -5,16 +5,16 @@ module SandthornDriverSequel
|
|
5
5
|
def initialize args = {}
|
6
6
|
@url = args.fetch(:url)
|
7
7
|
Sequel.default_timezone = :utc
|
8
|
+
@db = Sequel.connect(@url, :connection_handling => :stack)
|
8
9
|
end
|
9
10
|
def execute &block
|
10
|
-
|
11
|
+
return block.call @db
|
11
12
|
end
|
12
13
|
def execute_in_transaction &block
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
end
|
14
|
+
@db.transaction {|tr|
|
15
|
+
return block.call @db
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
19
|
end
|
20
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sandthorn_driver_sequel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lars Krantz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|