jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.4 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
dhk has quit [Quit: Leaving]
<travis-ci> crystal-lang/crystal#ab070ff (master - erge branch 'release/0.18'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140676936
Philpax has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<travis-ci> crystal-lang/crystal#7a9dfaf (release/0.18 - String: add `sub` with index and range): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140677021
pawnbox has joined #crystal-lang
ome has joined #crystal-lang
pawnbox has quit [Ping timeout: 272 seconds]
bjz has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
ome has quit [Quit: Connection closed for inactivity]
snsei has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <phoffer> has anyone been having issues with travis and crystal builds? I just pushed and I’m seeing this ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5771fbae8c9263ba3010725b]
bjz has joined #crystal-lang
pawnbox has joined #crystal-lang
snsei has quit [Read error: Connection reset by peer]
snsei has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
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
ome has joined #crystal-lang
sandelius has joined #crystal-lang
zodiak has quit [Ping timeout: 244 seconds]
mark_66 has joined #crystal-lang
Philpax has quit [Ping timeout: 264 seconds]
<FromGitter> <mose> I confirm I have the same
snsei has quit [Remote host closed the connection]
<BlaXpirit> ouch
Philpax has joined #crystal-lang
bjz has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
<jhass> well thank you ancient wget
<BlaXpirit> ancient everything T_T travis pls
willl has quit [Quit: Connection closed for inactivity]
<jhass> now for a way to rewrite wget --base with curl so we don't even try to use wget anywhere anymore
Philpax has joined #crystal-lang
snsei has joined #crystal-lang
rolha has joined #crystal-lang
snsei has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<jhass> well let's hope that works https://github.com/travis-ci/travis-build/pull/764
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ome has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter> <splattael> I see HTTPS issues using the docker image: https://github.com/crystal-lang/crystal/issues/1922
<FromGitter> <splattael> the patch at https://github.com/crystal-lang/crystal/issues/1922#issuecomment-229012137 fixes my issue. can anyone reproduce this?
bjz has joined #crystal-lang
<FromGitter> <splattael> scratch that! I am sooo yesterday :-( It's already has been fixed in 0.18.5 which I did not notice.
<FromGitter> <splattael> Sorry for the noise :-(
<FromGitter> <hkochev> Hello All, I just wonder if Crystal community has bang! method convention inherited from ruby for the methods that could raise or change state
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<jhass> @hkochev mostly so. Note that Ruby core convention is pretty strict on this: if there's a bang method there's a non-bang version that returns a copy. If there isn't a bang method you can not expect a non-bang method to not modify state
<jhass> same holds true in crystal
splattael has joined #crystal-lang
<FromGitter> <hkochev> Got it, thanks
unshadow has joined #crystal-lang
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
<RX14> @hkochev: the convention is the same but I see a lot less bang methods, due to immutability being more prevalent in crystal than ruby.
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
trapped has joined #crystal-lang
<unshadow> Did anyone tried to do bindings for Krb5 or GSSAPI ?
<BlaXpirit> no
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
<unshadow> using FFI in Ruby a binding looks like this: 'attach_function :krb5_init_context, [:pointer], :uint' is it right to assume this is the way in crystal : 'fun krb5_init_context(buff : UInt8*) : UInt32' ?
<unshadow> Or should I use Pointer(UInt8) ?
<BlaXpirit> unshadow, same thing. but 'UInt8*' syntax is not always allowed
<BlaXpirit> and for futureproofing might be better to use : LibC::UInt
<BlaXpirit> all good otherwise
<unshadow> BlaXpirit: hm... I think I'm missing something as I get invalid memory errors... here is the link to the gist (Ruby and Crystal) would you mind to take a look ? https://gist.github.com/bararchy/abb0750f8bda54382211ec0f147ece15
pawnbox has quit [Remote host closed the connection]
<BlaXpirit> unshadow, yeah, your usage seems incorrect. why don't you show me docs or headers of the original library?
splattael has quit [Quit: Connection closed for inactivity]
kulelu88 has joined #crystal-lang
kulelu88 has quit [Changing host]
kulelu88 has joined #crystal-lang
<jhass> unshadow: Pointer(UInt8) does not allocate any memory
<jhass> you rather pass the metaclass as a pointer
<jhass> curious that it compiles at all
<unshadow> I called it with .null
<BlaXpirit> unshadow, I suspect this is correct https://gist.github.com/08e6161d92a398a96175d321db253f57
<jhass> yes, should be an out param
<unshadow> What's an out param ? is this a new addition ?
<BlaXpirit> no
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vodsq
<crystal-gh> crystal/master 152a1d7 Ary Borenszweig: Merge branch 'release/0.18'
sandelius has quit [Read error: Connection reset by peer]
<BlaXpirit> unshadow, here's an improved version of that and some explanation of out params https://gist.github.com/BlaXpirit/08e6161d92a398a96175d321db253f57
<crystal-gh> [crystal] asterite closed pull request #2897: Docker: Preinstall `make` in docker image (master...dockerfile-make) https://git.io/vo1CU
<unshadow> BlaXpirit: I see, very neat way to do that, Thanks for the example + explanation
pawnbox has joined #crystal-lang
itsmeduncan has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
<travis-ci> crystal-lang/crystal#152a1d7 (master - Merge branch 'release/0.18'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140796617
paulcsmith_ has joined #crystal-lang
paulcsmith_ has quit [Client Quit]
Philpax has quit [Ping timeout: 246 seconds]
snsei has joined #crystal-lang
pawnbox has joined #crystal-lang
snsei has quit [Ping timeout: 244 seconds]
zodiak has joined #crystal-lang
paulcsmith_ has joined #crystal-lang
dhk has joined #crystal-lang
dhk has quit [Client Quit]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vodRm
<crystal-gh> crystal/master 089dd53 Ary Borenszweig: Merge branch 'release/0.18'
pawnbox has quit [Ping timeout: 240 seconds]
kulelu88 has quit [Quit: Leaving]
<crystal-gh> [crystal] bcardiff pushed 1 new commit to master: https://git.io/vodEM
<crystal-gh> crystal/master f4bf0d8 Brian J. Cardiff: add travis doc deploy to s3 on master branch
<jhass> nice
<jhass> mh, doesn't it do it four times now though?
itsmeduncan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
itsmeduncan has joined #crystal-lang
unshadow has quit [Quit: leaving]
<travis-ci> crystal-lang/crystal#7d08afc (release/0.18 - Fixed #2925: formatter bug with `&.as`): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140815281
itsmeduncan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vod2d
<crystal-gh> crystal/master 891653c Ary Borenszweig: Merge branch 'release/0.18'
itsmeduncan has joined #crystal-lang
snsei has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox_ has joined #crystal-lang
<travis-ci> crystal-lang/crystal#089dd53 (master - Merge branch 'release/0.18'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140815286
kulelu88 has joined #crystal-lang
kulelu88 has joined #crystal-lang
<crystal-gh> [crystal] bcardiff pushed 1 new commit to master: https://git.io/vodoK
<crystal-gh> crystal/master 5787ded Brian J. Cardiff: deploy docs on just one job...
Oliphaunte has joined #crystal-lang
<travis-ci> crystal-lang/crystal#f4bf0d8 (master - add travis doc deploy to s3 on master branch): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140818957
mark_66 has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#891653c (master - Merge branch 'release/0.18'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140824845
<travis-ci> crystal-lang/crystal#204bfd0 (release/0.18 - Updated Changelog): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140824877
elomatreb has quit [Max SendQ exceeded]
elomatreb has joined #crystal-lang
itsmedun_ has joined #crystal-lang
itsmeduncan has quit [Read error: Connection reset by peer]
kulelu88 has quit [Quit: Leaving]
paulcsmith_ has quit [Read error: Connection reset by peer]
paulcsmi_ has joined #crystal-lang
<travis-ci> crystal-lang/crystal#5787ded (master - deploy docs on just one job): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140831693
tomchapin has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Guest61380 has quit [Quit: mIRC 5.91 (16 bit) for Microsoft © Windows For WorkGroups 3.11®]
jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.6 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
<jhass> >> :ping
<DeBot> jhass: # => :ping - https://carc.in/#/r/12ot
<RX14> we 18.6 now?
<RX14> thats high
Oliphaunte has joined #crystal-lang
itsmedun_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> RX14: well, technically 18.3 :P
<jhass> asterite: around?
<crystal-gh> [crystal] bcardiff pushed 1 new commit to master: https://git.io/voFeM
<crystal-gh> crystal/master 572d217 Brian J. Cardiff: automatic publish docs as latest for tagged deploys
<asterite> jhass: yup
<FromGitter> <vendethiel> \o
<jhass> asterite: I think you (or well, waj) forgot to push the updated setup scripts to dist.
<asterite> vendethiel o/
<FromGitter> <vendethiel> so that works :-)
snsei has quit [Remote host closed the connection]
<jhass> asterite: could you get that fixed? can't update the docker images otherwise
<asterite> waj says it's changed in omnibus
<asterite> I forgot to pull when doing the release
<asterite> I'm syncing the repos now
<asterite> done!
<jhass> <3
<asterite> would that fix it?
<jhass> I mean technically they should've already been pushed with switching to HTTPS :P
<jhass> yes looks better, thanks
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
itsmeduncan has joined #crystal-lang
itsmeduncan has quit [Client Quit]
<crystal-gh> [crystal] bcardiff pushed 1 new commit to master: https://git.io/voFki
<crystal-gh> crystal/master 60fec38 Brian J. Cardiff: ammend commit 572d217
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
Oliphaunte has quit [Remote host closed the connection]
<FromGitter> <bcardiff> jhass are you around?
<jhass> yup
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
Oliphaunte has joined #crystal-lang
<FromGitter> <bcardiff> Regarding [ ], thanks. Yet it seems i will move the tagged deploys to a custom script since travis is ignoring it is doing the build over a tagged commit
<FromGitter> <bcardiff> (and the update of the s3 object to perform a redirect can't be done on the travis deployment s3 provider)
<travis-ci> crystal-lang/crystal#572d217 (master - automatic publish docs as latest for tagged deploys): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140866389
<FromGitter> <bcardiff> I will end up with a CURRENT_TAG=`git describe --tags --exact-match 2> /dev/null` and see if i can get the tag.
<FromGitter> <bcardiff> Any issue / input with that?
<jhass> bcardiff: I think the cleanest approach is indeed adding another job for it, that then can also bail before doing any work on $TRAVIS_PULL_REQUEST set. bin/deploy sounds good to me, you should be able to call bin/ci within it to build the docs
<jhass> and you can install the awscli tool within it
<jhass> bcardiff: or actually I wouldn't even mind adding it as command to bin/ci
<FromGitter> <bcardiff> I understand that another job should be indeed adding one more entry to the matrix with a variable that will scope the script to run in order to just do make docs && deploy.
<FromGitter> <bcardiff> Is that what you mean? because otherwise by job you mean just a script to be executed after the current ci script
<jhass> yes, the former
<FromGitter> <bcardiff> in that case I think is better to use after_success script in travis for all docs deployment. should be 10 bash lines (after I get them right :-$) and skip unless master or tag. will be easier to customize
willl has joined #crystal-lang
<jhass> I'll hack up my approach for your judgement anyway ;)
paulcsmi_ has quit [Read error: Connection reset by peer]
paulcsmith_ has joined #crystal-lang
<FromGitter> <bcardiff> or at least my abilities ;-) I will push one more try for tagged commits as I said.
<FromGitter> <bcardiff> I trust you have strong and good opinions to organize this better, but I don't want to force you do it.
<crystal-gh> [crystal] bcardiff pushed 1 new commit to master: https://git.io/voFZ2
<crystal-gh> crystal/master 23a1c5a Brian J. Cardiff: doc deploy of tagged commits moved to after_success script
<jhass> bcardiff: https://p.jhass.eu/3u.diff would be my proposal roughly, of course I didn't test any of this, might not need/want some of the eval's, I don't remember
<jhass> afk for 15 minutes or so
trapped has quit [Read error: Connection reset by peer]
<RX14> jhass, i wish people created nice test suites I could streal for things like multipart
<jhass> haha
<jhass> mmh, checked rack or actionpack?
<travis-ci> crystal-lang/crystal#60fec38 (master - ammend commit 572d217): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140876295
<RX14> jhass, i prefer protocol test suites to be langauge-agnostic
<jhass> well sure, but better than nothing right?
<jhass> usually you kind at least find some edge cases discovered in implementation testsuites
<jhass> eh
<jhass> *you can
<RX14> yeah
<RX14> i found some node parsers
<RX14> but their test suite is wacky
spiderpug has joined #crystal-lang
<spiderpug> hey, I'm using Kemal to provide a Websocket endpoint. Any chance to get to remote client IP when he connects?
<RX14> spiderpug, nope, not currently
<spiderpug> HTTP::WebSocket does not seem to expose the IO object right?
<RX14> spiderpug, you could probably do this amazing hack
<RX14> websocket.@ws.@io
<RX14> websocket.@ws.@io.as(TCPSocket).remote_address
<spiderpug> oh… thanks. my next question was if there is an equivalent to ruby's instance_variable_get ;-)
<RX14> thats a horrible hack by the way
<asterite> we need to somehow fix it: https://github.com/crystal-lang/crystal/issues/453
<asterite> (it's for http request, but it's applicable to anything http-related)
<spiderpug> new to crystal ^.^ already looks hacky enough to me
<RX14> spiderpug, well yes variable.@instancevar is meant to be a secret ;)
<jhass> asterite: btw I think @call would make instance_variable_get possible :P
<spiderpug> perfectly working secret!
<RX14> jhass, @call?
<jhass> just some idea I had in some random issue
<jhass> def instance_variable_get(_); {{"@#{@call.args.first.id}".id}} end
<RX14> heh
<RX14> i prefer the var.@var syntax if you're going to have instance_variable_get
<jhass> it would still only work for literal arguments anyway
<travis-ci> crystal-lang/crystal#23a1c5a (master - doc deploy of tagged commits moved to after_success script): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/140892132
<jhass> >> Crystal::VERSION
<DeBot> jhass: # => "0.18.6" - https://carc.in/#/r/12ow
<BlaXpirit> \o/
onionhammer has quit [Ping timeout: 246 seconds]
<jhass> asterite: bcardiff: btw still happy to help out reviewing & merging doc updates or type fixes on the website and such, just saying ;)
<jhass> bcardiff: can we delete the test tags again? They mess up the version of the crystal-git package :P
Raimondii has joined #crystal-lang
maxpowa has quit [Ping timeout: 250 seconds]
Raimondi has quit [Ping timeout: 240 seconds]
maxpowa has joined #crystal-lang
Raimondii is now known as Raimondi
<FromGitter> <bcardiff> done
pawnbox_ has quit [Remote host closed the connection]
<jhass> <3
<FromGitter> <deepj> Hello, I’m trying to run Kemal app on Heroku but I’m getting this
<FromGitter> <deepj> Counting objects: 15, done. ⏎ Delta compression using up to 4 threads. ⏎ Compressing objects: 100% (11/11), done. ⏎ Writing objects: 100% (15/15), 199.91 KiB | 0 bytes/s, done. ⏎ Total 15 (delta 0), reused 0 (delta 0) ... [https://gitter.im/crystal-lang/crystal?at=5772eb5c265214c13091f6f2]
<FromGitter> <deepj> What’s a bit strange. Any thoughs?
<FromGitter> <cjgajard> ** remote: Outdated shard.lock (kemal requirements changed). Please run shards update instead. ** ⏎ your project shards (kemal) never got installed...
<jhass> well, did you run shards update locally and commit that?
pawnbox has joined #crystal-lang
<FromGitter> <deepj> @jhass I found the problem. I mistakely defined version of Kemal in `shards.yml` as `branch: v0.13.0` instead of `version: 0.13.0`. Interesting, there was no problem with that on local
<jhass> btw, time to delete gh-pages ?
datanoise has joined #crystal-lang
datanoise has quit [Client Quit]
datanoise has joined #crystal-lang
phoffer has joined #crystal-lang
<maxpowa> anyone else having issues with crystal-lang.org/api pages?
<maxpowa> I'm getting 404s on pages like https://crystal-lang.org/api/String.html
<BlaXpirit> maxpowa, where did you find a link to https://crystal-lang.org/api/String.html ? these seem to be not valid anymore
<maxpowa> google.
<maxpowa> they were working just yesterday
<BlaXpirit> ouch, that's gonna hurt
<BlaXpirit> maxpowa, go to https://crystal-lang.org/api/ and move from there
<FromGitter> <bcardiff> we moved to /api/{version} /api/master
<maxpowa> oh now they have the version in the URL
<maxpowa> it should default to the main version
<BlaXpirit> it should
<FromGitter> <bcardiff> /api has a redirect to /api/{latest-tag}
<BlaXpirit> bcardiff, that should not be a permanent redirect probably
<BlaXpirit> and /api/* might be nice to redirect, not just the root
<maxpowa> just add another for /api/([^/]+.html) to /api/{latest-tag}/{1} assuming you can do regex
<maxpowa> * might be problematic
<BlaXpirit> it's dangerous to play with these things, SEO will suffer :(
<maxpowa> with looping redirects and stuff
phoffer has quit [Client Quit]
<maxpowa> you're already fighting with companies that sell crystal strings lol
<BlaXpirit> bcardiff, but seriously, crystal api documentation is not permanently moving to /api/0.18.6/. that's exactly how you get google to show old links to everything
<BlaXpirit> in fact, it is a dangerous idea overall to have versioned links at all
<BlaXpirit> nah, I'm overstating it
<FromGitter> <bcardiff> I am not sure if regex will work, the backend is s3. I will need to check some s3 things (and now I am over a really bad 3g...)
<BlaXpirit> another idea I just had - the link should probably be just 0.18. each point release would just update the 0.18 pages. the changes to docs are supposed to be very minor
Oliphaunte has quit [Remote host closed the connection]
<BlaXpirit> and I just noticed that /api temporarily-> /api/ permanently-> /api/0.18.6
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/voFST
<crystal-gh> crystal/master f02b85a Jonne Haß: update Contributing.md for the repo split [ci skip]
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spiderpug has quit [Quit: Leaving.]
Philpax has joined #crystal-lang
<FromGitter> <jwaldrip> @bcardiff do you know if @ysbaddaden still maintains the crystal shards site/
Philpax has quit [Ping timeout: 246 seconds]
rolha has quit [Ping timeout: 260 seconds]
<FromGitter> <bcardiff> I don't have other info than his public profile @jwaldrip
A124 has quit [Quit: '']
Philpax has joined #crystal-lang
<maxpowa> Also, all the links to the api pages from the docs are broken
A124 has joined #crystal-lang
<maxpowa> ex: the array link right at the top of https://crystal-lang.org/docs/syntax_and_semantics/literals/array.html
rolha has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]