masterdata 0.2.0 → 0.4.0
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/Gemfile.lock +1 -1
- data/lib/masterdata/version.rb +1 -1
- data/lib/masterdata.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8c3b2f7f046f6f22bcf237ba1ac1543e2ca01348a2cc371001356e91f3b1551
|
4
|
+
data.tar.gz: 866ab593a137cec9ef77e63d05d0bf99a100d11b61e0e2e6674939d5f20ed6f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8e996d0166d6a6d17d9ca6a53a543ebd13c5aea4ae6ebd3b8b23ddbba8272cc1ebc717f6ab8f373909dea780479a05ebc909b981042a39a5b4ea9d17119dc55
|
7
|
+
data.tar.gz: 3a814e22590a8ed808cb681a0d9e42fc1b2c0181dc6be566cc63855cdb3732c218e5d4f339c3a631a1f5499b5caefd8479ff34b3aa4beb5740279e2a308cf56f
|
data/Gemfile.lock
CHANGED
data/lib/masterdata/version.rb
CHANGED
data/lib/masterdata.rb
CHANGED
@@ -46,7 +46,7 @@ module Masterdata
|
|
46
46
|
return alpha_country_codes , abbre_country_codes
|
47
47
|
end
|
48
48
|
|
49
|
-
def
|
49
|
+
def val_countrystate(csv_data,col,countrycol)
|
50
50
|
col = col.map{|e| e.to_sym}
|
51
51
|
state_names = []
|
52
52
|
csv_data[countrycol.to_sym].map{|code| if code.size==2 then state_names << CS.states(code.downcase.to_sym).values() end} #states names getting
|
@@ -70,7 +70,7 @@ module Masterdata
|
|
70
70
|
return col.map{|e| csv_data[e]}
|
71
71
|
end
|
72
72
|
|
73
|
-
def
|
73
|
+
def val_dialcode(csv_data,dialcol)
|
74
74
|
country_dail_codes = @@country_codes.map(&:upcase).map{|codes| IsoCountryCodes.find(codes).calling[1..-1]} # collecting all country dial codes from countries
|
75
75
|
val_country_dail_codes = []
|
76
76
|
csv_data[dialcol.to_sym].each do |i|
|