Skip to content

Commit 2be8345

Browse files
authored
Merge pull request #61 from railslove/ci/github-actions
ci: fix pipeline
2 parents 1f447c8 + 01169a2 commit 2be8345

File tree

7 files changed

+17
-18
lines changed

7 files changed

+17
-18
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
test:
@@ -17,7 +17,7 @@ jobs:
1717
- 3.2
1818
- 3.1
1919
- "3.0"
20-
- jruby-9.4
20+
- jruby-9.4
2121

2222
steps:
2323
- uses: actions/checkout@v4
@@ -27,4 +27,4 @@ jobs:
2727
ruby-version: ${{ matrix.ruby-version }}
2828
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2929
- name: Run tests
30-
run: bundle exec rake
30+
run: bundle exec rake

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ spec/reports
1515
test/tmp
1616
test/version_tmp
1717
tmp
18-
.byebug_history

.rspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--color
1+
--color

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![Gem Version](https://badge.fury.io/rb/cmxl.svg)](http://badge.fury.io/rb/cmxl)
1+
[![CI](https://github.com/railslove/cmxl/actions/workflows/ci.yml/badge.svg)](https://github.com/railslove/cmxl/actions/workflows/ci.yml)
2+
[![Gem Version](https://badge.fury.io/rb/cmxl.svg)](https://rubygems.org/gems/cmxl)
23

34
# Cmxl - your friendly ruby MT940 parser
45

@@ -15,7 +16,7 @@ For more information have a look at the different [SWIFT message types](http://e
1516

1617
At some point in the future MT940 file should be exchanged with newer XML documents - but banking institutions are slow, so MT940 will stick around for a while.
1718

18-
## Reqirements
19+
## Requirements
1920

2021
Cmxl is a pure ruby parser and has no dependency on native extensions.
2122

@@ -95,7 +96,7 @@ If that fails, try to modify the file before you pass it to the parser - and ple
9596
### MT940 SWIFT header data
9697

9798
Cmxl currently does not support parsing of the SWIFT headers (like {1:F01AXISINBBA ....)
98-
If your file comes with these headers try the `strip_headers` configuration option to strip data execpt the actual MT940 fields.
99+
If your file comes with these headers try the `strip_headers` configuration option to strip data except the actual MT940 fields.
99100

100101
```ruby
101102
Cmxl.config[:strip_headers] = true
@@ -186,6 +187,6 @@ other parsers:
186187

187188
---
188189
built with love by [Railslove](http://railslove.com) and some [amazing people](https://github.com/railslove/cmxl/graphs/contributors).
189-
Released under the MIT-Licence.
190+
Released under the MIT-License.
190191

191192
Railslove builds FinTech products, if you need support for your project we are happy to help. Please contact us at [email protected].

cmxl.gemspec

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ Gem::Specification.new do |spec|
1919
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
2020
spec.require_paths = ['lib']
2121

22+
spec.add_dependency 'rchardet'
23+
2224
spec.add_development_dependency 'bundler'
2325
spec.add_development_dependency 'pry'
2426
spec.add_development_dependency 'rake'
2527
spec.add_development_dependency 'rspec', '~>3.0'
2628
spec.add_development_dependency 'simplecov'
27-
spec.add_development_dependency 'byebug'
28-
29-
spec.add_dependency 'rchardet'
3029
end

lib/cmxl/field.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def to_h
1313

1414
# The parser class variable is the registry of all available parser.
1515
# It is a hash with the tag (MT940 field number/tag) as key and the class as value
16-
# When parsing a statment line we look for a matching entry or use the Unknown class as default
16+
# When parsing a statement line we look for a matching entry or use the Unknown class as default
1717
@@parsers = {}
1818
@@parsers.default = Unknown
1919
def self.parsers

spec/fields/transaction_spec.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
subject(:ocmt_cghs_transaction) { Cmxl::Fields::Transaction.parse(fixture_line(:statement_ocmt_chgs)) }
88
subject(:supplementary_transaction) { Cmxl::Fields::Transaction.parse(fixture_line(:statement_supplementary_plain)) }
99
subject(:complex_supplementary_transaction) { Cmxl::Fields::Transaction.parse(fixture_line(:statement_supplementary_complex)) }
10-
subject(:valuta_after_enty_date) { Cmxl::Fields::Transaction.parse(fixture[3]) }
10+
subject(:valuta_after_entry_date) { Cmxl::Fields::Transaction.parse(fixture[3]) }
1111
subject(:entry_before_valuta_transaction) { Cmxl::Fields::Transaction.parse(fixture[2]) }
1212
subject(:transaction_type_swift) { Cmxl::Fields::Transaction.parse(fixture[4]) }
1313

@@ -82,14 +82,14 @@
8282
end
8383

8484
context 'valuta and entry-date assumptions' do
85-
it 'entry_date before valuta is recognized correclty when including year-change' do
85+
it 'entry_date before valuta is recognized correctly when including year-change' do
8686
expect(entry_before_valuta_transaction.date).to eql(Date.new(2014, 1, 10))
8787
expect(entry_before_valuta_transaction.entry_date).to eql(Date.new(2013, 12, 24))
8888
end
8989

9090
it 'entry_date after valuta is recognized correctly when including year-change' do
91-
expect(valuta_after_enty_date.date).to eql(Date.new(2014, 12, 24))
92-
expect(valuta_after_enty_date.entry_date).to eql(Date.new(2015, 1, 2))
91+
expect(valuta_after_entry_date.date).to eql(Date.new(2014, 12, 24))
92+
expect(valuta_after_entry_date.entry_date).to eql(Date.new(2015, 1, 2))
9393
end
9494
end
9595

0 commit comments

Comments
 (0)