Re: [ANN] bidi 1.20.0 - with Schema suppport

2015-06-30 Thread Malcolm Sparks
Hi Dylan, Yes, that's right. This is validation for the bidi route structure itself. For now, I've left it open to the bidi user whether and when to use route validation (although I may add it to modular in due course as you point out) Libraries that use ring-swagger, https://github.com/metosin

How to exclude compile-time dependencies from uberjar?

2015-06-30 Thread Robin Heggelund Hansen
I'm trying to get the smallest uberjar as possible. Currently I have a bunch of dependencies for compiling server resources (clojurescript, garden...) that are required at compile-time, but don't have to be in the uberjar. How can I create an uberjar without bundling these resources? Thanks! -

Re: [ANN] Introducing Yagni, a Leiningen plugin for finding unused code

2015-06-30 Thread Yehonathan Sharvit
Yagni ignore `cljs` files. I have opened an issue here: https://github.com/venantius/yagni/issues/26 On Thu, Jun 25, 2015 at 1:53 AM, W. David Jarvis wrote: > Indeed. I'd argue it's better not to have unused code in the codebase in > the first place, regardless of what the Closure compiler

Quoting Confusion

2015-06-30 Thread Karan Toor
I was having some trouble understanding the difference syntax quoting and regular quoting. I thought syntax quoting was like regular quoting except for the unquoting, splicing, and resolving symbols in the namespace. When I apply either the regular quote or the syntax quote twice I get exactly

Re: How to exclude compile-time dependencies from uberjar?

2015-06-30 Thread Alex Miller
You could try setting the :scope for the dependencies - I'm not sure if uberjar does the right thing there or not but seems like it should. On Tuesday, June 30, 2015 at 3:56:31 AM UTC-5, Robin Heggelund Hansen wrote: > > I'm trying to get the smallest uberjar as possible. Currently I have a > bu

Re: How to exclude compile-time dependencies from uberjar?

2015-06-30 Thread Robin Heggelund Hansen
I tried the following, but didn't seem to have any effect: [org.clojure/clojurescript "0.0-3211" :scope "provided"] tirsdag 30. juni 2015 16.02.50 UTC+2 skrev Alex Miller følgende: > > You could try setting the :scope for the dependencies - I'm not sure if > uberjar does the right thing there or

Re: How to exclude compile-time dependencies from uberjar?

2015-06-30 Thread Toby Crawley
If you are using Leiningen, try putting those dependencies in a :provided profile - see https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md#default-profiles. I interpret that to mean they won't be included in the uberjar, but haven't tested to confirm. - Toby On Tue, Jun 30, 2015

[ANN] Clojure 1.7.0 is now available

2015-06-30 Thread Alex Miller
We are pleased to announce the release of Clojure 1.7. - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.7.0/ - Leiningen: [org.clojure/clojure "1.7.0"] The two headline features for 1.7 are transducers and reader conditionals. Also see the complete list ( https://github.com/clojur

Re: How to exclude compile-time dependencies from uberjar?

2015-06-30 Thread Aaron Cohen
My understanding is that those dependencies should go into the "dev" profile, which won't be included in the uberjar. On Tue, Jun 30, 2015 at 4:56 AM, Robin Heggelund Hansen < skinney...@gmail.com> wrote: > I'm trying to get the smallest uberjar as possible. Currently I have a > bunch of dependen

Re: [ANN] Introducing Yagni, a Leiningen plugin for finding unused code

2015-06-30 Thread Stuart Halloway
Nice. It would be really cool if run-yagni was a pure function of source-paths and mains. This would make the dependency on lein optional and allow adoption on e.g. mainland Java projects. Stu On Tue, Jun 30, 2015 at 5:44 AM, Yehonathan Sharvit wrote: > Yagni ignore `cljs` files. > > I have o

Re: [ANN] Clojure 1.7.0 is now available

2015-06-30 Thread Robert Beaupre
Is anyone else getting the following error with 1.7.0 when running lein repl? All I did was change from 1.6.0 to 1.7.0. #error { :cause Wrong number of args (2) passed to: StringReader :via [{:

Re: [ANN] Clojure 1.7.0 is now available

2015-06-30 Thread Gary Trakhman
You'll have to bump instaparse versions: https://github.com/clojure-emacs/refactor-nrepl/issues/53 On Tue, Jun 30, 2015 at 12:57 PM Robert Beaupre wrote: > Is anyone else getting the following error with 1.7.0 when running lein > repl? All I did was change from 1.6.0 to 1.7.0. > > #error { > >

Transducers/Eduction problem

2015-06-30 Thread Вук Мировић
As Clojure 1.7 is finally released, I tried to wet my feet with transducers. I tried eduction example from official site http://clojure.org/transducers but it's not working: user=> (def xf (comp (filter odd?) (map inc))) #'user/xf user=> (def iter (eduction xf (range 5))) #'user/iter user=> (re

Re: [ANN] Clojure 1.7.0 is now available

2015-06-30 Thread Robert Beaupre
Thanks. Looks like it was in Compojure - linked to at the bottom of the page you sent over: https://github.com/bhauman/lein-figwheel/issues/161 On Tuesday, 30 June 2015 10:01:01 UTC-7, Gary Trakhman wrote: > > You'll have to bump instaparse versions: > https://github.com/clojure-emacs/refactor

Re: Transducers/Eduction problem

2015-06-30 Thread Ghadi Shayban
The example is wrong. There are now two flavors of support for reduce through interfaces, IReduce and IReduceInit. The first one allows you to call reduce without an initial value. Eduction doesn't support that interface, but only IReduceInit. Reduce without an initial value is now discoura

Re: [ANN] Clojure 1.7.0 is now available

2015-06-30 Thread blake watson
Yep. Got the same error, found the same fix. Was impressed at how easy it was to fix. (Seriously, compared to most upgrades I've had to do in my life...) On Tue, Jun 30, 2015 at 10:13 AM, Robert Beaupre wrote: > Thanks. Looks like it was in Compojure - linked to at the bottom of the > page you

Re: Transducers/Eduction problem

2015-06-30 Thread Alex Miller
Yep, that's my bug in the example. Will fix, sorry. -- 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.

Re: Clojars Private/Commercial Repos

2015-06-30 Thread Dave Dixon
+1. Neither S3 or Archiva have worked out well for us long term. On Monday, June 29, 2015 at 6:50:44 PM UTC-7, Daniel Compton wrote: > > Hi folks > > I wondered if one possible solution for ensuring Clojars long-term > viability and maintenance would be to use it to host private repositories > f

Re: Clojars Private/Commercial Repos

2015-06-30 Thread Jason Lewis
I think my company would be willing to pay a reasonable fee for private Clojars repos, on something like the Github model? Not sure what the lein overhead would be, I know grabbing Datomic Pro from non-Clojars with creds is a motherf@#@#ing pain in the ass at times (but only in comparison to the co

Re: Clojars Private/Commercial Repos

2015-06-30 Thread Christopher Small
This is being done now with npm: https://www.npmjs.com/. Cost is $7/mo, which seems reasonable. On Tuesday, June 30, 2015 at 12:00:55 PM UTC-7, Jason Lewis wrote: > > I think my company would be willing to pay a reasonable fee for private > Clojars repos, on something like the Github model? No

Re: Confusion about cljs.build.api/build

2015-06-30 Thread Zack Maril
Update: thanks to a comment at the bottom of one of the files in the clojurescript project , I think I know how to fix this. Instead of a list, I should have used a vector. I don't know why this works

Re: Clojars Private/Commercial Repos

2015-06-30 Thread Toby Crawley
Clojars is pretty much a one man show right now, but it currently requires little time to maintain, and works fairly well. If it supported private repos, the maintenance and support time would go up considerably, and it would require some sort of business entity around it. Doing that has been consi

Re: [ClojureScript] [ANN] Clojure 1.7.0-beta3

2015-06-30 Thread Andy Fingerhut
Is anyone interested in filing a bug against IBM JDK 1.8.0 where it appears that its JIT compiler fails about half of the time when doing 'mvn clean test' in a Clojure 1.7.0 source tree? You can find some attachments in an earlier message of this thread that can get you started, but producing your

Running test.check and cljs.test tests under Clojurescript

2015-06-30 Thread Nathan Marz
I'm trying to get Specter's tests running under ClojureScript. I can run the tests manually in a REPL just fine, but I cannot figure out a straightforward way to run all the tests like you can in Clojure with "lein test". Here are the tests I'm trying to run, which are a mix of tests defined using

Re: Running test.check and cljs.test tests under Clojurescript

2015-06-30 Thread Nathan Marz
I figured out a way to do it by manually launching a ClojureScript REPL, writing a test runner script, and then invoking that script at the REPL, like so: https://github.com/nathanmarz/specter/blob/cljs/DEVELOPER.md Still wondering if there's a more straightforward way to do this. On Tuesday,

Re: Running test.check and cljs.test tests under Clojurescript

2015-06-30 Thread Luc Prefontaine
Dunno if this can help you: https://github.com/lprefontaine/clara-rules/blob/master/project.clj I run tests with : lein cljsbuild test-cljs If I my memory is not fooling me. There might be a better way but this is what I had time to tweak this weekend. You need to setup phantomjs, etc...look a

Re: Running test.check and cljs.test tests under Clojurescript

2015-06-30 Thread David Nolen
http://annapawlicka.com/travis-ci-and-clojurescript-tests/ is probably a more relevant basic guide. On Tuesday, June 30, 2015, Nathan Marz wrote: > I'm trying to get Specter's tests running under ClojureScript. I can run > the tests manually in a REPL just fine, but I cannot figure out a > strai

Re: Clojars Private/Commercial Repos

2015-06-30 Thread Alan Dipert
The past few teams I've been on have used variously S3, Nexus, and Artifactory, and I wasn't especially happy with any of them. I think there is a sweet spot of usability (for small/medium teams) and technical capability that hasn't really been achieved by anything available. Of what's availa

Re: Quoting Confusion

2015-06-30 Thread Fluid Dynamics
On Tuesday, June 30, 2015 at 8:05:32 AM UTC-4, Karan Toor wrote: > > I was having some trouble understanding the difference syntax quoting and > regular quoting. I thought syntax quoting was like regular quoting except > for the unquoting, splicing, and resolving symbols in the namespace. > > Wh