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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 780630dce8d1da56ba195615ad7f81a927da4d65
4
- data.tar.gz: d1d3779340d14c595f49eb5ca74671e0a2ebf62f
3
+ metadata.gz: ce1bb25aed725ccceb618049535ef22401022f4e
4
+ data.tar.gz: d307cc183da182c037d82b316cf70db7a1ab6e1b
5
5
  SHA512:
6
- metadata.gz: 789f30feaa35ccde696f7498fc69ade0795e040c34f693776f6955ab85be39256d58f00f43f0c8f496cf8e2cab9f9896c997dd8af51dddca28bf4010e229da65
7
- data.tar.gz: 0747fd1784c08e52cb1c3127058d2443df76c75372d503c8d1281e9d49d403827aff70931e61f766a6728a262073fa3f2fcb555ff5af7e976a567385110d01e2
6
+ metadata.gz: 19240824de981920a15bd4127d0b64ef2511826403f20b3155513e49a9d03fc3702776fa983c7b7a4ec9e058c70f0653ad207522bb8fdc183a38a292af7e2f31
7
+ data.tar.gz: 40c6f59fcf22507882223a39a50fd5617f85aba956941b8cc75062194cb6a8a484a1c29a8e553b3834a1eeee0d20b51d9f327aafe41ef88e68b695913f1c89c7
@@ -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
- uri_or_options[:db] = uri_or_options.delete(:path) if uri_or_options[:path] && uri_or_options[:path].match(/\.sock$/)
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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-redis-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Herrera