simple-sql 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/simple/sql.rb +8 -0
- data/lib/simple/sql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efbd5acc1028a0c31bae6b02ee69425d91a4e0e7
|
4
|
+
data.tar.gz: 4a31e09ebce60b04015b38339c66112640174a57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e4b060ecf5f30d3b3b3ea81bd60ef6399a7a4a73a9d7a2575b0eb1bb3b23b1758da23f9be3750968df5137ec8951df5141b8e38d0bc76527c5fba1137f06b8b
|
7
|
+
data.tar.gz: 455aa59d74fa2d7a2f35586ef2014abc6b442903b63971eb3dcf5ce2950986bbc92721b146065012ccada59ee59471f7d178ffbddebab48c9b470463f38c9693
|
data/Gemfile.lock
CHANGED
data/lib/simple/sql.rb
CHANGED
@@ -159,6 +159,14 @@ module Simple
|
|
159
159
|
|
160
160
|
public
|
161
161
|
|
162
|
+
# returns a configuration hash, either from the passed in database URL,
|
163
|
+
# from a DATABASE_URL environment value, or from the config/database.yml
|
164
|
+
# file.
|
165
|
+
def configuration(database_url = :auto)
|
166
|
+
database_url = Config.determine_url if database_url == :auto
|
167
|
+
Config.parse_url(database_url)
|
168
|
+
end
|
169
|
+
|
162
170
|
# connects to the database specified via the url parameter. If called
|
163
171
|
# without argument it tries to determine a DATABASE_URL from either the
|
164
172
|
# environment setting (DATABASE_URL) or from a config/database.yml file,
|
data/lib/simple/sql/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radiospiel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-03-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pg_array_parser
|