ecm_time_tracking 0.0.4 → 0.0.5

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: 6857aa59f1a8dd4a59651245ade35fa905352206
4
- data.tar.gz: 4363edbf98c7caecfde1249fada18c0415f08d07
3
+ metadata.gz: 9c4ca3fe7642510df8ccb55ee529319bac72bf9b
4
+ data.tar.gz: 88e9b9dc0c6be53838570338e3bc3c1897cb224b
5
5
  SHA512:
6
- metadata.gz: 662cd5dd51840573991047e3d36b80d68c23e4b8066523188831a899e0250d27bbc4eb8bb623f67861a3a4b257c61250639449d44191e3795d2e0326569840bc
7
- data.tar.gz: 1bea1bad7143fd61219d1b57ed814c316bd95d1f38457e41f5908bf9bdaae9f52cdbecdf6fe2c96b8faabd1ae04abee3b7b6fbb77670fed7945c8cb4c6325d8c
6
+ metadata.gz: 688cf0d70606b3ce7aa3e5add4afc295fc29d37e80f9b986e98ee9a07e8317dd29ffc6d597202aec0fbe80acc5bc845c7f0bb023885a7094795cbc0008621bc2
7
+ data.tar.gz: ec6a8f65190e5f2bab95034574b2c73750c65c3e4cdcf16bec0f752a6a6c90891867030f7932883025d1aab5ea1384ea87a1b42d5df69b0b97697cb4495c9d74
@@ -6,7 +6,7 @@ module Ecm::TimeTracking
6
6
  belongs_to :tracker, class_name: Configuration.tracker_class_name, foreign_key: 'tracker_id'
7
7
  belongs_to :entry_type
8
8
 
9
- validates :tracker, :begin_at, :end_at, presence: true
9
+ validates :entry_type, :tracker, :begin_at, :end_at, presence: true
10
10
 
11
11
  after_initialize :set_defaults, if: :new_record?
12
12
 
@@ -2,7 +2,7 @@ module Ecm
2
2
  module TimeTracking
3
3
  class SumsService < Itsf::Services::V2::Service::Base
4
4
  class Response < Itsf::Services::V2::Response::Base
5
- attr_accessor :overtime, :count_by_entry_type
5
+ attr_accessor :overtime, :count_by_entry_type, :entries
6
6
 
7
7
  def overtime_in_hours
8
8
  overtime / 3600
@@ -18,6 +18,7 @@ module Ecm
18
18
  calculate_sums
19
19
  response.overtime = overtime
20
20
  response.count_by_entry_type = count_by_entry_type
21
+ response.entries = entries
21
22
  response
22
23
  end
23
24
 
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module TimeTracking
3
- VERSION = '0.0.4'.freeze
3
+ VERSION = '0.0.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_time_tracking
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-09 00:00:00.000000000 Z
11
+ date: 2016-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails