ine-places 0.3.0 → 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: 077ed4cb612c43e1d63ac6cce051283a17227ab8c28aff8704c404215c3a50d2
4
- data.tar.gz: 87026a11a94039765c8e90014f613f91ef38190417c89c0fea640370bd90cee2
3
+ metadata.gz: b87dc5844f0094eb72fb00f11a9ccf4284d45322613e29c2f02345c0475ff1f0
4
+ data.tar.gz: c21a181e87cd9d7b4cae805f8b9885a7aa4107f48652130d6cf98d2284b042bc
5
5
  SHA512:
6
- metadata.gz: 287f655061eb8a40b18f13410fb66376df2c474b48cf52f089a3cfd8ae2bf6148ff27d6f268a5af058c5a4738f210f263bfe0dbb6ff3e2a8491bff9c4ad847fe
7
- data.tar.gz: 662d3e5e0e80a03ddb9d20400ac01ffa2a03be063df7e1a2a7a257c23ae38fec331345dc5eda2fd435a614dc86fd95d7249a8607657e6d82089bf0b9f7f26830
6
+ metadata.gz: fcb4ab942119dbe249f76d73062229300e78c2c2db1857d779ad1ab21152657cd8d45afc7b9dd5ce04a3da99a801fe47cbf18a28399a4dce64252cd450e343a6
7
+ data.tar.gz: 9d4d93b53f5314480b3c88736dfc6a0e96e5e711be0ba90351b47cd75979ad2a8d8d3b6af9a2124d3bd1da1e6552838db26c9ee0b5c06ba1e5ed5076b79cd6f3
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.3
4
- before_install: gem install bundler -v 1.10.6
3
+ - 2.6.1
4
+ before_install: gem install bundler -v 1.17.2
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require_relative "../lib/ine/places"
4
+ require_relative "../lib/ine"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "ine-places"
8
8
  spec.version = INE::Places::VERSION
9
9
  spec.authors = ["Fernando Blat"]
10
- spec.email = ["ferblape@gmail.com"]
10
+ spec.email = ["fernando@blat.es"]
11
11
 
12
12
  spec.summary = %q{An easy way to work with Spanish regions in Ruby}
13
13
  spec.description = %q{Work with Spanish regions using INE codes and data}
@@ -27,10 +27,11 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
+ spec.add_runtime_dependency "zeitwerk", ">= 2.1.2"
30
31
  spec.add_runtime_dependency "activesupport", ">= 4.2"
31
32
 
32
- spec.add_development_dependency "bundler", "~> 1.12"
33
+ spec.add_development_dependency "bundler", "~> 1.17"
33
34
  spec.add_development_dependency "rake", "~> 12.3"
34
35
  spec.add_development_dependency "rspec", "~> 3.4"
35
- spec.add_development_dependency "byebug", '~> 10.0', '>= 9.0.5'
36
+ spec.add_development_dependency "byebug", '~> 11.0', '>= 9.0.5'
36
37
  end
@@ -3,19 +3,28 @@ require "csv"
3
3
  require "ostruct"
4
4
  require "active_support/all"
5
5
  require "open-uri"
6
+ require "zeitwerk"
7
+ loader = Zeitwerk::Loader.for_gem
8
+
9
+ class INEInflector < Zeitwerk::Inflector
10
+ def camelize(basename, _abspath)
11
+ case basename
12
+ when "csv_record"
13
+ "CSVRecord"
14
+ when "ine"
15
+ "INE"
16
+ else
17
+ super
18
+ end
19
+ end
20
+ end
21
+
22
+ loader.inflector = INEInflector.new
23
+ loader.setup
6
24
 
7
25
  module INE
8
26
  module Places
9
-
10
- require "ine/places/csv_record"
11
- require "ine/places/autonomous_region"
12
- require "ine/places/autonomous_regions_collection"
13
- require "ine/places/province"
14
- require "ine/places/provinces_collection"
15
- require "ine/places/place"
16
- require "ine/places/places_collection"
17
-
18
- ROOT = File.expand_path('../places/', __FILE__)
27
+ ROOT = File.expand_path('../ine/places/', __FILE__)
19
28
 
20
29
  def self.preload
21
30
  AutonomousRegionsCollection.records
@@ -1,5 +1,5 @@
1
1
  module INE
2
2
  module Places
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ine-places
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Blat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-19 00:00:00.000000000 Z
11
+ date: 2019-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: zeitwerk
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 2.1.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.1.2
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: activesupport
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -30,14 +44,14 @@ dependencies:
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '1.12'
47
+ version: '1.17'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '1.12'
54
+ version: '1.17'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -70,25 +84,25 @@ dependencies:
70
84
  name: byebug
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '10.0'
76
87
  - - ">="
77
88
  - !ruby/object:Gem::Version
78
89
  version: 9.0.5
90
+ - - "~>"
91
+ - !ruby/object:Gem::Version
92
+ version: '11.0'
79
93
  type: :development
80
94
  prerelease: false
81
95
  version_requirements: !ruby/object:Gem::Requirement
82
96
  requirements:
83
- - - "~>"
84
- - !ruby/object:Gem::Version
85
- version: '10.0'
86
97
  - - ">="
87
98
  - !ruby/object:Gem::Version
88
99
  version: 9.0.5
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '11.0'
89
103
  description: Work with Spanish regions using INE codes and data
90
104
  email:
91
- - ferblape@gmail.com
105
+ - fernando@blat.es
92
106
  executables: []
93
107
  extensions: []
94
108
  extra_rdoc_files: []
@@ -104,7 +118,7 @@ files:
104
118
  - bin/console
105
119
  - bin/setup
106
120
  - ine-places.gemspec
107
- - lib/ine/places.rb
121
+ - lib/ine.rb
108
122
  - lib/ine/places/autonomous_region.rb
109
123
  - lib/ine/places/autonomous_regions_collection.rb
110
124
  - lib/ine/places/csv_record.rb
@@ -136,8 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
150
  - !ruby/object:Gem::Version
137
151
  version: '0'
138
152
  requirements: []
139
- rubyforge_project:
140
- rubygems_version: 2.7.6
153
+ rubygems_version: 3.0.3
141
154
  signing_key:
142
155
  specification_version: 4
143
156
  summary: An easy way to work with Spanish regions in Ruby