redis_object 1.3.1b → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/redis_object/base.rb +4 -8
- data/lib/redis_object/version.rb +1 -1
- data/spec/rename_class_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmYxY2EwMTBiYWEyNGU0N2MyOWQ3MzQ3NjQ4MzkzZDliYmNhNTBmYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTAxNDQ0YmYxZDM2MjM1ZGNhZDQ3NTM5NmViYzM4MzZiOGJiODVmMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTJiM2ZlNDgyMWFiYTJiZjRmODEzNjc1YTUwNTU3NDkxM2IwZDY0Zjk2M2Nm
|
10
|
+
ZDlmYWNjNmY2YmVjYTNmZDJhM2QzZTZlMGQ2NTY1M2YyMGMwMTUwNDI5MzBk
|
11
|
+
OWVlOTU4YTJhZGUyZGU4ZDZhNmE2NTEzMGQ2YTQyOTNmZWVkMjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWZjMzA1ZDJmZjdhYWUyOTc3ZDIxOGQ5ZTRkNGNmODAzNTBkYjQ3NjE3NzU2
|
14
|
+
YzRlNzI4MGM0OGU2NzIxZGVkNDEyYWRiNTgzZjU0ODQzNzYzYTBhYmE3MTFj
|
15
|
+
NzFiZmQyMjQxYjA3OWJmNjA5YzI0Y2I3ZjQ2NDY0ODA3ZDRmMzg=
|
data/lib/redis_object/base.rb
CHANGED
@@ -236,7 +236,7 @@ module Seabright
|
|
236
236
|
end
|
237
237
|
|
238
238
|
def cname
|
239
|
-
name
|
239
|
+
self.name
|
240
240
|
end
|
241
241
|
|
242
242
|
def plname
|
@@ -418,11 +418,7 @@ module Seabright
|
|
418
418
|
true
|
419
419
|
end
|
420
420
|
|
421
|
-
def id_sym(cls=
|
422
|
-
_old_id_sym(cls)
|
423
|
-
end
|
424
|
-
|
425
|
-
def _new_id_sym(cls=self.name)
|
421
|
+
def id_sym(cls=self.name)
|
426
422
|
(cls || self.name).foreign_key.to_sym
|
427
423
|
end
|
428
424
|
|
@@ -437,8 +433,8 @@ module Seabright
|
|
437
433
|
end
|
438
434
|
end
|
439
435
|
|
440
|
-
def _old_id_sym(cls=self.
|
441
|
-
"#{
|
436
|
+
def _old_id_sym(cls=self.cname)
|
437
|
+
"#{cls.split('::').last.downcase}_id".to_sym
|
442
438
|
end
|
443
439
|
|
444
440
|
def describe
|
data/lib/redis_object/version.rb
CHANGED
data/spec/rename_class_spec.rb
CHANGED
@@ -73,7 +73,7 @@ module RenameClassSpec
|
|
73
73
|
[ mozzarella, basil, tomato, garlic, oregano, olive_oil ].each do |topping|
|
74
74
|
topping.get(:class).should == PizzaTopping.name
|
75
75
|
topping.get(:key).should == "RenameClassSpec::PizzaTopping:#{topping.id}"
|
76
|
-
topping.get(:
|
76
|
+
topping.get(:pizza_topping_id).should == topping.id
|
77
77
|
# topping.get(:topping_id).should == nil
|
78
78
|
end
|
79
79
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bragg
|
@@ -163,9 +163,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
163
|
version: 1.9.2
|
164
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
|
-
- - ! '
|
166
|
+
- - ! '>='
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version:
|
168
|
+
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project: redis_object
|
171
171
|
rubygems_version: 2.0.3
|