redis_object 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGI0NTJhZWFiNDUyMTQ2NDYzOGJhNmI1ZWE1MjZhOGVkZGVkNjM0NQ==
4
+ NWRkY2M3ZDI4ZGZiM2M3ZjZiMzJlZDEzYjMyNDU5Y2IyM2JlY2E5NA==
5
5
  data.tar.gz: !binary |-
6
- OWQ5NzIzMjEzOTlkN2VlNTE2MDBlZTQzMDE2ZjdiOWJhYjIxMTg4MA==
6
+ ZTg0NGQxMGZjYjRiMTk4NDRmNWZjNzY0MzY3ZGZiYWQ1MzNlYmM2ZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjNlMGJmNDc3NTgxYjlkNDkyYjUwMjQ2NWQ3ZGNhOWJhMDY1MTJmZjA5MzAw
10
- YzhlZWZhNWE0MWY4OGZmNjM4ODUzZDE3YTE3NzQ3MDUxMjg4MmQ0NDRmNjg5
11
- NGRjYTU2MzI4NmZjMjk2YzNmNDlhYWU0NzRkZWViMmJiZmJhNzU=
9
+ NjZiYTMxZmJmOTZiYjMyZGVhNDQ1YWVlNWNhNjM4NThhYTc0MjU1ZDA5Yjdl
10
+ MzA3NmUwM2Q3MzEzMzJlOWEzMDNiNDhlZDdkNmIyYTE5Njk3N2YzNzNkYjE3
11
+ MjQ1YzVjYWQxY2QzYWQzMTViOWRjMTMxZTEwMzhiNTJkOWQ0MjQ=
12
12
  data.tar.gz: !binary |-
13
- OTAwYTc3OTgyZWMwMzY2NDQyNDI3ZWE5YTc5M2U3MWVkYzhlN2NiOTliMTky
14
- M2ExOWYyYTZhYmViY2Q1OTI1NmQ5OGRmOWRhMDhkNWFkMWE1ODBhM2M1N2Y0
15
- MWU2YTc3ZTQ3MTYzZjFiZGQ1YmM3OTYwM2UyMWU0OWExMDk0ZWI=
13
+ ODIzMjNhZjBmMjQzOWRjMDEzN2VlNGE5ZWQ2YjIwYTg1OTkzYWFkY2M0MTEz
14
+ ODRkZDI5MzMyNzQ3MTU4MDUxMzAwMDM2ZGY1ZWFlMDQ4NGE1MDA0NGE1N2Q5
15
+ ZmUzMzFmNGU5MGJlOTQyYzhiZTBiY2UzNTQxZjNkOGQyYjhjY2M=
@@ -88,10 +88,10 @@ module Seabright
88
88
  sadd(new_name.pluralize, key.sub(/^#{old_name}/, new_name))
89
89
  old_class = hget("#{key}_h", :class)
90
90
  old_key = hget("#{key}_h", :key)
91
- hset("#{key}_h", :class, old_class.sub(/#{old_name}$/, new_name))
91
+ hset("#{key}_h", :class, new_name)
92
92
  hset("#{key}_h", :key, old_key.sub(/^#{old_name}/, new_name))
93
- hset("#{key}_h", "#{new_name.downcase}_id", key.sub(/^#{old_name}:/,''))
94
- hdel("#{key}_h", "#{old_name.downcase}_id")
93
+ hset("#{key}_h", RedisObject.id_sym(new_name), key.sub(/^#{old_name}:/,''))
94
+ hdel("#{key}_h", RedisObject.id_sym(old_name))
95
95
  end
96
96
  del(old_name.pluralize)
97
97
 
@@ -1,5 +1,5 @@
1
1
  module Seabright
2
2
  class RedisObject
3
- VERSION = "1.2.6"
3
+ VERSION = "1.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bragg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-02 00:00:00.000000000 Z
11
+ date: 2013-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: utf8_utils