ruby-duration 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/duration/mongoid.rb +2 -0
- data/ruby-duration.gemspec +1 -1
- data/test/duration/test_mongoid.rb +3 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/lib/duration/mongoid.rb
CHANGED
data/ruby-duration.gemspec
CHANGED
@@ -16,6 +16,9 @@ class Duration::TestMongoid < MiniTest::Unit::TestCase
|
|
16
16
|
assert_nil Duration.set([1,2,3])
|
17
17
|
assert_nil Duration.set(nil)
|
18
18
|
assert_nil Duration.set("")
|
19
|
+
assert_nil Duration.set({})
|
20
|
+
assert_nil Duration.set({:seconds => "", :hours => ""})
|
21
|
+
assert_nil Duration.set({:x => 100, :seconds => ""})
|
19
22
|
end
|
20
23
|
|
21
24
|
def test_set_duration
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-duration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jose Peleteiro
|