therubyracer 0.5.4 → 0.5.5
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/.gitignore +1 -0
- data/History.txt +9 -0
- data/README.rdoc +4 -0
- data/Rakefile +1 -1
- data/ext/v8/convert_v8.h +9 -6
- data/ext/v8/extconf.rb +1 -0
- data/lib/v8.rb +1 -1
- data/therubyracer.gemspec +2 -2
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
=== 0.5.5 2010-03-15
|
2
|
+
* 2 minor enhancements
|
3
|
+
* fix string encoding issue that was breaking RHEL 5.x
|
4
|
+
* fix pthread linking issue on RHEL 5.2
|
5
|
+
|
6
|
+
=== 0.5.4 2010-03-09
|
7
|
+
* 1 minor enhancement
|
8
|
+
* add ext directory to gem require paths which was causing problems for non-binary gems
|
9
|
+
|
1
10
|
=== 0.5.3 2010-03-01
|
2
11
|
* 1 major enhancement
|
3
12
|
* added full back trace to javascript code
|
data/README.rdoc
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
|
7
7
|
Embed the V8 Javascript interpreter into Ruby.
|
8
8
|
|
9
|
+
|
9
10
|
== FEATURES/PROBLEMS:
|
10
11
|
|
11
12
|
* Evaluate Javascript from with in Ruby
|
@@ -15,6 +16,9 @@ Embed the V8 Javascript interpreter into Ruby.
|
|
15
16
|
* Currently ALPHA software.
|
16
17
|
|
17
18
|
== SYNOPSIS:
|
19
|
+
gem install therubyracer
|
20
|
+
|
21
|
+
# then in your ruby code
|
18
22
|
|
19
23
|
require 'v8'
|
20
24
|
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ begin
|
|
9
9
|
require 'jeweler'
|
10
10
|
Jeweler::Tasks.new do |gemspec|
|
11
11
|
gemspec.name = gemspec.rubyforge_project = "therubyracer"
|
12
|
-
gemspec.version = "0.5.
|
12
|
+
gemspec.version = "0.5.5"
|
13
13
|
gemspec.summary = "Embed the V8 Javascript interpreter into Ruby"
|
14
14
|
gemspec.description = "Call javascript code and manipulate javascript objects from ruby. Call ruby code and manipulate ruby objects from javascript."
|
15
15
|
gemspec.email = "cowboyd@thefrontside.net"
|
data/ext/v8/convert_v8.h
CHANGED
@@ -67,12 +67,15 @@ template<class T, class R> class V8HandleSource {
|
|
67
67
|
|
68
68
|
R convertString(v8::Local<v8::String>& str) {
|
69
69
|
char buffer[1024];
|
70
|
-
int
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
total
|
70
|
+
int total = 0;
|
71
|
+
int remaining = str->Length();
|
72
|
+
std::string output;
|
73
|
+
while (remaining > 0) {
|
74
|
+
int toCopy = remaining > sizeof(buffer) ? sizeof(buffer) : remaining;
|
75
|
+
str->WriteAscii(buffer, total, toCopy);
|
76
|
+
output.append(buffer, toCopy);
|
77
|
+
total += toCopy;
|
78
|
+
remaining -= toCopy;
|
76
79
|
}
|
77
80
|
return dest.pushString(output);
|
78
81
|
}
|
data/ext/v8/extconf.rb
CHANGED
@@ -10,6 +10,7 @@ system("cd #{UPSTREAM} && make") or raise "Error compiling V8"
|
|
10
10
|
|
11
11
|
dir_config('v8', "#{BUILD}/include", "#{BUILD}")
|
12
12
|
have_library('v8') or raise "Unable to find libv8 in #{BUILD}, was there an error compiling it?"
|
13
|
+
have_library('pthread')
|
13
14
|
|
14
15
|
$CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall"
|
15
16
|
|
data/lib/v8.rb
CHANGED
data/therubyracer.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{therubyracer}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Charles Lowell", "Bill Robertson"]
|
12
|
-
s.date = %q{2010-03-
|
12
|
+
s.date = %q{2010-03-15}
|
13
13
|
s.default_executable = %q{therubyracer}
|
14
14
|
s.description = %q{Call javascript code and manipulate javascript objects from ruby. Call ruby code and manipulate ruby objects from javascript.}
|
15
15
|
s.email = %q{cowboyd@thefrontside.net}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: therubyracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Lowell
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-03-
|
13
|
+
date: 2010-03-15 00:00:00 -05:00
|
14
14
|
default_executable: therubyracer
|
15
15
|
dependencies: []
|
16
16
|
|