sfml3-rb 0.2.1 → 0.2.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: 757aac26e91c4990a496f9d8dc06418f30965c5072045b62496f1feb5d95cf3c
4
- data.tar.gz: 0b6c3d7237ae5e94ed7a61bd4d4ba38f27358a01821cb47d0d2664df72a48e86
3
+ metadata.gz: cc41a984a71094455d29e95d4c529a1e228e5c5442333aca6eb57b9b7c9d3f5e
4
+ data.tar.gz: 835286043ece71ba5dc8c1790cdd6ab0370ae0924823771e03a811cd8acba1af
5
5
  SHA512:
6
- metadata.gz: 3168836daea3d5bbc0078264f63016fa54d8341145997a9b0d2dbe517d6e6393d5859f62ef97fc19cc5befbea2f9091c2db7c6ab2ddca88d3de744fc9b274b44
7
- data.tar.gz: eba7df0eb8dc0245e959bf888d7f1eb5c8431e4f3235f1394760afdd0812bc0574dd9138052fb5bc1b17f3b105c32036a614445365dd5c73dc94116fd017bb3a
6
+ metadata.gz: f75f7ce8244a36a0a8e93903ea0d323513753cfdf3e82f79364b3081a3d5ac651609897a0d4911c2509aac1e5107c37ab9ea9341eede85bb630a05228273ed3d
7
+ data.tar.gz: 68a989c7d4e1147cd5585bf8db85be15c3c1419bbefaeca95791fa37575900d8b841d1b33dd5009f9611e3b5a365b7410c7687ca8eecf96d188a05feb6de269f
data/CHANGELOG.md CHANGED
@@ -6,6 +6,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ### Added
10
+ * **Full YARD API documentation and RBS type signatures**, covering every
11
+ bound class, module, method and constant. Doc comments live in-place in
12
+ the `ext/**/*.c` sources (YARD's C parser, the same convention RDoc uses),
13
+ so they're published automatically to
14
+ [rubydoc.info](https://rubydoc.info/gems/sfml3-rb) on release; `rake yard`
15
+ builds them locally into `doc/`. `sig/**/*.rbs` ships in the gem alongside
16
+ the extension sources, for IDE completion (Solargraph, RubyMine) and
17
+ static type-checking (Sorbet, Steep). Run `rake rbs` to validate the
18
+ signatures.
19
+
20
+ ## [0.2.2]
21
+
22
+ ### Fixed
23
+ * **The macOS binary gems now build.** SFML 3.0.2 defaults
24
+ `CMAKE_OSX_DEPLOYMENT_TARGET` to 13.0, but the osxcross SDK in the
25
+ rake-compiler-dock image is 11.1 and rejects a newer target, so both Darwin
26
+ builds aborted while configuring SFML. The ports toolchain now pins the
27
+ deployment target to macOS 11.0, which is the floor Apple Silicon requires
28
+ anyway.
29
+
9
30
  ## [0.2.1]
10
31
 
11
32
  ### Added
data/README.md CHANGED
@@ -4,9 +4,14 @@ Ruby bindings for [SFML 3](https://www.sfml-dev.org/), via its C API, [CSFML](ht
4
4
 
5
5
  ## Status
6
6
 
7
- Latest release: **0.2.1**. Bound against **CSFML 3**. See [TODO.md](TODO.md) for which parts of the
7
+ Latest release: **0.2.2**. Bound against **CSFML 3**. See [TODO.md](TODO.md) for which parts of the
8
8
  SFML 3 API are ported so far, and [CHANGELOG.md](CHANGELOG.md) for what changed recently.
9
9
 
10
+ API docs (every class, module, method and constant) are on
11
+ [rubydoc.info](https://rubydoc.info/gems/sfml3-rb). The gem also ships RBS type signatures
12
+ (`sig/**/*.rbs`) alongside the extension sources, for IDE completion (Solargraph, RubyMine) and
13
+ static type-checking (Sorbet, Steep).
14
+
10
15
  ## Install
11
16
 
12
17
  ```sh
@@ -87,6 +92,8 @@ rake ports # build the vendored FreeType + SFML 3 + CSFML 3 (rake compile doe
87
92
  rake compile # build the C extension into lib/sfml/
88
93
  rake test # compile, then run the test suite
89
94
  rake gem # build the source gem into pkg/
95
+ rake yard # build API docs into doc/
96
+ rake rbs # validate sig/**/*.rbs
90
97
  ```
91
98
 
92
99
  `rake githooks:install` points your checkout at the committed `.githooks/` pre-commit hook, which
data/ext/ports.rb CHANGED
@@ -338,6 +338,15 @@ module Ports
338
338
  -DCMAKE_INSTALL_LIBDIR=lib
339
339
  ]
340
340
  flags << "-DCMAKE_TOOLCHAIN_FILE=#{toolchain_file}" if cross?
341
+
342
+ # SFML 3.0.2 defaults CMAKE_OSX_DEPLOYMENT_TARGET to 13.0 in its own
343
+ # CMakeLists.txt, but the macOS SDK osxcross ships in the
344
+ # rake-compiler-dock image is 11.1, and osxcross refuses a target newer
345
+ # than its SDK ("targeted macOS version must be <= 11.1.0"). Pass it as a
346
+ # -D rather than writing it into the toolchain file because SFML's
347
+ # sfml_set_option() only supplies its default when the variable is not
348
+ # already defined -- a command-line cache entry always is.
349
+ flags << '-DCMAKE_OSX_DEPLOYMENT_TARGET=11.0' if os == :darwin
341
350
  flags
342
351
  end
343
352
 
data/lib/sfml/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SFML
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sfml3-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algaves
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-09-17 00:00:00.000000000 Z
12
+ date: 2026-09-18 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Ruby bindings for SFML 3 via CSFML. Precompiled binaries are published
15
15
  for common platforms; elsewhere SFML and CSFML are downloaded and built from source