rogems 1.0.2 → 1.0.3
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 +4 -4
- data/Gemfile +1 -0
- data/README.md +4 -1
- data/lib/rogems/CLI.rb +4 -3
- data/lib/rogems/Version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35e7179457f024d271df3b37f795ae42fe8997865239596742d221d2260cc4bb
|
4
|
+
data.tar.gz: 3ac576006e377f536d921c32d871b662ab3d37714d64b94fce12ba4381ab2518
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5cb986cfd07f3d56a498558dab468e5fc5be6bd3a438fb3568320f28ee7e7babbf13645d23a08326ebc150cea60b7cb06fcd91d8b7b1ef816a1239960911358
|
7
|
+
data.tar.gz: 38bcab90d98a2ad5bea2c81170f31f145bbfd89eaa193b001a09e2727e89962858b82d393e52fdfdf3e73c9563aead91d03be663ee6553a5a98b3f097345a162
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
|
1
|
+
<a href="https://github.com/R-unic/RoGems/tree/master/spec">
|
2
|
+
<img src="https://github.com/R-unic/RoGems/actions/workflows/main.yml/badge.svg" alt="build_ci">
|
3
|
+
</a>
|
4
|
+
|
2
5
|
# RoGems
|
3
6
|
RoGems is a Ruby to Lua transpiler written for use with Roblox (like roblox-ts)
|
4
7
|
|
data/lib/rogems/CLI.rb
CHANGED
@@ -57,7 +57,7 @@ module RoGems
|
|
57
57
|
FileUtils.cp_r(path_from_lib("rb_include"), "rb_include", :remove_destination => false)
|
58
58
|
|
59
59
|
@config = JSON.parse(default_rogems_json)
|
60
|
-
@transpiler = Transpiler.new(@config)
|
60
|
+
@parent.transpiler = Transpiler.new(@config)
|
61
61
|
FileUtils.touch("./src/shared/helloWorld.rb") # create example files
|
62
62
|
File.open("./src/shared/helloWorld.rb", "w") do |f|
|
63
63
|
f.write("def helloWorld\n puts \"hello world\"\nend")
|
@@ -66,7 +66,7 @@ module RoGems
|
|
66
66
|
File.open("./src/client/main.client.rb", "w") do |f|
|
67
67
|
f.write("require \"shared/helloWorld\"\n\nhelloWorld()")
|
68
68
|
end
|
69
|
-
|
69
|
+
@parent.run_transpiler
|
70
70
|
end
|
71
71
|
|
72
72
|
def path_from_lib(path)
|
@@ -120,6 +120,7 @@ module RoGems
|
|
120
120
|
|
121
121
|
class MainCommand
|
122
122
|
attr_reader :options
|
123
|
+
attr_accessor :transpiler
|
123
124
|
|
124
125
|
def parse_options
|
125
126
|
OptionParser.new do |opts|
|
@@ -151,7 +152,7 @@ module RoGems
|
|
151
152
|
@options[:init] = true
|
152
153
|
args = ARGV
|
153
154
|
args.shift
|
154
|
-
CLI::InitCommand.new(
|
155
|
+
CLI::InitCommand.new(self)
|
155
156
|
else
|
156
157
|
@options[:dir] = @options[:sub_command]
|
157
158
|
end
|
data/lib/rogems/Version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rogems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- r-unic
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2023-02-01 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: compiler_types
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description:
|
14
28
|
email:
|
15
29
|
- roleyspersonal@gmail.com
|