jipcode 2.0.24 → 2.0.25
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/rspec.yml +19 -0
- data/.github/workflows/update.yml +19 -0
- data/Gemfile.lock +1 -1
- data/README.md +0 -2
- data/bin/update +4 -4
- data/lib/jipcode/version.rb +1 -1
- metadata +5 -5
- data/.travis.yml +0 -10
- data/.travis_rsa.enc +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e6ada5c6d962e50174b2ccec7236331b2d24af8e73bc8edbdfdfad7e693119f
|
|
4
|
+
data.tar.gz: 9f1606b61f0ca67a065a084f4306b719ccb3f819510a1f2fc2426f65ff64bf08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c420332e6838c76b22efb80c11c7ced4894d305e8670abcfc961c33df86b16fd460eef114fab7a12a17b9b0c28531368f84b0248b7b45d34473558b7d5728af
|
|
7
|
+
data.tar.gz: 7187be9c4912dac99dfd80d0f8b285fbbbf3fb983ef81d3af78567db49576aace6ebd921de47ac06daf246dac97e61335b74ae79a58ce4b3dd9dd51dad1a9e8e
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: RSpec
|
|
2
|
+
|
|
3
|
+
on: push
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
rspec:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
ruby-version: ['2.7', '3.0', '3.1']
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v2
|
|
13
|
+
- name: Set up Ruby
|
|
14
|
+
uses: ruby/setup-ruby@v1
|
|
15
|
+
with:
|
|
16
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
17
|
+
bundler-cache: true
|
|
18
|
+
- name: Run RSpec
|
|
19
|
+
run: bundle exec rake spec
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: zipcode update
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '20 0 1 * *' # 日本時間の毎月1日9時20分に実行する
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
zipcode_update:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v2
|
|
13
|
+
- name: Set up Ruby
|
|
14
|
+
uses: ruby/setup-ruby@v1
|
|
15
|
+
with:
|
|
16
|
+
ruby-version: '3.0'
|
|
17
|
+
bundler-cache: true
|
|
18
|
+
- name: Run update
|
|
19
|
+
run: bin/update
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/bin/update
CHANGED
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
# 最後のデータ更新月が現在の月ならば実行しない
|
|
4
4
|
if [ `cat zipcode/current_month` = `date "+%Y%m"` ]; then
|
|
5
|
+
echo The zipcode has already been updated in this month.
|
|
5
6
|
exit 0
|
|
6
7
|
fi
|
|
7
8
|
|
|
9
|
+
git config --global user.name "${GITHUB_ACTOR}"
|
|
10
|
+
git config --global user.email "<>"
|
|
8
11
|
git checkout master
|
|
9
12
|
|
|
10
13
|
bundle exec rake update
|
|
@@ -16,12 +19,9 @@ fi
|
|
|
16
19
|
git add zipcode/latest zipcode/current_month
|
|
17
20
|
|
|
18
21
|
if git commit -m `date "+%Y年%m月%d日現在の郵便番号データに更新"`; then
|
|
22
|
+
bundle config unset deployment
|
|
19
23
|
bundle exec bump patch --no-commit
|
|
20
24
|
git add Gemfile.lock lib/jipcode/version.rb
|
|
21
25
|
git commit -m "バージョンを`bundle exec bump current | sed -e "s/^\(.*: \)//"`に更新"
|
|
22
|
-
|
|
23
|
-
openssl aes-256-cbc -K $encrypted_3597653ee3ea_key -iv $encrypted_3597653ee3ea_iv -in .travis_rsa.enc -out ~/.ssh/id_rsa -d
|
|
24
|
-
chmod 600 ~/.ssh/id_rsa
|
|
25
|
-
git remote set-url origin git@github.com:rinkei/jipcode.git
|
|
26
26
|
git push origin master
|
|
27
27
|
fi
|
data/lib/jipcode/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jipcode
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.25
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- rinkei
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02-
|
|
11
|
+
date: 2022-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -115,10 +115,10 @@ executables: []
|
|
|
115
115
|
extensions: []
|
|
116
116
|
extra_rdoc_files: []
|
|
117
117
|
files:
|
|
118
|
+
- ".github/workflows/rspec.yml"
|
|
119
|
+
- ".github/workflows/update.yml"
|
|
118
120
|
- ".gitignore"
|
|
119
121
|
- ".rspec"
|
|
120
|
-
- ".travis.yml"
|
|
121
|
-
- ".travis_rsa.enc"
|
|
122
122
|
- CODE_OF_CONDUCT.md
|
|
123
123
|
- Gemfile
|
|
124
124
|
- Gemfile.lock
|
|
@@ -1104,7 +1104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1104
1104
|
- !ruby/object:Gem::Version
|
|
1105
1105
|
version: '0'
|
|
1106
1106
|
requirements: []
|
|
1107
|
-
rubygems_version: 3.
|
|
1107
|
+
rubygems_version: 3.3.3
|
|
1108
1108
|
signing_key:
|
|
1109
1109
|
specification_version: 4
|
|
1110
1110
|
summary: A gem for Japan Post's official zipcode data search & update.
|
data/.travis.yml
DELETED
data/.travis_rsa.enc
DELETED
|
Binary file
|