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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e309940f9f3a20db8ebab385604d8f7cc207032a
4
- data.tar.gz: 6fbbc3be0bf09a8898313d809e9056c1a1450581
2
+ SHA256:
3
+ metadata.gz: 29c782179ad359db9d98b80ec4d2ec93edfd5738794db5b437fc8683777827bb
4
+ data.tar.gz: cfcd745add6624cb63c7e305455e37d678fd02511986bb9dcaf0afc4ab5e1fac
5
5
  SHA512:
6
- metadata.gz: 3fe5eefc90860a18c5ce77008493bdb9f057c6f1cac8a671834e691fb6b280eb4cc1c0d4756f8ca5b5fcbc0e40c909f50fc0750e8a16f2c1a19c97b2b3159b48
7
- data.tar.gz: b0844af228409392870e474d88a1087bd820a32871fced42e0f5d790ac8cf18c301deca3fc81d6af88427c0f6171fcd3053f1c710f6819205b25f164b548ada5
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.6)
4
+ openjournals-nameable (1.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- codeclimate-test-reporter (1.0.9)
10
- simplecov (<= 0.13)
11
- diff-lcs (1.3)
12
- docile (1.1.5)
13
- json (2.2.0)
14
- rake (12.3.3)
15
- rspec (3.8.0)
16
- rspec-core (~> 3.8.0)
17
- rspec-expectations (~> 3.8.0)
18
- rspec-mocks (~> 3.8.0)
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.8.0)
24
- rspec-mocks (3.8.1)
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.8.0)
27
- rspec-support (3.8.2)
28
- simplecov (0.13.0)
29
- docile (~> 1.1.0)
30
- json (>= 1.8, < 3)
31
- simplecov-html (~> 0.10.0)
32
- simplecov-html (0.10.2)
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.6)
39
+ rspec (~> 3.10)
43
40
  simplecov
44
41
 
45
42
  BUNDLED WITH
46
- 2.0.1
43
+ 2.2.27
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008 Chris Horn http://chorn.com/
1
+ Copyright (c) 2021 The Open Journals
2
2
 
3
3
  MIT License
4
4
 
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://travis-ci.org/chorn/nameable.svg?branch=master)](https://travis-ci.org/chorn/nameable)
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
 
@@ -1,3 +1,3 @@
1
1
  module Nameable
2
- VERSION = '1.1.6'.freeze
2
+ VERSION = '1.1.7'.freeze
3
3
  end
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 = ['chorn@chorn.com']
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/chorn/nameable'
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 = '>= 1.9'
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.6'
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
@@ -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.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Horn
8
- autorequire:
8
+ - Arfon Smith
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2019-08-01 00:00:00.000000000 Z
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.6'
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.6'
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
- - chorn@chorn.com
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
- - ".codeclimate.yml"
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/chorn/nameable
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: '1.9'
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
- rubyforge_project:
141
- rubygems_version: 2.6.11
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
@@ -1,7 +0,0 @@
1
- languages:
2
- Ruby: true
3
- JavaScript: false
4
- PHP: false
5
- exclude_paths:
6
- - "data/app_c.csv"
7
- - "data/yob2093.txt"
data/.rubocop.yml DELETED
@@ -1,17 +0,0 @@
1
-
2
- AllCops:
3
- TargetRubyVersion: 2.2
4
-
5
- Style/Documentation:
6
- Enabled: false
7
-
8
- Style/MethodName:
9
- Exclude:
10
- - lib/nameable/extensions.rb
11
-
12
- Metrics/LineLength:
13
- Max: 132
14
-
15
- Metrics/BlockLength:
16
- Exclude:
17
- - spec/*/**
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=