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 CHANGED
@@ -1,5 +1,6 @@
1
1
 
2
2
  v8.bundle
3
+ v8.so
3
4
  *.o
4
5
  *.log
5
6
  *~
@@ -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
@@ -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.4"
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"
@@ -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 strlen = str->Length();
71
- std::string output(strlen, 0);
72
- for (int total = 0; total < strlen;) {
73
- int written = str->WriteAscii(buffer, total, 1024);
74
- output.replace(total, written, buffer);
75
- total += written;
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
  }
@@ -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
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module V8
5
- VERSION = '0.5.4'
5
+ VERSION = '0.5.5'
6
6
  require 'v8/v8' #native glue
7
7
  require 'v8/to'
8
8
  require 'v8/context'
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{therubyracer}
8
- s.version = "0.5.4"
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-09}
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
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-09 00:00:00 -06:00
13
+ date: 2010-03-15 00:00:00 -05:00
14
14
  default_executable: therubyracer
15
15
  dependencies: []
16
16