dohutil 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dohutil/core_ext/enum.rb +5 -0
- data/test/core_ext/datewithtime.dt.rb +4 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e391b5e314ff8ace7e65d679ad8f13a6cb58defd
|
4
|
+
data.tar.gz: 0927c57fe5667875139dfdb53ff1f0ab55ca715d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 869585273ff85a1cd45925387cccf5e5fff85c0c8de1034cb5e5a8396839797cc97d060d77d4be3d99bcdfb2d779d8eb1af8393d92f702f32acf4a1b963b546a
|
7
|
+
data.tar.gz: d179b4852331ad1de2896ea491a32349fad3c524674ab33ac9e1559ddbb054da42cbc53fa660b08da73f95e8c5ec013d4f1be4f1596d2cd942846828dd171eb6
|
@@ -7,6 +7,10 @@ class Test_core_ext_datewithtime < DohTest::TestGroup
|
|
7
7
|
assert_equal(DateTime.new(2009, 2, 10, 15, 30, 3), DateTime.new(2009, 2, 10, 15, 30, 2).next_second(1))
|
8
8
|
assert_equal(Time.new(2009, 2, 10, 15, 30, 3), Time.new(2009, 2, 10, 15, 30, 2).next_second(1))
|
9
9
|
end
|
10
|
+
|
11
|
+
def test_datetime_diff
|
12
|
+
assert_equal(61, DateTime.new(2013,4,5,8,1,1).sub_dt(DateTime.new(2013,4,5,8,0,0)))
|
13
|
+
end
|
10
14
|
end
|
11
15
|
|
12
16
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dohutil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Makani Mason
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dohroot
|
@@ -75,6 +75,7 @@ files:
|
|
75
75
|
- lib/dohutil/core_ext/date.rb
|
76
76
|
- lib/dohutil/core_ext/datewithtime.rb
|
77
77
|
- lib/dohutil/core_ext/dir.rb
|
78
|
+
- lib/dohutil/core_ext/enum.rb
|
78
79
|
- lib/dohutil/core_ext/force_deep_copy.rb
|
79
80
|
- lib/dohutil/core_ext/hash.rb
|
80
81
|
- lib/dohutil/core_ext/inspect.rb
|