worlddb-models 2.3.5 → 2.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +10 -10
- data/lib/worlddb/models/city.rb +2 -2
- data/lib/worlddb/models/country.rb +2 -2
- data/lib/worlddb/serializers/city.rb +2 -2
- data/lib/worlddb/serializers/country.rb +2 -2
- data/lib/worlddb/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7cdc7afd447376a342d4b4ea93ea858e6c829ae
|
4
|
+
data.tar.gz: 672aeefd998320de9704745b0b1d5f698371643a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4cf361ef831ce7791e8237202277100c083374c97d512376faf9e009bf9d163490b71ffcf37dd040f9c7b06ae3daf12a11ef255d4aa35a92477d0e6af42db59
|
7
|
+
data.tar.gz: 7efa3c6b89017030de74a8b71a748aa8981d286d97bc5d1e6c771e5ba49ba59938bc17ed55639f172d465dff0af020580bc27d7406b3a6406df9125aabf0e583
|
data/Rakefile
CHANGED
@@ -9,28 +9,28 @@ Hoe.spec 'worlddb-models' do
|
|
9
9
|
self.summary = "worlddb - world.db schema 'n' models for easy (re)use"
|
10
10
|
self.description = summary
|
11
11
|
|
12
|
-
self.urls = ['https://github.com/worlddb/world.db
|
12
|
+
self.urls = ['https://github.com/worlddb/world.db']
|
13
13
|
|
14
14
|
self.author = 'Gerald Bauer'
|
15
15
|
self.email = 'openmundi@googlegroups.com'
|
16
16
|
|
17
17
|
self.extra_deps = [
|
18
|
-
['props', '>= 1.
|
18
|
+
['props', '>= 1.2.0'], # settings / prop(ertie)s / env / INI
|
19
19
|
['logutils', '>= 0.6.1'], # logging
|
20
|
-
['textutils', '>= 1.
|
20
|
+
['textutils', '>= 1.4.0'],
|
21
21
|
|
22
|
-
['tagutils', '>= 0.
|
23
|
-
['activerecord-utils', '>= 0.
|
24
|
-
['props-activerecord', '>= 0.
|
25
|
-
['logutils-activerecord', '>= 0.2.
|
22
|
+
['tagutils', '>= 1.0.0'], # tags n categories for activerecord
|
23
|
+
['activerecord-utils', '>= 0.4.0'],
|
24
|
+
['props-activerecord', '>= 0.2.0'],
|
25
|
+
['logutils-activerecord', '>= 0.2.1'],
|
26
26
|
|
27
27
|
## 3rd party
|
28
28
|
['rubyzip'], ## todo: pull in via textutils ??
|
29
|
-
['activerecord'] #
|
29
|
+
['activerecord'] # Note: will include activesupport,etc.
|
30
30
|
]
|
31
31
|
|
32
32
|
# switch extension to .markdown for gihub formatting
|
33
|
-
# --
|
33
|
+
# -- Note: auto-changed when included in manifest
|
34
34
|
self.readme_file = 'README.md'
|
35
35
|
self.history_file = 'HISTORY.md'
|
36
36
|
|
@@ -38,7 +38,7 @@ Hoe.spec 'worlddb-models' do
|
|
38
38
|
self.licenses = ['Public Domain']
|
39
39
|
|
40
40
|
self.spec_extras = {
|
41
|
-
required_ruby_version: '>=
|
41
|
+
required_ruby_version: '>= 2.3'
|
42
42
|
}
|
43
43
|
|
44
44
|
end
|
data/lib/worlddb/models/city.rb
CHANGED
@@ -62,8 +62,8 @@ class Country < ActiveRecord::Base
|
|
62
62
|
scope :by_net, ->{ order( 'net asc' ) } # internet cc top level domain; ccTLD
|
63
63
|
|
64
64
|
|
65
|
-
def
|
66
|
-
CountrySerializer.new( self ).
|
65
|
+
def as_row( opts={} )
|
66
|
+
CountrySerializer.new( self ).as_row
|
67
67
|
end
|
68
68
|
|
69
69
|
|
@@ -4,7 +4,7 @@ module WorldDb::Model
|
|
4
4
|
|
5
5
|
|
6
6
|
## todo/check:
|
7
|
-
## add
|
7
|
+
## add as_row to CityBase for all classes - why? why not??
|
8
8
|
|
9
9
|
class CitySerializer
|
10
10
|
|
@@ -14,7 +14,7 @@ module WorldDb::Model
|
|
14
14
|
|
15
15
|
attr_reader :city
|
16
16
|
|
17
|
-
def
|
17
|
+
def as_row
|
18
18
|
|
19
19
|
## add virtual column like kind for metro, metro|city, city, district
|
20
20
|
|
@@ -4,7 +4,7 @@ module WorldDb::Model
|
|
4
4
|
|
5
5
|
|
6
6
|
## todo/check:
|
7
|
-
## add
|
7
|
+
## add as_row to CityBase for all classes - why? why not??
|
8
8
|
|
9
9
|
class CountrySerializer
|
10
10
|
|
@@ -14,7 +14,7 @@ module WorldDb::Model
|
|
14
14
|
|
15
15
|
attr_reader :country
|
16
16
|
|
17
|
-
def
|
17
|
+
def as_row
|
18
18
|
|
19
19
|
## todo: add tags too??
|
20
20
|
data = { key: country.key,
|
data/lib/worlddb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: worlddb-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: props
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: logutils
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,70 +44,70 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.4.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.4.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tagutils
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 1.0.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 1.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activerecord-utils
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.4.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.4.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: props-activerecord
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.2.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.2.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: logutils-activerecord
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.2.
|
103
|
+
version: 0.2.1
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.2.
|
110
|
+
version: 0.2.1
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubyzip
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -251,7 +251,7 @@ files:
|
|
251
251
|
- test/test_parse_state.rb
|
252
252
|
- test/test_state_tree_reader_at.rb
|
253
253
|
- test/test_state_tree_reader_de.rb
|
254
|
-
homepage: https://github.com/worlddb/world.db
|
254
|
+
homepage: https://github.com/worlddb/world.db
|
255
255
|
licenses:
|
256
256
|
- Public Domain
|
257
257
|
metadata: {}
|
@@ -265,7 +265,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
265
265
|
requirements:
|
266
266
|
- - ">="
|
267
267
|
- !ruby/object:Gem::Version
|
268
|
-
version:
|
268
|
+
version: '2.3'
|
269
269
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
270
270
|
requirements:
|
271
271
|
- - ">="
|