mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
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:
parent
d8b8f3c6c2
commit
a6d4408d52
2 changed files with 3 additions and 2 deletions
|
@ -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
1
lib/therubyracer.rb
Normal file
|
@ -0,0 +1 @@
|
|||
require "v8"
|
Loading…
Add table
Reference in a new issue