municipitaly 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +9 -5
- data/lib/municipitaly/version.rb +1 -1
- data/vendor/data/municipalities.csv +7 -17
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24fedc34bc956278bced1f028e4a3e799521e9799589e07e9bdf99bfbc929d9d
|
4
|
+
data.tar.gz: 184216b1d21ec759ee14cea67205c2766b7cdee383fb45571f31520e72ae403b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc8a21153c609f7e3e896058fa8113ca0e3c380c873514614e1e866ecde75eb85a64c4b9246787777f67421399303dd9e7c5821c4ba987a679ee3fef843480d
|
7
|
+
data.tar.gz: a51ba9a078bb41ca8ee2d4d47c34ea3e5b4ef5ec89030c63c2037277316114875e8988548254ed77593a2604b1ea789b389e90535bb1759128b4d312271be997
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# 🗄 Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
|
9
|
+
## [0.1.0] - 2020-02-13
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Update municipalities data according to latest ISTAT changes (jan 2020)
|
14
|
+
|
15
|
+
|
16
|
+
## [0.0.3] - 2020-02-10
|
17
|
+
|
18
|
+
### Added
|
19
|
+
|
20
|
+
- The optional parameter *greedy* in `Municipitaly::Search.municipalities_from_name`
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
This gem provide various data about 🇮🇹 Italian subdivisions and municipalities. As well the entire updated list of provinces, regions and municipalities names, it provide useful codes (📯 postal code(s), 🌐 [ISTAT](https://www.istat.it/en/) codes, cadastrial code, population, ...).
|
5
5
|
|
6
|
-
## Installation
|
6
|
+
## 💾 Installation
|
7
7
|
|
8
8
|
Add this line to your application's Gemfile:
|
9
9
|
|
@@ -19,7 +19,7 @@ Or install it yourself as:
|
|
19
19
|
|
20
20
|
$ gem install municipitaly
|
21
21
|
|
22
|
-
## Scenic
|
22
|
+
## 👁 Scenic
|
23
23
|
|
24
24
|
These entities are present, subpoints are data attributes:
|
25
25
|
|
@@ -41,7 +41,7 @@ These entities are present, subpoints are data attributes:
|
|
41
41
|
* population
|
42
42
|
|
43
43
|
|
44
|
-
## Usage and examples
|
44
|
+
## 🛠 Usage and examples
|
45
45
|
|
46
46
|
|
47
47
|
The **Municipitaly::Search** is the principal class used to search entities.
|
@@ -167,7 +167,11 @@ Complete list of available class and instance methods are documented inside code
|
|
167
167
|
Clone locally this repository and run
|
168
168
|
`bundle exec rdoc` to produce complete documentation inside your local directory.
|
169
169
|
|
170
|
-
##
|
170
|
+
## 🗄 Changelog
|
171
|
+
|
172
|
+
Complete list in [this section](CHANGELOG.md)
|
173
|
+
|
174
|
+
## 🤝 Contributing
|
171
175
|
|
172
176
|
Fells free to improve or suggest new features/ideas.
|
173
177
|
Bug reports and pull requests are welcome on GitHub at https://github.com/natydev/municipitaly. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
@@ -187,6 +191,6 @@ Steps to submit your code:
|
|
187
191
|
3. Commit your code following Github guidelines.
|
188
192
|
4. Make a PR with an exhaustive description.
|
189
193
|
|
190
|
-
## License
|
194
|
+
## 📃 License
|
191
195
|
|
192
196
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/municipitaly/version.rb
CHANGED
@@ -887,7 +887,7 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
887
887
|
006,Casasco,041,B941,15050,124
|
888
888
|
006,Cassine,043,C027,15016,3048
|
889
889
|
006,Cassinelle,044,C030,15070,937
|
890
|
-
006,Castellania,045,C137,15051,91
|
890
|
+
006,Castellania Coppi,045,C137,15051,91
|
891
891
|
006,Castellar Guidobono,046,C142,15050,427
|
892
892
|
006,Castellazzo Bormida,047,C148,15073,4566
|
893
893
|
006,Castelletto d'Erro,048,C156,15010,150
|
@@ -2235,7 +2235,7 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
2235
2235
|
017,Prevalle,155,H055,25080,6816
|
2236
2236
|
017,Provaglio d'Iseo,156,H078,25050,7136
|
2237
2237
|
017,Provaglio Val Sabbia,157,H077,25070,966
|
2238
|
-
017,Puegnago
|
2238
|
+
017,Puegnago del Garda,158,H086,25080,3263
|
2239
2239
|
017,Quinzano d'Oglio,159,H140,25027,6390
|
2240
2240
|
017,Remedello,160,H230,25010,3387
|
2241
2241
|
017,Rezzato,161,H256,25086,12933
|
@@ -2779,9 +2779,7 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
2779
2779
|
022,Borgo Valsugana,022,B006,38051,6826
|
2780
2780
|
022,Brentonico,025,B153,38060,3882
|
2781
2781
|
022,Bresimo,026,B158,38020,254
|
2782
|
-
022,Brez,027,B165,38021,706
|
2783
2782
|
022,Caderzone Terme,029,B335,38080,669
|
2784
|
-
022,Cagnò,030,B360,38028,360
|
2785
2783
|
022,Calceranica al Lago,032,B389,38050,1305
|
2786
2784
|
022,Caldes,033,B400,38022,1090
|
2787
2785
|
022,Caldonazzo,034,B404,38052,3340
|
@@ -2791,11 +2789,9 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
2791
2789
|
022,Canal San Bovo,038,B577,38050,1592
|
2792
2790
|
022,Canazei,039,B579,38032,1907
|
2793
2791
|
022,Capriana,040,B697,38030,605
|
2794
|
-
022,Carano,041,B723,38033,1073
|
2795
2792
|
022,Carisolo,042,B783,38080,984
|
2796
2793
|
022,Carzano,043,B856,38050,505
|
2797
2794
|
022,Castel Condino,045,C183,38082,238
|
2798
|
-
022,Castelfondo,046,C103,38020,632
|
2799
2795
|
022,Castello-Molina di Fiemme,047,C189,38030,2267
|
2800
2796
|
022,Castello Tesino,048,C194,38053,1315
|
2801
2797
|
022,Castelnuovo,049,C216,38050,1035
|
@@ -2809,20 +2805,16 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
2809
2805
|
022,Cis,060,C727,38020,309
|
2810
2806
|
022,Civezzano,061,C756,38045,3904
|
2811
2807
|
022,Cles,062,C794,38023,6769
|
2812
|
-
022,Cloz,063,C797,38020,729
|
2813
2808
|
022,Commezzadura,064,C931,38020,993
|
2814
2809
|
022,Croviana,068,D188,38027,693
|
2815
|
-
022,Daiano,070,D243,38030,692
|
2816
2810
|
022,Dambel,071,D246,38010,435
|
2817
2811
|
022,Denno,074,D273,38010,1252
|
2818
2812
|
022,Drena,078,D365,38074,551
|
2819
2813
|
022,Dro,079,D371,38074,4566
|
2820
|
-
022,Faedo,080,D457,38010,610
|
2821
2814
|
022,Fai della Paganella,081,D468,38010,898
|
2822
2815
|
022,Fiavè,083,D565,38075,1098
|
2823
2816
|
022,Fierozzo,085,D573,38050,481
|
2824
2817
|
022,Folgaria,087,D651,38064,3130
|
2825
|
-
022,Fondo,088,D663,38013,1435
|
2826
2818
|
022,Fornace,089,D714,38040,1321
|
2827
2819
|
022,Frassilongo,090,D775,38050,321
|
2828
2820
|
022,Garniga Terme,091,D928,38060,381
|
@@ -2838,7 +2830,6 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
2838
2830
|
022,Lona-Lases,108,E664,38040,876
|
2839
2831
|
022,Luserna,109,E757,38040,279
|
2840
2832
|
022,Malé,110,E850,38027,2135
|
2841
|
-
022,Malosco,111,E866,38013,445
|
2842
2833
|
022,Massimeno,112,F045,38086,124
|
2843
2834
|
022,Mazzin,113,F068,38030,494
|
2844
2835
|
022,Mezzana,114,F168,38020,884
|
@@ -2866,9 +2857,7 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
2866
2857
|
022,Pomarolo,144,G808,38060,2355
|
2867
2858
|
022,Predazzo,147,H018,38037,4531
|
2868
2859
|
022,Rabbi,150,H146,38020,1400
|
2869
|
-
022,Revò,152,H254,38028,1265
|
2870
2860
|
022,Riva del Garda,153,H330,38066,15838
|
2871
|
-
022,Romallo,154,H506,38028,604
|
2872
2861
|
022,Romeno,155,H517,38010,1374
|
2873
2862
|
022,Roncegno Terme,156,H528,38050,2814
|
2874
2863
|
022,Ronchi Valsugana,157,H532,38050,421
|
@@ -2879,7 +2868,7 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
2879
2868
|
022,Rumo,163,H639,38020,822
|
2880
2869
|
022,Sagron Mis,164,H666,38050,183
|
2881
2870
|
022,Samone,165,H754,38059,544
|
2882
|
-
022,San Michele all'Adige,167,I042,38010,
|
2871
|
+
022,San Michele all'Adige,167,I042,38010,3521
|
2883
2872
|
022,Sant'Orsola Terme,168,I354,38050,1073
|
2884
2873
|
022,Sanzeno,169,I411,38010,928
|
2885
2874
|
022,Sarnonico,170,I439,38011,749
|
@@ -2908,7 +2897,6 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
2908
2897
|
022,Trento,205,L378,38121 38122 38123,114198
|
2909
2898
|
022,Valfloriana,209,L575,38040,530
|
2910
2899
|
022,Vallarsa,210,L588,38060,1343
|
2911
|
-
022,Varena,211,L678,38030,845
|
2912
2900
|
022,Vermiglio,213,L769,38029,1869
|
2913
2901
|
022,Vignola-Falesina,216,L886,38057,162
|
2914
2902
|
022,Villa Lagarina,222,L957,38060,3692
|
@@ -2938,6 +2926,9 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
2938
2926
|
022,Ville d'Anaunia,249,M363,38019,4902
|
2939
2927
|
022,San Giovanni di Fassa,250,M390,38036,3345
|
2940
2928
|
022,Terre d'Adige,251,M407,38097,3011
|
2929
|
+
022,Borgo d'Anaunia,252,M429,38013 38020,2512
|
2930
|
+
022,Novella,253,M430,38021 38028 38020,3664
|
2931
|
+
022,Ville di Fiemme,254,M431,38033 38030,2610
|
2941
2932
|
023,Affi,001,A061,37010,2297
|
2942
2933
|
023,Albaredo d'Adige,002,A137,37041,5232
|
2943
2934
|
023,Angiari,003,A292,37050,2164
|
@@ -7380,7 +7371,7 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
7380
7371
|
097,Barzago,005,A683,23890,2577
|
7381
7372
|
097,Barzanò,006,A686,23891,5171
|
7382
7373
|
097,Barzio,007,A687,23816,1297
|
7383
|
-
097,Bellano,008,A745,23822,
|
7374
|
+
097,Bellano,008,A745,23822,3583
|
7384
7375
|
097,Bosisio Parini,009,B081,23842,3504
|
7385
7376
|
097,Brivio,010,B194,23883,4686
|
7386
7377
|
097,Bulciago,011,B261,23892,2948
|
@@ -7452,7 +7443,6 @@ province_istat,name,partial_istat,cadastrial_code,postal_codes,population
|
|
7452
7443
|
097,Valgreghentino,082,L581,23857,3410
|
7453
7444
|
097,Valmadrera,083,L634,23868,11612
|
7454
7445
|
097,Varenna,084,L680,23829,765
|
7455
|
-
097,Vendrogno,085,L731,23838,319
|
7456
7446
|
097,Vercurago,086,L751,23808,2833
|
7457
7447
|
097,Viganò,090,L866,23897,2012
|
7458
7448
|
097,Verderio,091,M337,23879,5659
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: municipitaly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NatyDev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- ".rspec"
|
79
79
|
- ".rubocop.yml"
|
80
80
|
- ".travis.yml"
|
81
|
+
- CHANGELOG.md
|
81
82
|
- CODE_OF_CONDUCT.md
|
82
83
|
- Gemfile
|
83
84
|
- Gemfile.lock
|