red-flatbuffers 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39624c3160429b2d1492aa6bcf66b0d4e8028cb11c2e5e8538a40014bbfaea58
4
- data.tar.gz: 296cce04665d4cd2095b60e72e052dc650aede2215e9fba0a9dfd0082f64d242
3
+ metadata.gz: 2c388a7a7ba6a2318b786261a7123743677526b5a34df3c59e4b993a010675a3
4
+ data.tar.gz: c9ec46d5ce404499554543744592f1229fab5c8b77c62c1d3a54f6a418b89bd7
5
5
  SHA512:
6
- metadata.gz: bc547bfdc66275abebf0160367c293ff5a3ab328fe6d191fc1ab00952fa6f578330dbe987cce19fba954d145a0881f757012b0e34d80ffeeb69c43cbfa341df1
7
- data.tar.gz: 7436bbce98bb2fc5400a4392eef2cd7d1438c4585e97ec26f193b0aabd7410f0fda7241fd6be84a34712cbe59941e8b65d98de76b5532dedda9b134de551b2a8
6
+ metadata.gz: cea0c8051ba65b1248296e4da2985a69cc009ac86fd9a0563206e2665a8ac06c13263b339e91dc8ab2081db7f0e17eeda15b8944afe065f78c8c9792f5b143a5
7
+ data.tar.gz: f6b36b62a484acbae0517b3ad3eac16ab481cc509a2895d905a543c90473f289eb27352fe8fe15da7d6ba825af9b7995aefe7a2c46923a34a66ce80e9ccd72fb
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 0.0.5 - 2026-01-19
4
+
5
+ ### Improvements
6
+
7
+ * Increased max alignment size to 64 bit.
8
+
3
9
  ## 0.0.4 - 2026-01-12
4
10
 
5
11
  ### Improvements
@@ -18,8 +18,9 @@ module FlatBuffers
18
18
  using AppendAsBytes if const_defined?(:AppendAsBytes)
19
19
 
20
20
  module Alignable
21
- LARGEST_ALIGNMENT_SIZE = 8 # IO::Buffer.size_of(:u64)
22
- LARGEST_PADDING = "\x00" * 7
21
+ # Apache Arrow suggests 64 byte alignment.
22
+ LARGEST_ALIGNMENT_SIZE = 64
23
+ LARGEST_PADDING = "\x00" * (LARGEST_ALIGNMENT_SIZE - 1)
23
24
 
24
25
  private
25
26
  def compute_padding_size(size, alignment_byte)
@@ -1,4 +1,4 @@
1
- # Copyright 2025 Sutou Kouhei <kou@clear-code.com>
1
+ # Copyright 2025-2026 Sutou Kouhei <kou@clear-code.com>
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module FlatBuffers
16
- VERSION = "0.0.4"
16
+ VERSION = "0.0.5"
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-flatbuffers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutou Kouhei
@@ -63,7 +63,7 @@ licenses:
63
63
  - Apache-2.0
64
64
  metadata:
65
65
  bug_tracker_uri: https://github.com/red-data-tools/red-flatbuffers/issues
66
- changelog_uri: https://github.com/red-data-tools/red-flatbuffers/releases/tag/0.0.4
66
+ changelog_uri: https://github.com/red-data-tools/red-flatbuffers/releases/tag/0.0.5
67
67
  source_code_uri: https://github.com/red-data-tools/red-flatbuffers
68
68
  rdoc_options: []
69
69
  require_paths: