municipitaly 0.0.2 → 0.4.0

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
2
  SHA256:
3
- metadata.gz: be1c36e7a1dad85d624b795a4d2c38a4a75d4289a42f1f3ee761641f62a06c7f
4
- data.tar.gz: 321ca54451a996bbe0164f267be770d5de0f60882d9a4ca79a659016e18fcff6
3
+ metadata.gz: 26f1c4257bc23d718063571b6e657fbe2f11f185b8ed775ebf0128566b7745df
4
+ data.tar.gz: daf9b8965948388dca2e974439a9ece990384a62653b34f9acc4653579283d1d
5
5
  SHA512:
6
- metadata.gz: 5451db5babc9842f826ef39249386f93bbe93e90744291a395eb25923b64edc6b7b03c0a0daac76e0543699a1572d5c71273e0ddf1b127b9dd6d44ff6ee132c3
7
- data.tar.gz: 818d5b215a467dc93ddd3a70fb8c2095ea720c338ca1e0d1131de4d3d6217ee9ee21008ebfaece13f4642617240791109fc42c8942cd50c151e1e54dbdf4054f
6
+ metadata.gz: 06fc7301a8c9c7f729abe3df1f79290e3a5c60d5796b52c5173102277bfee1426883025f6ed7e949214d622bccd1dacd4bd431121a515c0424073321e4b37a57
7
+ data.tar.gz: 81f2574978a33918404560ca7ef47e12463d331a7e2394b0734f5dd9b0f511aa53848a0ca02ecc112c303565d1531fad4bb9922e02b033916a42617f045b1677
@@ -4,6 +4,9 @@ Metrics/BlockLength:
4
4
  - 'municipitaly.gemspec'
5
5
  - 'lib/**/*.rb'
6
6
  - 'spec/**/*.rb'
7
+ Metrics/ClassLength:
8
+ Exclude:
9
+ - 'lib/municipitaly/search.rb'
7
10
 
8
11
  Metrics/ParameterLists:
9
12
  Max: 10
@@ -1,7 +1,14 @@
1
1
  ---
2
- sudo: false
2
+ os: linux
3
3
  language: ruby
4
- cache: bundler
5
4
  rvm:
6
5
  - 2.6.5
7
6
  before_install: gem install bundler -v 2.1.4
7
+ before_script:
8
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
9
+ - chmod +x ./cc-test-reporter
10
+ - ./cc-test-reporter before-build
11
+ script:
12
+ - bundle exec rspec
13
+ after_script:
14
+ - ./cc-test-reporter after-build --debug --exit-code $TRAVIS_TEST_RESULT --prefix /home/travis/build/natydev/municipitaly --coverage-input-type simplecov
@@ -0,0 +1,32 @@
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
+ ## [0.3.0] - 2020-02-27
9
+
10
+ ### Added
11
+
12
+ - ISO 3166-2 code in region object `#iso3166_2` or alias `#iso3166`
13
+
14
+ ## [0.2.0] - 2020-02-24
15
+
16
+ ### Added
17
+
18
+ - ISO 3166-2 code in province object `#iso3166_2` or alias `#iso3166`
19
+
20
+
21
+ ## [0.1.0] - 2020-02-13
22
+
23
+ ### Changed
24
+
25
+ - Update municipalities data according to latest ISTAT changes (jan 2020)
26
+
27
+
28
+ ## [0.0.3] - 2020-02-10
29
+
30
+ ### Added
31
+
32
+ - The optional parameter *greedy* in `Municipitaly::Search.municipalities_from_name`
@@ -1,14 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- municipitaly (0.0.1)
4
+ municipitaly (0.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.0)
10
10
  diff-lcs (1.3)
11
+ docile (1.3.2)
11
12
  jaro_winkler (1.5.4)
13
+ json (2.3.0)
12
14
  parallel (1.19.1)
13
15
  parser (2.6.5.0)
14
16
  ast (~> 2.4.0)
@@ -35,6 +37,11 @@ GEM
35
37
  ruby-progressbar (~> 1.7)
36
38
  unicode-display_width (>= 1.4.0, < 1.7)
37
39
  ruby-progressbar (1.10.1)
40
+ simplecov (0.17.1)
41
+ docile (~> 1.1)
42
+ json (>= 1.8, < 3)
43
+ simplecov-html (~> 0.10.0)
44
+ simplecov-html (0.10.2)
38
45
  unicode-display_width (1.6.0)
