attend 1.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8c87d15b717a5967b362d8adb2134b53ff3f4ca0a35fc99a72d170e5832971a
4
- data.tar.gz: d44d47deeb7833218c5846790cb24f24c78bd76d85ca2c8b39e8aa5cce007081
3
+ metadata.gz: 3821ac26f7e464f34f20aebddf9c0ea6ec05a48e2449f7f0761241968e40d9d0
4
+ data.tar.gz: 66e6a441166ad77a8b4dbbf0d228f323480f37ed6f7b74539de7036c5455c10c
5
5
  SHA512:
6
- metadata.gz: def3186735e775c79efec903c214e1fd599ac5da476afd44461f451b33085746a72cf0af75cf380116c93570c6ac65972c7f9f720c1c4dedf3de177a5f2da083
7
- data.tar.gz: b8a7606f8080fa777839352078d252ad1727bf046d404bebaa064466dd9e78b8f365b27406f00d196e4436c54276be793f01f10a6d999a2f4ae401569c932949
6
+ metadata.gz: de9de2168901829ef26ea336d63cacabea6b9239a58913df3ec77ac5ba4e4f2106157ac5c324546d177e84442e7284690f6349b745a6483c562ebebfa9542256
7
+ data.tar.gz: 18a15085d5f615e4ad42889fab043e37ee372ab233907c41069a281b8f663d813c6ef35019cda1e567523b6af4fcc92ebc7e75cc0bd8cd255f335873dd117afa
data/Gemfile.lock CHANGED
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- attend (1.0.0)
4
+ attend (2.0.1)
5
5
  clamp (~> 1.3)
6
6
  http (~> 4.4)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.7.0)
11
+ addressable (2.8.0)
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
13
  ast (2.4.2)
14
14
  clamp (1.3.2)
15
15
  diff-lcs (1.4.4)
16
16
  domain_name (0.5.20190701)
17
17
  unf (>= 0.0.5, < 1.0.0)
18
- ffi (1.15.0)
18
+ ffi (1.15.4)
19
19
  ffi-compiler (1.0.1)
20
20
  ffi (>= 1.0.0)
21
21
  rake
@@ -24,48 +24,48 @@ GEM
24
24
  http-cookie (~> 1.0)
25
25
  http-form_data (~> 2.2)
26
26
  http-parser (~> 1.2.0)
27
- http-cookie (1.0.3)
27
+ http-cookie (1.0.4)
28
28
  domain_name (~> 0.5)
29
29
  http-form_data (2.3.0)
30
30
  http-parser (1.2.3)
31
31
  ffi-compiler (>= 1.0, < 2.0)
32
- parallel (1.20.1)
33
- parser (3.0.0.0)
32
+ parallel (1.21.0)
33
+ parser (3.0.2.0)
34
34
  ast (~> 2.4.1)
35
35
  public_suffix (4.0.6)
36
36
  rainbow (3.0.0)
37
- rake (13.0.3)
37
+ rake (13.0.6)
38
38
  regexp_parser (2.1.1)
39
- rexml (3.2.4)
40
- rspec (3.9.0)
41
- rspec-core (~> 3.9.0)
42
- rspec-expectations (~> 3.9.0)
43
- rspec-mocks (~> 3.9.0)
44
- rspec-core (3.9.2)
45
- rspec-support (~> 3.9.3)
46
- rspec-expectations (3.9.2)
39
+ rexml (3.2.5)
40
+ rspec (3.10.0)
41
+ rspec-core (~> 3.10.0)
42
+ rspec-expectations (~> 3.10.0)
43
+ rspec-mocks (~> 3.10.0)
44
+ rspec-core (3.10.1)
45
+ rspec-support (~> 3.10.0)
46
+ rspec-expectations (3.10.1)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.9.0)
49
- rspec-mocks (3.9.1)
48
+ rspec-support (~> 3.10.0)
49
+ rspec-mocks (3.10.2)
50
50
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.9.0)
52
- rspec-support (3.9.3)
53
- rubocop (1.11.0)
51
+ rspec-support (~> 3.10.0)
52
+ rspec-support (3.10.2)
53
+ rubocop (1.22.0)
54
54
  parallel (~> 1.10)
55
55
  parser (>= 3.0.0.0)
56
56
  rainbow (>= 2.2.2, < 4.0)
57
57
  regexp_parser (>= 1.8, < 3.0)
58
58
  rexml
59
- rubocop-ast (>= 1.2.0, < 2.0)
59
+ rubocop-ast (>= 1.12.0, < 2.0)
60
60
  ruby-progressbar (~> 1.7)
61
61
  unicode-display_width (>= 1.4.0, < 3.0)
62
- rubocop-ast (1.4.1)
63
- parser (>= 2.7.1.5)
62
+ rubocop-ast (1.12.0)
63
+ parser (>= 3.0.1.1)
64
64
  ruby-progressbar (1.11.0)
65
65
  unf (0.1.4)
66
66
  unf_ext
67
- unf_ext (0.0.7.7)
68
- unicode-display_width (2.0.0)
67
+ unf_ext (0.0.8)
68
+ unicode-display_width (2.1.0)
69
69
 
70
70
  PLATFORMS
71
71
  ruby
data/README.md CHANGED
@@ -14,13 +14,12 @@ and that's it!
14
14
 
15
15
  ## Usage
16
16
 
17
- First of all you need to set [Zoho Poeople auth token](https://www.zoho.com/people/help/api/auth-token.html) as env variable in your terminal. After that you will be ready to use `attend`.
17
+ First of all you need to set [Zoho Poeople auth token](https://www.zoho.com/people/help/api/auth-token.html) as env variable in your terminal. After that you will be ready to use `attend`.
18
18
 
19
19
  ```bash
20
- export ZOHO_PEOPLE_AUTH_TOKEN='YOUR_TOKEN'
20
+ export ZOHO_PEOPLE_ROOT_TOKEN='YOUR_TOKEN'
21
21
  ```
22
22
 
23
-
24
23
  To register attendance on current day:
25
24
 
26
25
  ```bash
@@ -29,7 +28,7 @@ attend --email "your.employee@email.com" --check_in "10:00" --check_out "18:00"
29
28
  ```
30
29
 
31
30
  You can also register attendance for a few days:
32
-
31
+
33
32
  ```bash
34
33
  attend --email "your.employee@email.com" --check_in "10:00" --check_out "18:00" --from "04/07/2017" --to "07/07/2017"
35
34
  # Successfully registered attendance from 2017-07-04T10:00:00+10:00 to 2017-07-04T18:00:00+18:00
data/exe/attend CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
+ STDOUT.sync = true
5
+
4
6
  require 'clamp'
5
7
  require 'date'
6
8
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Attend
4
- VERSION = '1.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
@@ -11,8 +11,8 @@ module Zoho
11
11
 
12
12
  attr_reader :auth_token
13
13
 
14
- def initialize(auth_token: ENV['ZOHO_PEOPLE_AUTH_TOKEN'])
15
- raise 'You must provide Zoho People authentication token' unless auth_token
14
+ def initialize(auth_token: ENV['ZOHO_PEOPLE_ROOT_TOKEN'])
15
+ raise 'You must provide Zoho People authorization token' unless auth_token
16
16
 
17
17
  @auth_token = auth_token
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Komorowski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-09 00:00:00.000000000 Z
11
+ date: 2021-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp