esruby 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: d614cc7210c710ff67fdffaba4e7eac223438211
4
- data.tar.gz: 4a21c975dbc5871608ec59acc9c5f980d720129d
3
+ metadata.gz: c4c55d90ccb68db124d7f7d785dc979ea9a601ca
4
+ data.tar.gz: 0c8f4c049237b56a7090add1f04ee2fbc48cb079
5
5
  SHA512:
6
- metadata.gz: 82cb55bf183e31bb6ef5fb28c4caa06befdd3400c6262d46b5db72cfeb3c03464f67500cdbc11037ac81b54fccdb26a637faa5ead14d6b11fc3482bdfcc972b7
7
- data.tar.gz: 99639d32ffb865e6d4255fd8913cb9ef28c57cde62357a9efa32f40a7d8d3b893602bdc0b5d3764c85efcbf975ff41a1b441de48b322cfac14071166dcb5a6fe
6
+ metadata.gz: 2e3d2c1c4c26e97661495de239abb3caa9ce9f6c2e1e0cf39465e54c207f15e69154d98e779c312042e19e0fb1a449cb3f92c49f2a6c00ad1d23bdab449fc3d4
7
+ data.tar.gz: bbc0f4293006472cddb079cb92db933aab1dcbd6c9c809ceed107d0f10512b29de5147ea9b64639ab868863b73885d3597a3efdc82e3f24551e6722b1470bd44
data/lib/esruby/build.rb CHANGED
@@ -76,6 +76,7 @@ module ESRuby
76
76
  config[:closure_argument] = closure_argument
77
77
  config[:debug_argument] = debug_argument
78
78
  config[:build_directory] = build_directory
79
+ config[:project_directory] = project_directory
79
80
  config[:gems] = gems
80
81
  config[:gem_paths_file] = gem_paths_file
81
82
  new_output = eruby.result(config)
@@ -1,6 +1,6 @@
1
1
  MRuby::Build.new do |conf|
2
2
 
3
- conf.build_dir = "<%= build_directory %>/host"
3
+ conf.build_dir = '<%= build_directory %>/host'
4
4
 
5
5
  toolchain :gcc
6
6
 
@@ -15,31 +15,31 @@ MRuby::Toolchain.new('emscripten') do |conf|
15
15
 
16
16
  toolchain :clang
17
17
 
18
- conf.cc.command = "emcc"
19
- conf.cxx.command = "emcc"
20
- conf.linker.command = "emcc"
21
- conf.archiver.command = "emar"
18
+ conf.cc.command = 'emcc'
19
+ conf.cxx.command = 'emcc'
20
+ conf.linker.command = 'emcc'
21
+ conf.archiver.command = 'emar'
22
22
 
23
23
  end
24
24
 
25
25
 
26
26
  MRuby::CrossBuild.new('app') do |conf|
27
27
 
28
- conf.build_dir = "<%= build_directory %>/emscripten"
28
+ conf.build_dir = '<%= build_directory %>/emscripten'
29
29
 
30
30
  toolchain :emscripten
31
31
 
32
32
  conf.compilers.each do |c|
33
33
  #c.defines += %w(MRB_GC_FIXED_ARENA)
34
- c.flags << "-Wall"
35
- c.flags << "-Wno-warn-absolute-paths"
36
- c.flags << "--bind"
37
- c.flags << "<%= optimization_argument %>"
38
- c.flags << "<%= closure_argument %>"
39
- c.flags << "<%= debug_argument %>"
34
+ c.flags << '-Wall'
35
+ c.flags << '-Wno-warn-absolute-paths'
36
+ c.flags << '--bind'
37
+ c.flags << '<%= optimization_argument %>'
38
+ c.flags << '<%= closure_argument %>'
39
+ c.flags << '<%= debug_argument %>'
40
40
  end
41
41
 
42
- conf.gembox('default')
42
+ conf.gem_clone_dir = '<%= project_directory %>/gems'
43
43
  conf.gem :github => 'robfors/esruby-esruby'
44
44
  <% for gem in gems %>
45
45
  conf.gem(<%= gem.inspect %>)
@@ -52,4 +52,6 @@ ESRuby::Build.new do |conf|
52
52
  # see: https://github.com/robfors/esruby-bind for more info
53
53
  #conf.add_gem :github => 'robfors/esruby-bind'
54
54
 
55
+ conf.add_gem :core => 'mruby-io'
56
+
55
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Fors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-20 00:00:00.000000000 Z
11
+ date: 2018-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis
@@ -439,7 +439,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
439
439
  version: '0'
440
440
  requirements: []
441
441
  rubyforge_project:
442
- rubygems_version: 2.4.8
442
+ rubygems_version: 2.6.11
443
443
  signing_key:
444
444
  specification_version: 4
445
445
  summary: Ruby running in the browser