fulgur 0.0.1

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 +7 -0
  2. data/LICENSE-MIT +21 -0
  3. data/README.md +33 -0
  4. data/lib/fulgur.rb +15 -0
  5. metadata +52 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2790fa4c3713ccd81cc9b8892acecf0e805faeea46b331495919e1c703d0a00f
4
+ data.tar.gz: 644d46841ef4a505247c8801b1ee3e164a5bcc17f4adfda997c3e809fb78d638
5
+ SHA512:
6
+ metadata.gz: 94ad56b86a3d79499cf60fa6550f37b14f53476422b24a7bf4c5f7854c81fd9015e7defc1f9ba9fee5a993ecdbec0abfbe2a7d78ce9a455e2ef03fd5532836f5
7
+ data.tar.gz: ac3682a7518b0d9798526a1b9314bf1034dd316ad8f69c2f7935aff5e5617694333abaa3cfc5184a6c40a558ad535bd3b301b01ecbbf1045d530db52386df206
data/LICENSE-MIT ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mitsuru Takigahira
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # fulgur
2
+
3
+ Ruby bindings for [fulgur](https://github.com/mitsuru/fulgur) — an offline, deterministic HTML/CSS to PDF conversion library written in Rust.
4
+
5
+ ## Status
6
+
7
+ **This gem is a name reservation.** The implementation is under active development.
8
+
9
+ ## Planned API
10
+
11
+ > **Not available in v0.0.1.** The current release is a placeholder for name reservation.
12
+
13
+ ```ruby
14
+ require "fulgur"
15
+
16
+ bundle = Fulgur::AssetBundle.new
17
+ bundle.add_css("body { font-family: sans-serif; }")
18
+ bundle.add_font_file("fonts/NotoSans-Regular.ttf")
19
+
20
+ engine = Fulgur::Engine.builder.page_size("A4").assets(bundle).build
21
+ pdf_bytes = engine.render_html("<h1>Hello, world!</h1>")
22
+
23
+ File.binwrite("output.pdf", pdf_bytes)
24
+ ```
25
+
26
+ ## Links
27
+
28
+ - [fulgur on GitHub](https://github.com/mitsuru/fulgur)
29
+ - [fulgur on crates.io](https://crates.io/crates/fulgur)
30
+
31
+ ## License
32
+
33
+ Licensed under either of Apache License, Version 2.0 or MIT license at your option.
data/lib/fulgur.rb ADDED
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Fulgur — Ruby bindings for fulgur (HTML/CSS to PDF).
4
+ #
5
+ # This is a placeholder gem. The implementation is under active development.
6
+ # See https://github.com/mitsuru/fulgur for details.
7
+ module Fulgur
8
+ VERSION = "0.0.1"
9
+
10
+ def self.placeholder
11
+ raise NotImplementedError,
12
+ "fulgur gem is not yet implemented. " \
13
+ "See https://github.com/mitsuru/fulgur for progress."
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fulgur
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mitsuru Hayasaka
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-04-17 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |
14
+ Ruby bindings for fulgur, an offline, deterministic HTML/CSS to PDF
15
+ conversion library written in Rust. This is a name reservation;
16
+ the implementation is under active development.
17
+ email: hayasaka.mitsuru@gmail.com
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - LICENSE-MIT
23
+ - README.md
24
+ - lib/fulgur.rb
25
+ homepage: https://github.com/mitsuru/fulgur
26
+ licenses:
27
+ - MIT
28
+ - Apache-2.0
29
+ metadata:
30
+ source_code_uri: https://github.com/mitsuru/fulgur
31
+ changelog_uri: https://github.com/mitsuru/fulgur/blob/main/CHANGELOG.md
32
+ bug_tracker_uri: https://github.com/mitsuru/fulgur/issues
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '3.1'
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubygems_version: 3.5.22
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: Ruby bindings for fulgur — offline HTML/CSS to PDF conversion
52
+ test_files: []