sohm 0.10.2 → 0.10.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sohm.rb +11 -1
  3. data/sohm.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39fb619f570ad3f62832bbcdd996cdc69415be89
4
- data.tar.gz: f41f415ad11975dac2524514ad4cbc37cefe850f
3
+ metadata.gz: f49300fcfd021ca24a5dcf0448b15e4e366ef77f
4
+ data.tar.gz: 21eb15dcf9e166c2b7ac570be355b92b7b015469
5
5
  SHA512:
6
- metadata.gz: 9d9ed24c9db23f038e4df3f68a2f674668b08f29358266891e4d925799be03efee441910de76a9e61a05213e516287ec9bd07ba26f4dfb9766914ef639c2d5de
7
- data.tar.gz: a2a0b78bb3e19a8af9a798059b0bdd80a183482358d997790c77331bf8b303d7fe1961204a578b4659102d0cced8d26b0a6b033faeb9985004ffb1b7eb250425
6
+ metadata.gz: 98c410d88efe8ed8906e2ce3b190f1920c22c4e952d47db394f8ad5211e814ae8ea24ccb559142416f962597bf1e3845125ac89470dc5812f90bd0ae682a2cb7
7
+ data.tar.gz: c2125b750e5812575f1029e5f0ef629deae0cdb8cec1db96abb2800df853b081b8c9b45cd43b4fc247bc546d78946abff98e706cb7b311153da6e83b60fe866c
data/lib/sohm.rb CHANGED
@@ -500,6 +500,16 @@ module Sohm
500
500
  defined?(@redis) ? @redis : Sohm.redis
501
501
  end
502
502
 
503
+ def self.refresh_indices_inline=(refresh_indices_inline)
504
+ @refresh_indices_inline = refresh_indices_inline
505
+ end
506
+
507
+ def self.refresh_indices_inline
508
+ defined?(@refresh_indices_inline) ?
509
+ @refresh_indices_inline :
510
+ Sohm.refresh_indices_inline
511
+ end
512
+
503
513
  def self.mutex
504
514
  Sohm.mutex
505
515
  end
@@ -1091,7 +1101,7 @@ module Sohm
1091
1101
  sanitize_attributes(attributes).to_msgpack)
1092
1102
  end
1093
1103
 
1094
- if Sohm.refresh_indices_inline
1104
+ if model.refresh_indices_inline
1095
1105
  refresh_indices
1096
1106
  end
1097
1107
 
data/sohm.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "sohm"
3
- s.version = "0.10.2"
3
+ s.version = "0.10.3"
4
4
  s.summary = %{Slim ohm for twemproxy-like system}
5
5
  s.description = %Q{Slim ohm is a forked ohm that works with twemproxy-like redis system, only a limited set of features in ohm is supported}
6
6
  s.authors = ["Xuejie Xiao"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sohm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xuejie Xiao