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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9108f35d9ee3f30702c1b2c73c77b1cd86a98122bfa4ae92bb47227af78b0307
4
- data.tar.gz: 98e7b0ece1ede52080f09421f2c8d5fdd5ad5e803c34266ab1a0eca209247356
3
+ metadata.gz: 6df4171fdae3fb72109490becde82a3c0ddfb844313aba4dae1d4fc992047d9d
4
+ data.tar.gz: 31444bad672062c2517af2d36306eb120e6fa0a19eaf6ea52a7df7426f8e6bea
5
5
  SHA512:
6
- metadata.gz: 7da2986d457633e3e88175fc15fc52c58490e2c553f99e731a54c142454439529338a1e6cdeca371d0ee4704465b1a6d54601230232fee57edc56901a44a90ea
7
- data.tar.gz: 4571001c48c80c561cb9517b53d5ccd735368a32271c666c8bedfc9922f01faccab8b3d09c2b0e1dbd89330c9ffa66c59d1ae9abd7f6fc16c33c57b4b8962dc6
6
+ metadata.gz: 79b518042aa460fdd5d421491d0382f74f23ac16c4cddf947166428fffcd2013346b664275dfb1b356bf097aa157ac2580d7907eb846c13311d8198faef0f5c6
7
+ data.tar.gz: 423a32aa6d86fcb5941e3e5ba29b80e85b3664b816a479c28f66c69ea0c0c96ccb4a94bbe8ca8b5f5dcfbd19df19e4437167b2819138ed5c361611d2996aaf1b
data/CHANGELOG.md CHANGED
@@ -1 +1,3 @@
1
1
  0.1.0: Initial commit
2
+ 0.1.1: Adjust directory structure to fit Ruby norms
3
+ 0.1.2: Ensure Rice included as a dependency
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- inkcpp_rb (0.1.0)
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
- # Ink RB
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
@@ -11,6 +11,8 @@ Rake::TestTask.new(:test) do |t|
11
11
  end
12
12
 
13
13
 
14
- Rake::ExtensionTask.new("inkcpp_rb")
14
+ Rake::ExtensionTask.new("inkcpp_rb", Gem::Specification::load("inkcpp_rb.gemspec")) do |ext|
15
+ ext.lib_dir = "lib/inkcpp_rb"
16
+ end
15
17
 
16
18
  task default: :test
@@ -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 = "0.1.0"
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"
@@ -0,0 +1,3 @@
1
+ module InkcppRb
2
+ VERSION = "0.1.2"
3
+ end
data/lib/inkcpp_rb.rb ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ require_relative "inkcpp_rb/inkcpp_rb"
3
+ require_relative "inkcpp_rb/version"
4
+ module InkcppRb
5
+ end
data/rbi/inkcpp_rb.rbi CHANGED
@@ -1,5 +1,9 @@
1
1
  # typed: strict
2
2
 
3
+ module InkcppRb
4
+ VERSION = T.let(T.anything, String)
5
+ end
6
+
3
7
  module Ink
4
8
  class CompilationResults
5
9
  sig { returns(T.untyped) }
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.0
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: rake-compiler
13
+ name: rice
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 1.2.8
19
- type: :development
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: 1.2.8
25
+ version: 4.3.3
26
26
  - !ruby/object:Gem::Dependency
27
- name: rice
27
+ name: rake-compiler
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 4.3.3
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: 4.3.3
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