sportdb 1.9.9 → 1.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sportdb/models/team.rb +2 -3
- data/lib/sportdb/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: ed1aa660c6f5bcc10d6197bbf48494c6fe6e0e3f
|
4
|
+
data.tar.gz: 6ab3685c798fff2e82e94af70b5d8c9e048d8db2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2f5811eb0d21e5f3ec58df3c9c087998017fc716a41b4105c96a31164fed79018e922367a14163dac30ced4151ba6bb93ed006c5bb8e270f5fd41458fd93043
|
7
|
+
data.tar.gz: dd6220cddf7565946b24b2e471efba17e93c29f47366abed585bd3bea4d3556190d557ebcbf00bdc64fe6597e98e5e3e53eee144bbb6772ea8f6809dfc94167c
|
data/lib/sportdb/models/team.rb
CHANGED
@@ -86,9 +86,8 @@ class Team < ActiveRecord::Base
|
|
86
86
|
new_attributes[ :web ] = value
|
87
87
|
elsif value =~ /^[A-Z][A-Z0-9][A-Z0-9_]?$/ ## assume two or three-letter code e.g. FCB, RBS, etc.
|
88
88
|
new_attributes[ :code ] = value
|
89
|
-
elsif value =~ /^[a-z]{2}$/ ## assume two-letter country key e.g. at,de,mx,etc.
|
90
|
-
## fix:
|
91
|
-
## fix: if country does NOT match / NOT found - just coninue w/ next match!!!!
|
89
|
+
elsif value =~ /^[a-z]{2,3}$/ ## assume two or three-letter country key e.g. at,de,mx, or eng,sco,wal,nir etc.
|
90
|
+
## fix: if country does NOT match / NOT found - just continue w/ next match!!!!
|
92
91
|
# - just issue an error/warn do NOT crash
|
93
92
|
value_country = Country.find_by_key!( value )
|
94
93
|
new_attributes[ :country_id ] = value_country.id
|
data/lib/sportdb/version.rb
CHANGED