kobot 1.3.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +4 -3
- data/lib/kobot/config.rb +1 -0
- data/lib/kobot/engine.rb +2 -0
- data/lib/kobot/mailer.rb +1 -1
- data/lib/kobot/option.rb +8 -4
- data/lib/kobot/version.rb +1 -1
- data/lib/kobot.rb +1 -0
- 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: 0e2452d15afce1b0ec273b240ab062cc526adedcf7f11ecaf98e7cbe3590d393
|
4
|
+
data.tar.gz: 16f3f7fefbf4f30c621148841ba93aa57b8859cc5adb092edad02b3e6970e95c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ec4604ff3d7486b48bc574f3130f2856787d6cb46644ba11cf1832569590dfe5a6159518a8474390a28500f77cd506da58531981df855db8e0d220627bb6486
|
7
|
+
data.tar.gz: 6f57f5fdf3e1f5186ca8ae60b6a482d555ca5a6e23004fec8f5bef324942001f7008fddfc96e93151c8ad88a9d17a99440bfef912540c2715a622433ea67b1a1
|
data/CHANGELOG.md
CHANGED
@@ -33,3 +33,7 @@
|
|
33
33
|
- Added config option (-a, --auto-skip-without) to enable automatic skipping based on schedule
|
34
34
|
- Replaced deprecated options with capabilities option in Selenium driver initialization
|
35
35
|
- Refactored scattered attr_accessors and reduced instance variables count reported by Rubocop
|
36
|
+
|
37
|
+
### v2.0.0
|
38
|
+
- Added -a, --auto-skip flag to support the enabling and disabling of auto-skipping feature
|
39
|
+
- Renamed the schedule config option from -a, --auto-skip-without to -w, --auto-skip-without
|
data/README.md
CHANGED
@@ -62,9 +62,10 @@ Usage: kobot [options]
|
|
62
62
|
-s, --skip [D1,D2,D3] Specify dates to skip clock in/out with date format YYYY-MM-DD and
|
63
63
|
multiple values separated by comma, such as: 2020-05-01,2020-12-31;
|
64
64
|
weekends and public holidays in Japan will be skipped by default
|
65
|
-
-a
|
66
|
-
|
67
|
-
|
65
|
+
-a, --auto-skip Enable auto-skipping by reading schedule from the Time Card page
|
66
|
+
-w [SCHEDULE], Skip today if the provided text is not contained in the schedule
|
67
|
+
--auto-skip-without column on the Time Card page of KOT; by default 裁量労働 is used;
|
68
|
+
effective only if --auto-skip is passed to enable auto-skipping.
|
68
69
|
-t, --to [TO] Email address to send notification to; by default it is sent to
|
69
70
|
the same self email account used in SMTP config as the sender
|
70
71
|
-n, --notify Enable email notification
|
data/lib/kobot/config.rb
CHANGED
data/lib/kobot/engine.rb
CHANGED
data/lib/kobot/mailer.rb
CHANGED
data/lib/kobot/option.rb
CHANGED
@@ -27,10 +27,14 @@ module Kobot
|
|
27
27
|
options[:skip] = skip
|
28
28
|
end
|
29
29
|
|
30
|
-
opt.on('-a', '--auto-skip-
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
opt.on('-a', '--auto-skip', 'Enable auto-skipping by reading schedule from the Time Card page') do |auto_skip|
|
31
|
+
options[:auto_skip] = auto_skip
|
32
|
+
end
|
33
|
+
|
34
|
+
opt.on('-w', '--auto-skip-without [SCHEDULE]',
|
35
|
+
'Skip today if the provided text is not contained in the schedule',
|
36
|
+
'column on the Time Card page of KOT; by default 裁量労働 is used;',
|
37
|
+
'effective only if --auto-skip is passed to enable auto-skipping.') do |schedule|
|
34
38
|
options[:auto_skip_without] = schedule
|
35
39
|
end
|
36
40
|
|
data/lib/kobot/version.rb
CHANGED
data/lib/kobot.rb
CHANGED
@@ -34,6 +34,7 @@ module Kobot
|
|
34
34
|
config.dryrun = options[:dryrun]
|
35
35
|
config.force = options[:force]
|
36
36
|
config.skip = options[:skip] || []
|
37
|
+
config.auto_skip = options[:auto_skip]
|
37
38
|
config.auto_skip_without = options[:auto_skip_without] || '裁量労働'
|
38
39
|
|
39
40
|
config.kot_url = 'https://s2.kingtime.jp/independent/recorder/personal/'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kobot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jiang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webdrivers
|