money_parser 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 212f37d8a4e447462e2056188bdd5fbba8f76492
4
- data.tar.gz: df60980fac848ad0b3534d4c7a3d51a6553dba38
3
+ metadata.gz: 68e7c80a89bfbcca45984e23eff0fdd1946dcbbc
4
+ data.tar.gz: de28227a8d3ebff90c4d26a68cfa23872fce44ea
5
5
  SHA512:
6
- metadata.gz: 9e07831a478ad3ce79f50229a03f4cff8109542dd23151a743215e845c2e08e44ccc6caa914d12d9f312543e07ae6483f35943a1168e83d9a76e7c874e78ba52
7
- data.tar.gz: 78de433426e0ce7e2daa9302d84b32d62be8fd64ff9c2cfd10582c4d0d2d40f369266ca93ccff18964d663b6b54fb0ad84e67c868523b5a084e171874f7ebee7
6
+ metadata.gz: 8776f56409787218053ad795a882b94306e06721e505962a1fc3cf01bd31c834603567eebe4b6b7062a71b3e8213eb809cce81f217b29ac15ddf97e3b84844f1
7
+ data.tar.gz: 17b7c8e58ba6d1d1ed88b391b4ef011f4ef13d717ef2f487c3714c1f25f912c3ec3910d3d6c6d0c946f591b3cf3e849c26eca578e1957517e6740e896c783e9f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.3
data/lib/money_parser.rb CHANGED
@@ -29,6 +29,7 @@ module MoneyParser
29
29
  normalized = if chunks.size == 1
30
30
  cleaned_up
31
31
  else
32
+ return nil if chunks[-1].nil?
32
33
  if chunks[-1].size > 2
33
34
  chunks.join
34
35
  else
data/money_parser.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'money_parser'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.homepage = 'https://github.com/leikind/money_parser'
5
- s.date = '2014-03-02'
5
+ s.date = '2014-05-22'
6
6
  s.summary = 'Tries to parse various crazy money formats'
7
7
  s.description = 'Tries to parse various crazy money formats'
8
8
  s.authors = ['Yuri Leikind']