propinsi 0.0.3 → 0.0.4
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/propinsi.rb +2 -2
- data/lib/propinsi/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: 3b94458b95ab29da0dfa000ad425763a8ceeec88
|
|
4
|
+
data.tar.gz: 274573ba27bfc0f6bdfc06606d5a9cae6fa5cbbc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86c82436ef29b2459098941d0157742ca3a014287d7209ba7157ee57cd9a024895b8a811d2332bad3bbbf125d893dfe4294946934cdb92e7cce6bd1495242b76
|
|
7
|
+
data.tar.gz: ae1d7334a06f7652c94be96e938470966442c45f0f1f0af416ef0edc10af0ffa7bf2de7d562d404a55c308f4b2db7fe9340756a436dd452cc39fbddbb022dceb
|
data/lib/propinsi.rb
CHANGED
|
@@ -23,7 +23,7 @@ module Propinsi
|
|
|
23
23
|
def Propinsi.findkota(input)
|
|
24
24
|
kota=self.kota;
|
|
25
25
|
index=kota.each_with_index do |row,idx|
|
|
26
|
-
break idx if(input.to_s == row["id"].to_s || row["name"].to_s.downcase
|
|
26
|
+
break idx if(input.to_s == row["id"].to_s || row["name"].to_s.downcase[input.to_s.downcase])
|
|
27
27
|
end
|
|
28
28
|
if index.kind_of?(Array)
|
|
29
29
|
return false;
|
|
@@ -36,7 +36,7 @@ module Propinsi
|
|
|
36
36
|
def Propinsi.findpropinsi(input)
|
|
37
37
|
prop=self.all
|
|
38
38
|
index=prop.each_with_index do |row,idx|
|
|
39
|
-
break idx if(input.to_s == row["id"].to_s || row["name"].to_s.downcase
|
|
39
|
+
break idx if(input.to_s == row["id"].to_s || row["name"].to_s.downcase[input.to_s.downcase])
|
|
40
40
|
end
|
|
41
41
|
if index.kind_of?(Array)
|
|
42
42
|
return false;
|
data/lib/propinsi/version.rb
CHANGED