39
46
 
40
47
  PLATFORMS
@@ -46,6 +53,7 @@ DEPENDENCIES
46
53
  rake (~> 13.0.1)
47
54
  rspec (~> 3.9)
48
55
  rubocop (~> 0.77)
56
+ simplecov (~> 0.17.1)
49
57
 
50
58
  BUNDLED WITH
51
59
  2.1.4
data/README.md CHANGED
@@ -1,9 +1,14 @@
1
1
 
2
2
  # 🇮🇹 Municipitaly
3
3
 
4
+ [![Build Status](https://travis-ci.org/natydev/municipitaly.png?branch=master)](https://travis-ci.org/natydev/municipitaly)
5
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/07a4926100e3df1cdd72/test_coverage)](https://codeclimate.com/github/natydev/municipitaly/test_coverage)
6
+ [![Maintainability](https://api.codeclimate.com/v1/badges/07a4926100e3df1cdd72/maintainability)](https://codeclimate.com/github/natydev/municipitaly/maintainability)
7
+ [![Gem Version](https://badge.fury.io/rb/municipitaly.svg)](https://badge.fury.io/rb/municipitaly)
8
+
4
9
  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
10
 
6
- ## Installation
11
+ ## 💾 Installation
7
12
 
8
13
  Add this line to your application's Gemfile:
9
14
 
@@ -19,7 +24,7 @@ Or install it yourself as:
19
24
 
20
25
  $ gem install municipitaly
21
26
 
22
- ## Scenic
27
+ ## 👁 Scenic
23
28
 
24
29
  These entities are present, subpoints are data attributes:
25
30
 
@@ -41,7 +46,7 @@ These entities are present, subpoints are data attributes:
41
46
  * population
42
47
 
43
48
 
44
- ## Usage and examples
49
+ ## 🛠 Usage and examples
45
50
 
46
51
 
47
52
  The **Municipitaly::Search** is the principal class used to search entities.
@@ -55,6 +60,9 @@ Returned data are stored in 4 different types of entity models:
55
60
  Retrieve all zones (return an array of `Municipitaly::Zone` objects):
56
61
 
57
62
  ```ruby
63
+ # inside an irb or rails console:
64
+ require 'municipitaly'
65
+
58
66
  zones = Municipitaly::Zone.all
59
67
  # => [#<Municipitaly::Zone:0x0000...]
60
68
  ```
@@ -69,6 +77,7 @@ retrive data zone:
69
77
  ```ruby
70
78
  zone.name
71
79
  # => "Centro"
80
+
72
81
  zone.code
73
82
  # => "3"
74
83
  ```
@@ -163,7 +172,11 @@ Complete list of available class and instance methods are documented inside code
163
172
  Clone locally this repository and run
164
173
  `bundle exec rdoc` to produce complete documentation inside your local directory.
165
174
 
166
- ## Contributing
175
+ ## 🗄 Changelog
176
+
177
+ Complete list in [this section](CHANGELOG.md)
178
+
179
+ ## 🤝 Contributing
167
180
 
168
181
  Fells free to improve or suggest new features/ideas.
169
182
  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.
@@ -179,10 +192,10 @@ If you want to contribute keep these guidelines in mind:
179
192
  Steps to submit your code:
180
193
 
181
194
  1. Fork the repo.
182
- 2. Oper your feature/namespaced branch
195
+ 2. Open your feature/namespaced branch
183
196
  3. Commit your code following Github guidelines.
184
197
  4. Make a PR with an exhaustive description.
185
198
 
186
- ## License
199
+ ## 📃 License
187
200
 
188
201
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -9,7 +9,6 @@ module Municipitaly
9
9
  @@municipalities = []
10
10
 
11
11
  def zones
12
- puts find_csv('zones.csv')
13
12
  if @@zones.empty?
14
13
  CSV.foreach(find_csv('zones.csv'), headers: true) do |row|
15
14
  @@zones << Zone.new(name: row[0], code: row[1])
@@ -22,7 +21,7 @@ module Municipitaly
22
21
  if @@regions.empty?
23
22
  CSV.foreach(find_csv('regions.csv'), headers: true) do |row|
24
23
  @@regions << Region.new(zone_code: row[0], name: row[1],
25
- istat: row[2])
24
+ istat: row[2], partial_iso3166: row[3])
26
25
  end
27
26
  end
28
27
  @@regions
@@ -53,7 +52,7 @@ module Municipitaly
53
52
 
54
53
  def find_csv(file)
55
54
  File.expand_path(File.join(File.dirname(__FILE__),
56
- "../../vendor/data/#{file}"))
55
+ "../../vendor/data/#{file}"))
57
56
  end
58
57
  end
59
58
  end
@@ -27,5 +27,12 @@ module Municipitaly
27
27
  def municipalities
28
28
  @municipalities ||= Search.municipalities_from_province_istat(istat)
29
29
  end
30
+
31
+ # returns ISO 3166-2 code for current province.
32
+ def iso3166_2
33
+ "IT-#{acronym}"
34
+ end
35
+
36
+ alias iso3166 iso3166_2
30
37
  end
31
38
  end
@@ -6,13 +6,14 @@ module Municipitaly
6
6
  include DataCaller
7
7
  include ZoneDelegator
8
8
 
9
- def initialize(zone_code:, name:, istat:)
9
+ def initialize(zone_code:, name:, istat:, partial_iso3166:)
10
10
  @zone_code = zone_code
11
11
  @name = name
12
12
  @istat = istat
13
+ @partial_iso3166 = partial_iso3166
13
14
  end
14
15
 
15
- attr_reader :zone_code, :name, :istat
16
+ attr_reader :zone_code, :name, :istat, :partial_iso3166
16
17
 
17
18
  # returns an array of all +Municipitaly::Region+ objects.
18
19
  def self.all
@@ -30,5 +31,12 @@ module Municipitaly
30
31
  def municipalities
31
32
  @municipalities ||= Search.municipalities_from_region_istat(istat)
32
33
  end
34
+
35
+ # returns ISO 3166-2 code for current province.
36
+ def iso3166_2
37
+ "IT-#{partial_iso3166}"
38
+ end
39
+
40
+ alias iso3166 iso3166_2
33
41
  end
34
42
  end
@@ -15,8 +15,8 @@ module Municipitaly
15
15
  class Search
16
16
  include DataCaller
17
17
 
18
- CLASS_METHODS = %i[zone_from_code region_from_istat
19
- regions_from_zone_code province_from_istat
18
+ CLASS_METHODS = %i[zone_from_code region_from_istat regions_from_zone_code
19
+ province_from_name province_from_istat
20
20
  province_from_acronym provinces_from_region_istat
21
21
  provinces_from_zone_code municipalities_from_name
22
22
  municipality_from_cadastrial municipality_from_istat
@@ -26,15 +26,16 @@ module Municipitaly
26
26
  municipalities_from_zone_code].freeze # :nodoc:
27
27
 
28
28
  CLASS_METHODS.each do |method|
29
- define_singleton_method method do |message|
30
- Search.new(message).send(method)
29
+ define_singleton_method method do |message, opts = {}|
30
+ Search.new(message, opts).send(method)
31
31
  end
32
32
  end # :nodoc:
33
33
 
34
- attr_accessor :term # :nodoc:
34
+ attr_accessor :term, :opts # :nodoc:
35
35
 
36
- def initialize(term) # :nodoc:
36
+ def initialize(term, opts = {}) # :nodoc:
37
37
  @term = term.to_s.strip
38
+ @opts = opts
38
39
  end
39
40
 
40
41
  protected
@@ -70,6 +71,19 @@ module Municipitaly
70
71
  end
71
72
  end
72
73
 
74
+ # returns a +Municipitaly::Province+ object from a <b>province name</b>
75
+ # term
76
+ #
77
+ # example usage:
78
+ # province = Search.province_from_name('Paler')
79
+ def province_from_name # :doc:
80
+ data.provinces.find do |p|
81
+ name_set = p.name.downcase.gsub(/[^a-z]/, '')
82
+ term_set = term.downcase.gsub(/[^a-z]/, '')
83
+ name_set =~ Regexp.new(term_set) && term_set.size > 3
84
+ end
85
+ end
86
+
73
87
  # returns a +Municipitaly::Province+ object from a <b>province istat</b>
74
88
  # term
75
89
  #
@@ -118,12 +132,21 @@ module Municipitaly
118
132
  # returns an array of +Municipitaly::Municipality+ objects from a
119
133
  # <b>municipality name</b> term.
120
134
  # Term can be a partial string and is case insensitive.
135
+ # The optional parameter +greedy+ [boolean] permit to serch exact term
136
+ # name (if false) or partial word (true by default).
121
137
  #
122
138
  # example usage:
123
139
  # municipalities = Search.municipalities_from_name('monte')
140
+ # municipalities = Search.municipalities_from_name('monte', greedy: false)
124
141
  def municipalities_from_name # :doc:
142
+ greedy = opts.fetch(:greedy, true)
143
+ regexp = if greedy
144
+ Regexp.new(term, true)
145
+ else
146
+ Regexp.new("^#{term}$", true)
147
+ end
125
148
  data.municipalities.select do |m|
126
- m.name =~ Regexp.new(term, true)
149
+ m.name =~ regexp
127
150
  end
128
151
  end
129
152
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Municipitaly
4
4
  # :nodoc:
5
- VERSION = '0.0.2'
5
+ VERSION = '0.4.0'
6
6
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
 
13
13
  spec.summary = 'Municipitaly'
14
14
  spec.description = 'Codes (postal, istat, cadastrian, ...) about Italian ' \
15
- 'subdivisions and municipalities'
15
+ 'subdivisions and municipalities in Italy [city, cities]'
16
16
  spec.homepage = 'https://github.com/natydev/municipitaly'
17
17
  spec.license = 'MIT'
18
18
  spec.metadata = {
@@ -33,4 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'rake', '~> 13.0.1'
34
34
  spec.add_development_dependency 'rspec', '~> 3.9'
35
35
  spec.add_development_dependency 'rubocop', '~> 0.77'
36
+ spec.add_development_dependency 'simplecov', '~> 0.17.1'
36
37
  end
@@ -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 sul Garda,158,H086,25080,3263
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,2911
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,3264
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
@@ -1,21 +1,21 @@
1
- zone_code,name,istat
2
- 1,Piemonte,01
3
- 1,Valle d'Aosta/Vallée d'Aoste,02
4
- 1,Liguria,07
5
- 1,Lombardia,03
6
- 2,Trentino-Alto Adige/Südtirol,04
7
- 2,Veneto,05
8
- 2,Friuli-Venezia Giulia,06
9
- 2,Emilia-Romagna,08
10
- 3,Marche,11
11
- 3,Toscana,09
12
- 3,Umbria,10
13
- 3,Lazio,12
14
- 4,Campania,15
15
- 4,Abruzzo,13
16
- 4,Molise,14
17
- 4,Puglia,16
18
- 4,Basilicata,17
19
- 4,Calabria,18
20
- 5,Sicilia,19
21
- 5,Sardegna,20
1
+ zone_code,name,istat,partial_iso3166
2
+ 1,Piemonte,01,21
3
+ 1,Valle d'Aosta/Vallée d'Aoste,02,23
4
+ 1,Liguria,07,42
5
+ 1,Lombardia,03,25
6
+ 2,Trentino-Alto Adige/Südtirol,04,32
7
+ 2,Veneto,05,34
8
+ 2,Friuli-Venezia Giulia,06,36
9
+ 2,Emilia-Romagna,08,45
10
+ 3,Marche,11,57
11
+ 3,Toscana,09,52
12
+ 3,Umbria,10,55
13
+ 3,Lazio,12,62
14
+ 4,Campania,15,72
15
+ 4,Abruzzo,13,65
16
+ 4,Molise,14,67
17
+ 4,Puglia,16,75
18
+ 4,Basilicata,17,77
19
+ 4,Calabria,18,78
20
+ 5,Sicilia,19,82
21
+ 5,Sardegna,20,88
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.2
4
+ version: 0.4.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-09 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,8 +66,22 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.77'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.17.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.17.1
69
83
  description: Codes (postal, istat, cadastrian, ...) about Italian subdivisions and
70
- municipalities
84
+ municipalities in Italy [city, cities]
71
85
  email:
72
86
  - natydev@aol.com
73
87
  executables: []
@@ -78,6 +92,7 @@ files:
78
92
  - ".rspec"
79
93
  - ".rubocop.yml"
80
94
  - ".travis.yml"
95
+ - CHANGELOG.md
81
96
  - CODE_OF_CONDUCT.md
82
97
  - Gemfile
83
98
  - Gemfile.lock