ofx_br 0.3.3 → 0.3.8

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 +82 -87
  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.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
@@ -9,7 +9,7 @@ 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
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -17,42 +17,48 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: 1.13.1
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: 1.18.11
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
28
  - - ">="
26
29
  - !ruby/object:Gem::Version
27
- version: '0'
30
+ version: 1.13.1
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.18.11
28
34
  - !ruby/object:Gem::Dependency
29
- name: pry-byebug
35
+ name: byebug
30
36
  requirement: !ruby/object:Gem::Requirement
31
37
  requirements:
32
- - - ">="
38
+ - - "~>"
33
39
  - !ruby/object:Gem::Version
34
- version: '0'
40
+ version: 11.1.3
35
41
  type: :development
36
42
  prerelease: false
37
43
  version_requirements: !ruby/object:Gem::Requirement
38
44
  requirements:
39
- - - ">="
45
+ - - "~>"
40
46
  - !ruby/object:Gem::Version
41
- version: '0'
47
+ version: 11.1.3
42
48
  - !ruby/object:Gem::Dependency
43
49
  name: rake
44
50
  requirement: !ruby/object:Gem::Requirement
45
51
  requirements:
46
- - - ">="
52
+ - - "~>"
47
53
  - !ruby/object:Gem::Version
48
- version: '0'
54
+ version: 13.0.6
49
55
  type: :development
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
52
58
  requirements:
53
- - - ">="
59
+ - - "~>"
54
60
  - !ruby/object:Gem::Version
55
- version: '0'
61
+ version: 13.0.6
56
62
  - !ruby/object:Gem::Dependency
57
63
  name: rspec
58
64
  requirement: !ruby/object:Gem::Requirement
@@ -67,9 +73,43 @@ dependencies:
67
73
  - - "~>"
68
74
  - !ruby/object:Gem::Version
69
75
  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"
76
+ - !ruby/object:Gem::Dependency
77
+ name: erb
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 4.0.4
83
+ type: :runtime
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 4.0.4
90
+ - !ruby/object:Gem::Dependency
91
+ name: stringio
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 3.1.7
97
+ type: :runtime
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 3.1.7
104
+ description: |
105
+ A simple OFX (Open Financial Exchange) parser built on top of Nokogiri.
106
+ Currently supports OFX 102, 200 and 211.
107
+
108
+ Usage:
109
+
110
+ OFX('sample.ofx') do |ofx|
111
+ p ofx
112
+ end
73
113
  email:
74
114
  - fnando.vieira@gmail.com
75
115
  - anna.cruz@gmail.com
@@ -77,55 +117,34 @@ executables: []
77
117
  extensions: []
78
118
  extra_rdoc_files: []
79
119
  files:
80
- - ".github/dependabot.yml"
81
- - ".gitignore"
82
- - ".rspec"
83
- - ".travis.yml"
84
- - Gemfile
85
- - Gemfile.lock
86
120
  - README.rdoc
87
121
  - 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
122
+ - lib/ofx.rb
123
+ - lib/ofx/account.rb
124
+ - lib/ofx/balance.rb
125
+ - lib/ofx/errors.rb
126
+ - lib/ofx/foundation.rb
127
+ - lib/ofx/parser.rb
128
+ - lib/ofx/parser/ofx102.rb
129
+ - lib/ofx/parser/ofx211.rb
130
+ - lib/ofx/sign_on.rb
131
+ - lib/ofx/statement.rb
132
+ - lib/ofx/status.rb
133
+ - lib/ofx/transaction.rb
134
+ - lib/ofx/version.rb
135
+ - spec/ofx/account_spec.rb
136
+ - spec/ofx/ofx102_spec.rb
137
+ - spec/ofx/ofx211_spec.rb
138
+ - spec/ofx/ofx_parser_spec.rb
139
+ - spec/ofx/ofx_spec.rb
140
+ - spec/ofx/sign_on_spec.rb
141
+ - spec/ofx/statement_spec.rb
142
+ - spec/ofx/status_spec.rb
143
+ - spec/ofx/transaction_spec.rb
126
144
  - spec/spec_helper.rb
127
145
  homepage: http://rubygems.org/gems/ofx
128
- licenses: []
146
+ licenses:
147
+ - MIT
129
148
  metadata: {}
130
149
  post_install_message:
131
150
  rdoc_options: []
@@ -142,33 +161,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
161
  - !ruby/object:Gem::Version
143
162
  version: '0'
144
163
  requirements: []
145
- rubygems_version: 3.2.15
164
+ rubygems_version: 3.4.19
146
165
  signing_key:
147
166
  specification_version: 4
148
167
  summary: A simple OFX (Open Financial Exchange) parser built on top of Nokogiri. Currently
149
168
  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
169
+ 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