atome 0.5.5.7.0 → 0.5.5.7.1

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: e0ffae09a6b7268d835b684c007438ebad68d883f57fe0c0b73fa7342da7cb88
4
- data.tar.gz: e029768893e7b6c610898637f9276f410cd15a66978bfa20c77f0e8c30c317a0
3
+ metadata.gz: fe6f32911d0d8ebfccda16d271a18c5262d0c907228266836edc4322c840962c
4
+ data.tar.gz: 575fe8f4cc4567d5fc278309b098e548211699743c316c9bf951d8ca970d5316
5
5
  SHA512:
6
- metadata.gz: aacfa23147637a539a09dfe63115b1d53a1a386968d908a860694d4849c049f85b500d5d5abd480283b0a98a85694456f7c37f7b0d187d8eda797b658dbb25a2
7
- data.tar.gz: 06ac2bc244a5cab24555c58f8850f8fdaba7fe3467f342bee71286da2ef136e7a7ab6b0660a3e599e1dfa2c081f494b11914578153c51e4d556e04c050985eef
6
+ metadata.gz: f7c2c0aa4620e1ffba7044c8c9814ed252a33f175b0c8b8383ff53e98e94a386718f9d3fe67a0f4c6a4da3d821c7451f56ea164f3518ad7dcd9d2fd06e7b8e22
7
+ data.tar.gz: b3be9cf082f54ebeaa2a2d1b4c02072de47a4da5cda088aebdfd4451eec4fcebe3f3cd4cfb29902d08bd7cb82051ab34c4b6b3f7e092b3a90ebb2abfde044153
data/Rakefile CHANGED
@@ -114,7 +114,6 @@ task :test_wasm do
114
114
  puts 'atome wasm is build and running!'
115
115
  end
116
116
 
117
-
118
117
  task :test_opal do
119
118
  project_name = :test
120
119
  source = '.'
data/exe/atome CHANGED
@@ -380,7 +380,17 @@ end
380
380
  # end
381
381
 
382
382
  # below we analyse the ARGV
383
- location = '/'
383
+ location = if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
384
+ # code to exec with Windows
385
+ '\\'
386
+ elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
387
+ # code to exec with MacOS
388
+ '/'
389
+ else
390
+ # code to exec with Unix/Linux
391
+ '/'
392
+ end
393
+
384
394
  project_name = ARGV[1]
385
395
 
386
396
  if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
@@ -446,9 +456,14 @@ if ARGV.include?('run')
446
456
  # code to exec with Unix/Linux
447
457
  `pwd`.chomp
448
458
  end
449
- segments = current_path.split('/')
450
- project_name = segments.last
451
- destination = segments[0...-1].join('/')
459
+ # segments = current_path.split('/')
460
+ # project_name = segments.last
461
+ # destination = segments[0...-1].join('/')
462
+
463
+ current_path = Pathname.new(Dir.pwd)
464
+ project_name = current_path.basename.to_s
465
+ destination = current_path.parent.to_s
466
+
452
467
  case ARGV[1]
453
468
  when 'opal'
454
469
  puts 'building Opal'
@@ -456,12 +471,35 @@ if ARGV.include?('run')
456
471
  # build host_mode
457
472
  build_host_mode(destination, project_name, 'web-opal')
458
473
  # build Opal extensions
459
- `open #{destination}/#{project_name}/src/index_opal.html`
474
+
475
+
476
+ if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
477
+ # code to exec for Windows
478
+ `start "" "#{destination}\\#{project_name}\\src\\index_opal.html"`
479
+ elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
480
+ # code to exec for MacOS
481
+ `open #{destination}/#{project_name}/src/index_opal.html`
482
+ else
483
+ # code to exec for Unix/Linux
484
+ `open #{destination}/#{project_name}/src/index_opal.html`
485
+ end
486
+
487
+
460
488
  when 'wasm' # osx wasi
461
489
  puts 'building Ruby wasm'
462
490
  wasi_file = 'wasi-vfs-osx_arm'
463
491
  wasm_common(source, destination, project_name, wasi_file, :pure_wasi)
464
- `open #{current_path}/src/index.html`
492
+
493
+ if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
494
+ # code to exec for Windows
495
+ `start "" "#{destination}\\#{project_name}\\src\\index.html"`
496
+ elsif RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
497
+ # code to exec for MacOS
498
+ `open #{destination}/#{project_name}/src/index.html`
499
+ else
500
+ # code to exec for Unix/Linux
501
+ `open #{destination}/#{project_name}/src/index.html`
502
+ end
465
503
  when 'server'
466
504
  puts 'building Server'
467
505
  build_opal_application(nil, destination, project_name)
data/lib/atome/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  # return atome version
4
4
  class Atome
5
- VERSION = '0.5.5.7.0'
5
+ VERSION = '0.5.5.7.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5.7.0
4
+ version: 0.5.5.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Eric Godard
@@ -346,7 +346,6 @@ files:
346
346
  - LICENSE.txt
347
347
  - README.md
348
348
  - Rakefile
349
- - atome.gemspec
350
349
  - documentation/atome.md
351
350
  - documentation/basic.md
352
351
  - documentation/database.JPG
data/atome.gemspec DELETED
@@ -1,69 +0,0 @@
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@atome.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.3'
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', '2.1'
41
- spec.add_runtime_dependency 'guard-rake', '~> 1.0'
42
- spec.add_runtime_dependency 'image_size', '~> 3.0'
43
- spec.add_runtime_dependency 'mail', '~> 2.1'
44
- spec.add_runtime_dependency 'net-ping', '~> 2.0'
45
- spec.add_runtime_dependency 'opal', '~> 1.5'
46
- spec.add_runtime_dependency 'parser', '~> 3.1'
47
- spec.add_runtime_dependency 'puma', '~> 6.0'
48
- spec.add_runtime_dependency 'rack', '~> 2.2'
49
- spec.add_runtime_dependency 'rack-unreloader', '~> 1.8'
50
- spec.add_runtime_dependency 'rake', '~> 13.0'
51
- spec.add_runtime_dependency 'roda', '~> 3.5'
52
- spec.add_runtime_dependency 'ruby2js', '~> 5.0'
53
- spec.add_runtime_dependency 'rufus-scheduler', '~> 3.8'
54
- spec.add_runtime_dependency 'securerandom', '~> 0.2'
55
- spec.add_runtime_dependency 'sequel', '~> 5.5'
56
- spec.add_runtime_dependency 'sqlite3', '~> 1.4'
57
- spec.add_runtime_dependency 'uglifier', '~> 0.1'
58
- #spec.add_runtime_dependency 'webrick', '~> 1.7.0'
59
- # the gem below are need to make the atome server works on Windows
60
- spec.add_runtime_dependency 'win32-security', '~> 0.5.0'
61
- spec.add_runtime_dependency 'tzinfo-data', '~> 1.2023.4'
62
-
63
-
64
- # Uncomment to register a new dependency of your gem
65
- # spec.add_dependency "example-gem", "~> 1.0"
66
-
67
- # For more information and examples about making a new gem, check out our
68
- # guide at: https://bundler.io/guides/creating_gem.html
69
- end