webruby 0.9.1 → 0.9.2
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/templates/minimal/Rakefile +20 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6541ef515dc2327c930153763da6e939d6c83992
|
4
|
+
data.tar.gz: 214260009f08b54b87d2533572e334ece9d85322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06ff6c9351e24770ecc82c8154cd27964bd2d1825a7c0316cf347aea80accefcf1ff811cf59af9c7fc56da1e02e932ec940397a67215802986ed7fb1b5cc6252
|
7
|
+
data.tar.gz: a4cbacc1ed455992d7aecb5422378103fd9d66b9b9646c051d16842dfd0b8da21ad7885e39c2f128d857601f8f0a9dfd36c1bacb9d24acd7f7c1829454006336
|
data/templates/minimal/Rakefile
CHANGED
@@ -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
|
-
#
|
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
|
|