webruby 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/templates/minimal/Rakefile +20 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ae51afdb9e0aef9e5430812d690ffc12580215b
4
- data.tar.gz: fab77c8d867c4dbd1460b80a1e3a12036b13b38f
3
+ metadata.gz: 6541ef515dc2327c930153763da6e939d6c83992
4
+ data.tar.gz: 214260009f08b54b87d2533572e334ece9d85322
5
5
  SHA512:
6
- metadata.gz: 6f2ded3c9b62ea5ffb83acd1b64158e91e7edb661ec4b02b4afc02656b7f71b9528357746de88b01fc644abec0cbc73c373e7fde381db4a9407c0df278c09aed
7
- data.tar.gz: a8f236d5863c46a631f3fb8c138886ae27efb715098f4790fc1ca0c8aa337c971ca1d0c4bcf1f4c1da6470f813b3aa9f803ce9604a13593899d9bf778990d427
6
+ metadata.gz: 06ff6c9351e24770ecc82c8154cd27964bd2d1825a7c0316cf347aea80accefcf1ff811cf59af9c7fc56da1e02e932ec940397a67215802986ed7fb1b5cc6252
7
+ data.tar.gz: a4cbacc1ed455992d7aecb5422378103fd9d66b9b9646c051d16842dfd0b8da21ad7885e39c2f128d857601f8f0a9dfd36c1bacb9d24acd7f7c1829454006336
@@ -11,7 +11,20 @@ Webruby::App.setup do |conf|
11
11
  # Use 'release' for O2 mode build, and everything else for O0 mode
12
12
  conf.compile_mode = 'debug'
13
13
 
14
- # Loading mode, see lib/webruby/utility.rb for details
14
+ # Note that different functions are needed for the 3 different loading methods,
15
+ # for example, WEBRUBY.run_source requires all the parsing code is present,
16
+ # while the first 2 modes only requires code for loading bytecodes.
17
+ # Given these considerations, we allow 3 loading modes in webruby:
18
+ #
19
+ # 0 - only WEBRUBY.run is supported
20
+ # 1 - WEBRUBY.run and WEBRUBY.run_bytecode are supported
21
+ # 2 - all 3 loading methods are supported
22
+ #
23
+ # It may appear that mode 0 and mode 1 requires the same set of functions
24
+ # since they both load bytecodes, but due to the fact that mode 0 only loads
25
+ # pre-defined bytecode array, chances are optimizers may perform some tricks
26
+ # to eliminate parts of the source code for mode 0. Hence we still distinguish
27
+ # mode 0 from mode 1 here
15
28
  conf.loading_mode = 2
16
29
 
17
30
  # 2 Ruby source processors are available right now:
@@ -37,6 +50,12 @@ Webruby::App.setup do |conf|
37
50
  # instead of the old one.
38
51
  # conf.append_file = 'runner.js'
39
52
 
53
+ # We found that if memory init file is used, browsers will hang
54
+ # for a long time without response. As a result, we disable memory
55
+ # init file by default. However, you can test this yourself
56
+ # and re-enable it by commenting/removing the next line.
57
+ conf.ldflags << "--memory-init-file 0"
58
+
40
59
  # The syntax for adding gems here are kept the same as mruby.
41
60
  # Below are a few examples:
42
61
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xuejie Xiao