dm-redis-adapter 0.10.0 → 0.10.1
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.
- checksums.yaml +4 -4
- data/README.textile +1 -0
- data/lib/dm-redis-adapter/adapter.rb +4 -1
- 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: ce1bb25aed725ccceb618049535ef22401022f4e
|
4
|
+
data.tar.gz: d307cc183da182c037d82b316cf70db7a1ab6e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19240824de981920a15bd4127d0b64ef2511826403f20b3155513e49a9d03fc3702776fa983c7b7a4ec9e058c70f0653ad207522bb8fdc183a38a292af7e2f31
|
7
|
+
data.tar.gz: 40c6f59fcf22507882223a39a50fd5617f85aba956941b8cc75062194cb6a8a484a1c29a8e553b3834a1eeee0d20b51d9f327aafe41ef88e68b695913f1c89c7
|
data/README.textile
CHANGED
@@ -14,6 +14,7 @@ Please note that as of version 0.5.3 of the gem, the key names that are used for
|
|
14
14
|
|
15
15
|
h1. Changelog
|
16
16
|
|
17
|
+
* v0.10.1 Bugfixes and reduced runtime dependency (thanks @JonMidhir and @rabbit!)
|
17
18
|
* v0.9.0 Fixes for composite keys being indexed (thanks @fringley)
|
18
19
|
* v0.8.4 Fixes for composite keys (thanks @krider2010)
|
19
20
|
* v0.8.2 Updates to RedisAdapter#initialize to support URI. (thanks @thentenaar)
|
@@ -347,7 +347,10 @@ module DataMapper
|
|
347
347
|
|
348
348
|
# If the :path ends in '.sock' assume that this really is a path, otherwise assume it's a DB name
|
349
349
|
uri_or_options.delete(:path) if uri_or_options[:path] == '/'
|
350
|
-
|
350
|
+
|
351
|
+
if uri_or_options[:path] && !uri_or_options[:path].match(/\.sock$/)
|
352
|
+
uri_or_options[:db] = uri_or_options.delete(:path)
|
353
|
+
end
|
351
354
|
|
352
355
|
# Parse options from the URI's query string
|
353
356
|
if uri_or_options[:query]
|