railway_jp 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/.github/dependabot.yml +11 -0
- data/.github/workflows/release.yml +52 -0
- data/.github/workflows/test.yml +20 -0
- data/.gitignore +1 -0
- data/lib/railway_jp/equality.rb +16 -0
- data/lib/railway_jp/line.rb +4 -0
- data/lib/railway_jp/station.rb +2 -0
- data/lib/railway_jp/version.rb +1 -1
- data/lib/railway_jp.rb +1 -1
- data/railway_jp.gemspec +3 -2
- metadata +15 -15
- data/Gemfile.lock +0 -41
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23c74cd5454be83633cdf93de7d17f74c45492556939cf513372f26268bad977
|
|
4
|
+
data.tar.gz: 72894ec7dee8ebba7f8afd294a6ed15fc9dd3b86d3453cd8b9b25740fab64b56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b34e15872e7e00a86a0478b872f12dbd5cc9a2bc071970cc676c99529006230a48c8dcb5d750e5a70c39099ba08072ad9d5486a49a047a2490f9d02d466914c2
|
|
7
|
+
data.tar.gz: 33ee20fdca3cd59c916f21067a7503f44feb5efdc5ac84c320327ee70ae402c246b9511c621a564aaea7df5385a7eee21ef24675ca18114628265638b81ff367
|
|
@@ -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/railway_jp/version -e 'print RailwayJp::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,20 @@
|
|
|
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
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v6
|
|
14
|
+
- name: Set up Ruby
|
|
15
|
+
uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
- name: Build and test with Rake
|
|
20
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/lib/railway_jp/line.rb
CHANGED
data/lib/railway_jp/station.rb
CHANGED
data/lib/railway_jp/version.rb
CHANGED
data/lib/railway_jp.rb
CHANGED
data/railway_jp.gemspec
CHANGED
|
@@ -31,8 +31,9 @@ Gem::Specification.new do |spec|
|
|
|
31
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
32
32
|
spec.require_paths = ['lib']
|
|
33
33
|
|
|
34
|
-
spec.
|
|
35
|
-
|
|
34
|
+
spec.add_dependency 'csv'
|
|
35
|
+
|
|
36
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
|
36
37
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
37
38
|
spec.add_development_dependency 'pry'
|
|
38
39
|
end
|
metadata
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: railway_jp
|
|
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
|
- 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
|
-
name:
|
|
13
|
+
name: csv
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
20
|
-
type: :
|
|
18
|
+
version: '0'
|
|
19
|
+
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
|
-
- - "
|
|
23
|
+
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
25
|
+
version: '0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: rake
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
32
|
+
version: '13.0'
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
39
|
+
version: '13.0'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
41
|
name: rspec
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -73,11 +72,13 @@ executables: []
|
|
|
73
72
|
extensions: []
|
|
74
73
|
extra_rdoc_files: []
|
|
75
74
|
files:
|
|
75
|
+
- ".github/dependabot.yml"
|
|
76
|
+
- ".github/workflows/release.yml"
|
|
77
|
+
- ".github/workflows/test.yml"
|
|
76
78
|
- ".gitignore"
|
|
77
79
|
- ".rspec"
|
|
78
80
|
- ".travis.yml"
|
|
79
81
|
- Gemfile
|
|
80
|
-
- Gemfile.lock
|
|
81
82
|
- LICENSE.txt
|
|
82
83
|
- README.md
|
|
83
84
|
- Rakefile
|
|
@@ -87,6 +88,7 @@ files:
|
|
|
87
88
|
- lib/data/line.csv
|
|
88
89
|
- lib/data/station.csv
|
|
89
90
|
- lib/railway_jp.rb
|
|
91
|
+
- lib/railway_jp/equality.rb
|
|
90
92
|
- lib/railway_jp/line.rb
|
|
91
93
|
- lib/railway_jp/station.rb
|
|
92
94
|
- lib/railway_jp/version.rb
|
|
@@ -98,7 +100,6 @@ metadata:
|
|
|
98
100
|
homepage_uri: https://github.com/d-mato/railway_jp
|
|
99
101
|
source_code_uri: https://github.com/d-mato/railway_jp
|
|
100
102
|
changelog_uri: https://github.com/d-mato/railway_jp
|
|
101
|
-
post_install_message:
|
|
102
103
|
rdoc_options: []
|
|
103
104
|
require_paths:
|
|
104
105
|
- lib
|
|
@@ -113,8 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
113
114
|
- !ruby/object:Gem::Version
|
|
114
115
|
version: '0'
|
|
115
116
|
requirements: []
|
|
116
|
-
rubygems_version:
|
|
117
|
-
signing_key:
|
|
117
|
+
rubygems_version: 4.0.6
|
|
118
118
|
specification_version: 4
|
|
119
119
|
summary: A library for providing Japanese railways and stations.
|
|
120
120
|
test_files: []
|
data/Gemfile.lock
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
railway_jp (0.1.0)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: https://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
coderay (1.1.2)
|
|
10
|
-
diff-lcs (1.3)
|
|
11
|
-
method_source (1.0.0)
|
|
12
|
-
pry (0.13.1)
|
|
13
|
-
coderay (~> 1.1)
|
|
14
|
-
method_source (~> 1.0)
|
|
15
|
-
rake (10.5.0)
|
|
16
|
-
rspec (3.9.0)
|
|
17
|
-
rspec-core (~> 3.9.0)
|
|
18
|
-
rspec-expectations (~> 3.9.0)
|
|
19
|
-
rspec-mocks (~> 3.9.0)
|
|
20
|
-
rspec-core (3.9.2)
|
|
21
|
-
rspec-support (~> 3.9.3)
|
|
22
|
-
rspec-expectations (3.9.2)
|
|
23
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
24
|
-
rspec-support (~> 3.9.0)
|
|
25
|
-
rspec-mocks (3.9.1)
|
|
26
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
27
|
-
rspec-support (~> 3.9.0)
|
|
28
|
-
rspec-support (3.9.3)
|
|
29
|
-
|
|
30
|
-
PLATFORMS
|
|
31
|
-
ruby
|
|
32
|
-
|
|
33
|
-
DEPENDENCIES
|
|
34
|
-
bundler (~> 1.17)
|
|
35
|
-
pry
|
|
36
|
-
railway_jp!
|
|
37
|
-
rake (~> 10.0)
|
|
38
|
-
rspec (~> 3.0)
|
|
39
|
-
|
|
40
|
-
BUNDLED WITH
|
|
41
|
-
1.17.2
|