blanko 0.1.2 → 0.1.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: e25ba291ffc91f1e32975dd90da73c126c243cc0
4
- data.tar.gz: 217a252cc8c5f6dda563a427eacf756578e79aeb
3
+ metadata.gz: 3f5d6b5725ff5b4c7fa9bbc639eb5340948b8ff5
4
+ data.tar.gz: be2fb1a5eb620e592128887af6255f17c0804a15
5
5
  SHA512:
6
- metadata.gz: 8890e9cd6ef9ab82ff32cce0c6dff44500dd826c35386b82005fbfa2c32f6a44da87657d1c71c3b8c78bc0ffd5e3c3fc7add5d2c26c81817c126fa5df9306212
7
- data.tar.gz: 605ba5242ec42bc378b12f1b384367aa314275190c99b33038f362b3713d4479fa98c4e3501f8c61b3e845e16c2b7e48059ab8f0a2fdfd169a7bba6bfc6ebc72
6
+ metadata.gz: 04c0f76d5419c88f7a21670389e566b1648dfb78531e680e35e69a27bf7de6c3b631e9f23d60201d370a7886709175189f41194906621e75ee538869668fe335
7
+ data.tar.gz: c0c2339d5b0c6eade907042e048787affb72b71d02fcc12ef706e3e7ece12b2d292096b5ba00faf55697140d2dd54f72fe21fb4cf133d383fc24012f9af9d932
@@ -12,7 +12,7 @@ module Blanko
12
12
 
13
13
  @report.data.each do |row|
14
14
  columns.each do |column|
15
- value = Money.from_string(row[column])
15
+ value = Money.from_string(row[column].to_s.gsub(/\$/, ''))
16
16
  totals[column] ||= Money.from_string('0')
17
17
  totals[column] += value
18
18
  end
@@ -12,7 +12,7 @@ module Blanko
12
12
  total = Money.from_string('0')
13
13
 
14
14
  input_colums.each do |column|
15
- total += Money.from_string(row[column])
15
+ total += Money.from_string(row[column].to_s.gsub(/\$/, ''))
16
16
  end
17
17
 
18
18
  row[output_column] = total
@@ -1,3 +1,3 @@
1
1
  module Blanko
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blanko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bjh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-03 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler