Commit graph

3106 commits

Author SHA1 Message Date
Gabriel Horner
cd3338fcaa update tutorial to correctly reference app template
closes #959
2013-01-31 00:57:44 -05:00
Jean Niklas L'orange
4820b40c3a Merge pull request #969 from cldwalker/contributing-typos
point to correct docs for a local lein checkout
2013-01-30 10:47:18 -08:00
Gabriel Horner
f477ffa7da add tests for helpful renderer msgs, handle no args case 2013-01-30 06:31:14 -05:00
Gabriel Horner
7b4c8c753f have new renderer abort with a more helpful message
abort with message including resource path instead of
an exception that has no resource info
2013-01-30 06:01:45 -05:00
Gabriel Horner
0a7b974fdc point to correct docs for a local lein checkout 2013-01-29 22:15:33 -05:00
Jean Niklas L'orange
fad3f7312d Remove directory part of root-path when copying jar, re #953.
When specifying :filespecs with `:type :path`, copy-to-jar will iterate
over all elements within the path if the path is a directory, and remove
the path from the front of the path when added as a JarEntry. This is an
issue if you specify a file, as the path will then just be an empty
string. This is solved by invoking the newly implemented dir-string and
remove the result of that instead of removing the path itself.
2013-01-24 18:59:59 +01:00
Jean Niklas L'orange
133a5a757a "De-regexify" trim-leading. 2013-01-24 17:20:09 +01:00
Jean Niklas L'orange
273544db08 Document profiles.d functionality. 2013-01-23 19:53:28 +01:00
Jean Niklas L'orange
3045ed7111 Add support for ~/.lein/profiles.d. Closes #871.
Add support for profiles.d within the user's Leiningen home directory. All .clj
files within LEIN_HOME/profiles.d will be treated as maps merged into the
original profiles.clj (if existing).

Erroneous .clj file inside profiles.d emits an error message and will be treated
as nil.

A profile defined multiple times will error and "crash" the loading of profiles,
such that profiles return nil.

The errors will only be emitted once for user-friendliness.
2013-01-23 19:53:28 +01:00
Jean Niklas L'orange
730141f972 Memoize user/profiles. 2013-01-23 19:53:28 +01:00
Michael Klishin
0ef01ba38b a typo 2013-01-23 16:54:21 +04:00
Jean Niklas L'orange
d19e514e69 Merge pull request #948 from maerz/patch-1
Fix typos in `sample.project.clj`
2013-01-22 00:34:15 -08:00
maerz
4d07b5e4fb Update sample.project.clj
Fixed several typos
2013-01-22 08:28:36 +01:00
Phil Hagelberg
3391fd8445 Add download log parsing code.
[ci skip]
2013-01-21 20:43:41 -08:00
Phil Hagelberg
f1b42bbde9 Remove swank from examples in profiles doc. Fixes #947.
[ci skip]
2013-01-21 20:41:19 -08:00
Phil Hagelberg
4fa64eac63 Use 1.7.1 tag in readme instead of stable. Fixes #946. 2013-01-21 14:55:41 -08:00
Michael Klishin
46401a4920 Merge pull request #945 from MerelyAPseudonym/patch-1
Update doc URL to Tim Pope's "vim-foreplay"
2013-01-21 06:52:06 -08:00
MerelyAPseudonym
f5492b9c2c Update URL to Tim Pope's "vim-foreplay"
Apparently he renamed the project at some point.
2013-01-21 09:44:52 -05:00
Jean Niklas L'orange
15d7f188cd Merge pull request #942 from AtKaaZ/master
complete transition to 2.1.0-SNAPSHOT by using leiningen-core 2.1.0-SNAPSHOT
2013-01-20 15:53:06 -08:00
AtKaaZ
d7f74c3206 Bump to using leiningen-core 2.1.0-SNAPSHOT rather than just 2.0.0 2013-01-20 23:33:28 +01:00
Phil Hagelberg
3b539495a4 Remove mention of preview from docs; use stable branch. 2013-01-19 20:39:43 -08:00
Phil Hagelberg
be4ec8c81e Bump to 2.1.0-SNAPSHOT. 2013-01-19 20:39:17 -08:00
Phil Hagelberg
0cd13d8cdb Release 2.0.0. 2013-01-19 20:07:46 -08:00
Phil Hagelberg
01e6c953c3 News and FAQ about implicit repl deps.
[ci skip]
2013-01-19 15:25:45 -08:00
Phil Hagelberg
f60ae5f3ae Merge pull request #939 from timmc/back-to-one-problem
Remove some unnecessary regular expressions from the templates util ns.
2013-01-19 15:07:58 -08:00
Colin Jones
451a4c40b4 Bump REPLy version to handle bad input
fixes #940
2013-01-19 14:50:59 -06:00
Tim McCormack
45a5901d69 Remove some unnecessary regular expressions from the templates util ns.
Also:

