jp_prefecture 0.10.0 → 0.11.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c9d14abd08ed90e760046dfb048b316feb4d3fc7b279f144c4ac268482f3735
4
- data.tar.gz: 1da155603c489f8a24c5ccc39d26ad1e63f474b770c90187fabddfe760a92d66
3
+ metadata.gz: c16ea4e0cdab390ac0f2e7ce37db364d1e9d7dbb7c9cb1ccdb80aa9dc0da4e62
4
+ data.tar.gz: 566e0820a0aef1caa58dc22ef002a72f44f9b96f1457448ea9721c96717cf076
5
5
  SHA512:
6
- metadata.gz: 66e17d9086eeff007a4e4b906db1611b51592df4614f78b92df6256575dd6f5fbacbe914020a75033541f17edbb9db7ff63666333fb9bcbc9364a8499ad9c0fe
7
- data.tar.gz: c14485be7054c0536dc962257c52f0b9ca9fba1a77a41ce9b9d4a821992274a1809f96e7ca47718dbae3ec71f9383de119e146c9f86e237945d39d94357accc3
6
+ metadata.gz: 148c89e504aa745015e8eeaed0460be88bc4d23094a98a248d739cb67bceeeaaa5c971cd74d902565b4d8c2c6b636066479c725936e7454b30cb8b0cff81b2f2
7
+ data.tar.gz: a9408dcea7c0ec9725719c510b594c21d14bf85eb74f57c9dfbc252dda724163133c07dd43aee44df2907f4c01e944d57261fedca489ecb825ff1c9a40edf851
@@ -0,0 +1,78 @@
1
+ name: Build
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types: [opened, synchronize, reopened]
9
+
10
+ jobs:
11
+ matrix:
12
+ runs-on: ubuntu-latest
13
+
14
+ strategy:
15
+ matrix:
16
+ ruby:
17
+ - 2.4
18
+ - 2.5
19
+ - 2.6
20
+ - 2.7
21
+ gemfile:
22
+ - rails42.gemfile
23
+ - rails50.gemfile
24
+ - rails51.gemfile
25
+ - rails52.gemfile
26
+ - rails60.gemfile
27
+ - rails61.gemfile
28
+ exclude:
29
+ - ruby: 2.4
30
+ gemfile: rails60.gemfile
31
+ - ruby: 2.4
32
+ gemfile: rails61.gemfile
33
+ - ruby: 2.5
34
+ gemfile: rails60.gemfile
35
+ - ruby: 2.5
36
+ gemfile: rails61.gemfile
37
+ - ruby: 2.7
38
+ gemfile: rails42.gemfile
39
+
40
+ env:
41
+ CI: true
42
+ COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
43
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}
44
+
45
+ steps:
46
+ - uses: actions/checkout@v1
47
+
48
+ - name: Setup System
49
+ run: |
50
+ sudo apt-get update
51
+ sudo apt-get install libsqlite3-dev
52
+
53
+ - name: Set up Ruby ${{ matrix.ruby }}
54
+ uses: eregon/use-ruby-action@master
55
+ with:
56
+ ruby-version: ${{ matrix.ruby }}
57
+
58
+ - name: Build
59
+ run: |
60
+ gem install bundler
61
+ bundle install --jobs 4 --retry 3
62
+
63
+ - name: Test
64
+ run: |
65
+ bundle exec rspec
66
+
67
+ - name: Coveralls Parallel
68
+ uses: coverallsapp/github-action@master
69
+ with:
70
+ github-token: ${{ secrets.GITHUB_TOKEN }}
71
+ parallel: true
72
+ path-to-lcov: ./coverage/lcov.info
73
+
74
+ - name: Coveralls Finished
75
+ uses: coverallsapp/github-action@master
76
+ with:
77
+ github-token: ${{ secrets.GITHUB_TOKEN }}
78
+ parallel-finished: true
data/Appraisals CHANGED
@@ -39,4 +39,8 @@ if RUBY_VERSION >= '2.6.0'
39
39
  appraise 'rails60' do
40
40
  gem 'activerecord', '~> 6.0.0'
41
41
  end
42
+
43
+ appraise 'rails61' do
44
+ gem 'activerecord', '~> 6.1.0'
45
+ end
42
46
  end
