inkcpp_rb 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/Gemfile.lock +2 -2
- data/README.md +13 -1
- data/Rakefile +3 -1
- data/ext/inkcpp_rb/inkcpp_rb.cpp +0 -2
- data/inkcpp_rb.gemspec +3 -2
- data/lib/inkcpp_rb/version.rb +3 -0
- data/lib/inkcpp_rb.rb +5 -0
- data/rbi/inkcpp_rb.rbi +4 -0
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6df4171fdae3fb72109490becde82a3c0ddfb844313aba4dae1d4fc992047d9d
|
4
|
+
data.tar.gz: 31444bad672062c2517af2d36306eb120e6fa0a19eaf6ea52a7df7426f8e6bea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79b518042aa460fdd5d421491d0382f74f23ac16c4cddf947166428fffcd2013346b664275dfb1b356bf097aa157ac2580d7907eb846c13311d8198faef0f5c6
|
7
|
+
data.tar.gz: 423a32aa6d86fcb5941e3e5ba29b80e85b3664b816a479c28f66c69ea0c0c96ccb4a94bbe8ca8b5f5dcfbd19df19e4437167b2819138ed5c361611d2996aaf1b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
inkcpp_rb (0.1.
|
4
|
+
inkcpp_rb (0.1.2)
|
5
|
+
rice (~> 4.3.3)
|
5
6
|
|
6
7
|
GEM
|
7
8
|
remote: https://rubygems.org/
|
@@ -75,7 +76,6 @@ DEPENDENCIES
|
|
75
76
|
minitest (~> 5.0)
|
76
77
|
rake (~> 13.0)
|
77
78
|
rake-compiler (~> 1.2.8)
|
78
|
-
rice (~> 4.3.3)
|
79
79
|
sorbet (~> 0.5.0)
|
80
80
|
sorbet-runtime (~> 0.5.0)
|
81
81
|
tapioca (~> 0.16.0)
|
data/README.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
-
#
|
1
|
+
# InkCPP RB
|
2
2
|
|
3
3
|
These are bindings for the InkCPP project in Ruby. They largely follow the same patterns as the official Python bindings, with a few small divergences.
|
4
|
+
|
5
|
+
Install:
|
6
|
+
|
7
|
+
```
|
8
|
+
bundle add inkcpp_rb
|
9
|
+
```
|
10
|
+
|
11
|
+
Sorbet typings are included.
|
12
|
+
|
13
|
+
## WARNING
|
14
|
+
|
15
|
+
This gem has largely been developed for my own purposes. I am not yet confident enough in the memory semantics between Rice and InkCPP to say that this is leak free or safe to use in any important environment. If you do use this gem, I strongly suggest you use it in situations where you are not parsing untrusted user input or anything like that.
|
data/Rakefile
CHANGED
data/ext/inkcpp_rb/inkcpp_rb.cpp
CHANGED
@@ -117,8 +117,6 @@ std::string list_to_str(const list& list)
|
|
117
117
|
extern "C"
|
118
118
|
void Init_inkcpp_rb() {
|
119
119
|
Rice::Module rb_mInk = define_module("Ink");
|
120
|
-
rb_mInk.const_set(Rice::Identifier("VERSION"), Rice::String("0.1.0"));
|
121
|
-
|
122
120
|
Data_Type<ink::compiler::compilation_results> rb_cCompilationResults = define_class_under<ink::compiler::compilation_results>(rb_mInk, "CompilationResults")
|
123
121
|
.define_method("warnings", [](ink::compiler::compilation_results &results) {
|
124
122
|
return results.warnings;
|
data/inkcpp_rb.gemspec
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
require_relative "./lib/inkcpp_rb/version"
|
2
3
|
|
3
4
|
Gem::Specification.new do |spec|
|
4
5
|
spec.name = "inkcpp_rb"
|
5
|
-
spec.version =
|
6
|
+
spec.version = InkcppRb::VERSION
|
6
7
|
spec.authors = ["Chris Zelenak"]
|
7
8
|
spec.email = ["chris@zelenak.me"]
|
8
9
|
spec.licenses = ["MIT"]
|
@@ -42,8 +43,8 @@ Gem::Specification.new do |spec|
|
|
42
43
|
|
43
44
|
# Uncomment to register a new dependency of your gem
|
44
45
|
# spec.add_dependency "example-gem", "~> 1.0"
|
46
|
+
spec.add_dependency "rice", "~> 4.3.3"
|
45
47
|
spec.add_development_dependency "rake-compiler", "~> 1.2.8"
|
46
|
-
spec.add_development_dependency "rice", "~> 4.3.3"
|
47
48
|
spec.add_development_dependency "sorbet", "~> 0.5.0"
|
48
49
|
spec.add_development_dependency "sorbet-runtime", "~> 0.5.0"
|
49
50
|
spec.add_development_dependency "tapioca", "~> 0.16.0"
|
data/lib/inkcpp_rb.rb
ADDED
data/rbi/inkcpp_rb.rbi
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inkcpp_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Zelenak
|
@@ -10,33 +10,33 @@ cert_chain: []
|
|
10
10
|
date: 2025-01-10 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
|
-
name:
|
13
|
+
name: rice
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
16
|
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version:
|
19
|
-
type: :
|
18
|
+
version: 4.3.3
|
19
|
+
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version:
|
25
|
+
version: 4.3.3
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
|
-
name:
|
27
|
+
name: rake-compiler
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 1.2.8
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 1.2.8
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: sorbet
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
@@ -350,6 +350,8 @@ files:
|
|
350
350
|
- ext/inkcpp_rb/inkcpp/unreal/render.css
|
351
351
|
- ext/inkcpp_rb/inkcpp_rb.cpp
|
352
352
|
- inkcpp_rb.gemspec
|
353
|
+
- lib/inkcpp_rb.rb
|
354
|
+
- lib/inkcpp_rb/version.rb
|
353
355
|
- rbi/inkcpp_rb.rbi
|
354
356
|
- sorbet/config
|
355
357
|
- sorbet/rbi/annotations/.gitattributes
|