lectrick has quit [*.net *.split]
elia has quit [*.net *.split]
kludge` has quit [*.net *.split]
davidboy has quit [*.net *.split]
adrocknaphobia has quit [*.net *.split]
harrow has quit [*.net *.split]
brixen has quit [*.net *.split]
aflatter has quit [*.net *.split]
denysonique has quit [*.net *.split]
_whitelogger has joined #opal
e_dub has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
e_dub has quit [Ping timeout: 248 seconds]
e_dub has joined #opal
e_dub has quit [Ping timeout: 264 seconds]
e_dub has joined #opal
e_dub has quit [Ping timeout: 245 seconds]
e_dub has joined #opal
adambeynon has joined #opal
GitHub127 has joined #opal
<GitHub127> opal/master ba205fb Adam Beynon: Fix some array methods and enable relevant specs
GitHub127 has left #opal [#opal]
<GitHub127> [opal] adambeynon pushed 1 new commit to master: http://git.io/SZJFkA
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#999 (master - ba205fb : Adam Beynon): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11677346
travis-ci has left #opal [#opal]
GitHub116 has joined #opal
<GitHub116> [opal] adambeynon pushed 1 new commit to master: http://git.io/1MPNbQ
<GitHub116> opal/master 9de733f Adam Beynon: Fix Module#ancestors to also include modules in hierarchy
GitHub116 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1000 (master - 9de733f : Adam Beynon): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11677448
travis-ci has left #opal [#opal]
e_dub has quit [Ping timeout: 260 seconds]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
e_dub has joined #opal
elia has joined #opal
kludge` has quit [Ping timeout: 248 seconds]
zmike123 has joined #opal
kludge` has joined #opal
_whitelogger has joined #opal
_whitelogger has joined #opal
_whitelogger has quit [Remote host closed the connection]
_whitelogger_ has joined #opal
e_dub has quit [Ping timeout: 260 seconds]
zmike123 has quit [Ping timeout: 256 seconds]
_whitelogger_ has joined #opal
zmike123 has joined #opal
_whitelogger_ has joined #opal
e_dub has quit [Ping timeout: 245 seconds]
e_dub has joined #opal
fkchang has joined #opal
<fkchang> meh`: elia how should I handle undefined in opal? Kernel#alert returns undefined and I want to "print out the value" in opal-irb. I had been using inspect(), but that's not a method on undefined. Is there a way to check on undefined?
<elia> fkchang: probably #alert needs to be fixed
<elia> fkchang: I'm fixing it on master to return nil, in the while I suggest to define an #alert method in your local class to return the value: def alert(m) Kernel.alert(m);m; end
<meh`> fkchang, defined? check's for undefined
<meh`> fkchang, fixed on opal-browser
<meh`> where's adam
<meh`> Uncaught Error: RuntimeError: Unsupported sexp: #<Opal::Parser::Fragment:0x00000001c30928>
<meh`> nice, super is broken
<GitHub182> [opal-jquery] elia pushed 1 new commit to master: http://git.io/-6MFpw
GitHub182 has joined #opal
GitHub182 has left #opal [#opal]
<GitHub182> opal-jquery/master 02f8f17 Elia Schito: Let Kernel#alert return nil
GitHub52 has joined #opal
<GitHub52> [opal] meh pushed 1 new commit to master: http://git.io/Qlciew
<GitHub52> opal/master 9aa37c3 meh: Fix Native::Array#[]
GitHub52 has left #opal [#opal]
<fkchang> meh`: did a bundle update, got this
<fkchang> couldn't find file 'browser/interval'
<fkchang> (in /Users/fkchang/.rvm/gems/ruby-1.9.3-p392@opal_irb/bundler/gems/opal-browser-34096b9330b9/opal/browser/window.rb)
<fkchang> /Users/fkchang/.rvm/gems/ruby-1.9.3-p392@opal_irb/gems/sprockets-2.10.0/lib/sprockets/context.rb:106:in `resolve'
<fkchang> /Users/fkchang/.rvm/gems/ruby-1.9.3-p392@opal_irb/gems/sprockets-2.10.0/lib/sprockets/context.rb:146:in `require_asset'
<meh`> fkchang, yeah, give me a few
<meh`> I'm moving and adding some stuff
<meh`> fkchang, update now
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1001 (master - 9aa37c3 : meh): The build passed.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11696391
<fkchang> meh`:
<fkchang> rake aborted!
<fkchang> (in /Users/fkchang/.rvm/gems/ruby-1.9.3-p392@opal_irb/bundler/gems/opal-browser-198aa6ae4955/opal/browser/navigator.rb)
<fkchang> Unsupported sexp: #<Opal::Parser::Fragment:0x007f7fb1513bb8>
<fkchang> /Users/fkchang/.rvm/gems/ruby-1.9.3-p392@opal_irb/bundler/gems/opal-9aa37c323399/lib/opal/parser.rb:380:in `process'
<meh`> right, forgot to commit the fix ◕ ◡ ◔
<meh`> fkchang, update again
<fkchang> meh`: working again, thx
<fkchang> elia: ur alert fix helped out. I'll possibly hit undefined elsewhere, so I'll need to handle it though
<fkchang> elia: do u know what this means when running specs (confused coz my compiled code works)
<fkchang> Error: jQuery must be included before opal-jquery
e_dub has quit [Ping timeout: 264 seconds]
<elia> fkchang: probably my fault, added an "Explicative" some days ago
<fkchang> is there a workaround?
<elia> fkchang: it was adam
<elia> not me
<elia> fkchang: essentially the problem is that it can't find `Opal.global.jQuery`
<elia> or `Opal.global.Zepto
<elia> fkchang: are you including jquery in some unusual way?
<fkchang> I don't think so, I have Opal::Spec::RakeTask.new(:default)
<fkchang> and and trying to run specs
e_dub has joined #opal
elia has quit [Ping timeout: 264 seconds]
<meh`> fkchang, ping
zmike123 has quit [Read error: Operation timed out]
<fkchang> meh`: pong
<meh`> fkchang, you can now do Component.css.apply { color 'red' } in runtime
<fkchang> in opal-browser?
<meh`> fkchang, no, in lissio
<meh`> but you can do a similar think with a DOM element
<meh`> element.style { color 'red' }
<fkchang> lissio getting closer for me to be able to try out?
zmike123 has joined #opal
<meh`> fkchang, didn't do much in the past few days
<meh`> been working on releasing a 0.2 of opal-browser
<meh`> so writing documentation, fixing bugs and other boring stuff
<meh`> what the
<meh`> where is adam
<meh`> I'm getting double returns
<fkchang> meh`: ok, so doesn't look quite like defined?() is what I want. If I have an object and it could be an opal object, or not, I want to run inspect on opal objects, and something for what I am guessing are native objects (i.e. non opal) of some sort, like undefined and other JS objects. What predicate? do I use to tell the difference. Probably an adam question
<meh`> native? tells you if it's a native object
<meh`> fkchang, I'm the guy to ask about the native stuff, I implemented it all :)
<meh`> fkchang, the best way to ensure you're using an Opal object is calling Native() on the value
<meh`> it will return a Native object if it's native
<meh`> nil if it's null or undefined
<meh`> and the passed value if it's already an opal object
<fkchang> ok, so if I do a Native(obj).inspect that ought to handle all the cases
<meh`> yes
<meh`> well, not all cases actually
<meh`> BasicObject doesn't have #inspect
<fkchang> seems good enough thus far
<meh`> here we go
<meh`> now opal-browser has full-blown $console
<meh`> AND opal-inspector or whatever could just override it
<meh`> and everyone wins
<fkchang> ?
<meh`> fkchang, now you do $console.log
<fkchang> man, where's adam, parser is not seeing blocks, I can't use DOM
<fkchang> DOM builder that is
<meh`> fkchang, I've had a similar issue I couldn't pinpoint
<meh`> it had to do with string interpolation and blocks
<meh`> might be a similar issue for you
<fkchang> meh`: nice. I 'll note that sometimes you have odd spaces(looks like 8 spaces per indent), and the last one, you don't
<meh`> fkchang, they're tabs
<meh`> I use tabs in my projects
<meh`> because I like tabs
<meh`> and spaces in opal/ projects
<meh`> and I don't see them because I have tab-size set to 2 in the browser
<fkchang> I don't mind tabs, until people set non std values, coz then they look weird outside of that person's environment
<meh`> fkchang, I use tabs for indentation, spaces for alignment
<meh`> fkchang, if you find leftover tabs in any opal/ project tell me please
<meh`> sometimes they slip out
<fkchang> I just let emacs handle it all, tabs, spaces, mixed, I just need to set it to handle whatever people around me use (spaces), also have it show/clean up stray spaces, u can setup vim to do the same
<meh`> fkchang, I do that
<meh`> it also shows tabs
<meh`> but sometimes I don't notice it
zmike123 has quit [Quit: ~]
elia has joined #opal
e_dub has quit [Ping timeout: 245 seconds]
e_dub has joined #opal
fkchang has quit [Ping timeout: 245 seconds]
elia has quit [Quit: Computer has gone to sleep.]
fkchang has joined #opal
fkchang has quit [Ping timeout: 264 seconds]