time-duration 0.1.4 → 0.1.5
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/.github/workflows/release.yml +52 -0
- data/.github/workflows/test.yml +19 -0
- data/.gitignore +1 -0
- data/lib/time_duration/version.rb +1 -1
- metadata +5 -8
- data/.github/workflows/ruby.yml +0 -22
- data/Gemfile.lock +0 -34
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe4a3ed00c2b0d976abc03784b5483fd095b29ccf55c6941b2b42bde1e4d12c4
|
|
4
|
+
data.tar.gz: da82f15e83d225a3a394a3edc2dab31977122a139d9a10cb9dc0e72c518cf564
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d58a50000aac74f44e5f1080e2457241dd8bc1acad524eca86c73a73b49b2bc166299ca98bfda2203926382eb3cdbcbc58a4964d9c1c84e52cc595e78143e16a
|
|
7
|
+
data.tar.gz: 7e0b696cf925382d84a24249315fe60165668e17bd2de76a71f8e254677af16b07a170ebf4afebbdd7b8041a9f6620bfccdf2a1fe3e0cb7d19650220df43d704
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
bump:
|
|
7
|
+
description: "Version bump type"
|
|
8
|
+
required: true
|
|
9
|
+
type: choice
|
|
10
|
+
options:
|
|
11
|
+
- patch
|
|
12
|
+
- minor
|
|
13
|
+
- major
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
release:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v6
|
|
24
|
+
|
|
25
|
+
- name: Set up Ruby
|
|
26
|
+
uses: ruby/setup-ruby@v1
|
|
27
|
+
with:
|
|
28
|
+
ruby-version: ruby
|
|
29
|
+
bundler-cache: true
|
|
30
|
+
|
|
31
|
+
- name: Install gem-release
|
|
32
|
+
run: gem install gem-release
|
|
33
|
+
|
|
34
|
+
- name: Configure git
|
|
35
|
+
run: |
|
|
36
|
+
git config user.name "github-actions[bot]"
|
|
37
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
38
|
+
|
|
39
|
+
- name: Bump version, commit, tag, push
|
|
40
|
+
id: version
|
|
41
|
+
run: |
|
|
42
|
+
gem bump --version ${{ inputs.bump }} --tag --push
|
|
43
|
+
new=$(ruby -r ./lib/time_duration/version -e 'print TimeDuration::VERSION')
|
|
44
|
+
echo "tag=v${new}" >> "$GITHUB_OUTPUT"
|
|
45
|
+
|
|
46
|
+
- name: Create GitHub Release
|
|
47
|
+
run: gh release create "${{ steps.version.outputs.tag }}" --generate-notes
|
|
48
|
+
env:
|
|
49
|
+
GH_TOKEN: ${{ github.token }}
|
|
50
|
+
|
|
51
|
+
- name: Publish gem to RubyGems
|
|
52
|
+
uses: rubygems/release-gem@v1
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
ruby: ['3.3', '3.4', '4.0']
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v6
|
|
13
|
+
- name: Set up Ruby
|
|
14
|
+
uses: ruby/setup-ruby@v1
|
|
15
|
+
with:
|
|
16
|
+
ruby-version: ${{ matrix.ruby }}
|
|
17
|
+
bundler-cache: true
|
|
18
|
+
- name: Build and test with Rake
|
|
19
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: time-duration
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daiki Matoba
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rake
|
|
@@ -46,12 +45,12 @@ extensions: []
|
|
|
46
45
|
extra_rdoc_files: []
|
|
47
46
|
files:
|
|
48
47
|
- ".github/dependabot.yml"
|
|
49
|
-
- ".github/workflows/
|
|
48
|
+
- ".github/workflows/release.yml"
|
|
49
|
+
- ".github/workflows/test.yml"
|
|
50
50
|
- ".gitignore"
|
|
51
51
|
- ".rspec"
|
|
52
52
|
- ".travis.yml"
|
|
53
53
|
- Gemfile
|
|
54
|
-
- Gemfile.lock
|
|
55
54
|
- README.md
|
|
56
55
|
- Rakefile
|
|
57
56
|
- bin/console
|
|
@@ -63,7 +62,6 @@ files:
|
|
|
63
62
|
homepage: https://github.com/d-mato/time_duration
|
|
64
63
|
licenses: []
|
|
65
64
|
metadata: {}
|
|
66
|
-
post_install_message:
|
|
67
65
|
rdoc_options: []
|
|
68
66
|
require_paths:
|
|
69
67
|
- lib
|
|
@@ -78,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
78
76
|
- !ruby/object:Gem::Version
|
|
79
77
|
version: '0'
|
|
80
78
|
requirements: []
|
|
81
|
-
rubygems_version:
|
|
82
|
-
signing_key:
|
|
79
|
+
rubygems_version: 4.0.6
|
|
83
80
|
specification_version: 4
|
|
84
81
|
summary: This module provides functions for expressing durations
|
|
85
82
|
test_files: []
|
data/.github/workflows/ruby.yml
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
name: Ruby
|
|
2
|
-
|
|
3
|
-
on: [push]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
strategy:
|
|
9
|
-
matrix:
|
|
10
|
-
ruby: ['2.5.x', '2.6.x', '2.7.x', '3.0.x']
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v1
|
|
13
|
-
- name: Set up Ruby
|
|
14
|
-
uses: actions/setup-ruby@v1
|
|
15
|
-
with:
|
|
16
|
-
ruby-version: ${{ matrix.ruby }}
|
|
17
|
-
- name: Build and test with Rake
|
|
18
|
-
run: |
|
|
19
|
-
gem install bundler
|
|
20
|
-
bundle update --bundler
|
|
21
|
-
bundle install --jobs 4 --retry 3
|
|
22
|
-
bundle exec rake
|
data/Gemfile.lock
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
time-duration (0.1.3)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: https://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
diff-lcs (1.3)
|
|
10
|
-
rake (13.0.1)
|
|
11
|
-
rspec (3.9.0)
|
|
12
|
-
rspec-core (~> 3.9.0)
|
|
13
|
-
rspec-expectations (~> 3.9.0)
|
|
14
|
-
rspec-mocks (~> 3.9.0)
|
|
15
|
-
rspec-core (3.9.0)
|
|
16
|
-
rspec-support (~> 3.9.0)
|
|
17
|
-
rspec-expectations (3.9.0)
|
|
18
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
19
|
-
rspec-support (~> 3.9.0)
|
|
20
|
-
rspec-mocks (3.9.0)
|
|
21
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
|
-
rspec-support (~> 3.9.0)
|
|
23
|
-
rspec-support (3.9.0)
|
|
24
|
-
|
|
25
|
-
PLATFORMS
|
|
26
|
-
ruby
|
|
27
|
-
|
|
28
|
-
DEPENDENCIES
|
|
29
|
-
rake (~> 13.0)
|
|
30
|
-
rspec (~> 3.0)
|
|
31
|
-
time-duration!
|
|
32
|
-
|
|
33
|
-
BUNDLED WITH
|
|
34
|
-
2.1.4
|