odba 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.0.6 / 23.12.2011
2
+
3
+ * Fix all the elements of odba_potentials and odba_exclude_vars to be Symbols for Ruby 1.9.3
4
+
1
5
  === 1.0.5 / 20.12.2011
2
6
 
3
7
  * Added attr_accessor :odba_persistent so we can update doctor addresses on ch.oddb.org
data/lib/odba.rb CHANGED
@@ -11,5 +11,5 @@ require 'odba/index'
11
11
  require 'odba/odba'
12
12
 
13
13
  class Odba
14
- VERSION = '1.0.5'
14
+ VERSION = '1.0.6'
15
15
  end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # ODBA::Persistable -- odba -- 20.12.2011 -- mhatakeyama@ywesee.com
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
- exc
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
- if RUBY_VERSION > "1.9"
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
- srs
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 5
10
- version: 1.0.5
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-20 00:00:00 +01:00
18
+ date: 2011-12-23 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency