municipitaly2 2.0.4 → 2.0.5

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: 6d902371314d1cd9ee768b61f9ea0b3b2068725802993273fc369a9e8e155ae9
4
- data.tar.gz: 3791df596b257073b1f9607ef574c102ec3bf398480f4a5982be6f2bcdbd7926
3
+ metadata.gz: b5f242aa4e86895e37a07b2dd7448cc6a63affa93019ce88653ccdfb720d464b
4
+ data.tar.gz: 1a841723aa37345e8010651fb284818e18baa83b04c599a9f043d97ed647e146
5
5
  SHA512:
6
- metadata.gz: d056647d30265de06c3e6750e8ecb3009de4c3cd03e771764fdc8b2592774478fa61988cbc7ea66e740fee3e9ec19258c6b2c05c2321e3deb78f8ef3221fee62
7
- data.tar.gz: f6e9d07aaf5089cd5eb30d677b6360bd628083a02362f32403abfa1996a97eae6cf66067ac8345fcb2c6e857033958f466b7ed8b860d5aeafef156a18670f92d
6
+ metadata.gz: 973a9d71498055176f540226b3a00ccc70d914ad80965f02348740cb370f02855a0f765657ef9d4f2d75989d10e5eac9a59788a63577a0baa195899037ae5d7c
7
+ data.tar.gz: 4b7a3a72913d9dd9657f06db6966e4d358586b787b0a50a558e3f044f96e9df688362fb85d1b2762f7d3bc1c629e2dfdc0d552c44d7bedb9d5831c482ddff7cf
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.0.5] - 2026-11-05
9
+
10
+ - Updated database
11
+ - Province changes: Sardinia was reorganized, so Sassari (`090`), Nuoro (`091`), Cagliari (`092`), Oristano (`095`) and Sud Sardegna (`111`) have new istat codes in the range `112`-`119` (e.g. Alghero is now `112001`, it was `090003`)
12
+ - Municipality changes: Castegnero and Nanto merged into Castegnero Nanto, Lirio merged into Montalto Pavese, Murisengo is now Murisengo Monferrato, Vallecrosia is now Vallecrosia al mare, Tripi is now Tripi - Abakainon
13
+ - Updated gems
14
+ - Improved tool/generate.rb (use `-u` to update sources and `-g` to generate data)
15
+
8
16
  ## [2.0.4] - 2025-09-09
9
17
 
10
18
  - Updated database
data/Gemfile CHANGED
@@ -5,8 +5,8 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in fitbark.gemspec
6
6
  gemspec
7
7
 
8
- gem 'bundler', '~> 2.7'
9
- gem 'rake', '~> 13.3'
8
+ gem 'bundler', '~> 4.0'
9
+ gem 'rake', '~> 13.4'
10
10
  gem 'rspec', '~> 3.13'
11
- gem 'rubocop', '~> 1.80'
12
- gem 'simplecov', '~> 0.22'
11
+ gem 'rubocop', '~> 1.92'
12
+ gem 'simplecov', '~> 1.3'
data/Gemfile.lock CHANGED
@@ -1,77 +1,99 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- municipitaly2 (2.0.4)
5
- csv (~> 3.3.5)
4
+ municipitaly2 (2.0.5)
5
+ csv (>= 3.3.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.3)
11
- csv (3.3.5)
11
+ csv (3.3.7)
12
12
  diff-lcs (1.6.2)
13
- docile (1.4.1)
14
- json (2.13.2)
15
- language_server-protocol (3.17.0.5)
13
+ json (3.1.0)
14
+ language_server-protocol (3.17.0.6)
16
15
  lint_roller (1.1.0)
17
- parallel (1.27.0)
18
- parser (3.3.9.0)
16
+ parallel (2.3.0)
17
+ parser (3.3.13.0)
19
18
  ast (~> 2.4.1)
20
19
  racc
21
- prism (1.4.0)
20
+ prism (1.9.0)
22
21
  racc (1.8.1)
23
22
  rainbow (3.1.1)
24
- rake (13.3.0)
25
- regexp_parser (2.11.2)
26
- rspec (3.13.1)
23
+ rake (13.4.2)
24
+ regexp_parser (2.13.1)
25
+ rspec (3.13.2)
27
26
  rspec-core (~> 3.13.0)
28
27
  rspec-expectations (~> 3.13.0)
29
28
  rspec-mocks (~> 3.13.0)
30
- rspec-core (3.13.5)
29
+ rspec-core (3.13.6)
31
30
  rspec-support (~> 3.13.0)
32
31
  rspec-expectations (3.13.5)
33
32
  diff-lcs (>= 1.2.0, < 2.0)
34
33
  rspec-support (~> 3.13.0)
35
- rspec-mocks (3.13.5)
34
+ rspec-mocks (3.13.8)
36
35
  diff-lcs (>= 1.2.0, < 2.0)
37
36
  rspec-support (~> 3.13.0)
38
- rspec-support (3.13.5)
39
- rubocop (1.80.2)
40
- json (~> 2.3)
37
+ rspec-support (3.13.7)
38
+ rubocop (1.92.2)
39
+ json (>= 2.3)
41
40
  language_server-protocol (~> 3.17.0.2)
42
41
  lint_roller (~> 1.1.0)
43
- parallel (~> 1.10)
42
+ parallel (>= 1.10)
44
43
  parser (>= 3.3.0.2)
45
44
  rainbow (>= 2.2.2, < 4.0)
