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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11e21aabdec5db1053d2a609c679cb848d5f32de
4
- data.tar.gz: 4f9c3de05bea5bb32f9f38d9f265a98eaee187fc
3
+ metadata.gz: e391b5e314ff8ace7e65d679ad8f13a6cb58defd
4
+ data.tar.gz: 0927c57fe5667875139dfdb53ff1f0ab55ca715d
5
5
  SHA512:
6
- metadata.gz: 208b4173bc678932f4918b17368bacf6c307a2f81ce69cde3d7296e12437391dbd84d2b9ce3953637acea6569283a63fcbabe73bf11367feaab98ed03c4c75d4
7
- data.tar.gz: 5e035ce4725f6db7b5224ab33fa94978b94c4d4339397e4db8829303eed41a7946fcb46802fb016b5a7e65e782cee03df424cfbaa9cdfba60008a11fffb1f9c9
6
+ metadata.gz: 869585273ff85a1cd45925387cccf5e5fff85c0c8de1034cb5e5a8396839797cc97d060d77d4be3d99bcdfb2d779d8eb1af8393d92f702f32acf4a1b963b546a
7
+ data.tar.gz: d179b4852331ad1de2896ea491a32349fad3c524674ab33ac9e1559ddbb054da42cbc53fa660b08da73f95e8c5ec013d4f1be4f1596d2cd942846828dd171eb6
@@ -0,0 +1,5 @@
1
+ module Kernel
2
+ def enum(*syms)
3
+ syms.each { |elem| const_set(elem, elem.to_s) }
4
+ end
5
+ end
@@ -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.19
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: 2013-12-06 00:00:00.000000000 Z
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