punch_time 0.1.4 → 0.1.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
  SHA256:
3
- metadata.gz: c9d155dfe3fe31665bbefba117e227771c5ac805b771e9047e264b024b5507bd
4
- data.tar.gz: 6dfb9042db2019e86076bae6fd37a97250847098549c29194daedadbb3683d7d
3
+ metadata.gz: e12cb0f69b97b2618885cb19e09a185ae37cb2c916ed77b1aefb859c64838c51
4
+ data.tar.gz: 672caee1404f07c53923523b3673b189233d83f1faffb8f10013f22648292ebd
5
5
  SHA512:
6
- metadata.gz: 50f5070c1ec56ece7edced78b495cbf1704ab6485ec8d09250f051c3edea37e738bb5a48664fa41e304558c003867c165bf28370776425039045aa07b3489526
7
- data.tar.gz: 0a7fe9e9a46a5584f9414755f11836bb892d78fdf7bc1f6e2dd69862a7176aa1978aaaf959a65e2b5f4d22fcd6cace159eb7c38b2d8b013d5a4e94cc1bed3401
6
+ metadata.gz: 074466e4ecf56323acb984d4daba7f6b0026ac9b45489b99a3447b80f072a249cee2468236198d1a73b2a6ec11016b8bb7e938ee7e01dcebbe5a40c42a3a345e
7
+ data.tar.gz: 9205f6ae9d9c12fc699ecc5168b8af703fd0bc8a5773b23909e23f0e71888ee2c019a495038defeefb134768a3929565a5886add3a083a7c14eb24b2b43d28da
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- punch_time (0.1.4)
4
+ punch_time (0.1.5)
5
5
  activemodel
6
6
  activesupport
7
7
 
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # punch_time
2
2
 