46
- regexp_parser (>= 2.9.3, < 3.0)
47
- rubocop-ast (>= 1.46.0, < 2.0)
45
+ regexp_parser (>= 2.11.3, < 3.0)
46
+ rubocop-ast (>= 1.49.0, < 2.0)
48
47
  ruby-progressbar (~> 1.7)
49
48
  unicode-display_width (>= 2.4.0, < 4.0)
50
- rubocop-ast (1.46.0)
49
+ rubocop-ast (1.50.0)
51
50
  parser (>= 3.3.7.2)
52
- prism (~> 1.4)
51
+ prism (~> 1.7)
53
52
  ruby-progressbar (1.13.0)
54
- simplecov (0.22.0)
55
- docile (~> 1.1)
56
- simplecov-html (~> 0.11)
57
- simplecov_json_formatter (~> 0.1)
58
- simplecov-html (0.13.2)
59
- simplecov_json_formatter (0.1.4)
60
- unicode-display_width (3.1.5)
61
- unicode-emoji (~> 4.0, >= 4.0.4)
62
- unicode-emoji (4.0.4)
53
+ simplecov (1.3.2)
54
+ unicode-display_width (3.3.0)
55
+ unicode-emoji (~> 4.3)
56
+ unicode-emoji (4.3.0)
63
57
 
64
58
  PLATFORMS
65
59
  ruby
66
60
  x86_64-linux
67
61
 
68
62
  DEPENDENCIES
69
- bundler (~> 2.7)
63
+ bundler (~> 4.0)
70
64
  municipitaly2!
71
- rake (~> 13.3)
65
+ rake (~> 13.4)
72
66
  rspec (~> 3.13)
73
- rubocop (~> 1.80)
74
- simplecov (~> 0.22)
67
+ rubocop (~> 1.92)
68
+ simplecov (~> 1.3)
69
+
70
+ CHECKSUMS
71
+ ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
72
+ bundler (4.0.23) sha256=407ba8a1d928f412847f819aa5f8b6aef7c59fb51feb517112af8a165487287b
73
+ csv (3.3.7) sha256=15a3f16f6628da8664d455eb634e7f22031bcf53044923caf56975109e71b9f8
74
+ diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
75
+ json (3.1.0) sha256=3ce7ccf8fde58960177a3a756c31f292a4c1e1dedee884547096a5b0604e3bd8
76
+ language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
77
+ lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
78
+ municipitaly2 (2.0.5)
79
+ parallel (2.3.0) sha256=f75a3e904101ce6a1ccb6b8dc800cbafd42166d83330192438dcf29395167a6f
80
+ parser (3.3.13.0) sha256=e02f9b63c2fe05b0c68f692ba4df89b3cb113b663964f75d988fbebfd6c3deca
81
+ prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
82
+ racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
83
+ rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
84
+ rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
85
+ regexp_parser (2.13.1) sha256=5aedb6b7c35688f51e86eef17a15374dfd287c83f4ca644b2c5f3ec50a33b44b
86
+ rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
87
+ rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
88
+ rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
89
+ rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
90
+ rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
91
+ rubocop (1.92.2) sha256=14fb31eed143a0dc6f78186c550c1715e81cd38f59d05d1165050e445c1f5382
92
+ rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
93
+ ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
94
+ simplecov (1.3.2) sha256=2a22ec1759f1b8db60881a2e038758956fc69ef93ed669be0bde0678de6d0e85
95
+ unicode-display_width (3.3.0) sha256=4b7aa66a4b11db50f6f7e98411215cd0dd10eaecb665d36eec5bcacb3fa0b613
96
+ unicode-emoji (4.3.0) sha256=11c02fa73290378c066bb0562cd4c87d8e1b706fbbe0059ca12746a4244de8ce
75
97
 
76
98
  BUNDLED WITH
77
- 2.7.2
99
+ 4.0.23
data/README.md CHANGED
@@ -7,7 +7,7 @@ This gem provide various data about 🇮🇹 Italian subdivisions and municipali
7
7
  ## ℹ️️ Informations
8
8
 
9
9
  This gem is a continuation of [Municipitaly by natydev](https://github.com/natydev/municipitaly).
10
- Database is updated up to May 2024 and there are improvements to search.
10
+ Database is updated up to November 2026 and there are improvements to search.
11
11
  Thanks to natydev for the brilliant project.
12
12
 
13
13
  ## 💾 Installation
@@ -254,10 +254,5 @@ The gem is available as open source under the terms of the [MIT License](https:/
254
254
 
255
255
  ## Update database
256
256
 
257
- Check the `tools` folder.
258
- The tool is rought but it gets the job done. Hopefully I will improve it in the future.
259
-
260
- ### Generate vendor/data/municipalities.csv
261
-
262
- Update links in `tools/generate.rb` (and/or data in `tools/data/istat*`) and execute
263
- `./tools/generate.rb`
257
+ Check the beginning of the `tools/generate.rb` file to update the sources. Then execute
258
+ `./tools/generate.rb -u -g` (`-u` downloads the sources, `-g` generates the data; run it without arguments for help).
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Municipitaly2
4
4
  # :nodoc:
5
- VERSION = '2.0.4'
5
+ VERSION = '2.0.5'
6
6
  end
@@ -32,5 +32,6 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.required_ruby_version = '>= 3.0.0'
34
34
 
35
- spec.add_dependency 'csv', '~> 3.3.5' # removed from stdlib in Ruby 3.4
35
+ # keep >= to avoid conflicts
36
+ spec.add_dependency 'csv', '>= 3.3.0' # removed from stdlib in Ruby 3.4
36
37
  end