Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Tests: fix write_rockspec tests wrt scm -> dev | Hisham Muhammad | 2017-12-19 | 1 | -11/+11 |
| | |||||
* | Tests: add regression test for #750 | Hisham Muhammad | 2017-12-19 | 1 | -2/+12 |
| | | | | Fix #750. | ||||
* | Tests: expose `exist` function to specs | Hisham Muhammad | 2017-12-19 | 1 | -7/+7 |
| | |||||
* | Differentiate "not found" and "fail" when deleting. | Hisham Muhammad | 2017-12-19 | 1 | -4/+10 |
| | | | | | Do not halt a deletion process when trying to delete something that was not found. | ||||
* | Use util.warning instead of printerr with "Warning: " | Hisham Muhammad | 2017-12-19 | 8 | -9/+9 |
| | |||||
* | Use 'dev' instead of 'scm'. | Hisham Muhammad | 2017-12-01 | 5 | -7/+11 |
| | | | | | | Match terminology used in luarocks.org. 'scm' is still supported for compatibility reasons, but is no longer the recommended term. | ||||
* | Tests: mark new_version test using mock-server | Hisham Muhammad | 2017-11-09 | 1 | -18/+21 |
| | |||||
* | Tests: build using INCDIR for an external dependency | Hisham Muhammad | 2017-11-06 | 5 | -4/+58 |
| | |||||
* | Travis: configure before makedist | Hisham Muhammad | 2017-10-08 | 1 | -0/+1 |
| | |||||
* | Test list of installed files on Travis. | Hisham Muhammad | 2017-10-08 | 2 | -1/+7 |
| | |||||
* | Makefile: remove entry that is still in branch only. | Hisham Muhammad | 2017-10-08 | 1 | -1/+1 |
| | |||||
* | Makefile: Update list of deployed files | Hisham Muhammad | 2017-10-08 | 1 | -3/+4 |
| | | | | Fixes #738. | ||||
* | Adds --dev flag for development-branch sub-repositories. (#736) | Hisham Muhammad | 2017-10-08 | 5 | -2/+23 |
| | | | | | | | | | | | This adds support for easily requesting `dev` modules from LuaRocks.org, as in: ``` luarocks install --dev luafilesystem ``` The list of URLs configured in `rocks_servers` is prepended with a list containing "/dev" in their paths. | ||||
* | Tests: move mock-server utils into test_environment.lua | Hisham Muhammad | 2017-10-08 | 4 | -51/+43 |
| | | | | | This avoids trouble with changing package.paths during tests. | ||||
* | fun: make function argument the last one | Hisham Muhammad | 2017-10-08 | 1 | -5/+5 |
| | | | | | Use an order that works better with the Lua function syntax. | ||||
* | Reorganize luarocks.core requires and type checking tables | Hisham Muhammad | 2017-10-08 | 14 | -381/+426 |
| | | | | | | | | | | | * For each `luarocks.core.x` module, make `luarocks.x` module load the core module explicitly as `core`, and expose its relevant methods explicitly as well (instead of using `setmetatable`). * Move all type checking out of the core, adjusting the manifest modules accordingly. * Create separate modules for the rockspec and manifest schemas in the `luarocks.type` namespace. | ||||
* | Tests: use local fixture for new_version test. | Hisham Muhammad | 2017-10-08 | 3 | -30/+55 |
| | |||||
* | Tests: use local fixture for upload test. | Hisham Muhammad | 2017-10-08 | 4 | -2/+37 |
| | | | | Do not hit the github repository for LuaSocket in upload test. | ||||
* | Dir separator is always "/". | Hisham Muhammad | 2017-10-08 | 7 | -15/+11 |
| | | | | | | The code was already effectively using "/" as the only directory separator, even on Windows. This commit removes the unnecessary indirection. | ||||
* | Move luarocks.index to luarocks.admin.index | Hisham Muhammad | 2017-10-08 | 4 | -3/+3 |
| | |||||
* | ChangeLog: Mark module relocations as internal changes | Hisham Muhammad | 2017-10-05 | 1 | -5/+8 |
| | |||||
* | Add `luarocks which` command. (#733) | Hisham Muhammad | 2017-10-05 | 3 | -3/+35 |
| | |||||
* | luarocks.fun: a basic set of functional utilities | Hisham Muhammad | 2017-10-05 | 4 | -15/+47 |
| | | | | | | | | | Move `array_contains` away from the `luarocks.util` kitchen sink, and add a `luarocks.fun` module with some basic functional utilities. I considered using luafun instead, but at this point the basic functionality of LuaRocks has no mandatory external dependencies, so I thought I'd just add these functions internally instead. | ||||
* | 3.0: Patches can create and delete files. | Hisham Muhammad | 2017-10-04 | 4 | -135/+181 |
| | |||||
* | Add test fixture for creating/deleting files in a patch. | Hisham Muhammad | 2017-10-04 | 2 | -0/+35 |
| | |||||
* | Patches now can create a new files from /dev/null (#692) | Evgeny Shulgin | 2017-10-04 | 1 | -1/+13 |
| | |||||
* | Make Makefiles install site_config.lua in new location. | Hisham Muhammad | 2017-10-04 | 2 | -3/+4 |
| | | | | Fixes #735. | ||||
* | Fix: handle missing dependencies section in manifest. | Hisham Muhammad | 2017-10-04 | 1 | -2/+2 |
| | | | | Closes #718. | ||||
* | Use versioned files only. (#734) | Hisham Muhammad | 2017-10-04 | 16 | -227/+161 |
| | | | | | | | | Let's take the opportunity of a new major version to make an important cleanup: getting rid of the error-prone unversioned configuration files. This drops support for: * Unversioned config.lua -> use config-5.x.lua * Unversioned luarocks/site_config.lua -> it always generates luarocks/core/site_config_5_x.lua * Unversioned lib/luarocks/rocks -> it always uses lib/luarocks/rocks-5.x | ||||
* | Fix detection of directories on Windows | Sebastian Thomschke | 2017-10-04 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | Function tools.delete performs a test to determine if a path is a file or a directory to select the appropriate delete command rmdir vs del. The current test however results in rmdir being used on files too, which then results in a build abortion with error "The directory name is invalid.". E.g. if exist "c:\luarocks\share\lua\5.2\luasocket_3_0rc1_2-socket.lua\" ( echo "I am a folder" ) else ( echo "I am a file" ) wrongly prints "I am a folder" (tested on Windows 10) Whereas if exist "c:\luarocks\share\lua\5.2\luasocket_3_0rc1_2-socket.lua\*" ( echo "I am a folder" ) else ( echo "I am a file" ) correctly prints "I am a file" (tested on Windows 10) This fixes #670 (Also see https://stackoverflow.com/a/1466528/1793220 ) | ||||
* | Makefile.setup.inc: do not include trailing slash in LUADIR | Daniel Hahler | 2017-10-04 | 1 | -1/+1 |
| | | | | | LUADIR is used with a following slash everywhere, and it looks confusing when seeing "//" during the build. | ||||
* | Use __tostring to represent versions as strings. | Hisham Muhammad | 2017-10-03 | 2 | -20/+9 |
| | |||||
* | Safer comparison number. | Hisham Muhammad | 2017-10-03 | 1 | -2/+2 |
| | | | | | Ensures the special values for dev versions are higher than versions like 20171002. | ||||
* | Revert commited `make build` changes in src/bin | Peter Melnichenko | 2017-09-30 | 2 | -4/+2 |
| | |||||
* | Travis: cache Busted and LuaCov as well | Hisham Muhammad | 2017-09-29 | 1 | -3/+2 |
| | |||||
* | Travis: fix use of cache | Hisham Muhammad | 2017-09-29 | 1 | -2/+2 |
| | |||||
* | Travis: speed up build | Hisham Muhammad | 2017-09-29 | 3 | -5/+7 |
| | |||||
* | Merge branch 'refactor/download' | Hisham Muhammad | 2017-09-29 | 1 | -31/+47 |
|\ | |||||
| * | Refactor download() function | Hisham Muhammad | 2017-09-29 | 1 | -31/+47 |
| | | |||||
* | | Travis: add cache | Hisham Muhammad | 2017-09-29 | 1 | -0/+13 |
|/ | |||||
* | Fix: don't eat up one slash when fixing the path | Hisham Muhammad | 2017-09-29 | 1 | -1/+1 |
| | |||||
* | Nicer title message for `luarocks search` | Hisham Muhammad | 2017-09-29 | 1 | -1/+2 |
| | |||||
* | Revise README.md for test/ | Hisham Muhammad | 2017-09-29 | 1 | -19/+24 |
| | |||||
* | Changes to the output of the test suite | Hisham Muhammad | 2017-09-29 | 2 | -4/+3 |
| | |||||
* | Document cache option. | Hisham Muhammad | 2017-09-29 | 2 | -0/+4 |
| | |||||
* | Be stricter when autodetecting `source.dir` | Hisham Muhammad | 2017-09-29 | 1 | -7/+6 |
| | | | | | Only assume directory is the location when the tarball contains only a single directory at the top level. | ||||
* | Add a changelog with ongoing LuaRocks 3 changes. | Hisham Muhammad | 2017-09-29 | 1 | -0/+33 |
| | |||||
* | Remove debugging code | Hisham Muhammad | 2017-09-29 | 1 | -1/+0 |
| | |||||
* | Make sure package paths only reference current Lua version | Hisham Muhammad | 2017-09-29 | 4 | -12/+18 |
| | |||||
* | Merge pull request #732 from mikz/patch-1 | Hisham Muhammad | 2017-09-29 | 1 | -1/+1 |
|\ | | | | | read just one line when checking md5 |