caruby-core 1.4.5 → 1.4.6

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.
data/History.txt CHANGED
@@ -22,4 +22,8 @@
22
22
 
23
23
  * Fix default option
24
24
 
25
+ === 1.4.6 / 2011-02-26
26
+
27
+ * Upgrade to JRuby 1.5
28
+
25
29
 
@@ -18,6 +18,20 @@ module CaRuby
18
18
  # Classes which include Domain must implement the +metadata+ Domain::Metadata accessor method.
19
19
  module Resource
20
20
  include Mergeable, Migratable, Persistable, Inversible, Validation
21
+
22
+ # JRuby alert - Bug #5090 - JRuby 1.5 object_id no longer reserved, results in String value.
23
+ # See http://jira.codehaus.org/browse/JRUBY-5090.
24
+ # Work-around is to make a proxy object id.
25
+ #
26
+ # @return [Integer] the object id
27
+ def proxy_object_id
28
+ @_hc ||= (Object.new.object_id * 31) + 17
29
+ end
30
+
31
+ # Prints this object's class demodulized name and object id.
32
+ def print_class_and_id
33
+ "#{self.class.qp}@#{proxy_object_id}"
34
+ end
21
35
 
22
36
  # Sets the default attribute values for this domain object and its dependents. If this Resource
23
37
  # does not have an identifier, then missing attributes are set to the values defined by
@@ -1,3 +1,3 @@
1
1
  module CaRuby
2
- VERSION = "1.4.5"
2
+ VERSION = "1.4.6"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: caruby-core
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.4.5
5
+ version: 1.4.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - OHSU