<hakunin>
for some reason members aren't available there
<hakunin>
i'm confused why
<hakunin>
well, no not confused
Sirupsen has joined #ruby-lang
<apeiros>
give me a bit
kfpratt has quit [Remote host closed the connection]
<hakunin>
apeiros: i think i see
<hakunin>
apeiros: just did it
ur5us has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
<hakunin>
apeiros: (refresh gist)
wprice has quit [Quit: wprice]
<apeiros>
I tried via self.inherited, but even after super(), members isn't there yet. seems that happens later in the creation of a Struct class. so yeah, .new seems to be the way to go.
intinig has joined #ruby-lang
pwnz0r has quit [Remote host closed the connection]
<hakunin>
apeiros: yeah i was fighting with that members thing a bit, read some C code, i think it's really the .new that's being defined in implementation
pwnz0r has joined #ruby-lang
smoitra has quit [Ping timeout: 264 seconds]
smoitra has joined #ruby-lang
intinig has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 272 seconds]
ghostpl_ has quit [Ping timeout: 255 seconds]
revath has joined #ruby-lang
symm- has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
kfpratt has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby-lang
kfpratt has quit [Ping timeout: 272 seconds]
gix has quit [Ping timeout: 256 seconds]
caseypatrickdris has quit [Remote host closed the connection]
revath has quit [Ping timeout: 246 seconds]
gix has joined #ruby-lang
<hotpancakes>
Does anyone know of an easy way to programmatically retrieve and parse an SSL cert? (e.g. given an arbitrary URL, I want to return certificate expiration date)
red_menace has quit [Ping timeout: 252 seconds]
spuk has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
SuMo_D has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
codenihal has joined #ruby-lang
ghostpl_ has joined #ruby-lang
shtirlic has quit [Ping timeout: 252 seconds]
ghostpl_ has quit [Ping timeout: 265 seconds]
mathie has quit [Max SendQ exceeded]
shtirlic has joined #ruby-lang
mathie has joined #ruby-lang
wprice has joined #ruby-lang
havenwood has quit [Ping timeout: 244 seconds]
lytol has joined #ruby-lang
duderonomy has joined #ruby-lang
hahuang65 has joined #ruby-lang
havenwood has joined #ruby-lang
ItSANgo has joined #ruby-lang
SuMo_D has joined #ruby-lang
leat has quit [Ping timeout: 265 seconds]
leat has joined #ruby-lang
SuMo_D has quit [Ping timeout: 256 seconds]
wprice has quit [Quit: wprice]
fusillicode1 has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby-lang
amclain_ has quit [Quit: Leaving]
kfpratt has joined #ruby-lang
riotjones has quit [Ping timeout: 256 seconds]
dellavg_ has joined #ruby-lang
duderonomy has quit [Read error: Connection reset by peer]
kfpratt has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Ping timeout: 272 seconds]
leat has quit [Remote host closed the connection]
leat has joined #ruby-lang
ur5us has joined #ruby-lang
matled has quit [Remote host closed the connection]
matled has joined #ruby-lang
TheMoonMaster has quit [Ping timeout: 246 seconds]
TheMoonMaster has joined #ruby-lang
lele is now known as Guest24
wprice has joined #ruby-lang
hotpancakes has joined #ruby-lang
revath has quit [Ping timeout: 256 seconds]
ghostpl_ has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 245 seconds]
hotpancakes has quit [Ping timeout: 264 seconds]
solars has joined #ruby-lang
Vols has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 264 seconds]
thebastl has joined #ruby-lang
revath has joined #ruby-lang
AlexAltea has joined #ruby-lang
marr has joined #ruby-lang
charliesome has joined #ruby-lang
tsujp has quit [Quit: tsujp is snoozing]
ayonkhan has quit [Quit: (null)]
Vols has quit [Quit: Leaving]
tsujp has joined #ruby-lang
smoitra has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
snsei has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 246 seconds]
spuk has quit [Ping timeout: 244 seconds]
spuk has joined #ruby-lang
leat has quit [Ping timeout: 256 seconds]
leat has joined #ruby-lang
ghostpl_ has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
leat has quit [Ping timeout: 255 seconds]
ghostpl_ has quit [Ping timeout: 244 seconds]
caseypatrickdris has quit [Ping timeout: 264 seconds]
leat has joined #ruby-lang
leat has quit [Remote host closed the connection]
codeniha_ has joined #ruby-lang
riotjones has joined #ruby-lang
codenihal has quit [Ping timeout: 264 seconds]
kfpratt has joined #ruby-lang
marr has quit [Ping timeout: 246 seconds]
caseypatrickdris has joined #ruby-lang
riotjones has quit [Ping timeout: 245 seconds]
snsei has quit [Remote host closed the connection]
leat has joined #ruby-lang
kfpratt has quit [Ping timeout: 244 seconds]
martinbmadsen has joined #ruby-lang
codeniha_ has quit [Remote host closed the connection]
snsei has joined #ruby-lang
codenihal has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 256 seconds]
codenihal has quit [Client Quit]
relix has joined #ruby-lang
hahuang65 has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
lytol has quit [Remote host closed the connection]
leat has quit [Ping timeout: 244 seconds]
leat has joined #ruby-lang
hotpancakes has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
snsei has quit [Quit: Leaving...I hear my mom calling...]
tkuchiki has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 255 seconds]
hotpancakes has quit [Ping timeout: 264 seconds]
leat has quit [Ping timeout: 272 seconds]
ur5us has quit [Remote host closed the connection]
oshosuryaa has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
bruno- has joined #ruby-lang
leat has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 255 seconds]
fusillicode has joined #ruby-lang
fusillicode1 has joined #ruby-lang
ur5us has joined #ruby-lang
relix has joined #ruby-lang
fusillicode has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
leat has quit [Ping timeout: 244 seconds]
leat has joined #ruby-lang
marr has joined #ruby-lang
Musashi007 has joined #ruby-lang
<oshosuryaa>
where can i contact mentor of gsoc projects?
solars has quit [Ping timeout: 256 seconds]
rikkipitt has joined #ruby-lang
lytol has joined #ruby-lang
Guest24 is now known as lele
arBmind has joined #ruby-lang
lytol has quit [Ping timeout: 264 seconds]
rikkipitt has quit [Remote host closed the connection]
wprice has quit [Quit: wprice]
rikkipitt has joined #ruby-lang
ghostpl_ has joined #ruby-lang
leat has quit [Remote host closed the connection]
leat has joined #ruby-lang
thebastl has quit [Quit: Leaving...]
codebump has joined #ruby-lang
leat has quit [Ping timeout: 244 seconds]
ghostpl_ has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby-lang
lele is now known as Guest24
<codebump>
Hi i an having issue requiring mysql in rb file, i have installed using sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config, and getting load error no such file mysql
<codebump>
can anybody help?
<codebump>
also, it works if I create a simple rb file and run but not when i do the same in Kibana 3,0 code
tsujp has quit [Quit: tsujp is snoozing]
michael_mbp has quit [Excess Flood]
wprice has joined #ruby-lang
oshosuryaa has quit [Ping timeout: 246 seconds]
riotjones has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby-lang
kfpratt has joined #ruby-lang
leat has joined #ruby-lang
riotjones has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
kfpratt has quit [Ping timeout: 264 seconds]
SylarRuby has joined #ruby-lang
marr has quit []
relix has joined #ruby-lang
leat has quit [Ping timeout: 265 seconds]
leat has joined #ruby-lang
tsujp has joined #ruby-lang
leat has quit [Ping timeout: 264 seconds]
hotpancakes has joined #ruby-lang
wprice has quit [Quit: wprice]
gwendall has joined #ruby-lang
hotpancakes has quit [Ping timeout: 272 seconds]
wprice has joined #ruby-lang
codebump has quit [Quit: Page closed]
tsujp has quit [Quit: tsujp is snoozing]
kapil___ has joined #ruby-lang
smoitra has quit [Ping timeout: 256 seconds]
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby-lang
rikkipitt has quit [Remote host closed the connection]
ghostpl_ has joined #ruby-lang
seank_ has quit []
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
seank_ has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 252 seconds]
wprice has quit [Quit: wprice]
wprice has joined #ruby-lang
SuMo_D has quit [Ping timeout: 272 seconds]
revath has quit [Ping timeout: 252 seconds]
SuMo_D has joined #ruby-lang
fusillicode1 has quit [Read error: No route to host]
fusillicode has joined #ruby-lang
fusillicode1 has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
riotjones has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
fusillicode has joined #ruby-lang
bruno- has joined #ruby-lang
riotjones has quit [Ping timeout: 252 seconds]
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 246 seconds]
martinbmadsen has joined #ruby-lang
SuMo_D has quit [Ping timeout: 244 seconds]
fusillicode1 has joined #ruby-lang
nathanstitt has joined #ruby-lang
fusillicode has quit [Ping timeout: 256 seconds]
nathanstitt has quit [Client Quit]
martinbmadsen has quit [Ping timeout: 246 seconds]
rikkipitt has joined #ruby-lang
wprice has quit [Quit: wprice]
leat has joined #ruby-lang
fusillicode has joined #ruby-lang
lytol has joined #ruby-lang
cornerman has quit [Remote host closed the connection]
cornerman has joined #ruby-lang
hotpancakes has joined #ruby-lang
hakunin_ has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 246 seconds]
hakunin has quit [Read error: Connection reset by peer]
lytol has quit [Ping timeout: 252 seconds]
revath has joined #ruby-lang
hotpancakes has quit [Ping timeout: 272 seconds]
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
CatMartyn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gwendall has quit [Ping timeout: 272 seconds]
rikkipitt has quit [Read error: Connection reset by peer]
rikkipitt has joined #ruby-lang
CatMartyn has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Ping timeout: 265 seconds]
ghostpl_ has joined #ruby-lang
symm- has joined #ruby-lang
tkuchiki has joined #ruby-lang
JohnBat26 has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 256 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
revath has quit [Ping timeout: 252 seconds]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
wprice has joined #ruby-lang
hotpancakes has joined #ruby-lang
Iskarlar has quit [Read error: Connection reset by peer]
SylarRuby has quit []
Iskarlar has joined #ruby-lang
hahuang65 has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
Iskarlar_ has joined #ruby-lang
hotpancakes has quit [Ping timeout: 256 seconds]
Iskarlar has quit [Ping timeout: 265 seconds]
hahuang65 has quit [Ping timeout: 256 seconds]
rikkipitt has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
cornerma1 has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
cornerman has quit [Ping timeout: 256 seconds]
cornerma1 is now known as cornerman
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
sankaber has joined #ruby-lang
wprice has quit [Quit: wprice]
rob_ has joined #ruby-lang
SuMo_D has quit [Ping timeout: 244 seconds]
<rob_>
hi, if i have a peice of json and a string with a key, e.g: '{ "foo": { "bar": 2 }}' and: 'foo.bar', how can i extract the value '2' using the key (without using eval)?
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
dangerousdave has quit [Client Quit]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D_ has joined #ruby-lang
SuMo_D_ has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
<jhass>
lgtm
<jhass>
rob_: ^
<rob_>
thanks for your help :)
ohsix has quit [Ping timeout: 272 seconds]
<jhass>
just document that you can't have foo\ as key name
ohsix has joined #ruby-lang
havenwood has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 256 seconds]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
dangerousdave has joined #ruby-lang
dangerousdave has quit [Excess Flood]
JohnBat26 has quit [Ping timeout: 264 seconds]
slava__ has joined #ruby-lang
<slava__>
\help
slava__ has quit [Remote host closed the connection]
SuMo_D_ has joined #ruby-lang
SuMo_D_ has quit [Remote host closed the connection]
b_hoffman has joined #ruby-lang
SuMo_D_ has joined #ruby-lang
slavapavlutin has joined #ruby-lang
SuMo_D_ has quit [Remote host closed the connection]
SuMo_D_ has joined #ruby-lang
SuMo_D_ has quit [Remote host closed the connection]
revath has quit [Ping timeout: 264 seconds]
SuMo_D_ has joined #ruby-lang
fusillicode1 has joined #ruby-lang
funtobeakangaroo has joined #ruby-lang
smoitra has quit [Quit: Leaving]
fusillicode has quit [Ping timeout: 272 seconds]
fusillicode1 has quit [Read error: Connection reset by peer]
<funtobeakangaroo>
is there a way to call a class like a function (since () can't be overridden)?
SuMo_D_ has quit [Remote host closed the connection]
fusillicode has joined #ruby-lang
fusillicode has quit [Client Quit]
fusillicode has joined #ruby-lang
<jhass>
funtobeakangaroo: no, but you could define a method with the same name. That's what Ruby core does for String, Integer etc., see Kernel#String, Kernel#Integer and so on. Another popular example is Nokogiri.HTML()
Batty-Alex has quit [Read error: Connection reset by peer]
slavapavlutin has joined #ruby-lang
slavapavlutin has left #ruby-lang [#ruby-lang]
Batty-Alex__ has joined #ruby-lang
hotpancakes has quit [Ping timeout: 256 seconds]
momomomomo has joined #ruby-lang
momomomomo has quit [Client Quit]
nifoc has quit [Remote host closed the connection]
nifoc has joined #ruby-lang
martinbmadsen has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
nifoc has quit [Remote host closed the connection]
nifoc has joined #ruby-lang
j4cknewt has joined #ruby-lang
centrx has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 256 seconds]
lytol has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
symm- has joined #ruby-lang
erickwilder has quit []
hotpancakes has joined #ruby-lang
lytol has quit [Ping timeout: 254 seconds]
revath has joined #ruby-lang
solars has joined #ruby-lang
oceans has joined #ruby-lang
<oceans>
hi i am a third year computer science student interested in working on this project "Cross-thread Fiber support". I have prerequisite knowledge about threads, concurrency control and c-programming. I also got the basic idea about fibres and the objective or aim of this project of making fibre of a thread to work in another thread.
<oceans>
I would really appreciate if someone please help me through how we can implement this and what should my proposal contain.Thanks in advance.
nifoc has quit [Remote host closed the connection]
<centrx>
oceans, This is the Google Summer of Code project?
<oceans>
yes
<centrx>
oceans, Also see #ruby is another channel
<centrx>
I don't know how Fibers would be cross-threaded
<oceans>
thnx.
nifoc has joined #ruby-lang
<yxhuvud>
oceans: you may be better served in ruby-core for that.
revath has quit [Ping timeout: 250 seconds]
ghostpl_ has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
nertzy has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 250 seconds]
steve-la_ has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
deol has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
hotpancakes has joined #ruby-lang
[H]unt3r has quit [Read error: Connection reset by peer]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goshokk has joined #ruby-lang
martinbmadsen has joined #ruby-lang
Rayford has quit [Quit: Rayford]
marr has joined #ruby-lang
ghostpl_ has joined #ruby-lang
bruno- has quit [Ping timeout: 246 seconds]
martinbmadsen has quit [Ping timeout: 255 seconds]
ghostpl_ has quit [Ping timeout: 245 seconds]
j4cknewt has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 256 seconds]
micmus has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
caseypatrickdris has quit [Read error: Connection reset by peer]
caseypat_ has joined #ruby-lang
deol has joined #ruby-lang
caseypat_ has quit [Read error: Connection reset by peer]
caseypatrickdris has joined #ruby-lang
itstooloud has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
caseypatrickdris has quit [Read error: No route to host]
caseypatrickdris has joined #ruby-lang
havenwood has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
j4cknewt has joined #ruby-lang
caral has joined #ruby-lang
silkfox has quit [Ping timeout: 272 seconds]
Guest24 is now known as lele
ur5us has joined #ruby-lang
[H]unt3r has quit [Quit: Leaving]
Missphoenix has joined #ruby-lang
anekant has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
Miphix has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby-lang
<anekant>
say I want to pass an argument to a class that inherits from test/unit/TestCase, how do I retrieve the argument in the code? can I just add an initialize?
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<anekant>
google is slower than irc today
waroperator has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Remote host closed the connection]
b_hoffman has quit [Quit: b_hoffman]
solars has joined #ruby-lang
<anekant>
hmm I guess something in TestCase is processing args before I can
LMity has joined #ruby-lang
<anekant>
and giving me an "invalid option" error, or "'block in non_options': file not found" error
Sirupsen has joined #ruby-lang
rgb-one has joined #ruby-lang
<anekant>
so do I have to read the values I want to pass to the test from a file?
<anekant>
seems unnecessarily complicated
<anekant>
no one ever wanted to do this before, huh
lytol has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_real_intinig has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
duderonomy has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 246 seconds]
Iskarlar has joined #ruby-lang
elia has joined #ruby-lang
postmodern has quit [Quit: Leaving]
ghostpl_ has joined #ruby-lang
shinnya has joined #ruby-lang
revath has quit [Ping timeout: 252 seconds]
lytol has joined #ruby-lang
vladgh has joined #ruby-lang
hotpancakes has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 256 seconds]
lytol has quit [Ping timeout: 255 seconds]
Musashi007 has joined #ruby-lang
martinbmadsen has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 264 seconds]
the_real_intinig has joined #ruby-lang
j4cknewt has joined #ruby-lang
caral has quit [Quit: caral]
blarghlarghl has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
<blarghlarghl>
How do I find out the UTC offset for a given location on a given day? TZInfo is of no help to me I think (especially because it insists on telling me it's 23:18 UTC right now, I figured it's not particularly trustworthy.)
<jhass>
:o if we can longer trust tzinfo, what's left?
<blarghlarghl>
Ideally I'd like to get the UTC offset either as a +0n00 string or as a number of seconds - whichever, really.
<blarghlarghl>
So my system is not misconfigured - tzinfo just prints nonsense.
the_real_intinig has quit [Remote host closed the connection]
<blarghlarghl>
jhass: Anyway, the thing is, I want to go 'In Paris on April 2nd, what's the UTC offset?' 'In New York on January 5th, what's the UTC offset?'
ur5us has quit []
<jhass>
TZInfo::Timezone.get('Europe/Berlin').current_period.offset.utc_offset seems fine to me
hotpancakes has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blarghlarghl>
jhass: yeah, that works for me too. okay - how do i tell it to give me that for a specific date though?
<jhass>
I never used it, let me continue digging :P
<jhass>
#period_for_local ?
<blarghlarghl>
jhass, i looked at that, but... hm.
<jhass>
but?
the_real_intinig has joined #ruby-lang
<blarghlarghl>
jhass: I think I'm doing it wrong. TZInfo::Timezone.get('Europe/Berlin').period_for_local(Time.new('2015-06-05 00:00:00')).offset.utc_offset # => 3600
<jhass>
oh, dst stuff
<blarghlarghl>
Yeah.
<blarghlarghl>
that's the thing.
<blarghlarghl>
I wish we could kill it with fire.
<jhass>
TZInfo::Timezone.get('Europe/Berlin').period_for_local(DateTime.new(2015, 6, 5)).offset.dst? is correct though
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
<jhass>
haha
<jhass>
#utc_total_offset
<blarghlarghl>
jesus.
<jhass>
pry <3
the_real_intinig has quit [Remote host closed the connection]