meh` changed the topic of #opal to: http://opalrb.org - Ruby runtime and library on top of Javascript | 1.0.0 is near | This channel is logged at https://botbot.me/freenode/opal/
replay has quit []
ylluminate has quit [Ping timeout: 256 seconds]
ylluminate has joined #opal
meh` has quit [Ping timeout: 250 seconds]
adaedra has joined #opal
adaedra has left #opal ["."]
professor_soap has joined #opal
dreinull75 has joined #opal
<dreinull75> hi, opal sounds interesting to me. How would I use opal in place of javascript when I deal with libs? In my case I want to tinker with Twitter's typeahead library. I'm not very proficient with JS so I think using Opal might help.
<dreinull75> Unless that's a silly idea.
<professor_soap> dreinull75: you just require the libs and then you can use them as usual
meh` has joined #opal
professor_soap has quit []
<dreinull75> so the JS classes are bridged to Ruby classes? How do I include them? Via require and include?
lumo_e has joined #opal
lumo_e has left #opal [#opal]
adaedra has joined #opal
adaedra has left #opal ["."]
<meh`> what do you mean?
<dreinull75> meh`: I mean, could I just write a script in Ruby syntax? Like this here? eg. bestPictures=Bloodhound.new (ex taken from https://gist.githubusercontent.com/jharding/9458772/raw/f0edb1c61e3c3805fd15c77e6e268482db7d2c84/remote.js)
<dreinull75> And I include JS libraries in my HTML file? Or do I include them in my ruby file?
<meh`> you need to compile the Ruby to JS with Opal
<dreinull75> meh` yes, sure. But can I expect the JS output to correctly interact with other libraries?
<meh`> dreinull75, it won't do it automatically for you
<dreinull75> then what's necessary for me to do?
<dreinull75> sorry for all the silly questions. Can't really bend my head around opal yet
_thursday has joined #opal
_thursday has quit [Client Quit]
_hooray has joined #opal
<_hooray> Hello! I would deeply appreciate if someone could give me some pointer on how to use Browser::DOM::MutationObserver
<_hooray> I thought this would work, but it does not: http://pastie.org/private/qamozumnxcejnoyy3eisug
GitHub186 has joined #opal
<GitHub186> [opal] meh pushed 2 new commits to master: http://git.io/vGUzk
<GitHub186> opal/master dd24ee9 Brady Wied: Ruby specs were available for https://github.com/opal/opal/pull/1078 (commit 35b2a095dd6def54078f1ff57a141470ab62d566), so removing the custom specs that were added and using those
<GitHub186> opal/master 93f2551 meh.: Merge pull request #1081 from wied03/master...
GitHub186 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#3037 (master - 93f2551 : meh.): The build passed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#3037 (master - 93f2551 : meh.): The build passed.
travis-ci has left #opal [#opal]
_hooray has quit [Remote host closed the connection]
Papierkorb has joined #opal
GitHub120 has joined #opal
<GitHub120> [opal] meh pushed 1 new commit to master: http://git.io/vGIqh
<GitHub120> opal/master ec2c70d meh: More opal/base and opal/mini improvements
GitHub120 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#3038 (master - ec2c70d : meh): The build passed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#3038 (master - ec2c70d : meh): The build passed.
travis-ci has left #opal [#opal]