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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f08911f0328c629a3ea1a907ad17de661702af6c6ad6d056f2e4da210f046334
4
- data.tar.gz: e7ea4325d35e7865eff3bada59d8886be0cea8bb8051c68ff99aa7a7d479c799
3
+ metadata.gz: 2e6ada5c6d962e50174b2ccec7236331b2d24af8e73bc8edbdfdfad7e693119f
4
+ data.tar.gz: 9f1606b61f0ca67a065a084f4306b719ccb3f819510a1f2fc2426f65ff64bf08
5
5
  SHA512:
6
- metadata.gz: 120217ad7848d89d277e30f3861f14844549aa9a007aecf17a9d6d72011c6a9e521bdd890cb2a36c898b4419e00cc5ee1106f5375b9bb3cef9298d32e9d44a4b
7
- data.tar.gz: 17e55ef4738b3ac510b082c7d3be50f096a597309d5bd5acfd8c5c10d2ff6d4d236e01cf9742d0eb96c9677e8a140ac506bd3e275a2d74ec52886fdb2d4ab7f5
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jipcode (2.0.24)
4
+ jipcode (2.0.25)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,3 @@
1
- [![Build Status](https://travis-ci.org/rinkei/jipcode.svg?branch=master)](https://travis-ci.org/rinkei/jipcode)
2
-
3
1
  # Jipcode
4
2
 
5
3
  Jipcodeは郵便番号から住所を検索する機能を提供します。
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
@@ -1,3 +1,3 @@
1
1
  module Jipcode
2
- VERSION = '2.0.24'
2
+ VERSION = '2.0.25'
3
3
  end
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.24
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-02 00:00:00.000000000 Z
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.2.22
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
@@ -1,10 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.6
5
- before_install:
6
- - gem install bundler -v 2.2.19
7
- install: bundle install --jobs=3 --retry=3
8
- script:
9
- - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bin/update; fi
10
- - bundle exec rake spec
data/.travis_rsa.enc DELETED
Binary file