therubyracer 0.8.0 → 0.8.1.pre1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of therubyracer might be problematic. Click here for more details.

data/script/console DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # File: script/console
3
- irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
-
5
- libs = " -r irb/completion"
6
- # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
- # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
- libs << " -I #{File.dirname(__FILE__) + '/../lib'} -r v8"
9
- puts "Revving Up The Ruby Racer!"
10
- exec "#{irb} #{libs} --simple-prompt"
data/script/destroy DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Destroy.new.run(ARGV)
data/script/generate DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/generate'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Generate.new.run(ARGV)
@@ -1,38 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- require 'v8/jasmine'
4
-
5
- describe V8::Jasmine do
6
-
7
- it "cannot be included" do
8
- lambda {
9
- Class.new.send(:include, V8::Jasmine)
10
- }.should raise_error(ScriptError)
11
- end
12
-
13
- it "can only be used to extend V8::Context objecs" do
14
- lambda {
15
- V8::Context.new.extend(V8::Jasmine)
16
- }.should_not raise_error
17
-
18
- lambda {
19
- Object.new.extend(V8::Jasmine)
20
- }.should raise_error(ScriptError)
21
- end
22
-
23
- it "extends a bare context with the jasmine runtime" do
24
- V8::Context.new do |cxt|
25
- cxt.extend V8::Jasmine
26
- cxt['jasmine'].getEnv().should_not be_nil
27
- end
28
- end
29
- end
30
-
31
- describe V8::Jasmine::Context do
32
-
33
- it "comes pre-bundled with jasmine" do
34
- V8::Jasmine::Context.new do |cxt|
35
- cxt['jasmine'].should_not be_nil
36
- end
37
- end
38
- end
data/tasks/compile.rake DELETED
@@ -1,11 +0,0 @@
1
- begin
2
- gem 'rake-compiler', '>= 0.4.1'
3
- require "rake/extensiontask"
4
- Rake::ExtensionTask.new("v8", $gemspec) do |ext|
5
- ext.lib_dir = "lib/v8"
6
- ext.source_pattern = "*.{cpp,h}"
7
- end
8
- rescue LoadError
9
- puts "Rake Compiler not available. You won't be able to compile with rake, unless you gem install rake-compiler"
10
- end
11
-