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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04497955a6185ca1fe0d3d75e30daa7e39e1de2a
4
- data.tar.gz: 71e54b945961921b96f3a8bf45333200b3b49de1
3
+ metadata.gz: efbd5acc1028a0c31bae6b02ee69425d91a4e0e7
4
+ data.tar.gz: 4a31e09ebce60b04015b38339c66112640174a57
5
5
  SHA512:
6
- metadata.gz: d9145018af24cf8c373aeada3b319da669f51d886a0886d1e2f71b2776adf08d6c76e5306313b24448f5c609de23469711cffc482dc13e1bf9bcfca0c9ca23f0
7
- data.tar.gz: 0288c8e8d9543799086345b344c3d55d25913d50233cdb143450393c17172b07084631e50787ad6ddfd43957c1106e67fbc40127e95881d7cf7c79b97800e148
6
+ metadata.gz: 4e4b060ecf5f30d3b3b3ea81bd60ef6399a7a4a73a9d7a2575b0eb1bb3b23b1758da23f9be3750968df5137ec8951df5141b8e38d0bc76527c5fba1137f06b8b
7
+ data.tar.gz: 455aa59d74fa2d7a2f35586ef2014abc6b442903b63971eb3dcf5ce2950986bbc92721b146065012ccada59ee59471f7d178ffbddebab48c9b470463f38c9693
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple-sql (0.3.3)
4
+ simple-sql (0.3.4)
5
5
  pg (~> 0.20)
6
6
  pg_array_parser (~> 0)
7
7
 
@@ -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,
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module SQL
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
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.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-02-26 00:00:00.000000000 Z
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