phil_locator 1.0.0.pre → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.codeclimate.yml +0 -4
- data/.gitignore +1 -0
- data/README.md +6 -3
- data/VERSION +1 -0
- data/app/models/phil_locator/barangay.rb +30 -0
- data/app/models/phil_locator/city.rb +5 -4
- data/app/models/phil_locator/province.rb +1 -1
- data/app/models/phil_locator/region.rb +1 -1
- data/data/barangays.yml +210146 -0
- data/data/cities.yml +76 -1723
- data/lib/phil_locator/gem_version.rb +16 -0
- data/lib/phil_locator/version.rb +8 -0
- data/lib/phil_locator.rb +2 -2
- data/phil_locator.gemspec +11 -5
- metadata +12 -6
- data/Gemfile.lock +0 -58
@@ -0,0 +1,16 @@
|
|
1
|
+
module PhilLocator
|
2
|
+
def self.gem_version
|
3
|
+
Gem::Version.new VERSION::STRING
|
4
|
+
end
|
5
|
+
|
6
|
+
module VERSION
|
7
|
+
ARRAY = File.read(File.expand_path("../../VERSION", __dir__)).strip.split(".")
|
8
|
+
|
9
|
+
MAJOR = ARRAY[0]
|
10
|
+
MINOR = ARRAY[1]
|
11
|
+
TINY = ARRAY[2]
|
12
|
+
PRE = ARRAY[3]
|
13
|
+
|
14
|
+
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
|
15
|
+
end
|
16
|
+
end
|
data/lib/phil_locator.rb
CHANGED
data/phil_locator.gemspec
CHANGED
@@ -1,17 +1,23 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.platform = Gem::Platform::RUBY
|
3
3
|
s.name = "phil_locator"
|
4
|
-
s.version =
|
5
|
-
s.summary = "
|
6
|
-
s.description =
|
4
|
+
s.version = File.read(File.expand_path("VERSION", __dir__)).strip
|
5
|
+
s.summary = "Registry records for regions, cities, and provinces in the Philippines."
|
6
|
+
s.description = "Provides registry records for regions, cities, and provinces in the Philippines."
|
7
7
|
|
8
8
|
s.required_ruby_version = ">= 2.5.3"
|
9
9
|
s.required_rubygems_version = ">= 2.7.7"
|
10
10
|
|
11
|
+
s.license = "MIT"
|
12
|
+
|
11
13
|
s.author = "Angel Aviel Domaoan"
|
12
14
|
s.email = "dev.tenshiamd@gmail.com"
|
13
|
-
s.homepage = "https://
|
14
|
-
|
15
|
+
s.homepage = "https://github.com/tenshiAMD/phil_locator"
|
16
|
+
|
17
|
+
if s.respond_to?(:metadata)
|
18
|
+
s.metadata["bug_tracker_uri"] = [s.homepage, "issues"].join("/")
|
19
|
+
s.metadata["source_code_uri"] = [s.homepage, "tree", "v#{s.version}"].join("/")
|
20
|
+
end
|
15
21
|
|
16
22
|
s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
17
23
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phil_locator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Angel Aviel Domaoan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_hash
|
@@ -34,23 +34,29 @@ files:
|
|
34
34
|
- ".gitignore"
|
35
35
|
- ".rubocop.yml"
|
36
36
|
- Gemfile
|
37
|
-
- Gemfile.lock
|
38
37
|
- LICENSE
|
39
38
|
- README.md
|
39
|
+
- VERSION
|
40
40
|
- app/models/concerns/.keep
|
41
|
+
- app/models/phil_locator/barangay.rb
|
41
42
|
- app/models/phil_locator/city.rb
|
42
43
|
- app/models/phil_locator/province.rb
|
43
44
|
- app/models/phil_locator/region.rb
|
45
|
+
- data/barangays.yml
|
44
46
|
- data/cities.yml
|
45
47
|
- data/provinces.yml
|
46
48
|
- data/regions.yml
|
47
49
|
- lib/phil_locator.rb
|
48
50
|
- lib/phil_locator/engine.rb
|
51
|
+
- lib/phil_locator/gem_version.rb
|
52
|
+
- lib/phil_locator/version.rb
|
49
53
|
- phil_locator.gemspec
|
50
|
-
homepage: https://
|
54
|
+
homepage: https://github.com/tenshiAMD/phil_locator
|
51
55
|
licenses:
|
52
56
|
- MIT
|
53
|
-
metadata:
|
57
|
+
metadata:
|
58
|
+
bug_tracker_uri: https://github.com/tenshiAMD/phil_locator/issues
|
59
|
+
source_code_uri: https://github.com/tenshiAMD/phil_locator/tree/v1.1.0
|
54
60
|
post_install_message:
|
55
61
|
rdoc_options: []
|
56
62
|
require_paths:
|
@@ -69,5 +75,5 @@ requirements: []
|
|
69
75
|
rubygems_version: 3.0.6
|
70
76
|
signing_key:
|
71
77
|
specification_version: 4
|
72
|
-
summary:
|
78
|
+
summary: Registry records for regions, cities, and provinces in the Philippines.
|
73
79
|
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
phil_locator (1.0.0)
|
5
|
-
active_hash (~> 2.3.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
active_hash (2.3.0)
|
11
|
-
activesupport (>= 5.0.0)
|
12
|
-
activesupport (5.2.3)
|
13
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
-
i18n (>= 0.7, < 2)
|
15
|
-
minitest (~> 5.1)
|
16
|
-
tzinfo (~> 1.1)
|
17
|
-
ast (2.4.0)
|
18
|
-
concurrent-ruby (1.1.5)
|
19
|
-
i18n (1.7.0)
|
20
|
-
concurrent-ruby (~> 1.0)
|
21
|
-
jaro_winkler (1.5.3)
|
22
|
-
minitest (5.12.2)
|
23
|
-
parallel (1.18.0)
|
24
|
-
parser (2.6.5.0)
|
25
|
-
ast (~> 2.4.0)
|
26
|
-
rack (2.0.7)
|
27
|
-
rainbow (3.0.0)
|
28
|
-
rubocop (0.74.0)
|
29
|
-
jaro_winkler (~> 1.5.1)
|
30
|
-
parallel (~> 1.10)
|
31
|
-
parser (>= 2.6)
|
32
|
-
rainbow (>= 2.2.2, < 4.0)
|
33
|
-
ruby-progressbar (~> 1.7)
|
34
|
-
unicode-display_width (>= 1.4.0, < 1.7)
|
35
|
-
rubocop-junit-formatter (0.1.4)
|
36
|
-
rubocop-performance (1.5.0)
|
37
|
-
rubocop (>= 0.71.0)
|
38
|
-
rubocop-rails (2.0.1)
|
39
|
-
rack (>= 1.1)
|
40
|
-
rubocop (>= 0.70.0)
|
41
|
-
ruby-progressbar (1.10.1)
|
42
|
-
thread_safe (0.3.6)
|
43
|
-
tzinfo (1.2.5)
|
44
|
-
thread_safe (~> 0.1)
|
45
|
-
unicode-display_width (1.6.0)
|
46
|
-
|
47
|
-
PLATFORMS
|
48
|
-
ruby
|
49
|
-
|
50
|
-
DEPENDENCIES
|
51
|
-
phil_locator!
|
52
|
-
rubocop (>= 0.74.0)
|
53
|
-
rubocop-junit-formatter
|
54
|
-
rubocop-performance
|
55
|
-
rubocop-rails (~> 2.0.1)
|
56
|
-
|
57
|
-
BUNDLED WITH
|
58
|
-
1.17.3
|