bank_statement_parser 0.1.9 → 0.1.10

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
  SHA1:
3
- metadata.gz: 1c23abde5866bed7be9cdbc3caa19cb2fa8fc7c7
4
- data.tar.gz: 01b6523c371422b1c9ff218791529ce8d9be074c
3
+ metadata.gz: c4824822606b202c670a5f583f485efc5a7e3f12
4
+ data.tar.gz: 76988008188a7f7c4fd9e245f14f53d9b5f72345
5
5
  SHA512:
6
- metadata.gz: 78567e7c4793ae69df5c3976fb7b2409b37d4ad9d5911c131d70aed759e58b8753b8a7382db15b8debff1087a3f4ff3ff36b1a3047056d9ccc67b94a238eef57
7
- data.tar.gz: d12dff8949e189cf9f3a68ce74f3546da4aa200d4b1529039ef13bc2e33da7ad3831a3dbac16c0eeb0164edef5f121694836471a5372dd4bb6d2c8aa0a5519fb
6
+ metadata.gz: 5a39787948e7f43f9898b189eb050bf4a6439ae02621fbc29a057d6d25291c6e354297ddac03a59e9ef194f808cc9958ed3f603fae8faa8a84d72dfc57b891d4
7
+ data.tar.gz: 973a1dbf14ff28d330e46642c7f6bb28366b66b2d0c5d6a72d58ec5b4878737ba364431516475457e0a1d2db1dd323cc1f47b7be6e79eb6a62158c91ac77cb10
@@ -56,7 +56,10 @@ module BankStatementParser
56
56
  # Grab the full text file content (utf-8)
57
57
  File.read(path)
58
58
  end
59
- when File, IO, Pathname, Tempfile, URI
59
+ when File, IO, Tempfile
60
+ path.rewind
61
+ path.read
62
+ when Pathname, URI
60
63
  path.read
61
64
  else
62
65
  raise ArgumentError, "Expected String, IO, Pathname or URI"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bank_statement_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Dawson