Philpax has quit [Ping timeout: 276 seconds]
Philpax has joined #crystal-lang
johnjansen has joined #crystal-lang
johnjansen has quit [Quit: johnjansen]
johnjansen has joined #crystal-lang
johnjansen has quit [Quit: johnjansen]
johnjansen has joined #crystal-lang
sp4rrow has quit [Quit: Textual]
johnjansen has quit [Quit: johnjansen]
johnjansen has joined #crystal-lang
johnjansen has quit [Client Quit]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 264 seconds]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
Philpax has joined #crystal-lang
<
FromGitter>
<piedoom> anyone know what font the crystal logo uses?
snsei_ has joined #crystal-lang
snsei has quit [Ping timeout: 250 seconds]
snsei_ has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei_ has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
Philpax has quit [Ping timeout: 276 seconds]
matp has quit [Ping timeout: 265 seconds]
Philpax has joined #crystal-lang
johnjansen has joined #crystal-lang
matp has joined #crystal-lang
<
FromGitter>
<piedoom> oh dang I think you're right
<
FromGitter>
<piedoom> thanks!
johnjansen has quit [Quit: johnjansen]
pawnbox has joined #crystal-lang
ssvb has quit [Remote host closed the connection]
soveran has joined #crystal-lang
jaitaiwan_ has joined #crystal-lang
<
jaitaiwan_>
Hey guys is there a kemal IRC?
Philpax has quit [Ping timeout: 260 seconds]
sandelius has joined #crystal-lang
<
txdv>
ipwhat is kemal?
<
txdv>
o the framework
<
txdv>
this chan has only 91 nicks, so i guess this is the meeting spot for everything related to crystal lang
<
txdv>
also maybe gitter
<
sandelius>
asterite jhass is there any roadmap for crystal?
soveran has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
mark_66 has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
bjz has joined #crystal-lang
<
jaitaiwan_>
Thanks @txdv
pawnbox has quit [Remote host closed the connection]
bjz has quit [Read error: Connection reset by peer]
bjz has joined #crystal-lang
pawnbox has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
globalkeith has joined #crystal-lang
globalkeith has quit [Client Quit]
bjz has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mark_66 has joined #crystal-lang
bjz has quit [Read error: Connection reset by peer]
bjz has joined #crystal-lang
jaitaiwan_ has quit [Quit: Page closed]
bjz has quit [Read error: Connection reset by peer]
bjz has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
soveran has joined #crystal-lang
Philpax has joined #crystal-lang
soveran has quit [Remote host closed the connection]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Crizkov has joined #crystal-lang
Crizkov has quit [Client Quit]
Crizkov has joined #crystal-lang
<
Crizkov>
Hi guys! How can I disable the GC in Crystal? Maybe with GC_DONT_GC=1? other ways?
<
tilpner>
Probably that. What are you doing?
<
Crizkov>
Thanks tilpner! I'm just trying to learn how work the GC with Crystal :-)
Crizkov has quit [Quit: Page closed]
eizua has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
kulelu88 has joined #crystal-lang
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnjansen has joined #crystal-lang
ldebello has joined #crystal-lang
ldebello has left #crystal-lang [#crystal-lang]
<
RX14>
leafybasi, what's your problem?
<
RX14>
jhass, does DeBot do the ?ask thing?
<
DeBot>
RX14: Nothing known about ask.
Philpax has quit [Ping timeout: 248 seconds]
<
DeBot>
I know the following keys: guys, json_union, from_ruby, windows, libraries, emacs, whatisspawn, xy, foo, code, non_local_if, best, better, roadmap, vim, shards, ml, iftrue, justabot, nightly, ugt, logs, log, debugging, gist, production, ruby
johnjansen has quit [Quit: johnjansen]
<
RX14>
?ask=Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<
DeBot>
RX14: Set ask.
<
DeBot>
Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
johnjansen has joined #crystal-lang
<
leafybasi>
RX14: my problem? I don't have one?
<
RX14>
oh, sorry I pinged the wrong person
<
FromGitter>
<raydf> ldebello, any question in specific?
<
RX14>
he seems to be gone
<
eizua>
Hi, does Crystal have a module similar to Ruby's 'open3' gem? Looking to try porting over a project from Ruby to Crystal for comparison.
<
BlaXpirit>
eizua, please specify the actual functionality you want to get the widest audience who could help
ssvb has joined #crystal-lang
<
eizua>
BlaXpirit, what do you mean? The 'open3' gem from Ruby was for capturing the output of an external command. Is that what you meant?
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
sandelius has joined #crystal-lang
snsei_ has quit [Remote host closed the connection]
johnjansen has quit [Quit: johnjansen]
<
RX14>
eizua, crystal has that built in
<
eizua>
RX14, is it the backticks thing (`which git`)?
<
RX14>
https://crystal-lang.org/api/0.19.2/Process.html#exec%28command%3AString%2Cargs%3Dnil%2Cenv%3AEnv%3Dnil%2Cclear_env%3ABool%3Dfalse%2Cshell%3ABool%3Dfalse%2Cinput%3ABool%7CIO%3A%3AFileDescriptor%3Dtrue%2Coutput%3ABool%7CIO%3A%3AFileDescriptor%3Dtrue%2Cerror%3ABool%7CIO%3A%3AFileDescriptor%3Dtrue%2Cchdir%3AString%7CNil%3Dnil%29-class-method
<
RX14>
backticks will capture
<
RX14>
wrong method lol
<
RX14>
Process.run is what you want
<
eizua>
Just goes to show I've been looking in the wrong place in the Crystal API docs :)
<
eizua>
It was safe to assume Crystal already had this in its standard library, just needed to know
*where* to look
<
RX14>
well, i would have thought looking for "process" would make sense
<
eizua>
Yeah, I should have thought of it but didn't
<
eizua>
No sample code in the docs yet?
<
RX14>
no, unfortunately
<
RX14>
eizua, if you tell me what you want to do I can explain it to you
<
eizua>
How do you capture the output from stdout with Process.run()?
<
eizua>
Say, I'm trying to run 'which git'
<
RX14>
you would set output to be an IO
<
RX14>
you actually have 2 options
<
RX14>
one, just set input to be a MemoryIO
<
RX14>
i mean output sorry
<
eizua>
I'm following you
<
RX14>
two, you could set output to nil
<
RX14>
and then use process.output
<
RX14>
which will be an IO
<
RX14>
which you can read from
<
RX14>
>> Process.run("env", output:nil).output.gets_to_end
<
RX14>
>> Process.run("env", output: nil).output.gets_to_end
<
RX14>
i guess not then
<
RX14>
you need Process.new for that
<
RX14>
>> Process.new("env", output: nil).output.gets_to_end
<
RX14>
if you use new, don't forget to call wait
<
eizua>
So it's Process.new(), all right
<
eizua>
Which class is 'gets_to_end' associated with? IO?
<
eizua>
RX14, thanks.
<
eizua>
There
*are* sections which do have sample code (e.g., OptionParser). Neat.
<
eizua>
How does Crystal determine which OS it's running on? Is there a constant similar to RUBY_PLATFORM?
<
RX14>
which OS it's compiled for
<
eizua>
Probably still too early to ask for it since Crystal doesn't have Windows support yet. I'll let that one go.
<
eizua>
Already past 1am here. Thanks everyone
eizua has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
havenwood has joined #crystal-lang
havenwood has quit [Client Quit]
havenwood has joined #crystal-lang
mark_66 has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Client Quit]
johnjansen has joined #crystal-lang
<
johnjansen>
hi all, can anyone illuminate me on how to test a private method …
<
RX14>
johnjansen, a file-private method?
<
RX14>
well, the thing with private methods is that you're
*supposed* to test them by using the publically accessible interface
johnjansen has quit [Quit: johnjansen]
johnjansen has joined #crystal-lang
johnjansen has quit [Quit: johnjansen]
johnjansen has joined #crystal-lang
<
johnjansen>
haha @RX14, yeah well there is that ;-) but i’d still like to test them ;-) …
<
RX14>
your best bet is reopening the class in the spec file
<
RX14>
and basically "exporting" the method
<
johnjansen>
cant do it …
<
johnjansen>
at least my first attempt failed
<
johnjansen>
1 moment while i recreate
<
RX14>
class Class; def spec_foo(*args, **kwargs); foo(*args, **kwargs); end; end
<
johnjansen>
in ./spec/smart_class_model_spec.cr:61: can't declare class dynamically
<
RX14>
you need to do it outside of your describe block
<
RX14>
same with methods
<
johnjansen>
oh ok .. that might be the magc
<
johnjansen>
1 moment
<
RX14>
yes, because describe is a normal method call
<
RX14>
you can't define a class in a method call in a compiled langauge, that wouldn't work
<
johnjansen>
MAGIC, thanks … so please i was the culprit
<
johnjansen>
thats totally fair … i should have thought
<
RX14>
in ruby you define helper methods in your specs all over the place
<
RX14>
and if describe was a macro, that may have worked
<
RX14>
but alas, it doesn't
<
johnjansen>
haha, oh well … must say im not wanting to go back to ruby ATM, its somehow not as much fun
<
RX14>
yeah... i know the feeling
<
johnjansen>
i really hope Crystal gains the momentum it needs to stay alive and fend off the competition
<
johnjansen>
do you know of any introspection reference BTW?
<
johnjansen>
thats perfect, thanks
Ven has joined #crystal-lang
Ven has quit [Ping timeout: 250 seconds]
Ven has joined #crystal-lang
johnjansen has quit [Quit: johnjansen]
Ven_ has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
johnjansen has joined #crystal-lang
tomchapin has joined #crystal-lang
ponga has quit [Quit: Connection closed for inactivity]
johnjansen has quit [Quit: johnjansen]
Ven_ has quit [Ping timeout: 265 seconds]
Ven has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Philpax has joined #crystal-lang
Ven has quit [Client Quit]
soveran has quit [Remote host closed the connection]
johnjansen has joined #crystal-lang
johnjansen has quit [Client Quit]