therubyracer 0.11.0beta8-x86-freebsd-9

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.

Files changed (92) hide show
  1. data/.gitignore +23 -0
  2. data/.travis.yml +10 -0
  3. data/Changelog.md +242 -0
  4. data/Gemfile +16 -0
  5. data/README.md +185 -0
  6. data/Rakefile +42 -0
  7. data/benchmarks.rb +218 -0
  8. data/ext/v8/accessor.cc +181 -0
  9. data/ext/v8/array.cc +26 -0
  10. data/ext/v8/backref.cc +45 -0
  11. data/ext/v8/build.rb +52 -0
  12. data/ext/v8/constants.cc +34 -0
  13. data/ext/v8/constraints.cc +52 -0
  14. data/ext/v8/context.cc +130 -0
  15. data/ext/v8/date.cc +18 -0
  16. data/ext/v8/exception.cc +38 -0
  17. data/ext/v8/extconf.rb +25 -0
  18. data/ext/v8/external.cc +43 -0
  19. data/ext/v8/function.cc +58 -0
  20. data/ext/v8/gc.cc +43 -0
  21. data/ext/v8/handles.cc +34 -0
  22. data/ext/v8/heap.cc +31 -0
  23. data/ext/v8/init.cc +39 -0
  24. data/ext/v8/init.so +0 -0
  25. data/ext/v8/invocation.cc +86 -0
  26. data/ext/v8/locker.cc +77 -0
  27. data/ext/v8/message.cc +51 -0
  28. data/ext/v8/object.cc +334 -0
  29. data/ext/v8/primitive.cc +8 -0
  30. data/ext/v8/rr.cc +83 -0
  31. data/ext/v8/rr.h +932 -0
  32. data/ext/v8/script.cc +80 -0
  33. data/ext/v8/signature.cc +18 -0
  34. data/ext/v8/stack.cc +76 -0
  35. data/ext/v8/string.cc +47 -0
  36. data/ext/v8/template.cc +175 -0
  37. data/ext/v8/trycatch.cc +87 -0
  38. data/ext/v8/v8.cc +87 -0
  39. data/ext/v8/value.cc +239 -0
  40. data/lib/v8.rb +30 -0
  41. data/lib/v8/access.rb +5 -0
  42. data/lib/v8/access/indices.rb +40 -0
  43. data/lib/v8/access/invocation.rb +47 -0
  44. data/lib/v8/access/names.rb +65 -0
  45. data/lib/v8/array.rb +26 -0
  46. data/lib/v8/context.rb +245 -0
  47. data/lib/v8/conversion.rb +36 -0
  48. data/lib/v8/conversion/array.rb +11 -0
  49. data/lib/v8/conversion/class.rb +119 -0
  50. data/lib/v8/conversion/code.rb +38 -0
  51. data/lib/v8/conversion/fixnum.rb +11 -0
  52. data/lib/v8/conversion/fundamental.rb +11 -0
  53. data/lib/v8/conversion/hash.rb +11 -0
  54. data/lib/v8/conversion/indentity.rb +31 -0
  55. data/lib/v8/conversion/method.rb +26 -0
  56. data/lib/v8/conversion/object.rb +28 -0
  57. data/lib/v8/conversion/primitive.rb +7 -0
  58. data/lib/v8/conversion/proc.rb +5 -0
  59. data/lib/v8/conversion/reference.rb +16 -0
  60. data/lib/v8/conversion/string.rb +12 -0
  61. data/lib/v8/conversion/symbol.rb +7 -0
  62. data/lib/v8/conversion/time.rb +13 -0
  63. data/lib/v8/error.rb +166 -0
  64. data/lib/v8/function.rb +28 -0
  65. data/lib/v8/object.rb +79 -0
  66. data/lib/v8/stack.rb +85 -0
  67. data/lib/v8/version.rb +3 -0
  68. data/lib/v8/weak.rb +70 -0
  69. data/spec/c/array_spec.rb +17 -0
  70. data/spec/c/constants_spec.rb +20 -0
  71. data/spec/c/exception_spec.rb +26 -0
  72. data/spec/c/external_spec.rb +9 -0
  73. data/spec/c/function_spec.rb +46 -0
  74. data/spec/c/handles_spec.rb +35 -0
  75. data/spec/c/locker_spec.rb +38 -0
  76. data/spec/c/object_spec.rb +46 -0
  77. data/spec/c/script_spec.rb +28 -0
  78. data/spec/c/string_spec.rb +16 -0
  79. data/spec/c/template_spec.rb +30 -0
  80. data/spec/c/trycatch_spec.rb +51 -0
  81. data/spec/mem/blunt_spec.rb +42 -0
  82. data/spec/redjs_spec.rb +10 -0
  83. data/spec/spec_helper.rb +45 -0
  84. data/spec/threading_spec.rb +52 -0
  85. data/spec/v8/context_spec.rb +19 -0
  86. data/spec/v8/conversion_spec.rb +52 -0
  87. data/spec/v8/error_spec.rb +165 -0
  88. data/spec/v8/function_spec.rb +9 -0
  89. data/spec/v8/object_spec.rb +15 -0
  90. data/thefrontside.png +0 -0
  91. data/therubyracer.gemspec +20 -0
  92. metadata +164 -0
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe V8::Function do
4
+ it "uses the global context if it is invoked with nil as the context" do
5
+ @cxt = V8::Context.new
6
+ @cxt['foo'] = 'bar'
7
+ @cxt.eval('(function() {return this.foo})').methodcall(nil).should eql 'bar'
8
+ end
9
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe V8::Object do
4
+ before do
5
+ @object = V8::Context.new.eval('({foo: "bar", baz: "bang", qux: "qux1"})')
6
+ end
7
+
8
+ it "can list all keys" do
9
+ @object.keys.sort.should eql %w(baz foo qux)
10
+ end
11
+
12
+ it "can list all values" do
13
+ @object.values.sort.should eql %w(bang bar qux1)
14
+ end
15
+ end
data/thefrontside.png ADDED
Binary file
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/v8/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Charles Lowell"]
6
+ gem.email = ["javascript-and-friends@googlegroups.com"]
7
+ gem.summary = "Embed the V8 Javascript interpreter into Ruby"
8
+ gem.description = "Call javascript code and manipulate javascript objects from ruby. Call ruby code and manipulate ruby objects from javascript."
9
+ gem.homepage = "http://github.com/cowboyd/therubyracer"
10
+
11
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
+ gem.files = `git ls-files`.split("\n")
13
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
+ gem.name = "therubyracer"
15
+ gem.extensions = ["ext/v8/extconf.rb"]
16
+ gem.require_paths = ["lib", "ext"]
17
+ gem.version = V8::VERSION
18
+
19
+ gem.add_dependency 'ref'
20
+ end
metadata ADDED
@@ -0,0 +1,164 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: therubyracer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.11.0beta8
5
+ segments:
6
+ hash:
7
+ platform: x86-freebsd-9
8
+ authors:
9
+ - Charles Lowell
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2012-11-10 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: ref
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ segments:
24
+ hash:
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ segments:
34
+ hash:
35
+ description: Call javascript code and manipulate javascript objects from ruby. Call
36
+ ruby code and manipulate ruby objects from javascript.
37
+ email:
38
+ - javascript-and-friends@googlegroups.com
39
+ executables: []
40
+ extensions: []
41
+ extra_rdoc_files: []
42
+ files:
43
+ - .gitignore
44
+ - .travis.yml
45
+ - Changelog.md
46
+ - Gemfile
47
+ - README.md
48
+ - Rakefile
49
+ - benchmarks.rb
50
+ - ext/v8/accessor.cc
51
+ - ext/v8/array.cc
52
+ - ext/v8/backref.cc
53
+ - ext/v8/build.rb
54
+ - ext/v8/constants.cc
55
+ - ext/v8/constraints.cc
56
+ - ext/v8/context.cc
57
+ - ext/v8/date.cc
58
+ - ext/v8/exception.cc
59
+ - ext/v8/extconf.rb
60
+ - ext/v8/external.cc
61
+ - ext/v8/function.cc
62
+ - ext/v8/gc.cc
63
+ - ext/v8/handles.cc
64
+ - ext/v8/heap.cc
65
+ - ext/v8/init.cc
66
+ - ext/v8/invocation.cc
67
+ - ext/v8/locker.cc
68
+ - ext/v8/message.cc
69
+ - ext/v8/object.cc
70
+ - ext/v8/primitive.cc
71
+ - ext/v8/rr.cc
72
+ - ext/v8/rr.h
73
+ - ext/v8/script.cc
74
+ - ext/v8/signature.cc
75
+ - ext/v8/stack.cc
76
+ - ext/v8/string.cc
77
+ - ext/v8/template.cc
78
+ - ext/v8/trycatch.cc
79
+ - ext/v8/v8.cc
80
+ - ext/v8/value.cc
81
+ - lib/v8.rb
82
+ - lib/v8/access.rb
83
+ - lib/v8/access/indices.rb
84
+ - lib/v8/access/invocation.rb
85
+ - lib/v8/access/names.rb
86
+ - lib/v8/array.rb
87
+ - lib/v8/context.rb
88
+ - lib/v8/conversion.rb
89
+ - lib/v8/conversion/array.rb
90
+ - lib/v8/conversion/class.rb
91
+ - lib/v8/conversion/code.rb
92
+ - lib/v8/conversion/fixnum.rb
93
+ - lib/v8/conversion/fundamental.rb
94
+ - lib/v8/conversion/hash.rb
95
+ - lib/v8/conversion/indentity.rb
96
+ - lib/v8/conversion/method.rb
97
+ - lib/v8/conversion/object.rb
98
+ - lib/v8/conversion/primitive.rb
99
+ - lib/v8/conversion/proc.rb
100
+ - lib/v8/conversion/reference.rb
101
+ - lib/v8/conversion/string.rb
102
+ - lib/v8/conversion/symbol.rb
103
+ - lib/v8/conversion/time.rb
104
+ - lib/v8/error.rb
105
+ - lib/v8/function.rb
106
+ - lib/v8/object.rb
107
+ - lib/v8/stack.rb
108
+ - lib/v8/version.rb
109
+ - lib/v8/weak.rb
110
+ - spec/c/array_spec.rb
111
+ - spec/c/constants_spec.rb
112
+ - spec/c/exception_spec.rb
113
+ - spec/c/external_spec.rb
114
+ - spec/c/function_spec.rb
115
+ - spec/c/handles_spec.rb
116
+ - spec/c/locker_spec.rb
117
+ - spec/c/object_spec.rb
118
+ - spec/c/script_spec.rb
119
+ - spec/c/string_spec.rb
120
+ - spec/c/template_spec.rb
121
+ - spec/c/trycatch_spec.rb
122
+ - spec/mem/blunt_spec.rb
123
+ - spec/redjs_spec.rb
124
+ - spec/spec_helper.rb
125
+ - spec/threading_spec.rb
126
+ - spec/v8/context_spec.rb
127
+ - spec/v8/conversion_spec.rb
128
+ - spec/v8/error_spec.rb
129
+ - spec/v8/function_spec.rb
130
+ - spec/v8/object_spec.rb
131
+ - thefrontside.png
132
+ - therubyracer.gemspec
133
+ - lib/v8/init.so
134
+ - ext/v8/init.so
135
+ homepage: http://github.com/cowboyd/therubyracer
136
+ licenses: []
137
+ post_install_message:
138
+ rdoc_options: []
139
+ require_paths:
140
+ - lib
141
+ - ext
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - ! '>='
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ segments:
149
+ hash:
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ! '>'
154
+ - !ruby/object:Gem::Version
155
+ version: 1.3.1
156
+ segments:
157
+ hash:
158
+ requirements: []
159
+ rubyforge_project:
160
+ rubygems_version: 1.8.24
161
+ signing_key:
162
+ specification_version: 3
163
+ summary: Embed the V8 Javascript interpreter into Ruby
164
+ test_files: []