esruby 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4c55d90ccb68db124d7f7d785dc979ea9a601ca
4
- data.tar.gz: 0c8f4c049237b56a7090add1f04ee2fbc48cb079
3
+ metadata.gz: 3cfdba49dc10827d82b00f405a5ef09a90170376
4
+ data.tar.gz: e76464ade4527983fef7d6497e854376410323a2
5
5
  SHA512:
6
- metadata.gz: 2e3d2c1c4c26e97661495de239abb3caa9ce9f6c2e1e0cf39465e54c207f15e69154d98e779c312042e19e0fb1a449cb3f92c49f2a6c00ad1d23bdab449fc3d4
7
- data.tar.gz: bbc0f4293006472cddb079cb92db933aab1dcbd6c9c809ceed107d0f10512b29de5147ea9b64639ab868863b73885d3597a3efdc82e3f24551e6722b1470bd44
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
- :build_directory, :build_mode, :gems, :mruby_directory,
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
- # see: https://github.com/robfors/esruby-bind for more info
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Fors