aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fun: make function argument the last oneHisham Muhammad2017-10-081-5/+5
| | | | | Use an order that works better with the Lua function syntax.
* Reorganize luarocks.core requires and type checking tablesHisham Muhammad2017-10-0814-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 Muhammad2017-10-083-30/+55
|
* Tests: use local fixture for upload test.Hisham Muhammad2017-10-084-2/+37
| | | | Do not hit the github repository for LuaSocket in upload test.
* Dir separator is always "/".Hisham Muhammad2017-10-087-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.indexHisham Muhammad2017-10-084-3/+3
|
* ChangeLog: Mark module relocations as internal changesHisham Muhammad2017-10-051-5/+8
|
* Add `luarocks which` command. (#733)Hisham Muhammad2017-10-053-3/+35
|
* luarocks.fun: a basic set of functional utilitiesHisham Muhammad2017-10-054-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 Muhammad2017-10-044-135/+181
|
* Add test fixture for creating/deleting files in a patch.Hisham Muhammad2017-10-042-0/+35
|
* Patches now can create a new files from /dev/null (#692)Evgeny Shulgin2017-10-041-1/+13
|
* Make Makefiles install site_config.lua in new location.Hisham Muhammad2017-10-042-3/+4
| | | | Fixes #735.
* Fix: handle missing dependencies section in manifest.Hisham Muhammad2017-10-041-2/+2
| | | | Closes #718.
* Use versioned files only. (#734)Hisham Muhammad2017-10-0416-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 WindowsSebastian Thomschke2017-10-041-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 LUADIRDaniel Hahler2017-10-041-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 Muhammad2017-10-032-20/+9
|
* Safer comparison number.Hisham Muhammad2017-10-031-2/+2
| | | | | Ensures the special values for dev versions are higher than versions like 20171002.
* Revert commited `make build` changes in src/binPeter Melnichenko2017-09-302-4/+2
|
* Travis: cache Busted and LuaCov as wellHisham Muhammad2017-09-291-3/+2
|
* Travis: fix use of cacheHisham Muhammad2017-09-291-2/+2
|
* Travis: speed up buildHisham Muhammad2017-09-293-5/+7
|
* Merge branch 'refactor/download'Hisham Muhammad2017-09-291-31/+47
|\
| * Refactor download() functionHisham Muhammad2017-09-291-31/+47
| |
* | Travis: add cacheHisham Muhammad2017-09-291-0/+13
|/
* Fix: don't eat up one slash when fixing the pathHisham Muhammad2017-09-291-1/+1
|
* Nicer title message for `luarocks search`Hisham Muhammad2017-09-291-1/+2
|
* Revise README.md for test/Hisham Muhammad2017-09-291-19/+24
|
* Changes to the output of the test suiteHisham Muhammad2017-09-292-4/+3
|
* Document cache option.Hisham Muhammad2017-09-292-0/+4
|
* Be stricter when autodetecting `source.dir`Hisham Muhammad2017-09-291-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 Muhammad2017-09-291-0/+33
|
* Remove debugging codeHisham Muhammad2017-09-291-1/+0
|
* Make sure package paths only reference current Lua versionHisham Muhammad2017-09-294-12/+18
|
* Merge pull request #732 from mikz/patch-1Hisham Muhammad2017-09-291-1/+1
|\ | | | | read just one line when checking md5
| * read just one line when checking md5Michal Cichra2017-09-261-1/+1
|/ | | | in some cases reading the whole file fails (on macOS High Sierra, LuaJIT) this is timing dependent and waiting between spawning and reading solves the issue as well
* Speed up type checkingHisham Muhammad2017-09-132-4/+9
|
* Fix version cacheHisham Muhammad2017-09-131-9/+9
|
* Merge branch 'luarocks-3'Hisham Muhammad2017-09-1379-2294/+2521
|\
| * Add sanity check for lua.hHisham Muhammad2017-04-171-0/+9
| |
| * Get rid of an implicit number to string conversionPeter Melnichenko2017-04-141-2/+2
| | | | | | | | Clearly tostring was implied instead of tonumber.
| * Fixed wrong "interp" in the configure fileEvgeny Shulgin2017-04-141-1/+1
| | | | | | Fixed wrong "interp" instead of "where" in the configure file
| * Make sure target directory exists when saving API config.Hisham2017-02-081-0/+5
| | | | | | | | Closes #676.
| * Improve error checking in ownership check.Hisham2017-01-084-7/+23
| | | | | | | | See #664.
| * Merge pull request #664 from luarocks/check_cache_ownerHisham Muhammad2017-01-076-9/+49
| |\ | | | | | | Check cache owner
| | * Oops! Fix warning message.Hisham2017-01-061-1/+3
| | |
| | * Check ownership of cache directory and emit a warning.Hisham2017-01-066-9/+47
| |/ | | | | | | | | This prevents `sudo luarocks` to take over ownership of the user's ~/.cache/luarocks directory.
| * Remove outdated flagsHisham2016-12-181-1/+1
| |
| * Fix clobbered varible.Hisham2016-12-021-7/+7
| |