plucky 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/plucky/version.rb +1 -1
- data/lib/plucky.rb +2 -2
- metadata +10 -11
data/lib/plucky/version.rb
CHANGED
data/lib/plucky.rb
CHANGED
@@ -17,10 +17,10 @@ module Plucky
|
|
17
17
|
def self.to_object_id(value)
|
18
18
|
if value.nil? || (value.respond_to?(:empty?) && value.empty?)
|
19
19
|
nil
|
20
|
-
elsif value.is_a?(BSON::
|
20
|
+
elsif value.is_a?(BSON::ObjectId)
|
21
21
|
value
|
22
22
|
else
|
23
|
-
BSON::
|
23
|
+
BSON::ObjectId.from_string(value.to_s)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plucky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 5
|
10
|
+
version: 0.3.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John Nunemaker
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-29 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 7
|
30
30
|
segments:
|
31
31
|
- 1
|
32
32
|
- 0
|
33
|
-
-
|
34
|
-
version: 1.0.
|
33
|
+
- 8
|
34
|
+
version: 1.0.8
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
@@ -42,12 +42,11 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
45
|
+
hash: 21
|
46
46
|
segments:
|
47
47
|
- 2
|
48
|
-
-
|
49
|
-
|
50
|
-
version: 2.10.2
|
48
|
+
- 11
|
49
|
+
version: "2.11"
|
51
50
|
type: :development
|
52
51
|
version_requirements: *id002
|
53
52
|
- !ruby/object:Gem::Dependency
|