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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e2037115921b85b7e91750def0f31064e0d6608
4
- data.tar.gz: 751eafe0f8f2fe9218df0db7d5f0fc86fe63a92f
3
+ metadata.gz: 520d85a6b88bda35a7421a32b03c1466eb9f0905
4
+ data.tar.gz: d449952c735544ee62c8349f6df93f4c651ce6e6
5
5
  SHA512:
6
- metadata.gz: 93a49f4d9ea61c92b4768d56029d2e33fd80da0786f260ecc66f3cb73ce4698b8bebda9d095be4e5809df196b20e2c1b6ee16bae64512252f007fb2df9031ab2
7
- data.tar.gz: 271e6e6aaf07fe55dbe5a828bc7b1aff2ecac2c9b2024765a3a90e2d3dc5d954ea41ebe5ab77ab639349b2a0e79863be58c9cf808528da91e64417fa8f4dd094
6
+ metadata.gz: 9cdd68d2602127d859640d2b0b523af92a9987811776e50078a6546e158b929cde2e9a150f55bdd1c563dbcc5d4e625dc82eb6f21bb58fea8affe3da0d9a3724
7
+ data.tar.gz: 2a15d0086ad6174d62610541d95596ad4d6f0f8b56474b44e5e1836a092ed0c067aa15f4547712ddd862ce6e16a299bb513943d73f80263065a252b638f285f1
data/README.md CHANGED
@@ -20,7 +20,7 @@ based on the data published on the INE (so, it was processed after the 3rd of Fe
20
20
  Add this line to your application's Gemfile:
21
21
 
22
22
  ```ruby
23
- gem 'ine-places', require: 'ine/places/places'
23
+ gem 'ine-places'
24
24
  ```
25
25
 
26
26
  And then execute:
@@ -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.10"
33
- spec.add_development_dependency "rake", "~> 10.0"
34
- spec.add_development_dependency "rspec", "~> 3.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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module INE
2
2
  module Places
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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.2
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: 2015-11-13 00:00:00.000000000 Z
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.10'
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.10'
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: '10.0'
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: '10.0'
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.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.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
@@ -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"