libmemcached_store 0.8.1 → 0.8.2

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: 6bdacb0e84cc9933294795e0457a53a8057112d9
4
- data.tar.gz: a6f3781d7d091169119a24a399af676cf9196c04
3
+ metadata.gz: ceb808d55b02b1a3825b713be340ac483e0d3488
4
+ data.tar.gz: 9b8c2aab7089484dacb34cc41f6eb1a8c89a6832
5
5
  SHA512:
6
- metadata.gz: 07c4437327c1b4faf968a0e63f107c689a35e2a33731de239bd234e75a9628b10ec28544e45626ef28ad5adf14b27fe6749313f63f89c90f4b2e0926bd285581
7
- data.tar.gz: 1a1b3dd17f528032b63f8e6afb8a5f58884dd49a60531d990d7fc25d7a345ab5a38090d17f7cbc85aa0b8b5ffa121f7e28f5f6a4f9bf35de3df1b09c7c943701
6
+ metadata.gz: c792d166534b15afb6158a00cf54d829bea4f14dc7e11e16a333424c4af5503ca9b5b037b5b9a9073d91ab98325aba1a7d43dac409c8af5637bb43b160054a0b
7
+ data.tar.gz: efbbea5c13c2db58640f527d0977cb1e99f6ff9af389b5480ec4a3b2d2ce0b426d7b601e103e42af9c9c8698fa9445742f8c6236c08f4969168bc34395daf905
@@ -75,10 +75,9 @@ module ActiveSupport
75
75
  if options[:namespace]
76
76
  client_options[:prefix_key] = options.delete(:namespace)
77
77
  client_options[:prefix_delimiter] = ':'
78
- @namespace_length = client_options[:prefix_key].length + 1
79
- else
80
- @namespace_length = 0
81
78
  end
79
+ @namespace_length = "#{client_options[:prefix_key]}#{client_options[:prefix_delimiter]}".force_encoding("BINARY").size
80
+
82
81
  client_options[:default_ttl] = options.delete(:expires_in).to_i if options[:expires_in]
83
82
 
84
83
  @options = {compress_threshold: DEFAULT_COMPRESS_THRESHOLD}.merge(options)
@@ -1,3 +1,3 @@
1
1
  module LibmemcachedStore
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libmemcached_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Cocchi-Perrier
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-03-07 00:00:00.000000000 Z
13
+ date: 2016-06-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: memcached