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.
This commit is contained in:
Chris Gaffney 2013-02-04 23:38:25 -05:00
parent d8b8f3c6c2
commit a6d4408d52
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ then in your Ruby code
require 'v8'
# or if using bundler (as with Rails), add the following to your Gemfile
gem "therubyracer", :require => 'v8'
gem "therubyracer"
evaluate some simple JavaScript
@ -173,4 +173,4 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[1]: https://github.com/cowboyd/libv8
[2]: http://code.google.com/p/v8/wiki/BuildingWithGYP
[2]: http://code.google.com/p/v8/wiki/BuildingWithGYP

1
lib/therubyracer.rb Normal file
View File

@ -0,0 +1 @@
require "v8"