webruby 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 +4 -4
- data/bin/webruby +1 -1
- data/lib/webruby/environment.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccb11ba22bb406912f914d14d77a04be6a0f55a4
|
4
|
+
data.tar.gz: 4329265d484d8f18cae203a48ca3e3a21ff08eae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5f96787b0ca595392902208d8ad1d3fdfec1c7552fff46bbac8a1aab2e8aaf9fac4d4a6c2dcf1a9ef349db34a226d1c9ae6714940c1766b02d42ee4e804c9a6
|
7
|
+
data.tar.gz: 7677e581f4e0fb944ce74a638107709bed83d6e2f633af21a755fd53fc409b6d0856c83c4170485180cc5da20f187b0d7611b8d4e9004e626359860c40e390ba
|
data/bin/webruby
CHANGED
data/lib/webruby/environment.rb
CHANGED
@@ -28,5 +28,19 @@ MRBC = "mruby/host/bin/mrbc"
|
|
28
28
|
# mruby build, we have to resort to the old i386 triple.
|
29
29
|
ENV['EMCC_LLVM_TARGET'] = 'i386-pc-linux-gnu'
|
30
30
|
|
31
|
+
# Use our emscripten directory
|
32
|
+
ENV['EMSCRIPTEN'] = EMSCRIPTEN_DIR
|
33
|
+
|
31
34
|
# TODO: change this to a gem dependency
|
32
35
|
MRUBYMIX = File.join(BASE_DIR, %w[modules mrubymix bin mrubymix])
|
36
|
+
|
37
|
+
unless File.exists?(File.join(Dir.home, ".emscripten"))
|
38
|
+
puts <<__EOF__
|
39
|
+
WARNING: We found out that you have never run emscripten before, since
|
40
|
+
emscripten needs a little configuration, we will run emcc here once and
|
41
|
+
exit. Please follow the instructions given by emcc. When it is finished,
|
42
|
+
please re-run rake.
|
43
|
+
__EOF__
|
44
|
+
|
45
|
+
exec(EMCC)
|
46
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xuejie Xiao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: compile your favourite Ruby source code for the browser!
|
14
14
|
email: xxuejie@gmail.com
|