[nodejs] The path to the driver executable must be set by the webdriver.chrome.driver system property

2013-08-16 Thread Maxim Yefremov
I am triing node.js selenium webdriver examplehttps://code.google.com/p/selenium/wiki/WebDriverJs ... var webdriver = require('selenium-webdriver'); var driver = new webdriver.Builder(). usingServer('http://localhost:/wd/hub'). withCapabilities(webdriver.Capabilities.chrome()).

[nodejs] how to test 301 http redirection with destionation url checking

2013-08-14 Thread Maxim Yefremov
How to write test checking that urlFrom is redirected to urlTo with status code 301. Like this: checkRedirect301(urlFrom, urlTo); May be with help of request https://github.com/mikeal/request or http-nodeunit https://github.com/powmedia/nodeunit-httpclient modules. But I can't get urlTo...

Re: [nodejs] how to test 301 http redirection with destionation url checking

2013-08-14 Thread Maxim Yefremov
redirects for GETs. 2013/8/14 Maxim Yefremov maxy...@gmail.com How to write test checking that urlFrom is redirected to urlTo with status code 301. Like this: checkRedirect301(urlFrom, urlTo); May be with help of request https://github.com/mikeal/request or http-nodeunit https

[nodejs] cannot git commit after npm version patch

2013-08-09 Thread Maxim Yefremov
I do npm version patch then cat package.json and see that version is changed. Then do git add package.json and then git commit -m new version but see # On branch master nothing to commit, working directory clean When I change version in package.json by hands then I can git commit as

Re: [nodejs] cannot git commit after npm version patch

2013-08-09 Thread Maxim Yefremov
Thank you Micheil. True. On Fri, Aug 9, 2013 at 1:56 PM, Micheil Smith mich...@brandedcode.comwrote: iirc, npm version patch auto-commits the results, check your git log. - Micheil On 09/08/2013, at 8:42 AM, Maxim Yefremov maxy...@gmail.com wrote: I do npm version patch then cat

Re: [nodejs] Re: update git dependencies

