openid_mongodb_store 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/openid_mongodb_store/store.rb +1 -1
- data/openid_mongodb_store.gemspec +1 -1
- data/test/test_openid_mongodb_store.rb +6 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
@@ -22,7 +22,7 @@ class OpenidMongodbStore::Store < OpenID::Store::Interface
|
|
22
22
|
issued = if association.issued.to_s =~ /\A\d+\Z/
|
23
23
|
association.issued
|
24
24
|
else
|
25
|
-
Time.parse(association.issued).to_i
|
25
|
+
Time.parse(association.issued.to_s).to_i
|
26
26
|
end
|
27
27
|
|
28
28
|
secret = BSON::Binary.new(association.secret)
|
@@ -21,6 +21,12 @@ class TestOpenidMongodbStore < Test::Unit::TestCase
|
|
21
21
|
assert assoc = get_association
|
22
22
|
end
|
23
23
|
|
24
|
+
def test_time_object_association
|
25
|
+
store_association(Time.now)
|
26
|
+
|
27
|
+
assert get_association
|
28
|
+
end
|
29
|
+
|
24
30
|
def test_remove_association
|
25
31
|
store_association
|
26
32
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openid_mongodb_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Schenkman-Moore
|