rubyjs-vite 1.0.4 → 1.0.6

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: a31e0e75faaeba2ed338cacc961aa931983d8c5d0b05952dcc11da4db3845ffb
4
- data.tar.gz: a78a09246f00a73615405922aca8b6bdcecb6b51e72485fe87fef8e2c15c3a71
3
+ metadata.gz: b9849d181ab8eeb5a8dd4f15d860a3ae2fde08b23de946679212b82657aea889
4
+ data.tar.gz: 5483e31adbcf1a6533222c0a110fc3c5c31c3735e8b3713db8932a49a904e154
5
5
  SHA512:
6
- metadata.gz: 4283995ad07250069d1641ea613206df45d7b5ded6a4cfb1e5847abf3d5aff2bc48194edf7f4c00f1cddacb584da47de0e21158403e15ca776b8db0be03c24dd
7
- data.tar.gz: 7490c439c8e2626708ea9ad8808787ca31b1e88c760fce91609b35e34fc14ba50a178e496bb4f7780d5790a46a29f19a817ce00efce21d900a1aad0b7dd0bad5
6
+ metadata.gz: b9ae171e632c80e2ec60058a4041631244ca95fab2cfacb111733aebb9d760b66e40d011e2f624dd4aa9a1e7c79e8af3c486d5c6a767880b2a8acc87ad70118f
7
+ data.tar.gz: 2e8e7c0cdc05ba2e5d6fe42cf661130f7477153857687cf969cacf95473357db4b30a6a900dcf2d5714bacfb40cfa1ba0c35d1366239b81a185a473e86629502
@@ -15,15 +15,17 @@ module RubyJS
15
15
  json_cj = JsonParser.new File.join(path_ao, ".codejoin")
16
16
  json_cj.parse :name, project.downcase
17
17
 
18
- change_watch_f(path_ao)
18
+ change_name_f(path_ao)
19
19
  install_vite(project, path_ao)
20
20
  end
21
21
 
22
- def self.change_watch_f path_ao
23
- path_bin_ao = "#{path_ao}/bin/watch"
24
- content = Helper.open(path_bin_ao)
25
- content_ch = content.sub("APP_NAME", Constants::APP_NAME)
26
- Helper.write(path_bin_ao, content_ch)
22
+ def self.change_name_f path_ao
23
+ paths_bin_ao = ["#{path_ao}/bin/watch", "#{path_ao}/bin/generate"]
24
+ paths_bin_ao.each do |p|
25
+ content = Helper.open(p)
26
+ content_ch = content.sub("APP_NAME", Constants::APP_NAME)
27
+ Helper.write(p, content_ch)
28
+ end
27
29
  end
28
30
 
29
31
  def self.install_vite project, path_ao
@@ -1,3 +1,3 @@
1
1
  module RubyJS
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.6"
3
3
  end
data/lib/ruby_js.rb CHANGED
@@ -36,7 +36,7 @@ module RubyJS
36
36
  def self.generate_cj path_s
37
37
  path_hfd = path_s
38
38
  unless File.exist?(File.join(path_s, CodeJoin::FILE_HN))
39
- path_hfd = ROOT
39
+ path_hfd = Dir.pwd
40
40
  end
41
41
 
42
42
  code_join = CodeJoin.new path_hfd
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ APP_NAME -g -s src/rjs -o src/.js
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.4
4
+ version: 1.0.6
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-27 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby2js
@@ -60,6 +60,7 @@ files:
60
60
  - lib/ruby_js/helper.rb
61
61
  - lib/ruby_js/scaffold.rb
62
62
  - lib/ruby_js/version.rb
63
+ - share/template/bin/generate
63
64
  - share/template/bin/server
64
65
  - share/template/bin/watch
65
66
  - share/template/index.html