timecalc-cli 0.1.0 → 0.1.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/README.md +4 -4
- data/lib/timecalc/cli.rb +1 -1
- metadata +12 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61eed18c9a13fcea4e2f15e0e22e53bee54a3ee101086febf7ce2a8c80c7b922
|
|
4
|
+
data.tar.gz: 43553c93c3d37f723ffdfa7e18b9902039a73f1d215ab0441eac3d79fc6e3cf3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fc8522d971d900c43b2173630abb43799b93c34242a584cf53b31394fadced3c98c215096f413e40a64ed4b95af562765bb8def25ea24983e5b2dd744457ad4
|
|
7
|
+
data.tar.gz: 658a9d26ac7c124d1ca83e7cd27c36d907084b5013fbafe445a28dd23275d9aae49faa98d03dd8554d3f5f75aa4f8f9e244d3dec54e108743cc6ed497c689b51
|
data/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Rubyがインストールされている環境で、以下を実行してくだ
|
|
|
24
24
|
gem install timecalc-cli
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
RubyGems.org: [timecalc-cli](https://rubygems.org/gems/timecalc-cli)
|
|
28
28
|
|
|
29
29
|
### 使い方
|
|
30
30
|
|
|
@@ -138,7 +138,7 @@ gem build timecalc-cli.gemspec
|
|
|
138
138
|
ビルドしたGemをローカルにインストールします。
|
|
139
139
|
|
|
140
140
|
```bash
|
|
141
|
-
gem install ./timecalc-cli-0.1.
|
|
141
|
+
gem install ./timecalc-cli-0.1.1.gem
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
### 動作環境
|
|
@@ -171,7 +171,7 @@ Run the following command in an environment with Ruby installed.
|
|
|
171
171
|
gem install timecalc-cli
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
RubyGems.org: [timecalc-cli](https://rubygems.org/gems/timecalc-cli)
|
|
175
175
|
|
|
176
176
|
### Usage
|
|
177
177
|
|
|
@@ -285,7 +285,7 @@ gem build timecalc-cli.gemspec
|
|
|
285
285
|
Install the gem locally:
|
|
286
286
|
|
|
287
287
|
```bash
|
|
288
|
-
gem install ./timecalc-cli-0.1.
|
|
288
|
+
gem install ./timecalc-cli-0.1.1.gem
|
|
289
289
|
```
|
|
290
290
|
|
|
291
291
|
### Requirements
|
data/lib/timecalc/cli.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module TimecalcCLI
|
|
4
|
-
VERSION = "0.1.
|
|
4
|
+
VERSION = "0.1.1"
|
|
5
5
|
TIME_PATTERN = /\A\d{2}(?::\d{2})?\z/
|
|
6
6
|
RANGE_PATTERN = /\A(?<start>\d{2}(?::\d{2})?)-(?<finish>\d{2}(?::\d{2})?)\z/
|
|
7
7
|
HM_PATTERN = /\A(?<hours>\d+)(?:\.(?<minutes>\d{1,2}))?\z/
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: timecalc-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eli
|
|
@@ -9,7 +9,12 @@ bindir: bin
|
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
|
-
description:
|
|
12
|
+
description: |
|
|
13
|
+
TimeCalcは、カンマ区切りの時間帯、または標準入力から受け取る時間・分の一覧を合計するRuby製CLIです。
|
|
14
|
+
時刻は HH または HH:MM 形式で指定でき、--hm オプションでは H または H.MM 形式の経過時間を行ごとに合計できます。
|
|
15
|
+
|
|
16
|
+
TimeCalc is a Ruby CLI for calculating totals from comma-separated time ranges or line-oriented hours-and-minutes input.
|
|
17
|
+
Times can be specified in HH or HH:MM format, and the --hm option sums elapsed durations in H or H.MM format.
|
|
13
18
|
executables:
|
|
14
19
|
- timecalc
|
|
15
20
|
extensions: []
|
|
@@ -20,9 +25,12 @@ files:
|
|
|
20
25
|
- bin/timecalc
|
|
21
26
|
- lib/timecalc/cli.rb
|
|
22
27
|
- lib/timecalc_cli.rb
|
|
28
|
+
homepage: https://github.com/koguchi-e/timecalc
|
|
23
29
|
licenses:
|
|
24
30
|
- MIT
|
|
25
|
-
metadata:
|
|
31
|
+
metadata:
|
|
32
|
+
source_code_uri: https://github.com/koguchi-e/timecalc
|
|
33
|
+
bug_tracker_uri: https://github.com/koguchi-e/timecalc/issues
|
|
26
34
|
rdoc_options: []
|
|
27
35
|
require_paths:
|
|
28
36
|
- lib
|
|
@@ -39,5 +47,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
39
47
|
requirements: []
|
|
40
48
|
rubygems_version: 4.0.10
|
|
41
49
|
specification_version: 4
|
|
42
|
-
summary:
|
|
50
|
+
summary: 時間帯・経過時間を合計するCLI / CLI for calculating time ranges and elapsed durations
|
|
43
51
|
test_files: []
|