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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47dd10aa7e0814ccb7ddf546284ebd516c803980
4
- data.tar.gz: 7a4eb9cd12e25c173f23546c90f15a2082fa2b03
3
+ metadata.gz: ccb11ba22bb406912f914d14d77a04be6a0f55a4
4
+ data.tar.gz: 4329265d484d8f18cae203a48ca3e3a21ff08eae
5
5
  SHA512:
6
- metadata.gz: 6513fb34c3af5a846e5d4d1168f0a7c9445cf66f561afab2b16e69cededd185174f681baf7c1526ed1196dbf8f01b93f39a1ed8af6ac613da3e1546fcb6637f3
7
- data.tar.gz: a0908eeddcc486aff564d030869368a1028e0b8e09ee7af1ec52ba7103886f1ee2cc65874dc349ffdc0663f460b62aa2303b1a78f2e59f53b0121e3049811d96
6
+ metadata.gz: a5f96787b0ca595392902208d8ad1d3fdfec1c7552fff46bbac8a1aab2e8aaf9fac4d4a6c2dcf1a9ef349db34a226d1c9ae6714940c1766b02d42ee4e804c9a6
7
+ data.tar.gz: 7677e581f4e0fb944ce74a638107709bed83d6e2f633af21a755fd53fc409b6d0856c83c4170485180cc5da20f187b0d7611b8d4e9004e626359860c40e390ba
data/bin/webruby CHANGED
@@ -17,7 +17,7 @@ end
17
17
 
18
18
  def prompt(*args)
19
19
  print(*args)
20
- str = gets.strip.downcase
20
+ str = STDIN.gets.strip.downcase
21
21
  str == "yes" || str == "y"
22
22
  end
23
23
 
@@ -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.0
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-16 00:00:00.000000000 Z
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