00:00
pawnbox has joined #crystal-lang
00:05
pawnbox has quit [Ping timeout: 250 seconds]
00:35
<
crystal-gh >
crystal/master 8014c49 Ary Borenszweig: Better error message for #2953
00:35
<
crystal-gh >
crystal/master 599d68a Ary Borenszweig: Fixed #2178: %s bug in macros
00:36
pawnbox has joined #crystal-lang
00:41
pawnbox has quit [Ping timeout: 276 seconds]
01:13
ozra has joined #crystal-lang
02:30
Philpax has joined #crystal-lang
02:52
snsei has joined #crystal-lang
03:06
pawnbox has joined #crystal-lang
03:08
snsei has quit [Remote host closed the connection]
03:09
snsei has joined #crystal-lang
03:11
pawnbox has quit [Ping timeout: 258 seconds]
03:39
snsei_ has joined #crystal-lang
03:43
snsei has quit [Ping timeout: 252 seconds]
03:49
mbarbar has joined #crystal-lang
04:19
pawnbox has joined #crystal-lang
04:19
snsei has joined #crystal-lang
04:21
snsei__ has joined #crystal-lang
04:21
snsei__ has quit [Remote host closed the connection]
04:23
snsei_ has quit [Ping timeout: 252 seconds]
04:24
pawnbox has quit [Ping timeout: 258 seconds]
04:24
snsei has quit [Ping timeout: 250 seconds]
04:49
ome has joined #crystal-lang
05:06
pawnbox has joined #crystal-lang
05:10
matp has quit [Remote host closed the connection]
05:17
matp has joined #crystal-lang
05:42
ozra has quit [Ping timeout: 240 seconds]
06:36
mbarbar has quit [Ping timeout: 276 seconds]
07:25
<
BlaXpirit >
wait a second, that seems totally broken
08:09
ome has quit [Quit: Connection closed for inactivity]
08:30
soveran has joined #crystal-lang
08:30
soveran has quit [Changing host]
08:30
soveran has joined #crystal-lang
08:43
soveran has quit [Remote host closed the connection]
09:29
pawnbox has quit [Ping timeout: 276 seconds]
09:33
pawnbox has joined #crystal-lang
09:43
pawnbox has quit [Ping timeout: 240 seconds]
09:53
pawnbox has joined #crystal-lang
10:10
<
FromGitter >
<sdogruyol> hey all
10:19
Raimondii has joined #crystal-lang
10:19
soveran has joined #crystal-lang
10:19
soveran has quit [Changing host]
10:19
soveran has joined #crystal-lang
10:22
Raimondi has quit [Ping timeout: 240 seconds]
10:22
Raimondii is now known as Raimondi
10:24
<
FromGitter >
<sdogruyol> mose: how are you?
10:26
<
mose >
quite well sendar, but a bit sad to hear that crystal doesn't handle multipart / file upload
10:26
<
FromGitter >
<sdogruyol> i think it's gonna be there for 0.19.0 :)
10:27
<
mose >
lovely corner this one is!
10:27
<
FromGitter >
<sdogruyol> and it seems really performant
10:27
<
mose >
like crystal used us to be :)
10:28
<
FromGitter >
<sdogruyol> hehe yeah
10:28
<
FromGitter >
<sdogruyol> i'm waiting for this to be merged into 0.19.0 and then i'm gonna add it into Kemal
10:28
<
FromGitter >
<sdogruyol> file upload is necessary for any web app
10:28
<
mose >
well, it's expected to be available at leat
10:28
<
FromGitter >
<sdogruyol> and this also gives us the ability to write email / smtp stuff
10:29
<
mose >
ah yes indeed
10:29
<
mose >
big step forward
10:29
<
FromGitter >
<sdogruyol> yeah, we need to thank @RX14 for this :P
10:30
<
mose >
RX14 you are our hero!
10:30
<
FromGitter >
<sdogruyol> i think he did an exceptionally well job
10:38
akwiatkowski has joined #crystal-lang
10:39
<
FromGitter >
<sdogruyol> now we need someone to write a email / smtp library :P
10:43
<
mose >
yeah great candidate for doing some porting over :)
10:49
* mose
just received crystal weekly and is thankful for this publication
10:50
<
FromGitter >
<sdogruyol> thank you :)
10:56
<
mose >
btw do you know if the travis issue was fixed?
10:56
<
FromGitter >
<sdogruyol> it's fixed
10:56
<
FromGitter >
<sdogruyol> Kemal specs are passing
10:56
<
mose >
gonna need to verify if my app works with kemal 0.14 :)
10:56
<
FromGitter >
<sdogruyol> it should work :)
10:57
<
FromGitter >
<sdogruyol> session and csrf support added so no breaking changes
10:57
<
FromGitter >
<sdogruyol> :P
10:57
<
mose >
that 0.14 fixes things that I added to my app my myself
10:57
<
FromGitter >
<sdogruyol> like what?
10:57
<
mose >
like session handling and config vars
10:57
<
FromGitter >
<sdogruyol> oh really? that's great to hear
10:58
<
mose >
but my config thing is special
10:58
<
mose >
I wanted a config I could override with ENV
10:58
<
FromGitter >
<sdogruyol> then KEMAL_ENV would definitely work for you, right?
10:59
<
mose >
certainly but I wanted more vars configurable via ENV
10:59
<
FromGitter >
<sdogruyol> i see
11:00
<
mose >
I love when I can remove code to my repo haha
11:00
<
FromGitter >
<sdogruyol> haha yeah :)
11:00
<
FromGitter >
<sdogruyol> for now Kemal has in-memory session store
11:00
<
FromGitter >
<sdogruyol> pretty simple to use
11:00
<
FromGitter >
<sdogruyol> thanks to @mperham
11:01
<
mose >
yeah mine was that way too
11:01
<
FromGitter >
<sdogruyol> i need to update the documentation of website
11:06
soveran has quit [Remote host closed the connection]
11:09
<
FromGitter >
<sdogruyol> ouch
11:09
<
mose >
doesn't seem to hurt though
11:09
<
FromGitter >
<sdogruyol> yeah, nice catch though
11:09
<
FromGitter >
<sdogruyol> thanks
11:29
onionhammer has quit [Ping timeout: 250 seconds]
12:06
soveran has joined #crystal-lang
12:06
soveran has quit [Changing host]
12:06
soveran has joined #crystal-lang
12:07
pawnbox has quit [Remote host closed the connection]
12:11
soveran has quit [Ping timeout: 244 seconds]
12:13
trapped has joined #crystal-lang
12:13
soveran has joined #crystal-lang
13:22
willl has joined #crystal-lang
13:50
pawnbox has joined #crystal-lang
13:51
Raimondii has joined #crystal-lang
13:54
Raimondi has quit [Ping timeout: 240 seconds]
13:55
pawnbox has quit [Ping timeout: 260 seconds]
13:57
<
RX14 >
hmmn my PR still hasnt really been triaged
14:02
Raimondii is now known as Raimondi
14:07
<
FromGitter >
<sdogruyol> it seems pretty OK
14:18
<
RX14 >
yeah well i woldn't mind asterite's opinion on the PR, seeming as he's the main contributor
14:19
Oliphaunte has joined #crystal-lang
14:22
<
RX14 >
i mean its been 2 days and not even tagged
14:26
trapped has quit [Read error: Connection reset by peer]
14:27
jeromegn has quit [Ping timeout: 272 seconds]
14:29
jeromegn has joined #crystal-lang
14:34
pawnbox has joined #crystal-lang
14:38
pawnbox has quit [Ping timeout: 244 seconds]
14:50
Oliphaunte has quit [Remote host closed the connection]
14:50
ozra has joined #crystal-lang
14:51
<
FromGitter >
<sdogruyol> well i'm pretty sure that they're busy with something else
14:51
<
FromGitter >
<sdogruyol> or you can ping them yourself
14:59
ozra has quit [Remote host closed the connection]
15:04
Oliphaunte has joined #crystal-lang
15:09
onionhammer has joined #crystal-lang
15:17
pawnbox has joined #crystal-lang
15:24
Philpax has quit [Ping timeout: 252 seconds]
15:26
<
crystal-gh >
[crystal] RX14 opened pull request #2971: Fix bin/crystal in the case of stdout (master...fix-bin/crystal)
https://git.io/vKsyX
15:30
Oliphaunte has quit [Remote host closed the connection]
15:39
<
RX14 >
looks like travis is having a hiccup
15:39
<
RX14 >
their number of active jobs has suddenly massively decreased
15:42
snsei has joined #crystal-lang
15:42
snsei has quit [Remote host closed the connection]
15:43
snsei has joined #crystal-lang
15:53
<
FromGitter >
<sdogruyol> having a tough time with ecr..
15:53
<
FromGitter >
<sdogruyol> i'm trying to achieve something like content_for / yield_content like stuff
15:54
<
RX14 >
i'm not quite sure what you mean
15:55
<
FromGitter >
<sdogruyol> a placeholder for the layout which can be modified by a subview
15:55
<
RX14 >
what are you finding hard?
15:56
<
FromGitter >
<sdogruyol> think of something like you want to specify some custom js, css e.g for a specific subview but you dont want to have it in all views
15:56
<
RX14 >
capture the block, store it in a map againt the name then call the block when yield_content is called
15:56
<
FromGitter >
<sdogruyol> yeah that's exactly what i am doing
15:58
<
RX14 >
why is that a problem?
15:58
<
RX14 >
you want to compile it in?
15:58
<
FromGitter >
<sdogruyol> you can pull and run the specs if you want.. actually it's ecr which forces to return an io
15:59
<
RX14 >
oh uhh yeah the io stuff is an issue
15:59
pawnbox has quit [Remote host closed the connection]
15:59
<
FromGitter >
<sdogruyol> when i capture the block
15:59
<
RX14 >
you can choose the io name right
16:00
<
FromGitter >
<sdogruyol> it captures the io which the view is hold on and then tries to return that io with the captured block
16:00
<
FromGitter >
<sdogruyol> yeah guess so
16:00
pawnbox has joined #crystal-lang
16:00
<
FromGitter >
<sdogruyol> even though i just want to capture the content inside.. not the io
16:00
<
RX14 >
if you make the content_from a macro, you can create an io of the same name
16:00
<
RX14 >
and then you recieve the data in that io when the block is run
16:00
<
FromGitter >
<sdogruyol> hmm
16:01
<
FromGitter >
<sdogruyol> well actually i dont want to get a handle of that io i just wanna get the content of the block :P
16:01
<
RX14 >
then define the proc as taking the current io
16:02
<
RX14 >
that is the way you would get the content of the block
16:02
<
RX14 >
by overriding the io
16:02
<
FromGitter >
<sdogruyol> i even tried creating a temporary io though
16:02
<
RX14 >
did it have the right name?
16:03
<
FromGitter >
<sdogruyol> no just a new MemoryIO
16:03
<
RX14 >
yeah well do you know what the code ecr generates looks like?
16:04
<
FromGitter >
<sdogruyol> <html>Hello Kemal\n\n</html>\n\n#<String::Builder:0x10b9afde0>"
16:04
<
FromGitter >
<sdogruyol> i want to get the content of the String::Builder though :P
16:04
<
RX14 >
no, the code the ecr macro generates
16:04
<
RX14 >
it generates crystal code which writes directly to the IO
16:05
<
RX14 >
if you can shadow the io variable in a block you can capture the generated code in that block
16:05
<
RX14 >
and kemal controlls the name of the io
16:05
<
RX14 >
so you can do that
16:10
<
FromGitter >
<sdogruyol> it's weird
16:10
<
RX14 >
let me program up what I eman
16:13
<
FromGitter >
<sdogruyol> sure
16:15
<
FromGitter >
<sdogruyol> and also i'm dependent on Kilt
16:17
<
RX14 >
this works, i've tested it
16:18
<
RX14 >
just updated it to remove something redundant
16:18
<
RX14 >
the question is how you want this to work
16:18
<
RX14 >
i find it weird that the blocks are in the same file as the templates
16:20
<
RX14 >
it makes it so that you need to call the template that the blocks reside in before they are used
16:22
pawnbox has quit [Remote host closed the connection]
16:22
pawnbox has joined #crystal-lang
16:34
<
FromGitter >
<alex-lairan> Hi here ! How I can change the output color on an `puts` instruction? Thank a lot ! :)
16:36
soveran has quit [Remote host closed the connection]
16:37
soveran has joined #crystal-lang
16:39
<
BlaXpirit >
alex-lairan, I sent a link to API docs, you were looking at introductory documentation
16:39
<
FromGitter >
<sdogruyol> RX14 thank you let me check it
16:40
<
FromGitter >
<alex-lairan> Ok :) If I search on the bad place I cannot go far away :D
16:40
<
FromGitter >
<alex-lairan> Thank you for this quick help
16:41
<
RX14 >
yeah, the docs are split into book-style docs about the langauge, and api docs for the stdlib
16:42
<
FromGitter >
<sdogruyol> RX14: read before definition of '__blocks__'
16:42
<
FromGitter >
<sdogruyol> trying to call it from render macro
16:43
<
RX14 >
__blocks__ needs to bet into the local scope somehow
16:43
<
FromGitter >
<sdogruyol> yeah
16:43
<
RX14 >
i have no idea how to architect that
16:43
<
FromGitter >
<sdogruyol> let's make it a CONSTANT
16:43
<
RX14 >
it really depends on how you want the behaviour to be
16:43
<
RX14 >
whether all blocks are globally visible or is it a per-file thing?
16:44
snsei_ has joined #crystal-lang
16:44
<
FromGitter >
<sdogruyol> yay, actually making it a CONSTANT worked :P
16:44
<
FromGitter >
<sdogruyol> thanks
16:45
<
RX14 >
its not the cleanest solution...
16:45
<
FromGitter >
<sdogruyol> yeah
16:45
<
FromGitter >
<sdogruyol> hacky
16:45
<
RX14 >
i think there are better ways of solving the whole prblem
16:46
<
RX14 >
you have an ecr file containing part definitions like these
16:46
snsei has quit [Ping timeout: 250 seconds]
16:46
<
RX14 >
and you load in kemal
16:46
<
FromGitter >
<sdogruyol> yeah
16:46
<
RX14 >
then you can use those functions by anme anywhere
16:46
<
RX14 >
and it makes it easier
16:46
<
RX14 >
because you only run that file once - on statup
16:47
<
RX14 >
which registers the blocks using macros
16:47
<
FromGitter >
<sdogruyol> yeah
16:47
<
RX14 >
then the macro in templates becomes a normal function
16:47
<
RX14 >
thats how I would do it
16:47
snsei_ has quit [Remote host closed the connection]
16:47
<
FromGitter >
<sdogruyol> well i'm not following you that much actually
16:48
<
RX14 >
i mean just seperating the content_for bloks into a seperate file basically
16:48
snsei has joined #crystal-lang
16:48
soveran has quit [Remote host closed the connection]
16:48
<
FromGitter >
<sdogruyol> well
16:48
<
FromGitter >
<sdogruyol> i'd like to have the same behaviour as Sinatra / Rails
16:49
<
RX14 >
well, what scope do content_for blocks exist in with sinatra?
16:49
<
RX14 >
is it per-file?
16:49
<
FromGitter >
<sdogruyol> probably but not sure
16:49
<
FromGitter >
<sdogruyol> let me check the source
16:50
<
RX14 >
if you try and use yield_content before content_for, what happens?
16:50
<
FromGitter >
<sdogruyol> ughh
16:50
<
FromGitter >
<sdogruyol> dunno :D
16:51
<
RX14 >
yeah i found it
16:51
<
FromGitter >
<sdogruyol> looks pretty cool
16:51
<
FromGitter >
<sdogruyol> they handle the case you mentioned
16:52
<
RX14 >
looks like the blocks are global
16:52
<
FromGitter >
<sdogruyol> yeah, seems the same
16:53
<
RX14 >
depends where heper is included
16:57
<
FromGitter >
<sdogruyol> and yeah travis is really slow atm
16:57
<
FromGitter >
<sdogruyol> the build hasnt even started after 2 mins lol
16:59
<
RX14 >
uhh its not slow
16:59
<
RX14 >
its been down for 2.5 hours
17:00
<
FromGitter >
<sdogruyol> lol
17:00
<
FromGitter >
<sdogruyol> they should rewrite those sinatra apps with kemal :P
17:00
<
RX14 >
and the team must be out getting smashed because they havent responded to anything or updated their status the whole time
17:00
<
RX14 >
damn weekends
17:02
<
FromGitter >
<sdogruyol> now i'm gonna check what happens if i try to call a non-existent key for yield_content :P
17:02
<
RX14 >
you'll get a key error
17:03
<
FromGitter >
<sdogruyol> gotta like compile-time errors :P
17:03
<
RX14 >
it's not a compile time erro though
17:03
<
RX14 >
it'll just error accessing the hash with a non-existant key
17:05
<
FromGitter >
<sdogruyol> you are right
17:07
snsei_ has joined #crystal-lang
17:08
Oliphaunte has joined #crystal-lang
17:10
snsei has quit [Ping timeout: 250 seconds]
17:14
Oliphaunte has quit [Ping timeout: 272 seconds]
17:27
<
FromGitter >
<deepj> I’m getting the following warning on macOS Sierra PB1
17:27
<
FromGitter >
<deepj> [warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
17:27
<
RX14 >
i don't thnik thats a crystal problem
17:29
<
FromGitter >
<deepj> but I can’t run a simple Kemal app (I’m not sure if the above issue is connected to this) on macOS Sierra but other simple crystal scripts yes
17:29
<
RX14 >
well actually it looks like a libevent issue
17:30
<
RX14 >
according to a bug report on the chrome bug tracker, it's a libevent issue
17:31
<
RX14 >
they fixed it by editing their vendored libevent
17:31
<
RX14 >
but we don't vendor libevent so you'll have to update the shard library - if there's a fix
17:32
<
FromGitter >
<deepj> @RX14 I see, thanks. I’ll take a look at if there is a patch for Homebrew version
17:32
<
RX14 >
if you want to DIY thats the patch to libevent
17:32
<
RX14 >
i'm not familiar how to use homebrew etc. so I can't really help you more than that
17:48
soveran has joined #crystal-lang
17:54
soveran has quit [Ping timeout: 276 seconds]
17:59
soveran has joined #crystal-lang
17:59
soveran has quit [Changing host]
17:59
soveran has joined #crystal-lang
18:03
Oliphaunte has joined #crystal-lang
18:08
Oliphaunte has quit [Ping timeout: 240 seconds]
18:32
Raimondii has joined #crystal-lang
18:35
Raimondi has quit [Ping timeout: 240 seconds]
18:41
trapped has joined #crystal-lang
18:42
Raimondii is now known as Raimondi
18:46
soveran has quit [Remote host closed the connection]
18:49
soveran has joined #crystal-lang
18:57
Oliphaunte has joined #crystal-lang
19:01
Oliphaunte has quit [Ping timeout: 244 seconds]
19:05
pawnbox_ has joined #crystal-lang
19:05
pawnbox has quit [Read error: Connection reset by peer]
19:11
sergey_makagon has joined #crystal-lang
19:13
Oliphaunte has joined #crystal-lang
19:13
Oliphaunte has quit [Remote host closed the connection]
19:16
Oliphaunte has joined #crystal-lang
19:22
soveran has quit [Remote host closed the connection]
19:23
trapped has quit [Read error: Connection reset by peer]
19:23
Oliphaunte has quit [Remote host closed the connection]
19:32
sergey_makagon has quit []
19:49
<
16WAAM0WH >
crystal/master 933d07c RX14: bin/crystal fix for cd stdout
19:49
<
16WAAM0WH >
crystal/master 8e622b1 Ary Borenszweig: Merge pull request #2971 from RX14/fix-bin/crystal...
19:49
<
18VABAY0A >
[crystal] asterite closed pull request #2971: Fix bin/crystal in the case of stdout (master...fix-bin/crystal)
https://git.io/vKsyX
19:59
elia has joined #crystal-lang
20:01
Oliphaunte has joined #crystal-lang
20:03
Oliphaunte has quit [Remote host closed the connection]
20:03
<
crystal-gh >
[crystal] RX14 opened pull request #2973: Add IO::Delimited (master...feature/delimited-io)
https://git.io/vKsjK
20:11
Oliphaunte has joined #crystal-lang
20:17
Oliphaunte has quit [Ping timeout: 276 seconds]
20:24
soveran has joined #crystal-lang
20:25
elia has quit [Ping timeout: 240 seconds]
20:38
willl has quit [Quit: Connection closed for inactivity]
20:55
llamatarianism_ has joined #crystal-lang
20:56
Oliphaunte has joined #crystal-lang
21:12
llamatarianism_ has quit [Quit: Page closed]
22:37
Oliphaunte has quit [Remote host closed the connection]
22:41
Oliphaunte has joined #crystal-lang
22:49
zodiak has joined #crystal-lang
22:50
zodiak_ has quit [Read error: Connection reset by peer]
22:50
zodiak_ has joined #crystal-lang
22:54
zodiak has quit [Ping timeout: 240 seconds]
22:56
zodiak has joined #crystal-lang
22:58
zodiak_ has quit [Ping timeout: 240 seconds]
23:01
soveran has quit [Remote host closed the connection]
23:02
akwiatkowski has quit [Ping timeout: 244 seconds]
23:05
Oliphaunte has quit [Remote host closed the connection]
23:28
snsei_ has quit [Remote host closed the connection]
23:41
SShrike has joined #crystal-lang
23:55
kulelu88 has joined #crystal-lang
23:55
kulelu88 has quit [Changing host]
23:55
kulelu88 has joined #crystal-lang