sohm 0.10.3 → 0.10.4

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 +4 -1
  3. data/sohm.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f49300fcfd021ca24a5dcf0448b15e4e366ef77f
4
- data.tar.gz: 21eb15dcf9e166c2b7ac570be355b92b7b015469
3
+ metadata.gz: e3535b494d6d9ea2a3cde1c08eaf6259980363c8
4
+ data.tar.gz: 2bb1ed28088e7fb7404d4a52ad23a13bf4212d37
5
5
  SHA512:
6
- metadata.gz: 98c410d88efe8ed8906e2ce3b190f1920c22c4e952d47db394f8ad5211e814ae8ea24ccb559142416f962597bf1e3845125ac89470dc5812f90bd0ae682a2cb7
7
- data.tar.gz: c2125b750e5812575f1029e5f0ef629deae0cdb8cec1db96abb2800df853b081b8c9b45cd43b4fc247bc546d78946abff98e706cb7b311153da6e83b60fe866c
6
+ metadata.gz: f0810c10c0e83b755c37497de3d9d3fb0ad332594dde7bf13c89038fbeca14c29b023406980abd24ac6df8974178fa62df05f6ea5c1e1419f7921a2ba83eb61a
7
+ data.tar.gz: 7eb424caa0eaa30bc9bd5e6dc9365faa0bd34b73243372cbb63bbc29b2360a21b4d68e855ceb648c722507ceabbfc83a29e2489e821d513ff952d85ff6aa6508
data/lib/sohm.rb CHANGED
@@ -68,7 +68,10 @@ module Sohm
68
68
  def self.const(context, name)
69
69
  case name
70
70
  when Symbol, String
71
- context.const_get(name)
71
+ # In JRuby, Module::const_get can not work on nested symbols
72
+ # such as "Foo::Bar", so we have to do it piece by piece here
73
+ pieces = name.to_s.split("::")
74
+ pieces.reduce(context) { |context, piece| context.const_get(piece) }
72
75
  else name
73
76
  end
74
77
  end
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.3"
3
+ s.version = "0.10.4"
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sohm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xuejie Xiao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redic