time_clock 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/time_clock/comparison.rb +1 -1
- data/lib/time_clock/core_ext/time.rb +1 -1
- data/lib/time_clock/shift.rb +1 -1
- data/lib/time_clock/version.rb +1 -1
- 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: babe06df41691e4bfa105124372803ef96d71995
|
4
|
+
data.tar.gz: d692fc974a0a291fa2911928da89bacbb98955c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e73c6bf974f56c9da16a08cad18e0617c8e7a07a897071bfb4c2060094615d3872a60df6c923f95c0367ee69988b54acf53dc05f25536e11e8f5b4491d0b906
|
7
|
+
data.tar.gz: 83bf1f7ae28bf2eaad174d7d68312aedeec775a896f67d0edccbdf91d87085bf5973044e95d5253aa1075a237168c3a056588cb13961ec57daf7e20bbe481fa2
|
@@ -7,7 +7,7 @@ module TimeClock
|
|
7
7
|
|
8
8
|
def initialize(start_time, end_time, calendar=TimeClock.default_calendar)
|
9
9
|
raise NilCalendarError unless calendar
|
10
|
-
@start_time, @end_time, @calendar = start_time, end_time, calendar
|
10
|
+
@start_time, @end_time, @calendar = start_time.to_time, end_time.to_time, calendar
|
11
11
|
end
|
12
12
|
|
13
13
|
def period
|
data/lib/time_clock/shift.rb
CHANGED
@@ -7,7 +7,7 @@ module TimeClock
|
|
7
7
|
|
8
8
|
def initialize(start_time, end_time)
|
9
9
|
raise EndTimeAfterStartTimeError unless end_time > start_time
|
10
|
-
@start_time, @end_time = start_time, end_time
|
10
|
+
@start_time, @end_time = start_time.to_time, end_time.to_time
|
11
11
|
end
|
12
12
|
|
13
13
|
def overlaps?(shift)
|
data/lib/time_clock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: time_clock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- barelyknown
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -166,3 +166,4 @@ test_files:
|
|
166
166
|
- spec/lib/time_clock/shift_spec.rb
|
167
167
|
- spec/lib/time_clock_spec.rb
|
168
168
|
- spec/spec_helper.rb
|
169
|
+
has_rdoc:
|