trema 0.3.7 → 0.3.8

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.
Files changed (5) hide show
  1. data/Rakefile +1 -1
  2. data/Rantfile +8 -1
  3. data/build.rb +8 -1
  4. data/ruby/trema/version.rb +1 -1
  5. metadata +3 -3
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ require "rake"
21
21
 
22
22
 
23
23
  task :default do
24
- sh "./build.rb"
24
+ sh "#{ Gem.ruby } ./build.rb"
25
25
  end
26
26
 
27
27
 
data/Rantfile CHANGED
@@ -433,11 +433,18 @@ task :clean => "rubylib:clean"
433
433
  task :distclean => "rubylib:distclean"
434
434
 
435
435
 
436
+ require "rbconfig"
437
+ RUBY_PATH = File.join(
438
+ RbConfig::CONFIG[ 'bindir' ],
439
+ RbConfig::CONFIG[ 'RUBY_INSTALL_NAME' ] +
440
+ RbConfig::CONFIG[ 'EXEEXT' ]
441
+ )
442
+
436
443
  desc "Build ruby library."
437
444
  task :rubylib => "ruby/trema.so"
438
445
  file "ruby/trema.so" => FileList[ "ruby/trema/*.c", "ruby/trema/*.h", libtrema ] do
439
446
  sys.cd "ruby" do
440
- sys "ruby extconf.rb --with-trema-include=#{ Trema.include } --with-trema-lib=#{ Trema.lib } --with-openflow-include=#{ Trema.openflow }"
447
+ sys "#{ RUBY_PATH } extconf.rb --with-trema-include=#{ Trema.include } --with-trema-lib=#{ Trema.lib } --with-openflow-include=#{ Trema.openflow }"
441
448
  sys "make"
442
449
  end
443
450
  end
data/build.rb CHANGED
@@ -20,8 +20,15 @@
20
20
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
21
  #
22
22
 
23
+ require "rbconfig"
23
24
 
24
- result = system "cd #{ File.dirname( __FILE__ ) } && ruby .mono.rant #{ ARGV.join ' ' }"
25
+ RUBY_PATH = File.join(
26
+ RbConfig::CONFIG[ 'bindir' ],
27
+ RbConfig::CONFIG[ 'RUBY_INSTALL_NAME' ] +
28
+ RbConfig::CONFIG[ 'EXEEXT' ]
29
+ )
30
+
31
+ result = system "cd #{ File.dirname( __FILE__ ) } && #{ RUBY_PATH } .mono.rant #{ ARGV.join ' ' }"
25
32
  abort "#{ $0 } aborted!" unless result;
26
33
 
27
34
 
@@ -17,7 +17,7 @@
17
17
 
18
18
 
19
19
  module Trema
20
- VERSION = "0.3.7"
20
+ VERSION = "0.3.8"
21
21
  end
22
22
 
23
23
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trema
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 7
10
- version: 0.3.7
9
+ - 8
10
+ version: 0.3.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Yasuhito Takamiya