larb 1.0.1 → 1.0.2

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: e661682c31f5246004965e4c9883a15fae7aae30fccb2e9a56a6e0b5e28f7ad1
4
- data.tar.gz: b4095f395b19e7c38d10659c7ae05169972c329087be2fa4481c97b456872b62
3
+ metadata.gz: 88e2317150d0989097a4fa7f755dcea80a14ee7aa7da6a9813039a2ac1af9c88
4
+ data.tar.gz: 3bfcb6ce4b94e17ab6c1f1ab6c210fbbc7d2dcb7369faf357f0d68b8dc941f86
5
5
  SHA512:
6
- metadata.gz: c9a4f13ebd8ef25af8cea483059080e89dd955633006955458b65afda317dc23c5fe34875436a83353f2ca8a8e60f98cc2aa707d65a407eff4c01958b39186e0
7
- data.tar.gz: 1f41fd169747e148a30a18b665ff41e259dd69ce303911d68c6058cb94dbce4d2034bf83d383c730fc216038c0c7a70399263f6444ed7d2e7eb159d1109cf548
6
+ metadata.gz: 41f3356ca3a9cb41ed4f33f58901b315fa7a338b1ecc36edc238aad62bebeb6aa8dd39f13f6ea473c65e510aa19dfa1f46c3ced0d8164b44141df0aa3b6262ff
7
+ data.tar.gz: 7c4ea3e90ffdb44e877bb2ebf0fa441838d6bc8121af2d686fec21baeed7f37a6ad9e55adde323143251bf235db50e61a12fc8d1e5950069bb0ae3ed480eec46
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.0.2 - 2026-09-25
6
+
7
+ - Omit the empty host architecture flag when compiling the C extension for WASI.
8
+
5
9
  ## 1.0.1 - 2026-09-09
6
10
 
7
11
  - Preserve native components in `dup`/`clone` and enforce `freeze` on all mutations.
data/README.md CHANGED
@@ -1,6 +1,25 @@
1
- # Larb [![Gem Version](https://badge.fury.io/rb/larb.svg)](https://badge.fury.io/rb/larb) [![CI](https://github.com/ydah/larb/actions/workflows/ci.yml/badge.svg)](https://github.com/ydah/larb/actions/workflows/ci.yml)
1
+ <h1 align="center">Larb</h1>
2
2
 
3
- Linear algebra library for 2D/3D graphics in Ruby.
3
+ <p align="center">Linear algebra for 2D and 3D graphics in Ruby.</p>
4
+
5
+ <p align="center">
6
+ <a href="https://rubygems.org/gems/larb"><img src="https://badge.fury.io/rb/larb.svg" alt="Gem Version"></a>
7
+ <a href="https://rubygems.org/gems/larb"><img src="https://img.shields.io/gem/dt/larb?label=downloads" alt="Downloads"></a>
8
+ <a href="https://www.ruby-lang.org/"><img src="https://img.shields.io/badge/ruby-%3E%3D3.1-CC342D?logo=ruby&amp;logoColor=white" alt="Ruby Version"></a>
9
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-750014.svg" alt="License"></a>
10
+ </p>
11
+
12
+ [Features](#features) · [Installation](#installation) · [Usage](#usage) · [Value and Input Behavior](#value-and-input-behavior)
13
+
14
+ ***
15
+
16
+ Larb provides vector, matrix, quaternion, and color types for graphics and mathematical computations.
17
+
18
+ ## Features
19
+
20
+ - Vec2/3/4 vectors, matrix types, and affine transforms.
21
+ - Quaternions and dual quaternions for rotation and skinning math.
22
+ - Color construction, interpolation, and hexadecimal conversion.
4
23
 
5
24
  ## Installation
6
25
 
@@ -22,6 +41,11 @@ Or install it yourself as:
22
41
  gem install larb
23
42
  ```
24
43
 
44
+ ### Requirements
45
+
46
+ - Ruby 3.1 or newer.
47
+ - A C compiler and Ruby development headers are required to build the native extension.
48
+
25
49
  ## Usage
26
50
 
27
51
  ```ruby
@@ -120,6 +144,10 @@ bundle exec rake compile
120
144
  bundle exec rake test
121
145
  ```
122
146
 
147
+ ## Contributing
148
+
149
+ Bug reports and pull requests are welcome at [rbgfx/larb](https://github.com/rbgfx/larb).
150
+
123
151
  ## License
124
152
 
125
153
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/ext/larb/extconf.rb CHANGED
@@ -2,10 +2,14 @@
2
2
 
3
3
  require "mkmf"
4
4
 
5
+ # WASI already selects its target architecture; Ruby's cross-build config may
6
+ # also provide an empty -march= flag, which clang rejects.
7
+ $ARCH_FLAG = "" if RbConfig::CONFIG["host"].start_with?("wasm32")
8
+
5
9
  # mathライブラリの確認
6
10
  have_library("m", "sin")
7
11
 
8
12
  # 最適化フラグ
9
- $CFLAGS << " -O3 -march=native -funroll-loops"
13
+ $CFLAGS << " -O3 -funroll-loops"
10
14
 
11
15
  create_makefile("larb/larb")
data/lib/larb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Larb
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: larb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yudai Takada
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-09-25 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: rake-compiler
@@ -80,6 +81,7 @@ licenses:
80
81
  metadata:
81
82
  source_code_uri: https://github.com/rbgfx/larb
82
83
  changelog_uri: https://github.com/rbgfx/larb/blob/main/CHANGELOG.md
84
+ post_install_message:
83
85
  rdoc_options: []
84
86
  require_paths:
85
87
  - lib
@@ -94,7 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
96
  - !ruby/object:Gem::Version
95
97
  version: '0'
96
98
  requirements: []
97
- rubygems_version: 4.0.19
99
+ rubygems_version: 3.4.19
100
+ signing_key:
98
101
  specification_version: 4
99
102
  summary: Linear algebra library for 2D/3D graphics in Ruby
100
103
  test_files: []