rogems 1.0.2 → 1.0.4
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/Gemfile.lock +6 -0
- data/README.md +4 -1
- data/lib/RoGems.rb +1 -0
- data/lib/rogems/CLI.rb +4 -3
- metadata +1 -2
- data/lib/rogems/Version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 178c5911c59958b2a647c17c25bee611c102dd207169bda9cc200bf830cf9d72
|
4
|
+
data.tar.gz: 95fdfc9c4abb7bdb594bcf19ab43da13a72ae669ff8b64d8f3b47d7095296349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74c1cad4a1ce5dad25b7a76944f98237a253535f4a0c1ed855b1da1eed8180b7d8f6e0c33ed36983eb328d408e388ae57b701bdd5bc7c9c4c7b70f529af6f99b
|
7
|
+
data.tar.gz: 68d290a5b727add9854e2b5e7a1ef9b274bd9e06edb13562f5f0252fe0cb7fc6018d5440c39a648ba3fca40cbf93131d8d2991fd5652a98ab52b425bf2f71e5a
|
data/Gemfile
CHANGED
data/Gemfile.lock
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.rb
CHANGED
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
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- r-unic
|
@@ -252,7 +252,6 @@ files:
|
|
252
252
|
- lib/rogems/CodeGenerator.rb
|
253
253
|
- lib/rogems/Exceptions.rb
|
254
254
|
- lib/rogems/Transpiler.rb
|
255
|
-
- lib/rogems/Version.rb
|
256
255
|
- lib/rogems/default_rogems.json
|
257
256
|
- lib/rogems/default_rojo.json
|
258
257
|
- lib/rogems/default_tsconfig.json
|
data/lib/rogems/Version.rb
DELETED