@@ -1,5 +1,10 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 0.11.0 (Dec 18, 2020)
4
+
5
+ * Rails 6.1 をサポート (PR [#37](https://github.com/chocoby/jp_prefecture/pull/37)/[@chocoby](https://github.com/chocoby))
6
+ * GitHub Actions でビルドを実行するようにした (PR [#34](https://github.com/chocoby/jp_prefecture/pull/34)/[@chocoby](https://github.com/chocoby))
7
+
3
8
  ## 0.10.0 (Aug 19, 2019)
4
9
 
5
10
  * Rails 6.0 をサポート (PR [#33](https://github.com/chocoby/jp_prefecture/pull/33)/[@chocoby](https://github.com/chocoby))
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [**English**](README_EN.md)
4
4
 
5
5
  [![Gem Version](http://img.shields.io/gem/v/jp_prefecture.svg?style=flat)](https://rubygems.org/gems/jp_prefecture)
6
- [![Build Status](http://img.shields.io/travis/chocoby/jp_prefecture/master.svg?style=flat)](https://travis-ci.org/chocoby/jp_prefecture)
6
+ [![GitHub Actions](https://github.com/chocoby/jp_prefecture/workflows/Build/badge.svg)](https://github.com/chocoby/jp_prefecture)
7
7
  [![Coveralls](https://img.shields.io/coveralls/chocoby/jp_prefecture.svg)](https://coveralls.io/r/chocoby/jp_prefecture)
8
8
 
9
9
  https://rubygems.org/gems/jp_prefecture
@@ -183,8 +183,8 @@ $ gem install jp_prefecture
183
183
 
184
184
  ## サポートしているバージョン
185
185
 
186
- * Ruby: 1.9.3 / 2.0 / 2.1 / 2.2 / 2.3 / 2.4 / 2.5 / 2.6
187
- * Rails: 3.2 / 4.0 / 4.1 / 4.2 / 5.0 / 5.1 / 5.2 / 6.0
186
+ * Ruby: 1.9.3 / 2.0 / 2.1 / 2.2 / 2.3 / 2.4 / 2.5 / 2.6 / 2.7
187
+ * Rails: 3.2 / 4.0 / 4.1 / 4.2 / 5.0 / 5.1 / 5.2 / 6.0 / 6.1
188
188
 
189
189
 
190
190
  ## Contributing
@@ -201,7 +201,7 @@ $ gem install jp_prefecture
201
201
  ```
202
202
  git clone https://github.com/chocoby/jp_prefecture.git
203
203
  cd jp_prefecture
204
- bundle install --path .bundle
204
+ bundle install
205
205
  bundle exec rspec
206
206
  ```
207
207
 
@@ -209,7 +209,7 @@ bundle exec rspec
209
209
 
210
210
  ```
211
211
  bundle exec appraisal install
212
- bundle exec appraisal rake spec
212
+ bundle exec appraisal rspec
213
213
  ```
214
214
 
215
215
 
@@ -1,7 +1,9 @@
1
1
  # JpPrefecture
2
2
 
3
+ [**Japanese**](README.md)
4
+
3
5
  [![Gem Version](http://img.shields.io/gem/v/jp_prefecture.svg?style=flat)](https://rubygems.org/gems/jp_prefecture)
4
- [![Build Status](http://img.shields.io/travis/chocoby/jp_prefecture/master.svg?style=flat)](https://travis-ci.org/chocoby/jp_prefecture)
6
+ [![GitHub Actions](https://github.com/chocoby/jp_prefecture/workflows/Build/badge.svg)](https://github.com/chocoby/jp_prefecture)
5
7
  [![Coveralls](https://img.shields.io/coveralls/chocoby/jp_prefecture.svg)](https://coveralls.io/r/chocoby/jp_prefecture)
6
8
 
7
9
  https://rubygems.org/gems/jp_prefecture
@@ -182,8 +184,8 @@ $ gem install jp_prefecture
182
184
 
183
185
  ## Supports
184
186
 
185
- * Ruby: 1.9.3 / 2.0 / 2.1 / 2.2 / 2.3 / 2.4 / 2.5 / 2.6
186
- * Rails: 3.2 / 4.0 / 4.1 / 4.2 / 5.0 / 5.1 / 5.2 / 6.0
187
+ * Ruby: 1.9.3 / 2.0 / 2.1 / 2.2 / 2.3 / 2.4 / 2.5 / 2.6 / 2.7
188
+ * Rails: 3.2 / 4.0 / 4.1 / 4.2 / 5.0 / 5.1 / 5.2 / 6.0 / 6.1
187
189
 
188
190
 
189
191
  ## Contributing
@@ -200,7 +202,7 @@ $ gem install jp_prefecture
200
202
  ```
201
203
  git clone https://github.com/chocoby/jp_prefecture.git
202
204
  cd jp_prefecture
203
- bundle install --path .bundle
205
+ bundle install
204
206
  bundle exec rspec
205
207
  ```
206
208
 
@@ -208,7 +210,7 @@ Run test in multiple `ActiveRecord` versions
208
210
 
209
211
  ```
210
212
  bundle exec appraisal install
211
- bundle exec appraisal rake spec
213
+ bundle exec appraisal rspec
212
214
  ```
213
215
 
214
216
 
data/Rakefile CHANGED
@@ -2,16 +2,6 @@
2
2
  # coding: utf-8
3
3
  require "bundler/gem_tasks"
4
4
 
5
- task default: [:spec]
6
- begin
7
- require 'rspec/core/rake_task'
8
- RSpec::Core::RakeTask.new(:spec) do |spec|
9
- spec.pattern = 'spec/**/*_spec.rb'
10
- spec.rspec_opts = %w(--format documentation --color)
11
- end
12
- rescue LoadError => e
13
- end
14
-
15
5
  desc 'zip.yml を作成します'
16
6
  task :create_zips do
17
7
  require 'csv'
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 6.1.0"
6
+
7
+ gemspec path: "../"
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.summary = %q{Convert japan prefecture code into prefecture name}
8
8
  gem.description = %q{Convert japan prefecture code(JIS X 0402 based) into prefecture name.}
9
9
  gem.homepage = 'https://github.com/chocoby/jp_prefecture'
10
+ gem.license = 'MIT'
10
11
 
11
12
  gem.files = `git ls-files`.split($\)
12
13
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -17,8 +18,9 @@ Gem::Specification.new do |gem|
17
18
 
18
19
  gem.add_development_dependency 'rake'
19
20
  gem.add_development_dependency 'rspec'
20
- gem.add_development_dependency 'activerecord', '>= 3.2.0'
21
+ gem.add_development_dependency 'activerecord', '>= 4.2.0'
21
22
  gem.add_development_dependency 'sqlite3'
22
- gem.add_development_dependency 'coveralls'
23
+ gem.add_development_dependency 'simplecov'
24
+ gem.add_development_dependency 'simplecov-lcov'
23
25
  gem.add_development_dependency 'appraisal'
24
26
  end
@@ -1,3 +1,3 @@
1
1
  module JpPrefecture
2
- VERSION = '0.10.0'
2
+ VERSION = '0.11.0'
3
3
  end
@@ -1,10 +1,16 @@
1
1
  # coding: utf-8
2
2
  if ENV['CI']
3
- require 'coveralls'
4
- Coveralls.wear!
3
+ require 'simplecov'
4
+ require 'simplecov-lcov'
5
+ SimpleCov::Formatter::LcovFormatter.config do |c|
6
+ c.report_with_single_file = true
7
+ c.single_report_path = "coverage/lcov.info"
8
+ end
9
+ SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
10
+ SimpleCov.start
5
11
  end
6
12
 
7
- require 'jp_prefecture'
13
+ require "jp_prefecture"
8
14
  require "active_record"
9
15
 
10
16
  RSpec.configure do |config|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jp_prefecture
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chocoby
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-19 00:00:00.000000000 Z
11
+ date: 2020-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 3.2.0
47
+ version: 4.2.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 3.2.0
54
+ version: 4.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +67,21 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: coveralls
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov-lcov
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - ">="
@@ -101,9 +115,9 @@ executables: []
101
115
  extensions: []
102
116
  extra_rdoc_files: []
103
117
  files:
118
+ - ".github/workflows/build.yml"
104
119
  - ".gitignore"
105
120
  - ".rspec"
106
- - ".travis.yml"
107
121
  - ".yardopts"
108
122
  - Appraisals
109
123
  - CHANGELOG.md
@@ -122,6 +136,7 @@ files:
122
136
  - gemfiles/rails51.gemfile
123
137
  - gemfiles/rails52.gemfile
124
138
  - gemfiles/rails60.gemfile
139
+ - gemfiles/rails61.gemfile
125
140
  - jp_prefecture.gemspec
126
141
  - lib/jp_prefecture.rb
127
142
  - lib/jp_prefecture/base.rb
@@ -139,9 +154,10 @@ files:
139
154
  - spec/spec_helper.rb
140
155
  - spec/zip_mapping_spec.rb
141
156
  homepage: https://github.com/chocoby/jp_prefecture
142
- licenses: []
157
+ licenses:
158
+ - MIT
143
159
  metadata: {}
144
- post_install_message:
160
+ post_install_message:
145
161
  rdoc_options: []
146
162
  require_paths:
147
163
  - lib
@@ -156,8 +172,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
172
  - !ruby/object:Gem::Version
157
173
  version: '0'
158
174
  requirements: []
159
- rubygems_version: 3.0.1
160
- signing_key:
175
+ rubygems_version: 3.2.2
176
+ signing_key:
161
177
  specification_version: 4
162
178
  summary: Convert japan prefecture code into prefecture name
163
179
  test_files:
@@ -1,33 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
-
5
- branches:
6
- only:
7
- - master
8
-
9
- rvm:
10
- - 2.3
11
- - 2.4
12
- - 2.5
13
- - 2.6
14
-
15
- gemfile:
16
- - gemfiles/rails42.gemfile
17
- - gemfiles/rails50.gemfile
18
- - gemfiles/rails51.gemfile
19
- - gemfiles/rails52.gemfile
20
- - gemfiles/rails60.gemfile
21
-
22
- matrix:
23
- fast_finish: true
24
- exclude:
25
- - gemfile: gemfiles/rails60.gemfile
26
- rvm: 2.3
27
- - gemfile: gemfiles/rails60.gemfile
28
- rvm: 2.4
29
- - gemfile: gemfiles/rails60.gemfile
30
- rvm: 2.5
31
-
32
- notifications:
33
- email: false