ecm_time_tracking 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -2
- data/app/models/ecm/time_tracking/entry.rb +3 -3
- data/app/models/ecm/time_tracking/entry_type.rb +0 -1
- data/config/routes.rb +1 -1
- data/lib/ecm/time_tracking/configuration.rb +1 -1
- data/lib/ecm/time_tracking/engine.rb +1 -1
- data/lib/ecm/time_tracking/version.rb +1 -1
- data/lib/ecm_time_tracking.rb +2 -2
- data/lib/generators/ecm/time_tracking/install/templates/initializer.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b936ab478caa99a6260d211b6fc4c1528a330dd3
|
4
|
+
data.tar.gz: 15e4cdc015eff4ad33409115f04c1b32f3a0fd72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09e4e82b3913bd5bc609640de5aa218fdb5dde2f1c44cf607cd20f29048d46be9729d474fff5c272f697012f4eb1fb8a9d8800a90e928659213ebae1c5b63bdc
|
7
|
+
data.tar.gz: 3e7de5166bd9403912fb5a689c86a0bbdaf6b28cc072178f6aa99047eab0ed734cb9554b4b3398b291eecd1d98b0d3be1e06769962f882e501055d78c2c65acf
|
data/Rakefile
CHANGED
@@ -33,9 +33,9 @@ module Ecm::TimeTracking
|
|
33
33
|
private
|
34
34
|
|
35
35
|
def set_defaults
|
36
|
-
self.end_at
|
37
|
-
self.begin_at
|
38
|
-
self.break_length_in_minutes
|
36
|
+
self.end_at ||= Time.zone.now.change(sec: 0)
|
37
|
+
self.begin_at ||= self.end_at - DEFAULT_DUE_HOURS_PER_DAY.hours - DEFAULT_BREAK_LENGTH_IN_MINUTES.minutes
|
38
|
+
self.break_length_in_minutes ||= DEFAULT_BREAK_LENGTH_IN_MINUTES
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
data/config/routes.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
Ecm::TimeTracking::Engine.routes.draw do
|
2
|
-
end
|
2
|
+
end
|
data/lib/ecm_time_tracking.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'ecm/time_tracking'
|
2
|
+
require 'ecm/time_tracking/engine'
|