These are chat archives for jruby-gradle/jruby-gradle-plugin

18th
Nov 2014
Schalk W. Cronjé
@ysb33r
Nov 18 2014 01:05
I am confused with rspec. Is there supposed to be a spec file in bin?
R. Tyler Croy
@rtyler
Nov 18 2014 01:16
@ysb33r for which project?
Schalk W. Cronjé
@ysb33r
Nov 18 2014 01:20
it’s for base - building your integration test. Anyhow I figure out was was going on. Need just to add some test code to compensate
R. Tyler Croy
@rtyler
Nov 18 2014 01:31
ah, hokay
Schalk W. Cronjé
@ysb33r
Nov 18 2014 02:03
OK I have created the integration test and it passes. Now to actually add the gemWorkDir fix again
R. Tyler Croy
@rtyler
Nov 18 2014 02:12
YAY
Schalk W. Cronjé
@ysb33r
Nov 18 2014 02:18
If I push this tonight, will you be able to give it a spin against the project that failed last time?
If it works we can think of a release
R. Tyler Croy
@rtyler
Nov 18 2014 02:21
I will be awake for at least another 4-5 hours
my workday has sadly not concluded :package:
Schalk W. Cronjé
@ysb33r
Nov 18 2014 02:22
I can push something now, whilst crafting a second unit test
R. Tyler Croy
@rtyler
Nov 18 2014 02:25
sure thing
Schalk W. Cronjé
@ysb33r
Nov 18 2014 02:28
I created the PR so long
R. Tyler Croy
@rtyler
Nov 18 2014 02:29
@ysb33r so you just want me to test a snapshot build with #81 with blick?
Schalk W. Cronjé
@ysb33r
Nov 18 2014 02:29
yup
R. Tyler Croy
@rtyler
Nov 18 2014 02:48
TYLERBOT IS PROCESSING REQUEST
ysb33r @ysb33r thinks he is getting clever with managing dependencies in integration tests
R. Tyler Croy
@rtyler
Nov 18 2014 03:01
@ysb33r do you want to cut 0.1.9 or should I?
Schalk W. Cronjé
@ysb33r
Nov 18 2014 03:02
I am just pushing some more unitises etc., then we can cut the release
R. Tyler Croy
@rtyler
Nov 18 2014 03:02
okay, it's up to you then
Schalk W. Cronjé
@ysb33r
Nov 18 2014 03:02
I need to add same functionality to project.jrubyexec as well and update the README
This is tonight’s job
Schalk W. Cronjé
@ysb33r
Nov 18 2014 03:15
There’s a bug in that code anyway - I just noticed
R. Tyler Croy
@rtyler
Nov 18 2014 03:22
ruh roh
I didn't notice it
Schalk W. Cronjé
@ysb33r
Nov 18 2014 03:22
nothing serious
it just needs to translate objects to files in a transparent manner
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:09
OK. We can do a 0.1.9 when ready. Will just need to have the CHANGELOG updated
R. Tyler Croy
@rtyler
Nov 18 2014 04:15
let's let jenkins finish on master first
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:15
I’m not in a hurry
We can add extras fixes as well if need be
R. Tyler Croy
@rtyler
Nov 18 2014 04:16
well, buildhive didn't finish on #82, so I got the impression you were :P
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:17
I merged before it finished because I expect it to pass :)
Anyhow, integration tests should now take 3min instead of 30min :)
R. Tyler Croy
@rtyler
Nov 18 2014 04:21
neat, I'll cut a release
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:25
mmm… did we update the verson to 0.1.9? beter check.
we did
R. Tyler Croy
@rtyler
Nov 18 2014 04:25
you did
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:25
^5
Was watching Steelers vs Titans in the background whilst working on that fix :)
R. Tyler Croy
@rtyler
Nov 18 2014 04:31
haha
R. Tyler Croy
@rtyler
Nov 18 2014 04:36
@ysb33r 0.1.9 is in the wild
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:38
what’s next? 0.1.10 or 0.2.0?
R. Tyler Croy
@rtyler
Nov 18 2014 04:38
0.1.10 :P
I don't know when we want to say "we're done incubating a bunch of this shit"
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:39
I know what you’re saying
I’m not ready for a 1.0 yet
R. Tyler Croy
@rtyler
Nov 18 2014 04:39
I'd like to fix #65, #67 and #29
yeah, me neither
I want to asciidoctor up a fukkin website before that time too
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:41
Isn’t #67 actually a jar issue?
R. Tyler Croy
@rtyler
Nov 18 2014 04:41
er it might be
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:41
we need to move it there
R. Tyler Croy
@rtyler
Nov 18 2014 04:43
can you handle that? with these two releases I need to update an internal project and get to testing :)
(two releases being base and storm)
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:45
I’ll move that
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:51
Done
With #29, is your main use case, the ability to manually test your ruby project outside of gradle?
R. Tyler Croy
@rtyler
Nov 18 2014 04:55
being able to run any of the binstubs or anything like that without invoking ./gradlew
I can't fire up a REPL very easily from within the bounds of Gradle
Schalk W. Cronjé
@ysb33r
Nov 18 2014 04:56
Let’s ignore the REPL - hopefully we can do that at some time.
How would you actually run it form the command-line?
R. Tyler Croy
@rtyler
Nov 18 2014 05:12
@ysb33r what I ended up doing for a developer at Lookout to help him work was:
copy the --info output from a JRubyExec task
and throw it into a jruby-runner script, e.g. exec java -cp <bunch of shit> org.jruby.Main -S $@
so he could go: ./jruby-runner pry
or ./jruby-runner rspec --color --other-custom --options
Schalk W. Cronjé
@ysb33r
Nov 18 2014 05:14
that’s like generating a full script ( a bit like what application plugin does )
also where did you generate the script (inside the root of the project) ?
R. Tyler Croy
@rtyler
Nov 18 2014 05:15
eyah
Schalk W. Cronjé
@ysb33r
Nov 18 2014 05:25
theoretically, if you add the jar plugin and the application plugin, you would be able to do ./gradlew run and it will run your jruby app
R. Tyler Croy
@rtyler
Nov 18 2014 05:31
the scripts and things like that wouldn't be bundled into the jar though
in the case of running tests for example, the jar is the application artifact and will use a different configuration with dependencies
Schalk W. Cronjé
@ysb33r
Nov 18 2014 05:32
indeed the scripts are separate and are bundled as part of a zip or tar.
R. Tyler Croy
@rtyler
Nov 18 2014 05:33
whua?
Schalk W. Cronjé
@ysb33r
Nov 18 2014 05:34
there is two tasks distZip and distTar. They bundle all JARs and two bootstrap scripts (plus licemsing, docs etc should those be required).
They idea is that a user can down the disyribution and unpack it somewhere, then run it via the script in the bin folder.
R. Tyler Croy
@rtyler
Nov 18 2014 05:39
my interest isn't in distribution of any of this, so much as making the use of jruby-gradle for local development easier
Schalk W. Cronjé
@ysb33r
Nov 18 2014 05:40
Yeah, I figured. Generating the scripts could be useful (they are cross platform). I can have a look in the Gradle Source to see how it is done.