worlddb-compat 0.1.0 → 0.1.1
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/lib/worlddb/compat/city.rb +4 -4
- data/lib/worlddb/compat/continent.rb +4 -4
- data/lib/worlddb/compat/country.rb +4 -4
- data/lib/worlddb/compat/lang.rb +2 -2
- data/lib/worlddb/compat/state.rb +4 -4
- data/lib/worlddb/compat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37a153c718033711d3a4e2823fec60aead504894
|
4
|
+
data.tar.gz: 400cf35d64199bb5418ac0121e06676f64b0d6d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc1606bf4e19aca686f26344a8246b774433eb5494c4681c2b27ad184845ed98f3451efce4f30bb7fa3a59c07ae651e4d049c83070416e6ba95a495e1f3c9cd2
|
7
|
+
data.tar.gz: 53c8e31ea0d79a97e49d291c65d8ccf74210437329ed13e347c655467c8762434384e8caf9b430b648bce5cc359fa423d1d603e2d7ba5f44c5dfb9ee104a1098
|
data/lib/worlddb/compat/city.rb
CHANGED
@@ -9,14 +9,14 @@ module WorldDb
|
|
9
9
|
|
10
10
|
class City
|
11
11
|
|
12
|
-
def title() name; end
|
13
|
-
def title=(value) self.name = value; end
|
12
|
+
## def title() name; end
|
13
|
+
## def title=(value) self.name = value; end
|
14
14
|
|
15
15
|
scope :by_title, ->{ order( 'name asc' ) } # order by title (a-z)
|
16
16
|
|
17
17
|
|
18
|
-
def synonyms() alt_names; end
|
19
|
-
def synonyms=(value) self.alt_names = value; end
|
18
|
+
## def synonyms() alt_names; end
|
19
|
+
## def synonyms=(value) self.alt_names = value; end
|
20
20
|
|
21
21
|
def title_w_synonyms( opts={} ) all_names( opts ); end # depreciated: use all_names instead
|
22
22
|
|
@@ -9,13 +9,13 @@ module WorldDb
|
|
9
9
|
|
10
10
|
class Continent
|
11
11
|
|
12
|
-
def title() name; end
|
13
|
-
def title=(value) self.name = value; end
|
12
|
+
## def title() name; end
|
13
|
+
## def title=(value) self.name = value; end
|
14
14
|
|
15
15
|
scope :by_title, ->{ order( 'name asc' ) } # order by title (a-z)
|
16
16
|
|
17
|
-
def synonyms() alt_names; end
|
18
|
-
def synonyms=(value) self.alt_names = value; end
|
17
|
+
## def synonyms() alt_names; end
|
18
|
+
## def synonyms=(value) self.alt_names = value; end
|
19
19
|
|
20
20
|
end # class Continent
|
21
21
|
|
@@ -10,8 +10,8 @@ module WorldDb
|
|
10
10
|
|
11
11
|
class Country
|
12
12
|
|
13
|
-
def title() name; end
|
14
|
-
def title=(value) self.name = value; end
|
13
|
+
## def title() name; end
|
14
|
+
## def title=(value) self.name = value; end
|
15
15
|
|
16
16
|
scope :by_title, ->{ order( 'name asc' ) } # order by title (a-z)
|
17
17
|
|
@@ -22,8 +22,8 @@ class Country
|
|
22
22
|
def iso3=(value) self.alpha3 = value; end
|
23
23
|
|
24
24
|
|
25
|
-
def synonyms() alt_names; end
|
26
|
-
def synonyms=(value) self.alt_names = value; end
|
25
|
+
## def synonyms() alt_names; end
|
26
|
+
## def synonyms=(value) self.alt_names = value; end
|
27
27
|
|
28
28
|
def title_w_synonyms( opts={} ) all_names( opts ); end # depreciated: use all_names instead
|
29
29
|
|
data/lib/worlddb/compat/lang.rb
CHANGED
@@ -12,8 +12,8 @@ class Lang
|
|
12
12
|
|
13
13
|
#####################################################
|
14
14
|
# alias for name (remove! add depreciated api call ???)
|
15
|
-
def title() name; end
|
16
|
-
def title=(value) self.name = value; end
|
15
|
+
## def title() name; end
|
16
|
+
## def title=(value) self.name = value; end
|
17
17
|
|
18
18
|
scope :by_title, ->{ order( 'name asc' ) } # order by title (a-z)
|
19
19
|
|
data/lib/worlddb/compat/state.rb
CHANGED
@@ -9,13 +9,13 @@ module WorldDb
|
|
9
9
|
|
10
10
|
class State
|
11
11
|
|
12
|
-
def title() name; end
|
13
|
-
def title=(value) self.name = value; end
|
12
|
+
## def title() name; end
|
13
|
+
## def title=(value) self.name = value; end
|
14
14
|
|
15
15
|
scope :by_title, ->{ order( 'name asc' ) } # order by title (a-z)
|
16
16
|
|
17
|
-
def synonyms() alt_names; end
|
18
|
-
def synonyms=(value) self.alt_names = value; end
|
17
|
+
## def synonyms() alt_names; end
|
18
|
+
## def synonyms=(value) self.alt_names = value; end
|
19
19
|
|
20
20
|
def title_w_synonyms( opts={} ) all_names( opts ); end # depreciated: use all_names instead
|
21
21
|
|