Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit e84bb6a

Browse files
committed
consistentize spelling of JavaScript too.
1 parent 12a2270 commit e84bb6a

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
## DESCRIPTION
99

10-
Embed the V8 Javascript interpreter into Ruby.
10+
Embed the V8 JavaScript interpreter into Ruby.
1111

1212

1313
## FEATURES
1414

15-
* Evaluate Javascript from within Ruby
16-
* Embed your Ruby objects into the Javascript world
15+
* Evaluate JavaScript from within Ruby
16+
* Embed your Ruby objects into the JavaScript world
1717
* Manipulate JavaScript objects and call JavaScript functions from Ruby
1818
* API compatible with the The Ruby Rhino (for JRuby: http://github.com/cowboyd/therubyrhino)
1919

@@ -27,7 +27,7 @@ then in your Ruby code
2727
# or if using bundler (as with Rails), add the following to your Gemfile
2828
gem "therubyracer", :require => 'v8'
2929

30-
evaluate some simple javascript
30+
evaluate some simple JavaScript
3131

3232
cxt = V8::Context.new
3333
cxt.eval('7 * 6') #=> 42
@@ -37,12 +37,12 @@ embed values into the scope of your context
3737
cxt['foo'] = "bar"
3838
cxt.eval('foo') # => "bar"
3939

40-
embed Ruby code into your scope and call it from javascript
40+
embed Ruby code into your scope and call it from JavaScript
4141

4242
cxt["say"] = lambda {|this, word, times| word * times}
4343
cxt.eval("say('Hello', 3)") #=> HelloHelloHello
4444

45-
embed a Ruby object into your scope and access its properties/methods from javascript
45+
embed a Ruby object into your scope and access its properties/methods from JavaScript
4646

4747
class MyMath
4848
def plus(lhs, rhs)
@@ -53,7 +53,7 @@ embed a Ruby object into your scope and access its properties/methods from javas
5353
cxt['math'] = MyMath.new
5454
cxt.eval("math.plus(20,22)") #=> 42
5555

56-
make a Ruby object *be* your global javascript scope.
56+
make a Ruby object *be* your global JavaScript scope.
5757

5858
math = MyMath.new
5959
V8::Context.new(:with => math) do |cxt|
@@ -64,7 +64,7 @@ you can do the same thing with Object#eval_js
6464

6565
math.eval_js("plus(20,22)")
6666

67-
## Different ways of loading javascript source
67+
## Different ways of loading JavaScript source
6868

6969
In addition to just evaluating strings, you can also use streams, such as files.
7070

@@ -81,11 +81,11 @@ or load it by filename
8181

8282
## Safe by default, dangerous by demand
8383

84-
The Ruby Racer is designed to let you evaluate javascript as safely as possible unless you tell it to do something more
85-
dangerous. The default context is a hermetically sealed javascript environment with only the standard javascript objects
84+
The Ruby Racer is designed to let you evaluate JavaScript as safely as possible unless you tell it to do something more
85+
dangerous. The default context is a hermetically sealed JavaScript environment with only the standard JavaScript objects
8686
and functions. Nothing from the Ruby world is accessible at all.
8787

88-
For Ruby objects that you explicitly embed into javascript, by default only the _public_ methods _below_ `Object` are
88+
For Ruby objects that you explicitly embed into JavaScript, by default only the _public_ methods _below_ `Object` are
8989
exposed by default. E.g.
9090

9191
class A

therubyracer.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ require File.expand_path('../lib/v8/version', __FILE__)
44
Gem::Specification.new do |gem|
55
gem.authors = ["Charles Lowell"]
66
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."
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."
99
gem.homepage = "http://github.com/cowboyd/therubyracer"
1010

1111
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }

0 commit comments

Comments
 (0)