hokusai-zero 0.2.3 → 0.2.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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/ext/extconf.rb +7 -6
  4. data/hokusai.gemspec +1 -1
  5. metadata +7 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0b51936165c28af713ec3b359aec1b2cfc7b47f64bbe5dd365e31ea701e7640
4
- data.tar.gz: 38dc1e09dae8a502c0e89e32c21c6cd99fdfa20eac15c15577441827c48fa097
3
+ metadata.gz: 258655d3f20b0989fc428b59e1346fcce0cf2d3171cbd84734f76ab466147c41
4
+ data.tar.gz: dba94b3629f93488d2629440aa70e3f8e60e005814ba3a189c26cac1cb213698
5
5
  SHA512:
6
- metadata.gz: b7df65215d0dd03500b92809ba8d05d996aa7ef2f1d25c8a418da3b78e82dd69ef88b44c12b120bbc913aff1063a817b653bf0c0ca1ba5c7c5fec48fb2f00cfc
7
- data.tar.gz: e59f199ebcc5ecf2179d5b69e5b4a8e79b0b09e11862403b002a86fd18bfe534d09086c9b43c409218d124b63aa5076f10d020fbb9b8b4efaa5f244b15d13cdf
6
+ metadata.gz: 05404fcf63164d6201d7ec3061ff2076a31dd3b2a8061940587aa099e84632afa07621fbbe9a79ac978ca374a22f72e2408d277db22b34c0076f0bffd3bcda4f
7
+ data.tar.gz: c074724a12bf76772f9052fccbf06cbd49ff55e871d763c2477bc2a242650a74deaee9a5c3c67dedaae9058b89eefb3b94399ce1daf5d3eeb45c5098a8b3958b
data/README.md CHANGED
@@ -12,7 +12,7 @@ A Ruby library for authoring GUI applications
12
12
  In your Gemfile
13
13
 
14
14
  ```ruby
15
- gem "hokusai-zero", "0.2.3"
15
+ gem "hokusai-zero", "0.2.4"
16
16
  ```
17
17
 
18
18
  ## In order to run an application, you will need to install a backend
data/ext/extconf.rb CHANGED
@@ -3,13 +3,16 @@ require "mini_portile2"
3
3
 
4
4
  if MiniPortile.darwin?
5
5
  suffix = "dylib"
6
- ext = "zip"
6
+ ext = "tar.gz"
7
+ md4cext = "a"
7
8
  elsif MiniPortile.linux?
8
9
  suffix = "so"
9
10
  ext = "tar.gz"
11
+ md4cext = "so"
10
12
  elsif MiniPortile.windows?
11
13
  suffix = "dll"
12
14
  ext = "zip"
15
+ md4cext = "a"
13
16
  else
14
17
  raise "Currently only supporting darwin and linux"
15
18
  end
@@ -26,8 +29,6 @@ tree_sitter.tap do |t|
26
29
  end
27
30
 
28
31
  def t.install
29
- return if installed?
30
-
31
32
  execute('install', %Q(#{make_cmd} all install CC=gcc AR=ar PREFIX=#{File.expand_path(port_path)}), { env: { "PREFIX" => File.expand_path(port_path) }})
32
33
  end
33
34
 
@@ -40,7 +41,7 @@ md4c = MiniPortileCMake.new("md4c", "0.5.2")
40
41
  md4c.files = ["https://github.com/mity/md4c/archive/refs/tags/release-0.5.2.#{ext}"]
41
42
 
42
43
  def md4c.cmake_compile_flags
43
- [*super, "-DBUILD_SHARED_LIBS=OFF"]
44
+ [*super, "-DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON"]
44
45
  end
45
46
 
46
47
  md4c.cook
@@ -51,8 +52,8 @@ cwd = "#{__dir__}"
51
52
 
52
53
  files = %w[ast/src/core/hml.c ast/src/core/ast.c ast/rc/core/style.c ast/src/core/input.c ast/src/core/component.c ast/src/core/util.c ast/src/core/text.c grammar/src/parser.c grammar/src/scanner.c ast/include/hashmap.c]
53
54
  objects = %w[hml.o ast.o style.o input.o component.o util.o text.o parser.o scanner.o hashmap.o]
54
- libraries = [File.expand_path("#{tree_sitter.path}/lib/libtree-sitter.a"), File.expand_path("#{md4c.path}/lib/libmd4c.a")]
55
- src_files = ["#{tree_sitter.path}/lib/libtree-sitter.a", "#{md4c.path}/lib/libmd4c.a", "#{pre}/ast/src/core/hml.c", "#{pre}/ast/src/core/ast.c", "#{pre}/ast/src/core/style.c", "#{pre}/ast/src/core/input.c", "#{pre}/ast/src/core/component.c", "#{pre}/ast/src/core/util.c", "#{pre}/ast/src/core/text.c", "#{pre}/grammar/src/parser.c", "#{pre}/grammar/src/scanner.c", "#{pre}/ast/include/hashmap.c"]
55
+ libraries = [File.expand_path("#{tree_sitter.path}/lib/libtree-sitter.a"), File.expand_path("#{md4c.path}/lib/libmd4c.#{md4cext}")]
56
+ src_files = ["#{tree_sitter.path}/lib/libtree-sitter.a", "#{md4c.path}/lib/libmd4c.#{md4cext}", "#{pre}/ast/src/core/hml.c", "#{pre}/ast/src/core/ast.c", "#{pre}/ast/src/core/style.c", "#{pre}/ast/src/core/input.c", "#{pre}/ast/src/core/component.c", "#{pre}/ast/src/core/util.c", "#{pre}/ast/src/core/text.c", "#{pre}/grammar/src/parser.c", "#{pre}/grammar/src/scanner.c", "#{pre}/ast/include/hashmap.c"]
56
57
  if MiniPortile.windows?
57
58
  cflags = "-shared -Wall -Wl,--export-all-symbols -Wl,--enable-auto-import"
58
59
  mkdir = "mkdir #{pre}\\vendor\\lib"
data/hokusai.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'hokusai-zero'
3
- s.version = '0.2.3'
3
+ s.version = '0.2.5'
4
4
  s.licenses = ['MIT']
5
5
  s.summary = "A Ruby library for writing GUI applications"
6
6
  s.authors = ["skinnyjames"]
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hokusai-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - skinnyjames
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2025-06-24 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: ffi
@@ -93,6 +94,7 @@ dependencies:
93
94
  - - ">="
94
95
  - !ruby/object:Gem::Version
95
96
  version: '0'
97
+ description:
96
98
  email: zero@skinnyjames.net
97
99
  executables: []
98
100
  extensions:
@@ -295,6 +297,7 @@ licenses:
295
297
  - MIT
296
298
  metadata:
297
299
  source_code_uri: https://codeberg.org/skinnyjames/hokusai
300
+ post_install_message:
298
301
  rdoc_options: []
299
302
  require_paths:
300
303
  - ui/src
@@ -309,7 +312,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
309
312
  - !ruby/object:Gem::Version
310
313
  version: '0'
311
314
  requirements: []
312
- rubygems_version: 3.6.7
315
+ rubygems_version: 3.5.22
316
+ signing_key:
313
317
  specification_version: 4
314
318
  summary: A Ruby library for writing GUI applications
315
319
  test_files: []