RubyGems
npm
Organizations
Log in
Sign up
RubyGems
mongoid
Versions diffs
0.6.0 → 0.6.1
mongoid 0.6.0 → 0.6.1
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (5)
hide
show
data/VERSION
+1
-1
data/lib/mongoid/extensions/time/conversions.rb
+1
-1
data/mongoid.gemspec
+1
-1
data/spec/unit/mongoid/extensions/time/conversions_spec.rb
+1
-0
metadata
+1
-1
data/VERSION
CHANGED
@@ -1 +1 @@
1
-
0.6.
0
1
+
0.6.
1
data/lib/mongoid/extensions/time/conversions.rb
CHANGED
@@ -3,7 +3,7 @@ module Mongoid #:nodoc:
3
3
module Time #:nodoc:
4
4
module Conversions #:nodoc:
5
5
def set(value)
6
-
value.
to_time
6
+
::Time.parse(
value.
to_s).utc
7
7
end
8
8
def get(value)
9
9
value
data/mongoid.gemspec
CHANGED
@@ -5,7 +5,7 @@
5
5
6
6
Gem::Specification.new do |s|
7
7
s.name = %q{mongoid}
8
-
s.version = "0.6.
0
"
8
+
s.version = "0.6.
1
"
9
9
10
10
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
s.authors = ["Durran Jordan"]
data/spec/unit/mongoid/extensions/time/conversions_spec.rb
CHANGED
@@ -12,6 +12,7 @@ describe Mongoid::Extensions::Time::Conversions do
12
12
Time.set(@time.to_s).should == @time
13
13
end
14
14
end
15
+
15
16
end
16
17
17
18
describe "#get" do
metadata
CHANGED
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: mongoid
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.6.
0
4
+
version: 0.6.
1
5
5
platform: ruby
6
6
authors:
7
7
- Durran Jordan