credit-card-sms-parser 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/credit-card-sms-parser.gemspec +1 -1
- data/lib/credit_card_sms_parser.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d23ff05aeda9eb43a82714e54759f4b42ee1dc08
|
4
|
+
data.tar.gz: b6288b7ef769414f22128b874a1c5f662a32840d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f03f6d0f9d00c0f701f4c0fc6b23af6c1a4200b7409ac0dd88cf28d4cdc6a545e350b613f41b8c3310ae4d450a5b4bd94e95ed9b7241dbb6ebaface61d2c41a0
|
7
|
+
data.tar.gz: c4c8a951db205d0c6372bff61b99b0c67d9cc85c333f68d21608c92ff4baff083671534a5bc31e92e4d2e6a3a0a301c63ab7c0a0f7134d66390de2b2cf8a8ed2
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'credit-card-sms-parser'
|
7
|
-
spec.version = '0.2.
|
7
|
+
spec.version = '0.2.1'
|
8
8
|
spec.authors = %w(Hanson Benjamin)
|
9
9
|
spec.email = %w(jehokim@live.com)
|
10
10
|
if spec.respond_to?(:metadata)
|
@@ -27,7 +27,11 @@ class KoreanCreditCardLexer < RLTK::Lexer
|
|
27
27
|
rule(/\d\d:\d\d/) {|t| [:TIME, t]}
|
28
28
|
rule(/일시불/) { :TYPE }
|
29
29
|
rule(/주식회사\p{Hangul}+/) {|t| [:SHOP, t[4..-1]]}
|
30
|
-
rule(/^\p{Hangul}+( +\p{Hangul}+)
|
30
|
+
rule(/^\p{Hangul}+( +\p{Hangul}+)*?$/) { |t|
|
31
|
+
t.chomp!(' 사용')
|
32
|
+
t.chomp!(' 일시불')
|
33
|
+
[:SHOP, t.strip]
|
34
|
+
}
|
31
35
|
rule(/[A-Za-z\p{Hangul}]+/) {|t| [:SHOP, t.strip]}
|
32
36
|
rule(/\//) {|t| [:SLASH, t]}
|
33
37
|
rule(/[\p{L}\p{P}]+/) {|t| [:WORD, t]}
|
@@ -40,6 +44,7 @@ module CreditCardSmsParser
|
|
40
44
|
'15776200' => '현대카드',
|
41
45
|
'18001111' => '하나카드',
|
42
46
|
'16449999' => '국민카드',
|
47
|
+
'15881788' => '국민체크카드',
|
43
48
|
'15884000' => '농협BC카드',
|
44
49
|
}
|
45
50
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credit-card-sms-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hanson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rltk
|