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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d06a2518a318298eff8f73429f1749a7fbf34ecd
4
- data.tar.gz: b7a44ae9fe82a65bbd07850be27f3c39dea61ebf
3
+ metadata.gz: d7cdc7afd447376a342d4b4ea93ea858e6c829ae
4
+ data.tar.gz: 672aeefd998320de9704745b0b1d5f698371643a
5
5
  SHA512:
6
- metadata.gz: 32c39e3a9e4125d73ff577bab22c77f4de3f0a23c412ba63eb0d071fc9b2f6efefed1d4ee9ee3b04766cb02200068b94bc3381d172be747ffdaf12f4d6ac655b
7
- data.tar.gz: 5ce179dc7f659933102c05de9dd9a475c072e0a46a1194f1998344abd4bb02c0afeffd51fdd39b6526b3e87a03d820043fe394d8305603b52bb9e1cd5e899e7f
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.models']
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.1.2'], # settings / prop(ertie)s / env / INI
18
+ ['props', '>= 1.2.0'], # settings / prop(ertie)s / env / INI
19
19
  ['logutils', '>= 0.6.1'], # logging
20
- ['textutils', '>= 1.3.1'],
20
+ ['textutils', '>= 1.4.0'],
21
21
 
22
- ['tagutils', '>= 0.3.0'], # tags n categories for activerecord
23
- ['activerecord-utils', '>= 0.2.0'],
24
- ['props-activerecord', '>= 0.1.0'],
25
- ['logutils-activerecord', '>= 0.2.0'],
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'] # NB: will include activesupport,etc.
29
+ ['activerecord'] # Note: will include activesupport,etc.
30
30
  ]
31
31
 
32
32
  # switch extension to .markdown for gihub formatting
33
- # -- NB: auto-changed when included in manifest
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: '>= 1.9.2'
41
+ required_ruby_version: '>= 2.3'
42
42
  }
43
43
 
44
44
  end
@@ -20,8 +20,8 @@ class City < CityBase
20
20
  end
21
21
 
22
22
 
23
- def as_tab( opts={} )
24
- CitySerializer.new( self ).as_tab
23
+ def as_row( opts={} )
24
+ CitySerializer.new( self ).as_row
25
25
  end
26
26
 
27
27
  end # class City
@@ -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 as_tab( opts={} )
66
- CountrySerializer.new( self ).as_tab
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 as_tab(ular) to CityBase for all classes - why? why not??
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 as_tab # as_tabular (returns an array of records/hashes)
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 as_tab(ular) to CityBase for all classes - why? why not??
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 as_tab # as_tabular (returns an array of records/hashes)
17
+ def as_row
18
18
 
19
19
  ## todo: add tags too??
20
20
  data = { key: country.key,
@@ -5,7 +5,7 @@ module WorldDb
5
5
  # sync version w/ sport.db n friends - why? why not?
6
6
  MAJOR = 2 ## todo: namespace inside version or something - why? why not??
7
7
  MINOR = 3
8
- PATCH = 5
8
+ PATCH = 6
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
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.5
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-28 00:00:00.000000000 Z
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.1.2
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.1.2
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.3.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.3.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.3.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.3.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.2.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.2.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.1.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.1.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.0
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.0
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.models
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: 1.9.2
268
+ version: '2.3'
269
269
  required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  requirements:
271
271
  - - ">="