rack-app-sequel 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rack/app/sequel.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23af9cd20adf68714349c3f34bc69b70a5674775
|
4
|
+
data.tar.gz: 9737aa5b69ac905706180b01ee050db873344cec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7028d06a03ead126f90eb6c807b284d18537a051ee02503628c5dbfcd20e04ff52a715724d6070a2c27aa9f8d159ce088806d1a28454fcc4d7308d93f90cbbcb
|
7
|
+
data.tar.gz: f09b34648c93c5e3178ba23ef08c7af7c3b5652c61d07ee46d6e35154283fdc72b0cffc83c3c9663a1d57ed1e463da953c5bd42f12b2c6fb1e90f42581c33069
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/rack/app/sequel.rb
CHANGED
@@ -6,8 +6,8 @@ module Rack::App::SeQueL
|
|
6
6
|
require 'rack/app/sequel/version'
|
7
7
|
require 'rack/app/sequel/migration'
|
8
8
|
|
9
|
-
def open_connection
|
10
|
-
Sequel.connect(ENV.fetch('DATABASE_URL'))
|
9
|
+
def open_connection(&block)
|
10
|
+
Sequel.connect(ENV.fetch('DATABASE_URL'), &block)
|
11
11
|
end
|
12
12
|
|
13
13
|
module_function :open_connection
|