<fkchang`>
adambeynon: what causes sprockets to compile opal files into 1 file instead of separate. When I include opal-irb in a rails project, all the opal files get compiled into the application.js in dev mode and then jquery is not included
femto has quit [Remote host closed the connection]
femto has joined #opal
femto has quit [Remote host closed the connection]
femto has joined #opal
meh` has joined #opal
Liothen has joined #opal
Liothen has quit [Changing host]
Liothen has joined #opal
femto has quit []
Insti has quit [Ping timeout: 260 seconds]
Insti has joined #opal
wmnnd has joined #opal
<wmnnd>
Hey there, recently I asked about the status of the DateTime class from the Ruby standard libary in Opal.
<wmnnd>
I was told that it is not yet supported and there are no plans to implement it.
<wmnnd>
However, I have just tried using the native JavaScript date element and it seems to be accessible by Opal pretty much like a Ruby Date object.
<wmnnd>
So I wanted to ask: Is this the way Dates should be dealt with in Opal? http://ur1.ca/i2der
<meh`>
wmnnd, Time is accessible
<meh`>
you don't need to wrap it yourself
<meh`>
it works for you because Time is bridged to `Date`
<meh`>
DateTime isn't
<meh`>
Time, Date and DateTime are different things
wmnnd has quit [Ping timeout: 264 seconds]
wmnnd has joined #opal
<wmnnd>
I see, JavaScript Date objects seem to get mapped to Ruby core Time objects.
<meh`>
wmnnd, yes, Time is bridged to `Date`
<wmnnd>
Mhm, the Time class even brings consistent "rolling over" for dates like 2014-02-29 as in Ruby. Though, I personally find that rather undesirable^^
ylluminarious has quit [Remote host closed the connection]
Lexun has joined #opal
DrShoggoth has joined #opal
ryanstout has joined #opal
DrShoggoth has quit [Max SendQ exceeded]
DrShoggoth has joined #opal
cantonic has joined #opal
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #opal
brixen_ is now known as brixen
wmnnd has joined #opal
[o__o] has quit [Remote host closed the connection]
[o__o] has joined #opal
IlIlIlIlIlIlI has joined #opal
<IlIlIlIlIlIlI>
is it possible to build js code from .rb files from the command line utilities opal or opal-build?
<IlIlIlIlIlIlI>
I'm trying to build kramdown with $ opal --compile -I lib/kramdown/ lib/kramdown.rb
<IlIlIlIlIlIlI>
the stdout is kind of not what I'd expect :D
<IlIlIlIlIlIlI>
I've read the documentation, but the command line interface doesn't seem to be explained or exemplified
<IlIlIlIlIlIlI>
and as a ruby non-native, I'm pretty much looking for a quick and dirty solution :)
<ryanstout>
IlIlIlIlIlIlI: I’m not sure where the command line tools is at the moment, my guess is adambeynon or elia would know
<IlIlIlIlIlIlI>
thanks
fkchang` has joined #opal
<wmnnd>
Hey there, I just came across a problem because Opal seems to handle while loops different from Ruby MRI.
wmnnd has quit [Quit: Reconnecting]
wmnnd has joined #opal
<wmnnd>
Hey there, I just came across a problem because Opal seems to handle while loops different from Ruby MRI.
<meh`>
wmnnd, what's the issue?
wmnnd has quit [Client Quit]
wmnnd has joined #opal
<wmnnd>
meh`: Sorry, irssi died. The problem seems to be that MRI evaluates the condition after running the scope once regardless of the condition whereas Opal seems to evaluate the condition before running the scope.
<wmnnd>
meh`: So, this will give you no output in Opal, unlike in MRI: http://ur1.ca/i2g81
cantonic has quit [Quit: cantonic]
<meh`>
wmnnd, open an issue please
<wmnnd>
Sure!
cantonic has joined #opal
davispuh has joined #opal
<fkchang`>
adambeynon: ping
boberetezeke has joined #opal
boberete1 has joined #opal
boberetezeke has quit [Ping timeout: 260 seconds]
<adambeynon>
hye fkchang`
<adambeynon>
hey*
ryanstout has quit [Quit: ryanstout]
<fkchang`>
adambeynon: need a tip in debugging running opal-irb with opal-rails, just including the gem causes all the opal files to be compiled to application.js instead of as individual files. That would not be so bad, but jquery also doesn't get included. Looking for some pointer to how opal interacts w/sprockets to try to figure out what's wrong.
boberete1 has quit [Ping timeout: 244 seconds]
boberetezeke has joined #opal
brixen has quit [Excess Flood]
brixen has joined #opal
wmnnd has quit [Ping timeout: 250 seconds]
DrShoggoth has quit [Quit: Leaving]
IlIlIlIlIlIlI has left #opal ["PONG :card.freenode.net"]