Hi, I made a thing: https://github.com/AdamClements/latest-clojure-libraries

It's an emacs command which when you do M-x insert-latest-clojure-library 
will ask you for the name of a library on clojars. It will then pull the 
clojars page, look at the latest version and insert the text e.g. 
[congomongo "0.4.0"] into your buffer (usually you'd go to your 
project.clj, make a gap in your dependencies then run this command and 
it'll insert in place). 

It will then ask you if you want to add it to the classpath of your running 
repl (requires you to have pomegranate in your profiles.clj dependencies 
map).

Bingo, latest version of the library in your project.clj and your running 
nrepl, no restarts required.

Issues: It just pulls the clojars page and runs a nasty regex over it 
(bleurgh). I tried to use the lein search indices, but it keeps breaking on 
my machine and the output isn't ideal. Perhaps if people find this useful, 
someone could help me fix up lein search to work for this use case (only 
interested in latest version and closest match). The other advantage of 
that would be that it then searches repositories other than clojars, which 
would be nice.

Anyway, have a play and let me know what you think,

Adam

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to