redis_object 1.3.1 → 1.3.2

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
- NmYxY2EwMTBiYWEyNGU0N2MyOWQ3MzQ3NjQ4MzkzZDliYmNhNTBmYg==
4
+ NzZmMGZlNjJjNDM2NDUzZDc1NWY1YjdjMzNlMDRlZmI2OTljMmMwMg==
5
5
  data.tar.gz: !binary |-
6
- OTAxNDQ0YmYxZDM2MjM1ZGNhZDQ3NTM5NmViYzM4MzZiOGJiODVmMQ==
6
+ NWM0MDhkYzAzODdiZDI3NDliMjViOGQ1Njg0ZDNmZmQ2YmFlODI2OQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTJiM2ZlNDgyMWFiYTJiZjRmODEzNjc1YTUwNTU3NDkxM2IwZDY0Zjk2M2Nm
10
- ZDlmYWNjNmY2YmVjYTNmZDJhM2QzZTZlMGQ2NTY1M2YyMGMwMTUwNDI5MzBk
11
- OWVlOTU4YTJhZGUyZGU4ZDZhNmE2NTEzMGQ2YTQyOTNmZWVkMjY=
9
+ OTlkMTQ2ZmZkY2ZlZmRkNjgyNTA1NDJiZjI5ZDk4Yjc5MTc2YTEzNjdlZThh
10
+ ODM0YWIzMTdkNGE0NzgzNDM0OGViMzAwYTljYTg5YmY0NzkzMWQ0ZDQwNGIz
11
+ NWE3YmRjYzJkZjcxMTFhOGNmOTJkM2RmNjg3NGMzZjA0NjdkZWU=
12
12
  data.tar.gz: !binary |-
13
- YWZjMzA1ZDJmZjdhYWUyOTc3ZDIxOGQ5ZTRkNGNmODAzNTBkYjQ3NjE3NzU2
14
- YzRlNzI4MGM0OGU2NzIxZGVkNDEyYWRiNTgzZjU0ODQzNzYzYTBhYmE3MTFj
15
- NzFiZmQyMjQxYjA3OWJmNjA5YzI0Y2I3ZjQ2NDY0ODA3ZDRmMzg=
13
+ YjBjM2IxNDkwNTRjYTVlYjU5ZGM0NzM1MTJlZjk4MGQ0YmQ2YjZlNzJjMDZh
14
+ ZjY3MDk3YTVkMDM5NmM5YzFmZmViNGQ4Mjc2ODQ3ZTUyNDBkOTI2OTc0ZmM2
15
+ M2FhY2I1ZmQzMjI3YTdkYzFiZjc5YjY5MWRmOTU2OWNmMDM2NWU=
@@ -236,7 +236,7 @@ module Seabright
236
236
  end
237
237
 
238
238
  def cname
239
- self.name
239
+ name
240
240
  end
241
241
 
242
242
  def plname
@@ -418,7 +418,11 @@ module Seabright
418
418
  true
419
419
  end
420
420
 
421
- def id_sym(cls=self.name)
421
+ def id_sym(cls=nil)
422
+ _old_id_sym(cls)
423
+ end
424
+
425
+ def _new_id_sym(cls=self.name)
422
426
  (cls || self.name).foreign_key.to_sym
423
427
  end
424
428
 
@@ -433,8 +437,8 @@ module Seabright
433
437
  end
434
438
  end
435
439
 
436
- def _old_id_sym(cls=self.cname)
437
- "#{cls.split('::').last.downcase}_id".to_sym
440
+ def _old_id_sym(cls=self.name)
441
+ "#{(cls || self.name).split('::').last.downcase}_id".to_sym
438
442
  end
439
443
 
440
444
  def describe
@@ -1,5 +1,5 @@
1
1
  module Seabright
2
2
  class RedisObject
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.2"
4
4
  end
5
5
  end
@@ -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(:pizza_topping_id).should == topping.id
76
+ topping.get(:pizzatopping_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.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bragg