steelmesh/steelmesh — pull request #17 by fmgdias (2012-01-24 14:41:49+00:00)
Title: changed _getPackageFolder to work properly.

new routine to try catch version of package.
test with files: steelmesh-app-test-1.23.tar.0123456789.gz, steelmesh-app-test-1.23.9876543210.tgz, steelmesh-app-test.9876543210.tgz,steelmesh-app-test.tar.0123456789.gz
see the test:
------------------------------------------
packagesPath: C:\Program Files\nodejs\app\steelmesh
packageFullName: steelmesh-app-test-1.23.tar.0123456789.gz
packageName: steelmesh-app-test
packageVersion: 1.23
packageFolder: C:\Program Files\nodejs\app\steelmesh\steelmesh-app-test
versionFolder: C:\Program Files\nodejs\app\steelmesh\steelmesh-app-test\1.23
------------------------------------------
packagesPath: C:\Program Files\nodejs\app\steelmesh
packageFullName: steelmesh-app-test-1.23.9876543210.tgz
packageName: steelmesh-app-test
packageVersion: 1.23
packageFolder: C:\Program Files\nodejs\app\steelmesh\steelmesh-app-test
versionFolder: C:\Program Files\nodejs\app\steelmesh\steelmesh-app-test\1.23
------------------------------------------
packagesPath: C:\Program Files\nodejs\app\steelmesh
packageFullName: steelmesh-app-test.9876543210.tgz
packageName: steelmesh-app-test
packageVersion: 2012-01-24-12-40-56-391
packageFolder: C:\Program Files\nodejs\app\steelmesh\steelmesh-app-test
versionFolder: C:\Program Files\nodejs\app\steelmesh\steelmesh-app-test\2012-01-24-12-40-56-391
------------------------------------------
packagesPath: C:\Program Files\nodejs\app\steelmesh
packageFullName: steelmesh-app-test.tar.0123456789.gz
packageName: steelmesh-app-test
packageVersion: 2012-01-24-12-40-56-391
packageFolder: C:\Program Files\nodejs\app\steelmesh\steelmesh-app-test
versionFolder: C:\Program Files\nodejs\app\steelmesh\steelmesh-app-test\2012-01-24-12-40-56-391