esruby 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/esruby/build/configuration.rb +6 -2
- data/resources/project_template/config.rb +5 -3
- 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: 3cfdba49dc10827d82b00f405a5ef09a90170376
|
4
|
+
data.tar.gz: e76464ade4527983fef7d6497e854376410323a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6570b1c73ffc4b61ef9d5ef25667b84d5c6d27d5c21b77a9d00c76f87c5fd1680d7471b791af4f84c360b0e0c9ffd92c093b80473a7cf5110c2847d16c87811c
|
7
|
+
data.tar.gz: fbd64076800a8ece66b7dee0541b3d8716664f286044fc44aa812de5323eb503d15698bd7dbdf6a02aae7bba1b13c533cebd36ee033cc351daff6123555a2fe0
|
@@ -3,11 +3,11 @@ module ESRuby
|
|
3
3
|
class Configuration
|
4
4
|
|
5
5
|
attr_reader :ruby_sources, :prepended_js_sources, :appended_js_sources,
|
6
|
-
:
|
7
|
-
:output
|
6
|
+
:build_mode, :gems, :mruby_directory, :output
|
8
7
|
|
9
8
|
def initialize
|
10
9
|
@project_directory = nil
|
10
|
+
@build_directory = nil
|
11
11
|
@mruby_directory = "#{ESRuby.gem_directory}/resources/mruby"
|
12
12
|
@output = 'output.js'
|
13
13
|
@ruby_sources = []
|
@@ -39,6 +39,10 @@ module ESRuby
|
|
39
39
|
@appended_js_sources << File.expand_path(path, project_directory)
|
40
40
|
end
|
41
41
|
|
42
|
+
def build_directory
|
43
|
+
@build_directory || File.expand_path('build', project_directory)
|
44
|
+
end
|
45
|
+
|
42
46
|
def build_directory=(new_build_directory)
|
43
47
|
@build_directory = File.expand_path(new_build_directory, project_directory)
|
44
48
|
end
|
@@ -48,10 +48,12 @@ ESRuby::Build.new do |conf|
|
|
48
48
|
# and re-enable it by commenting/removing the next line.
|
49
49
|
#conf.ldflags << "--memory-init-file 0"
|
50
50
|
|
51
|
+
# the syntax for adding gems is similar to mruby
|
52
|
+
|
53
|
+
conf.add_gem :core => 'mruby-print'
|
54
|
+
|
51
55
|
# JavaScript binding interface
|
52
|
-
#
|
56
|
+
# see: https://github.com/robfors/esruby-bind for more info
|
53
57
|
#conf.add_gem :github => 'robfors/esruby-bind'
|
54
58
|
|
55
|
-
conf.add_gem :core => 'mruby-io'
|
56
|
-
|
57
59
|
end
|