elapsed 0.0.1 → 0.1.0

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.
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elapsed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-14 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: loog
@@ -44,17 +43,19 @@ email: yegor256@gmail.com
44
43
  executables: []
45
44
  extensions: []
46
45
  extra_rdoc_files:
47
- - README.md
48
46
  - LICENSE.txt
47
+ - README.md
49
48
  files:
50
49
  - ".0pdd.yml"
51
50
  - ".gitattributes"
52
51
  - ".github/workflows/actionlint.yml"
53
52
  - ".github/workflows/codecov.yml"
54
- - ".github/workflows/license.yml"
53
+ - ".github/workflows/copyrights.yml"
55
54
  - ".github/workflows/markdown-lint.yml"
56
55
  - ".github/workflows/pdd.yml"
57
56
  - ".github/workflows/rake.yml"
57
+ - ".github/workflows/reuse.yml"
58
+ - ".github/workflows/typos.yml"
58
59
  - ".github/workflows/xcop.yml"
59
60
  - ".github/workflows/yamllint.yml"
60
61
  - ".gitignore"
@@ -65,19 +66,20 @@ files:
65
66
  - Gemfile
66
67
  - Gemfile.lock
67
68
  - LICENSE.txt
69
+ - LICENSES/MIT.txt
68
70
  - README.md
71
+ - REUSE.toml
69
72
  - Rakefile
70
73
  - elapsed.gemspec
71
74
  - lib/elapsed.rb
72
75
  - renovate.json
73
76
  - test/test__helper.rb
74
77
  - test/test_elapsed.rb
75
- homepage: http://github.com/yegor256/elapsed
78
+ homepage: https://github.com/yegor256/elapsed
76
79
  licenses:
77
80
  - MIT
78
81
  metadata:
79
82
  rubygems_mfa_required: 'true'
80
- post_install_message:
81
83
  rdoc_options:
82
84
  - "--charset=UTF-8"
83
85
  require_paths:
@@ -93,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
95
  - !ruby/object:Gem::Version
94
96
  version: '0'
95
97
  requirements: []
96
- rubygems_version: 3.4.10
97
- signing_key:
98
+ rubygems_version: 3.6.7
98
99
  specification_version: 4
99
100
  summary: A simple Ruby function to measure the time elapsed by the execution of a
100
101
  block
@@ -1,57 +0,0 @@
1
- # Copyright (c) 2024 Yegor Bugayenko
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the 'Software'), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in all
11
- # copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- # SOFTWARE.
20
- ---
21
- name: license
22
- 'on':
23
- push:
24
- branches:
25
- - master
26
- pull_request:
27
- branches:
28
- - master
29
- jobs:
30
- license:
31
- runs-on: ubuntu-22.04
32
- steps:
33
- - uses: actions/checkout@v4
34
- - shell: bash
35
- run: |
36
- header="Copyright (c) $(date +%Y) Yegor Bugayenko"
37
- failed="false"
38
- while IFS= read -r file; do
39
- if ! grep -q "${header}" "${file}"; then
40
- failed="true"
41
- echo "⚠️ Copyright header is not found in: ${file}"
42
- else
43
- echo "File looks good: ${file}"
44
- fi
45
- done < <(find . -type f \( \
46
- -name "Dockerfile" -o \
47
- -name "LICENSE.txt" -o \
48
- -name "Makefile" -o \
49
- -name "Rakefile" -o \
50
- -name "*.sh" -o \
51
- -name "*.rb" -o \
52
- -name "*.fe" -o \
53
- -name "*.yml" \
54
- \) -print)
55
- if [ "${failed}" = "true" ]; then
56
- exit 1
57
- fi