ofx_br 0.3.3 → 0.3.9

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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +2 -2
  3. data/lib/{ofx_br → ofx}/parser/ofx102.rb +13 -8
  4. data/lib/{ofx_br → ofx}/parser.rb +1 -3
  5. data/lib/ofx/statement.rb +11 -0
  6. data/lib/{ofx_br → ofx}/version.rb +1 -1
  7. data/lib/ofx.rb +34 -0
  8. data/spec/{ofx_br → ofx}/ofx102_spec.rb +1 -1
  9. data/spec/{ofx_br → ofx}/ofx_parser_spec.rb +53 -18
  10. data/spec/{ofx_br → ofx}/transaction_spec.rb +53 -34
  11. data/spec/spec_helper.rb +8 -3
  12. metadata +109 -86
  13. data/.github/dependabot.yml +0 -13
  14. data/.gitignore +0 -4
  15. data/.rspec +0 -1
  16. data/.travis.yml +0 -9
  17. data/Gemfile +0 -2
  18. data/Gemfile.lock +0 -50
  19. data/lib/ofx_br/parser/ofx103.rb +0 -7
  20. data/lib/ofx_br/statement.rb +0 -5
  21. data/lib/ofx_br.rb +0 -33
  22. data/ofx_br.gemspec +0 -32
  23. data/spec/fixtures/avatar.gif +0 -0
  24. data/spec/fixtures/bb.ofx +0 -700
  25. data/spec/fixtures/bradesco.ofx +0 -96
  26. data/spec/fixtures/creditcard.ofx +0 -79
  27. data/spec/fixtures/dtsof_balance_issue.ofx +0 -54
  28. data/spec/fixtures/error.ofx +0 -24
  29. data/spec/fixtures/invalid_version.ofx +0 -308
  30. data/spec/fixtures/nd-amex-sample.ofx +0 -12
  31. data/spec/fixtures/sample.ofx +0 -315
  32. data/spec/fixtures/santander.ofx +0 -91
  33. data/spec/fixtures/utf8.ofx +0 -308
  34. data/spec/fixtures/v103.ofx +0 -80
  35. data/spec/fixtures/v211.ofx +0 -85
  36. data/spec/ofx_br/ofx103_spec.rb +0 -50
  37. /data/lib/{ofx_br → ofx}/account.rb +0 -0
  38. /data/lib/{ofx_br → ofx}/balance.rb +0 -0
  39. /data/lib/{ofx_br → ofx}/errors.rb +0 -0
  40. /data/lib/{ofx_br → ofx}/foundation.rb +0 -0
  41. /data/lib/{ofx_br → ofx}/parser/ofx211.rb +0 -0
  42. /data/lib/{ofx_br → ofx}/sign_on.rb +0 -0
  43. /data/lib/{ofx_br → ofx}/status.rb +0 -0
  44. /data/lib/{ofx_br → ofx}/transaction.rb +0 -0
  45. /data/spec/{ofx_br → ofx}/account_spec.rb +0 -0
  46. /data/spec/{ofx_br → ofx}/ofx211_spec.rb +0 -0
  47. /data/spec/{ofx_br → ofx}/ofx_spec.rb +0 -0
  48. /data/spec/{ofx_br → ofx}/sign_on_spec.rb +0 -0
  49. /data/spec/{ofx_br → ofx}/statement_spec.rb +0 -0
  50. /data/spec/{ofx_br → ofx}/status_spec.rb +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ofx_br
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
@@ -9,30 +9,78 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-18 00:00:00.000000000 Z
12
+ date: 2026-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: byebug
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 11.1.3
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 11.1.3
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: 13.0.6
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 13.0.6
42
+ - !ruby/object:Gem::Dependency
43
+ name: rspec
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '3.10'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '3.10'
14
56
  - !ruby/object:Gem::Dependency
15
57
  name: nokogiri
16
58
  requirement: !ruby/object:Gem::Requirement
17
59
  requirements:
18
60
  - - ">="
19
61
  - !ruby/object:Gem::Version
20
- version: '0'
62
+ version: 1.13.1
63
+ - - "<"
64
+ - !ruby/object:Gem::Version
65
+ version: 1.18.11
21
66
  type: :runtime
22
67
  prerelease: false
23
68
  version_requirements: !ruby/object:Gem::Requirement
24
69
  requirements:
25
70
  - - ">="
26
71
  - !ruby/object:Gem::Version
