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 +4 -4
- data/.gitignore +1 -0
- data/exe/ofx_reader +1 -1
- data/lib/ofx_reader/parser/base.rb +2 -1
- data/lib/ofx_reader/version.rb +1 -1
- metadata +2 -3
- data/Gemfile.lock +0 -66
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79990d448191cba676690578edb5be8775840646f311aafe8cd4bcc206aa8e3c
|
|
4
|
+
data.tar.gz: f8fd2bc0963eae4bea7c1bb3a8248ff4fc7598730f8af4be61fb6025358c5aad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d50965f764209440beedf1b57274e2c135266449f25e259a2300a63f7957115443db332a68bec60e6371df70ed4c465139296867c6e84e5efe7b3d6173b0af77
|
|
7
|
+
data.tar.gz: d63a1274ea678ed752ce4e554e04bae6a8174eccc57d808a0f4892ec2d94018a8c89c8a16023440295d1995580de5723f33ddc806c3b346a513c296b79999435
|
data/.gitignore
CHANGED
data/exe/ofx_reader
CHANGED
|
@@ -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
|
data/lib/ofx_reader/version.rb
CHANGED
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.
|
|
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:
|
|
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
|
data/Gemfile.lock
DELETED
|
@@ -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
|