<adambeynon>
think I will give it a go this weekend
<adambeynon>
would be an awesome demo to show off
<elia>
adambeynon, indeed :)
tils has joined #opal
GitHub118 has joined #opal
<GitHub118>
[opal-jquery] adambeynon pushed 2 new commits to master: http://git.io/LksQFA
<GitHub118>
opal-jquery/master 8f6efb1 Thijs de Vries: Make sure these don't return null and can be set in more rubyish manner.
GitHub118 has left #opal [#opal]
<GitHub118>
opal-jquery/master dba0cb3 Adam Beynon: Merge pull request #40 from moger777/fix_height_width...
GitHub189 has joined #opal
<GitHub189>
[opal-jquery] adambeynon closed pull request #40: Make height/width not return null, be set with = methods instead of jquery calls. (master...fix_height_width) http://git.io/BpAmjw
GitHub189 has left #opal [#opal]
supermarin has quit [Remote host closed the connection]
supermarin has joined #opal
supermarin has quit [Ping timeout: 255 seconds]
supermarin has joined #opal
supermarin has quit []
meh` has joined #opal
GitHub71 has joined #opal
<GitHub71>
opal/master 4f4a102 Adam Beynon: Fix Range.new to raise ArgumentError on values that cannot be compared
<GitHub71>
[opal] adambeynon pushed 1 new commit to master: http://git.io/4DanOw
GitHub71 has left #opal [#opal]
GitHub136 has joined #opal
<GitHub136>
[opal] adambeynon pushed 1 new commit to master: http://git.io/KDl1zg
GitHub136 has left #opal [#opal]
<GitHub136>
opal/master 0f0275d Adam Beynon: Add Range.new changes to changelog
<adambeynon>
elia: sure thing! trying to get a few bugs/fixes done in the next few days
<adambeynon>
with jquery + vienna as well
<adambeynon>
and a plan to rename/release vienna
<adambeynon>
as there is already a vienna gem registered :(
<elia>
adambeynon, then I'll push all my WIP branches :)
<elia>
that's sad,
<elia>
I thought you secured the name…
<elia>
(same thing happened to lotus btw)
<elia>
adambeynon, there's some opal/js discussion on #ruby-lang btw
dimaursu16 has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
shevy is now known as ddw
e_dub has quit [Quit: ZZZzzz…]
ddw is now known as shevy
GitHub7 has joined #opal
GitHub7 has left #opal [#opal]
<GitHub7>
[opal-activesupport] adambeynon pushed 1 new commit to master: http://git.io/XD8VeA
<GitHub7>
opal-activesupport/master c72d620 Adam Beynon: Add Array#as_json
ryanstout has joined #opal
ylluminate_ has joined #opal
[o__o] has quit [Ping timeout: 252 seconds]
gplymale has joined #opal
gplymale has quit [Client Quit]
ylluminate` has quit [Ping timeout: 276 seconds]
ylluminate_ has quit [Ping timeout: 260 seconds]
dimaursu16 has quit [Ping timeout: 255 seconds]
[o__o] has joined #opal
<shevy>
can you target, with opal, the DOM and other dynamic things? like if I wish to handle an on-click event on a <div> container, and drag it to a new position with the mouse, written in ruby?
<adambeynon>
hi shevy
<shevy>
hi there
<adambeynon>
yes, that will work by using Native, which wraps native api such as the dom
<adambeynon>
but, I would recommend using either opal-jquery or opal-browser
<adambeynon>
both wrap/extend the dom into a ruby api
<adambeynon>
dealing with dom using just Native can be awkward
<adambeynon>
its possible, but definately awkward
<adambeynon>
mainly because of the differences between ruby and js syntax - some things dont map quite right
dimaursu16 has joined #opal
<adambeynon>
also, both libraries handle any cross browser differences (which there are many with the dom)
<shevy>
well I intend to mostly run this now for my localhost/apache/firefox/ruby.cgi things, it would be much more efficient to do things with ruby than have to invest a lot of time (which I don't really have) into properly mastering javascript
dimaursu16 has quit [Ping timeout: 240 seconds]
GitHub66 has joined #opal
<GitHub66>
[opal-todos] elia pushed 2 new commits to master: http://git.io/Aa-JXQ
<GitHub66>
opal-todos/master c8ad7bb Elia Schito: Use thin to avoid safari+webrick bugs
<GitHub91>
opal-jquery/master b65478b Adam Beynon: Add Promise support to HTTP get/post/put/delete methods
GitHub91 has left #opal [#opal]
<GitHub91>
[opal-jquery] adambeynon pushed 1 new commit to master: http://git.io/0ix6pw
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
e_dub has joined #opal
fkchang has joined #opal
goddamnhippie_ has joined #opal
goddamnhippie_ has quit [Quit: Computer has gone to sleep.]
goddamnhippie_ has joined #opal
goddamnhippie_ has quit [Ping timeout: 255 seconds]
goddamnhippie_ has joined #opal
GitHub156 has joined #opal
GitHub156 has left #opal [#opal]
<GitHub156>
opalrb.org/master 880b2a5 Adam Beynon: Initial draft of Promises blog post
<GitHub156>
[opalrb.org] adambeynon pushed 1 new commit to master: http://git.io/7HhTxw
<adambeynon>
hi meh`, if you have a chance, have a look through that draft ^^
<adambeynon>
its a quick blog post on using promises with opal
<adambeynon>
the examples need improving, but any thing you think is missing etc, would be appreciated
<adambeynon>
trying to do a few more this week as well on various libs/opal bits
ylluminate` has quit [Quit: Bye!]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Client Quit]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
<meh`>
adambeynon, I'd add a note about #trace
<meh`>
adambeynon, and it fits perfectly in the examples
<meh`>
instead of the final #then with "all is finished"
<meh`>
you add a .trace do |details, contacts, whatever|
<meh`>
it calls the block with the results of all the preceding promises
dimaursu16 has quit [Ping timeout: 265 seconds]
dimaursu16 has joined #opal
<adambeynon>
meh`: ahh, neat. Didnt notice that before, but it will work great there
<adambeynon>
meh`: maybe im being slow, but how does `.trace |a, b, c|` differ from `.then |a, b, c|` ?
e_dub has quit [Ping timeout: 240 seconds]
<adambeynon>
meh`: nvm, just realised the difference :)
<adambeynon>
(should have read the implementation..)
e_dub has joined #opal
<elia>
adambeynon, just curious about how do you run specs while developing, by hand or with some vim plugin?
<adambeynon>
elia: I use tmux with vim on top 80% of screen and a shell on bottom 20%. I then have a vim script triggered by "leader-r" which runs "bundle exec rake" in the bottom shell
<adambeynon>
The code is awful as I don't use vim script much, but it works well enough
<elia>
well of course was asking bc I use spectator that runs specs as you save the file
<elia>
:) and wanted to be sure I wasn't missing something
<elia>
adambeynon, maybe you can give it a try in your 20% shell :)
<adambeynon>
Will do ;) it's trying to change finger memory that is the Tricky thing. The number of times I have typed ":w" into form fields is ridiculous.
<elia>
adambeynon, that's why I never deepened my knowledge of vim…
<elia>
adambeynon, meh` is one of the few ppl that I think does it right (aka everything's vim)
<elia>
:D
<elia>
adambeynon, anyways these are the words of an uncool person, and part of a minority that stubbornly keep using textmate (2)…
<ryanstout>
elia: I’m still using TM (TM2 though, hehe)
<elia>
hey bro!
<ryanstout>
technically TM is the newest thing out there (except for sublime and atom)
<ryanstout>
:-)
<elia>
ryanstout, except they're cool, because you configure with json and cson… don't let me start on that…