27
- version: '0'
72
+ version: 1.13.1
73
+ - - "<"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.18.11
28
76
  - !ruby/object:Gem::Dependency
29
- name: pry-byebug
77
+ name: bigdecimal
30
78
  requirement: !ruby/object:Gem::Requirement
31
79
  requirements:
32
80
  - - ">="
33
81
  - !ruby/object:Gem::Version
34
82
  version: '0'
35
- type: :development
83
+ type: :runtime
36
84
  prerelease: false
37
85
  version_requirements: !ruby/object:Gem::Requirement
38
86
  requirements:
@@ -40,13 +88,27 @@ dependencies:
40
88
  - !ruby/object:Gem::Version
41
89
  version: '0'
42
90
  - !ruby/object:Gem::Dependency
43
- name: rake
91
+ name: erb
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 4.0.4
97
+ type: :runtime
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 4.0.4
104
+ - !ruby/object:Gem::Dependency
105
+ name: nkf
44
106
  requirement: !ruby/object:Gem::Requirement
45
107
  requirements:
46
108
  - - ">="
47
109
  - !ruby/object:Gem::Version
48
110
  version: '0'
49
- type: :development
111
+ type: :runtime
50
112
  prerelease: false
51
113
  version_requirements: !ruby/object:Gem::Requirement
52
114
  requirements:
@@ -54,22 +116,28 @@ dependencies:
54
116
  - !ruby/object:Gem::Version
55
117
  version: '0'
56
118
  - !ruby/object:Gem::Dependency
57
- name: rspec
119
+ name: stringio
58
120
  requirement: !ruby/object:Gem::Requirement
59
121
  requirements:
60
122
  - - "~>"
61
123
  - !ruby/object:Gem::Version
62
- version: '3.10'
63
- type: :development
124
+ version: 3.1.7
125
+ type: :runtime
64
126
  prerelease: false
65
127
  version_requirements: !ruby/object:Gem::Requirement
66
128
  requirements:
67
129
  - - "~>"
68
130
  - !ruby/object:Gem::Version
