ine-places 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ine-places.gemspec +3 -3
- data/lib/ine/places.rb +27 -0
- data/lib/ine/places/version.rb +1 -1
- metadata +9 -9
- data/lib/ine/places/places.rb +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 520d85a6b88bda35a7421a32b03c1466eb9f0905
|
4
|
+
data.tar.gz: d449952c735544ee62c8349f6df93f4c651ce6e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cdd68d2602127d859640d2b0b523af92a9987811776e50078a6546e158b929cde2e9a150f55bdd1c563dbcc5d4e625dc82eb6f21bb58fea8affe3da0d9a3724
|
7
|
+
data.tar.gz: 2a15d0086ad6174d62610541d95596ad4d6f0f8b56474b44e5e1836a092ed0c067aa15f4547712ddd862ce6e16a299bb513943d73f80263065a252b638f285f1
|
data/README.md
CHANGED
data/ine-places.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
|
30
30
|
spec.add_runtime_dependency "activesupport", "~> 4.2", ">= 4.2.4"
|
31
31
|
|
32
|
-
spec.add_development_dependency "bundler", "~> 1.
|
33
|
-
spec.add_development_dependency "rake", "~>
|
34
|
-
spec.add_development_dependency "rspec", "~> 3.
|
32
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
33
|
+
spec.add_development_dependency "rake", "~> 11.1"
|
34
|
+
spec.add_development_dependency "rspec", "~> 3.4"
|
35
35
|
end
|
data/lib/ine/places.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require "ine/places/version"
|
2
|
+
require "csv"
|
3
|
+
require "ostruct"
|
4
|
+
require "active_support/all"
|
5
|
+
|
6
|
+
module INE
|
7
|
+
module Places
|
8
|
+
|
9
|
+
require "ine/places/csv_record"
|
10
|
+
require "ine/places/autonomous_region"
|
11
|
+
require "ine/places/autonomous_regions_collection"
|
12
|
+
require "ine/places/province"
|
13
|
+
require "ine/places/provinces_collection"
|
14
|
+
require "ine/places/place"
|
15
|
+
require "ine/places/places_collection"
|
16
|
+
|
17
|
+
ROOT = File.expand_path('../places/', __FILE__)
|
18
|
+
|
19
|
+
def self.preload
|
20
|
+
AutonomousRegionsCollection.records
|
21
|
+
ProvincesCollection.records
|
22
|
+
PlacesCollection.records
|
23
|
+
|
24
|
+
nil
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/ine/places/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ine-places
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fernando Blat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -36,42 +36,42 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.12'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.12'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '11.1'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '11.1'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rspec
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '3.
|
67
|
+
version: '3.4'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '3.
|
74
|
+
version: '3.4'
|
75
75
|
description: Work with Spanish regions using INE codes and data
|
76
76
|
email:
|
77
77
|
- ferblape@gmail.com
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- bin/console
|
91
91
|
- bin/setup
|
92
92
|
- ine-places.gemspec
|
93
|
+
- lib/ine/places.rb
|
93
94
|
- lib/ine/places/autonomous_region.rb
|
94
95
|
- lib/ine/places/autonomous_regions_collection.rb
|
95
96
|
- lib/ine/places/csv_record.rb
|
@@ -97,7 +98,6 @@ files:
|
|
97
98
|
- lib/ine/places/data/places.csv
|
98
99
|
- lib/ine/places/data/provinces.csv
|
99
100
|
- lib/ine/places/place.rb
|
100
|
-
- lib/ine/places/places.rb
|
101
101
|
- lib/ine/places/places_collection.rb
|
102
102
|
- lib/ine/places/province.rb
|
103
103
|
- lib/ine/places/provinces_collection.rb
|
data/lib/ine/places/places.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
require "ine/places/version"
|
2
|
-
require "csv"
|
3
|
-
require "ostruct"
|
4
|
-
require "active_support/all"
|
5
|
-
|
6
|
-
module INE
|
7
|
-
module Places
|
8
|
-
ROOT = File.expand_path('../', __FILE__)
|
9
|
-
|
10
|
-
def self.preload
|
11
|
-
AutonomousRegionsCollection.records
|
12
|
-
ProvincesCollection.records
|
13
|
-
PlacesCollection.records
|
14
|
-
|
15
|
-
nil
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
require "ine/places/csv_record"
|
21
|
-
require "ine/places/autonomous_region"
|
22
|
-
require "ine/places/autonomous_regions_collection"
|
23
|
-
require "ine/places/province"
|
24
|
-
require "ine/places/provinces_collection"
|
25
|
-
require "ine/places/place"
|
26
|
-
require "ine/places/places_collection"
|