atome 0.5.5.7.3 → 0.5.5.7.5
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/atome.gemspec +5 -2
- data/exe/atome +153 -110
- data/lib/atome/version.rb +1 -1
- data/vendor/assets/Guardfile +0 -4
- data/vendor/assets/Rakefile +11 -2
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2811f5820a24aab9adb1a3f380c1a6de2aa7f9ee7d2e4eee39543951ea8b7b3f
|
|
4
|
+
data.tar.gz: c93573b4c3d61505ed1515421d99cb9237d6a5e1481d168d9b72918c31ce6a08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 560f9e2e5f34166305472dd7071b93ad9f0472e1b877b312df8306703be27713d2e397e8cc9baa036c4ffa9d4bfd1f2c26312835e95d9833225c921e06a8af7f
|
|
7
|
+
data.tar.gz: 8ba7a13db031a0e7e741a5b6bfb394c210a17fb39d6b682d655431c3c7768d2dca9ec644478c7086bed559ad4154299bcaedac92ed8cc8c0342723bbef74601e
|
data/atome.gemspec
CHANGED
|
@@ -37,8 +37,11 @@ Gem::Specification.new do |spec|
|
|
|
37
37
|
spec.add_runtime_dependency 'faye-websocket', '~> 0.1'
|
|
38
38
|
spec.add_runtime_dependency 'geocoder', '~> 1.8'
|
|
39
39
|
spec.add_runtime_dependency 'guard', '~> 2.1'
|
|
40
|
-
#
|
|
40
|
+
# spec.add_runtime_dependency 'guard-shell', '~> 0.7.2'
|
|
41
|
+
# spec.add_runtime_dependency 'guard-puma', '~> 0.8.1'
|
|
42
|
+
# spec.add_runtime_dependency 'shotgun', '~> 0.9.2'
|
|
41
43
|
spec.add_runtime_dependency 'guard-rake', '~> 1.0'
|
|
44
|
+
# spec.add_runtime_dependency 'rerun', '~> 0.14.0'
|
|
42
45
|
spec.add_runtime_dependency 'image_size', '~> 3.0'
|
|
43
46
|
spec.add_runtime_dependency 'mail', '~> 2.1'
|
|
44
47
|
spec.add_runtime_dependency 'net-ping', '~> 2.0'
|
|
@@ -57,8 +60,8 @@ Gem::Specification.new do |spec|
|
|
|
57
60
|
spec.add_runtime_dependency 'uglifier', '~> 0.1'
|
|
58
61
|
#spec.add_runtime_dependency 'webrick', '~> 1.7.0'
|
|
59
62
|
# the gem below are need to make the atome server works on Windows
|
|
60
|
-
spec.add_runtime_dependency 'win32-security', '~> 0.5.0'
|
|
61
63
|
spec.add_runtime_dependency 'tzinfo-data', '~> 1.2023.4'
|
|
64
|
+
spec.add_runtime_dependency 'win32-security', '~> 0.5.0'
|
|
62
65
|
|
|
63
66
|
|
|
64
67
|
# Uncomment to register a new dependency of your gem
|
data/exe/atome
CHANGED
|
@@ -360,15 +360,41 @@ def build_for_osx(destination, mode = :dev)
|
|
|
360
360
|
end
|
|
361
361
|
|
|
362
362
|
def build_for_server(destination, project_name, port, production)
|
|
363
|
-
|
|
363
|
+
if production
|
|
364
|
+
prod = '--env production'
|
|
365
|
+
ru_file = <<STR
|
|
366
|
+
require 'roda'
|
|
367
|
+
require './atome_server.rb'
|
|
368
|
+
run App.app.freeze
|
|
369
|
+
STR
|
|
370
|
+
else
|
|
371
|
+
ru_file = <<STR
|
|
372
|
+
require 'roda'
|
|
373
|
+
require 'rack/unreloader'
|
|
374
|
+
Unreloader = Rack::Unreloader.new(subclasses: %w[Roda]) { App }
|
|
375
|
+
Unreloader.require './atome_server.rb'
|
|
376
|
+
run Unreloader
|
|
377
|
+
require './atome_server.rb'
|
|
378
|
+
STR
|
|
379
|
+
end
|
|
380
|
+
|
|
364
381
|
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
|
365
382
|
# code to exec with Windows
|
|
383
|
+
File.open("#{destination}\\#{project_name}\\server\\config.ru", "w") do |f|
|
|
384
|
+
f.write(ru_file)
|
|
385
|
+
end
|
|
366
386
|
`cd /d #{destination}\\#{project_name}\\server && puma --port #{port} #{prod}`
|
|
367
387
|
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
|
368
388
|
# code to exec with MacOS
|
|
389
|
+
File.open("#{destination}/#{project_name}/server/config.ru", "w") do |f|
|
|
390
|
+
f.write(ru_file)
|
|
391
|
+
end
|
|
369
392
|
`cd #{destination}/#{project_name}/server;puma --port #{port} #{prod}`
|
|
370
393
|
else
|
|
371
394
|
# code to exec with Unix/Linux
|
|
395
|
+
File.open("#{destination}/#{project_name}/server/config.ru", "w") do |f|
|
|
396
|
+
f.write(ru_file)
|
|
397
|
+
end
|
|
372
398
|
`cd #{destination}/#{project_name}/server;puma --port #{port} #{prod}`
|
|
373
399
|
end
|
|
374
400
|
|
|
@@ -446,145 +472,162 @@ src/favicon.ico src/index.html src/index_opal.html src/index_server.html src/ind
|
|
|
446
472
|
end
|
|
447
473
|
end
|
|
448
474
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
Dir.chdir("./#{location}") do
|
|
453
|
-
`bundle exec guard`
|
|
454
|
-
end
|
|
455
|
-
# end
|
|
456
|
-
end
|
|
475
|
+
current_path = Pathname.new(Dir.pwd)
|
|
476
|
+
project_name = current_path.basename.to_s
|
|
477
|
+
destination = current_path.parent.to_s
|
|
457
478
|
|
|
458
479
|
if ARGV.include?('run')
|
|
459
|
-
|
|
460
|
-
# code to exec with Windows
|
|
461
|
-
`cd`.chomp
|
|
462
|
-
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
|
463
|
-
# code to exec with MacOS
|
|
464
|
-
`pwd`.chomp
|
|
465
|
-
else
|
|
466
|
-
# code to exec with Unix/Linux
|
|
467
|
-
`pwd`.chomp
|
|
468
|
-
end
|
|
469
|
-
# segments = current_path.split('/')
|
|
470
|
-
# project_name = segments.last
|
|
471
|
-
# destination = segments[0...-1].join('/')
|
|
472
|
-
|
|
473
|
-
current_path = Pathname.new(Dir.pwd)
|
|
474
|
-
project_name = current_path.basename.to_s
|
|
475
|
-
destination = current_path.parent.to_s
|
|
476
|
-
|
|
480
|
+
guard_content = ''
|
|
477
481
|
case ARGV[1]
|
|
478
482
|
when 'opal'
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
# code to exec for Windows
|
|
486
|
-
`start "" "#{destination}\\#{project_name}\\src\\index_opal.html"`
|
|
487
|
-
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
|
488
|
-
# code to exec for MacOS
|
|
489
|
-
`open #{destination}/#{project_name}/src/index_opal.html`
|
|
490
|
-
else
|
|
491
|
-
# code to exec for Unix/Linux
|
|
492
|
-
`open #{destination}/#{project_name}/src/index_opal.html`
|
|
493
|
-
end
|
|
494
|
-
|
|
495
|
-
|
|
483
|
+
guard_content = <<STR
|
|
484
|
+
guard 'rake', first_match: true, :task => 'build_opal' do
|
|
485
|
+
watch(%r{^server.+\.rb})
|
|
486
|
+
watch(%r{^application.+\.rb})
|
|
487
|
+
end
|
|
488
|
+
STR
|
|
496
489
|
when 'wasm' # osx wasi
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
`start "" "#{destination}\\#{project_name}\\src\\index.html"`
|
|
504
|
-
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
|
505
|
-
# code to exec for MacOS
|
|
506
|
-
`open #{destination}/#{project_name}/src/index.html`
|
|
507
|
-
else
|
|
508
|
-
# code to exec for Unix/Linux
|
|
509
|
-
`open #{destination}/#{project_name}/src/index.html`
|
|
510
|
-
end
|
|
490
|
+
guard_content = <<STR
|
|
491
|
+
guard 'rake', first_match: true, :task => 'build_wasm' do
|
|
492
|
+
watch(%r{^server.+\.rb})
|
|
493
|
+
watch(%r{^application.+\.rb})
|
|
494
|
+
end
|
|
495
|
+
STR
|
|
511
496
|
when 'server'
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
|
519
|
-
# code to exec with Windows
|
|
520
|
-
`start "" "#{destination}\\#{project_name}\\src\\index_opal.html`
|
|
521
|
-
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
|
522
|
-
# code to exec with MacOS
|
|
523
|
-
`open http://localhost:9292`
|
|
524
|
-
else
|
|
525
|
-
# code to exec with Unix/Linux
|
|
526
|
-
`open http://localhost:9292`
|
|
527
|
-
end
|
|
497
|
+
guard_content = <<STR
|
|
498
|
+
guard 'rake', first_match: true, :task => 'build_server' do
|
|
499
|
+
watch(%r{^server.+\.rb})
|
|
500
|
+
watch(%r{^application.+\.rb})
|
|
501
|
+
end
|
|
528
502
|
|
|
529
|
-
|
|
530
|
-
build_for_server(destination, project_name, 9292, :production)
|
|
503
|
+
STR
|
|
531
504
|
when 'osx'
|
|
532
|
-
puts 'building osx'
|
|
533
|
-
wasi_file = 'wasi-vfs-osx_arm'
|
|
534
|
-
wasm_common(source, destination, project_name, wasi_file, :tauri)
|
|
535
|
-
build_for_osx(destination)
|
|
536
|
-
when 'android'
|
|
537
|
-
puts 'building Android'
|
|
538
505
|
|
|
506
|
+
when 'android'
|
|
539
507
|
# to be filled
|
|
540
508
|
when 'ios'
|
|
541
|
-
puts 'building iOS'
|
|
542
|
-
|
|
543
509
|
# to be filled
|
|
544
510
|
when 'windows'
|
|
545
|
-
puts 'building Windows'
|
|
546
511
|
# to be filled
|
|
547
512
|
when 'linux'
|
|
548
|
-
puts 'building Linux'
|
|
549
513
|
# to be filled
|
|
550
514
|
when 'freebsd'
|
|
551
|
-
puts 'building Freebsd'
|
|
552
515
|
# to be filled
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
File.open("./#{location}/Guardfile", "w") do |f|
|
|
519
|
+
f.write(guard_content)
|
|
520
|
+
end
|
|
521
|
+
puts 'guarding'
|
|
522
|
+
threads = []
|
|
523
|
+
Dir.chdir("./#{location}") do
|
|
524
|
+
threads << Thread.new do
|
|
525
|
+
`guard`
|
|
526
|
+
end
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
if ARGV.include?('opal')
|
|
532
|
+
puts 'building Opal'
|
|
533
|
+
|
|
534
|
+
build_opal_application(nil, destination, project_name)
|
|
535
|
+
# build host_mode
|
|
536
|
+
build_host_mode(destination, project_name, 'web-opal')
|
|
537
|
+
# build Opal extensions
|
|
538
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
|
539
|
+
# code to exec for Windows
|
|
540
|
+
`start "" "#{destination}\\#{project_name}\\src\\index_opal.html"`
|
|
541
|
+
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
|
542
|
+
# code to exec for MacOS
|
|
543
|
+
`open #{destination}/#{project_name}/src/index_opal.html`
|
|
544
|
+
else
|
|
545
|
+
# code to exec for Unix/Linux
|
|
546
|
+
`open #{destination}/#{project_name}/src/index_opal.html`
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
puts "opal ready!"
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
if ARGV.include?('wasm')
|
|
553
|
+
puts 'building Ruby wasm'
|
|
554
|
+
wasi_file = 'wasi-vfs-osx_arm'
|
|
555
|
+
wasm_common(source, destination, project_name, wasi_file, :pure_wasi)
|
|
556
|
+
|
|
557
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
|
558
|
+
# code to exec for Windows
|
|
559
|
+
`start "" "#{destination}\\#{project_name}\\src\\index.html"`
|
|
560
|
+
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
|
561
|
+
# code to exec for MacOS
|
|
562
|
+
`open #{destination}/#{project_name}/src/index.html`
|
|
553
563
|
else
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
564
|
+
# code to exec for Unix/Linux
|
|
565
|
+
`open #{destination}/#{project_name}/src/index.html`
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
if ARGV.include?('server')
|
|
571
|
+
puts 'building Server'
|
|
572
|
+
build_opal_application(nil, destination, project_name)
|
|
573
|
+
threads = []
|
|
574
|
+
threads << Thread.new do
|
|
575
|
+
sleep 1
|
|
557
576
|
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
|
558
577
|
# code to exec with Windows
|
|
559
|
-
`start "" "#{
|
|
578
|
+
`start "" "#{destination}\\#{project_name}\\src\\index_opal.html`
|
|
560
579
|
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
|
561
580
|
# code to exec with MacOS
|
|
562
|
-
`open
|
|
581
|
+
`open http://localhost:9292`
|
|
563
582
|
else
|
|
564
583
|
# code to exec with Unix/Linux
|
|
565
|
-
`open
|
|
584
|
+
`open http://localhost:9292`
|
|
566
585
|
end
|
|
586
|
+
end
|
|
587
|
+
threads << Thread.new do
|
|
588
|
+
build_for_server(destination, project_name, 9292, false)
|
|
589
|
+
end
|
|
567
590
|
|
|
591
|
+
threads.each(&:join)
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
if ARGV.include?('server_refresh')
|
|
595
|
+
puts 're building Server'
|
|
596
|
+
build_opal_application(nil, destination, project_name)
|
|
597
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
|
598
|
+
# code to exec with Windows
|
|
599
|
+
`start "" "#{destination}\\#{project_name}\\src\\index_opal.html`
|
|
600
|
+
elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
|
|
601
|
+
# code to exec with MacOS
|
|
602
|
+
`open http://localhost:9292`
|
|
603
|
+
else
|
|
604
|
+
# code to exec with Unix/Linux
|
|
605
|
+
`open http://localhost:9292`
|
|
568
606
|
end
|
|
607
|
+
end
|
|
569
608
|
|
|
609
|
+
if ARGV.include?('osx')
|
|
610
|
+
puts 'building osx'
|
|
611
|
+
wasi_file = 'wasi-vfs-osx_arm'
|
|
612
|
+
wasm_common(source, destination, project_name, wasi_file, :tauri)
|
|
613
|
+
build_for_osx(destination)
|
|
570
614
|
end
|
|
571
615
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
# # build_opal_library(source, destination, project_name)
|
|
576
|
-
# # build parser
|
|
577
|
-
# # build_opal_parser(source, destination, project_name)
|
|
578
|
-
# # # build atome kernel
|
|
579
|
-
# # build_atome_kernel_for_opal(source, destination, project_name)
|
|
580
|
-
# # # build host_mode
|
|
581
|
-
# # build_host_mode(destination, project_name, 'web-opal')
|
|
582
|
-
# # # build Opal extensions
|
|
583
|
-
# # build_opal_extensions(source, destination, project_name)
|
|
584
|
-
# # # build application
|
|
585
|
-
# # build_opal_application(source, destination, project_name)
|
|
586
|
-
# # path = found_path('build')
|
|
587
|
-
# # build_app(path, production)
|
|
588
|
-
# end
|
|
616
|
+
if ARGV.include?('android')
|
|
617
|
+
puts 'building Android'
|
|
618
|
+
end
|
|
589
619
|
|
|
620
|
+
if ARGV.include?('ios')
|
|
621
|
+
puts 'building iOS'
|
|
622
|
+
end
|
|
623
|
+
if ARGV.include?('windows')
|
|
624
|
+
puts 'building Windows'
|
|
590
625
|
|
|
626
|
+
end
|
|
627
|
+
if ARGV.include?('linux')
|
|
628
|
+
puts 'building Linux'
|
|
629
|
+
|
|
630
|
+
end
|
|
631
|
+
if ARGV.include?('freebsd')
|
|
632
|
+
puts 'building Freebsd'
|
|
633
|
+
end
|
data/lib/atome/version.rb
CHANGED
data/vendor/assets/Guardfile
CHANGED
data/vendor/assets/Rakefile
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: atome
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.5.7.
|
|
4
|
+
version: 0.5.5.7.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jean-Eric Godard
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-01-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: eventmachine
|
|
@@ -305,33 +305,33 @@ dependencies:
|
|
|
305
305
|
- !ruby/object:Gem::Version
|
|
306
306
|
version: '0.1'
|
|
307
307
|
- !ruby/object:Gem::Dependency
|
|
308
|
-
name:
|
|
308
|
+
name: tzinfo-data
|
|
309
309
|
requirement: !ruby/object:Gem::Requirement
|
|
310
310
|
requirements:
|
|
311
311
|
- - "~>"
|
|
312
312
|
- !ruby/object:Gem::Version
|
|
313
|
-
version:
|
|
313
|
+
version: 1.2023.4
|
|
314
314
|
type: :runtime
|
|
315
315
|
prerelease: false
|
|
316
316
|
version_requirements: !ruby/object:Gem::Requirement
|
|
317
317
|
requirements:
|
|
318
318
|
- - "~>"
|
|
319
319
|
- !ruby/object:Gem::Version
|
|
320
|
-
version:
|
|
320
|
+
version: 1.2023.4
|
|
321
321
|
- !ruby/object:Gem::Dependency
|
|
322
|
-
name:
|
|
322
|
+
name: win32-security
|
|
323
323
|
requirement: !ruby/object:Gem::Requirement
|
|
324
324
|
requirements:
|
|
325
325
|
- - "~>"
|
|
326
326
|
- !ruby/object:Gem::Version
|
|
327
|
-
version:
|
|
327
|
+
version: 0.5.0
|
|
328
328
|
type: :runtime
|
|
329
329
|
prerelease: false
|
|
330
330
|
version_requirements: !ruby/object:Gem::Requirement
|
|
331
331
|
requirements:
|
|
332
332
|
- - "~>"
|
|
333
333
|
- !ruby/object:Gem::Version
|
|
334
|
-
version:
|
|
334
|
+
version: 0.5.0
|
|
335
335
|
description: the creative framework.
|
|
336
336
|
email:
|
|
337
337
|
- jeezs@atome.one
|