50 Commits

Author SHA1 Message Date
André Cruz
be02ef81a4 Add test for the previous commit. 2012-11-20 19:05:21 +00:00
André Cruz
4c3a1dbd91 Fix remote. 2012-11-18 22:13:20 +00:00
André Cruz
fae41c4179 Fix failing test. 2012-11-18 22:10:10 +00:00
André Cruz
91c5bb8c36 Add repo metadata because it is used in a test. 2012-11-18 21:35:20 +00:00
André Cruz
bc598a334b Add jshintrc and fix all CS issues related to it. 2012-11-18 20:44:41 +00:00
André Cruz
01d2ee079c Fix some bugs related with latest changes, fix CS, add local repo tests. 2012-11-17 20:27:20 +00:00
André Cruz
2948eae448 Add github shorthands support (with tests), closes #121. 2012-11-11 16:59:00 +00:00
André Cruz
b3d04e9083 Some cleanup, add tests for tar and zip files.
Also improve tests.
2012-11-11 16:28:10 +00:00
André Cruz
b0687baa00 Fix tests. 2012-11-03 13:08:53 +00:00
André Cruz
8fe0abfc4b Move --force tests from the package to the manager. 2012-10-21 11:48:50 +01:00
André Cruz
6a6eb75a3b Change Package constructor slightly, add rudimentary test for the --force flag. 2012-10-20 17:34:41 +01:00
André Cruz
bff311f8ec Oops. 2012-10-20 17:33:46 +01:00
André Cruz
a74f6630df Add tests for cache-clean, unified some return values. 2012-10-20 16:41:19 +01:00
André Cruz
51bd1f559c Do cleanup also after the tests and not only before each iteration.
This is because the cache could be in an inconsistence state for normal usage afterwards.
2012-10-18 23:20:48 +01:00
Andre Cruz
406ed297ca Oops. 2012-10-17 17:35:18 +01:00
André Cruz
8a4963026a Merge branch 'master' of git://github.com/twitter/bower into features_fixes
Conflicts:
	lib/core/config.js
	lib/core/package.js
	package.json
2012-10-17 08:18:57 +01:00
André Cruz
df4ee49726 Remove unnecessary tear down code in test because it is already being done in the beforeEach. 2012-10-16 23:51:05 +01:00
André Cruz
a7e464a902 Merge branch 'master' of git://github.com/satazor/bower into features_fixes
Conflicts:
	test/assets/project/component.json
	test/manager.js
	test/package.js
2012-10-16 23:35:24 +01:00
André Cruz
faa14a079c Manually revert componentsDirectory option. 2012-10-16 23:32:00 +01:00
André Cruz
b7c3aa59a7 Merge branch 'master' of git://github.com/twitter/bower
Conflicts:
	test/package.js
2012-10-16 22:53:33 +01:00
Andre Cruz
2abde5539d Fix CS again. 2012-10-16 02:01:42 +00:00
Andre Cruz
c5a0f0ddcf Fix redirect test not being async, cache and local files are now flushed before each test. 2012-10-16 02:01:31 +00:00
Andre Cruz
760ef7a13a Fix CS. 2012-10-16 01:01:53 +00:00
André Cruz
5967acb15e Add cache-clean command, remove unnecessary code. 2012-10-15 19:27:48 +01:00
André Cruz
71cddb628e Several fixes.
- Fix issue with download() emiting two 'resolve' events.
- Do not fallback to package.json and to tag describe if there was an error parsing the json file
- Move out cache dir to the config.js file
- Tweak, fix and add test to the point 2.
2012-10-15 17:03:08 +01:00
André Cruz
3f79247ac2 Add componentsDirectory option, fix and add tests. 2012-10-14 20:10:22 +01:00
André Cruz
da9d553899 Merge branch 'master' of github.com:satazor/bower
Conflicts:
	test/manager.js
2012-10-14 19:53:01 +01:00
André Cruz
bf371acc41 Remove unnecessary code, fix beforeEach in some cases. 2012-10-14 19:48:23 +01:00
André Cruz
6ef92b0c95 Add and fix failing test. 2012-10-14 17:36:06 +01:00
André Cruz
5cd8dd7094 Tweak tests so they don't break in the future. 2012-10-14 16:53:28 +01:00
André Cruz
6823acd0ff Merge branch 'master' of git://github.com/satazor/bower
Conflicts:
	lib/core/package.js
2012-10-14 16:01:53 +01:00
André Cruz
6bd00a0e8e Tweak tests so they don't break in the future. 2012-10-13 14:22:15 +01:00
André Cruz
5dbb6d6346 Add install template, fix CS. 2012-10-13 03:19:18 +01:00
André Cruz
03e55cadbb Merge branch 'master' of git://github.com/twitter/bower
Conflicts:
	test/package.js
2012-10-12 00:22:57 +01:00
Andre Cruz
71a7b8e8f0 Add missing tests. 2012-10-11 15:23:47 +01:00
Andre Cruz
fd31f247a6 Unit of work implementation.
A unit of work is a simple storage with write lock/unlock.
The manager/package now share a unit of work instance.
The unit of work is used to prevent shared dependencies from being cloned/copied "at the same time" fixing issue #81.
The prune and version resolving algorithm was also not correct. It now resolves versions correctly, fixing issue #57.

- Fix I/O errors caused by copying/clone repos simultaneously to the same dest.
- Optimize the clone/copy step by avoiding it if the last resolved resource is the same.
- Fix failing test (at least on my windows machine)
- Add some more tests
- Fix CS.
2012-10-11 13:40:54 +01:00
David DeSandro
ed13cab994 remove leftover assert in test 2012-10-08 08:52:57 -04:00
David DeSandro
b168f09419 chmod temp folder for accessible file permissions
with a test
ref #69 (awww yis)
2012-10-08 08:39:00 -04:00
Manuel van Rijn
0763fe0775 fixed another multiple var statement 2012-09-20 13:44:07 +02:00
Manuel van Rijn
158a894804 changed back to var's 2012-09-20 09:03:49 +02:00
Manuel van Rijn
6bcaa4fc8d fix tests 2012-09-19 09:24:35 +02:00
Manuel van Rijn
f0a9e4c384 Merge branch 'master' into issue-31
Conflicts:
	test/package.js
2012-09-19 09:11:02 +02:00
Manuel van Rijn
0b8297138a added tests for redirection 2012-09-14 11:18:56 +02:00
Nathan Bleigh
c0e03516e5 Test coverage for copy on install 2012-09-13 19:10:54 -05:00
♒∆✝
4f6284cd0c Merge pull request #35 from jdalton/lodash
Replace Underscore with Lo-Dash
2012-09-13 15:55:12 -07:00
John-David Dalton
a7dca30d9d Replace Underscore with Lo-Dash. 2012-09-11 22:45:02 -07:00
Paul Irish
c0ce0dfa97 Revert "spec: rename jqueryui package to match registry."
Package was misnamed originally. Fixing in the registry instead.

This reverts commit 1a74353d2d.
2012-09-10 15:35:06 -07:00
Paul Irish
1a74353d2d spec: rename jqueryui package to match registry. 2012-09-10 10:44:54 -07:00
Wil Moore III
164d366670 Added 'info' test
- Should emit error event
2012-09-09 23:44:27 -06:00
Chris Aniszczyk
c220329337 Initial Release
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
2012-09-06 17:11:42 -07:00