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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3b80eff32b5fadb72dbeff176ee5b2ac58a9f09
4
- data.tar.gz: 2fa81d1db7ea7835a56b0afeb7ad0768c27c4244
3
+ metadata.gz: babe06df41691e4bfa105124372803ef96d71995
4
+ data.tar.gz: d692fc974a0a291fa2911928da89bacbb98955c5
5
5
  SHA512:
6
- metadata.gz: 96926eed8ac4f075d0aeda39b9f3f0cdf8f0b0f6a90011e616b922285f91eb7d95a898e72c63c6e02e2faa22161867e57a0f697585a8aca60a34bf2f9fc38382
7
- data.tar.gz: 68b0052866e7a1514c385f24ea1fd4801bbfc8476f00ae27addbb306100f8586cea3e067f9dc0ea8093a2a80e3c830c4d2ee02e891be3e202a59f5ce843aba86
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
@@ -1,7 +1,7 @@
1
1
  class Time
2
2
 
3
3
  def business_seconds_until(time)
4
- TimeClock::Comparison.new(self, time).seconds.to_i
4
+ TimeClock::Comparison.new(self.to_time, time).seconds.to_i
5
5
  end
6
6
 
7
7
  def business_minutes_until(time)
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module TimeClock
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-08-21 00:00:00.000000000 Z
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: