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

Commit a6d4408

Browse files
committed
Make it possible to require "therubyracer".
It's common practice to be able to require the name of the gem. For example, bundler requires the gem name by default. This removes an element of surprise when using the gem.
1 parent d8b8f3c commit a6d4408

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ then in your Ruby code
2424

2525
require 'v8'
2626
# or if using bundler (as with Rails), add the following to your Gemfile
27-
gem "therubyracer", :require => 'v8'
27+
gem "therubyracer"
2828

2929
evaluate some simple JavaScript
3030

@@ -173,4 +173,4 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
173173
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
174174

175175
[1]: https://github.com/cowboyd/libv8
176-
[2]: http://code.google.com/p/v8/wiki/BuildingWithGYP
176+
[2]: http://code.google.com/p/v8/wiki/BuildingWithGYP

lib/therubyracer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require "v8"

0 commit comments

Comments
 (0)