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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c1878ec040ed832d9e36afb1b7a8a10c2b0bddec1c70143301cbeee1dde62f8
4
- data.tar.gz: e2562cb53beb1dde10752c2f3ab50988df9fcab4db56f5e403dfe621f89787ae
3
+ metadata.gz: e8c3b2f7f046f6f22bcf237ba1ac1543e2ca01348a2cc371001356e91f3b1551
4
+ data.tar.gz: 866ab593a137cec9ef77e63d05d0bf99a100d11b61e0e2e6674939d5f20ed6f8
5
5
  SHA512:
6
- metadata.gz: 736944550221fb7468d3f9a2c9f275e585dcfe3bc39178ec564e9faebdff5f6f2c1b4101cdc997723c80a1d800126c32efc95d2777c79856ec03f7138edde4fb
7
- data.tar.gz: 9533cbe9e12fa05e73066a499c5b32e9080a33cc6e63dda994fc7e9b592ef060315a0325ef406525745887b46f2e4c50a8917f5a08488d59b02c1c1d498d9174
6
+ metadata.gz: e8e996d0166d6a6d17d9ca6a53a543ebd13c5aea4ae6ebd3b8b23ddbba8272cc1ebc717f6ab8f373909dea780479a05ebc909b981042a39a5b4ea9d17119dc55
7
+ data.tar.gz: 3a814e22590a8ed808cb681a0d9e42fc1b2c0181dc6be566cc63855cdb3732c218e5d4f339c3a631a1f5499b5caefd8479ff34b3aa4beb5740279e2a308cf56f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- masterdata (0.2.0)
4
+ masterdata (0.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Masterdata
4
- VERSION = "0.2.0"
4
+ VERSION = "0.4.0"
5
5
  end
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 val_country_state_names(csv_data,col,countrycol)
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 val_dial_code(csv_data,dialcol)
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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: masterdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sairam6267