countries 5.7.0 → 5.7.1
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/lib/countries/cache/countries.json +1 -1
- data/lib/countries/data/countries/PS.yaml +2 -0
- data/lib/countries/data/subdivisions/IR.yaml +1 -1
- data/lib/countries/version.rb +1 -1
- metadata +2 -28
- data/.codeclimate.yml +0 -61
- data/.github/FUNDING.yml +0 -1
- data/.github/workflows/codeql-analysis.yml +0 -70
- data/.github/workflows/tests.yml +0 -32
- data/.gitignore +0 -25
- data/.rspec +0 -2
- data/.rubocop.yml +0 -49
- data/CHANGELOG.md +0 -776
- data/Gemfile +0 -15
- data/Gemfile.lock +0 -102
- data/LICENSE +0 -24
- data/README.md +0 -404
- data/Rakefile +0 -62
- data/UPGRADE.md +0 -39
- data/bin/console +0 -15
- data/countries.gemspec +0 -31
- data/spec/00_global_spec.rb +0 -58
- data/spec/configuration_spec.rb +0 -60
- data/spec/country_spec.rb +0 -1327
- data/spec/data_spec.rb +0 -260
- data/spec/mongoid_spec.rb +0 -61
- data/spec/perf_spec.rb +0 -74
- data/spec/spec_helper.rb +0 -19
- data/spec/subdivision_spec.rb +0 -42
- data/spec/thread_safety_spec.rb +0 -47
- data/spec/timezone_spec.rb +0 -34
data/lib/countries/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: countries
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.7.
|
|
4
|
+
version: 5.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Robinson
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2023-
|
|
14
|
+
date: 2023-12-07 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: unaccent
|
|
@@ -93,22 +93,6 @@ executables: []
|
|
|
93
93
|
extensions: []
|
|
94
94
|
extra_rdoc_files: []
|
|
95
95
|
files:
|
|
96
|
-
- ".codeclimate.yml"
|
|
97
|
-
- ".github/FUNDING.yml"
|
|
98
|
-
- ".github/workflows/codeql-analysis.yml"
|
|
99
|
-
- ".github/workflows/tests.yml"
|
|
100
|
-
- ".gitignore"
|
|
101
|
-
- ".rspec"
|
|
102
|
-
- ".rubocop.yml"
|
|
103
|
-
- CHANGELOG.md
|
|
104
|
-
- Gemfile
|
|
105
|
-
- Gemfile.lock
|
|
106
|
-
- LICENSE
|
|
107
|
-
- README.md
|
|
108
|
-
- Rakefile
|
|
109
|
-
- UPGRADE.md
|
|
110
|
-
- bin/console
|
|
111
|
-
- countries.gemspec
|
|
112
96
|
- lib/countries.rb
|
|
113
97
|
- lib/countries/cache/countries.json
|
|
114
98
|
- lib/countries/cache/locales/ab.json
|
|
@@ -847,16 +831,6 @@ files:
|
|
|
847
831
|
- lib/countries/timezones.rb
|
|
848
832
|
- lib/countries/translations.rb
|
|
849
833
|
- lib/countries/version.rb
|
|
850
|
-
- spec/00_global_spec.rb
|
|
851
|
-
- spec/configuration_spec.rb
|
|
852
|
-
- spec/country_spec.rb
|
|
853
|
-
- spec/data_spec.rb
|
|
854
|
-
- spec/mongoid_spec.rb
|
|
855
|
-
- spec/perf_spec.rb
|
|
856
|
-
- spec/spec_helper.rb
|
|
857
|
-
- spec/subdivision_spec.rb
|
|
858
|
-
- spec/thread_safety_spec.rb
|
|
859
|
-
- spec/timezone_spec.rb
|
|
860
834
|
homepage: https://github.com/countries/countries
|
|
861
835
|
licenses:
|
|
862
836
|
- MIT
|
data/.codeclimate.yml
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
version: "2"
|
|
2
|
-
checks:
|
|
3
|
-
argument-count:
|
|
4
|
-
enabled: true
|
|
5
|
-
config:
|
|
6
|
-
threshold: 4
|
|
7
|
-
complex-logic:
|
|
8
|
-
enabled: true
|
|
9
|
-
config:
|
|
10
|
-
threshold: 4
|
|
11
|
-
file-lines:
|
|
12
|
-
enabled: true
|
|
13
|
-
config:
|
|
14
|
-
threshold: 250
|
|
15
|
-
method-complexity:
|
|
16
|
-
enabled: true
|
|
17
|
-
config:
|
|
18
|
-
threshold: 5
|
|
19
|
-
method-count:
|
|
20
|
-
enabled: true
|
|
21
|
-
config:
|
|
22
|
-
threshold: 20
|
|
23
|
-
method-lines:
|
|
24
|
-
enabled: true
|
|
25
|
-
config:
|
|
26
|
-
threshold: 25
|
|
27
|
-
nested-control-flow:
|
|
28
|
-
enabled: true
|
|
29
|
-
config:
|
|
30
|
-
threshold: 4
|
|
31
|
-
return-statements:
|
|
32
|
-
enabled: true
|
|
33
|
-
config:
|
|
34
|
-
threshold: 4
|
|
35
|
-
plugins:
|
|
36
|
-
rubocop:
|
|
37
|
-
enabled: true
|
|
38
|
-
channel: rubocop-1-48-1
|
|
39
|
-
reek:
|
|
40
|
-
enabled: true
|
|
41
|
-
checks:
|
|
42
|
-
IrresponsibleModule:
|
|
43
|
-
enabled: false
|
|
44
|
-
TooManyStatements:
|
|
45
|
-
max_statements: 7
|
|
46
|
-
flog:
|
|
47
|
-
enabled: true
|
|
48
|
-
bundler-audit:
|
|
49
|
-
enabled: true
|
|
50
|
-
exclude_patterns:
|
|
51
|
-
- "config/"
|
|
52
|
-
- "db/"
|
|
53
|
-
- "dist/"
|
|
54
|
-
- "features/"
|
|
55
|
-
- "**/node_modules/"
|
|
56
|
-
- "script/"
|
|
57
|
-
- "**/spec/"
|
|
58
|
-
- "**/test/"
|
|
59
|
-
- "**/tests/"
|
|
60
|
-
- "**/vendor/"
|
|
61
|
-
- "**/*.d.ts"
|
data/.github/FUNDING.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
github: pmor
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
-
# to commit it to your repository.
|
|
3
|
-
#
|
|
4
|
-
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
-
# or to provide custom queries or build logic.
|
|
6
|
-
#
|
|
7
|
-
# ******** NOTE ********
|
|
8
|
-
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
-
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
-
# supported CodeQL languages.
|
|
11
|
-
#
|
|
12
|
-
name: "CodeQL"
|
|
13
|
-
|
|
14
|
-
on:
|
|
15
|
-
push:
|
|
16
|
-
branches: [ master ]
|
|
17
|
-
pull_request:
|
|
18
|
-
# The branches below must be a subset of the branches above
|
|
19
|
-
branches: [ master ]
|
|
20
|
-
schedule:
|
|
21
|
-
- cron: '19 13 * * 5'
|
|
22
|
-
|
|
23
|
-
jobs:
|
|
24
|
-
analyze:
|
|
25
|
-
name: Analyze
|
|
26
|
-
runs-on: ubuntu-latest
|
|
27
|
-
permissions:
|
|
28
|
-
actions: read
|
|
29
|
-
contents: read
|
|
30
|
-
security-events: write
|
|
31
|
-
|
|
32
|
-
strategy:
|
|
33
|
-
fail-fast: false
|
|
34
|
-
matrix:
|
|
35
|
-
language: [ 'ruby' ]
|
|
36
|
-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
37
|
-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
|
38
|
-
|
|
39
|
-
steps:
|
|
40
|
-
- name: Checkout repository
|
|
41
|
-
uses: actions/checkout@v3
|
|
42
|
-
|
|
43
|
-
# Initializes the CodeQL tools for scanning.
|
|
44
|
-
- name: Initialize CodeQL
|
|
45
|
-
uses: github/codeql-action/init@v2
|
|
46
|
-
with:
|
|
47
|
-
languages: ${{ matrix.language }}
|
|
48
|
-
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
49
|
-
# By default, queries listed here will override any specified in a config file.
|
|
50
|
-
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
51
|
-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
|
52
|
-
|
|
53
|
-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
54
|
-
# If this step fails, then you should remove it and run the build manually (see below)
|
|
55
|
-
- name: Autobuild
|
|
56
|
-
uses: github/codeql-action/autobuild@v2
|
|
57
|
-
|
|
58
|
-
# ℹ️ Command-line programs to run using the OS shell.
|
|
59
|
-
# 📚 https://git.io/JvXDl
|
|
60
|
-
|
|
61
|
-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
|
62
|
-
# and modify them (or add more) to build your code if your project
|
|
63
|
-
# uses a compiled language
|
|
64
|
-
|
|
65
|
-
#- run: |
|
|
66
|
-
# make bootstrap
|
|
67
|
-
# make release
|
|
68
|
-
|
|
69
|
-
- name: Perform CodeQL Analysis
|
|
70
|
-
uses: github/codeql-action/analyze@v2
|
data/.github/workflows/tests.yml
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
name: Tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
paths-ignore:
|
|
6
|
-
- 'README.md'
|
|
7
|
-
- 'CHANGELOG.md'
|
|
8
|
-
push:
|
|
9
|
-
paths-ignore:
|
|
10
|
-
- 'README.md'
|
|
11
|
-
- 'CHANGELOG.md'
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
test:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
strategy:
|
|
17
|
-
fail-fast: false
|
|
18
|
-
matrix:
|
|
19
|
-
ruby: [2.7, '3.0', 3.1, 3.2]
|
|
20
|
-
env:
|
|
21
|
-
CC_TEST_REPORTER_ID: 1670b97bb8c09d4f4bad81e559f41c7588641c67bd700c933c267bbe7dbbef7f
|
|
22
|
-
steps:
|
|
23
|
-
- uses: actions/checkout@v3
|
|
24
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
25
|
-
uses: ruby/setup-ruby@v1
|
|
26
|
-
with:
|
|
27
|
-
ruby-version: ${{ matrix.ruby }}
|
|
28
|
-
bundler-cache: true
|
|
29
|
-
- name: Run tests
|
|
30
|
-
run: bundle exec rake
|
|
31
|
-
- name: Publish code coverage
|
|
32
|
-
uses: paambaati/codeclimate-action@v4.0.0
|
data/.gitignore
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
*.gem
|
|
2
|
-
*.rbc
|
|
3
|
-
*.swp
|
|
4
|
-
*.swo
|
|
5
|
-
.bundle
|
|
6
|
-
.config
|
|
7
|
-
.yardoc
|
|
8
|
-
InstalledFiles
|
|
9
|
-
_yardoc
|
|
10
|
-
coverage
|
|
11
|
-
doc/
|
|
12
|
-
lib/bundler/man
|
|
13
|
-
pkg
|
|
14
|
-
rdoc
|
|
15
|
-
spec/reports
|
|
16
|
-
test/tmp
|
|
17
|
-
test/version_tmp
|
|
18
|
-
tmp
|
|
19
|
-
.ruby-version
|
|
20
|
-
.ruby-gemset
|
|
21
|
-
.idea/
|
|
22
|
-
Gemfile.lock
|
|
23
|
-
bin/rspec
|
|
24
|
-
examples.txt
|
|
25
|
-
/.rbenv-gemsets
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
AllCops:
|
|
3
|
-
NewCops: enable
|
|
4
|
-
TargetRubyVersion: 2.7
|
|
5
|
-
|
|
6
|
-
Layout/LineLength:
|
|
7
|
-
Max: 120
|
|
8
|
-
AllowedPatterns: ['^ *# ']
|
|
9
|
-
Exclude:
|
|
10
|
-
- countries.gemspec
|
|
11
|
-
- 'spec/**/*'
|
|
12
|
-
|
|
13
|
-
Metrics/MethodLength:
|
|
14
|
-
Enabled: false
|
|
15
|
-
|
|
16
|
-
Style/Documentation:
|
|
17
|
-
Enabled: false
|
|
18
|
-
|
|
19
|
-
Bundler/OrderedGems:
|
|
20
|
-
Enabled: false
|
|
21
|
-
|
|
22
|
-
Metrics/BlockLength:
|
|
23
|
-
Exclude:
|
|
24
|
-
- 'spec/**/*'
|
|
25
|
-
- Rakefile
|
|
26
|
-
- 'lib/countries/tasks/*'
|
|
27
|
-
|
|
28
|
-
Style/CaseEquality:
|
|
29
|
-
Exclude:
|
|
30
|
-
- 'lib/countries/country/finder_methods.rb'
|
|
31
|
-
|
|
32
|
-
Style/IfUnlessModifier:
|
|
33
|
-
Exclude:
|
|
34
|
-
- 'spec/thread_safety_spec.rb'
|
|
35
|
-
|
|
36
|
-
Naming/MethodName:
|
|
37
|
-
Exclude:
|
|
38
|
-
- 'lib/countries/country/class_methods.rb'
|
|
39
|
-
|
|
40
|
-
Lint/AmbiguousBlockAssociation:
|
|
41
|
-
Exclude:
|
|
42
|
-
- 'spec/perf_spec.rb'
|
|
43
|
-
|
|
44
|
-
Metrics/ClassLength:
|
|
45
|
-
Max: 130
|
|
46
|
-
|
|
47
|
-
Metrics/AbcSize:
|
|
48
|
-
Exclude:
|
|
49
|
-
- 'lib/countries/sources/cldr/*'
|