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 +4 -4
- data/Gemfile.lock +25 -25
- data/README.md +3 -4
- data/exe/attend +2 -0
- data/lib/attend/version.rb +1 -1
- data/lib/zoho/people/api.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3821ac26f7e464f34f20aebddf9c0ea6ec05a48e2449f7f0761241968e40d9d0
|
|
4
|
+
data.tar.gz: 66e6a441166ad77a8b4dbbf0d228f323480f37ed6f7b74539de7036c5455c10c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 (
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
33
|
-
parser (3.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.
|
|
37
|
+
rake (13.0.6)
|
|
38
38
|
regexp_parser (2.1.1)
|
|
39
|
-
rexml (3.2.
|
|
40
|
-
rspec (3.
|
|
41
|
-
rspec-core (~> 3.
|
|
42
|
-
rspec-expectations (~> 3.
|
|
43
|
-
rspec-mocks (~> 3.
|
|
44
|
-
rspec-core (3.
|
|
45
|
-
rspec-support (~> 3.
|
|
46
|
-
rspec-expectations (3.
|
|
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.
|
|
49
|
-
rspec-mocks (3.
|
|
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.
|
|
52
|
-
rspec-support (3.
|
|
53
|
-
rubocop (1.
|
|
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.
|
|
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.
|
|
63
|
-
parser (>=
|
|
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.
|
|
68
|
-
unicode-display_width (2.
|
|
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
|
|
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
data/lib/attend/version.rb
CHANGED
data/lib/zoho/people/api.rb
CHANGED
|
@@ -11,8 +11,8 @@ module Zoho
|
|
|
11
11
|
|
|
12
12
|
attr_reader :auth_token
|
|
13
13
|
|
|
14
|
-
def initialize(auth_token: ENV['
|
|
15
|
-
raise 'You must provide Zoho People
|
|
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:
|
|
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-
|
|
11
|
+
date: 2021-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: clamp
|