69
- version: '3.10'
70
- description: " A simple OFX (Open Financial Exchange) parser built on top of Nokogiri.\n
71
- \ Currently supports OFX 102, 200 and 211.\n \n Usage:\n \n OFX(\"sample.ofx\")
72
- do |ofx|\n p ofx\n end\n"
131
+ version: 3.1.7
132
+ description: |
133
+ A simple OFX (Open Financial Exchange) parser built on top of Nokogiri.
134
+ Currently supports OFX 102, 200 and 211.
135
+
136
+ Usage:
137
+
138
+ OFX('sample.ofx') do |ofx|
139
+ p ofx
140
+ end
73
141
  email:
74
142
  - fnando.vieira@gmail.com
75
143
  - anna.cruz@gmail.com
@@ -77,55 +145,34 @@ executables: []
77
145
  extensions: []
78
146
  extra_rdoc_files: []
79
147
  files:
80
- - ".github/dependabot.yml"
81
- - ".gitignore"
82
- - ".rspec"
83
- - ".travis.yml"
84
- - Gemfile
85
- - Gemfile.lock
86
148
  - README.rdoc
87
149
  - Rakefile
88
- - lib/ofx_br.rb
89
- - lib/ofx_br/account.rb
90
- - lib/ofx_br/balance.rb
91
- - lib/ofx_br/errors.rb
92
- - lib/ofx_br/foundation.rb
93
- - lib/ofx_br/parser.rb
94
- - lib/ofx_br/parser/ofx102.rb
95
- - lib/ofx_br/parser/ofx103.rb
96
- - lib/ofx_br/parser/ofx211.rb
97
- - lib/ofx_br/sign_on.rb
98
- - lib/ofx_br/statement.rb
99
- - lib/ofx_br/status.rb
100
- - lib/ofx_br/transaction.rb
101
- - lib/ofx_br/version.rb
102
- - ofx_br.gemspec
103
- - spec/fixtures/avatar.gif
104
- - spec/fixtures/bb.ofx
105
- - spec/fixtures/bradesco.ofx
106
- - spec/fixtures/creditcard.ofx
107
- - spec/fixtures/dtsof_balance_issue.ofx
108
- - spec/fixtures/error.ofx
109
- - spec/fixtures/invalid_version.ofx
110
- - spec/fixtures/nd-amex-sample.ofx
111
- - spec/fixtures/sample.ofx
112
- - spec/fixtures/santander.ofx
113
- - spec/fixtures/utf8.ofx
114
- - spec/fixtures/v103.ofx
115
- - spec/fixtures/v211.ofx
116
- - spec/ofx_br/account_spec.rb
117
- - spec/ofx_br/ofx102_spec.rb
118
- - spec/ofx_br/ofx103_spec.rb
119
- - spec/ofx_br/ofx211_spec.rb
120
- - spec/ofx_br/ofx_parser_spec.rb
121
- - spec/ofx_br/ofx_spec.rb
122
- - spec/ofx_br/sign_on_spec.rb
123
- - spec/ofx_br/statement_spec.rb
124
- - spec/ofx_br/status_spec.rb
125
- - spec/ofx_br/transaction_spec.rb
150
+ - lib/ofx.rb
151
+ - lib/ofx/account.rb
152
+ - lib/ofx/balance.rb
153
+ - lib/ofx/errors.rb
154
+ - lib/ofx/foundation.rb
155
+ - lib/ofx/parser.rb
156
+ - lib/ofx/parser/ofx102.rb
157
+ - lib/ofx/parser/ofx211.rb
158
+ - lib/ofx/sign_on.rb
159
+ - lib/ofx/statement.rb
160
+ - lib/ofx/status.rb
161
+ - lib/ofx/transaction.rb
162
+ - lib/ofx/version.rb
163
+ - spec/ofx/account_spec.rb
164
+ - spec/ofx/ofx102_spec.rb
165
+ - spec/ofx/ofx211_spec.rb
166
+ - spec/ofx/ofx_parser_spec.rb
167
+ - spec/ofx/ofx_spec.rb
168
+ - spec/ofx/sign_on_spec.rb
169
+ - spec/ofx/statement_spec.rb
170
+ - spec/ofx/status_spec.rb
171
+ - spec/ofx/transaction_spec.rb
126
172
  - spec/spec_helper.rb
127
173
  homepage: http://rubygems.org/gems/ofx
128
- licenses: []
174
+ licenses:
175
+ - MIT
129
176
  metadata: {}
130
177
  post_install_message:
131
178
  rdoc_options: []
@@ -142,33 +189,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
189
  - !ruby/object:Gem::Version
143
190
  version: '0'
144
191
  requirements: []
145
- rubygems_version: 3.2.15
192
+ rubygems_version: 3.4.19
146
193
  signing_key:
147
194
  specification_version: 4
148
195
  summary: A simple OFX (Open Financial Exchange) parser built on top of Nokogiri. Currently
149
196
  supports OFX 102, 200 and 211.
150
- test_files:
151
- - spec/fixtures/avatar.gif
152
- - spec/fixtures/bb.ofx
153
- - spec/fixtures/bradesco.ofx
154
- - spec/fixtures/creditcard.ofx
155
- - spec/fixtures/dtsof_balance_issue.ofx
156
- - spec/fixtures/error.ofx
157
- - spec/fixtures/invalid_version.ofx
158
- - spec/fixtures/nd-amex-sample.ofx
159
- - spec/fixtures/sample.ofx
160
- - spec/fixtures/santander.ofx
161
- - spec/fixtures/utf8.ofx
162
- - spec/fixtures/v103.ofx
163
- - spec/fixtures/v211.ofx
164
- - spec/ofx_br/account_spec.rb
165
- - spec/ofx_br/ofx102_spec.rb
166
- - spec/ofx_br/ofx103_spec.rb
167
- - spec/ofx_br/ofx211_spec.rb
168
- - spec/ofx_br/ofx_parser_spec.rb
169
- - spec/ofx_br/ofx_spec.rb
170
- - spec/ofx_br/sign_on_spec.rb
171
- - spec/ofx_br/statement_spec.rb
172
- - spec/ofx_br/status_spec.rb
173
- - spec/ofx_br/transaction_spec.rb
174
- - spec/spec_helper.rb
197
+ test_files: []
@@ -1,13 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: bundler
4
- directory: "/"
5
- schedule:
6
- interval: daily
7
- time: "08:00"
8
- open-pull-requests-limit: 10
9
- ignore:
10
- - dependency-name: nokogiri
11
- versions:
12
- - 1.11.1
13
- - 1.11.2
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- .DS_Store
2
- *.gem
3
- pkg
4
- Gemfile.lock
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color --format documentation
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.7
4
- - 2.6
5
- - 2.5
6
- - 2.4
7
- - 2.3
8
- - 2.2
9
- - 2.1
data/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- source "https://rubygems.org"
2
- gemspec
data/Gemfile.lock DELETED
@@ -1,50 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ofx (0.3.2)
5
- nokogiri
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- byebug (11.1.1)
11
- coderay (1.1.2)
12
- diff-lcs (1.4.4)
13
- method_source (1.0.0)
14
- mini_portile2 (2.5.3)
15
- nokogiri (1.11.7)
16
- mini_portile2 (~> 2.5.0)
17
- racc (~> 1.4)
18
- pry (0.13.0)
19
- coderay (~> 1.1)
20
- method_source (~> 1.0)
21
- pry-byebug (3.9.0)
22
- byebug (~> 11.0)
23
- pry (~> 0.13.0)
24
- racc (1.5.2)
25
- rake (13.0.3)
26
- rspec (3.10.0)
27
- rspec-core (~> 3.10.0)
28
- rspec-expectations (~> 3.10.0)
29
- rspec-mocks (~> 3.10.0)
30
- rspec-core (3.10.1)
31
- rspec-support (~> 3.10.0)
32
- rspec-expectations (3.10.1)
33
- diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.10.0)
35
- rspec-mocks (3.10.2)
36
- diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.10.0)
38
- rspec-support (3.10.2)
39
-
40
- PLATFORMS
41
- ruby
42
-
43
- DEPENDENCIES
44
- ofx!
45
- pry-byebug
46
- rake
47
- rspec (~> 3.10)
48
-
49
- BUNDLED WITH
50
- 1.16.4
@@ -1,7 +0,0 @@
1
- module OFX
2
- module Parser
3
- class OFX103 < OFX102
4
- VERSION = "1.0.3"
5
- end
6
- end
7
- end
@@ -1,5 +0,0 @@
1
- module OFX
2
- class Statement < Foundation
3
- attr_accessor :account, :available_balance, :balance, :currency, :transactions
4
- end
5
- end
data/lib/ofx_br.rb DELETED
@@ -1,33 +0,0 @@
1
- require 'open-uri'
2
- require 'nokogiri'
3
- require 'bigdecimal'
4
-
5
- require 'kconv'
6
-
7
- require 'ofx_br/errors'
8
- require 'ofx_br/parser'
9
- require 'ofx_br/parser/ofx102'
10
- require 'ofx_br/parser/ofx103'
11
- require 'ofx_br/parser/ofx211'
12
- require 'ofx_br/foundation'
13
- require 'ofx_br/balance'
14
- require 'ofx_br/account'
15
- require 'ofx_br/sign_on'
16
- require 'ofx_br/status'
17
- require 'ofx_br/statement'
18
- require 'ofx_br/transaction'
19
- require 'ofx_br/version'
20
-
21
- def OFX(resource, &block)
22
- parser = OFX::Parser::Base.new(resource).parser
23
-
24
- if block_given?
25
- if block.arity == 1
26
- yield parser
27
- else
28
- parser.instance_eval(&block)
29
- end
30
- end
31
-
32
- parser
33
- end
data/ofx_br.gemspec DELETED
@@ -1,32 +0,0 @@
1
- $:.push File.expand_path('lib', __dir__)
2
- require 'ofx_br/version'
3
-
4
- Gem::Specification.new do |s|
5
- s.name = 'ofx_br'
6
- s.version = OFX::Version::STRING
7
- s.platform = Gem::Platform::RUBY
8
- s.authors = ['Nando Vieira', 'Anna Cruz']
9
- s.email = ['fnando.vieira@gmail.com', 'anna.cruz@gmail.com']
10
- s.homepage = 'http://rubygems.org/gems/ofx'
11
- s.summary = 'A simple OFX (Open Financial Exchange) parser built on top of Nokogiri. Currently supports OFX 102, 200 and 211.'
12
- s.description = <<~TXT
13
- A simple OFX (Open Financial Exchange) parser built on top of Nokogiri.
14
- Currently supports OFX 102, 200 and 211.
15
- #{' '}
16
- Usage:
17
- #{' '}
18
- OFX("sample.ofx") do |ofx|
19
- p ofx
20
- end
21
- TXT
22
-
23
- s.files = `git ls-files`.split("\n")
24
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
25
- s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
26
- s.require_paths = ['lib']
27
-
28
- s.add_dependency 'nokogiri'
29
- s.add_development_dependency 'pry-byebug'
30
- s.add_development_dependency 'rake'
31
- s.add_development_dependency 'rspec', '~> 3.10'
32
- end
Binary file