jspec install envjs returns 404

0 views
Skip to first unread message

Mark Nijhof

unread,
Apr 12, 2010, 6:39:12 PM4/12/10
to jspec
Hi,

I am trying to execute the command "jspec install envjs" and this
returns a 404 error for me. I was wondering if and how I can solve
this so I get the correct env.js file for rhino to do jQuery testing.

Cheers,

-Mark

Rune Skjoldborg Madsen

unread,
Apr 12, 2010, 11:48:13 PM4/12/10
to js...@googlegroups.com
Hey mark

What is the error?

Thanks..

- Rune

Mark Nijhof

unread,
Apr 13, 2010, 7:54:01 AM4/13/10
to js...@googlegroups.com
Hi Rune,

Sorry for the late reply, this is what I get:

mac:FW4.me marknijhof$ jspec install envjs --trace
Installing envjs (========.................) %33
/opt/local/lib/ruby/1.8/open-uri.rb:277:in `open_http': 404 Not Found
(OpenURI::HTTPError)
from /opt/local/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from /opt/local/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from /opt/local/lib/ruby/1.8/open-uri.rb:162:in `catch'
from /opt/local/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
from /opt/local/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /opt/local/lib/ruby/1.8/open-uri.rb:518:in `open'
from /opt/local/lib/ruby/1.8/open-uri.rb:30:in `open'
from /opt/local/lib/ruby/gems/1.8/gems/jspec-4.2.0/src/installables.rb:71:in
`install'
from /opt/local/lib/ruby/gems/1.8/gems/jspec-4.2.0/src/installables.rb:70:in
`open'
from /opt/local/lib/ruby/gems/1.8/gems/jspec-4.2.0/src/installables.rb:70:in
`install'
from /opt/local/lib/ruby/gems/1.8/gems/jspec-4.2.0/src/project.rb:68:in `send'
from /opt/local/lib/ruby/gems/1.8/gems/jspec-4.2.0/src/project.rb:68:in
`install'
from /opt/local/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/user_interaction.rb:227:in
`progress'
from /opt/local/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/user_interaction.rb:227:in
`each'
from /opt/local/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/user_interaction.rb:227:in
`progress'
from /opt/local/lib/ruby/gems/1.8/gems/jspec-4.2.0/src/project.rb:65:in
`install'
from /opt/local/lib/ruby/gems/1.8/gems/jspec-4.2.0/bin/jspec:70
from /opt/local/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:180:in
`call'
from /opt/local/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:180:in
`call'
from /opt/local/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:155:in
`run'
from /opt/local/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/runner.rb:385:in
`run_active_command'
from /opt/local/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/runner.rb:74:in
`run!'
from /opt/local/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/delegates.rb:7:in
`run!'
from /opt/local/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/import.rb:10

-Mark

> --
> JSpec thanks you for your interest and support! To post simply reply
> to this email.
>
> documentation: http://jspec.info
> unsubscribe: jspec+un...@googlegroups.com
> group: http://groups.google.com/group/jspec
>

--
Mark Nijhof
Cre8ive Thought
m: 0047 95 00 99 37
e: mark....@cre8ivethought.com
w: www.cre8ivethought.com

Mark Nijhof

unread,
Apr 13, 2010, 8:04:03 AM4/13/10
to js...@googlegroups.com
Maybe in the meantime someone can send me the correct env.js file for
using with rhino?

Cheers,

-Mark

Mark Nijhof

unread,
Apr 13, 2010, 8:08:49 AM4/13/10
to js...@googlegroups.com
Sorry found the env.js file on GitHub :) the issue still stands do.
I'll be happy to test out other things to see what it might be.

-Mark


On Tue, Apr 13, 2010 at 2:04 PM, Mark Nijhof

vision media [ Tj Holowaychuk ]

unread,
Apr 13, 2010, 12:52:12 PM4/13/10
to js...@googlegroups.com
ya we need a new source for envjs. Not that I would recommend using it at all its insanely slow

To unsubscribe, reply using "remove me" as the subject.



--
Tj Holowaychuk
Vision Media
President & Creative Lead

Mark Nijhof

unread,
Apr 13, 2010, 12:54:20 PM4/13/10
to js...@googlegroups.com
Ok, what would you recommend for testing jQuery functionality using rhino?

-Mark

Mark Nijhof

unread,
Apr 13, 2010, 1:46:57 PM4/13/10
to js...@googlegroups.com
Does the problem that it doesn't see that jQuery 1.4.2 is loaded also
have to do with the env.js file?

-Mark


On Tue, Apr 13, 2010 at 6:54 PM, Mark Nijhof

vision media [ Tj Holowaychuk ]

unread,
Apr 13, 2010, 1:58:23 PM4/13/10
to js...@googlegroups.com
a browser. envjs is going to act differently anyways, and it 
doesn't cover testing for every browser regardless, plus if
you pick a browser for regular tests it will be faster than Rhino anyways

Mark Nijhof

unread,
Apr 13, 2010, 2:03:20 PM4/13/10
to js...@googlegroups.com
Ah, ok,

So to automate that I would use the --server option? Or is manual the
preferred option?

When I try running the server I get the following error:

mac:FW4.me marknijhof$ jspec run --server --port 9753 --trace
Use server.rb to alter anything you like, provide routes, browser support, etc
error: undefined local variable or method `host' for
Sinatra::Application:Class. Use --trace to view backtrace

I tried adding --host, but that wasn't it :) any pointers would be appreciated.

-Mark

On Tue, Apr 13, 2010 at 7:58 PM, vision media [ Tj Holowaychuk ]

Reply all
Reply to author
Forward
0 new messages