ofx_reader 0.1.5 → 0.1.6

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
  SHA256:
3
- metadata.gz: 0eedfe6e2580b02553eb3c8d49fd989463cd634383f3946bb2633a3577ca8d4c
4
- data.tar.gz: 4d13891a5d027c7834d3f8c0e80a4d99787dd2bfb31cb11ea29adbab73712e56
3
+ metadata.gz: 79990d448191cba676690578edb5be8775840646f311aafe8cd4bcc206aa8e3c
4
+ data.tar.gz: f8fd2bc0963eae4bea7c1bb3a8248ff4fc7598730f8af4be61fb6025358c5aad
5
5
  SHA512:
6
- metadata.gz: d17f6667c5478fcb3f029772843e4dad7c41018a3b3a5559a34b2123113a1369492213c149ba589c4f134b105199165ea3034147f5bb46ca05053ed5d5f7db01
7
- data.tar.gz: 85e111f3eb5b4bc1d08f7940592ec8442f73c3905d319adb248a0e54fec93462ac48486d6d15c8f4493b50969033a21615c0d52e26ab09212f87ff6664ab8db7
6
+ metadata.gz: d50965f764209440beedf1b57274e2c135266449f25e259a2300a63f7957115443db332a68bec60e6371df70ed4c465139296867c6e84e5efe7b3d6173b0af77
7
+ data.tar.gz: d63a1274ea678ed752ce4e554e04bae6a8174eccc57d808a0f4892ec2d94018a8c89c8a16023440295d1995580de5723f33ddc806c3b346a513c296b79999435
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  .rspec_status
12
12
  *.gem
13
13
  .DS_Store
14
+ Gemfile.lock
@@ -11,7 +11,7 @@ if ARGV[0]
11
11
  pp ofx.account
12
12
  pp ofx.transactions
13
13
  else
14
- puts "File doen't exist"
14
+ puts "File doesn't exist"
15
15
  end
16
16
  else
17
17
  puts "No file provided"
@@ -28,12 +28,13 @@ module OFXReader
28
28
  def parse_body(body)
29
29
  doc = ::Nokogiri::XML(body)
30
30
  if doc.errors.any?
31
+ body.gsub!(/[?=\w](<\/\w+>)/, '')
31
32
  body.gsub!(/>\s+</m, '><')
32
33
  body.gsub!(/\s+</m, '<')
33
34
  body.gsub!(/>\s+/m, '>')
34
35
  body.gsub!(/<(\w+?)>([^<]+)/m, '<\1>\2</\1>')
36
+ doc = ::Nokogiri::XML(body)
35
37
  end
36
- doc = ::Nokogiri::XML(body)
37
38
 
38
39
  parser.new(doc, strict).parse
39
40
  end
@@ -1,3 +1,3 @@
1
1
  module OFXReader
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ofx_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francisco Martins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-22 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -106,7 +106,6 @@ files:
106
106
  - ".rspec"
107
107
  - ".travis.yml"
108
108
  - Gemfile
109
- - Gemfile.lock
110
109
  - README.md
111
110
  - Rakefile
112
111
  - bin/console
@@ -1,66 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ofx_reader (0.1.4)
5
- activesupport (> 4)
6
- nokogiri (~> 1.8)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activesupport (5.1.4)
12
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (~> 0.7)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- coderay (1.1.2)
17
- concurrent-ruby (1.0.5)
18
- diff-lcs (1.3)
19
- docile (1.1.5)
20
- i18n (0.9.1)
21
- concurrent-ruby (~> 1.0)
22
- json (2.1.0)
23
- method_source (0.9.0)
24
- mini_portile2 (2.3.0)
25
- minitest (5.10.3)
26
- nokogiri (1.8.1)
27
- mini_portile2 (~> 2.3.0)
28
- pry (0.11.3)
29
- coderay (~> 1.1.0)
30
- method_source (~> 0.9.0)
31
- rake (10.5.0)
32
- rspec (3.7.0)
33
- rspec-core (~> 3.7.0)
34
- rspec-expectations (~> 3.7.0)
35
- rspec-mocks (~> 3.7.0)
36
- rspec-core (3.7.0)
37
- rspec-support (~> 3.7.0)
38
- rspec-expectations (3.7.0)
39
- diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.7.0)
41
- rspec-mocks (3.7.0)
42
- diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.7.0)
44
- rspec-support (3.7.0)
45
- simplecov (0.15.1)
46
- docile (~> 1.1.0)
47
- json (>= 1.8, < 3)
48
- simplecov-html (~> 0.10.0)
49
- simplecov-html (0.10.2)
50
- thread_safe (0.3.6)
51
- tzinfo (1.2.4)
52
- thread_safe (~> 0.1)
53
-
54
- PLATFORMS
55
- ruby
56
-
57
- DEPENDENCIES
58
- bundler (~> 1.16)
59
- ofx_reader!
60
- pry (~> 0.11)
61
- rake (~> 10.0)
62
- rspec (~> 3.0)
63
- simplecov (~> 0.15)
64
-
65
- BUNDLED WITH
66
- 1.16.0