odba 1.0.5 → 1.0.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 +4 -0
- data/lib/odba.rb +1 -1
- data/lib/odba/persistable.rb +12 -8
- metadata +4 -4
data/History.txt
CHANGED
data/lib/odba.rb
CHANGED
data/lib/odba/persistable.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# ODBA::Persistable -- odba --
|
3
|
+
# ODBA::Persistable -- odba -- 23.12.2011 -- mhatakeyama@ywesee.com
|
4
4
|
# ODBA::Persistable -- odba -- 29.04.2004 -- hwyss@ywesee.com rwaltert@ywesee.com mwalder@ywesee.com
|
5
5
|
|
6
6
|
class Object # :nodoc: all
|
@@ -253,7 +253,11 @@ module ODBA
|
|
253
253
|
if(defined?(self::class::ODBA_EXCLUDE_VARS))
|
254
254
|
exc += self::class::ODBA_EXCLUDE_VARS
|
255
255
|
end
|
256
|
-
|
256
|
+
if RUBY_VERSION >= '1.9'
|
257
|
+
exc.map{|v| v.to_sym}
|
258
|
+
else
|
259
|
+
exc
|
260
|
+
end
|
257
261
|
end
|
258
262
|
# Returns the odba unique id of this Persistable.
|
259
263
|
# If no id had been assigned, this is now done.
|
@@ -328,11 +332,7 @@ module ODBA
|
|
328
332
|
odba_serializables.each { |name|
|
329
333
|
var = instance_variable_get(name)
|
330
334
|
if(var.is_a?(ODBA::Stub))
|
331
|
-
|
332
|
-
instance_variable_set(name, var)
|
333
|
-
else
|
334
|
-
instance_variable_set(name, var.odba_instance)
|
335
|
-
end
|
335
|
+
instance_variable_set(name, var.odba_instance)
|
336
336
|
end
|
337
337
|
}
|
338
338
|
end
|
@@ -355,7 +355,11 @@ module ODBA
|
|
355
355
|
if(defined?(self::class::ODBA_SERIALIZABLE))
|
356
356
|
srs += self::class::ODBA_SERIALIZABLE
|
357
357
|
end
|
358
|
-
|
358
|
+
if RUBY_VERSION >= '1.9'
|
359
|
+
srs.map{|s| s.to_sym}
|
360
|
+
else
|
361
|
+
srs
|
362
|
+
end
|
359
363
|
end
|
360
364
|
def odba_snapshot(snapshot_level) # :nodoc:
|
361
365
|
if(snapshot_level > @odba_snapshot_level.to_i)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: odba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 6
|
10
|
+
version: 1.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Masaomi Hatakeyama, Zeno R.R. Davatz
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-12-
|
18
|
+
date: 2011-12-23 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|