persistence-adapter-flat_file 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -5,4 +5,8 @@ Initial release.
5
5
 
6
6
  ## 6/27/2012 ##
7
7
 
8
- README update to note required specification of home directory.
8
+ README update to note required specification of home directory.
9
+
10
+ ## 7/14/2012 ##
11
+
12
+ Fix for nil return on Class search.
@@ -9,11 +9,13 @@ module ::Persistence::Adapter::FlatFile::YAML::AdapterInterface
9
9
 
10
10
  def get_class_for_object_id( global_id )
11
11
 
12
- klass_string = open_read_unserialize_and_close( file__class_for_id( global_id ) )
13
-
14
- # for YAML - can't store anonymous Class, but sometimes we need to store "Class", so we store all class as string and get back
15
- klass = klass_string.split( '::' ).inject( Object ) { |namespace, next_part| namespace.const_get( next_part ) }
12
+ if klass_string = open_read_unserialize_and_close( file__class_for_id( global_id ) )
16
13
 
14
+ # for YAML - can't store anonymous Class, but sometimes we need to store "Class", so we store all class as string and get back
15
+ klass = klass_string.split( '::' ).inject( Object ) { |namespace, next_part| namespace.const_get( next_part ) }
16
+
17
+ end
18
+
17
19
  return klass
18
20
 
19
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: persistence-adapter-flat_file
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-27 00:00:00.000000000 Z
12
+ date: 2012-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: persistence
@@ -69,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - ! '>='
71
71
  - !ruby/object:Gem::Version
72
- version: '0'
72
+ version: 1.9.1
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements: