Re: HTTP integration tests

2016-03-22 Thread Nicolás Berger
Did you check out vcr-clj: https://github.com/gfredericks/vcr-clj? It should be a good alternative for your unit tests, and probably for your integration tests too. I used it once, worked perfectly well El 21 mar. 2016 20:33, "Sam Halliday" escribió: > Hi all, > > Does anybody have any experience

Re: clojars down?

2016-01-01 Thread Nicolás Berger
Clojars is down because of the ongoing DDoS attacks on linode. Please check http://status.linode.com/ for status on that El 1 ene. 2016 15:53, "Angel Java Lopez" escribió: > It's down here... chrome, page not available, from Buenos Aires, Argentina > > On Fri, Jan 1, 2016 at 3:51 PM, Mimmo Cosenz

Re: Library suggestions requested for clojure-toolbox.com

2015-10-06 Thread Nicolás Berger
{:name "ring-logger", :URL "https://github.com/nberger/ring-logger";, :category "Logging"} On Mon, Oct 5, 2015 at 4:40 PM, James Reeves wrote: > If you've written or know about a Clojure or ClojureScript library, and it's > not already on clojure-toolbox.com, I'd like to hear about it. > > Post

Re: Building mixed Clojure/Java project

2015-09-27 Thread Nicolás Berger
Now I had to try it by miself :). My result: `mvn package` outputs the jar (apart from running some tests, etc), but it doesn't work as `java -jar ...` as I said: it's missing the :main entry point, and after that I guess the dependencies will be missing (it's not an uberjar, so we need to build th

Re: Building mixed Clojure/Java project

2015-09-27 Thread Nicolás Berger
Not a maven expert here, but I found a hint in a closed issue from the project, saying the pom.xml should be used: https :// github.com /

Re: Question on clojure.test thrown? and clojure.lang.ArityException

2015-09-21 Thread Nicolás Berger
I'd say there's nothing wrong with your second assertion but you were just lucky enough to try it with a function defined as :inline, which is caught by the compiler as being called with the wrong arity. The quot definition: https://github.com/clojure/clojure/blob/clojure-1.7.0/src/clj/clojure/cor

Re: Is there a better way to do this than reduce + nested map?

2015-09-14 Thread Nicolás Berger
There is clojure.set/join to do exactly what you are asking for: ``` (-> (clojure.set/join entities locations) (clojure.set/rename {:id :location})) ;=> ({:name "bar", :location 101} {:name "foo", :location 100}) ``` (I'm also using clojure.set/rename to rename :id to :location) http://cloju

Re: Ring Mock and Ring Anti Forgery

2015-09-06 Thread Nicolás Berger
>From the ring-anti-forgery tests [1] I see that it expects the token to be both in the session under the `::af/anti-forgery-token` key and in the `:form-params` in the request as `__anti-forgery-token`, so you can do something like: ``` (require '[ring.middleware.anti-forgery :as af]) (deftest m

[ANN] Ring-logger 0.7.0 released - mostly refactoring and deps cleaning

2015-09-02 Thread Nicolás Berger
I'm pleased to announce the release of [ring-logger "0.7.0"]! The goal for this release was to refactor the code in preparation for future improvements and to remove the timbre & onelog (which pulls log4j, etc) dependencies. Those were moved to the new companion projects that also have 0.7.0 relea

Re: [ANN] ring-logger 0.6.1

2015-08-31 Thread Nicolás Berger
to customize messages & to disable coloring On Mon, Aug 31, 2015 at 3:31 PM, Nicolás Berger wrote: > I'm glad to announce the release of ring-logger 0.6.1 > > Ring-logger is a fork of pjlegato's ring.middleware.logger that aims > to make it easier to switch the logging i

[ANN] ring-logger 0.6.1

2015-08-31 Thread Nicolás Berger
I'm glad to announce the release of ring-logger 0.6.1 Ring-logger is a fork of pjlegato's ring.middleware.logger that aims to make it easier to switch the logging infrastructure (from onelog to taoensso/timbre, the now default tools.logging or any other), customize the logging output (coloring/no-

Re: core.logic: Help with insertion sort

2015-08-01 Thread Nicolás Berger
Hi Tassilo, > I've simplified the code a bit so that I don't need the `cconso` > relation. That's great. It's easier to understand this way. To simplify a tiny bit more, the `nf` lvar can also be removed: it's unified with `f`, so f can be used instead of nf in `(conso nf nr nl)` > Ok, and now t

Re: core.logic: Help with insertion sort

2015-07-29 Thread Nicolás Berger
Hi, Sounds interesting :). I hope I get some time to take a look into it soon. In the meantime, have you tried playing with the log and trace "goals"? I mean log, trace-s and trace-lvar. They might be of help in trying to discover where it's going that makes it hang. El 29/07/2015 11:40, "Tassilo

Re: test.check generating hierarchy with relations

2014-12-09 Thread Nicolás Berger
Hey Cliff, A couple comments: * The `size` param in `gen-hierarchy` is being passed as the first param to `run`, which limits the count of results returned by core.logic. What's the intention there? I think it's most common to grab one result from run, or all of them (to check if it always genera