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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 402e3c0b0f1ea10e128eff264a95a9fc20e6219488b6bd7d1cb50a9dc6e2816e
4
- data.tar.gz: c736e13d6952f604d2383e8230a6a070b43366281eac5c96e143e3debb19afa6
3
+ metadata.gz: 178c5911c59958b2a647c17c25bee611c102dd207169bda9cc200bf830cf9d72
4
+ data.tar.gz: 95fdfc9c4abb7bdb594bcf19ab43da13a72ae669ff8b64d8f3b47d7095296349
5
5
  SHA512:
6
- metadata.gz: ec12a808279df2d70fdfbb79b1a539593aebead98c7d609e0fb2c0682edd7bfcf43835468283c5e0a66fede78c939d82f2600e3791add198a1ab8faf8be6d26b
7
- data.tar.gz: 749dcda761be1f25b105130f4610b2b79a578500509d23d278f584dadfb7a4277dbbbfaacaa80028793e6e6755ace484622ae5934bc331ce2083ec0d1cd76a76
6
+ metadata.gz: 74c1cad4a1ce5dad25b7a76944f98237a253535f4a0c1ed855b1da1eed8180b7d8f6e0c33ed36983eb328d408e388ae57b701bdd5bc7c9c4c7b70f529af6f99b
7
+ data.tar.gz: 68d290a5b727add9854e2b5e7a1ef9b274bd9e06edb13562f5f0252fe0cb7fc6018d5440c39a648ba3fca40cbf93131d8d2991fd5652a98ab52b425bf2f71e5a
data/Gemfile CHANGED
@@ -1,5 +1,6 @@
1
1
  source "https://rubygems.org/"
2
2
 
3
+ gemspec
3
4
  gem "solargraph"
4
5
  gem "ruby-lsp"
5
6
  gem "parser"
data/Gemfile.lock CHANGED
@@ -1,3 +1,8 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rogems (1.0.3)
5
+
1
6
  GEM
2
7
  remote: https://rubygems.org/
3
8
  specs:
@@ -103,6 +108,7 @@ DEPENDENCIES
103
108
  open3
104
109
  optparse
105
110
  parser
111
+ rogems!
106
112
  rspec
107
113
  ruby-lsp
108
114
  solargraph
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
- ![ci](https://github.com/R-unic/RoGems/actions/workflows/main.yml/badge.svg)
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
@@ -1,6 +1,7 @@
1
1
  $:.unshift File.join(File.dirname(__FILE__), "rogems")
2
2
  require "yaml"
3
3
  require "CLI"
4
+ require "rogems/compiler_types"
4
5
 
5
6
  module RoGems
6
7
  CONFIG_PATH = File.join(File.dirname(__FILE__), "../rogems.config.yml")
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
- self.run_transpiler
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(args)
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.2
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
@@ -1,3 +0,0 @@
1
- module RoGems
2
- VERSION = "1.0.2"
3
- end