aam-ruby 2.4.0 → 2.6.0

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 (5) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS.html +2 -2
  3. data/lib/aam_rb.rb +50 -0
  4. data/lib/aam_ruby.so +0 -0
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6a9c139ee04ee5f37451750072eb27a1d501afdc487083b36921e9052f85711
4
- data.tar.gz: 81ffe9c1f096f205cf8afd60aab39d4559fca0259cc4a280ccb3db629583be30
3
+ metadata.gz: b283bd86864fcc3b35eac00410e502f10ebb8334dfa4d5f5f9e3526123eb27e1
4
+ data.tar.gz: 2cd6691a006cdfb26dae2621ddb4de855dc963d4bb12901214e5658ac429605c
5
5
  SHA512:
6
- metadata.gz: 013b70d446e6a0f138d8c069e80a66acfe76d2948a39d78d7020191b076c9da1a43ca495a599367b2e47db07c47d544ce4c6147402e8432db62f6590a0b222f1
7
- data.tar.gz: 056e1c18e436dc2803520250b4782d3a32f1f206fd7ffab5f73325d2edb4762f6c54958e4864a6934e4b049de9bd6f016dea980875c962f34b6a85de36cc8fc2
6
+ metadata.gz: 0312165c3158ff3e6a194123d3300b26cb357a6fcffae931e99a31639cfb5fc0f7de0f1e1a8bf0000b12775efe3ea9b6ad519d5df192f7e6c6e94c190a4fa746
7
+ data.tar.gz: a4a9c612f0284fb5e7d9b9a2542552e4f50cf773e054787bdee8394a2f7f128ad08bec2493cbb6ad3dbc7e08ff909d6dce114188021ec8ec6420586b0f5bbbe8
data/CREDITS.html CHANGED
@@ -197,7 +197,7 @@ DEALINGS IN THE SOFTWARE.
197
197
  <h3 id="MIT">MIT License</h3>
198
198
  <h4>Used by:</h4>
199
199
  <ul class="license-used-by">
200
- <li><a href=" https://github.com/rust-lang/hashbrown ">hashbrown 0.17.0</a>
200
+ <li><a href=" https://github.com/rust-lang/hashbrown ">hashbrown 0.17.1</a>
201
201
  </li>
202
202
  </ul>
203
203
  <pre class="license-text">Copyright (c) 2016 Amanieu d&#x27;Antras
@@ -487,7 +487,7 @@ SOFTWARE.
487
487
  <h3 id="MIT">MIT License</h3>
488
488
  <h4>Used by:</h4>
489
489
  <ul class="license-used-by">
490
- <li><a href=" https://github.com/INiNiDS/aam-rs/ ">aam-rs 2.4.0</a>
490
+ <li><a href=" https://gitlab.com/aam-rs/aam-rs ">aam-rs 2.6.0</a>
491
491
  </li>
492
492
  </ul>
493
493
  <pre class="license-text">MIT License
data/lib/aam_rb.rb CHANGED
@@ -10,3 +10,53 @@ rescue LoadError
10
10
  end
11
11
  end
12
12
 
13
+ module AamRb
14
+ module_function
15
+
16
+ def split_aam(content)
17
+ result = {}
18
+ current_name = nil
19
+ current_builder = nil
20
+
21
+ content.each_line do |raw_line|
22
+ line = raw_line.strip
23
+ next if line.empty?
24
+
25
+ header = parse_section_header(line)
26
+ if header
27
+ result[current_name] = current_builder if current_name && current_builder
28
+ current_name = header
29
+ current_builder = AAMBuilder.new
30
+ next
31
+ end
32
+
33
+ next unless current_name && current_builder
34
+
35
+ assignment = parse_assignment(line)
36
+ current_builder.add_line(*assignment) if assignment
37
+ end
38
+
39
+ result[current_name] = current_builder if current_name && current_builder
40
+ result
41
+ end
42
+
43
+ def parse_section_header(line)
44
+ return nil unless line.start_with?('#')
45
+
46
+ rest = line[1..].strip
47
+ rest.end_with?('.aam') ? rest : nil
48
+ end
49
+ private_class_method :parse_section_header
50
+
51
+ def parse_assignment(line)
52
+ key, value = line.split('=', 2)
53
+ return nil unless value
54
+
55
+ key = key.strip
56
+ return nil if key.empty?
57
+
58
+ [key, value.strip]
59
+ end
60
+ private_class_method :parse_assignment
61
+ end
62
+
data/lib/aam_ruby.so CHANGED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aam-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - INiNiDS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-03 00:00:00.000000000 Z
11
+ date: 2026-05-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby bindings for the aam-rs AAML parser built with Rust and magnus.
14
14
  email: