jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.10.0 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
pawnbox has joined #crystal-lang
<jhass> from a quick look I see no public API for it
pawnbox has quit [Ping timeout: 240 seconds]
<codingcan> and how can i pass it to my object? thanks
<jhass> you can't
<jhass> it's private
<codingcan> Thank you.
Regexident has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
Philpax_ has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
CompanionCube has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
pawnbox has joined #crystal-lang
waterlin1 has joined #crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
waterlink has quit [Ping timeout: 246 seconds]
codingcan has quit [Remote host closed the connection]
A124 has quit [Read error: Connection reset by peer]
A124 has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
Philpax_ has quit [Ping timeout: 256 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 256 seconds]
pawnbox has joined #crystal-lang
AckZ has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
Raimondi has quit [Quit: The road to wisdom?—Well, it's plain and simple to express: Err and err and err again, but less and less and less. — Piet Hein]
tomchapin has joined #crystal-lang
waterlin1 has quit [Ping timeout: 256 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rkeene> Attempting to build a Crystal 0.10 compiler from source did not produce a working Crystal compiler -- it complains about not having libpcl when I try to compile something with the newly compiled compiler
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 256 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit []
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
globalkeith has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
globalkeith has joined #crystal-lang
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
globalkeith has joined #crystal-lang
Philpax_ has joined #crystal-lang
luislavena has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
pawnbox has joined #crystal-lang
A124 has quit [Read error: No route to host]
A124 has joined #crystal-lang
Philpax_ has quit [Ping timeout: 256 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #crystal-lang
Raimondi has joined #crystal-lang
<rkeene> Also, FWIW, I have distributed Crystal using my AppFS universal package management system ( http://appfs.rkeene.org/ )
<BlaXpirit> k lol
osiutino_ has joined #crystal-lang
olek_poz has joined #crystal-lang
<jfontan> rkeene, nice to see you in this channel
<rkeene> jfontan :-)
<rkeene> I learned me a Crystal over the weekend
<jfontan> I've also been trying it these holidays
osiutino_ has quit [Quit: Ex-Chat]
CompanionCube has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
dfdfdf has joined #crystal-lang
jokke is now known as kuyatzu
kuyatzu is now known as jokke
jokke is now known as kuyatzu
kuyatzu is now known as jokke
endou has quit [Ping timeout: 260 seconds]
jokke is now known as kuyatzu
shama has joined #crystal-lang
kuyatzu is now known as jokke
endou has joined #crystal-lang
praveen has joined #crystal-lang
<praveen> hi
<praveen> I have a question...
<praveen> is there any way to mock a class method ?
praveen has quit [Remote host closed the connection]
praveen has joined #crystal-lang
<jhass> praveen: I don't see one without DPI'ing the class
<pawnbox> Isn't there a mocking lib for that.
<pawnbox> ?
<jhass> there's mock.cr, no idea if it supports that
<praveen> I tried mock.cr but supports only stubbing not mocking.
<pawnbox> There also mocks.cr by waterlink. It didn't work for me.
<pawnbox> jhass: Is there something similar to StandardError in Ruby/
<jhass> no
<pawnbox> *in crystal
<jhass> Exception is the base class, I don't think we have any category classes (yet)
<pawnbox> Aha ok.
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<robacarp> I would <3 a bunch of standard exceptions...my least favorite thing about exceptions is when everyone invents their own
<pawnbox> Do you guys have seen the problem with libs fetched by outdated shards.yml not getting removed?
<pawnbox> jhass: ^^
<BlaXpirit> robacarp, yeah, semantic things like this are very often overlooked in crystal ;/
<crystal-gh> [crystal] asterite closed pull request #1987: Fix OpenSSL::DigestBase#update(IO) (master...digest_update_io) http://git.io/vukbR
globalkeith has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #1985: String small refactors and documentation (master...string-things) http://git.io/vEFpR
waterlink has joined #crystal-lang
<travis-ci> manastech/crystal#096f196 (master - Merge pull request #1987 from jhass/digest_update_io): The build passed. https://travis-ci.org/manastech/crystal/builds/100172971
<DeBot> https://github.com/manastech/crystal/pull/1987 (Fix OpenSSL::DigestBase#update(IO))
<travis-ci> manastech/crystal#8aa3e91 (master - Merge pull request #1985 from will/string-things): The build has errored. https://travis-ci.org/manastech/crystal/builds/100173559
<DeBot> https://github.com/manastech/crystal/pull/1985 (String small refactors and documentation)
<travis-ci> manastech/crystal#8aa3e91 (master - Merge pull request #1985 from will/string-things): The build passed. https://travis-ci.org/manastech/crystal/builds/100173559
<DeBot> https://github.com/manastech/crystal/pull/1985 (String small refactors and documentation)
praveen has quit [Remote host closed the connection]
praveen has joined #crystal-lang
praveen has quit [Ping timeout: 264 seconds]
<crystal-gh> [crystal] asterite pushed 3 new commits to master: http://git.io/vucV0
<crystal-gh> crystal/master f6b0ffa rhysd: Fix here document...
<crystal-gh> crystal/master 217ad9d rhysd: Test heredoc on parse phase
<crystal-gh> crystal/master e21aed0 Ary Borenszweig: Merge pull request #1992 from rhysd/fix-heredoc...
<travis-ci> manastech/crystal#e21aed0 (master - Merge pull request #1992 from rhysd/fix-heredoc): The build passed. https://travis-ci.org/manastech/crystal/builds/100185649
luislavena has quit [Quit: Leaving]
fowlduck has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
fowlduck has quit [Client Quit]
sdogruyol has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
<crystal-gh> [crystal] will opened pull request #1994: String: remove "chomp all" behavior (master...removechompall) http://git.io/vuCTl
<sdogruyol> i really wonder why IO.pipe { |r, w| r.gets.should match(/bla/) } blocks whole test suite
<sdogruyol> how do i make it stop waiting for more input
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vuCIS
<crystal-gh> crystal/master 0d69ba6 Ary Borenszweig: Fixed #1990: Segmentation fault from BigInt comparison with float
jhass is now known as jazz
jazz is now known as Guest92640
<vifino> EOF maybe?
Guest92640 is now known as jhass
<sdogruyol> vifino: what do you mean?
<asterite> gets has no input, so the runtime will schedule some other fiber to execute... but if there's no other fiber, the program blocks
<vifino> sdogruyol: ctrl-D should send EOF, basically saying that there is no more text. Normally it should stop reading or produce an error.
pawnbox has quit [Ping timeout: 272 seconds]
<sdogruyol> asterite: okay i get that. How do i make that fiber free so that the execution continues
<asterite> spawn { IO.pipe { ... } }
<sdogruyol> asterite: oh is it possible to use spawn like that in a spec?
<asterite> unless I'm misunderstanding something
<asterite> Do you send something to `w` at some point? Otherwise that fiber will block forever
<sdogruyol> asterite: no i'm just using r. Actually spawn worked :)
<asterite> Mmm... but the "should" part in your example will never trigger, I don't know what's your test testing
<sdogruyol> asterite: i'm not sure if i'm doing this right but i'm trying to test if it's logging out to read https://gist.github.com/sdogruyol/e9bbc3251aea52351415
<asterite> The logger is connected to STDOUT?
<sdogruyol> asterite: yeah
<asterite> That won't work
<asterite> but I don't know how to test it... I'm sure you can, I just don't know much about IO, reopen, pipes, etc.
<sdogruyol> okay thanks for the answer
<sdogruyol> i'll try to find a way :)
<travis-ci> manastech/crystal#0d69ba6 (master - Fixed #1990: Segmentation fault from BigInt comparison with float): The build passed. https://travis-ci.org/manastech/crystal/builds/100200350
<DeBot> https://github.com/manastech/crystal/issues/1990 (Segmentation fault from BigInt comparison with float)
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
praveen has joined #crystal-lang
praveen has quit [Ping timeout: 245 seconds]
sdogruyol has quit []
pawnbox has joined #crystal-lang
hohenfall has left #crystal-lang ["WeeChat 1.3"]
pawnbox has quit [Ping timeout: 260 seconds]
praveen has joined #crystal-lang
praveen has quit [Ping timeout: 240 seconds]
praveen has joined #crystal-lang
jokke has quit [Quit: WeeChat 1.3]
praveen has quit [Ping timeout: 245 seconds]
jokke has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 245 seconds]
jokke is now known as kuyatzu
kuyatzu is now known as jokke
jokke is now known as kuyatzu
olek_poz has quit [Ping timeout: 246 seconds]
kuyatzu is now known as jokke
praveen has joined #crystal-lang
praveen has quit [Ping timeout: 276 seconds]
<dfdfdf> why does kemal give error, when i try use dynamic views
<dfdfdf> in views/hello.ecr:1: undefined local variable or method 'env'
dfdfdf is now known as azzgil
trapped has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 272 seconds]