poro 0.1.4 → 0.1.5
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/README.rdoc +2 -0
- data/lib/poro/context.rb +1 -1
- data/lib/poro/contexts/mongo_context.rb +2 -3
- data/lib/poro/version.rb +1 -1
- metadata +4 -14
data/README.rdoc
CHANGED
@@ -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.
|
data/lib/poro/context.rb
CHANGED
@@ -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
|
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 &&
|
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
|
data/lib/poro/version.rb
CHANGED
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:
|
5
|
-
|
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:
|
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.
|
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.
|