00:08
meh` has quit [Quit: I don't want to live on this planet anymore.]
00:45
e_dub has quit [Ping timeout: 240 seconds]
00:58
e_dub has joined #opal
02:21
chrstphrhrt has joined #opal
02:53
_whitelogger_ has joined #opal
04:22
chrstphrhrt has quit [Quit: chrstphrhrt]
04:45
e_dub has quit [Ping timeout: 246 seconds]
04:57
e_dub has joined #opal
08:34
adambeynon has joined #opal
08:38
elia has joined #opal
08:45
e_dub has quit [Ping timeout: 245 seconds]
08:57
e_dub has joined #opal
09:31
kludge` has quit [Ping timeout: 245 seconds]
09:32
GitHub61 has joined #opal
09:32
<
GitHub61 >
opal/master d7a39ef Adam Beynon: Fix buggy parsing of ternary statements
09:32
GitHub61 has left #opal [#opal]
09:35
travis-ci has joined #opal
09:35
travis-ci has left #opal [#opal]
09:35
<
travis-ci >
[travis-ci] opal/opal#1002 (master - d7a39ef : Adam Beynon): The build passed.
09:35
kludge` has joined #opal
11:30
GitHub173 has joined #opal
11:30
GitHub173 has left #opal [#opal]
11:30
<
GitHub173 >
opal/master 871fdda Adam Beynon: Quick fix for Enumerable#collect
11:32
travis-ci has joined #opal
11:32
<
travis-ci >
[travis-ci] opal/opal#1003 (master - 871fdda : Adam Beynon): The build passed.
11:32
travis-ci has left #opal [#opal]
11:45
meh` has joined #opal
11:47
<
meh` >
adambeynon, yo
11:47
<
adambeynon >
morning!
11:47
<
adambeynon >
or afternoon..
11:49
<
meh` >
could you give some priority to #378 and #377 please?
11:57
<
adambeynon >
sure thing
11:58
<
meh` >
that generated code looks like it can be improved a lot
11:58
<
meh` >
there's no need to wrap it in a function
12:08
<
adambeynon >
yep. working on that one now
12:08
<
adambeynon >
a lot of these problems come from trying to have the same sexp format as ruby_parser
12:08
<
adambeynon >
which I really dont like
12:08
<
adambeynon >
not very consistent
12:10
GitHub39 has joined #opal
12:10
<
GitHub39 >
opal/master 9947f12 Adam Beynon: Fix double-return for begin/ensure/end blocks (#378)
12:10
GitHub39 has left #opal [#opal]
12:11
<
adambeynon >
meh`: see #378
12:12
<
adambeynon >
back in 10 mins
12:12
travis-ci has joined #opal
12:12
<
travis-ci >
[travis-ci] opal/opal#1004 (master - 9947f12 : Adam Beynon): The build passed.
12:12
travis-ci has left #opal [#opal]
12:14
chrstphrhrt has joined #opal
12:25
_whitelogger_ has joined #opal
12:41
_whitelogger_ has quit [Remote host closed the connection]
12:41
_whitelogger__ has joined #opal
12:45
e_dub has quit [Ping timeout: 245 seconds]
12:46
harrow has quit [*.net *.split]
12:47
harrow has joined #opal
12:57
e_dub has joined #opal
13:12
_whitelogger__ has quit [Remote host closed the connection]
13:12
_whitelogger___ has joined #opal
14:10
elia has quit [Ping timeout: 264 seconds]
14:15
elia has joined #opal
14:18
adambeynon has joined #opal
14:36
<
meh` >
adambeynon, does JSON.parse return Hash and Array?
14:36
<
adambeynon >
meh`: yeap
14:51
elia has quit [Ping timeout: 240 seconds]
14:53
elia has joined #opal
14:58
fkchang has joined #opal
15:03
<
fkchang >
adambeynon: did u see my tweet yesterday?
15:05
<
adambeynon >
hi fkchang
15:05
<
adambeynon >
dont think so
15:05
<
adambeynon >
looking..
15:06
<
adambeynon >
not seeing the lambda? thats a strange one
15:06
<
adambeynon >
is the git repo working? (as in, can I clone it to try..?)
15:07
<
fkchang >
let me push up the changes that make it work w/head, and then try
15:07
<
fkchang >
btw, code in the ||, and the generated js
15:07
<
fkchang >
|l = lambda {|f| f+1}| app-embeddable.js:25975
15:07
<
fkchang >
/* Generated by Opal 0.4.4 */
15:07
<
fkchang >
(function($opal) {
15:07
<
fkchang >
var TMP_1, $a, self = $opal.top, $scope = $opal, nil = $opal.nil, $breaker = $opal.breaker, $slice = $opal.slice;
15:07
<
fkchang >
$opal.add_stubs(['$+', '$lambda']);
15:07
<
fkchang >
if (!$opal.irb_vars) { $opal.irb_vars = {}; }
15:07
<
fkchang >
return $opal.irb_vars.l = (($a = $opal.irb_vars.lambda) == null ? self.$lambda() : $a)
15:07
<
fkchang >
})(Opal);
15:09
<
fkchang >
adambeynon: ok, pushed up changes, rake build will make the embeddable version and bring it up in chrome
15:09
<
adambeynon >
fkchang: ok, will try it out
15:17
<
GitHub88 >
opal/master a847aed Adam Beynon: Fix bug in generating methods in irb mode
15:17
<
adambeynon >
fkchang: for the lambda bug, that push should fix it
15:17
<
fkchang >
while you have the clone, rake spec gets an error wrt jquery loading
15:17
GitHub88 has left #opal [#opal]
15:17
GitHub88 has joined #opal
15:17
<
adambeynon >
I will check out the spec bug now
15:18
<
adambeynon >
fkchang: have you had the specs running before?
15:18
elia has quit [Ping timeout: 256 seconds]
15:22
travis-ci has joined #opal
15:22
<
travis-ci >
[travis-ci] opal/opal#1005 (master - a847aed : Adam Beynon): The build passed.
15:22
travis-ci has left #opal [#opal]
15:24
<
fkchang >
adambeynon: I had it running before probably head some time around 0.4.2-3 ish
15:25
elia has joined #opal
15:26
<
fkchang >
adambeynon: looks like the block fix worked, my lambda example worked and I can use opal-browser's dom builder from opal-irb now. Thx
15:26
<
meh` >
fkchang, cool :D
15:31
<
fkchang >
meh`: is there a way to print out all the whole element as text?
15:31
<
fkchang >
ie. I make a nested dom and I just want to preview the html
15:31
<
meh` >
fkchang, what do you mean?
15:32
<
meh` >
fkchang, there's no way currently
15:32
<
meh` >
but it shouldn't be hard to implement a DOM inspector
15:32
<
meh` >
but I don't think that belongs to opal-browser
15:33
<
meh` >
if you do it in opal-inspector, it would be even better, because you can use it on all kinds of DOM elments
15:35
<
adambeynon >
eek, I've got to run sorry. fkchang, I will ping you later if you are still having `rake spec` problems.
16:06
<
fkchang >
meh`: the context at the moment is that I'm messing w/the dom builder in opal-irb and then I want to see the html to see that I've made the right thing. For that I could just monkey patch in a to_s that understands the parent child hierarchy. The idea of a DOM inspect in opal-inspector is cool. I'll look at that. I'm probably going to try to replace my erb implemented views in opal-inspect w/the dom builder
16:33
adambeynon has joined #opal
16:34
elia has quit [Ping timeout: 260 seconds]
16:38
elia has joined #opal
16:38
<
adambeynon >
fkchang: so, jquery + spec issues
16:41
elia has quit [Client Quit]
16:44
<
fkchang >
adambeynon: Forrests-MacBook-Pro:opal-irb fkchang$ rake
16:44
<
fkchang >
Error: jQuery must be included before opal-jquery
16:44
<
fkchang >
Specs timed out
16:45
e_dub has quit [Ping timeout: 240 seconds]
16:45
<
fkchang >
a missing require or something?
16:55
<
adambeynon >
ah, opal-jquery doesnt actually include jquery itself - you have to add that manually
16:57
GitHub77 has joined #opal
16:57
GitHub77 has left #opal [#opal]
16:57
<
GitHub77 >
opal/master 076c7af Adam Beynon: [Parser] method defs are responsible for returning nil
16:57
<
fkchang >
adambeynon: i.e. require 'jquery' in the Rakefile
16:58
e_dub has joined #opal
16:59
<
adambeynon >
fkchang: no, in your opal code somewhere
16:59
<
adambeynon >
I usually put it in spec_helper.rb
16:59
<
adambeynon >
and then have whatever version of jquery.js located in spec/jquery.js
17:00
travis-ci has joined #opal
17:00
<
travis-ci >
[travis-ci] opal/opal#1006 (master - 076c7af : Adam Beynon): The build passed.
17:00
travis-ci has left #opal [#opal]
17:02
<
meh` >
adambeynon, any update on the super fix?
17:02
<
meh` >
the parser one
17:05
elia has joined #opal
17:06
adambeynon has quit [Ping timeout: 256 seconds]
17:26
_whitelogger___ has joined #opal
17:34
elia has quit [Ping timeout: 252 seconds]
18:24
GitHub61 has joined #opal
18:24
GitHub61 has left #opal [#opal]
18:24
<
GitHub61 >
opal/master 659dc8b meh: Make Proc#call destructure arguments
18:29
travis-ci has joined #opal
18:29
<
travis-ci >
[travis-ci] opal/opal#1007 (master - 659dc8b : meh): The build passed.
18:29
travis-ci has left #opal [#opal]
19:29
<
fkchang >
meh`: I like the dom builder
19:34
<
fkchang >
meh`: how do I add css from css builder to the dom?
19:35
<
fkchang >
create a style element and set the inner_html to the css.to_s?
19:49
<
meh` >
fkchang, the CSS builder returns a style element already
19:49
<
meh` >
if you use the helper
19:49
<
meh` >
CSS { color :red }
19:49
<
meh` >
that will return a <style> object
19:49
<
meh` >
you can ust CSS { color :red }.append_to $document.head
19:49
<
meh` >
and it will be applied
19:53
chrstphrhrt has quit [Quit: chrstphrhrt]
20:45
e_dub has quit [Ping timeout: 240 seconds]
20:49
chrstphrhrt has joined #opal
20:59
e_dub has joined #opal
21:25
<
fkchang >
meh`: nice, I didn't see the helper in the specs
21:26
<
meh` >
fkchang, yeah, sorry about that
21:26
<
meh` >
fkchang, I'm writing documentation about everything
21:26
<
meh` >
so you'll find everything on rubyinfo soon
21:26
<
meh` >
now I hit a pretty big bug in Opal
21:26
<
meh` >
that I don't know how to fix
21:30
<
fkchang >
I want to come up with a try ruby style interactive tutorial that I can run from inside opal-irb and inspector, then I could document the stuff I'm learning about opal-browser that way, and people can run and tweak in real time
22:10
GitHub8 has joined #opal
22:10
GitHub8 has left #opal [#opal]
22:10
<
GitHub8 >
opal/master da95ec6 meh: Fix lambda status of blocks
22:13
travis-ci has joined #opal
22:13
travis-ci has left #opal [#opal]
22:13
<
travis-ci >
[travis-ci] opal/opal#1008 (master - da95ec6 : meh): The build passed.
22:37
chrstphrhrt has quit [Quit: chrstphrhrt]
23:23
chrstphrhrt has joined #opal
23:47
meh` has quit [*.net *.split]
23:47
e_dub has quit [*.net *.split]
23:47
adrocknaphobia has quit [*.net *.split]
23:47
brixen has quit [*.net *.split]
23:54
e_dub has joined #opal
23:54
brixen has joined #opal
23:54
adrocknaphobia has joined #opal