Skip to content

Commit

Permalink
Merge pull request #197 from razorpay/release/1.5.6
Browse files Browse the repository at this point in the history
Release/1.5.6
  • Loading branch information
Nemo authored Oct 19, 2020
2 parents b51f2cd + bde30f1 commit c2892b8
Show file tree
Hide file tree
Showing 19 changed files with 243 additions and 122 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## UNRELEASED

## 1.5.6

- Metadata updates

## 1.5.5

### Changed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ This is part of the IFSC toolset released by Razorpay.
You can find more details about the entire release at
[ifsc.razorpay.com](https://ifsc.razorpay.com).

[![wercker status](https://app.wercker.com/status/bc9b22047e1b8eb55ce98ba451d7b504/s/master 'wercker status')](https://app.wercker.com/project/byKey/bc9b22047e1b8eb55ce98ba451d7b504) [![](https://images.microbadger.com/badges/image/razorpay/ifsc:1.5.2.svg)](https://microbadger.com/images/razorpay/ifsc:1.5.2) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![wercker status](https://app.wercker.com/status/bc9b22047e1b8eb55ce98ba451d7b504/s/master 'wercker status')](https://app.wercker.com/project/byKey/bc9b22047e1b8eb55ce98ba451d7b504) [![](https://images.microbadger.com/badges/image/razorpay/ifsc:1.5.6.svg)](https://microbadger.com/images/razorpay/ifsc:1.5.6) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

[![](https://images.microbadger.com/badges/version/razorpay/ifsc:1.5.2.svg)](https://microbadger.com/images/razorpay/ifsc:1.5.2) [![npm version](https://badge.fury.io/js/ifsc.svg)](https://badge.fury.io/js/ifsc) [![Gem Version](https://badge.fury.io/rb/ifsc.svg)](https://badge.fury.io/rb/ifsc) [![PHP version](https://badge.fury.io/ph/razorpay%2Fifsc.svg)](https://badge.fury.io/ph/razorpay%2Fifsc) [![Hex pm](http://img.shields.io/hexpm/v/ifsc.svg)](https://hex.pm/packages/ifsc)
[![](https://images.microbadger.com/badges/version/razorpay/ifsc:1.5.6.svg)](https://microbadger.com/images/razorpay/ifsc:1.5.6) [![npm version](https://badge.fury.io/js/ifsc.svg)](https://badge.fury.io/js/ifsc) [![Gem Version](https://badge.fury.io/rb/ifsc.svg)](https://badge.fury.io/rb/ifsc) [![PHP version](https://badge.fury.io/ph/razorpay%2Fifsc.svg)](https://badge.fury.io/ph/razorpay%2Fifsc) [![Hex pm](http://img.shields.io/hexpm/v/ifsc.svg)](https://hex.pm/packages/ifsc)

## Dataset

Expand Down
4 changes: 2 additions & 2 deletions ifsc.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |s|
s.name = 'ifsc'
s.version = '1.5.5'
s.date = '2020-07-08'
s.version = '1.5.6'
s.date = '2020-09-23'
s.summary = 'IFSC code database to help you validate IFSC codes'
s.description = 'A simple gem by @razorpay to help you validate your IFSC codes. IFSC codes are bank codes within India'
s.authors = ['Abhay Rana', 'Nihal Gonsalves']
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule IFSC.Mixfile do
def project do
[
app: :ifsc,
version: "1.5.5",
version: "1.5.6",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
description: description(),
Expand Down
145 changes: 72 additions & 73 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "ifsc",
"version": "1.5.5",
"version": "1.5.6",
"description": "This is part of the IFSC toolset released by Razorpay. You can find more details about the entire release at [ifsc.razorpay.com](https://ifsc.razorpay.com). Includes only a validation library as of now.",
"main": "src/node/index.js",
"directories": {
"test": "tests"
},
"dependencies": {
"request": "^2.88.0"
"request": "^2.88.2"
},
"devDependencies": {},
"scripts": {
Expand Down
8 changes: 7 additions & 1 deletion scraper/scripts/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def parse_neft(banks)
row = row.to_h
scan_contact = row['CONTACT'].to_s.gsub(/[\s-]/, '').scan(/^(\d+)\D?/).last
row['CONTACT'] = scan_contact.nil? || (scan_contact == 0) || (scan_contact == '0') || (scan_contact.is_a?(Array) && (scan_contact == ['0'])) ? nil : scan_contact.first

row['MICR'] = row['MICR CODE']
row.delete 'MICR CODE'
row.delete 'STD CODE'
row['ADDRESS'] = row['ADDRESS'].to_s.strip
row['IFSC'] = row['IFSC'].upcase.gsub(/[^0-9A-Za-z]/, '')
codes.add row['IFSC']
Expand Down Expand Up @@ -224,7 +228,7 @@ def apply_bank_patches(dataset)
if dataset.key? bankcode
dataset[bankcode].merge!(patch)
else
log "#{bankcode} not found", :critical
log "#{bankcode} not found in the list of ACH banks while applying patch", :info
end
end
end
Expand All @@ -233,6 +237,7 @@ def apply_bank_patches(dataset)

def apply_patches(dataset)
Dir.glob('../../src/patches/ifsc/*.yml').each do |patch|
log "Applying #{patch}", :debug
data = YAML.safe_load(File.read(patch))

codes = data['ifsc']
Expand All @@ -241,6 +246,7 @@ def apply_patches(dataset)
when 'patch'
patch = data['patch']
codes.each do |code|
log "Patching #{code}"
dataset[code].merge!(patch) if dataset.has_key? code
end
when 'delete'
Expand Down
2 changes: 1 addition & 1 deletion src/IFSC.json

Large diffs are not rendered by default.

Loading

0 comments on commit c2892b8

Please sign in to comment.