3
- [![CircleCI](https://circleci.com/bb/routeflagsinc/punch_time.svg?style=svg)](https://circleci.com/bb/routeflagsinc/punch_time)
3
+ [![CircleCI](https://circleci.com/bb/smapira/punch_time.svg?style=svg)](https://circleci.com/bb/smapira/punch_time)
4
4
 
5
-
6
- [logo]: https://bitbucket.org/routeflagsinc/punch_time/raw/c0df4f773da9bd66822186350f6516efe3be5a72/support/body_punch_hand.png "punch"
5
+ [logo]: https://bitbucket.org/smapira/punch_time/raw/c0df4f773da9bd66822186350f6516efe3be5a72/support/body_punch_hand.png "punch"
7
6
 
8
7
  Work time calculations using punch clock.
9
8
 
@@ -13,8 +12,8 @@ Calculates a work, a tardy, a overtime work and a night work times.
13
12
 
14
13
  ## Motivation
15
14
 
16
- Proud to present our newest line of gem, the human resource calculations series. As you know, the modern human resource calculations has been needing a large variety of case. This gem include simplest calculator for overtime work, night work and tardy time.
17
- If you would kindly accept our request, this gem willing to calculation.
15
+ Proud to present our newest line of gem, the back office calculations series. As you know, the modern human resource calculations has been needing a large variety of case. This gem include simplest calculator for overtime work, night work and tardy time.
16
+ If you would kindly accept the deliverable, this gem willing to calculation.
18
17
 
19
18
  ## Installation
20
19
 
@@ -49,7 +48,7 @@ config.night = {
49
48
  start_time: Time.parse('22:00'),
50
49
  end_time: Time.parse('05:00')
51
50
  }
52
- config.offset = '+0000'
51
+ config.offset = '+0000'
53
52
  end
54
53
  ```
55
54
 
@@ -59,7 +58,7 @@ end
59
58
  # Set the your time record
60
59
  PunchTime.punch(DateTime.parse('20200101 10:10'), DateTime.parse('20200101 19:00'))
61
60
 
62
- # Calculations can be performed in seconds, minutes, hours, or days
61
+ # Calculations can be performed in minutes, hours, or days
63
62
  p PunchTime.sum_work.hours
64
63
 
65
64
  # When need calculate holiday work time (use with business_time)
@@ -68,7 +67,7 @@ Date.parse('20200101').upto(Date.parse('20200105')) do |x|
68
67
  PunchTime.punch(DateTime.parse(x.to_s + ' 10:10'), DateTime.parse(x.to_s + ' 19:00'))
69
68
  sum_works.append(PunchTime.sum_work.hours) unless x.workday?
70
69
  end
71
- p sum_works.inject(:+)
70
+ p sum_works.inject(:+).to_i
72
71
 
73
72
  # Other methods
74
73
  PunchTime.sum_work
@@ -82,7 +81,7 @@ PunchTime.night_overtime_work?
82
81
 
83
82
  ## Contributing
84
83
 
85
- Bug reports and pull requests are welcome on GitHub at https://bitbucket.org/routeflagsinc/punch_time. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
84
+ Bug reports and pull requests are welcome on GitHub at https://bitbucket.org/smapira/punch_time. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
86
85
 
87
86
  ## License
88
87
 
@@ -90,9 +89,9 @@ The gem is available as open source under the terms of the [MIT License](https:/
90
89
 
91
90
  ## Code of Conduct
92
91
 
93
- Everyone interacting in the PunchClock project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://bitbucket.org/routeflagsinc/punch_time/blob/master/CODE_OF_CONDUCT.md).
92
+ Everyone interacting in the PunchClock project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://bitbucket.org/smapira/punch_time/blob/master/CODE_OF_CONDUCT.md).
94
93
 
95
- ## Good stuffs
94
+ ## Recommend good stuffs
96
95
 
97
96
  - [biz](https://github.com/zendesk/biz)
98
97
  - [business_time](https://github.com/bokmann/business_time)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PunchTime
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
data/punch_time.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
 
13
13
  spec.summary = 'Work time calculations using punch clock.'
14
14
  spec.description = 'Work time calculations using punch clock.'
15
- spec.homepage = 'https://bitbucket.org/routeflagsinc/punch_time'
15
+ spec.homepage = 'https://bitbucket.org/smapira/punch_time'
16
16
  spec.license = 'MIT'
17
17
 
18
18
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
20
20
  if spec.respond_to?(:metadata)
21
21
 
22
22
  spec.metadata['homepage_uri'] = spec.homepage
23
- spec.metadata['source_code_uri'] = 'https://bitbucket.org/routeflagsinc/punch_time'
24
- spec.metadata['changelog_uri'] = 'https://bitbucket.org/routeflagsinc/punch_time/blob/master/CHANGELOG.md'
23
+ spec.metadata['source_code_uri'] = 'https://bitbucket.org/smapira/punch_time'
24
+ spec.metadata['changelog_uri'] = 'https://bitbucket.org/smapira/punch_time/blob/master/CHANGELOG.md'
25
25
  else
26
26
  raise 'RubyGems 2.0 or newer is required to protect against ' \
27
27
  'public gem pushes.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punch_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - smapira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -122,13 +122,13 @@ files:
122
122
  - lib/punch_time/version.rb
123
123
  - punch_time.gemspec
124
124
  - support/body_punch_hand.png
125
- homepage: https://bitbucket.org/routeflagsinc/punch_time
125
+ homepage: https://bitbucket.org/smapira/punch_time
126
126
  licenses:
127
127
  - MIT
128
128
  metadata:
129
- homepage_uri: https://bitbucket.org/routeflagsinc/punch_time
130
- source_code_uri: https://bitbucket.org/routeflagsinc/punch_time
131
- changelog_uri: https://bitbucket.org/routeflagsinc/punch_time/blob/master/CHANGELOG.md
129
+ homepage_uri: https://bitbucket.org/smapira/punch_time
130
+ source_code_uri: https://bitbucket.org/smapira/punch_time
131
+ changelog_uri: https://bitbucket.org/smapira/punch_time/blob/master/CHANGELOG.md
132
132
  post_install_message:
133
133
  rdoc_options: []
134
134
  require_paths: