cfonb 1.1.1 → 1.2.0

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: '09ba2c778bfad0f2b60f224bd4e13a67b9cb15d3f02062036c0a9ae7ed407b9e'
4
- data.tar.gz: 13430b0b63638d05fc0127780b767bc746cdd5caaa65a671d017c4339111e63d
3
+ metadata.gz: dc4cf0c8e232fa1e00ee5bce36bd4c08c794c10f11c0ebdc003656acd76b55a9
4
+ data.tar.gz: b0cb3d056013926111232aee3d88405b39f828aa91fa2d1376f9352a25d7dd87
5
5
  SHA512:
6
- metadata.gz: '097f4da9225e785f732dbedcd31e2465c2794a9533dbbaa4dd64d70f11cac80d2e57dbcc9f1346c72d055c351884649ded431b49114b4da4a9156155ac2d2eae'
7
- data.tar.gz: eb270fd78d5cbbf9c1a05779f876859544687891099ecbf9236e42a7230da8f7b6b2c0ab4831495279e137919adcb8273d9a755b0b68e8d6440c02d5ab846c56
6
+ metadata.gz: 778ef5f41ef6e3bbee2b9559027846b40075dc1550d54730bfb1af6d1f6760b44cb2b5b434dbf3e91734972d92e3668f2937b973a2d76e40207bff91d512f385
7
+ data.tar.gz: 3f1d6d72236faf46f2ff7ac120f31d7e6892498b2109e6c0b1bc4f5ed49a5bdf0063dc43bfc7a4342e756fd14edb83594a609b6fe3277ce214a502fab6e9bd22
@@ -2,11 +2,14 @@
2
2
 
3
3
  module CFONB
4
4
  module OperationDetails
5
- class Unknown < Base
6
- ATTRIBUTES = %i[unknown].freeze
7
-
5
+ class Unknown
8
6
  def self.apply(details, line)
9
- details.unknown ||= {}
7
+ unless details.instance_variable_defined?(:@unknown)
8
+ details.instance_variable_set(:@unknown, {})
9
+
10
+ details.class.attr_accessor :unknown
11
+ end
12
+
10
13
  code = line.detail_code.gsub(' ', '_')
11
14
 
12
15
  details.unknown[code] =
@@ -54,6 +54,7 @@ describe CFONB::Parser do
54
54
  'BBB' => 'INTERNETE BBB',
55
55
  'CCC' => 'INTERNETI CCC',
56
56
  'N_Y' => 'EXAMPLE WITH EMPTY SPACE',
57
+ '2\'C' => 'EXAMPLE WITH OTHER COMBINATIONS',
57
58
  },
58
59
  )
59
60
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfonb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Le Bray
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-12-30 00:00:00.000000000 Z
12
+ date: 2025-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: license_finder