rubyjs-vite 1.0.2 → 1.0.3

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: 1d8be56a5cd62d9c0cc4751a44ea778fbee3dabead90381f28e3d8664c2266f3
4
- data.tar.gz: d4af48e85e48a5deef17f59620e9a558930b463fc5b33338daeb04cdde15d5ee
3
+ metadata.gz: 23e29f893a32c27dccaecfb2e4a1ca9f58b4dbf2a293bf083e2d18f91856de5f
4
+ data.tar.gz: b34cd11ca9673abb54cf10b24e555dcfa6003787fb6634f968793fae7e631291
5
5
  SHA512:
6
- metadata.gz: ad86cf0733735f3cd6290881c9dff9b247459035801e46b82f8d1660f6bdb59c13a8b83b1027c6f14ee0358b8b9825dca646ee93cfe24c333100ab8f2a3f1de0
7
- data.tar.gz: 63c92ff729d76d0ea5d55df1712e4731f06c944ecedd58e9723e71f1f26b7cccc00289932a87b2e8a1b0cd50fd16b67a45b0d1be3cc17e47784b4674d13afa48
6
+ metadata.gz: b0d3b0c745905aa0bb5ff214bbcc35586e9423e33805f8e3bdce47ad9c1481880db2d4cbebafeb2d9d949f8e65a35f40520380347d637ff5f3a4c8fbad91ed67
7
+ data.tar.gz: 52f8b3751a57ecd83a4137dcafa157ac875ae57f48a8f5b40f214789af41fd331ffd55cbe2edb274e8d0d33cad2bfc16e7fa3ea05c53ee67b1f1c696a80a4099
data/lib/json_parser.rb CHANGED
@@ -11,7 +11,7 @@ class JsonParser
11
11
  end
12
12
 
13
13
  def on symbol, value
14
- if exist?
14
+ unless @db.include?(symbol.to_s)
15
15
  parse symbol, value
16
16
  end
17
17
  end
@@ -23,8 +23,12 @@ module RubyJS
23
23
  file.close
24
24
  end
25
25
 
26
- def self.free path_o
27
- File.delete(path_o) if File.exists? path_o
26
+ def self.free path_fro
27
+ # File
28
+ File.delete(path_fro) if File.exists? path_fro
29
+ # Dir
30
+ path_dro = File.dirname(path_fro)
31
+ Dir.delete(path_dro) if Dir.empty? path_dro
28
32
  end
29
33
 
30
34
  def self.event_p event, path_f
@@ -1,3 +1,3 @@
1
1
  module RubyJS
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyjs-vite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filip Vrba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-09 00:00:00.000000000 Z
11
+ date: 2022-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby2js
@@ -38,12 +38,8 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.7'
41
- description: |-
42
- Web applications may be made with the help of RubyJS Vite. The programmer can avoid using JS syntax, which is helpful. Everything is done automatically; all you have to do is start the server and build a project using scaffolding.
43
-
44
- Write your code using the JS api and Ruby syntax, and the server will automatically translate it. It then stores it in a file with the extension ".js". You will then be able to publish the project to [Vercel](https://vercel.com/) or directly to the [NPM package](https://www.npmjs.com/), and you will have a website that is written in the native JS language.
45
-
46
- See GitHub for further information. |> https://github.com/filipvrba/ruby-js
41
+ description: Using this translation tool, you can run Vite server and write code in
42
+ Ruby syntax using JS API. See GitHub for further information. |> https://github.com/filipvrba/ruby-js
47
43
  email: filipvrbaxi@gmail.com
48
44
  executables:
49
45
  - rjsv
@@ -90,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
86
  - !ruby/object:Gem::Version
91
87
  version: '0'
92
88
  requirements: []
93
- rubygems_version: 3.4.0.dev
89
+ rubygems_version: 3.3.7
94
90
  signing_key:
95
91
  specification_version: 4
96
92
  summary: Converts the syntax of ruby into javascript.