codabel 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9d1a4c989682a9479310e83a0e81e22f1d8a22b0d8d7b9f08dc348a12264f2d
4
- data.tar.gz: 91c1bdbd716b4e27d1091a84bcc95be97910c4d79306ded78f276f1f6b0656c4
3
+ metadata.gz: ad1ce84a2688c81c84314eeb6ee094beb981ca3cf73cede28c832e5be9a35ef2
4
+ data.tar.gz: a40681361c5dc0495e81319df395b4134b801e05b0a6ea02d8042d7aed727721
5
5
  SHA512:
6
- metadata.gz: c6907d15a4624653e8522f053d7daa4ff6c68c4d25a047876fab664330c1f1b03294dec005d5c604ff1f1a4e5c4de48b0bdd77f3725026215aa39fd82ea40f60
7
- data.tar.gz: 5e5ed839bd40d27d7c7c495107aef8bd7c5b4e51980c843934e8509d45c3731de430e00088712360c9ca66a7f756a5e5a4de9e2dbd7bd18d517489a9dadb7bcc
6
+ metadata.gz: 348a1e498003589ced937d1d3c29583e9da87172eff307ad48c2747bac2f64e56e55e80d9af429ee0f61b755baa928b9ad9afbca7b52aadf54857224bae369aa
7
+ data.tar.gz: 8b005b1d07cd2c7911711bdd5695e8b16dfe149fefc66d1fae969771edc078057396991c61af4ccf731bd03113aab7fd487ae57628b847336d51dcf225852397
data/README.md CHANGED
@@ -17,6 +17,7 @@ data. We currently support version 2.6 of the Febelfin specification:
17
17
 
18
18
  ### Limitations
19
19
 
20
+ * No support for ruby < 2.5
20
21
  * No support for free information records (4)
21
22
  * No high-level data model for transaction codes (record 2.1)
22
23
  * No high-level data model for R-transaction and reason (record 2.2)
data/lib/codabel/file.rb CHANGED
@@ -10,7 +10,7 @@ module Codabel
10
10
  end
11
11
 
12
12
  def find_records(type)
13
- @records.filter { |record| record.is_a?(type) }
13
+ @records.select { |record| record.is_a?(type) }
14
14
  end
15
15
 
16
16
  def find_record(type)
@@ -50,7 +50,7 @@ module Codabel
50
50
  end
51
51
 
52
52
  def count_records(file)
53
- file.records.filter { |record| must_be_counted?(record) }.size
53
+ file.records.select { |record| must_be_counted?(record) }.size
54
54
  end
55
55
 
56
56
  def must_be_counted?(record)
@@ -1,3 +1,3 @@
1
1
  module Codabel
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codabel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 3.1.4
107
+ rubygems_version: 3.1.6
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Codabel, a generator of CODA financial files.