2013-07-13 Thread Maxim Yefremov
Thank you, Alex On Jul 13, 2013 10:08 AM, Alex Kocharin a...@equenext.com wrote: 1. mv node_modules node_modules.backup 2. npm install `npm update` is just broken, and there is no way around it :( On Monday, July 8, 2013 8:15:50 PM UTC+4, Maxim Yefremov wrote: I got lib1 that depends

[nodejs] grunt nodeunit - dont stop on each test failed

2013-07-13 Thread Maxim Yefremov
Is it possible to run grunt nodeunithttps://github.com/gruntjs/grunt-contrib-nodeunittests and dont stop if any test failed? I want it to continue and show failed and passed tests in the end. Because if you have 100 long test you should restart them and wait again and again if some of them

Re: [nodejs] Re: git dependency of dependeny not installed in deep node_modules

2013-07-12 Thread Maxim Yefremov
once in the hierarchy of dependencies. B still has access to C. http://nodejs.org/api/modules.html#modules_all_together describes, how the resolver works. Am Freitag, 12. Juli 2013 04:53:10 UTC+2 schrieb Maxim Yefremov: I got module *A* that depending on module *B* by git dependency

Re: [nodejs] npm link in deployment

2013-07-10 Thread Maxim Yefremov
dependencies and specify a branch for each one (via #branchname). On Mon, Jul 8, 2013 at 8:09 AM, Maxim Yefremov maxy...@gmail.com wrote: I have site1 and site2 on one server, they both depend on one library myLib via npm link. I changed myLib for site2 so it might be buggy for site1. How

Re: [nodejs] Re: update git dependencies

2013-07-09 Thread Maxim Yefremov
*npm update* updates everything exept git dependencies On Tue, Jul 9, 2013 at 3:26 PM, greelgorke greelgo...@gmail.com wrote: npm update? Am Montag, 8. Juli 2013 18:15:50 UTC+2 schrieb Maxim Yefremov: I got lib1 that depends on lib2 via git: dependencies: { lib2: git+ssh://g

Re: [nodejs] Re: update git dependencies

2013-07-09 Thread Maxim Yefremov
-as-Dependencies to update, just append the commit hash Am Dienstag, 9. Juli 2013 13:35:46 UTC+2 schrieb Maxim Yefremov: *npm update* updates everything exept git dependencies On Tue, Jul 9, 2013 at 3:26 PM, greelgorke greel...@gmail.com wrote: npm update? Am Montag, 8. Juli 2013 18:15:50 UTC+2

[nodejs] git submodule add failed

2013-07-09 Thread Maxim Yefremov
I want to add git submodule *$ git submodule add git+ssh://g...@bitbucket.org:userName/lib2.git node_modules/lib2* Cloning into 'node_modules/lib2'... ssh: Could not resolve hostname bitbucket.org:userName: nodename nor servname provided, or not known fatal: Could not read from remote

Re: [nodejs] update git dependencies

2013-07-09 Thread Maxim Yefremov
Matt, thanx. I changed version in package.json and now it works as expected. On Tue, Jul 9, 2013 at 5:34 PM, Matt hel...@gmail.com wrote: On Mon, Jul 8, 2013 at 12:15 PM, Maxim Yefremov maxy...@gmail.com wrote: I got lib1 that depends on lib2 via git: dependencies: { lib2: git+ssh://g

Re: [nodejs] Permission denied for git dependencies in package.json

2013-07-08 Thread Maxim Yefremov
:33 PM, Maxim Yefremov wrote: Thanx Luke, really when I do *sudo clone myRepo* I have the same error. But I cant do *npm install * without *sudo:* *npm ERR! Please try running this command again as root/Administrator. * How to check key of my ssh-agent? On Mon, Jul 8, 2013 at 9:29 AM, Luke

[nodejs] npm link in deployment

2013-07-08 Thread Maxim Yefremov
I have site1 and site2 on one server, they both depend on one library myLib via npm link. I changed myLib for site2 so it might be buggy for site1. How to avoid it? I want to use separate versions of myLib for site1 and site2. But when I do npm link command for myLib on server then site1 and

[nodejs] update git dependencies

2013-07-08 Thread Maxim Yefremov
I got lib1 that depends on lib2 via git: dependencies: { lib2: git+ssh://g...@repo.com:userName/lib2.git } When code changed in lib2 repository I want to have changes in lib1. What should I do to get that changes in lib1. I try* npm install* in lib1 but nothing had changed. -- --

[nodejs] Permission denied for git dependencies in package.json

2013-07-07 Thread Maxim Yefremov
I try setup git dependencies in package.json: dependencies: { myLib: git+ssh://g...@domain.com:user/myLib.git } When I do sudo npm install I got errors: Warning: Permanently added the RSA host key for IP address 'myIp' to the list of known hosts. Permission denied (publickey).

Re: [nodejs] Permission denied for git dependencies in package.json

2013-07-07 Thread Maxim Yefremov
options are to set up your key to work with sudo, or don't use it when cloning/installing (better option). This isn't an npm bug at all, fwiw. On Monday, July 8, 2013, Maxim Yefremov wrote: I try setup git dependencies in package.json: dependencies: { myLib: git+ssh://g

[nodejs] npm install phantom problem on mac

2013-06-11 Thread Maxim Yefremov
Hello, I got installed phantomJs http://phantomjs.org/download.html on mac: $ phantomjs phantomjs But can not install phantom https://github.com/sgentle/phantomjs-node at my project work folder: $ sudo npm install phantom Password: npm http GET https://registry.npmjs.org/phantom npm http 304

Re: [nodejs] npm install phantom problem on mac

2013-06-11 Thread Maxim Yefremov
-to-xcode, or see the xcode-select manpage (man xcode-select) for further information. -- Daniel R. dani...@neophi.com [http://danielr.neophi.com/] On Jun 11, 2013 6:25 AM, Maxim Yefremov maxy...@gmail.com wrote: Hello, I got installed phantomJs http://phantomjs.org/download.html on mac

Re: [nodejs] Re: Test runners and node-inspector

2013-05-22 Thread Maxim Yefremov
execution several times in browser until I jump to my test, where I have *debugger; * string On Wed, May 22, 2013 at 8:41 AM, Miroslav Bajtoš miros...@strongloop.comwrote: On Tuesday, May 21, 2013 5:00:28 PM UTC+2, Maxim Yefremov wrote: Ok. I fix it with backquotes. *node `which nodeunit

Re: [nodejs] Re: Test runners and node-inspector

2013-05-21 Thread Maxim Yefremov
21, 2013 at 12:23 PM, Luke Arduini luke.ardu...@gmail.comwrote: Feel free to use $() as well. On Tuesday, May 21, 2013, Miroslav Bajtoš wrote: On Monday, May 20, 2013 5:35:11 PM UTC+2, Maxim Yefremov wrote: Tried this on mac: node --debug 'which nodeunit' myNodeUnitTest.js You should use

[nodejs] Re: Test runners and node-inspector

2013-05-20 Thread Maxim Yefremov
Tried this on mac: node --debug 'which nodeunit' myNodeUnitTest.js But got error: debugger listening on port 5858 module.js:340 throw err; ^ *Error*: Cannot find module '/pathToProject/which nodeunit' On Saturday, April 23, 2011 12:51:45 AM UTC+3, Rubikzube wrote: Is it possible