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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5c131b35bbb0364d26d38f996943e9be397781c
4
- data.tar.gz: 9741719c01035c18fd114bb47ddcc0a725722f8b
3
+ metadata.gz: b936ab478caa99a6260d211b6fc4c1528a330dd3
4
+ data.tar.gz: 15e4cdc015eff4ad33409115f04c1b32f3a0fd72
5
5
  SHA512:
6
- metadata.gz: a9eeeaabdae7262b126c5225c0c60e8b29714e369eee67b5b8284bd56086422b0389ee8b6beb1ec7af2219470858f9f2d802b3c7d2f9b6c745ea473164017008
7
- data.tar.gz: 36de389b82d7e2c03806bb14f55833b3f10370679633563a688d1a5e5839359d891771f25d69c3f9ab695ba1b1ef80d49d865423a45c40b195f4e96f5d296a1a
6
+ metadata.gz: 09e4e82b3913bd5bc609640de5aa218fdb5dde2f1c44cf607cd20f29048d46be9729d474fff5c272f697012f4eb1fb8a9d8800a90e928659213ebae1c5b63bdc
7
+ data.tar.gz: 3e7de5166bd9403912fb5a689c86a0bbdaf6b28cc072178f6aa99047eab0ed734cb9554b4b3398b291eecd1d98b0d3be1e06769962f882e501055d78c2c65acf
data/Rakefile CHANGED
@@ -14,5 +14,4 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
-
18
- Bundler::GemHelper.install_tasks
17
+ Bundler::GemHelper.install_tasks
@@ -33,9 +33,9 @@ module Ecm::TimeTracking
33
33
  private
34
34
 
35
35
  def set_defaults
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
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
@@ -19,7 +19,6 @@ module Ecm::TimeTracking
19
19
  (due_in_minutes || 0) / 60
20
20
  end
21
21
 
22
-
23
22
  def human
24
23
  identifier
25
24
  end
data/config/routes.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  Ecm::TimeTracking::Engine.routes.draw do
2
- end
2
+ end
@@ -13,4 +13,4 @@ module Ecm
13
13
  end
14
14
  end
15
15
  end
16
- end
16
+ end
@@ -4,4 +4,4 @@ module Ecm
4
4
  isolate_namespace Ecm::TimeTracking
5
5
  end
6
6
  end
7
- end
7
+ end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module TimeTracking
3
- VERSION = "0.0.2"
3
+ VERSION = '0.0.3'.freeze
4
4
  end
5
5
  end
@@ -1,2 +1,2 @@
1
- require "ecm/time_tracking"
2
- require "ecm/time_tracking/engine"
1
+ require 'ecm/time_tracking'
2
+ require 'ecm/time_tracking/engine'
@@ -1,7 +1,7 @@
1
- Ecm::TimeTracking.configure do |config|
1
+ Ecm::TimeTracking.configure do |config|
2
2
  # Set the resource class name, that will track time.
3
- #
3
+ #
4
4
  # Default: config.tracker_class_name = 'User'
5
- #
5
+ #
6
6
  config.tracker_class_name = 'User'
7
- end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_time_tracking
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel