# Envjs rubygem 0.1.1

**URL:** <https://www.ruby-forum.com/t/envjs-rubygem-0-1-1/183005>\
**Category:** Ruby\
**Created:** [February 5, 2010, 8:36pm UTC](https://www.ruby-forum.com/t/envjs-rubygem-0-1-1/183005 "2010-02-05T20:36:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thegoatboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9fc348/32.png) [@thegoatboy](https://www.ruby-forum.com/u/thegoatboy)\
**Post date:** [February 5, 2010, 8:36pm UTC](https://www.ruby-forum.com/t/envjs-rubygem-0-1-1/183005/1 "2010-02-05T20:36:02Z")

</div>

envjs rubygem version 0.1.1 has been released!

- [http://github.com/smparkes/env-js](http://github.com/smparkes/env-js)
- [http://groups.google.com/group/envjs](http://groups.google.com/group/envjs)
- \<#envjs @ [irc.freenode.net](http://irc.freenode.net)\>

The envjs rubygem is a port of the env.js project based on the Johnson  
gem. The env.js project provides a mostly pure javascript implementation  
of the browser environment (e.g., the HTML DOM objects). More details on  
env.js are available at [GitHub - thatcher/env-js: A pure-JavaScript browser environment.](http://github.com/thatcher/env-js).

The original target of env.js was the Rhino javascript interpreter  
written in Java. The envjs gem uses the SpiderMonkey interpreter written  
in C/C++ via the Johnson gem.

The 0.1 release branch of the envjs gem is not integrated with the Java  
version. The 1.0 release branch will be.

To install envjs, you may need to manually install a prerelease of the  
johnson gem, e.g.,

gem install johnson --prerelease

Because it’s a prerelease version of the gem, you may need to manually  
install gem dependencies. The gem install will tell you if you need to.  
After that, you can install envjs with a normal “gem install envjs”.

Simple examples are in the README at [GitHub - smparkes/env-js: A pure-JavaScript browser environment with early rubygem support.](http://github.com/smparkes/env-js).

---

<div class="post-metadata">

**Author:** ![thegoatboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9fc348/32.png) [@thegoatboy](https://www.ruby-forum.com/u/thegoatboy)\
**Post date:** [February 13, 2010, 4:35am UTC](https://www.ruby-forum.com/t/envjs-rubygem-0-1-1/183005/2 "2010-02-13T04:35:57Z")

</div>

Hi, does johnson prerelease still not compile with 1.9,1?

Thanks,

Cheers,  
Ed

Ed Howland

> **[Green Programming - Blogging about Ruby, jQuery and Beyond!](https://greenprogrammer.wordpress.com/)**
>
> Just another WordPress.com weblog

[http://twitter.com/ed\_howland](http://twitter.com/ed_howland)

---

<div class="post-metadata">

**Author:** ![thegoatboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9fc348/32.png) [@thegoatboy](https://www.ruby-forum.com/u/thegoatboy)\
**Post date:** [February 13, 2010, 4:43am UTC](https://www.ruby-forum.com/t/envjs-rubygem-0-1-1/183005/3 "2010-02-13T04:43:34Z")

</div>

Hi,

Works great if you change  
require ‘johnson/tramonkey’ to  
require ‘johnson/tracemonkey’

in the REASME file.

Cheers,  
Ed

Ed Howland

> **[Green Programming - Blogging about Ruby, jQuery and Beyond!](https://greenprogrammer.wordpress.com/)**
>
> Just another WordPress.com weblog

[http://twitter.com/ed\_howland](http://twitter.com/ed_howland)

---

<div class="post-metadata">

**Author:** ![thegoatboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9fc348/32.png) [@thegoatboy](https://www.ruby-forum.com/u/thegoatboy)\
**Post date:** [February 13, 2010, 6:29am UTC](https://www.ruby-forum.com/t/envjs-rubygem-0-1-1/183005/4 "2010-02-13T06:29:29Z")

</div>

> Works great if you change  
> require ‘johnson/tramonkey’ to  
> require ‘johnson/tracemonkey’

Fixed. Thanks.

---

<div class="post-metadata">

**Author:** ![thegoatboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9fc348/32.png) [@thegoatboy](https://www.ruby-forum.com/u/thegoatboy)\
**Post date:** [February 13, 2010, 6:30am UTC](https://www.ruby-forum.com/t/envjs-rubygem-0-1-1/183005/5 "2010-02-13T06:30:39Z")

</div>

On Feb 12, 2010, at Feb 12,7:35 PM , Ed Howland wrote:

> Hi, does johnson prerelease still not compile with 1.9,1?

No, it doesn’t. It’s pretty dependent at this point on C extension stuff  
that changed a fair amount between 1.8 and 1.9.
