lucasalary 0.1.28 → 0.1.29

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: 13c3b82fd0dbc0628ded542e7e41034b61c72b70d2b95c6db395e802a5d1a868
4
- data.tar.gz: 2c9867511fc9db6f1f1855bac932eed3ea52b89f5a64646200348b05139f01a8
3
+ metadata.gz: 5f9a6cc60592a240edaa38b2fc9245efeefa74d16c2fff7abfdf8c2e9a7dbf4c
4
+ data.tar.gz: e09af61bfa146de7625f5877951ab4dfeb7b76549c443be7f1d0245b6e1e37ac
5
5
  SHA512:
6
- metadata.gz: 0ff1f112099e366cb6b6950a37eaed47d632d338cd3c497fd293b4a8ca2bba50c734032208ef4e7f43c963a990b63d890dc9cc34fc458ae5efc414db6146088b
7
- data.tar.gz: 73b50ab1845ed285aaf131056de8c05a0d3e6f4c0ca293b542675418fda8ec3a904216ff116ad920cbca6b77e9b7503d891692a31d7cf368973dfac924cf2b1a
6
+ metadata.gz: a9068ec38591a0a8758498371497533b4c9d37303a3089b6441d4601bd88dc685fc338b1718a5fe549c2decaa89f8dc0534afc1b1144c99b7328ff25aa5a0166
7
+ data.tar.gz: 2f15b61cd215c260aeda9c6df1c053129fd8b20ab3390564f2d23308eb0b576c7c4f6e8c7f693b5c6c57951e0a13fe8d697a44574ac93666c14e6971acf3299d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## LucaSalary 0.1.29
2
+
3
+ * `luca-salary payment list` supports interactive `--explore` w/nushell.
4
+
1
5
  ## LucaSalary 0.1.28
2
6
 
3
7
  * BREAKING: `luca-salary payments total` directory structure changed. Upsert 1 record per 1 profile.
data/exe/luca-salary CHANGED
@@ -60,6 +60,8 @@ module LucaCmd
60
60
  puts JSON.dump(dat)
61
61
  when 'nu'
62
62
  LucaSupport::View.nushell(dat)
63
+ when 'explore'
64
+ LucaSupport::View.nushell(dat, :explore)
63
65
  else
64
66
  puts YAML.dump(dat)
65
67
  end
@@ -114,9 +116,10 @@ when 'pay', /payments?/
114
116
  end
115
117
  when 'list'
116
118
  OptionParser.new do |opt|
117
- opt.banner = 'Usage: luca-salary payments list [--mail|--nu] year month [date]'
119
+ opt.banner = 'Usage: luca-salary payments list [--mail|--nu|--explore] year month [date]'
118
120
  opt.on('--mail', 'send to managers') { |_v| params['mode'] = 'mail' }
119
121
  opt.on('--nu', 'show table in nushell') { |_v| params[:output] = 'nu' }
122
+ opt.on('--explore', 'explore table in nushell') { |_v| params[:output] = 'explore' }
120
123
  args = opt.parse(ARGV)
121
124
  LucaCmd::Payment.list(args, params)
122
125
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucaSalary
4
- VERSION = '0.1.28'
4
+ VERSION = '0.1.29'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucasalary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuma Takahiro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-11 00:00:00.000000000 Z
11
+ date: 2023-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lucarecord