openjournals-nameable 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/tests.yml +25 -0
- data/Gemfile.lock +23 -26
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/lib/nameable/version.rb +1 -1
- data/nameable.gemspec +6 -12
- data/spec/nameable/latin_spec.rb +4 -0
- metadata +13 -29
- data/.codeclimate.yml +0 -7
- data/.rubocop.yml +0 -17
- data/.travis.yml +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 29c782179ad359db9d98b80ec4d2ec93edfd5738794db5b437fc8683777827bb
|
4
|
+
data.tar.gz: cfcd745add6624cb63c7e305455e37d678fd02511986bb9dcaf0afc4ab5e1fac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63c26f33a83a6e5945bb72f9736fa958d0bf174ae8478681e7e776f6af9767ab3ad1b25cbb45d79a9918a761e9ccd019ae4657fb1d2244d4f7e93f5264ecc9b6
|
7
|
+
data.tar.gz: ce8ad6b51984e4507dae09543634cbb7afc94e94c554c84506a6ef857ffe42958a59671ec047d706f67881dbab44c43199122f7d05d4e8ccc91425ac53c8f501
|
@@ -0,0 +1,25 @@
|
|
1
|
+
name: Tests
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
jobs:
|
5
|
+
test:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
continue-on-error: ${{ matrix.failure-allowed }}
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby-version: ['2.6.8', '2.7.4', '3.0.2']
|
11
|
+
failure-allowed: [false]
|
12
|
+
include:
|
13
|
+
- ruby-version: 'truffleruby'
|
14
|
+
failure-allowed: true
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- name: Set up Ruby
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby-version }}
|
21
|
+
bundler-cache: true
|
22
|
+
- name: Run tests
|
23
|
+
run: |
|
24
|
+
ruby -v
|
25
|
+
bundle exec rspec
|
data/Gemfile.lock
CHANGED
@@ -1,46 +1,43 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
openjournals-nameable (1.1.
|
4
|
+
openjournals-nameable (1.1.7)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
rspec-
|
18
|
-
|
19
|
-
rspec-core (3.8.2)
|
20
|
-
rspec-support (~> 3.8.0)
|
21
|
-
rspec-expectations (3.8.4)
|
9
|
+
diff-lcs (1.4.4)
|
10
|
+
docile (1.4.0)
|
11
|
+
rake (13.0.6)
|
12
|
+
rspec (3.10.0)
|
13
|
+
rspec-core (~> 3.10.0)
|
14
|
+
rspec-expectations (~> 3.10.0)
|
15
|
+
rspec-mocks (~> 3.10.0)
|
16
|
+
rspec-core (3.10.1)
|
17
|
+
rspec-support (~> 3.10.0)
|
18
|
+
rspec-expectations (3.10.1)
|
22
19
|
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
-
rspec-support (~> 3.
|
24
|
-
rspec-mocks (3.
|
20
|
+
rspec-support (~> 3.10.0)
|
21
|
+
rspec-mocks (3.10.2)
|
25
22
|
diff-lcs (>= 1.2.0, < 2.0)
|
26
|
-
rspec-support (~> 3.
|
27
|
-
rspec-support (3.
|
28
|
-
simplecov (0.
|
29
|
-
docile (~> 1.1
|
30
|
-
|
31
|
-
|
32
|
-
simplecov-html (0.
|
23
|
+
rspec-support (~> 3.10.0)
|
24
|
+
rspec-support (3.10.2)
|
25
|
+
simplecov (0.21.2)
|
26
|
+
docile (~> 1.1)
|
27
|
+
simplecov-html (~> 0.11)
|
28
|
+
simplecov_json_formatter (~> 0.1)
|
29
|
+
simplecov-html (0.12.3)
|
30
|
+
simplecov_json_formatter (0.1.3)
|
33
31
|
|
34
32
|
PLATFORMS
|
35
33
|
ruby
|
36
34
|
|
37
35
|
DEPENDENCIES
|
38
36
|
bundler
|
39
|
-
codeclimate-test-reporter
|
40
37
|
openjournals-nameable!
|
41
38
|
rake
|
42
|
-
rspec (~> 3.
|
39
|
+
rspec (~> 3.10)
|
43
40
|
simplecov
|
44
41
|
|
45
42
|
BUNDLED WITH
|
46
|
-
2.
|
43
|
+
2.2.27
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# nameable
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/nameable.svg)](http://badge.fury.io/rb/nameable)
|
4
|
-
[![Build Status](https://
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/openjournals-nameable.svg)](http://badge.fury.io/rb/nameable)
|
4
|
+
[![Build Status](https://github.com/openjournals/nameable/actions/workflows/tests.yml/badge.svg)](https://github.com/openjournals/nameable/actions/workflows/tests.yml)
|
5
5
|
|
6
6
|
A library that provides parsing and normalization of people's names.
|
7
7
|
|
data/lib/nameable/version.rb
CHANGED
data/nameable.gemspec
CHANGED
@@ -7,27 +7,21 @@ require 'nameable/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'openjournals-nameable'
|
9
9
|
spec.version = Nameable::VERSION
|
10
|
-
spec.authors = ['Chris Horn']
|
11
|
-
spec.email = ['
|
10
|
+
spec.authors = ['Chris Horn', 'Arfon Smith']
|
11
|
+
spec.email = ['arfon.smith@gmail.com']
|
12
|
+
|
12
13
|
spec.summary = 'Parse names into components.'
|
13
14
|
spec.description = 'A library that provides parsing and output of person names, as well as Gender & Ethnicity matching.'
|
14
|
-
spec.homepage = 'https://github.com/
|
15
|
+
spec.homepage = 'https://github.com/openjournals/nameable'
|
15
16
|
spec.license = 'MIT'
|
16
17
|
spec.files = `git ls-files -z`.split("\x0")
|
17
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
20
|
spec.require_paths = ['lib']
|
20
|
-
spec.required_ruby_version = '>=
|
21
|
-
|
22
|
-
signing_key = File.expand_path '~/.certs/chorn@chorn.com-rubygems.key'
|
23
|
-
if File.file?(signing_key)
|
24
|
-
spec.signing_key = signing_key
|
25
|
-
spec.cert_chain = ['certs/chorn.pem']
|
26
|
-
end
|
21
|
+
spec.required_ruby_version = '>= 2.5'
|
27
22
|
|
28
23
|
spec.add_development_dependency 'bundler'
|
29
24
|
spec.add_development_dependency 'rake'
|
30
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
25
|
+
spec.add_development_dependency 'rspec', '~> 3.10'
|
31
26
|
spec.add_development_dependency 'simplecov'
|
32
|
-
spec.add_development_dependency 'codeclimate-test-reporter'
|
33
27
|
end
|
data/spec/nameable/latin_spec.rb
CHANGED
@@ -157,6 +157,10 @@ describe Nameable::Latin do
|
|
157
157
|
it_behaves_like :generalized_parsing, 'Dr. Bram van Ginneken DRP', ['Dr.', 'Bram', nil, 'van Ginneken', 'DRP']
|
158
158
|
end
|
159
159
|
|
160
|
+
context 'with Van (capitalized) Something last name' do
|
161
|
+
it_behaves_like :generalized_parsing, 'Dr. Bram Van Ginneken DRP', ['Dr.', 'Bram', nil, 'Van Ginneken', 'DRP']
|
162
|
+
end
|
163
|
+
|
160
164
|
context "with an o'last-name" do
|
161
165
|
["O'Horn", 'O`Horn', "O' Horn"].each do |last|
|
162
166
|
it_behaves_like :generalized_parsing, "Chris #{last}", [nil, 'Chris', nil, "O'Horn", nil]
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openjournals-nameable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Horn
|
8
|
-
|
8
|
+
- Arfon Smith
|
9
|
+
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2021-10-28 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
@@ -44,14 +45,14 @@ dependencies:
|
|
44
45
|
requirements:
|
45
46
|
- - "~>"
|
46
47
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
48
|
+
version: '3.10'
|
48
49
|
type: :development
|
49
50
|
prerelease: false
|
50
51
|
version_requirements: !ruby/object:Gem::Requirement
|
51
52
|
requirements:
|
52
53
|
- - "~>"
|
53
54
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
55
|
+
version: '3.10'
|
55
56
|
- !ruby/object:Gem::Dependency
|
56
57
|
name: simplecov
|
57
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,33 +67,17 @@ dependencies:
|
|
66
67
|
- - ">="
|
67
68
|
- !ruby/object:Gem::Version
|
68
69
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: codeclimate-test-reporter
|
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
70
|
description: A library that provides parsing and output of person names, as well as
|
84
71
|
Gender & Ethnicity matching.
|
85
72
|
email:
|
86
|
-
-
|
73
|
+
- arfon.smith@gmail.com
|
87
74
|
executables:
|
88
75
|
- nameable_web_service
|
89
76
|
extensions: []
|
90
77
|
extra_rdoc_files: []
|
91
78
|
files:
|
92
|
-
- ".
|
79
|
+
- ".github/workflows/tests.yml"
|
93
80
|
- ".gitignore"
|
94
|
-
- ".rubocop.yml"
|
95
|
-
- ".travis.yml"
|
96
81
|
- Gemfile
|
97
82
|
- Gemfile.lock
|
98
83
|
- LICENSE.txt
|
@@ -118,11 +103,11 @@ files:
|
|
118
103
|
- spec/nameable/latin_spec.rb
|
119
104
|
- spec/nameable_spec.rb
|
120
105
|
- spec/spec_helper.rb
|
121
|
-
homepage: https://github.com/
|
106
|
+
homepage: https://github.com/openjournals/nameable
|
122
107
|
licenses:
|
123
108
|
- MIT
|
124
109
|
metadata: {}
|
125
|
-
post_install_message:
|
110
|
+
post_install_message:
|
126
111
|
rdoc_options: []
|
127
112
|
require_paths:
|
128
113
|
- lib
|
@@ -130,16 +115,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
115
|
requirements:
|
131
116
|
- - ">="
|
132
117
|
- !ruby/object:Gem::Version
|
133
|
-
version: '
|
118
|
+
version: '2.5'
|
134
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
120
|
requirements:
|
136
121
|
- - ">="
|
137
122
|
- !ruby/object:Gem::Version
|
138
123
|
version: '0'
|
139
124
|
requirements: []
|
140
|
-
|
141
|
-
|
142
|
-
signing_key:
|
125
|
+
rubygems_version: 3.2.22
|
126
|
+
signing_key:
|
143
127
|
specification_version: 4
|
144
128
|
summary: Parse names into components.
|
145
129
|
test_files:
|
data/.codeclimate.yml
DELETED
data/.rubocop.yml
DELETED
data/.travis.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
script: bundle exec rspec
|
4
|
-
rvm:
|
5
|
-
- 1.9.3-p551
|
6
|
-
- 2.0.0-p648
|
7
|
-
- 2.1.10
|
8
|
-
- 2.2.7
|
9
|
-
- 2.3.0
|
10
|
-
- 2.3.4
|
11
|
-
- 2.4.0
|
12
|
-
- 2.4.1
|
13
|
-
dd:
|
14
|
-
secure: fzItORKaVrevTjQQu85FYgqgSVkRGG8PtOfNTCYY0meyP1+hF/lH6i5ZAb35VAuwi9InqaYnPx09dREBlfEqkzY/Ypxglq+EosAfqOgiKFu44JlM4vhxSdwn2mywCJpYZ0IbH5OnkF6rUULL/AoRQPlIV77eRqhB9LGfLNlYMfU=
|