atome 0.5.5.6.5 → 0.5.5.6.7.9
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/Rakefile +251 -90
- data/atome.gemspec +64 -0
- data/documentation/deep learning/basic_infos.txt +66 -2
- data/exe/atome +165 -36
- data/lib/atome/genesis/generators/utility.rb +3 -0
- data/lib/atome/helpers/utilities.rb +14 -1
- data/lib/atome/version.rb +1 -1
- data/lib/platform_specific/opal/atome_opal_extensions.rb +1 -0
- data/lib/renderers/html/utility.rb +46 -0
- data/vendor/assets/application/examples/file.rb +11 -46
- data/vendor/assets/application/examples/security.rb +5 -5
- data/vendor/assets/src/js/atome/atome.js +156 -20
- metadata +4 -18
- data/app_builder_helpers/Rakefile +0 -278
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80b2ae16745148bcd904445e4ca9b79910b7329378ae33986a2e627f92e42f00
|
4
|
+
data.tar.gz: 32e3714c59d574682e9a9e3f2e1cee27b86e8fd5c196d331ff462266e50ba2bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ae4ca6116476b6d2991f1af88a1a95c3f4293d9312a8594dc50152a5bc2b59fb7d442680e22d0c7ae2b4c717c1bdeb4fc0f3f00f1fa7597164e4710d441108c
|
7
|
+
data.tar.gz: d062a75e5d2923dd9b37fb28040d0597f8a7bf92eaf9ff6e90a986fcde54ddc5597398cc92a3266e16ab946be8b1c704afb979ce5d8659359b1d1a4f6b25447b
|
data/Rakefile
CHANGED
@@ -2,15 +2,67 @@
|
|
2
2
|
require 'fileutils'
|
3
3
|
require 'securerandom'
|
4
4
|
require 'digest/sha2'
|
5
|
+
require 'rubygems'
|
6
|
+
require 'rubygems/command_manager'
|
7
|
+
require 'rubygems/uninstaller'
|
5
8
|
require 'bundler/gem_tasks'
|
6
9
|
load 'exe/atome'
|
7
10
|
|
8
11
|
task :cleanup do
|
9
|
-
|
12
|
+
|
13
|
+
manager = Gem::CommandManager.instance
|
14
|
+
cleanup_command = manager['cleanup']
|
15
|
+
|
16
|
+
begin
|
17
|
+
cleanup_command.invoke('atome')
|
18
|
+
rescue Gem::SystemExitException => e
|
19
|
+
puts "Erreur lors du nettoyage : #{e.message}"
|
20
|
+
end
|
21
|
+
|
22
|
+
begin
|
23
|
+
uninstaller = Gem::Uninstaller.new('atome', { executables: true, all: true, force: true })
|
24
|
+
uninstaller.uninstall
|
25
|
+
rescue Gem::InstallError => e
|
26
|
+
puts "Erreur lors de la désinstallation : #{e.message}"
|
27
|
+
end
|
28
|
+
|
29
|
+
Dir.chdir('pkg') do
|
30
|
+
# Effectuez vos opérations dans le dossier 'pkg'
|
31
|
+
end
|
32
|
+
|
33
|
+
# if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
34
|
+
# # code to exec for Windows
|
35
|
+
# `gem cleanup atome`
|
36
|
+
# `echo yes | gem uninstall atome`
|
37
|
+
# `cd pkg`
|
38
|
+
#
|
39
|
+
# elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
40
|
+
# # code to exec for MacOS
|
41
|
+
# `gem cleanup atome;yes | gem uninstall atome;cd pkg`
|
42
|
+
# else
|
43
|
+
# # code to exec for Unix/Linux
|
44
|
+
# `gem cleanup atome;yes | gem uninstall atome;cd pkg`
|
45
|
+
# end
|
46
|
+
|
10
47
|
end
|
11
48
|
task :reset_cache do
|
12
|
-
|
13
|
-
|
49
|
+
FileUtils.rm_rf('./tmp')
|
50
|
+
FileUtils.rm_rf('./pkg')
|
51
|
+
# if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
52
|
+
# # code to exec for Windows
|
53
|
+
# `rmdir /s /q .\\tmp`
|
54
|
+
# `rmdir /s /q .\\pkg`
|
55
|
+
#
|
56
|
+
# elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
57
|
+
# # code to exec for MacOS
|
58
|
+
# `rm -r -f ./tmp`
|
59
|
+
# `rm -r -f ./pkg`
|
60
|
+
# else
|
61
|
+
# # code to exec for Unix/Linux
|
62
|
+
# `rm -r -f ./tmp`
|
63
|
+
# `rm -r -f ./pkg`
|
64
|
+
# end
|
65
|
+
|
14
66
|
end
|
15
67
|
|
16
68
|
def resolve_requires(file_path, root_path, processed_files = Set.new, depth = 0)
|
@@ -42,59 +94,122 @@ def generate_resolved_file(source_file_path)
|
|
42
94
|
resolve_requires(source_file_path, root_path)
|
43
95
|
end
|
44
96
|
|
45
|
-
|
46
|
-
project_name = :test
|
47
|
-
source = '.'
|
48
|
-
destination = './tmp'
|
49
|
-
script_source = './test/application'
|
50
|
-
wasi_file = 'wasi-vfs-osx_arm'
|
51
|
-
host_mode = 'pure_wasm'
|
97
|
+
def wasm_params(source, destination, project_name, wasi_file, host_mode, script_source)
|
52
98
|
create_application(source, destination, project_name)
|
53
99
|
wasm_common(source, destination, project_name, wasi_file, host_mode, script_source)
|
54
|
-
`open ./tmp/#{project_name}/src/index.html`
|
55
|
-
puts 'atome wasm is build and running!'
|
56
100
|
end
|
57
101
|
|
58
|
-
task :
|
59
|
-
# wasi Source here : https://github.com/kateinoigakukun/wasi-vfs/releases
|
60
|
-
project_name = :test
|
61
|
-
source = '.'
|
62
|
-
destination = './tmp'
|
63
|
-
script_source = './test/application'
|
64
|
-
wasi_file = 'wasi-vfs-osx_x86'
|
65
|
-
host_mode = 'pure_wasm'
|
66
|
-
create_application(source, destination, project_name)
|
67
|
-
wasm_common(source, destination, project_name, wasi_file, script_source, host_mode, script_source)
|
68
|
-
`open ./tmp/#{project_name}/src/index.html`
|
69
|
-
puts 'atome wasm is build and running!'
|
70
|
-
end
|
71
|
-
task :test_wasm_windows do
|
72
|
-
# wasi Source here : https://github.com/kateinoigakukun/wasi-vfs/releases
|
73
|
-
project_name = :test
|
74
|
-
source = '.'
|
75
|
-
destination = './tmp'
|
76
|
-
script_source = './test/application'
|
77
|
-
wasi_file = 'wasi-vfs.exe pack'
|
78
|
-
host_mode = 'pure_wasm'
|
79
|
-
create_application(source, destination, project_name)
|
80
|
-
wasm_common(source, destination, project_name, wasi_file, host_mode, script_source)
|
81
|
-
`open ./tmp/#{project_name}/src/index.html`
|
82
|
-
puts 'atome wasm is build and running!'
|
83
|
-
end
|
84
|
-
task :test_wasm_unix do
|
85
|
-
# wasi Source here : https://github.com/kateinoigakukun/wasi-vfs/releases
|
102
|
+
task :test_wasm do
|
86
103
|
project_name = :test
|
87
104
|
source = '.'
|
88
|
-
|
89
|
-
script_source = './test/application'
|
90
|
-
wasi_file = 'wasi-vfs-unix pack tmp'
|
105
|
+
|
91
106
|
host_mode = 'pure_wasm'
|
92
|
-
|
93
|
-
|
94
|
-
|
107
|
+
|
108
|
+
file_path = "./tmp/#{project_name}/src/index.html"
|
109
|
+
|
110
|
+
case RbConfig::CONFIG['host_os']
|
111
|
+
when /darwin|mac os/
|
112
|
+
|
113
|
+
cpu_type = RbConfig::CONFIG['host_cpu']
|
114
|
+
wasi_file = if cpu_type.include?('arm') || cpu_type.include?('aarch64')
|
115
|
+
# Commande pour Mac ARM
|
116
|
+
'wasi-vfs-osx_arm'
|
117
|
+
else
|
118
|
+
# Commande pour Mac Intel x86
|
119
|
+
'wasi-vfs-osx_x86'
|
120
|
+
end
|
121
|
+
destination = './tmp'
|
122
|
+
script_source = './test/application'
|
123
|
+
|
124
|
+
wasm_params(source, destination, project_name, wasi_file, host_mode, script_source)
|
125
|
+
system "open", file_path
|
126
|
+
when /linux|bsd/
|
127
|
+
destination = './tmp'
|
128
|
+
script_source = './test/application'
|
129
|
+
wasi_file = 'wasi-vfs-unix pack tmp'
|
130
|
+
wasm_params(source, destination, project_name, wasi_file, host_mode, script_source)
|
131
|
+
system "xdg-open", file_path
|
132
|
+
when /mswin|mingw|cygwin/
|
133
|
+
destination = '.\\tmp'
|
134
|
+
script_source = '.\\test\\application'
|
135
|
+
wasi_file = 'wasi-vfs.exe pack'
|
136
|
+
wasm_params(source, destination, project_name, wasi_file, host_mode, script_source)
|
137
|
+
system "start", file_path
|
138
|
+
else
|
139
|
+
raise "Système d'exploitation non reconnu"
|
140
|
+
end
|
141
|
+
|
95
142
|
puts 'atome wasm is build and running!'
|
96
143
|
end
|
97
144
|
|
145
|
+
# task :test_wasm_osx_x86 do
|
146
|
+
# # wasi Source here : https://github.com/kateinoigakukun/wasi-vfs/releases
|
147
|
+
# project_name = :test
|
148
|
+
# source = '.'
|
149
|
+
# destination = './tmp'
|
150
|
+
# script_source = './test/application'
|
151
|
+
# wasi_file = 'wasi-vfs-osx_x86'
|
152
|
+
# host_mode = 'pure_wasm'
|
153
|
+
# create_application(source, destination, project_name)
|
154
|
+
# wasm_common(source, destination, project_name, wasi_file, script_source, host_mode, script_source)
|
155
|
+
# if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
156
|
+
# # code to exec for Windows
|
157
|
+
# `start "" ".\\tmp\\#{project_name}\\src\\index.html"`
|
158
|
+
# elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
159
|
+
# # code to exec for MacOS
|
160
|
+
# `open ./tmp/#{project_name}/src/index.html`
|
161
|
+
# else
|
162
|
+
# # code to exec for Unix/Linux
|
163
|
+
# `open ./tmp/#{project_name}/src/index.html`
|
164
|
+
# end
|
165
|
+
#
|
166
|
+
# puts 'atome wasm is build and running!'
|
167
|
+
# end
|
168
|
+
# task :test_wasm_windows do
|
169
|
+
# # wasi Source here : https://github.com/kateinoigakukun/wasi-vfs/releases
|
170
|
+
# project_name = :test
|
171
|
+
# source = '.'
|
172
|
+
# destination = './tmp'
|
173
|
+
# script_source = './test/application'
|
174
|
+
# wasi_file = 'wasi-vfs.exe pack'
|
175
|
+
# host_mode = 'pure_wasm'
|
176
|
+
# create_application(source, destination, project_name)
|
177
|
+
# wasm_common(source, destination, project_name, wasi_file, host_mode, script_source)
|
178
|
+
# if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
179
|
+
# # code to exec for Windows
|
180
|
+
# `start "" ".\\tmp\\#{project_name}\\src\\index.html"`
|
181
|
+
# elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
182
|
+
# # code to exec for MacOS
|
183
|
+
# `open ./tmp/#{project_name}/src/index.html`
|
184
|
+
# else
|
185
|
+
# # code to exec for Unix/Linux
|
186
|
+
# `open ./tmp/#{project_name}/src/index.html`
|
187
|
+
# end
|
188
|
+
# puts 'atome wasm is build and running!'
|
189
|
+
# end
|
190
|
+
# task :test_wasm_unix do
|
191
|
+
# # wasi Source here : https://github.com/kateinoigakukun/wasi-vfs/releases
|
192
|
+
# project_name = :test
|
193
|
+
# source = '.'
|
194
|
+
# destination = './tmp'
|
195
|
+
# script_source = './test/application'
|
196
|
+
# wasi_file = 'wasi-vfs-unix pack tmp'
|
197
|
+
# host_mode = 'pure_wasm'
|
198
|
+
# create_application(source, destination, project_name)
|
199
|
+
# wasm_common(source, destination, project_name, wasi_file, host_mode, script_source)
|
200
|
+
# if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
201
|
+
# # code to exec for Windows
|
202
|
+
# `start "" ".\\tmp\\#{project_name}\\src\\index.html"`
|
203
|
+
# elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
204
|
+
# # code to exec for MacOS
|
205
|
+
# `open ./tmp/#{project_name}/src/index.html`
|
206
|
+
# else
|
207
|
+
# # code to exec for Unix/Linux
|
208
|
+
# `open ./tmp/#{project_name}/src/index.html`
|
209
|
+
# end
|
210
|
+
# puts 'atome wasm is build and running!'
|
211
|
+
# end
|
212
|
+
|
98
213
|
task :test_opal do
|
99
214
|
project_name = :test
|
100
215
|
source = '.'
|
@@ -116,7 +231,17 @@ task :test_opal do
|
|
116
231
|
# build application
|
117
232
|
build_opal_application(source, destination, project_name)
|
118
233
|
# open the app
|
119
|
-
|
234
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
235
|
+
# code to exec for Windows
|
236
|
+
`start "" "#{destination}\\#{project_name}\\src\\index_opal.html"`
|
237
|
+
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
238
|
+
# code to exec for MacOS
|
239
|
+
`open #{destination}/#{project_name}/src/index_opal.html`
|
240
|
+
else
|
241
|
+
# code to exec for Unix/Linux
|
242
|
+
`open #{destination}/#{project_name}/src/index_opal.html`
|
243
|
+
end
|
244
|
+
|
120
245
|
puts 'atome opal is build and running!'
|
121
246
|
end
|
122
247
|
task :server_wasm do
|
@@ -157,7 +282,18 @@ task :test_server do
|
|
157
282
|
threads = []
|
158
283
|
threads << Thread.new do
|
159
284
|
sleep 1
|
160
|
-
|
285
|
+
|
286
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
287
|
+
# code to exec for Windows
|
288
|
+
`start "" "http://localhost:9292"`
|
289
|
+
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
290
|
+
# code to exec for MacOS
|
291
|
+
`open http://localhost:9292`
|
292
|
+
else
|
293
|
+
# code to exec for Unix/Linux
|
294
|
+
`open http://localhost:9292`
|
295
|
+
end
|
296
|
+
|
161
297
|
end
|
162
298
|
build_for_server(destination, project_name, 9292, :production)
|
163
299
|
end
|
@@ -207,60 +343,85 @@ end
|
|
207
343
|
|
208
344
|
task :osx_server do
|
209
345
|
project_name = :test
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
project_name = :test
|
231
|
-
source = '.'
|
232
|
-
destination = './tmp'
|
233
|
-
script_source = './test/application'
|
234
|
-
wasi_file = 'wasi-vfs-osx_arm'
|
235
|
-
host_mode = 'tauri'
|
236
|
-
create_application(source, destination, project_name)
|
237
|
-
wasm_common(source, destination, project_name, wasi_file, host_mode, script_source)
|
238
|
-
destination = './tmp'
|
239
|
-
threads = []
|
240
|
-
threads << Thread.new do
|
241
|
-
build_for_server(destination, project_name, 9292, :production)
|
242
|
-
end
|
243
|
-
build_for_osx(destination)
|
244
|
-
|
245
|
-
|
246
|
-
puts 'atome osx is running'
|
247
|
-
|
248
|
-
|
346
|
+
source = '.'
|
347
|
+
destination = './tmp'
|
348
|
+
script_source = './test/application'
|
349
|
+
create_application(source, destination, project_name)
|
350
|
+
# the line below is to add addition script to the application folder (useful for test per example)
|
351
|
+
add_to_application_folder(script_source, destination, project_name)
|
352
|
+
# build opal
|
353
|
+
build_opal_library(source, destination, project_name)
|
354
|
+
# build parser
|
355
|
+
build_opal_parser(source, destination, project_name)
|
356
|
+
# build atome kernel
|
357
|
+
build_atome_kernel_for_opal(source, destination, project_name)
|
358
|
+
# build host_mode
|
359
|
+
build_host_mode(destination, project_name, 'puma-roda')
|
360
|
+
# build Opal extensions
|
361
|
+
build_opal_extensions(source, destination, project_name)
|
362
|
+
# build application
|
363
|
+
build_opal_application(source, destination, project_name)
|
364
|
+
# build and open the app
|
249
365
|
|
366
|
+
project_name = :test
|
367
|
+
source = '.'
|
368
|
+
destination = './tmp'
|
369
|
+
script_source = './test/application'
|
370
|
+
wasi_file = 'wasi-vfs-osx_arm'
|
371
|
+
host_mode = 'tauri'
|
372
|
+
create_application(source, destination, project_name)
|
373
|
+
wasm_common(source, destination, project_name, wasi_file, host_mode, script_source)
|
374
|
+
destination = './tmp'
|
375
|
+
threads = []
|
376
|
+
threads << Thread.new do
|
377
|
+
build_for_server(destination, project_name, 9292, :production)
|
378
|
+
end
|
379
|
+
build_for_osx(destination)
|
250
380
|
|
381
|
+
puts 'atome osx is running'
|
251
382
|
|
252
383
|
end
|
253
384
|
|
254
|
-
|
255
385
|
task :build_gem do
|
256
386
|
# building the gem
|
257
387
|
`rake build` # run build_app thru ARGV in exe atome
|
258
388
|
# installing the gem
|
259
|
-
|
260
|
-
|
389
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
390
|
+
# code to exec for Windows
|
391
|
+
`cd pkg && gem install atome --local`
|
392
|
+
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
393
|
+
# code to exec for MacOS
|
394
|
+
`cd pkg; gem install atome --local`
|
395
|
+
# open the app
|
396
|
+
else
|
397
|
+
# code to exec for Unix/Linux
|
398
|
+
`cd pkg; gem install atome --local`
|
399
|
+
# open the app
|
400
|
+
end
|
401
|
+
|
261
402
|
puts 'atome gem built and installed'
|
262
403
|
end
|
263
404
|
|
405
|
+
|
406
|
+
task :push_gem do
|
407
|
+
|
408
|
+
# # pushing the gem
|
409
|
+
# if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
410
|
+
# # code to exec for Windows
|
411
|
+
# `cd pkg && gem push atome`
|
412
|
+
# elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
413
|
+
# # code to exec for MacOS
|
414
|
+
# `cd pkg; gem push atome`
|
415
|
+
# # open the app
|
416
|
+
# else
|
417
|
+
# # code to exec for Unix/Linux
|
418
|
+
# `cd pkg; gem push atome`
|
419
|
+
# # open the app
|
420
|
+
# end
|
421
|
+
#
|
422
|
+
# puts 'atome gem pushed'
|
423
|
+
end
|
424
|
+
|
264
425
|
# task :run_wasm_client_code do
|
265
426
|
# app_name = :test
|
266
427
|
# dest_path = './tmp/'
|
data/atome.gemspec
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/atome/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'atome'
|
7
|
+
spec.version = Atome::VERSION
|
8
|
+
spec.authors = ['Jean-Eric Godard']
|
9
|
+
spec.email = ['jeezs@atopme.one']
|
10
|
+
|
11
|
+
spec.summary = 'the creative framework'
|
12
|
+
spec.description = 'the creative framework.'
|
13
|
+
spec.homepage = 'https://atome.one'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
spec.required_ruby_version = '>= 3.1'
|
16
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
17
|
+
|
18
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
19
|
+
spec.metadata['source_code_uri'] = 'https://github.com/atomecorp/atome'
|
20
|
+
spec.metadata['changelog_uri'] = 'https://github.com/atomecorp/atome'
|
21
|
+
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
|
25
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
26
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
spec.bindir = 'exe'
|
32
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
33
|
+
spec.require_paths = ['lib']
|
34
|
+
|
35
|
+
spec.add_runtime_dependency 'arduino_firmata', '~> 0.3'
|
36
|
+
spec.add_runtime_dependency 'eventmachine', '~> 1.2.7'
|
37
|
+
spec.add_runtime_dependency 'faye-websocket', '~> 0.1'
|
38
|
+
spec.add_runtime_dependency 'geocoder', '~> 1.8'
|
39
|
+
spec.add_runtime_dependency 'guard', '~> 2.1'
|
40
|
+
spec.add_runtime_dependency 'guard-rake', '~> 1.0'
|
41
|
+
spec.add_runtime_dependency 'image_size', '~> 3.0'
|
42
|
+
spec.add_runtime_dependency 'mail', '~> 2.1'
|
43
|
+
spec.add_runtime_dependency 'net-ping', '~> 2.0'
|
44
|
+
spec.add_runtime_dependency 'opal', '~> 1.5'
|
45
|
+
spec.add_runtime_dependency 'parser', '~> 3.1'
|
46
|
+
spec.add_runtime_dependency 'puma', '~> 6.0'
|
47
|
+
spec.add_runtime_dependency 'rack', '~> 2.2'
|
48
|
+
spec.add_runtime_dependency 'rack-unreloader', '~> 1.8'
|
49
|
+
spec.add_runtime_dependency 'rake', '~> 13.0'
|
50
|
+
spec.add_runtime_dependency 'roda', '~> 3.5'
|
51
|
+
spec.add_runtime_dependency 'ruby2js', '~> 5.0'
|
52
|
+
spec.add_runtime_dependency 'rufus-scheduler', '~> 3.8'
|
53
|
+
spec.add_runtime_dependency 'securerandom', '~> 0.2'
|
54
|
+
spec.add_runtime_dependency 'sequel', '~> 5.5'
|
55
|
+
spec.add_runtime_dependency 'sqlite3', '~> 1.4'
|
56
|
+
spec.add_runtime_dependency 'uglifier', '~> 0.1'
|
57
|
+
#spec.add_runtime_dependency 'webrick', '~> 1.7.0'
|
58
|
+
|
59
|
+
# Uncomment to register a new dependency of your gem
|
60
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
61
|
+
|
62
|
+
# For more information and examples about making a new gem, check out our
|
63
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
64
|
+
end
|
@@ -20,7 +20,8 @@ Install Homebew
|
|
20
20
|
Install rbenv, wasi-vfs, wasmtime :
|
21
21
|
brew install rbenv
|
22
22
|
#brew install wasmtime
|
23
|
-
#
|
23
|
+
# => please chack as it is certainly useless because we have in vendor/src-wasm/wasm/wasi_vfs_...,
|
24
|
+
if need to install use : brew install wasi-vfs
|
24
25
|
|
25
26
|
brew install npm
|
26
27
|
npm install --save ruby-3_2-wasm-wasi@latest
|
@@ -42,12 +43,75 @@ In the terminal at atome root , type:
|
|
42
43
|
bundle install
|
43
44
|
Bundle update
|
44
45
|
|
45
|
-
Ruby wasm
|
46
|
+
Ruby wasm time allow local use of ruby wasm :
|
46
47
|
1 - download :
|
47
48
|
https://cdn.jsdelivr.net/npm/@ruby/3.2-wasm-wasi@2.3.0/dist/browser.script.iife.js
|
48
49
|
2 - change
|
49
50
|
|
50
51
|
|
52
|
+
# how to Install on windows :
|
53
|
+
|
54
|
+
# Install ruby :
|
55
|
+
https://rubyinstaller.org/downloads install with devkit
|
56
|
+
# check install using :
|
57
|
+
ruby -v
|
58
|
+
gem list
|
59
|
+
|
60
|
+
# update gem using the two following commands
|
61
|
+
gem update --system
|
62
|
+
gem update
|
63
|
+
|
64
|
+
#install node:
|
65
|
+
https://nodejs.org/en/download
|
66
|
+
# check install using :
|
67
|
+
node -v
|
68
|
+
|
69
|
+
#install wasi :
|
70
|
+
npm install --save ruby-3_2-wasm-wasi@latest
|
71
|
+
|
72
|
+
#install rust :
|
73
|
+
https://www.rust-lang.org/tools/install use rustup
|
74
|
+
# check install using :
|
75
|
+
rustc --version
|
76
|
+
|
77
|
+
|
78
|
+
#install tauri:
|
79
|
+
npm install --save-dev @tauri-apps/cli
|
80
|
+
# check install using :
|
81
|
+
npm fund
|
82
|
+
|
83
|
+
#install wasmtime :
|
84
|
+
https://wasmtime.dev/
|
85
|
+
# check install using :
|
86
|
+
ruby wastime --version
|
87
|
+
|
88
|
+
#install git :
|
89
|
+
https://git-scm.com/
|
90
|
+
|
91
|
+
|
92
|
+
# Get atome framework :
|
93
|
+
git clone https://github.com/atomecorp/atome.git
|
94
|
+
|
95
|
+
# go in the cloned directory the in the terminal at atome root , type:
|
96
|
+
bundle install
|
97
|
+
Bundle update
|
98
|
+
|
99
|
+
# to check we build atome gem
|
100
|
+
rake build_gem
|
101
|
+
|
102
|
+
# in the terminal type
|
103
|
+
gem list
|
104
|
+
# check atome is part of the list of the gems
|
105
|
+
|
106
|
+
# then in the folder of your choice create a new atome app using :
|
107
|
+
atome create my_app
|
108
|
+
cd my_app
|
109
|
+
atome run browser
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
51
115
|
|
52
116
|
#Third parties javascript library is located at different location
|
53
117
|
#If you need to update it or add a JS library you need to clone : https://github.com/atomecorp/atome_third_parties_js.git
|