norma43_parser 2.1.1 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +22 -0
  3. data/.github/workflows/release.yml +33 -0
  4. data/.rspec +1 -0
  5. data/CHANGELOG.md +26 -10
  6. data/Gemfile +2 -2
  7. data/Gemfile.lock +51 -51
  8. data/README.md +2 -0
  9. data/lib/norma43/models/account/spanish_iban.rb +107 -0
  10. data/lib/norma43/models/account.rb +63 -0
  11. data/lib/norma43/models/additional_currency.rb +22 -0
  12. data/lib/norma43/models/additional_item.rb +20 -0
  13. data/lib/norma43/models/document.rb +42 -0
  14. data/lib/norma43/models/mixins/attributes_assignment.rb +33 -0
  15. data/lib/norma43/models/transaction.rb +51 -0
  16. data/lib/norma43/models.rb +0 -78
  17. data/lib/norma43/version.rb +1 -1
  18. data/norma43_parser.gemspec +3 -6
  19. data/spec/example1_parse_spec.rb +1 -1
  20. data/spec/norma43/line_processors/account_end_spec.rb +1 -4
  21. data/spec/norma43/line_processors/account_start_spec.rb +3 -3
  22. data/spec/norma43/line_processors/additional_currency_spec.rb +3 -3
  23. data/spec/norma43/line_processors/{additional_items_spec.rb → additional_item_spec.rb} +3 -3
  24. data/spec/norma43/line_processors/document_end_spec.rb +3 -6
  25. data/spec/norma43/line_processors/document_start_spec.rb +3 -3
  26. data/spec/norma43/line_processors/transaction_spec.rb +3 -3
  27. data/spec/norma43/models/account/spanish_iban_spec.rb +107 -0
  28. data/spec/norma43/models/account_spec.rb +54 -0
  29. data/spec/norma43/models/document_spec.rb +35 -0
  30. data/spec/norma43/models/transaction_spec.rb +25 -0
  31. data/spec/norma43_spec.rb +1 -1
  32. data/spec/spec_helper.rb +3 -0
  33. data/spec/support/shared_examples_for_models.rb +61 -0
  34. metadata +29 -37
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: norma43_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sequra engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-13 00:00:00.000000000 Z
11
+ date: 2024-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: virtus
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: zeitwerk
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -38,20 +24,6 @@ dependencies:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
26
  version: '2.0'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.0'
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: rake
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +44,14 @@ dependencies:
72
44
  requirements:
73
45
  - - "~>"
74
46
  - !ruby/object:Gem::Version
75
- version: '3.0'
47
+ version: '3.9'
76
48
  type: :development
77
49
  prerelease: false
78
50
  version_requirements: !ruby/object:Gem::Requirement
79
51
  requirements:
80
52
  - - "~>"
81
53
  - !ruby/object:Gem::Version
82
- version: '3.0'
54
+ version: '3.9'
83
55
  description:
84
56
  email:
85
57
  - dev@sequra.es
@@ -89,6 +61,9 @@ extra_rdoc_files: []
89
61
  files:
90
62
  - ".github/ISSUE_TEMPLATE.md"
91
63
  - ".github/PULL_REQUEST_TEMPLATE.md"
64
+ - ".github/workflows/ci.yml"
65
+ - ".github/workflows/release.yml"
66
+ - ".rspec"
92
67
  - ".rubocop.yml"
93
68
  - CHANGELOG.md
94
69
  - Gemfile
@@ -111,6 +86,13 @@ files:
111
86
  - lib/norma43/line_parsers/transaction.rb
112
87
  - lib/norma43/line_processors.rb
113
88
  - lib/norma43/models.rb
89
+ - lib/norma43/models/account.rb
90
+ - lib/norma43/models/account/spanish_iban.rb
91
+ - lib/norma43/models/additional_currency.rb
92
+ - lib/norma43/models/additional_item.rb
93
+ - lib/norma43/models/document.rb
94
+ - lib/norma43/models/mixins/attributes_assignment.rb
95
+ - lib/norma43/models/transaction.rb
114
96
  - lib/norma43/parser.rb
115
97
  - lib/norma43/utils/contexts.rb
116
98
  - lib/norma43/utils/string_helpers.rb
@@ -129,13 +111,18 @@ files:
129
111
  - spec/norma43/line_processors/account_end_spec.rb
130
112
  - spec/norma43/line_processors/account_start_spec.rb
131
113
  - spec/norma43/line_processors/additional_currency_spec.rb
132
- - spec/norma43/line_processors/additional_items_spec.rb
114
+ - spec/norma43/line_processors/additional_item_spec.rb
133
115
  - spec/norma43/line_processors/document_end_spec.rb
134
116
  - spec/norma43/line_processors/document_start_spec.rb
135
117
  - spec/norma43/line_processors/transaction_spec.rb
118
+ - spec/norma43/models/account/spanish_iban_spec.rb
119
+ - spec/norma43/models/account_spec.rb
120
+ - spec/norma43/models/document_spec.rb
121
+ - spec/norma43/models/transaction_spec.rb
136
122
  - spec/norma43/parser_spec.rb
137
123
  - spec/norma43_spec.rb
138
124
  - spec/spec_helper.rb
125
+ - spec/support/shared_examples_for_models.rb
139
126
  - spec/support/shared_examples_for_values_line_parsers.rb
140
127
  homepage: https://github.com/sequra/norma43_parser
141
128
  licenses:
@@ -147,16 +134,16 @@ require_paths:
147
134
  - lib
148
135
  required_ruby_version: !ruby/object:Gem::Requirement
149
136
  requirements:
150
- - - "~>"
137
+ - - ">="
151
138
  - !ruby/object:Gem::Version
152
- version: '2.4'
139
+ version: '3.0'
153
140
  required_rubygems_version: !ruby/object:Gem::Requirement
154
141
  requirements:
155
142
  - - ">="
156
143
  - !ruby/object:Gem::Version
157
144
  version: '0'
158
145
  requirements: []
159
- rubygems_version: 3.0.3
146
+ rubygems_version: 3.4.19
160
147
  signing_key:
161
148
  specification_version: 4
162
149
  summary: Parses banks transactions files specified in rule 43
@@ -173,11 +160,16 @@ test_files:
173
160
  - spec/norma43/line_processors/account_end_spec.rb
174
161
  - spec/norma43/line_processors/account_start_spec.rb
175
162
  - spec/norma43/line_processors/additional_currency_spec.rb
176
- - spec/norma43/line_processors/additional_items_spec.rb
163
+ - spec/norma43/line_processors/additional_item_spec.rb
177
164
  - spec/norma43/line_processors/document_end_spec.rb
178
165
  - spec/norma43/line_processors/document_start_spec.rb
179
166
  - spec/norma43/line_processors/transaction_spec.rb
167
+ - spec/norma43/models/account/spanish_iban_spec.rb
168
+ - spec/norma43/models/account_spec.rb
169
+ - spec/norma43/models/document_spec.rb
170
+ - spec/norma43/models/transaction_spec.rb
180
171
  - spec/norma43/parser_spec.rb
181
172
  - spec/norma43_spec.rb
182
173
  - spec/spec_helper.rb
174
+ - spec/support/shared_examples_for_models.rb
183
175
  - spec/support/shared_examples_for_values_line_parsers.rb