poro 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -160,6 +160,8 @@ mailto:jeff@paploo.net
160
160
 
161
161
  = Version History
162
162
 
163
+ [0.1.5 - 2011-Feb-15] Bug Fixes.
164
+ * MongoContext: Fixed a typo in the data_store set accessor.
163
165
  [0.1.4 - 2010-Nov-08] Bug Fixes.
164
166
  * MongoContext: Fixed broken fetch method.
165
167
  * HashContext: Fixed crash on find without a conditions hash.
@@ -78,7 +78,7 @@ module Poro
78
78
  attr_reader :data_store
79
79
 
80
80
  # Sets the raw data store backing this context. Useful during initial
81
- # configuration and advanced usage, but can be dangerous.
81
+ # configuration and advanced usage, but can be dangerous to monkey with.
82
82
  attr_writer :data_store
83
83
 
84
84
  # Returns the a symbol for the method that returns the Context assigned
@@ -29,8 +29,7 @@ module Poro
29
29
  # takes priority.
30
30
  class MongoContext < Context
31
31
  # A map of all the collection names registered for this kind of context.
32
- # This is to facilitate DBRef dereferencing, even when your class doesn't
33
- # match the
32
+ # This is to facilitate DBRef dereferencing.
34
33
  @@collection_map = {}
35
34
 
36
35
  # Takes the class for the context, and optionally the collection object
@@ -57,7 +56,7 @@ module Poro
57
56
 
58
57
  # Set the data store to the given collection.
59
58
  def data_store=(collection)
60
- @@collection_map.delete(self.data_store && data.store.name) # Clean-up the old record in case we change names.
59
+ @@collection_map.delete(self.data_store && self.data_store.name) # Clean-up the old record in case we change names.
61
60
  @@collection_map[collection.name] = self unless collection.nil? # Create the new record.
62
61
  super(collection)
63
62
  end
@@ -3,5 +3,5 @@
3
3
  # existing plain ol' ruby objects as little as possible. For more information
4
4
  # see README.rdoc.
5
5
  module Poro
6
- VERSION = '0.1.4'
6
+ VERSION = '0.1.5'
7
7
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poro
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 4
9
- version: 0.1.4
4
+ prerelease:
5
+ version: 0.1.5
10
6
  platform: ruby
11
7
  authors:
12
8
  - Jeff Reinecke
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-11-08 00:00:00 -08:00
13
+ date: 2011-02-15 00:00:00 -08:00
18
14
  default_executable:
19
15
  dependencies: []
20
16
 
@@ -74,23 +70,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
70
  requirements:
75
71
  - - ">="
76
72
  - !ruby/object:Gem::Version
77
- segments:
78
- - 1
79
- - 9
80
- - 2
81
73
  version: 1.9.2
82
74
  required_rubygems_version: !ruby/object:Gem::Requirement
83
75
  none: false
84
76
  requirements:
85
77
  - - ">="
86
78
  - !ruby/object:Gem::Version
87
- segments:
88
- - 0
89
79
  version: "0"
90
80
  requirements: []
91
81
 
92
82
  rubyforge_project:
93
- rubygems_version: 1.3.7
83
+ rubygems_version: 1.5.0
94
84
  signing_key:
95
85
  specification_version: 3
96
86
  summary: Persistence of Plain Ol' Ruby Objects in MongoDB, Memory, and eventually SQL and Memcache.