* Add tests for string-munging fns
* Correct doc for name-to-path
2013-01-18 22:09:17 -05:00
Phil Hagelberg
a546d0b147 Allow implicit repl profiles to be overridden with namespaced names. 2013-01-18 18:44:43 -08:00
Phil Hagelberg
941cadfe57 Accept :main in addition to -m in run task. 2013-01-18 17:27:56 -08:00
Phil Hagelberg
9b91dc9dad Add a faq entry about implicit repl deps. 2013-01-18 17:18:31 -08:00
Phil Hagelberg
2e852fb563 Doc rewording for checkout deps. 2013-01-18 17:18:04 -08:00
Phil Hagelberg
b4932b88ea Merge pull request #937 from hyPiRion/gracefully-stop-reading-input-in-sub-process
Gracefully stop reading input in sub-process. Fixes #934.
2013-01-17 17:29:32 -08:00
Jean Niklas L'orange
4f2bc328d7 Gracefully stop reading input in sub-process. Fixes #934.
This commit handles three major bugs with the current way of redirecting input
from Leiningen to a sub-process:

- The redirection is never stopped. This means that typing on the keyboard after
  a sub-process has finished will crash the thread redirecting data from *in* to
  the sub-process' input stream, as it is closed.

- The redirection is buffered. This means that data intended to a subsequent
  sub-process may be sent to this sub-process instead.

- The redirection blocks instead of busy waits. For the output streams, this is
  perfectly fine and the recommended approach to avoid wasting cycles. However,
  this has some issues when done to an input stream: If the sub-process finishes
  while the thread block waiting for a character, we will be unable to stop the
  thread before a character has been read. The consequence is that a character
  originally intended to the subsequent sub-process will be given to the
  previous process.

These issues are solved by reading one byte at a time, busy wait on data and
gracefully exit when the sub-process has ended (through a mutable
variable/atom).
2013-01-18 01:02:15 +01:00
Phil Hagelberg
6e42ceea19 Clarify wording of checkout dependencies in tutorial. 2013-01-17 11:47:25 -08:00
Jean Niklas L'orange
9e9d94581c Add pom.xml.asc and .lein-repl-history to lein new gitignores. 2013-01-17 16:18:12 +01:00
Colin Jones
478469d6be Bump REPLy for parsing things like "\ " 2013-01-17 08:59:34 -06:00
Michael Klishin
8193e2bf60 Merge pull request #936 from metajack/fix-release-for-lein-pkg
Add bin/lein-pkg to the list of files that get version substitutions.
2013-01-17 04:28:23 -08:00
Jean Niklas L'orange
1f38b792f8 Merge pull request #935 from brandonbloom/newlines-at-eof
Add newlines at end of template files
2013-01-17 00:08:20 -08:00
Jack Moffitt
eb5ba65f90 Add bin/lein-pkg to the list of files that get version substitutions.
Currently lein-pkg is forgotten about, which means it is always pointing to
the 2.0.0-SNAPSHOT version. This means packagers much edit this file
themselves.
2013-01-16 22:04:47 -07:00
Brandon Bloom
9ecf3e4c53 Add newlines at end of template files 2013-01-16 19:44:58 -08:00
Colin Jones
acd2df66ba Bump REPLy & nREPL for Calendar print & regex read 2013-01-16 20:31:34 -06:00
Phil Hagelberg
f898c46f57 NEWS for RC2. 2013-01-15 09:25:23 -08:00
Phil Hagelberg
221d62a279 Merge pull request #932 from mgrubb/warn-on-user-in-project
Emit warning when user profile is in project files
2013-01-14 10:42:43 -08:00
Jean Niklas L'orange
1ea3c4c677 Treat :user in profile.clj as project map when outside of project. Fixes #931.
By treating the `:user` profile in `profile.clj` as the project map when one's
outside of a project, the default repositories among with any mentioned
repositories within the `:user` profile will be fetched without any issues. Also
works fine when `profile.clj` doesn't contain any `:user` profile or no
`profile.clj` exists.
2013-01-14 11:03:11 +01:00
Michael Grubb
ec435b48a6 Emit warning when user profile is in project files
This implements issue #890.
It warns if a :user profile is found in either project.clj or
a profiles.clj in the project directory.
2013-01-13 21:26:20 -06:00
Jean Niklas L'orange
fbc1804f86 Add tests to check ^:replace/^:displace behaviour. 2013-01-13 11:10:01 +01:00
Jean Niklas L'orange
2b40a3c8ec Prioritize metadata from :replace-vals and suppress from :displace. 2013-01-13 10:54:04 +01:00
Jean Niklas L'orange
e5511fe516 Back to 2.0.0-SNAPSHOT. 2013-01-13 10:38:54 +01:00
Phil Hagelberg
99f0ed7069 Release 2.0.0-RC2 2013-01-12 17:03:18 -08:00
Phil Hagelberg
b75658cff9 Be less specific in hooke-injection. 2013-01-12 14:44:50 -08:00