apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
gabrielrotbart has quit [Remote host closed the connection]
Vert has quit [Ping timeout: 252 seconds]
<zul_> Hi all I don't know how can I cast an element of an array of strings to an object. The element of the array is a tweet object (in string). Could you help me please?
hbpoison has quit [Ping timeout: 256 seconds]
icole has quit [Remote host closed the connection]
toekutr has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
macq has quit [Ping timeout: 255 seconds]
`brendan has joined #ruby
<havenwood> zul_: What does casting an element mean?
macq has joined #ruby
<havenwood> zul_: Might help if you can paste your code to gist.github.com.
<zul_> yes I do it
dangerousdave has quit [Ping timeout: 276 seconds]
Rheoli has quit [Quit: Textual IRC Client: www.textualapp.com]
jfontan has joined #ruby
jgrevich_ has joined #ruby
Animawish has quit [Ping timeout: 276 seconds]
lectrick has quit [Ping timeout: 240 seconds]
<Yakko> hey guys, in capistrano are web/app/db default roles or can you just merge web and app in one?
angusiguess has joined #ruby
love_color_text has joined #ruby
jgrevich has quit [Ping timeout: 260 seconds]
jgrevich_ is now known as jgrevich
Jebron has joined #ruby
chrishough has joined #ruby
lazyPower has quit [Remote host closed the connection]
<zul_> havenwood Do you understaind what I want?
<zul_> to do?
malomalo has joined #ruby
<havenwood> zul_: nope, fraid not
dallasm has joined #ruby
takeru has joined #ruby
<malomalo> I'm creating a C extension and was wondering if anyone knew how to call a C function and pass a block to it from another C function
TwN has quit [Ping timeout: 245 seconds]
adkron has quit [Ping timeout: 255 seconds]
miso1337 has quit [Quit: afk]
spider-mario has quit [Read error: Connection reset by peer]
<whitequark> malomalo: don't, use FFI.
IrishGringo has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
fir_ed has quit [Ping timeout: 260 seconds]
flexd has quit [Ping timeout: 256 seconds]
max_ has quit [Read error: Connection reset by peer]
mlr has joined #ruby
newUser1234 has joined #ruby
hiall has joined #ruby
Whoop has quit [Ping timeout: 246 seconds]
takeru has quit [Ping timeout: 255 seconds]
Whoop has joined #ruby
luismreis has joined #ruby
msuszczy has quit [Quit: leaving]
kofno has joined #ruby
<malomalo> whitequark: how about not using FFI, couldn't find a rb_funcall that accepts a block as a param. rb_iterate might be what I need, but not sure what the param VALUE (*method)() should be
bradhe has joined #ruby
<havenwood> So where can I buy Ruby 2.0.0 swag? :O
arya has quit [Ping timeout: 255 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
kofno has quit [Remote host closed the connection]
arya has joined #ruby
nari has quit [Ping timeout: 256 seconds]
aedornm has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
hogeo has joined #ruby
Choobie has joined #ruby
Choobie has quit [Client Quit]
jimeh has quit [Quit: Computer has gone to sleep.]
freeayu has joined #ruby
tylersmith has joined #ruby
Choobie has joined #ruby
Choobie has joined #ruby
Choobie has quit [Changing host]
<breakingthings> havenwood: use a shirt and a sharpie
<havenwood> breakingthings: time for a tatoo, i think
<breakingthings> use a knife and pen ink
bradhe has joined #ruby
<havenwood> breakingthings: but then if i ever leave ruby i'll have to cut or burn off the tat >.>
<havenwood> breakingthings: yeah, so no prob :D
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
mfcabrera has quit [Quit: This computer has gone to sleep]
predator217 has joined #ruby
rhyselsmore_ has joined #ruby
hiall has quit [Quit: hiall]
a3r0 has joined #ruby
a3r0 has left #ruby [#ruby]
MartinCleaver has quit [Quit: MartinCleaver]
predator117 has quit [Ping timeout: 244 seconds]
krawchyk has joined #ruby
j^2 has joined #ruby
tcstar has quit [Ping timeout: 276 seconds]
reppard has joined #ruby
atal421 has quit [Ping timeout: 245 seconds]
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
Pochacco has joined #ruby
bradhe has quit [Remote host closed the connection]
kofno has joined #ruby
Pochacco has quit [Client Quit]
Pochacco has joined #ruby
bradhe has joined #ruby
`brendan has quit [Read error: Connection reset by peer]
FondoDeBikini has quit [Ping timeout: 244 seconds]
kofno has quit [Remote host closed the connection]
pskosinski has quit [Quit: Red Eclipse, game of racist admins/devs: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
mattbl has joined #ruby
`brendan has joined #ruby
jonathanwallace has joined #ruby
Pochacco has quit [Client Quit]
Pochacco has joined #ruby
brum has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
gyre008 has joined #ruby
Pochacco has quit [Client Quit]
Pochacco has joined #ruby
Pochacco has quit [Client Quit]
dv_ has quit [Ping timeout: 248 seconds]
Pochacco has joined #ruby
eka has joined #ruby
Pochacco has quit [Client Quit]
Pochacco has joined #ruby
reppard has quit [Ping timeout: 244 seconds]
brum has quit [Ping timeout: 260 seconds]
graft_ has quit [Quit: Lost terminal]
dv_ has joined #ruby
zastern has joined #ruby
Pochacco has quit [Client Quit]
Pochacco has joined #ruby
yshh has joined #ruby
FondoDeBikini has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
ccbn has joined #ruby
takeru has joined #ruby
yshh has quit [Remote host closed the connection]
miso1337 has joined #ruby
gabrielrotbart has joined #ruby
takeru has quit [Remote host closed the connection]
freeayu__ has joined #ruby
newUser1234 has quit [Remote host closed the connection]
yshh has joined #ruby
freeayu has quit [Ping timeout: 260 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
jpfuentes2 has joined #ruby
znode has joined #ruby
znode has quit [Remote host closed the connection]
znode has joined #ruby
Pochacco has quit [Quit: Pochacco]
znode_ has joined #ruby
Pochacco has joined #ruby
<Choobie> anyone have benchmarks for ruby 2.0.0
taoru has joined #ruby
yshh has quit [Remote host closed the connection]
znode__ has joined #ruby
kofno has joined #ruby
znode has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
mattbl has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
seydar has joined #ruby
icole has joined #ruby
banisterfiend is now known as banister`sleep
<havenwood> Choobie: There are some micro-benchmarks and explanations of performance increases that were gleaned in Sasada-sans's RubyConf talk: http://www.confreaks.com/videos/1272-rubyconf2012-implementation-details-of-ruby-2-0-vm
lewis1711 has joined #ruby
gabrielrotbart has quit [Read error: Connection reset by peer]
<havenwood> Choobie: Additional performance increases will be in 2.1.
<seydar> i've got a fake ssl certificate (http://pastie.org/6331132). how do i turn it into something usable by thin?
znode_ has quit [Ping timeout: 256 seconds]
pavilionXP has quit [Read error: Connection reset by peer]
gabrielrotbart has joined #ruby
bubblehead has joined #ruby
yshh has joined #ruby
Pochacco has quit [Quit: Pochacco]
tcstar has joined #ruby
carloslopes has joined #ruby
tcstar has quit [Max SendQ exceeded]
love_color_text has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 252 seconds]
tcstar has joined #ruby
icole has quit [Ping timeout: 260 seconds]
greenarrow has quit [Quit: IRC is just multiplayer notepad]
joeycarmello has quit [Remote host closed the connection]
<Matip> have you had the need to process (plot in this case) a stream of bytes from a sensor (for example, the mic)?
adkron has joined #ruby
Pochacco has joined #ruby
greenarrow has joined #ruby
banghouse2 has joined #ruby
dallasm has quit [Remote host closed the connection]
<lewis1711> what's rvm for "Get latest ruby" ? tired of guessing version strings. yes I have googled
<havenwood> lewis1711: rvm install ruby-head
<lewis1711> thanks
Jebron has quit []
bradhe has joined #ruby
jeekl has joined #ruby
gyre008 has quit [Remote host closed the connection]
slyv has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
xardas has quit [Ping timeout: 260 seconds]
bradhe has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 256 seconds]
<breakingthings> lewis1711: rvm list known
ephemerian has quit [Quit: Leaving.]
<breakingthings> should show you all the rubies rvm knows
<rickmasta> I'm not sure If I'm using xpath correctly.
tjbiddle has joined #ruby
WhereIsMySpoon has quit [Changing host]
WhereIsMySpoon has joined #ruby
icole has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
nari has joined #ruby
senayar has quit [Quit: Quitte]
atal421 has joined #ruby
atal421 has quit [Client Quit]
dorei has quit []
ferdev is now known as ferdev|away
epicurus has left #ruby ["Leaving"]
mengu has quit [Quit: Leaving]
etcetera has quit []
<rickmasta> If I copy the xpath for that like, and parse it I should get 2013-02-25, right?
<rickmasta> Woops, meant to post this: http://screens.rickmasta.com/aGxb
seydar has quit [Quit: leaving]
mattbl has quit [Quit: This computer has gone to sleep]
cantonic has quit [Remote host closed the connection]
cantonic has joined #ruby
cantonic_ has joined #ruby
zul_ has quit [Quit: Ex-Chat]
etcetera has joined #ruby
<malomalo> whitequark: how about not using FFI, couldn't find a rb_funcall that accepts a block as a param. rb_iterate might be what I need, but not sure what the param VALUE (*method)() should be
<malomalo> whitequark: sorry didn't mean to send that
arya has joined #ruby
<whitequark> I would still advise you against writing a C ext :)
jacktrick has quit [Quit: Leaving]
jfontan has quit [Quit: Leaving.]
<banister`sleep> malomalo: proc { |o, m, block| o.send(m, &block) }
cantonic has quit [Read error: Operation timed out]
cantonic_ is now known as cantonic
gabrielrotbart has quit [Remote host closed the connection]
<malomalo> banister`sleep: I'm in a c method and have the block and want to call another method and send the block
tealmage has quit [Remote host closed the connection]
mattbl has joined #ruby
<banister`sleep> malomalo: yeah, VALUE block_sender = rb_eval_string("proc { |o, m, block| o.send(m, &block) }")
Deltaoo has quit [Ping timeout: 252 seconds]
<malomalo> banister`sleep: The other methods a c method, but don't think that helps much. I'm trying to use rb_block_call without sucess...
<malomalo> banister`sleep: good work around for now.. I shall do that
<banister`sleep> malomalo: then, call the block_sender and pass along the receiver, method name, and block (as a proc)
<banister`sleep> that proc just converts a passed proc to a block, which is hard to do in pure c
<banister`sleep> yeah
thufir_ has joined #ruby
horofox has quit [Quit: horofox]
mockra has joined #ruby
bradhe has joined #ruby
<rickmasta> Would anyone know why my xpath returns an empty array?
slainer68 has quit [Remote host closed the connection]
znode has joined #ruby
gabrielrotbart has joined #ruby
znode__ has quit [Ping timeout: 255 seconds]
HecAtic has quit [Quit: HecAtic]
arya has quit [Ping timeout: 248 seconds]
bigmac has joined #ruby
thams has joined #ruby
tommyvyo has joined #ruby
inao has joined #ruby
FondoDeBikini has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
arya has joined #ruby
thams has quit [Client Quit]
thams has joined #ruby
bradhe has quit [Remote host closed the connection]
pakchoi2 has joined #ruby
lectrick has joined #ruby
io_syl_ has joined #ruby
bradhe has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
mduvall has quit []
io_syl has quit [Ping timeout: 252 seconds]
io_syl_ is now known as io_syl
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
wargasm has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
thams has quit [Client Quit]
<ner0x> using bundler how can I tell it to update a specific gem rather than all of them?
flexd has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
MrZYX is now known as MrZYX|off
malomalo has quit [Quit: Textual IRC Client: www.textualapp.com]
<Demux> gem "actionpack", "2.3.8"
<Demux> might try that
marcosdsanchez has quit [Quit: Page closed]
bradleyprice has joined #ruby
FondoDeBikini has joined #ruby
<otters> OMG
<otters> is it just me or does ruby 2.0 have keyword arguments????
pakchoi2 has quit [Ping timeout: 252 seconds]
<swills> it does
<otters> well, that's it
<ner0x> Demux: Well I was thinking more along the lines of how to update it in a bundled app.
<otters> it's as good as it'll get
marr has quit [Ping timeout: 252 seconds]
pavilionXP has joined #ruby
shanonlev has quit [Quit: shanonlev]
heliumsocket has quit [Quit: heliumsocket]
brum has joined #ruby
nfk has quit [Quit: yawn]
Kittylog has joined #ruby
dhruvasagar has joined #ruby
Kittylog has quit [Quit: Bye]
icole has quit [Remote host closed the connection]
krz has joined #ruby
NihilistDandy has joined #ruby
pakchoi2 has joined #ruby
Retistic has quit [Quit: Retistic]
brum has quit [Ping timeout: 256 seconds]
artOfWar has quit [Ping timeout: 244 seconds]
niklasb has quit [Ping timeout: 260 seconds]
nwertman has joined #ruby
dmiller has joined #ruby
Nisstyre has quit [Ping timeout: 244 seconds]
terceiro has quit [Quit: Ex-Chat]
reppard has joined #ruby
reppard has quit [Client Quit]
the_mentat has joined #ruby
NihilistDandy has quit [Quit: Textual IRC Client: www.textualapp.com]
pakchoi2 has quit [Ping timeout: 255 seconds]
Deltaoo has joined #ruby
etcetera has quit []
daniel_-_ has joined #ruby
bradhe has joined #ruby
tcstar has joined #ruby
daniel_- has quit [Ping timeout: 244 seconds]
heliumsocket has joined #ruby
tcstar has quit [Max SendQ exceeded]
tcstar has joined #ruby
pakchoi2 has joined #ruby
etcetera has joined #ruby
Wildhoney has quit [Ping timeout: 260 seconds]
<aedorn> CodeClimate seems to fail at picking up new files in a repository.. hmm.
pakchoi2 has quit [Client Quit]
bradhe has quit [Ping timeout: 276 seconds]
<rickmasta> Anyone here ever have an issue with Nokogiri returning an empty array with Xpath?
AntiTyping_ has joined #ruby
Nisstyre has joined #ruby
<wallerdev> xpath is dumb
wmoxam has joined #ruby
AntiTyping has quit [Ping timeout: 252 seconds]
AntiTyping_ is now known as AntiTyping
jbw has quit [Ping timeout: 276 seconds]
dmiller1 has joined #ruby
dhruvasagar has quit [Quit: Lost terminal]
dhruvasagar has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
zastern has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
jpcamara has quit [Quit: jpcamara]
poikon has joined #ruby
baroquebobcat has joined #ruby
zodiak has joined #ruby
thufir_ has quit [Quit: Leaving.]
adkron has quit [Ping timeout: 256 seconds]
cableray has joined #ruby
johnnyg1 has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
pdamer has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
adkron has joined #ruby
Bosox20051 has joined #ruby
Hanmac1 has joined #ruby
nat_home has joined #ruby
mercwithamouth has joined #ruby
artOfWar has joined #ruby
artOfWar has quit [Remote host closed the connection]
joofsh has joined #ruby
artOfWar has joined #ruby
Bosma has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
carloslopes has quit [Remote host closed the connection]
MrITR has quit [Ping timeout: 255 seconds]
jbw has joined #ruby
sailias has quit [Quit: Leaving.]
MartinCleaver has quit [Ping timeout: 260 seconds]
takeru_ has joined #ruby
thams has joined #ruby
Emplitz has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mlr has quit [Ping timeout: 255 seconds]
baroquebobcat has joined #ruby
Virunga has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
takeru_ has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
Axsuul has joined #ruby
toekutr has joined #ruby
jpcamara has joined #ruby
stopbit has quit [Quit: Leaving]
dmiller2 has joined #ruby
fir_ed has joined #ruby
dmiller1 has quit [Ping timeout: 255 seconds]
joofsh has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
elkclone has quit [Ping timeout: 264 seconds]
FondoDeBikini has quit []
arya has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
thams has quit [Quit: thams]
fcoury has quit [Ping timeout: 240 seconds]
hbpoison has joined #ruby
brum has joined #ruby
nik_-_ has joined #ruby
Spooner has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 252 seconds]
RJ3 has quit [Read error: Operation timed out]
[diecast] has quit [Ping timeout: 248 seconds]
moos3 has joined #ruby
kaichanvong has quit [Ping timeout: 245 seconds]
[0x1a] has quit [Ping timeout: 260 seconds]
brum has quit [Ping timeout: 244 seconds]
thejefflarson_ has quit [Ping timeout: 245 seconds]
srid has quit [Ping timeout: 245 seconds]
MrITR has joined #ruby
strax has quit [Ping timeout: 264 seconds]
notbrent has quit [Ping timeout: 248 seconds]
jaywastaken has quit [Remote host closed the connection]
hbpoison has joined #ruby
fhd has quit [Ping timeout: 245 seconds]
taoru has quit [Ping timeout: 252 seconds]
h4mz1d has joined #ruby
mrgoodcat has quit [Quit: Leaving]
nik_-_ has quit [Quit: nik_-_]
marcosdsanchez has joined #ruby
hbpoison has quit [Ping timeout: 276 seconds]
Cyrus has joined #ruby
Cyrus has quit [Max SendQ exceeded]
wmoxam has quit [Quit: leaving]
Cyrus has joined #ruby
Cyrus has quit [Max SendQ exceeded]
icole has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
icole has quit [Ping timeout: 252 seconds]
[rust] has joined #ruby
d2dchat has quit [Remote host closed the connection]
Pochacco has quit [Quit: Pochacco]
miso1337 has quit [Quit: afk]
adkron has quit [Ping timeout: 260 seconds]
pakchoi2 has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Pochacco has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
havenn has joined #ruby
pakchoi2 has joined #ruby
scruple has quit [Quit: Leaving]
girija has joined #ruby
hemanth has joined #ruby
freeayu3 has joined #ruby
Quebert has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
pakchoi2 has joined #ruby
skattyadz has quit [Quit: skattyadz]
freeayu__ has quit [Ping timeout: 245 seconds]
krawchyk has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
pakchoi2 has quit [Max SendQ exceeded]
etcetera has quit [Ping timeout: 255 seconds]
fir_ed has quit [Quit: Leaving]
rocket has quit [Read error: Connection reset by peer]
pakchoi2 has joined #ruby
tealmage has joined #ruby
rocket has joined #ruby
etcetera has joined #ruby
rocket has quit [Remote host closed the connection]
Quebert has quit [Ping timeout: 246 seconds]
<Sargun> What have you guys upgraded rails:memcached to?
hbpoison has joined #ruby
<havenn> Sargun: Probably will get better response in #RubyOnRails
angusiguess has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
tealmage has quit [Ping timeout: 244 seconds]
miso1337 has joined #ruby
taoru has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
heliumsocket has quit [Quit: heliumsocket]
miso1337 has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 276 seconds]
Deltaoo has quit [Ping timeout: 252 seconds]
marcosdsanchez has quit [Quit: Page closed]
pdamer has quit [Quit: pdamer]
raphie has joined #ruby
arya has joined #ruby
johnnyg1 has left #ruby [#ruby]
<raphie> I've got an array of amplitudes and corresponding time values. I'd like to do a frequency analysis on them. can anyone point me to the right direction?
notbrent has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
* hemanth liked to_h in ruby 2.0 http://h3manth.com/content/to_h-ruby-2.0 :)
Axsuul has quit [Ping timeout: 252 seconds]
kayloos has joined #ruby
gabrielrotbart has quit [Read error: Connection reset by peer]
pakchoi2 has quit [Read error: Connection reset by peer]
gabrielrotbart has joined #ruby
pakchoi2 has joined #ruby
steffes has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
justsee has quit [Quit: Leaving...]
chrishough has quit [Quit: chrishough]
brian___ has joined #ruby
h4mz1d has joined #ruby
pakchoi2 has quit [Ping timeout: 276 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
pakchoi2 has joined #ruby
mattbl has joined #ruby
Phrogz has joined #ruby
Phrogz has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
browndawg has joined #ruby
Tarential has quit [Excess Flood]
Tarential has joined #ruby
Quebert has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
techhelp has joined #ruby
nat_home has quit [Read error: Connection reset by peer]
radic has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
browndawg has quit [Read error: Connection reset by peer]
radic_ has quit [Ping timeout: 255 seconds]
io_syl has quit [Ping timeout: 252 seconds]
ananthakumaran has quit [Quit: Leaving.]
roadt has joined #ruby
<roadt> hi, how can i translate time to another timezone?
<roadt> in ruby. is any simple way or method in std library?
bradleyprice has quit [Remote host closed the connection]
xemu has quit [Ping timeout: 260 seconds]
io_syl has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
taoru has quit [Remote host closed the connection]
mduvall has joined #ruby
taoru has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
hbpoison has quit [Ping timeout: 252 seconds]
tish has quit [Quit: Leaving.]
h4mz1d has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
<Myconix> roadt
<Myconix> You can probably just subtract the target time with another time instance
ccbn has quit [Quit: Page closed]
mattbl has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Quit: tylersmith]
hbpoison has joined #ruby
<roadt> Myconix: ah, nice one.
jekotia has quit [Remote host closed the connection]
<roadt> Myconix: so stdlib doesn't have explicit zone translation support yet, isn't it?
SCommette has quit [Quit: SCommette]
<Myconix> I'm not sure
<roadt> Myconix: beside to use + - in stdlib, is any good gems suggested?
<Myconix> I could go check if you
<Myconix> like
<Myconix> not for time, no
SCommette has joined #ruby
SCommette has quit [Client Quit]
<Myconix> if it bugs you to add/subtract, you could probably modify the TIme module in your script
<Myconix> and add a function that sets it back hours depending on a given
ryanf has quit [Ping timeout: 255 seconds]
h4mz1d has quit [Ping timeout: 244 seconds]
<roadt> Myconix: oh tks, i can check it (stdlib).
kayloos has quit [Quit: kayloos]
<roadt> Myconix: you mean patch some code to Time module
yshh has quit [Remote host closed the connection]
<Myconix> yeah
<roadt> Myconix: nice, got it.
emmanuelux has quit [Quit: emmanuelux]
yshh has joined #ruby
* roadt will give it a shot and see how it goes.
hbpoison has quit [Read error: Connection reset by peer]
<Myconix> actually, you might be able to do something with utc_offset
s0ber has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
<Myconix> idono for sure, I never liked the Time instance that much
s0ber has joined #ruby
<Myconix> but that's IMO
sandGorgon has joined #ruby
<werdnativ> roadt: Time only handles utc and "local" which is your ENV['TZ'] besides that you can use .localtime('-08:00') to shift it but it won't respect the DST changes like a true local time does.
angusiguess has joined #ruby
rburton- has joined #ruby
<werdnativ> If you need multiple zones, I highly recommend require 'active_support/time' and use Time.zone = 'Africa/Timbuktu'; Time.zone.now; Time.zone.local(y, m, d); other_time.in_time_zone('Asia/Tokyo') etc.
<roadt> Myconix: that is readonly attributes, so that i suspect stdlib timezone doesn't have any support. but seems werdnativ do meantion there is localtime(offset) one.;)
<roadt> werdnativ: ah, tks. rails time enchancement?
artOfWar has quit [Ping timeout: 276 seconds]
<werdnativ> yes, rails uses it.
arya has quit [Ping timeout: 252 seconds]
<roadt> werdnativ: ah, thanks, i'll give it a try.
<werdnativ> I kinda wish core ruby had it built in. The basic Time classes kind of suck.
objectivemo has quit [Ping timeout: 255 seconds]
<roadt> werdnativ: agree that.
rocket has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
arya has joined #ruby
bradhe has joined #ruby
jpcamara has quit [Quit: jpcamara]
axtran has quit [Remote host closed the connection]
taoru_ has joined #ruby
takeru has joined #ruby
<roadt> werdnativ: that's great summary.
Quebert has quit [Ping timeout: 248 seconds]
<werdnativ> thanks.
j^2 has quit [Ping timeout: 244 seconds]
Mattx has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
daniel_-_ has quit [Ping timeout: 252 seconds]
pakchoi2 has quit [Quit: This computer has gone to sleep]
taoru has quit [Ping timeout: 260 seconds]
Phrogz has quit [Remote host closed the connection]
Matip has quit [Ping timeout: 244 seconds]
dallasm has joined #ruby
takeru has quit [Ping timeout: 256 seconds]
divout has joined #ruby
blacksta_ has quit [Remote host closed the connection]
MrITR has quit [Quit: Ex-Chat]
mcarron_ has joined #ruby
Quebert has joined #ruby
rocket has quit [Ping timeout: 264 seconds]
steffes has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
arya has quit [Ping timeout: 256 seconds]
etcetera has quit []
otherj has joined #ruby
etcetera has joined #ruby
artOfWar has joined #ruby
artOfWar has quit [Remote host closed the connection]
arya has joined #ruby
artOfWar has joined #ruby
mduvall has quit []
fcoury has joined #ruby
hbpoison_ has joined #ruby
Sonja has joined #ruby
<Sonja> whoa 2.0
havenn has quit [Remote host closed the connection]
siluat has joined #ruby
tjbiddle has joined #ruby
verysoftoiletppr has joined #ruby
dallasm has quit [Remote host closed the connection]
ryanf has joined #ruby
<breakingthings> two point oh?
<breakingthings> TWO
<breakingthings> POINT
<breakingthings> OH.
tjbiddle_ has joined #ruby
breakingthings has quit []
hbpoison has quit [Ping timeout: 256 seconds]
meoblast001 has quit [Remote host closed the connection]
[diecast] has joined #ruby
bubblehead has quit [Remote host closed the connection]
strax has joined #ruby
[0x1a] has joined #ruby
RJ3_ has joined #ruby
fhd has joined #ruby
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
<aedorn> I'm waiting for 2.0.3-p392
kaichanvong has joined #ruby
thejefflarson_ has joined #ruby
srid has joined #ruby
otherj has quit []
<Sonja> aedorn why?
hbpoison_ has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
slyv has quit [Quit: Computer has gone to sleep.]
<aedorn> It's a 0.1.0 improvement over 1.9.3-p392, which means I can justify the obvious numerical improvements!
<Sonja> :S
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
Phrogz has joined #ruby
Phrogz has joined #ruby
mattbl has joined #ruby
arya has quit [Ping timeout: 245 seconds]
mcarron_ has quit [Quit: Ex-Chat]
mattbl has quit [Client Quit]
techhelp has quit [Quit: This computer has gone to sleep]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
Radnor has joined #ruby
arya has joined #ruby
ananthakumaran has joined #ruby
raphie has quit [Remote host closed the connection]
artOfWar has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 264 seconds]
otters has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Remote host closed the connection]
bradhe has joined #ruby
ner0x has quit [Quit: Leaving]
thufir_ has joined #ruby
roadt has quit [Ping timeout: 244 seconds]
Phrogz has quit [Remote host closed the connection]
rocket has joined #ruby
V8Energy has quit [Ping timeout: 256 seconds]
otters has joined #ruby
macmartine has joined #ruby
sandGorgon has quit [Read error: Connection reset by peer]
codecop has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
sandGorgon has joined #ruby
Quebert has quit [Ping timeout: 245 seconds]
icole has joined #ruby
brum_ has joined #ruby
nachtwandler has joined #ruby
sandGorgon has quit [Read error: Connection reset by peer]
sandGorgon has joined #ruby
nightfly has joined #ruby
artOfWar has joined #ruby
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
tish has joined #ruby
beiter_ has joined #ruby
Sonja has quit []
beiter has quit [Ping timeout: 252 seconds]
beiter_ is now known as beiter
krz has quit [Ping timeout: 260 seconds]
Monie has quit [Quit: This computer has gone to sleep]
Shrink has joined #ruby
dmiller2 has quit [Read error: Operation timed out]
arya has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
krz has joined #ruby
arya has joined #ruby
love_color_text has joined #ruby
PanPan has joined #ruby
znode has quit [Remote host closed the connection]
Shrink has quit [Read error: Connection reset by peer]
znode has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
taoru_ has quit [Remote host closed the connection]
taoru has joined #ruby
ryanf has quit [Ping timeout: 276 seconds]
ryanf has joined #ruby
znode_ has joined #ruby
brum_ has quit [Remote host closed the connection]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
spaceships has quit [Ping timeout: 260 seconds]
yacks has joined #ruby
znode has quit [Ping timeout: 252 seconds]
xpen has joined #ruby
Retistic has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
[rust] has quit [Quit: This computer has gone to sleep]
[rust] has joined #ruby
roadt has joined #ruby
havenwood has quit [Remote host closed the connection]
noop has joined #ruby
pyrac has joined #ruby
banister_ has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
lolmaus has joined #ruby
banister`sleep has quit [Ping timeout: 256 seconds]
tar_ has quit [Quit: farewell]
genevievepablo has joined #ruby
<genevievepablo> Xiruki
genevievepablo has left #ruby [#ruby]
mockra has quit [Remote host closed the connection]
Monie has joined #ruby
mattbl has joined #ruby
Rizzle has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
icole has quit [Remote host closed the connection]
arya has quit [Ping timeout: 252 seconds]
tagrudev has joined #ruby
JohnBat26 has joined #ruby
subbyyy has quit [Ping timeout: 244 seconds]
haxrbyte_ has joined #ruby
tomzx_mac has quit [Ping timeout: 252 seconds]
io_syl has quit [Ping timeout: 252 seconds]
arya has joined #ruby
dhruvasagar has joined #ruby
tjbiddle_ has joined #ruby
Elhu has joined #ruby
octoberry has joined #ruby
brum has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
wf2f has quit []
io_syl has joined #ruby
tjbiddle_ has quit [Client Quit]
averiso has joined #ruby
dangerousdave has joined #ruby
tjbiddle has quit [Ping timeout: 260 seconds]
arya_ has joined #ruby
pepps has quit [Ping timeout: 252 seconds]
brum has quit [Ping timeout: 260 seconds]
arya has quit [Ping timeout: 256 seconds]
apeiros_ has quit [Ping timeout: 245 seconds]
generalissimo has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
octoberry has quit [Ping timeout: 260 seconds]
Dreamer3 has quit [Ping timeout: 240 seconds]
BeLucid has quit [Ping timeout: 260 seconds]
Dreamer3 has joined #ruby
BeLucid has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
puppeh has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
siluat has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 252 seconds]
puppeh has quit [Remote host closed the connection]
mafolz has joined #ruby
mockra has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
nachtwandler has quit [Remote host closed the connection]
havenwood has joined #ruby
puppeh has joined #ruby
aganov has joined #ruby
nari has quit [Ping timeout: 245 seconds]
kristofers has joined #ruby
AntiTyping has quit [Quit: AntiTyping]
mockra has quit [Ping timeout: 252 seconds]
Villadelfia has quit [Read error: Operation timed out]
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
pyrac has quit [Quit: pyrac]
blaxter has joined #ruby
[rust] has quit [Quit: Leaving]
SeySayux has quit [Ping timeout: 260 seconds]
pyrac has joined #ruby
banghouse2 is now known as banghouse
gabrielrotbart has quit [Remote host closed the connection]
pyrac has quit [Client Quit]
Villadelfia has joined #ruby
AntiTyping has joined #ruby
budmang has quit [Read error: Connection reset by peer]
SeySayux has joined #ruby
freeayu3 has quit [Ping timeout: 256 seconds]
shirokuro11 has joined #ruby
shirokuro11 has quit [Remote host closed the connection]
speakingcode has quit [Quit: Lost terminal]
budmang has joined #ruby
bigkevmcd has joined #ruby
freeayu3 has joined #ruby
wallerdev has quit [Quit: wallerdev]
nari has joined #ruby
decoponio has joined #ruby
arturaz has joined #ruby
etcetera has quit []
AntiTyping has quit [Quit: AntiTyping]
znode_ has quit [Remote host closed the connection]
S1kx has quit [Quit: Leaving]
otters has quit [Ping timeout: 264 seconds]
arya has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
arya_ has quit [Ping timeout: 256 seconds]
nomenkun has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
dr_bob has joined #ruby
bigkevmcd has joined #ruby
peteyg has quit [Ping timeout: 256 seconds]
otters has joined #ruby
workmad3 has joined #ruby
apeiros_ has joined #ruby
_bart has quit [Quit: _bart]
S1kx has joined #ruby
Monie has quit [Quit: Leaving]
Morkel has joined #ruby
arya has quit [Ping timeout: 248 seconds]
aedorn has quit [Quit: Leaving]
sinusss has joined #ruby
filipe has joined #ruby
anderse has joined #ruby
tcstar has quit [Quit: Leaving]
emergion has joined #ruby
braoru has joined #ruby
arya has joined #ruby
anderse has quit [Quit: anderse]
hamed_r has joined #ruby
havenwood has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
sayan has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
icole has joined #ruby
arya has joined #ruby
brum has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
bradhe has joined #ruby
vlad_starkov has joined #ruby
techlife has quit [Read error: Connection reset by peer]
V8Energy has joined #ruby
zzing has quit [Quit: Computer has gone to sleep.]
jgrevich has quit [Remote host closed the connection]
eldariof has joined #ruby
codespectator has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bradhe_ has joined #ruby
yewton has quit [Excess Flood]
bradhe has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
brum has quit [Ping timeout: 252 seconds]
gosshedd has joined #ruby
timonv has joined #ruby
arturaz has quit [Ping timeout: 276 seconds]
yewton has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
monkegji_ has joined #ruby
taoru has quit [Remote host closed the connection]
earthquake has quit [Read error: Operation timed out]
timonv has quit [Ping timeout: 255 seconds]
earthquake has joined #ruby
banghouse has quit [Remote host closed the connection]
techlife has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
pepps has joined #ruby
zigomir has joined #ruby
CraHan|out is now known as CraHan
monkegji_ has quit [Remote host closed the connection]
mockra has joined #ruby
dangerousdave has quit [Quit: Leaving...]
bradhe_ has quit [Remote host closed the connection]
zigomir has quit [Client Quit]
bradhe has joined #ruby
zigomir has joined #ruby
pepps has quit [Ping timeout: 256 seconds]
rhyselsmore_ has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
jprovazn has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mockra has quit [Ping timeout: 264 seconds]
bradhe has quit [Ping timeout: 244 seconds]
arya_ has quit [Client Quit]
lkba has quit [Ping timeout: 252 seconds]
mahmoudimus has joined #ruby
schaerli has joined #ruby
averiso has quit [Ping timeout: 256 seconds]
monkegji_ has joined #ruby
techlife has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
bugo has left #ruby [#ruby]
techlife has joined #ruby
alup has joined #ruby
NobbZ has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
main has quit [Ping timeout: 264 seconds]
pyrac has joined #ruby
m3pow has quit [Read error: Operation timed out]
miso1337 has joined #ruby
maxmanders has joined #ruby
jimeh has joined #ruby
kevinfagan has joined #ruby
nomenkun has joined #ruby
k610 has joined #ruby
love_color_text has quit [Remote host closed the connection]
Al__ has joined #ruby
love_color_text has joined #ruby
marr has joined #ruby
coderhs has joined #ruby
freeayu3 has quit [Ping timeout: 264 seconds]
<coderhs> Congrats on releasing Ruby 2.0.0-p0 :)
Deltaoo has joined #ruby
richardjortega has quit [Quit: richardjortega]
carraroj has joined #ruby
mpfundstein has joined #ruby
mneorr has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
railsbros_dirk has joined #ruby
shirokuro11 has joined #ruby
Slivka has joined #ruby
roadt has quit [Ping timeout: 276 seconds]
maxmanders has quit [Ping timeout: 252 seconds]
railsbros_dirk has quit [Client Quit]
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
maxmanders has joined #ruby
Bosox20051 has quit [Quit: Leaving]
Elhu has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
bradhe has joined #ruby
railsbros_dirk has joined #ruby
Freddie has joined #ruby
hoelzro|away is now known as hoelzro
maxmanders has quit [Ping timeout: 252 seconds]
_bart has joined #ruby
elico has joined #ruby
brum has joined #ruby
maxmanders has joined #ruby
luismreis has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 260 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
brum has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
rhyselsmore_ has joined #ruby
bradhe has joined #ruby
buscon has joined #ruby
ferdev|away is now known as ferdev
freeayu has joined #ruby
rhyselsmore_ has quit [Client Quit]
charliesome_ has joined #ruby
k610 has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 255 seconds]
charliesome_ is now known as charliesome
k610 has joined #ruby
jfontan has joined #ruby
jfontan has quit [Client Quit]
elico has quit [Remote host closed the connection]
chussenot has joined #ruby
neurotech has joined #ruby
chussenot has quit [Client Quit]
chussenot has joined #ruby
main has joined #ruby
mockra has joined #ruby
Deltaoo has quit [Ping timeout: 246 seconds]
fixl has joined #ruby
mockra has quit [Ping timeout: 264 seconds]
m3pow has joined #ruby
ozgura has quit [Read error: Connection reset by peer]
ozgura has joined #ruby
yacks has quit [Read error: Connection reset by peer]
Wildhoney has joined #ruby
razibog has joined #ruby
mengu has joined #ruby
Vainoharhainen has joined #ruby
ferdev has quit [Quit: Leaving...]
blacktulip has joined #ruby
postmodern has quit [Read error: Operation timed out]
ephemerian has joined #ruby
Wildhoney has quit []
yacks has joined #ruby
staafl_alt has joined #ruby
main has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
maxmanders has quit [Ping timeout: 260 seconds]
berserkr has joined #ruby
workmad3 has joined #ruby
staafl has quit [Ping timeout: 252 seconds]
Shrink has quit [Ping timeout: 260 seconds]
anderse has joined #ruby
Wildhoney has joined #ruby
maxmanders has joined #ruby
elaptics`away is now known as elaptics
arturaz has joined #ruby
bradhe has quit [Remote host closed the connection]
khismetix has joined #ruby
bradhe has joined #ruby
lancepantz_ is now known as lancepantz
lancepantz is now known as lancepantz_
undersc0re97 has quit [Remote host closed the connection]
bradhe has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
buscon has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
sinusss has quit []
averiso has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
undersc0re97 has joined #ruby
cba has joined #ruby
Deltaoo has joined #ruby
staafl_alt has quit [Ping timeout: 252 seconds]
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
skattyadz has joined #ruby
Retistic has quit [Quit: Retistic]
Nahrae has joined #ruby
staafl has joined #ruby
<Nahrae> Hello
main has joined #ruby
Al__ has quit [Quit: Al__]
hiall has joined #ruby
banister`sleep has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
ferdev has joined #ruby
timonv has quit [Remote host closed the connection]
<hoelzro> ahoy
<Nahrae> Hi
douglarek has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
staafl_alt has joined #ruby
Domon has joined #ruby
hiall has quit [Client Quit]
Nahrae has left #ruby [#ruby]
staafl has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
niklasb has joined #ruby
mneorr has joined #ruby
buscon has joined #ruby
jfontan has joined #ruby
NihilistDandy has joined #ruby
highbeats has quit [Quit: Leaving]
love_color_text has quit [Remote host closed the connection]
rdark has joined #ruby
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
objectivemo has joined #ruby
averiso has quit [Read error: Connection timed out]
jfontan has quit [Client Quit]
eklarskov has joined #ruby
elico has joined #ruby
artOfWar has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
yacks has quit [Ping timeout: 244 seconds]
brum has joined #ruby
love_color_text has joined #ruby
sayan has quit [Read error: Connection reset by peer]
averiso has joined #ruby
Al__ has joined #ruby
takeru_ has joined #ruby
carraroj has joined #ruby
icole has quit [Remote host closed the connection]
poikon_work has quit [Remote host closed the connection]
freeayu has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
poikon has joined #ruby
brum has quit [Ping timeout: 256 seconds]
timmow has joined #ruby
timmow has quit [Remote host closed the connection]
beilabs_ has joined #ruby
darthdeus has joined #ruby
nari has quit [Ping timeout: 245 seconds]
<darthdeus> rbenv global 2.0.0-p0 :->
<whitequark> chruby 2.0 !
timmow has joined #ruby
timmow has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
brian___ has quit [Read error: Connection reset by peer]
<darthdeus> is there a solution for the bundler ssl thingy?
timmow has joined #ruby
brian___ has joined #ruby
<darthdeus> i read about it on twitter but didn't find an issue
pyrac has quit [Read error: Connection reset by peer]
<darthdeus> and just got it "SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)" .. :(
pyrac has joined #ruby
yshh has quit [Remote host closed the connection]
<whitequark> darthdeus: OS?
<darthdeus> os x
<darthdeus> mountain lion
<Hanmac1> you can use ssl on osx? :D
Hanmac1 is now known as Hanmac
dhruvasagar has quit [Read error: Connection reset by peer]
mockra has joined #ruby
dhruvasagar has joined #ruby
takeru_ has quit [Remote host closed the connection]
skattyadz has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 276 seconds]
mockra has quit [Ping timeout: 252 seconds]
ozgura has quit [Remote host closed the connection]
averiso has quit [Ping timeout: 252 seconds]
cousine has joined #ruby
yewton has quit [Excess Flood]
arya has joined #ruby
predator217 has quit [Ping timeout: 252 seconds]
predator117 has joined #ruby
toekutr has quit [Read error: Connection reset by peer]
yewton has joined #ruby
staafl_123 has joined #ruby
yacks has joined #ruby
lewis1711 has quit [Quit: Leaving]
skattyadz_ has joined #ruby
<maetthew> Anyone else having trouble installing 2.0.0 on OSX?
staafl_alt has quit [Ping timeout: 252 seconds]
<darthdeus> yes
<darthdeus> i can install, bundle fails with the openssl thingy
<maetthew> oh so you can install anyway
<maetthew> :)
cba has quit [Remote host closed the connection]
gyre007 has joined #ruby
staafl_123 has quit [Ping timeout: 252 seconds]
cousine has quit [Read error: Connection reset by peer]
peteyg has joined #ruby
<darthdeus> maetthew: yeah, but i can't use :\
<maetthew> I'm trying to install through RVM and get this error message
bradhe has joined #ruby
<darthdeus> are you using gcc and not clang?
<maetthew> hmm not sure :)
<workmad3> there seems to be a fair few issues with ruby 2 and mac osx... all the ones I've seen so far relate to openssl
tish has quit [Quit: Leaving.]
<maetthew> darthdeus: how can i check? :P
skattyadz_ has quit [Read error: No route to host]
<darthdeus> maetthew: export CC=/usr/local/bin/gcc-4.2
<darthdeus> workmad3: yep
<workmad3> darthdeus: I'm guessing you used ruby-build to install? did it go through installing it's own version of openssl 1.0.1e?
<darthdeus> workmad3: yes it did
roadt has joined #ruby
<workmad3> darthdeus: do you have homebrew installed?
<darthdeus> workmad3: yes
<darthdeus> workmad3: installation was successful, then gem install bundler --pre ... and `bundle` anywhere after that fails with the ssl error
TomJ has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
peteyg has quit [Ping timeout: 256 seconds]
tish has joined #ruby
<darthdeus> should i reinstall openssl in brew?
lkba has joined #ruby
MrZYX|off is now known as MrZYX
<maetthew> darthdeus: I get the same error message :/
<workmad3> darthdeus: you could try 'brew install openssl' followed by rebuilding ruby with 'RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" <ruby-build install command here>'
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
Shrink has quit [Ping timeout: 264 seconds]
cableray has quit [Quit: cableray]
<workmad3> darthdeus: that worked for me last night, and no issues with installing gems afterwards, so I assume that the brew openssl hooks up to your mac CA repository correctly while the ruby-build one doesn't
<darthdeus> workmad3: is there any "cleaner" workaround?
<workmad3> darthdeus: not that I know of
txdv has quit [Read error: Operation timed out]
pakchoi2 has joined #ruby
<workmad3> darthdeus: mac's openssl is too old, you need an updated one, and there seems to be issues with the one that ruby-build installs
<darthdeus> i do have that one installe with homebrew
<workmad3> darthdeus: I couldn't even get ruby2 to compile without doing that with the RUBY_CONFIGURE_OPTS :)
<darthdeus> i'll give it a day or so until it gets fixed in ruby-build :)
<workmad3> darthdeus: kept on crapping out with weird redefinition errors in openssl stuff
tish has quit [Ping timeout: 252 seconds]
pakchoi2 has quit [Max SendQ exceeded]
<workmad3> darthdeus: I'd personally trust openssl built by homebrew more than an openssl built by ruby-build ;)
spider-mario has joined #ruby
pakchoi2 has joined #ruby
<darthdeus> workmad3: yeah, but i'd expect ruby-build to use it if it exists :\
<workmad3> darthdeus: homebrew doesn't add it to the path
<darthdeus> starting to think if rvm is a better choice :D
<darthdeus> i have it in my path
NihilistDandy has quit [Quit: Textual IRC Client: www.textualapp.com]
<darthdeus> oh i dont
<darthdeus> lol
Wildhoney has quit []
pakchoi2 has quit [Max SendQ exceeded]
<workmad3> darthdeus: also, ruby-build has already removed stuff to use the homebrew openssl if it exists, because 'they don't want to be too tied to homebrew'
<workmad3> darthdeus: this problem has been around for the ruby2 preview releases too ;)
<darthdeus> workmad3: if it works out of the box i don't really care how they do it :) afaik rvm compiles it separately as well
pakchoi2 has joined #ruby
<darthdeus> and i think the same thing happesn with libyaml
<workmad3> libyaml is a bit different from openssl
cousine has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
pakchoi2 has joined #ruby
fermion has joined #ruby
Mon_Ouie has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
<darthdeus> how come?
vlad_starkov has joined #ruby
pakchoi2 has joined #ruby
<darthdeus> it both feels hacky
<workmad3> libyaml doesn't need the same sort of setup in order to go from 'compiled' to 'usable'
<workmad3> openssl you need to compile, then you need to set up things like trusted CA certs, etc.
xpen has quit [Remote host closed the connection]
pakchoi2 has quit [Max SendQ exceeded]
Domon has quit [Remote host closed the connection]
<workmad3> if you don't, then things that use it start to get things like certificates that can't be verified
pakchoi2 has joined #ruby
bubblehead has joined #ruby
nari has joined #ruby
<darthdeus> this might sound really dumb but .. why can't it just install the correct version with the curl-ca-bundle?
cousine has quit [Remote host closed the connection]
pakchoi2 has quit [Excess Flood]
ozgura has joined #ruby
tealmage has joined #ruby
pakchoi2 has joined #ruby
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
pakchoi2 has quit [Max SendQ exceeded]
pakchoi2 has joined #ruby
pskosinski has joined #ruby
Elhu has joined #ruby
mikecmpbll has joined #ruby
<workmad3> darthdeus: it could, and arguably should... which is part of why I trust homebrew's version more than the ruby-build one ;)
bubblehead has quit [Ping timeout: 276 seconds]
pakchoi2 has quit [Max SendQ exceeded]
maxmanders has quit [Quit: Computer has gone to sleep.]
dblack_ has joined #ruby
<workmad3> darthdeus: as at least that one tells you about the curl-ca-bundle and gives you the ability to install it easily
pakchoi2 has joined #ruby
<darthdeus> workmad3: but we should have a "one-click-easy-install" thing, not a "read 50 articles about openssl and certificates before you can use 2.0"
tealmage has quit [Ping timeout: 246 seconds]
maxmanders has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
<darthdeus> the moment someone tells me to change compile parameters to make it work it's instant "i'm not using this in production" :)
pakchoi2 has joined #ruby
<workmad3> darthdeus: it's only mac that you need to do it
<maetthew> darthdeus: my problem seems to have been that the XCode Command Line Tools got fucked up last time I updated XCode
<maetthew> seems to be working now after reinstall
vlad_starkov has quit [Ping timeout: 264 seconds]
<workmad3> darthdeus: because the mac version of openssl is too ancient... no other common platform seems to have the issue
<workmad3> darthdeus: also, it's pretty damn common to have to change compile parameters in production builds to tune things :P
spider-mario_ has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
ozgura_ has joined #ruby
<darthdeus> workmad3: tuning !== making it work, and last time i checked about 70% rails developers use macs :P github uses macs, everyone i know but one guy uses macs ... :)
pskosinski has quit [Read error: Connection reset by peer]
<darthdeus> workmad3: nothing against linux, but it should work out of the box on a mac, no matter what the OS has by default
<workmad3> darthdeus: sure, for development... not production
ozgura has quit [Read error: Connection reset by peer]
pakchoi2 has quit [Max SendQ exceeded]
spider-mario_ has quit [Read error: Connection reset by peer]
sonda has joined #ruby
mengu_ has joined #ruby
<darthdeus> maetthew: reinstall os x or xcode?
<maetthew> darthdeus: well xcode :)
<darthdeus> maetthew: because i upgraded to mountain lion yesterday
mengu has quit [Ping timeout: 244 seconds]
pakchoi2 has joined #ruby
<workmad3> darthdeus: I use a mac for dev, I just accepted that if I wanted to use ruby 2 the day after release, on a platform that has dependencies that are known to be too old, I'd need to tweak a couple of things
<workmad3> darthdeus: no doubt the build issues will be sorted out, at that time I'll evaluate if I trust the way they do it
brum has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
yewton has quit [Excess Flood]
pakchoi2 has joined #ruby
emergion has joined #ruby
<workmad3> darthdeus: but ruby-build has been circling this issue for months now without actually settling on a decent solution
hiall has joined #ruby
<JonnieCache> its because apple refuses to use anything thats GPLv3
<workmad3> darthdeus: I haven't paid much attention to rvm, maybe their solution is better (probably is, they seem to be a bit hotter on getting things working)
<darthdeus> workmad3: what d you suggest other than ruby-build though?
<workmad3> JonnieCache: ah, that's good to know :)
yewton has joined #ruby
<JonnieCache> so a lot of the stuff they stick at the last gpl2 version
<JonnieCache> so half of the shit is out of date
<JonnieCache> thats also why it doesnt use samba any more
wobblini has joined #ruby
<workmad3> darthdeus: compile by hand, use rvm, use ruby-build, see if you can find a binary build, see if homebrew has an updated formula for ruby 2 yet... many options
<JonnieCache> the fear of course is that apple plans to lock down os x completely within a few years
<JonnieCache> because the gpl3 has clauses which prevent that
<workmad3> JonnieCache: they probably are :)
hbpoison has joined #ruby
mengu__ has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
<workmad3> JonnieCache: hell, I'm still on 10.6, in part because I don't like how they're forcing everything through the app store in later versions
cousine has joined #ruby
<JonnieCache> i guess they think they'll have locked enough developers into making money off the ios ecosystem by that that the inevitable developer exodus back to linux wont matter
<JonnieCache> *by then
brum has quit [Ping timeout: 252 seconds]
<JonnieCache> theyre not forcing everything through the app store, depending on what you mean by forcing. you can still run whatever binary you want if you disable the signature check
<darthdeus> workmad3: tryin rvm install now :) let's see how that works
<JonnieCache> but yeah the writings on the wall isnt it
yacks has quit [Ping timeout: 245 seconds]
elico has quit [Ping timeout: 255 seconds]
mengu_ has quit [Ping timeout: 252 seconds]
BizarreCake has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
freeayu has joined #ruby
skattyadz has quit [Quit: skattyadz]
PanPan has quit [Quit: ChatZilla 0.9.90 [Firefox 18.0.2/20130201065344]]
nkr has joined #ruby
mockra has joined #ruby
icole has joined #ruby
skattyadz has joined #ruby
kernelpanik has joined #ruby
<kernelpanik> Hi guys!
<kernelpanik> the best way to set in a ruby script the argument?
<hoelzro> kernelpanik: what argument?
<hoelzro> like ARGV?
<kernelpanik> I would like do like " myscript.rb -n node1 node2 node3 :"
<kernelpanik> yes
<kernelpanik> but reading all after -n in this case
<hoelzro> kernelpanik: you should probably use an option parser then
cousine has quit [Remote host closed the connection]
<kernelpanik> the class
<kernelpanik> option parser?
icole has quit [Ping timeout: 252 seconds]
darthdeus has quit [Quit: Leaving...]
mockra has quit [Ping timeout: 276 seconds]
skattyadz has quit [Read error: Connection reset by peer]
<hoelzro> I don't have any particular one that I can recommend
<hoelzro> I don't actually use Ruby that much
skattyadz has joined #ruby
ndngvr has joined #ruby
eklarskov has quit [Ping timeout: 256 seconds]
dblack_ has quit [Quit: dblack_]
mneorr has quit [Remote host closed the connection]
eklarskov has joined #ruby
<finnomenon> I used 'jcommander' for a java project. I suggest you google "jcommander for ruby"
eka has joined #ruby
arya has quit [Ping timeout: 248 seconds]
werdnativ has quit [Quit: werdnativ]
hiall has quit [Quit: hiall]
<girija> kernelpanik, you might use trollop gem for it
arya has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
samphippen has joined #ruby
octoberry has joined #ruby
bradhe has joined #ruby
huoxito has quit [Quit: Leaving]
slainer68 has quit [Remote host closed the connection]
mephux has quit [Ping timeout: 260 seconds]
hiall has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
beilabs_ has quit [Quit: Leaving]
skattyadz_ has joined #ruby
cibs has quit [Ping timeout: 256 seconds]
skattyadz has quit [Ping timeout: 276 seconds]
skattyadz_ is now known as skattyadz
octoberry has quit [Ping timeout: 252 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
cibs has joined #ruby
hbpoison has joined #ruby
ph^ has joined #ruby
Al__ has quit [Ping timeout: 252 seconds]
banseljaj has quit [Ping timeout: 276 seconds]
TriOptimum has joined #ruby
malkomalko has joined #ruby
<shevy> kernelpanik slop is also nice, https://github.com/injekt/slop
banseljaj has joined #ruby
coolj1 has joined #ruby
elico has joined #ruby
averiso has joined #ruby
atyz has joined #ruby
macrun8 has quit [Ping timeout: 255 seconds]
pyrac has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
pyrac has joined #ruby
daniel_-_ has joined #ruby
averiso has quit [Client Quit]
chussenot has quit [Quit: chussenot]
artagnon has joined #ruby
<artagnon> If I put a README.rdoc in my extra_rdoc_files (in the gemspec), how do I access it via ri?
Pochacco has quit [Quit: Pochacco]
Eerbin has joined #ruby
marcgg has joined #ruby
faen has joined #ruby
coolj1 has quit [Client Quit]
marcgg_ has quit [Read error: No route to host]
elico has quit [Client Quit]
tealmage has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
Pochacco has joined #ruby
Pochacco has quit [Client Quit]
Pochacco has joined #ruby
samphippen has joined #ruby
darthdeus has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
tealmage has quit [Ping timeout: 252 seconds]
gosshedd has quit [Ping timeout: 244 seconds]
averiso has joined #ruby
takeru has joined #ruby
carloslopes has joined #ruby
<artagnon> Never mind, I just found out: `ri gemname:README.rdoc`
brum has joined #ruby
octoberry has joined #ruby
predator117 has joined #ruby
Al__ has joined #ruby
takeru has quit [Remote host closed the connection]
skattyadz has quit [Ping timeout: 252 seconds]
aryasam has joined #ruby
skattyadz has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
quazimodo has joined #ruby
brum has quit [Ping timeout: 252 seconds]
love_color_text has quit [Remote host closed the connection]
girija has quit [Ping timeout: 255 seconds]
skattyadz has quit [Client Quit]
tealmage has joined #ruby
love_color_text has joined #ruby
daniel_-_ has quit [Quit: WeeChat 0.3.9.2]
love_color_text has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 255 seconds]
Al__ has quit [Read error: Connection reset by peer]
wobblini has quit [Ping timeout: 256 seconds]
Al__ has joined #ruby
znode has joined #ruby
gosshedd has joined #ruby
the_mentat has joined #ruby
obs has joined #ruby
rlb3 has joined #ruby
MrSamuel has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
Al__ has quit [Client Quit]
aryasam has quit [Quit: Bye]
neurotech has quit [Remote host closed the connection]
hashmal has quit [Quit: Computer has gone to sleep.]
aryasam has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
mockra has joined #ruby
Nisstyre has quit [Ping timeout: 255 seconds]
nomenkun has joined #ruby
Al__ has joined #ruby
krz has quit [Quit: krz]
slainer68 has joined #ruby
mockra has quit [Ping timeout: 252 seconds]
undersc0re97 has quit [Quit: "The destruction of balance constitutes leaping forward and such destruction is better than balance. Imbalance and headache are good things." - Mao]
<Eerbin> does ruby support to_s for all objects?
zoonfafer has joined #ruby
<Hanmac> jep
<workmad3> Eerbin: there's a to_s on Object, so all objects inherit it
<workmad3> Eerbin: unless you create a subclass of BasicObject, or explicitly undef to_s for something
<Eerbin> ok, thanks
<workmad3> >> puts BasicObject.new.to_s
<eval-in> workmad3: Output: "/tmp/execpad-a84197350938/source-a84197350938:1:in `<main>': undefined method `to_s' for #<BasicObject:0x8f0834c> (NoMethodError)\n" (http://eval.in/11153)
<Eerbin> Also, can new methods be added to standard, built in classes?
<Hanmac> yeah
<workmad3> Eerbin: yes
yacks has joined #ruby
<Hanmac> you also could delete methods of the standard classes :P
<workmad3> >> class Fixnum; def hi; "hi"; end; end; puts 1.hi
<eval-in> workmad3: Output: "hi\n" (http://eval.in/11154)
<Eerbin> thanks, i appreciate it
<workmad3> it's called monkeypatching
dannluciano has joined #ruby
miso1337 has quit [Quit: afk]
kofno has quit [Remote host closed the connection]
<TriOptimum> Hi! Is there a predefined global variable that provides info about the location of the latest error? If so, what?
monkegji_ has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 256 seconds]
<Hanmac> and removing methods is called monkeypawpatching :P
<TriOptimum> trying to learn some debugging
<banister`sleep> TriOptimum: $!.backtrace
dhruvasagar has joined #ruby
Nisstyre has joined #ruby
<banister`sleep> or just $! for the last exception
<TriOptimum> ok thanks
jpcamara has joined #ruby
AnarchoTroll has quit [Ping timeout: 245 seconds]
predator117 has quit [Ping timeout: 252 seconds]
aryasam has quit [Ping timeout: 264 seconds]
divout has quit [Remote host closed the connection]
mneorr has joined #ruby
cao_ has joined #ruby
cao_ has left #ruby [#ruby]
Phoop has joined #ruby
kofno has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
strg has joined #ruby
bradhe has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
Udom0 has joined #ruby
shirokuro11 has quit [Ping timeout: 272 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
carraroj has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
MrZYX has quit [Read error: Connection reset by peer]
haxrbyte_ has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
haxrbyte has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
obs has quit [Quit: Konversation terminated!]
banister`sleep has quit [Remote host closed the connection]
ewag has joined #ruby
bradhe has quit [Ping timeout: 244 seconds]
MrZYX|off has joined #ruby
MrZYX|off is now known as MrZYX
aryasam has joined #ruby
aryasam has quit [Client Quit]
chussenot has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
poikon has quit [Remote host closed the connection]
rocket has quit [Ping timeout: 252 seconds]
anderse has quit [Ping timeout: 245 seconds]
MrZYX has quit [Remote host closed the connection]
verysoftoiletppr has quit []
m8 has joined #ruby
moos3 has joined #ruby
ndrei has joined #ruby
anderse has joined #ruby
MrZYX|off has joined #ruby
predator117 has joined #ruby
MrZYX|off is now known as MrZYX
ndrei has quit [Client Quit]
tish has joined #ruby
znode has quit [Remote host closed the connection]
adkron has joined #ruby
Virunga has joined #ruby
tealmage has quit [Remote host closed the connection]
banister`sleep has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
MrSamuel has quit [Quit: MrSamuel]
alex___ has joined #ruby
<alex___> hello :)
miso1337 has joined #ruby
<hoelzro> ahoy
tk_ has joined #ruby
hashmal has joined #ruby
bubblehead has joined #ruby
<puppeh> any idea why this fails? http://pastie.org/6333411
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<hoelzro> puppeh: does Blog::Tag override ==?
<puppeh> hoelzro: no
<hoelzro> ok
<hoelzro> that's probably why
justsee has quit [Quit: Linkinus - http://linkinus.com]
<hoelzro> Ruby uses identity equivalence by default (iirc)
<hoelzro> rather than structural equivalence
miso1337 has quit [Client Quit]
asterite has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
<puppeh> hoelzro: hm so how would u solve this?
aloshkarev has joined #ruby
<hoelzro> you should either override ==
<hoelzro> or convince RSpec to compare things structurally
<puppeh> ok thx
subbyyy has joined #ruby
mulinux has joined #ruby
Elhu has joined #ruby
predator117 has quit [Remote host closed the connection]
EPIK has quit [Ping timeout: 276 seconds]
MartinCleaver has joined #ruby
MartinCleaver has quit [Remote host closed the connection]
dblack_ has joined #ruby
ewag has quit [Quit: Leaving]
yshh has joined #ruby
predator117 has joined #ruby
znode has joined #ruby
sayan has joined #ruby
V8Energy has quit [Ping timeout: 276 seconds]
d34th4ck3r has joined #ruby
brian___ has quit [Read error: Connection reset by peer]
brian____ has joined #ruby
geekbri has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
mulinux has quit [Quit: mulinux]
mulinux has joined #ruby
robustus has joined #ruby
subbyyy has quit [Quit: none 0.3.9.2]
mark_locklear has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
r0f0 has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
moos3 has joined #ruby
predator117 has joined #ruby
Phoop has quit [Quit: Phoop]
mockra has joined #ruby
jocellyn has joined #ruby
R_Macy has quit [Ping timeout: 248 seconds]
ferdev is now known as ferdev|away
mulinux has quit [Quit: mulinux]
pyrac has quit [Ping timeout: 246 seconds]
mockra has quit [Ping timeout: 240 seconds]
tealmage has joined #ruby
miso1337 has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
jocellyn has left #ruby [#ruby]
timmow has quit [Remote host closed the connection]
miso1337 has quit [Client Quit]
dustint has joined #ruby
tvw has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
Stilo has joined #ruby
dblack_ is now known as wobblini
robert__ has joined #ruby
robert__ has joined #ruby
robert__ has quit [Changing host]
Vert has joined #ruby
rlb3 has quit [Quit: rlb3]
hamed_r has quit [Quit: Leaving]
rlb3 has joined #ruby
malkomalko has quit [Remote host closed the connection]
tvw has quit []
robert_ has quit [Ping timeout: 255 seconds]
octoberry has quit [Ping timeout: 252 seconds]
Choclo has joined #ruby
rippa has joined #ruby
trevortwining has joined #ruby
trevortwining has quit [Client Quit]
trevortwining has joined #ruby
dannluciano has quit [Quit: dannluciano]
octoberry has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
joofsh has joined #ruby
bradhe has joined #ruby
huoxito has joined #ruby
crackedmind has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
davidcelis has quit [Quit: K-Lined.]
erichmenge has quit [Quit: Arrivederci!]
Phoop has joined #ruby
davidcelis has joined #ruby
tvw has joined #ruby
Uranio has joined #ruby
samphippen has joined #ruby
davidcelis has quit [Client Quit]
bradhe has quit [Ping timeout: 260 seconds]
davidcelis has joined #ruby
juco has joined #ruby
davidcelis has quit [Remote host closed the connection]
davidcelis has joined #ruby
tomzx_mac has joined #ruby
erichmenge has joined #ruby
v0n has joined #ruby
niklasb has quit [Ping timeout: 260 seconds]
tish has quit [Quit: Leaving.]
willob has joined #ruby
tish has joined #ruby
sayan has quit [Ping timeout: 255 seconds]
ferdev|away is now known as ferdev
VinceThePrince has joined #ruby
<TriOptimum> Capitalization of method names doesn't actually matter right?
greenarrow has quit [Quit: IRC is just multiplayer notepad]
averiso has quit [Quit: Computer has gone to sleep.]
wmoxam has joined #ruby
greenarrow has joined #ruby
<fbernier> is there an option to tell RVM not to get the binary ruby and compile from source instead?
rawler has quit [Ping timeout: 240 seconds]
otherj has joined #ruby
angusiguess has joined #ruby
enroxorz-work has joined #ruby
miso1337 has joined #ruby
yfeldblum has joined #ruby
sailias has joined #ruby
Asher2 has joined #ruby
r126l has joined #ruby
kraljev3 has joined #ruby
darthdeus has quit [Quit: Leaving...]
<kraljev3> In Ruby 2.0, there are named function parameters
jtperreault has quit [Quit: WeeChat 0.3.7]
Asher has quit [Disconnected by services]
dhruvasagar has quit [Ping timeout: 245 seconds]
Asher2 is now known as Asher
<kraljev3> how does the call differ from hash as the last argument
tealmage has quit [Remote host closed the connection]
<hoelzro> kraljev3: my guess is optimization, and you don't have to unbox the arguments
<hoelzro> ex. you don't have to do foo = params[:foo]
<kraljev3> i mean
zul_ has joined #ruby
<kraljev3> how does interpreter know
<kraljev3> which type of call do you mean to make
<kraljev3> foo(bar: 'bar', buz: 'buz')
<kraljev3> are those named parameters, or ending hash
<kraljev3> foo {bar: 'bar', buz: 'buz'}
<hoelzro> good question...
<hoelzro> they make have changed the syntax a bit
buscon has quit [Ping timeout: 260 seconds]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
<kraljev3> afaik it is the same
predator117 has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
spider-mario has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
the_mentat has joined #ruby
predator117 has joined #ruby
* hoelzro shrugs
<Hanmac> its only different for the function itself
<hoelzro> I haven't looked into it that much
<hoelzro> although I'm happy they added them
robert__ is now known as robert_
hbpoison has joined #ruby
PragCypher has joined #ruby
<zul_> Hi guys I have a string with this chars a = "helloè cioè" if I do a.split(/\W+/u) I get ["hello", "cio"] and I loose that chars. How can I solve this question?
samphippen has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Read error: Connection reset by peer]
<workmad3> kraljev3: looking at some examples, the interpreter just figures out that 'foo(bar: 'buz') ' matches the named param in 'def foo(bar: "fizz")'
VinceThePrince has quit [Quit: Leaving]
mikecmpbll has joined #ruby
_whitelogger has joined #ruby
<Hanmac> hoelzro: wrong poss of the ^ "helloè cioè".split(/[^[:alpha:]]+/u) #=> ["helloè", "cioè"]
<_bart> Since I updated to ruby 2.0.0 I get this: ArgumentError: cannot interpret as DNS name: nil
<_bart> in .rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/resolv.rb:1176:in `create'
<hoelzro> Hanmac: ah, good catch
sayan has joined #ruby
<zul_> hoelzro could you show me how please?
<hoelzro> zul_: I just did
<hoelzro> puts("helloè cioè".split(/[^[:alnum:]]/))
whitequark has joined #ruby
ferdev is now known as ferdev|away
<zul_> I try
<zul_> hoelzro thanks alot IT WORKS :)
freeayu has quit [Remote host closed the connection]
jerius has joined #ruby
<hoelzro> #encoding: UTF-8 should be enough to set the internal encoding of Ruby, right?
otherj has quit []
<hoelzro> I can't get my own example to run =/
<zul_> yes but I don't know how to use UTF-8
<kraljev3> When will ruby make utf-8 default?
<Hanmac> kraljev3 since yesterday :P
<kraljev3> really? :) :)
rawler has joined #ruby
<Hanmac> yeah its default in 2.0
Guest60953 is now known as mephux_
<Zelest> it scares me they mention rails though. :(
v0n has quit [Ping timeout: 255 seconds]
mephux_ has quit [Changing host]
mephux_ has joined #ruby
kevinfagan has quit [Quit: Leaving...]
Slivka has quit [Ping timeout: 260 seconds]
<workmad3> >> puts "helloè cioè".split(/[^\p{Word}]/)
<eval-in> workmad3: Output: "/tmp/execpad-6e8238d8c69d/source-6e8238d8c69d:1: invalid multibyte char (US-ASCII)\n/tmp/execpad-6e8238d8c69d/source-6e8238d8c69d:1: invalid multibyte char (US-ASCII)\n" (http://eval.in/11156)
takeru has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
<workmad3> bleh, not in utf-8 mode, bad eval-in
<workmad3> kraljev3: that worked for me though (/[^\p{Word}]/)
<hoelzro> how *do* you tell Ruby to use UTF-8?
<hoelzro> ah, I didn't know Ruby supported \p
<workmad3> hoelzro: #encoding=utf-8 magic comment
the_mentat has quit [Quit: Computer has gone to sleep.]
<workmad3> hoelzro: tells the runtime to interpret the source as utf-8
<yebyen> workmad3: does that make the encoding of the source file, or the stdio/stdin and files io?
<hoelzro> workmad3: that's not working for me =/
<yebyen> (or both)
<zul_> guys tahnks alot
<zul_> it works :)
afd__ has joined #ruby
jtharris has joined #ruby
<workmad3> yebyen: source file encoding... stdio/stdin have their encoding set by the environment, I believe
emergion has quit [Quit: Computer has gone to sleep.]
miso1337 has quit [Quit: afk]
sailias has joined #ruby
hashmal has joined #ruby
<workmad3> yebyen: and there's a set of methods for checking and manipulating encodings on files and strings read in during code execution
<kraljev3> Anybody here from Arch Linux know when 2.0 is going to be in the repos?
<kraljev3> Also, are all gems compatible?
miso1337 has joined #ruby
grayson_ has joined #ruby
takeru has quit [Ping timeout: 255 seconds]
pdamer has joined #ruby
miso1337 has quit [Client Quit]
<MrZYX> kraljev3: should be easy to update via the ABS manually https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/ruby&id=2140cce2d5191357c7d065e4ecc6d06bd21336fc
rippa has quit [Ping timeout: 240 seconds]
r4stakWhere has joined #ruby
r4stakWhere has quit [Client Quit]
theRoUS has joined #ruby
samphippen has joined #ruby
r4stakWhere has joined #ruby
jmara has quit [Quit: Leaving...]
joshman_ has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit:]
adkron has joined #ruby
xemu has joined #ruby
<TriOptimum> If an object has frozen status does clone method also copy the frozen status?
tommyvyo has joined #ruby
mockra has joined #ruby
r4stakWhere has quit [Client Quit]
octoberry has quit [Read error: Operation timed out]
r0f0 is now known as sl1m_sh4dy
Deltaoo has quit [Ping timeout: 244 seconds]
m3pow has quit [Read error: Connection reset by peer]
<hoelzro> see also Object#dup
<kraljev3> yes
<TriOptimum> cool, thanks
aloshkarev has quit [Quit: aloshkarev]
miso1337 has joined #ruby
jpfuentes2 has joined #ruby
banister`sleep has quit [Ping timeout: 276 seconds]
mockra has quit [Ping timeout: 260 seconds]
tish has quit [Quit: Leaving.]
kpshek has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
<whitequark> Ruby Cross Reference, now with 2.0.0-p1! http://rxr.whitequark.org/mri/source/?v=2.0.0-p0
shirokuro11 has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
znode has quit [Remote host closed the connection]
<yfeldblum> whitequark, p0
banghouse2 has joined #ruby
<yfeldblum> whitequark, also, cool!
d2dchat has joined #ruby
<yfeldblum> whitequark, i use that site from time to time to figure out how stuff works (or why it isn't working)
monkegji_ has joined #ruby
Vert has quit [Remote host closed the connection]
DaltonUS has joined #ruby
ExxKA has joined #ruby
cecilia has joined #ruby
DaltonUS has quit [Client Quit]
pskosinski has joined #ruby
DaltonUS has joined #ruby
<_bart> Is addressabler known to break with Ruby 2.0.0?
<whitequark> yfeldblum: augh :S that was a typo
<whitequark> but it's cool that you find it useful.
<_bart> I'm getting these cannot interpret as DNS name: nil errors :/
<_bart> and I have no idea why, it started happening when I install ruby 2.0.0, with my Rails project
<_bart> installed*
iamjarvo has joined #ruby
crazymykl has quit [Quit: Konversation terminated!]
pakchoi2 has joined #ruby
<_bart> I've narrowed it down, and it's happening somewhere in this gem: https://github.com/morgoth/alexa/blob/master/lib/alexa/connection.rb
<_bart> but I don't see a resolve there
<_bart> resolv*
<yfeldblum> whitequark, yep, thanks!
crazymykl has joined #ruby
cecilia has left #ruby ["Leaving"]
d34th4ck3r has quit [Read error: Connection reset by peer]
Al___ has joined #ruby
Al___ has quit [Client Quit]
<_bart> Ah, narrowed it down even further, this crashes: Net::HTTP.get_response(URI.parse("http://#{Alexa::API_HOST}/?" + 'google.com' + "&Signature=" + CGI::escape('abc')))
<_bart> with: ArgumentError: cannot interpret as DNS name: nil
<_bart> Ah, even this crashes with that error: Net::HTTP.get_response(URI.parse('http://google.com'))
<ExxKA> Hey guys. Do you know if the Syslog library in the standard lib is blocking or async? Alternatively, does it use UDP og unix sockets?
hbpoison has joined #ruby
Al__ has quit [Ping timeout: 264 seconds]
cantonic_ has joined #ruby
marr has quit [Ping timeout: 276 seconds]
pakchoi2 has quit [Quit: This computer has gone to sleep]
VinceThePrince has joined #ruby
bradhe has joined #ruby
cantonic has quit [Ping timeout: 244 seconds]
cantonic_ is now known as cantonic
cousine has joined #ruby
takeru has joined #ruby
asobrasil has joined #ruby
timmow has joined #ruby
mikepack has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
shirokuro11 has quit [Remote host closed the connection]
darthdeus has quit [Quit: Leaving...]
darthdeus has joined #ruby
kevinfagan has joined #ruby
ferdev|away is now known as ferdev
bradhe has quit [Ping timeout: 246 seconds]
averiso has joined #ruby
inao has quit [Quit: Linkinus - http://linkinus.com]
philcrissman has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
TriOptimum has quit [Quit: Leaving]
<_bart> Alright, I'm stuck, any idea guys: https://gist.github.com/bartolsthoorn/5030239 ?
artagnon has left #ruby [#ruby]
samphippen has quit [Quit: Computer has gone to sleep.]
<_bart> I get it when running rspec, but not in a console
<ExxKA> Strange why dns resolution won't work with rspec
<ExxKA> Can you do any other name lookups?
cousine has quit [Read error: Connection reset by peer]
cousine has joined #ruby
DrCode has joined #ruby
shirokuro11 has joined #ruby
DaltonUS has quit [Quit: DaltonUS]
hogeo has quit [Remote host closed the connection]
Elhu has joined #ruby
znode has joined #ruby
bean__ has joined #ruby
Elhu has quit [Client Quit]
tealmage has joined #ruby
tealmage has quit [Read error: Connection reset by peer]
<_bart> ExxKA: all domains will result in that error
Squarepy has joined #ruby
<_bart> ExxKA: it's only rails/rspec that is complaining, consoles seem fine
tealmage has joined #ruby
<ExxKA> Well that sounds like your network settings are not working then, but for ruby only
kpshek has quit []
<ExxKA> Are you using a socks proxy or something similar?
jgarvey has joined #ruby
mfcabrera has joined #ruby
iamjarvo has quit [Ping timeout: 252 seconds]
codecop has quit [Remote host closed the connection]
samphippen has joined #ruby
stopbit has joined #ruby
arquebus has joined #ruby
joofsh has quit [Remote host closed the connection]
akashj87 has joined #ruby
banister`sleep has joined #ruby
mlr has joined #ruby
Elhu has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
m3pow has joined #ruby
forrest has joined #ruby
iamjarvo has joined #ruby
NihilistDandy has joined #ruby
girija has joined #ruby
sandGorgon has quit [Read error: Connection reset by peer]
mattbl has joined #ruby
sandGorgon has joined #ruby
asobrasil has left #ruby [#ruby]
<JonnieCache> you could try looking with tcpdump
axl_ has joined #ruby
arquebus has left #ruby [#ruby]
Deltaoo has joined #ruby
tcstar has joined #ruby
baroquebobcat has joined #ruby
Vert has joined #ruby
spacebug_ is now known as spacebug
sandGorgon has quit [Ping timeout: 252 seconds]
v0n has joined #ruby
angusiguess has joined #ruby
Qwak has quit []
mattbl has quit [Ping timeout: 252 seconds]
main has quit [Ping timeout: 276 seconds]
ner0x has joined #ruby
ph^ has quit [Ping timeout: 260 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
alex__c2022 has joined #ruby
wmoxam has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby
braddunbar has joined #ruby
bradleyprice has joined #ruby
kpshek has joined #ruby
crackfu has quit [Remote host closed the connection]
kraljev3 has quit [Ping timeout: 252 seconds]
jpcamara has quit [Quit: jpcamara]
krawchyk has joined #ruby
nari has quit [Ping timeout: 260 seconds]
mmitchell has joined #ruby
juarlex has joined #ruby
rippa has joined #ruby
yeban has quit [Ping timeout: 252 seconds]
angusiguess has quit [Ping timeout: 256 seconds]
samphippen has joined #ruby
VinceThePrince has quit [Quit: Leaving]
cousine has quit [Remote host closed the connection]
<_bart> Any idea why this is not working: https://gist.github.com/bartolsthoorn/5030490 ?
<_bart> I think it's a bug in ruby 2.0.0
adambeynon has joined #ruby
invisime has joined #ruby
mockra has joined #ruby
<workmad3> _bart: works fine for me in irb
<workmad3> _bart: so it's unlikely to be a 2.0.0 bug
_nitti has joined #ruby
the_mentat has joined #ruby
takeru has quit [Remote host closed the connection]
braddunbar has left #ruby [#ruby]
nomenkun has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
ExxKA has quit [Quit: This computer has gone to sleep]
mockra has quit [Ping timeout: 255 seconds]
dmonjo has joined #ruby
braoru has quit [Remote host closed the connection]
braoru has joined #ruby
generalissimo has joined #ruby
<_bart> workmad3: ah, it's only in combination with rails, and only when I run 'rspec'
<_bart> workmad3: in rails console it's fine
Al__ has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
joofsh has joined #ruby
<rippa> holy shit
<rippa> 2.0 already
<workmad3> _bart: right, which still says 'not a 2.0 bug' to me
<_bart> workmad3: that's correct..
<workmad3> _bart: more likely one of those things is not quite ready for 2.0 :)
<shevy> or 2.0 is not ready for the masses yet!
<workmad3> rippa: yeah, it's been out almost a day already
nwertman has quit [Remote host closed the connection]
puppeh has quit [Remote host closed the connection]
ffranz has joined #ruby
Pochacco has quit [Quit: Pochacco]
Spooner_ has joined #ruby
interactionjaxsn has joined #ruby
Phoop has quit [Quit: Phoop]
puppeh has joined #ruby
Pochacco has joined #ruby
<shevy> https://bugs.ruby-lang.org/issues/7942 this one is a strange one
Pochacco has quit [Client Quit]
joofsh has quit [Remote host closed the connection]
timonv has joined #ruby
<workmad3> shevy: that just looks like the tokenizer barfs on some edge-case kw arg stuff
puppeh has quit [Read error: Operation timed out]
tvw has quit [Ping timeout: 255 seconds]
mando has joined #ruby
joofsh has joined #ruby
anonymuse has joined #ruby
<dmonjo> if i have a class inside a module, why do we refer to it as module:class, isnt the : used for a constant? is the class considered as a constant since it starts with a Upper case?
<hoelzro> dmonjo: because the class object itself is a constant
<dmonjo> cool
<hoelzro> whch is *really* cool when you think about it.
<hoelzro> exactly ;)
<dmonjo> hoelzro: now if i have a class inside a class inside another class
<dmonjo> like inner classes
braoru has quit [Quit: Leaving]
fermion has quit [Ping timeout: 256 seconds]
<dmonjo> how can you reference the variables inside these inner variables when you initializethe main classs
<dmonjo> for example class1 < classe2 <class3
<_bart> shevy: alright, I'm rollin back to 1.9.3-p392
<dmonjo> class1.new
<hoelzro> that...is a good question
<hoelzro> I've never used inner classes in Ruby
znode has quit [Remote host closed the connection]
<dmonjo> i want to access class3.<varables>.methods
<banister`sleep> well if u want to be a pedantic dick abot it, a class it not a constant, it's just the variable that references it can be a "constant"
DrShoggoth has quit [Quit: Leaving]
wallerdev has joined #ruby
<banister`sleep> the only special relationship b/w a class and the constant that references it is the class adopts the name of that constant in its #name slot
bradhe has joined #ruby
<hoelzro> banister`sleep: you mean pedandick?
<banister`sleep> hoelzro: lols
hashmal has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> banister`sleep: a class is an instance of the class referenced by the Class constant ;)
<banister`sleep> hehe
<workmad3> although I do wonder if I should say 'semi-constant' for a ruby constant :)
angusiguess has joined #ruby
fermion has joined #ruby
<banister`sleep> the 'klass' slot of a class is actually first and foremost its metaclass, metaclasses are eagerly created for classes (not for normal objects though)
<banister`sleep> workmad3: well IMO the 'const-ness' of a constant is the least interesting aspect of it
<banister`sleep> it's more the scope rules that are interesting
<banister`sleep> so it should have a totally different name
<workmad3> a lexicle rather than a variable?
<workmad3> lexiable?
<banister`sleep> im not sure, it has pretty interesting properties
<banister`sleep> lookup rules are a bit crazy
<workmad3> :)
kernelpanik has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 264 seconds]
<banister`sleep> workmad3: does 2.0 excite u
darthdeus has quit [Quit: Leaving...]
zoonfafer has quit [Ping timeout: 252 seconds]
kuranaii has joined #ruby
uris has joined #ruby
SCommette has joined #ruby
kuranaii has quit [Quit: Page closed]
huoxito has quit [Ping timeout: 252 seconds]
carloslopes has quit [Remote host closed the connection]
Squarepy has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
billiam has joined #ruby
hogeo has joined #ruby
baroquebobcat has quit [Client Quit]
tjbiddle has joined #ruby
tk_ has quit [Quit: ばいばい]
ikst has joined #ruby
jlast has joined #ruby
mrnugget has joined #ruby
ephemerian has quit [Quit: Leaving.]
mrnugget has left #ruby [#ruby]
Slivka has joined #ruby
heliumsocket has joined #ruby
zastern has joined #ruby
CraHan is now known as CraHan|out
atyz has quit [Quit: Linkinus - http://linkinus.com]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<banister`sleep> shevy: you were mentioned here http://www.reddit.com/r/programming/comments/194l12/ruby_200/c8kxs4z
ephemerian has joined #ruby
razibog has quit [Ping timeout: 245 seconds]
tagrudev has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
aganov has quit [Quit: aganov]
casheew has joined #ruby
<JonnieCache> hahahaha
octoberry has joined #ruby
eldariof has quit [Ping timeout: 276 seconds]
techhelp has joined #ruby
casheew has quit [Read error: Connection reset by peer]
arietis has joined #ruby
<hoelzro> heh
joofsh has quit [Remote host closed the connection]
carloslopes has joined #ruby
<JonnieCache> "sub-lucid." if youre going to use pretentious phrasings try and get it right.
<hoelzro> I don't know why everyone shit on him for his top comment, though
casheew has joined #ruby
eklarskov has quit [Quit: leaving]
carloslopes has quit [Remote host closed the connection]
<hoelzro> he saw something he liked and pointed it out
MEATCHICKEN has joined #ruby
joofsh has joined #ruby
<MEATCHICKEN> Is there a fix for fastthread not building properly on ruby 2?
mlr has quit [Ping timeout: 260 seconds]
io_syl has joined #ruby
io_syl has quit [Client Quit]
samuel02 has joined #ruby
mercwithamouth has joined #ruby
newUser1234 has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
arturaz has quit [Ping timeout: 252 seconds]
rmcafee has joined #ruby
carlyle has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
jgrevich has joined #ruby
kpshek has quit []
joofsh has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
rmcafee has quit [Client Quit]
rmcafee has joined #ruby
enebo has joined #ruby
asterite has quit [Quit: Leaving.]
<dmonjo> banister`sleep: can you include the inner classes in ruby?
<dmonjo> and reference class3 methods from a class1.new
<dmonjo> like class1<class2<class3
velCzupa has joined #ruby
<banister`sleep> dmonjo: no idea what u talkn' about
ph^ has joined #ruby
joshman_ has joined #ruby
jprovazn has quit [Quit: Leaving]
<dmonjo> inner classes in java
whitedawg has quit [Quit: Leaving.]
<dmonjo> any equivalaent here in ruyby
<banister`sleep> dmonjo: no
<banister`sleep> ruby doesnt have inner classes
kaen has quit [Ping timeout: 276 seconds]
<bean__> you can have classes within classes though
darthdeus has joined #ruby
<dmonjo> ok consider i have class2 in class1
<dmonjo> and classe 3 in class2
<dmonjo> if i make a class1.new
<dmonjo> and i want to reference the method in class3
<dmonjo> how can i do that? class1.new.class2.class3.methodname?
budmang has quit [Remote host closed the connection]
<bean__> class1::class2::class3.method? i think...
<bean__> let mec heck
<Spooner_> The inner classes are just namesspaced inside the class. They don't provide extra methods for the outer class.
arturaz has joined #ruby
ad_sd has joined #ruby
<Spooner_> You would do Class1::Class2::Class3.new.method to access them.
<ad_sd> hi
<bean__> >> class A; class B; class C; def hello; puts "hi from Class C"; end; end; end; end; A::B::C.hello
<eval-in> bean__: Output: "/tmp/execpad-d616e7700ce4/source-d616e7700ce4:1:in `<main>': undefined method `hello' for A::B::C:Class (NoMethodError)\n" (http://eval.in/11161)
<bean__> >> class A; class B; class C; def hello; puts "hi from Class C"; end; end; end; end; A::B::C.new.hello
<eval-in> bean__: Output: "hi from Class C\n" (http://eval.in/11162)
<bean__> ther we go.
schaerli has quit [Remote host closed the connection]
<Spooner_> If you just want something inside to store methods, use a module inside the class.
<bean__> >> class A; class B; class C; def self.hello; puts "hi from Class C"; end; end; end; end; A::B::C.hello
mockra has joined #ruby
<eval-in> bean__: Output: "hi from Class C\n" (http://eval.in/11163)
ckrailo has joined #ruby
<Spooner_> Though why you'd want to do that when you can just include a module, I don't know.
ph^ has quit [Ping timeout: 252 seconds]
breakingthings has joined #ruby
<bean__> ^
huoxito has joined #ruby
mlr has joined #ruby
<ad_sd> I have a string with hexadecimal values and I want to extract from the last \x80\x00\x00\00 to the \xff\xff\xff\xff. How can I do that ?
joofsh has joined #ruby
darthdeus has quit [Ping timeout: 276 seconds]
heliumsocket has quit [Quit: heliumsocket]
<banister`sleep> Mon_Ouie: 'alutte
<bean__> ad_sd: probably with a regex / match
interactionjaxsn has quit [Remote host closed the connection]
chrishough has joined #ruby
<ad_sd> bean__: hi :) precisely I was reading that
<ad_sd> but doesn not find what I want :p
<bean__> hmm, well if you pastebin / gist some code i bet someone would look at it
mockra has quit [Ping timeout: 246 seconds]
<ad_sd> bean__: yes of course
jpcamara has joined #ruby
philcrissman has quit [Remote host closed the connection]
railsbros_dirk has quit [Quit: railsbros_dirk]
philcrissman_ has joined #ruby
liriku has joined #ruby
<ad_sd> bean__: thats the chain I want to parse. I have to find the last \x80\x00\x00\x00 and from that get everything until the first \xff\xff\xff\xff
<bean__> you didnt need to PM it to me
<bean__> posting it here would be fine
<bean__> heh
j^2 has joined #ruby
liriku has left #ruby [#ruby]
<ad_sd> ah ok sorry
<bean__> one ?, what ruby version are you on
* bean__ switches off 2.0.0 for now
ozgura_ has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
Pip has joined #ruby
<dmonjo> what is the difference of including a module in class OR a class in a module
<shevy> hehe
<Pip> So is Ruby 2.0 amazing?
<shevy> dmonjo the namespaces are similar, but you can only include a module, not a class
<wmoxam> Pip: yes
<Spooner_> dmonjo, You can't include a class in a module.
<Pip> Great
<Pip> I know it won't let me down
<bean__> 2.0 is pretty good, it's still a pretty fresh release though
<shevy> dmonjo with a class, you get access to .new which you won't with a module
tjbiddle has quit [Quit: tjbiddle]
* Pip goes to remove his Ruby 1.9
<dmonjo> Spooner_: you cant include a class in a module?
<wmoxam> Pip: my specs ran in about 40% less time
<dmonjo> module A classA... ?
mfcabrera has quit [Quit: This computer has gone to sleep]
<Spooner_> You can't _include_ it. You can do that - that isn't INCLUDING.
lolmaus has quit []
<dmonjo> it is in it
<dmonjo> what term do you use
<dmonjo> inside?
<shevy> spanking
<Spooner_> include is a very specific term in Ruby, dmonjo
<dmonjo> ok lol
<dmonjo> spanking
mahmoudimus has quit [Client Quit]
asterite has joined #ruby
<shevy> dmonjo well you can think of both a class and a module as namespaced containers
<dmonjo> where can i read more about the namespace?
generalissimo has joined #ruby
<shevy> there isn't much to read. module Foo; class Bar versus class Foo; module Bar, you would scope the same here, Foo::Bar
<shevy> you can include Foo if it is a module, then you can omit the "Foo::", which you could not in the second example
arietis has quit [Quit: Computer has gone to sleep.]
peregrine81 has joined #ruby
<dmonjo> when you say namespace you mean the value of the current self?
huoxito has quit [Ping timeout: 252 seconds]
mephux_ has quit [Excess Flood]
mephux has joined #ruby
arietis has joined #ruby
<shevy> When I say namespace I mean ::
yshh has quit [Remote host closed the connection]
MEATCHICKEN has left #ruby [#ruby]
banister`sleep is now known as banisterfiend
octoberry has quit [Ping timeout: 252 seconds]
Yakko has quit [Remote host closed the connection]
<dmonjo> memory where all the variables are defined
<dmonjo> module::class! is one namespace module:class2 is nanother
<dmonjo> everything inside class1 is in the same namespace
<Spooner_> ad_sd, Did you sort out your regexp?
<ad_sd> hi Spooner_ no, I'm reading in stackoverflow how I can do it :p
tobor_one has joined #ruby
<shevy> dmonjo yes
<ad_sd> thats the hex I want to parse
casheew has quit [Read error: Connection reset by peer]
girija has quit [Ping timeout: 244 seconds]
casheew has joined #ruby
<Spooner_> ad_sd, ""++not this-- ++get this--".scan(/(?<=\+\+)(.*?)(?=--)/).last.first (obviously, replace ++ and -- ;) )
timonv has quit [Remote host closed the connection]
heliumsocket has joined #ruby
<ad_sd> Spooner_: thank you I'm gonna try
<ad_sd> thank you so much, the problem was the hex
<ad_sd> format
arturaz has quit [Ping timeout: 252 seconds]
<bean__> yeah.
<bean__> i see some Qs in there
<bean__> qs are not in HEX
geggam_wk has joined #ruby
fedza has joined #ruby
bradhe has joined #ruby
<Spooner_> That doesn't matter. It only wants to match whatever is inside delimiters which are in hex.
<ad_sd> so something like "\x00\x00\xAA............\xAA\x01\x02\xFF\xFF" how do you get the string between the last \xAA and the first \xFF (\xAA\x01\x02\xFF)
* bean__ was running into encoding issues
<Spooner_> Just as I said. Replace the ++ with "\x00\x00" or whatever. If it wants unicode, just use "\u00AB" for "\xAB"
interactionjaxsn has joined #ruby
Pip has quit [Ping timeout: 276 seconds]
asterite has quit [Quit: Leaving.]
<ad_sd> Spooner_: let me try it
ninjanoise has joined #ruby
<Spooner_> 2.0 assumes UTF-8 (you have to ask for it in 1.9).
awarner has joined #ruby
casheew has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
spaceships has joined #ruby
casheew has joined #ruby
hiroyuki has quit [Remote host closed the connection]
<ninjanoise> Howdy, anyone want to point me to a gem for doing sed like stuff to text in ruby?
bradhe has quit [Ping timeout: 252 seconds]
hiroyuki has joined #ruby
chichou has joined #ruby
<Spooner_> ad_sd you can convert utf to ascii 8-bit really easily in 2.0, which is nice (String#b).
<JonnieCache> ninjanoise: what do you need that isnt built in to ruby?
huoxito has joined #ruby
<Spooner_> ninjanoise, Yeah, String#sub and String#gsub do it already.
<ninjanoise> JonnieCache: I'm a ruby n00b lol so maybe I just need to look into text manipulation more
<JonnieCache> ninjanoise: the ruby stdlib is very comprehensive. its one of the languages strengths
<Spooner_> ninjanoise, And look at Regexp too.
wmoxam has quit [Ping timeout: 256 seconds]
<ninjanoise> Thanks :)
* ninjanoise feels the same of not RTFMing ;) heh
dmiller2 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
BizarreCake has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
<ad_sd> Spooner_: I always get error like SyntaxError: (irb):35: invalid multibyte escape
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Pip has joined #ruby
<Spooner_> ad_sd, With what code? That means the string is utf and you are trying to use ascii escapes (\x00) instead of unicode ones (\u0000)
whitedawg has joined #ruby
<Spooner_> Even if when you print the string, it shows \x00, it can still be a unicode string.
wallerdev has quit [Quit: wallerdev]
MEATCHICKEN has joined #ruby
codecop has joined #ruby
werdnativ has joined #ruby
breakingthings has quit []
<MEATCHICKEN> Bundle install is failing after upgrade to Ruby 2, any suggestions?
breakingthings has joined #ruby
dmonjo has quit [Remote host closed the connection]
<Hanmac> yeah ... dont use bundler :P
<MEATCHICKEN> Lol Hanmac
<Spooner_> MEATCHICKEN, gem install bundler --pre works (1.3.0)
interactionjaxsn has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
<Spooner_> MEATCHICKEN, Or roll back to 1.8.5 ;)
<MEATCHICKEN> Spooner_: I should've been more specific, I apologize.
<MEATCHICKEN> "Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension."
<MEATCHICKEN> A couple gems such as fastthread, debugger, and zentest are failing
<MEATCHICKEN> This doesn't happen on 1.9.3-p125
<Spooner_> Oh yes, sorry.
wallerdev has joined #ruby
<Spooner_> Report the issue on those gem's github pages then ;)
<Spooner_> And wait ;)
crackedmind_ has joined #ruby
<MEATCHICKEN> Ah. The old fashioned way.
<MEATCHICKEN> Okay
<MEATCHICKEN> thanks
trevortwining has quit [Quit: trevortwining]
crackedmind has quit [Ping timeout: 246 seconds]
k610 has quit [Quit: Leaving]
kpshek has joined #ruby
mpfundstein has quit [Remote host closed the connection]
<ad_sd> Spooner_: the strange thing is that, something like this work: rf['lpBuffer'].scan(/(?<=\x10\x00)(.*?)(?=\x18)/)
mackwic has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
jblack has quit [Ping timeout: 245 seconds]
Pip has quit [Ping timeout: 252 seconds]
jpcamara has quit [Quit: jpcamara]
<mackwic> hello there, newbie question in the place
marr has joined #ruby
<mackwic> something bugs me in the ruby koans, about arrays
huoxito has quit [Ping timeout: 252 seconds]
shirokuro11 has quit [Remote host closed the connection]
<mackwic> with array = [ :peanut, :butter, :and, :jelly]
apeiros_ has quit [Remote host closed the connection]
razibog has joined #ruby
samphippen has joined #ruby
<mackwic> array[4, 0] == [] but array[5,0] == nil
<Hanmac> mackwic in ruby array can contain everything, other arrays or even itself too
<mackwic> Hanmac, my bug is about this strange assert :)
yshh has joined #ruby
carloslopes has joined #ruby
guns has joined #ruby
sepp2k has joined #ruby
<adkron> Yeah in both you have already stepped off the end of the array.
<Spooner_> ad_sd, Why is that strange?
BizarreCake has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
<bean__> >> array = [ :peanut, :butter, :and, :jelly]; p array[4,0]; p array[5,0]
<eval-in> bean__: Output: "[]\nnil\n" (http://eval.in/11167)
hoelzro is now known as hoelzro|away
Mattx has quit [Read error: Connection reset by peer]
<bean__> >> array = [ :peanut, :butter, :and, :jelly]; p array;
<eval-in> bean__: Output: "[:peanut, :butter, :and, :jelly]\n" (http://eval.in/11168)
<ad_sd> Spooner_: that por example this work .scan(/(?<=\x05\x00)(.*?)(?=\x01)/) but this .scan(/(?<=\x80\x00)(.*?)(?=\x01)/) doesn't
<ad_sd> same with unicode
Yakko has joined #ruby
ozgura has joined #ruby
wildcard0 has quit [Ping timeout: 255 seconds]
Mattx has joined #ruby
<Spooner_> mackwic, Don't ask. Just accept :$ You could argue that [4, 0] starts at the end of the array, but goes beyond it, but [5, 0] starts after the end in outer space.
wildcard0 has joined #ruby
jrendell has joined #ruby
razibog has quit [Ping timeout: 246 seconds]
zigomir has quit [Quit: zigomir]
<Spooner_> ad_sd, Odd. I'd expect that to be a misreading of the hex by the programmer...?
<ad_sd> I guess so, thank you so much anyway
<mackwic> Spooner_, ok, so there's always a special element beyond the end ? Seems that an important knowledge for scripting
ephemerian has quit [Quit: Leaving.]
tjbiddle has joined #ruby
tjbiddle has quit [Remote host closed the connection]
tjbiddle has joined #ruby
<Spooner_> Not special as such. Just something you need to know...
filipe has quit [Remote host closed the connection]
<Spooner_> I mean not a special element. After all, you are asking for no elements.
philcrissman_ has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
<mackwic> the empty element could be a generic polymorphic element placed at the end of all arrays
R_Macy_ has joined #ruby
philcrissman has joined #ruby
<Spooner_> ad_sd, But it looks like it should work, looking at the dump you pastebinned. *shrugs*
bluenemo has joined #ruby
bluenemo has joined #ruby
<mackwic> that would be very clever for efficient end of arrays comparisons
monkegji_ has quit [Remote host closed the connection]
guns has quit [Quit: guns]
adamjleonard has joined #ruby
<Spooner_> Not really. You are asking for [0, 1, 2, 3 <this>] compared to asking for [0, 1, 2, 3] <this>
yshh has quit [Ping timeout: 256 seconds]
dr_bob has left #ruby [#ruby]
cousine has joined #ruby
gaahrdner has joined #ruby
<mackwic> yeah, no problem to admit the fact, was only thinking about consequences ;)
<Spooner_> And, in general, there isn't a use-case for that. No reason at all to ask for a zero-length slice of an array really.
<mackwic> I guess so
arietis has quit [Quit: Computer has gone to sleep.]
yeban has joined #ruby
psino has quit [Ping timeout: 245 seconds]
Coolhand has quit [Remote host closed the connection]
darthdeus has joined #ruby
<mackwic> >> array = [ :peanut, :butter]; arr2 = [ :plop ]; p array[2] == arr2[1]
<eval-in> mackwic: Output: "true\n" (http://eval.in/11169)
graft has joined #ruby
BizarreCake has quit [Read error: Operation timed out]
werdnativ has quit [Quit: werdnativ]
<ad_sd> Spooner_: it's strange
Azure has quit [Ping timeout: 245 seconds]
trevortwining has joined #ruby
BizarreCake has joined #ruby
bradhe has joined #ruby
baroquebobcat has joined #ruby
etcetera has joined #ruby
MEATCHICKEN has quit [Quit: Page closed]
kold has joined #ruby
_bart has quit [Ping timeout: 246 seconds]
darthdeus has quit [Ping timeout: 256 seconds]
takeru has joined #ruby
<graft> anyone ever work with Readline? I'm trying to muck with tab completion and i'm wondering if there's a nice way to pass the argument # into the proc (so i can tell whether i'm completing the first argument or the second argument, etc.)
tommyvyo has quit [Quit:]
jrendell has quit [Quit: jrendell]
icco has quit [Quit: run away.]
x0F has quit [Quit: Leaving]
ananthakumaran has joined #ruby
<shevy> graft I use Readline a lot. I hate the API
Azure has joined #ruby
heliumsocket has joined #ruby
wmoxam has joined #ruby
crackfu has joined #ruby
psino has joined #ruby
fermion has quit [Ping timeout: 245 seconds]
jrendell has joined #ruby
francisfish has quit [Read error: Connection reset by peer]
berserkr has quit [Quit: Leaving.]
francisfish has joined #ruby
jpcamara has joined #ruby
takeru has quit [Ping timeout: 245 seconds]
VinceThePrince has joined #ruby
fermion has joined #ruby
banisterfiend has joined #ruby
alvaro_o has joined #ruby
arietis has joined #ruby
icco has joined #ruby
[Rickmasta] has joined #ruby
rickmasta has quit [Read error: Connection reset by peer]
crackfu has quit [Ping timeout: 245 seconds]
huoxito has joined #ruby
the_mentat has joined #ruby
asterite has joined #ruby
frem has joined #ruby
frem has quit [Max SendQ exceeded]
bradhe has quit [Remote host closed the connection]
ninjanoise has quit [Remote host closed the connection]
fedza_ has joined #ruby
xardas has joined #ruby
VinceThePrince has quit [Quit: Those about to die]
frem has joined #ruby
fedza has quit [Read error: Connection reset by peer]
foxnewsnetwork has joined #ruby
axl_ has quit [Quit: axl_]
foxnewsnetwork has left #ruby [#ruby]
foxnewsnetwork has joined #ruby
rheoli has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
neurone-1337 has quit [Ping timeout: 252 seconds]
twoism has joined #ruby
<foxnewsnetwork> is it my imagination or did ruby 2.0 move RubyGems::Builder to RubyGems::Ext::Builder ?
neurone-1337 has joined #ruby
<mackwic> oh btw, can someone advise me a good ruby shell ? The base interpretor is a bit harsh
<waxjar> mackwic, pry
rheoli has left #ruby [#ruby]
nga4 has joined #ruby
flip_digits has joined #ruby
kold has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
eldariof has joined #ruby
Eiam has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
richardjortega has joined #ruby
<mackwic> waxjar, very nice, thank you !
alv-r- has joined #ruby
<mackwic> I especially like the "wtf?" command :)
arietis has quit [Quit: Computer has gone to sleep.]
zeade has joined #ruby
joofsh has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
banjara has joined #ruby
ferdev has quit [Quit: Leaving...]
<JonnieCache> mackwic: check out the extensions too
hiall has quit [Quit: hiall]
<mackwic> JonnieCache, so lovely
chrishough has quit [Quit: chrishough]
_nitti has joined #ruby
ad_sd has quit [Ping timeout: 255 seconds]
tealmage has quit [Remote host closed the connection]
io_syl has joined #ruby
wobblini has quit [Quit: wobblini]
<banisterfiend> mackwic: pry makes the girls go 'woo'
sk87 has quit [Quit: sk87]
berserkr has joined #ruby
<waxjar> how would you guys go about sharing model Classes between two projects?
Zta has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
philcrissman has quit [Ping timeout: 252 seconds]
_bart has joined #ruby
drago757 has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
roadt` has joined #ruby
roadt has quit [Ping timeout: 255 seconds]
mahmoudimus has joined #ruby
Coolhand has joined #ruby
skum has joined #ruby
strg has quit [Ping timeout: 255 seconds]
natwelch has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
icco has quit [Quit: run away.]
natwelch is now known as icco
sl1m_sh4dy is now known as r0f0
Vainoharhainen has quit [Ping timeout: 260 seconds]
kold has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
xemu has quit [Ping timeout: 252 seconds]
chrisja has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
stkowski has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
pyrac has joined #ruby
tylersmith has joined #ruby
drago757 has quit [Quit: drago757]
chrishough has joined #ruby
fermion has joined #ruby
mockra has joined #ruby
c0rn has joined #ruby
axl_ has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
bluenemo has quit [Remote host closed the connection]
mattp_ has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
dblack_ has joined #ruby
Mon_Ouie has joined #ruby
_bart has quit [Quit: _bart]
geekbri_ has joined #ruby
dblack_ is now known as wobblini
geekbri_ has quit [Remote host closed the connection]
stringoO has joined #ruby
cousine has quit [Remote host closed the connection]
gosshedd has quit [Ping timeout: 252 seconds]
breakingthings has quit []
zzing has joined #ruby
ssvo has quit [Ping timeout: 248 seconds]
geekbri has quit [Ping timeout: 264 seconds]
V8Energy has joined #ruby
skum has quit [Ping timeout: 264 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
Deltaoo has quit [Ping timeout: 255 seconds]
slainer68 has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
ssvo has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
slainer68 has joined #ruby
thufir_ has quit [Ping timeout: 255 seconds]
Mchl has quit [Excess Flood]
NihilistDandy has quit [Quit: Computer has gone to sleep.]
joeycarmello has joined #ruby
mercwithamouth has joined #ruby
artOfWar has joined #ruby
philcrissman has joined #ruby
Mchl has joined #ruby
gaahrdner has quit [Ping timeout: 252 seconds]
ikst has quit [Remote host closed the connection]
ferdev has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
apeiros_ has joined #ruby
werdnativ has joined #ruby
harumph has joined #ruby
rupee has joined #ruby
ph^ has joined #ruby
stayarrr has joined #ruby
slainer68 has quit [Remote host closed the connection]
kpshek has quit []
carlyle has quit [Remote host closed the connection]
gosshedd has joined #ruby
cjk101010 has quit [Ping timeout: 260 seconds]
bigkm has joined #ruby
cjk101010 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
darthdeus_ has joined #ruby
aedornm has joined #ruby
casheew has joined #ruby
apeiros_ has quit [Ping timeout: 255 seconds]
peteyg has joined #ruby
gosshedd has quit [Read error: Operation timed out]
joofsh has joined #ruby
tealmage has joined #ruby
yalue has joined #ruby
<aedornm> Good ol' northern Cali. Only took a few near accidents to remember you have to drive bad in order to survive!
LouisRoR has joined #ruby
ninjanoise has joined #ruby
werdnativ_ has joined #ruby
schaerli has joined #ruby
<Xeago> anyone else having issues finding torrent links on isohunt?
<Xeago> or using old links which now error out?
Al__ has quit [Quit: Al__]
kevinfagan has quit [Quit: Leaving...]
mattbl has joined #ruby
thufir_ has joined #ruby
tommyvyo has joined #ruby
darthdeus_ has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
flip_digits has quit [Ping timeout: 252 seconds]
mrsolo_ has joined #ruby
werdnativ has quit [Ping timeout: 256 seconds]
werdnativ_ is now known as werdnativ
mrsolo has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
<ninjanoise> Just wanted to check on the proper use of gsub, "Testing".gsub(/.*(ing)/, 'Work\1') is proper?
macq has quit [Ping timeout: 260 seconds]
macq has joined #ruby
mneorr has joined #ruby
mattbl has quit [Client Quit]
ad_sd has joined #ruby
<bean__> Xeago:... this is a channel for ruby, not piracy
kold has quit [Remote host closed the connection]
tealmage has quit [Ping timeout: 255 seconds]
monkegji_ has joined #ruby
peteyg has quit [Ping timeout: 252 seconds]
<banisterfiend> bean__: u can get legit stuff from torrent sites
<bean__> yeah okay
* bean__ doesnt advocate the use of public torrent sites.
<banisterfiend> who gives a shit
<bean__> i do, because getting caught torrenting wouldn't be fun
macq has quit [Read error: Operation timed out]
CraHan|out is now known as CraHan
<banisterfiend> not an issue where i'm from
havenn has joined #ruby
uris has quit [Ping timeout: 240 seconds]
ryanf has quit [Quit: leaving]
dangerousdave has joined #ruby
<Spooner_> ninjanoise, That works, but I'd use: "Testing Testingly Testie".gsub(/\b.+(?=ing\b)/, 'Work') #=> "Working Testingly Testie"
macq has joined #ruby
Umren has joined #ruby
angusiguess has joined #ruby
<banisterfiend> Spooner_: r u still mates with jlnr
<Spooner_> ninjanoise, Acutally, /\b\w+(?=ing\b)/ works better.
<Spooner_> banisterfiend, Yeah, I still hang out on #gosu
frem has quit [Quit: Computer has gone to sleep.]
Shadow_S has joined #ruby
Shadow_S has quit [Remote host closed the connection]
<ninjanoise> Spooner_: your regex foo is better than mine, but I'll dig into that and understand it, thanks!
geekbri has joined #ruby
zeade has quit [Quit: Leaving.]
NihilistDandy has joined #ruby
Udom0 has left #ruby [#ruby]
haxrbyte has joined #ruby
zul__ has joined #ruby
axl_ has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
NihilistDandy has quit [Client Quit]
Yakko has quit [Remote host closed the connection]
xemu has joined #ruby
<Spooner_> ninjanoise, Well, it rather depends what your aim is, of course. I might have misjudged what you actually wanted to achieve.
zul_ has quit [Ping timeout: 252 seconds]
interactionjaxsn has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
hogeo has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
stayarrr has quit [Quit: Leaving...]
thone_ has joined #ruby
_nitti has quit [Remote host closed the connection]
peteyg has joined #ruby
kraljev3 has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
keymone has joined #ruby
br4ndon has joined #ruby
CraHan has left #ruby [#ruby]
thone has quit [Ping timeout: 244 seconds]
razibog has joined #ruby
hbpoison has joined #ruby
<mackwic> >> puts { :one => "one", :two => "two" } == something
<eval-in> mackwic: Output: "/tmp/execpad-d4bce4280ef7/source-d4bce4280ef7:1: syntax error, unexpected tASSOC, expecting '}'\nputs { :one => \"one\", :two => \"two\" } == something\n ^\n/tmp/execpad-d4bce4280ef7/source-d4bce ..." (http://eval.in/11170)
<mackwic> Why ?
thams has joined #ruby
<Hanmac> >> puts( { :one => "one", :two => "two" } == :something)
<eval-in> Hanmac: Output: "false\n" (http://eval.in/11171)
greenarrow has quit [Read error: Connection reset by peer]
<mackwic> ho
<mackwic> so dumb
greenarrow has joined #ruby
<mackwic> (i am)
decoponio has quit [Quit: Leaving...]
* Hanmac mimes phinias: "yes, yes you are" :P
joofsh has quit [Remote host closed the connection]
stringoO has quit [Quit: stringoO]
<mackwic> Hanmac, :p
tenmilestereo has joined #ruby
Pip has joined #ruby
tylersmith has quit [Quit: tylersmith]
gyre007 has quit [Remote host closed the connection]
rlb3 has quit [Quit: rlb3]
sn0wb1rd has joined #ruby
mattbl has joined #ruby
Morkel has quit [Quit: Morkel]
nachtwandler has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
skattyadz has joined #ruby
elaptics is now known as elaptics`away
roadt` has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Client Quit]
<zul__> guys, I have a tweet message tw got from twitter gem, in detail the object tw is Twitter::tweet. After I do tw.to_s and I store the result into redis. When I try to get the message from redis I obtain a string, now I would like to cast it to a twitter object. Is it possible?
banjara has quit [Quit: Leaving.]
sn0wb1rd has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
ephemerian has joined #ruby
thufir_ has quit [Quit: Leaving.]
tylersmith has joined #ruby
<Spooner_> zul__, Probably tweet = Twitter::Tweet.new(string), but reading the manual is probably best ;)
razibog has quit [Ping timeout: 252 seconds]
stringoO has joined #ruby
stringoO has quit [Client Quit]
asterite has left #ruby [#ruby]
kpshek has joined #ruby
choclo has quit [Quit: Leaving.]
maxmanders has joined #ruby
ninegrid has quit [Ping timeout: 245 seconds]
breakingthings has joined #ruby
j1ll has joined #ruby
apeiros_ has joined #ruby
choclo has joined #ruby
j1ll has quit [Client Quit]
Lycoris_b has joined #ruby
arya has quit [Ping timeout: 248 seconds]
interactionjaxsn has joined #ruby
ebobby has joined #ruby
arya has joined #ruby
tylersmith has quit [Quit: tylersmith]
choclo has quit [Remote host closed the connection]
Lycoris_b has left #ruby [#ruby]
r0f0 has quit [Ping timeout: 252 seconds]
ninegrid has joined #ruby
averiso has quit [Ping timeout: 252 seconds]
BizarreCake has quit [Ping timeout: 252 seconds]
fermion has quit [Ping timeout: 255 seconds]
gaahrdner has joined #ruby
rdark has quit [Quit: leaving]
whitedawg has quit [Quit: Leaving.]
malkomalko has joined #ruby
pyrac has quit [Quit: pyrac]
brianpWins has joined #ruby
_bart has joined #ruby
mafolz has quit [Remote host closed the connection]
gyre007 has joined #ruby
kold has joined #ruby
brianpWins has quit [Client Quit]
techhelp has quit [Quit: Leaving]
brianpWins has joined #ruby
techhelp has joined #ruby
fermion has joined #ruby
averiso has joined #ruby
anderse has quit [Quit: anderse]
etcetera has quit []
tenmilestereo has quit [Quit: Leaving]
tenmilestereo has joined #ruby
jarjar_prime has joined #ruby
rezzack has joined #ruby
headius has joined #ruby
dmiller2 has quit [Ping timeout: 246 seconds]
pyrac has joined #ruby
artOfWar has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
atno has quit [Ping timeout: 244 seconds]
_nitti has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
etcetera has joined #ruby
dmiller2 has joined #ruby
the_mentat has joined #ruby
swarley| has joined #ruby
atno has joined #ruby
darthdeus_ has joined #ruby
zzing has quit [Quit: Computer has gone to sleep.]
icco has quit [Read error: Operation timed out]
skcin7 has quit [Quit: Computer has gone to sleep.]
JayT has left #ruby [#ruby]
mercwithamouth has joined #ruby
gosshedd has joined #ruby
jonahR has joined #ruby
icole has joined #ruby
kaen has joined #ruby
darthdeus_ has quit [Ping timeout: 248 seconds]
takeru has joined #ruby
_nitti has quit [Ping timeout: 240 seconds]
browndawg has left #ruby [#ruby]
nomenkun has joined #ruby
icco has joined #ruby
carlyle has joined #ruby
werdnativ has quit [Read error: Connection reset by peer]
werdnativ has joined #ruby
takeru has quit [Ping timeout: 260 seconds]
Uranio has quit [Quit: while you reading this, a kitty dies]
banjara has joined #ruby
kirun has joined #ruby
zeade has joined #ruby
chussenot has quit [Remote host closed the connection]
joshman_ has quit [Ping timeout: 264 seconds]
choclo has joined #ruby
FilipNils has joined #ruby
angusiguess has joined #ruby
mneorr has quit [Remote host closed the connection]
<FilipNils> just downloaded latest version, and it says "Ruby 2.0.0dev"…is this really latest?
chussenot has joined #ruby
Zolo has joined #ruby
sandstrom has joined #ruby
<sandstrom> Is there something similar to `tap` that returns the value of the block?
_nitti has joined #ruby
headius_ has joined #ruby
angusiguess has quit [Ping timeout: 244 seconds]
PragCypher has quit [Remote host closed the connection]
keymone has quit [Read error: Connection reset by peer]
<Spooner_> FilipNils, No, 2.0.0-p0 is latest.
keymone has joined #ruby
PragCypher has joined #ruby
headius_ has quit [Client Quit]
railsbros_dirk has joined #ruby
kold has quit [Remote host closed the connection]
<canton7> sandstrom, #map ?
headius has quit [Ping timeout: 252 seconds]
FilipNils has left #ruby [#ruby]
<Spooner_> sandstrom, Might be clearer if you explain what you want to do with it.
tealmage has joined #ruby
FilipNils has joined #ruby
joshman_ has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
<havenn> FilipNils: What'd you use to download Ruby?
AlSquirrel is now known as AlSquire
<FilipNils> I used RVM
<havenn> FilipNils: Update RVM: rvm get latest
<havenn> FilipNils: Then: rvm list known
<FilipNils> ok, thank you..I think i missed to do that, just updated brew
mneorr has joined #ruby
skcin7 has joined #ruby
havenn has quit [Remote host closed the connection]
allaire has joined #ruby
_bart has left #ruby [#ruby]
dmiller2 is now known as dmiller
rippa has quit [Ping timeout: 240 seconds]
d2dchat has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
krz has joined #ruby
ryanf has joined #ruby
sonda has quit [Remote host closed the connection]
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
maasha has joined #ruby
banjara has quit [Quit: Leaving.]
Radnor has quit [Quit: .]
banjara has joined #ruby
<maasha> hello
Radnor has joined #ruby
<krz> need a bit of help with classes. if i need to do foo = Foo.new(foobar). what do i need in the Foo class to assign foo with a value?
<krz> an initializer?
shevy has joined #ruby
velCzupa has quit [Remote host closed the connection]
schaerli has joined #ruby
Slivka has quit [Ping timeout: 246 seconds]
<maasha> bah, my gem install is stuffed. I upgraded with gem upgrade and gem upgrade --system to get rid of a weird "lib/complex.rb is deprecated"
<maasha> Now it says: ERROR: While executing gem ... (ArgumentError) invalid byte sequence in US-ASCII
mattbl has quit [Quit: This computer has gone to sleep]
<maasha> ruby 1.9.3p374 here
the_mentat has quit [Quit: Computer has gone to sleep.]
<Spooner_> krz def initialize(foobar); @foobar = foobar; end - But try reading some tutorials, because tha tis pretty basic OO knowledge.
<bean__> maasha: you could try upgrading to p392 :P
Guedes is now known as Guedes_out
sayan has quit [Read error: Connection reset by peer]
cableray has joined #ruby
kevinfagan has joined #ruby
Pip has left #ruby ["Leaving"]
<maasha> bean__: I blame ruby 2.0 :o)
<bean__> could be
Elhu has joined #ruby
<maasha> so is ruby 2.0 and gem 2.0 version numbers released at the same time?
workmad3 has joined #ruby
rezzack has quit [Quit: Leaving.]
mattbl has joined #ruby
Stilo has joined #ruby
the_mentat has joined #ruby
xclite has joined #ruby
axl_ has quit [Quit: axl_]
the_mentat has quit [Client Quit]
<swills> for the love of god, someone point me at a ruby 1.9 rpm for centos?
rezzack has joined #ruby
etcetera has quit []
axl_ has joined #ruby
whitedawg has joined #ruby
nomenkun has quit [Remote host closed the connection]
ninegrid has quit [Ping timeout: 255 seconds]
<bean__> swills: what centos version?
<Spooner_> swills, Just compile it yourself with rvm/rbenv/etc.
<swills> i don't want to wait on a compile every time i spin up a VM
<swills> bean__: 6.x
joshman_ has quit [Ping timeout: 276 seconds]
<swills> 6.3 it looks like
<bean__> 64 bit?
etcetera has joined #ruby
<bean__> ftp://rpmfind.net/linux/centos/6.3/os/x86_64/Packages/ruby-1.8.7.352-7.el6_2.x86_64.rpm should be one that works
<Spooner_> bean__, That isn't a 1.9 repo ;)
joshman_ has joined #ruby
<bean__> oh shit
<bean__> wrong link
<bean__> :p
<bean__> hurt durr
ninegrid has joined #ruby
* bean__ can't read today
<sebastianb> Guys, is there some site, or forum maybe, where I can find some beginner-level program ideas? I'm bored as fck while reading the books
<sebastianb> I need some practice
<sebastianb> ;)
<swills> yes, 64 bit
Deltaoo has joined #ruby
<bean__> yeah, everything im reading says you should compile it yourself.
<bean__> for 1.9
<bean__> swills:
<banisterfiend> sebastianb: ruby koans
<bean__> also: project euler
<swills> bean__: yeah, i know, but i don't want to do that
<bean__> swills: why not?
breakingthings has quit []
<sebastianb> Well, I need something more like project euler, I need an idea which I can turn into a program
<swills> because i want it to be quick in new VMs, and easy to update
<Spooner_> Or use just about any distro except CentOS.
wobblini has quit [Quit: wobblini]
<bean__> ^
<bean__> not sure why anyone would pick centos
<bean__> but that's me
breakingthings has joined #ruby
<swills> thanks for your help
SCommette has quit [Quit: SCommette]
etcetera has quit [Client Quit]
<bean__> project euler is nice, sebastianb, i still have fun with it seeing how short I can write solutions for it
<Spooner_> Recently I had problems helping someone for whom Ruby 1.8.5 was the latest version they had on their version of CentOS. Says a lot :)
<Spooner_> sebastianb, ruby_warrior gem is excellent
Elhu has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
<swills> i didn't choose centos...
etcetera has joined #ruby
<sebastianb> bean__: Yeah, but the thing with euler is that the solutions are just some short programs. I need some practice in building something bigger.
<sebastianb> Spooner_: I'll check it out
etcetera has quit [Client Quit]
<bean__> sebastianb: I'd suggest coming up with a problem that you want to solve :) What is something that annoys you?
<sebastianb> My lack of patience
<sebastianb> ;)
<sebastianb> but I guess it's not going to be solved by a ruby program
slainer68 has joined #ruby
<sebastianb> The thing is that I want to start coding and stop reading books
<bean__> Then start coding :)
atmosx has joined #ruby
stayarrr has joined #ruby
bluOxigen has joined #ruby
<bean__> you could write an accounting program,. that keeps track of your expenses / money coming in.
<sebastianb> bean__: That's why I'm looking for some program ideas ;)
* bean__ thinks about financial tech too much
zul__ has quit [Ping timeout: 246 seconds]
<mackwic> sebastianb, try a problem >150 and we'll see if it's "only a short program" after all
<bean__> ^
tylersmith has joined #ruby
whitedawg has quit [Quit: Leaving.]
averiso has quit [Quit: Computer has gone to sleep.]
<mackwic> I particularly think about problem when input is too large to be brute forced but ruby maybe lacks of perf for that...
darthdeus has joined #ruby
* mackwic solve euler problems only to see the solution of the awesome x86 american guy
<aedornm> Personally, I think a good starting point for a Ruby beginner is to build his own drone, code it to fly to <some restaurant> and pick up food. Obviously this should be doable by any first year programmer. /nod
yacks has quit [Quit: Leaving]
monkegji_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
horofox_ has joined #ruby
VinceThePrince has joined #ruby
Eiam has joined #ruby
<mackwic> aedornm, why flying ? You'll lose there pleasure of solving collisions ! Walking is definitely better
<atmosx> hello
axl_ has quit [Quit: axl_]
darthdeus has quit [Ping timeout: 264 seconds]
cableray has quit [Quit: cableray]
mando has quit [Remote host closed the connection]
<aedornm> mackwic: If it was flying you'd still have to avoid collisions. And you'd have to really consider every axis - you don't want your drone to crash into the ground when trying to get food packed into it. Plus flying is faster, it would require more optimization!
chussenot has quit [Quit: chussenot]
Retistic has joined #ruby
chendo_ has quit [Ping timeout: 246 seconds]
etcetera has joined #ruby
sandstrom has quit [Remote host closed the connection]
Yakko has joined #ruby
chussenot has joined #ruby
Baughn has quit [Quit: leaving]
VinceThePrince has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
keymone has quit [Quit: keymone]
newUser1234 has joined #ruby
<mackwic> aedornm, ok then. Perfect for beginners
vlad_starkov has quit [Remote host closed the connection]
<aedornm> I really dislike when I wrote something months ago, and now having to revisit it I can't figure out how it works. I'm having a senior moment!
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
maxamillion has joined #ruby
nomenkun has joined #ruby
<Hanmac> aedornm i thought it could be difficult to tell the drone that other persons are not "food" :P
axl_ has joined #ruby
<maxamillion> anyone have any clever tricks to find out why a function from a module isn't loading even though I've got 'include Thor::Actions' inside a class defined as 'class myClass < Thor' ?
d2dchat has joined #ruby
newUser1234 has quit [Ping timeout: 252 seconds]
<aedornm> Hanmac: That would simply be a minor inconvenience!
<Spooner_> Hanmac, You can vet the persons for edibility when they get to your place.
<aedornm> I'm being told by a large Russian that it's lunch time.... later!
<mackwic> Hmmm, I don't understand this koan https://gist.github.com/mackwic/d4427483280b1bf0d4d7
whowantstolivef1 has joined #ruby
elico has joined #ruby
LouisRoR has quit [Ping timeout: 255 seconds]
<mackwic> Does Ruby has an internal translator or what ? I can't see anyreason too associate :two with "dos" in this code
<Spooner_> mackwic Well, it explains itself (and isn't very interesting).
<mackwic> s/too/to/
<Mon_Ouie> Hash.new("dos") <- that's where you decided it would be dos
<Spooner_> Oh right, the constructor for Hash can take a default value for if the key given isn't in the Hash.
<Mon_Ouie> It's Hash.new(default_value)
workmad3 has joined #ruby
<mackwic> Aaaaah
<mackwic> should've RTFM, sorry for that
axl_ has quit [Quit: axl_]
appamatto has quit [Changing host]
appamatto has joined #ruby
mephux has quit [Excess Flood]
<v0n> hi
Elhu has joined #ruby
<v0n> is there a way to get the exit code of an IO#popen call?
flip_digits has joined #ruby
mephux has joined #ruby
reset has joined #ruby
phinfonet has joined #ruby
<phinfonet> Hi
jnewt has joined #ruby
TheFuzzball has joined #ruby
<jnewt> came across a script written in ruby that i want to use / try. i installed ruby vi apt, and then did a gem install grit (apparently it's a dependency), and got a failed to build gem native extension followed by lots of undeclared errors. any quick answers to this?
<v0n> jnewt: grit is a git wrapper, so maybe you need git development headers
<Spooner_> Several possibilities. The gem doesn't support your Ruby version or you lack a dependency for the grit gem. Hard to tell without more info.
toekutr has joined #ruby
tealmage has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
zul_ has joined #ruby
<mackwic> Is there a way to browse the rdoc in the cli, as a manpage / infotext / vimhelp ?
<mackwic> or whatever
<Spooner_> mackwic, Yeah, use pry
thams has quit [Quit: thams]
<Spooner_> Or use ri directly from the cli.
<Spooner_> I mean use pry instead of irb.
etcetera has quit [Ping timeout: 240 seconds]
<jnewt> v0n: requirements show git is the only one, nothing about devel headers. i have git installed.
arya_ has joined #ruby
squidBits has joined #ruby
anderse has joined #ruby
krz has quit [Quit: krz]
himsin has quit [Remote host closed the connection]
<jnewt> ok, got it from a github source. i think i'm good
himsin has joined #ruby
mattp_ has joined #ruby
chrishough has quit [Quit: chrishough]
squidBits has quit [Client Quit]
axl_ has joined #ruby
squidBits has joined #ruby
<mackwic> Spooner_, for example `>show-doc Hash` ?
ferdev is now known as ferdev|away
arya has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
chendo_ has joined #ruby
<Spooner_> mackwic: show-doc Hash#initialize for the previous bit of wisdom
snearch has joined #ruby
keymone has joined #ruby
senayar has joined #ruby
snearch has quit [Max SendQ exceeded]
<mackwic> hmmm seems that I do not have the core doc
<Spooner_> gem install pry-doc
etcetera has joined #ruby
snearch has joined #ruby
<Spooner_> And you can use "ls Hash" to get a list of methods and whatnot.
m8 has quit [Read error: Connection reset by peer]
wobblini has joined #ruby
m8 has joined #ruby
<mackwic> Very nice ! thanks !
m8 has quit [Read error: Connection reset by peer]
workmad3 has quit [Read error: Operation timed out]
chrishough has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
frem has joined #ruby
atmosx has quit [Quit: And so the story goes…]
maasha has quit [Quit: Page closed]
HalfMadDad has quit [Ping timeout: 252 seconds]
malkomalko has quit [Remote host closed the connection]
the_mentat has joined #ruby
justsee has quit [Quit: Leaving...]
joshman_ has quit [Quit: Computer has gone to sleep.]
chussenot has quit [Quit: chussenot]
<Spooner_> mackwic, Try show-source Hash#initialize too :D
txdv has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
akashj87 has quit [Ping timeout: 256 seconds]
Eldariof-ru has joined #ruby
ninjanoise has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
wobblini is now known as realDAB
joshman_ has joined #ruby
vlad_starkov has joined #ruby
Eldariof-ru has quit [Client Quit]
<mackwic> Spooner_, yeah sure ! :)
mikepack has quit [Remote host closed the connection]
keymone has quit [Quit: keymone]
eldariof has quit [Ping timeout: 255 seconds]
k776 has joined #ruby
jonahR has joined #ruby
mikepack has joined #ruby
leaked_hot has joined #ruby
<leaked_hot> [HOT][LEAK][FRESH][VENDETTA] => http://pastebin.com/i1pZMzbW || deface it for fun and profit!
leaked_hot has quit [Killed (idoru (Spam is off topic on freenode.))]
banghouse2 has quit [Remote host closed the connection]
nachtwandler has quit [Quit: leaving]
<mackwic> Spooner_, that's cryptic and unreadable :(
havenwood has joined #ruby
<enroxorz-work> ok, tricky question that probably isnt tricky. i have two strings that, if i concat, creates the name of a class. how do i call that class based off the names?
<k776> Hello. I'm trying to parse some emails into a Rails app. That all works fine. The issue is encodings. Plain text emails work, but any weird characters (like \xBB) are causing a "PG::Error: ERROR: invalid byte sequence for encoding "UTF8"" error. I've tried str.encode('UTF-8'), and str.force_encoding('UTF-8') but they both return "ArgumentError: invalid byte sequence in UTF-8" :-( Anyone have any ideas?
tealmage has joined #ruby
keymone has joined #ruby
thams has joined #ruby
VinceThePrince has joined #ruby
ferdev|away is now known as ferdev
thams has quit [Client Quit]
<enroxorz-work> forget it, i figured it out.
newUser1234 has joined #ruby
thams has joined #ruby
thams has quit [Client Quit]
etcetera has quit []
schaerli has joined #ruby
dallasm has joined #ruby
whowantstolivef1 has quit [Ping timeout: 256 seconds]
elico has quit [Quit: elico]
maxmanders has quit [Ping timeout: 255 seconds]
maxmanders has joined #ruby
phinfonet has left #ruby [#ruby]
egghead has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
Qwak has joined #ruby
<realDAB> ruby-2.0.0 is now on ruby-versions.net
<egghead> anyone itc have experience with rbenv? I'm trying to install ruby on a box without the proper zlib stuff, so I have zlib installed into $HOME/opt, and have CONFIGURE_OPTS and RUBY_CONFIGURE_OPTS with zlib dir and opt dir pointing to my homes opt, but it doesn't seem 'rbenv install' is catching it, any ideas?
mando has joined #ruby
<egghead> (alternatively is there a rbenv chan I can go bug people in? :p )
VinceThePrince has quit [Remote host closed the connection]
main has joined #ruby
wackonline has joined #ruby
mercwithamouth has joined #ruby
swex has joined #ruby
yalue has quit [Quit: Leaving]
hiall has joined #ruby
chichou has joined #ruby
wackonline has left #ruby [#ruby]
kraljev3 has quit [Ping timeout: 244 seconds]
kevinfagan has quit [Quit: Leaving...]
<havenwood> egghead: There are #rvm and #chruby channels but nope, no #rbenv.
hiall has quit [Client Quit]
<realDAB> ruby-2.0.0 is now on ruby-versions.net, along with other rubies going back to ruby-1.0
rmcafee has quit [Ping timeout: 256 seconds]
ebobby has quit [Ping timeout: 255 seconds]
swex_ has quit [Ping timeout: 260 seconds]
tcstar has quit [Remote host closed the connection]
rmcafee has joined #ruby
Zta has quit [Ping timeout: 255 seconds]
etcetera has joined #ruby
adkron__ has joined #ruby
adkron_ has joined #ruby
jlast has quit [Remote host closed the connection]
thams has joined #ruby
testingb0t has joined #ruby
elkclone has joined #ruby
banjara has quit [Quit: Leaving.]
thams has quit [Client Quit]
banjara has joined #ruby
<havenwood> egghead: Have you tried appending the `--with-zlib...` configure opt at the end of `rbenv install ...`?
kpshek has quit []
<havenwood> egghead: I think that does work for ruby-build, not sure if rbenv passes on configure opts?
darthdeus_ has joined #ruby
keymone has quit [Quit: keymone]
keymone has joined #ruby
k776 has left #ruby [#ruby]
alv-r- has quit [Quit: Konversation terminated!]
pyrac has quit [Quit: pyrac]
<egghead> thanks havenwood, ruby-build says it does, guess i'll just use rvm
banjara has quit [Client Quit]
Umren has quit [Read error: Connection reset by peer]
banjara has joined #ruby
etcetera has quit [Ping timeout: 264 seconds]
<havenwood> egghead: Might take a look at chruby, as an alternative. Lighter than rbenv, maintained, no shims.
chendo_ has quit [Ping timeout: 252 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
<Spooner_> enroxorz-work, You could use Object.const_get("Str" + "ing") (or whatever module it is in instead of Object).
horofox_ has quit [Quit: horofox_]
<havenwood> egghead: Or RVM. :)
nomenkun has joined #ruby
<Spooner_> I find rbenv/install perfectly fine ;)
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
spyroboy has joined #ruby
banjara has joined #ruby
darthdeus_ has quit [Ping timeout: 245 seconds]
etcetera has joined #ruby
spyroboy has left #ruby [#ruby]
thams has joined #ruby
banjara has quit [Client Quit]
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
phinfonet has joined #ruby
* bean__ likes RVM
vlad_starkov has joined #ruby
<phinfonet> hi
<phinfonet> anyone in here uses archlinux and rbenv?
banjara has quit [Client Quit]
banjara has joined #ruby
arya_ has quit [Disconnected by services]
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
<enroxorz-work> Spooner_: decided to go eval(classname).new.execute(args)
ryanf has quit [Ping timeout: 255 seconds]
<enroxorz-work> I know the overhead sucks but its a small script
banjara has joined #ruby
dallasm has quit [Ping timeout: 252 seconds]
<Spooner_> enroxorz-work, eval is evil and, in this case, totally unnecessary.
mando has quit [Ping timeout: 256 seconds]
Zta has joined #ruby
<realDAB> this banjara thing is getting old
Slivka has joined #ruby
workmad3 has joined #ruby
testingb0t has quit [Quit: Leaving.]
banjara has quit [Client Quit]
<havenwood> Will ruby-version and rbfu both deprecated in favor of chruby, so now just RVM, chruby, rbenv, and ry remain... :O
banjara has joined #ruby
<Spooner_> enroxorz-work, Object.const_get(classname).new.execute(args)
<havenwood> s/Will/Well
rockets has joined #ruby
banjara has quit [Client Quit]
<enroxorz-work> I changed it Spooner_. why is eval so bad?
ryanf has joined #ruby
banjara has joined #ruby
<phinfonet> havenwood: i use rbenv, but i have a problem with gemsets
vlad_starkov has quit [Remote host closed the connection]
<phinfonet> sometimes it doesn't work
ad_sd has quit [Ping timeout: 244 seconds]
<realDAB> havenwood: not sure if that was a response to what i said about ruby-versions.net but if so, ruby-versions.net is unrelated to ruby-version
banjara has quit [Client Quit]
<phinfonet> and uses the global version
<Spooner_> enroxorz-work, Lots of reasons. As you said, it is slow, but it is also unsafe (for example, if you get the name of the class from the user, then you need to filter it to ensure there isn't malicious code in it).
tish has joined #ruby
<realDAB> are there any ops here who can ban banjara?
banjara has joined #ruby
<havenwood> realDAB: Oh, i didn't even notice the similar naming! Yeah, I meant: https://github.com/wilmoore/ruby-version#readme
tish has left #ruby [#ruby]
<havenwood> realDAB: He PMing you?
nkr has quit [Quit: Linkinus - http://linkinus.com]
[Rickmasta] has quit [Quit: Leaving...]
banjara has quit [Client Quit]
haxrbyte_ has joined #ruby
<enroxorz-work> Spooner_: ah. ok. this isn't a user facing script, but its better to get out of the habit of eval then. thanks.
zastern has quit [Ping timeout: 264 seconds]
banjara has joined #ruby
<realDAB> havenwood: no, i'm just finding it annoying that his coming and going is making everything scroll up so fast
dallasm has joined #ruby
<mackwic> enroxorz-work, it's bad engineering practice to use anything that is named "eval" or "goto" in pretty much any language
banjara has quit [Client Quit]
<Spooner_> enroxorz-work, 99 times out of 100, it is possible to avoid eval, since Ruby is such an introspective language.
snearch has quit [Quit: Verlassend]
<havenwood> realDAB: Ahh, i disable those notifications so I didn't notice :P
banjara has joined #ruby
carlyle has quit [Remote host closed the connection]
banjara has quit [Client Quit]
banjara has joined #ruby
tommyvyo_ has joined #ruby
tommyvyo has quit [Ping timeout: 252 seconds]
chussenot has joined #ruby
<enroxorz-work> ok. i will stop using eval all together. used it in some older stuff from when i started with ruby, but those aren;t in use anymore. this is one of those rare cases where case/switch didnt make sense if Object.const_get was there (see! no more eval!)
banjara has quit [Client Quit]
workmad3 has quit [Ping timeout: 252 seconds]
mando has joined #ruby
banjara has joined #ruby
tommyvyo_ is now known as tommyvyo
ninegrid has quit [Ping timeout: 245 seconds]
gaahrdner has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 256 seconds]
fedza_ has quit [Ping timeout: 260 seconds]
<lectrick> i avoid eval at (almost) all costs.
banjara has quit [Client Quit]
<lectrick> you never know where user input creeps in
<phinfonet> sorry ask it in here
<lectrick> see: YAML :)
banjara has joined #ruby
jonahR has quit [Quit: jonahR]
<Spooner_> Yeah, eval, goto and globals are all weapons of last resort, not first ;)
banjara has quit [Client Quit]
jonahR has joined #ruby
<phinfonet> but what you're think in create a gnome-shell plugin to show installed ruby versions on rbenv ?
<enroxorz-work> thanks :)
banjara has joined #ruby
rickmasta has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
<phinfonet> is a good idea?
<Xeago> does anyone know how to compile the source on http://www.osxbook.com/software/iremoted/ ?
axl_ has quit [Quit: axl_]
banjara has quit [Client Quit]
ninegrid has joined #ruby
banjara has joined #ruby
etcetera has quit []
banjara has quit [Client Quit]
banjara has joined #ruby
geekbri has quit [Remote host closed the connection]
thams has quit [Quit: thams]
banjara has quit [Client Quit]
arya__ has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
<Xeago> Did I ever say I was stupid?
<Xeago> build instructions in comments at top of file >.<
banjara has quit [Client Quit]
banjara has joined #ruby
angusiguess has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
ninegrid has quit [Ping timeout: 255 seconds]
banjara has quit [Client Quit]
ninegrid has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Remote host closed the connection]
banjara has joined #ruby
enroxorz-work is now known as not-enroxorz-wor
samuel02 has quit [Remote host closed the connection]
realDAB has quit [Ping timeout: 252 seconds]
creationix has left #ruby [#ruby]
samuel02 has joined #ruby
<[diecast]> can this warning be ignored? "/opt/puppet/vendor/bundle/ruby/1.8/gems/hiera-1.1.2/lib/hiera/backend.rb:95: warning: regexp has invalid interval"
anderse has quit [Quit: anderse]
keymone has quit [Quit: keymone]
phinfonet has quit [Read error: Connection reset by peer]
<Xeago> [diecast]: I don't know what hiera is, I recommend looking at that line and figuring it out
rezzack has quit [Quit: Leaving.]
phinfonet has joined #ruby
krawchyk has quit [Remote host closed the connection]
<[diecast]> Xeago: looks like a validation - tdata.gsub!(/%\{(::)?#{var}\}/, val)
dallasm_ has joined #ruby
dallasm has quit [Read error: Connection reset by peer]
samuel02 has quit [Ping timeout: 260 seconds]
carloslopes has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 252 seconds]
elaptics`away is now known as elaptics
hbpoison has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
axl_ has joined #ruby
<Xeago> [diecast]: I have little to no experience with regex :<
not-enroxorz-wor is now known as BlancheDeveraux
BlancheDeveraux is now known as BlancheDevereaux
kevinfagan has joined #ruby
<[diecast]> Xeago: thanks
<[diecast]> i think i might have some info now from the google machine
rezzack has joined #ruby
indigestible has joined #ruby
<gyre007> can someone give me a hand with this...I have restarted one of the nodes...it came back up just fine, however sensu server is seeing it as down and keep alerting that it hasnt received any keepalives from it in past 5 minutes ?
mercwithamouth has quit [Ping timeout: 240 seconds]
<gyre007> sensu-client is running just fine and its receiving checks from server and sending responses back
<gyre007> strange
FilipNils has left #ruby [#ruby]
axl_ has quit [Client Quit]
axl_ has joined #ruby
TimInEngland has joined #ruby
the_mentat has joined #ruby
gaahrdner has joined #ruby
dallasm_ has quit [Remote host closed the connection]
emmanuelux has joined #ruby
mikeg has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
<gyre007> is rabbit acting funny ? or sensu..mm
sgmac has joined #ruby
dmiller has quit [Read error: Operation timed out]
[diecast] has left #ruby [#ruby]
BlancheDevereaux is now known as JohnRedcorn
<gyre007> sensu-server logs are confirming what I'm seeing in Dashboard...
JohnRedcorn has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<gyre007> that server isnt' receiving keepalives...however server itself IS indeed receiving checks just fine and sending answers back to the server...
<gyre007> strange
<Spooner_> Ha, ODesk just told me I had to change my account name because they didn't believe it was real. Fricking idiots :D
sailias has quit [Ping timeout: 260 seconds]
<gyre007> restarting sensu-client solved the issue...
<gyre007> mmm bug in sensu-client ?
maletor has joined #ruby
<bean__> gyre007: i have no idea was sensu is.
Quebert has joined #ruby
<gyre007> arrgh wrong damn window ;-((((((((((
Morkel has joined #ruby
havenwood has joined #ruby
macq has quit [Ping timeout: 255 seconds]
macq has joined #ruby
beiter has quit [Quit: beiter]
tealmage has quit [Remote host closed the connection]
<banisterfiend> Spooner_: what is odesk
maxamillion has quit [Read error: Operation timed out]
<Spooner_> banisterfiend, Remote contractor site.
beiter has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
ner0x has quit [Quit: Leaving]
Zolo has quit [Remote host closed the connection]
Elhu has joined #ruby
Elhu has quit [Client Quit]
forced_request has joined #ruby
keymone has joined #ruby
cantonic_ has joined #ruby
bigkevmcd has quit [Ping timeout: 252 seconds]
adkron__ has quit [Ping timeout: 276 seconds]
adkron_ has quit [Ping timeout: 276 seconds]
kofno has quit [Remote host closed the connection]
mark_locklear has quit [Ping timeout: 252 seconds]
cantonic has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
phinfonet has quit [Quit: phinfonet]
TimInEngland has quit [Remote host closed the connection]
ninegrid_ has joined #ruby
phinfonet has joined #ruby
d2dchat has quit [Remote host closed the connection]
hackerdude has joined #ruby
dmonjo has joined #ruby
ninegrid has quit [Ping timeout: 240 seconds]
jtperreault has joined #ruby
EPIK has joined #ruby
joshman_ has quit [Ping timeout: 260 seconds]
cantonic_ has quit [Ping timeout: 245 seconds]
phinfonet has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
bigmac has quit [Remote host closed the connection]
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
TheFuzzball has quit [Ping timeout: 240 seconds]
samphippen has joined #ruby
cantonic has joined #ruby
schaerli has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
ryanong has joined #ruby
thams has joined #ruby
jblack has joined #ruby
niklasb has joined #ruby
kirun has quit [Ping timeout: 255 seconds]
joshman_ has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<Spooner_> banisterfiend, Amusingly, banks and passport offices didn't bat an eyelid at my name, but ODesk is more discerning :D
pdamer has quit [Quit: pdamer]
<banisterfiend> Spooner_: what is your name that's so weird?
<Spooner_> Bil Bas
<banisterfiend> that is pretty weird
<banisterfiend> maybe if you used your full name
<banisterfiend> William Bas
joeycarmello has joined #ruby
<Xeago> I don't really see why that is a weird name?
<Spooner_> No, by actual full legal name is considerably worse (Bil Bagpuss Bas)
<banisterfiend> Spooner_: what the fuck? your parents gave you the middle name "Bagpuss" ?
<banisterfiend> are they insane?
razibog has joined #ruby
ebobby has joined #ruby
<Spooner_> I have to admit I've had people think it was an online pseudonym plenty of times before.
cantonic_ has joined #ruby
kpwz has quit [Ping timeout: 276 seconds]
<Spooner_> No, my parents didn't pick the name, but it is my legal name :P
<banisterfiend> you changed your name to that?
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
<banisterfiend> why?
<Spooner_> "Because I could"
<banisterfiend> that's the only reason? it has no other significance?
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
darthdeus has joined #ruby
<Spooner_> Because Bagpuss is a cool cat. And pink.
codecop has quit [Remote host closed the connection]
kpwz has joined #ruby
<banisterfiend> wow, i had no idea you were a loony
kirun has joined #ruby
<Spooner_> I prefer whimsical, but whatever.
ninegrid_ has quit [Ping timeout: 255 seconds]
<Spooner_> Eccentric is fine too.
justsee has joined #ruby
trevortwining has quit [Quit: trevortwining]
breakingthings has quit []
<dmonjo> any good example of metaprogramming?
darthdeus has quit [Ping timeout: 252 seconds]
ninegrid has joined #ruby
<ryanong> Hey I am making a new mocking framework just finished it a few days ago. github.com/ryanong/spy wondering if I could get some feedback on it
<Spooner_> class << dmonjo; def ask; puts "any good example of metaprogramming?"; end; end; dmonjo.ask
TheFuzzball has joined #ruby
babykosh has joined #ruby
<dmonjo> why is that called metaprogramming?
<Spooner_> Hmm, probably not strictly metaprogramming :$
<dmonjo> i understand that metaprogramming is executing code on code not variables
harumph has quit [Ping timeout: 252 seconds]
<Spooner_> metaprogramming is dynamically generating code. My example adds a new method to an existing instance.
<ryanong> I create a method and add it to a class based the name of the field
<ryanong> usually when meta programming you try to delegate as much of the object into a pre-existing method. It makes it easier to debug
m8 has joined #ruby
razibog has quit [Ping timeout: 276 seconds]
railsbros_dirk has quit [Quit: railsbros_dirk]
robbyoconnor has joined #ruby
gosshedd has quit [Ping timeout: 256 seconds]
harrymoreno has joined #ruby
the_mentat has quit []
tealmage has joined #ruby
rawler has quit [Ping timeout: 240 seconds]
zastern has joined #ruby
tealmage has quit [Remote host closed the connection]
breakingthings has joined #ruby
anonymuse has quit [Quit: Leaving...]
luckyruby has joined #ruby
<babykosh> what is the equivalent of this for an array?…. open_spaces_on_board = board.grid.select{ |k,v| v == "+" }.k
<babykosh> open_spaces_on_board = board.grid.select{ |k,v| v == "+" }.keys
jlast has joined #ruby
theRoUS has quit [Ping timeout: 255 seconds]
mockra has quit [Remote host closed the connection]
beiter has quit [Quit: beiter]
ferdev is now known as ferdev|away
<Spooner_> board.grid.select{ |e| e == "+" } (though consider using symbols rather than strings).
ninegrid_ has joined #ruby
chussenot has quit [Quit: chussenot]
ferdev|away is now known as ferdev
rockets has quit [Ping timeout: 245 seconds]
<Spooner_> babykosh, Though board.grid.grep "+" is better in that particular instance.
c0rn has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
ninegrid has quit [Ping timeout: 264 seconds]
c0rn has joined #ruby
<Spooner_> Though that doesn't really seem to be doing the same thing. Depends on the array :D
c0rn has quit [Client Quit]
Elhu has joined #ruby
<dmonjo> select{ |k,v| v == "+" } will return true or false right? how are we using .keys on it ?
tealmage has joined #ruby
kevinfagan has quit [Quit: Leaving...]
chrishough has quit [Quit: chrishough]
<Spooner_> No, it returns a new Hash with those values. #keys gets all the keys so in the end you get all the keys whose value is "+"
<ryanong> Well it will only do that in 1.9 in 1.8 it returned an array
<Spooner_> We are on 2.0. Anyone using 1.8 is lost in time :D
tealmage has quit [Remote host closed the connection]
kofno has joined #ruby
<ryanong> lol
<Spooner_> But yes, I did think it returned an array of 2-element arrays until I checked it just now :D
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
keymone has quit [Quit: keymone]
sepp2k has quit [Ping timeout: 246 seconds]
xclite has quit [Quit: Leaving]
blacktulip has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
<tommylommykins> ooi
<tommylommykins> how come in the documentation, instance methds are prepended by #
<tommylommykins> as in string#split
skattyadz has quit [Quit: skattyadz]
<tommylommykins> why not string.split ?
<Spooner_> Essentially, because they are.
<tommylommykins> is it a notation inherited from smalltalk?
<tommylommykins> or lisp?
<Spooner_> String#split is an instance method. String.split would be a class method.
<Spooner_> The former you'd call with "frog".split and the latter exactly with String.split
breakingthings has quit []
<Spooner_> Not sure where the notation comes from, I'm afraid.
mockra has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
chrishough has joined #ruby
xardas has quit [Ping timeout: 260 seconds]
m8 has quit [Quit: Sto andando via]
joshman_ has quit [Quit: Computer has gone to sleep.]
arya__ has quit [Ping timeout: 252 seconds]
rawler has joined #ruby
tealmage has joined #ruby
<dmonjo> can we say a class method is like static method in java?
cableray has joined #ruby
kpshek has joined #ruby
<Spooner_> You pretty much can, yes.
robbyoconnor has quit [Max SendQ exceeded]
hbpoison has quit [Ping timeout: 246 seconds]
tzenes has joined #ruby
tzenes has left #ruby [#ruby]
robbyoconnor has joined #ruby
tzenes has joined #ruby
joshman_ has joined #ruby
chichou has quit [Remote host closed the connection]
<tzenes> in ruby, is there a way to find all the references to an object given that object?
zoonfafer has joined #ruby
hbpoison has joined #ruby
horofox_ has joined #ruby
<Spooner_> tzenes, Nope, not unless you cycle through all objects and count references yourself.
arya_ has joined #ruby
<dmonjo> like processes for example that opened a specific file
<Mon_Ouie> No. How would you represent those reference?
<dmonjo> Spooner_: you mean all objects in the namespace?
joshman_ has quit [Client Quit]
<tzenes> Spooner_: I don't want to count I want to know who's holding on to the reference, but if I am willing to cycle through all objects, how do I figure out the relations?
<Spooner_> No, all objects.
d2dchat has joined #ruby
<Mon_Ouie> You have to write a methods that checks all the references of an object. There are likely a lot of edge cases.
<Mon_Ouie> (All ivars; the contents of hashes, arrays, structs; if you include classes and singleton classes it can become very confusing)
sepp2k has joined #ruby
philcrissman has quit [Remote host closed the connection]
c0rn has joined #ruby
bradleyprice has quit [Remote host closed the connection]
brian____ is now known as brian___
<dmonjo> what does this mean class << self
reppard has joined #ruby
<indigestible> local variables in procs may also hold references
c0rn has quit [Client Quit]
wmoxam has quit [Quit: leaving]
mattbl has quit [Quit: This computer has gone to sleep]
mercwithamouth has joined #ruby
keymone has joined #ruby
<indigestible> dmonjo from there on you will be attaching methods on self
<Spooner_> Mon_Ouie, This not work? https://gist.github.com/Spooner/5034125
<Spooner_> Or is it a bit naive?
<Mon_Ouie> It only finds references in ivars
<indigestible> well technically not self, but effectively the same thing
mmitchell has quit [Ping timeout: 252 seconds]
<Mon_Ouie> (btw, you can use equal? self instead of __id__ == id)
<Spooner_> True, but anything else is a bit unlikely ;)
Banistergalaxy has joined #ruby
<Mon_Ouie> Arrays and hashes aren't that unlikely
<indigestible> when you say that in a class definition, self is the class you are defining
tenmilestereo has quit [Quit: Leaving]
postmodern has joined #ruby
DrShoggoth has joined #ruby
thams has quit [Quit: thams]
hackerdude has quit [Read error: Connection reset by peer]
<Spooner_> Mon_Ouie, Ta.
interactionjaxsn has quit [Remote host closed the connection]
<indigestible> that means you will be attaching methods to your class,
hackerdude has joined #ruby
ddv has quit [Ping timeout: 240 seconds]
<indigestible> so those methods will be class methods
thams has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
jblack has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Max SendQ exceeded]
<reppard> jello ruby people
robbyoconnor has joined #ruby
alanp has quit [Read error: Operation timed out]
dmiller has joined #ruby
dustint has quit [Ping timeout: 245 seconds]
AndChat| has quit [Ping timeout: 260 seconds]
sweet_kid has quit [Ping timeout: 256 seconds]
alanp has joined #ruby
Cork has quit [Ping timeout: 240 seconds]
ddv has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
<dmonjo> what a good example of a class method Math.sqrt?
<Spooner_> That is a module method. Math is a module, not a class.
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
forrest has quit [Quit: Leaving]
<Spooner_> But a module method acts the same as a class method (a Class is a special type of Module)
harrymoreno has quit [Ping timeout: 260 seconds]
<indigestible> File.open
jblack has joined #ruby
sweet_kid has joined #ruby
<Spooner_> Object.new
peregrine81 has quit [Quit: Computer sleeping.]
<Spooner_> (remember that Object.new calls Object#initialize)
crackedmind_ has quit [Quit: Leaving]
sgmac has quit [Quit: Leaving]
joshman_ has joined #ruby
<Mon_Ouie> Math.sqrt is even slightly trickier, because it's a module function
berserkr has quit [Quit: Leaving.]
harrymoreno has joined #ruby
ph^ has quit [Remote host closed the connection]
<lectrick> someone needs to integrate bitcoin with IRC via a bot like the bitcointip bot on Reddit
jerius has quit [Ping timeout: 255 seconds]
<lectrick> it's not as good as beering someone over the internet, but the next best thing
jonahR has quit [Quit: jonahR]
emergion has joined #ruby
<indigestible> ok now I feel like we're bombarding the poor guy with superfluous details
allaire has quit []
<indigestible> including me of course
<indigestible> better keep it simple
DrShoggoth has quit [Ping timeout: 252 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
reppard has quit [Ping timeout: 276 seconds]
axl_ has quit [Quit: axl_]
baroquebobcat has quit [Quit: baroquebobcat]
chendo_ has quit [Ping timeout: 256 seconds]
emergion has quit [Ping timeout: 264 seconds]
V8Energy has quit []
tobor_one has quit [Quit: tobor_one]
generalissimo has quit [Remote host closed the connection]
darthdeus has joined #ruby
chendo_ has joined #ruby
harrymoreno_ has joined #ruby
Morkel has quit [Quit: Morkel]
jimeh has joined #ruby
indigestible has quit [Quit: Bye]
indigestible has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
<dmonjo> learning ruby the hardway hehe
indigestible has quit [Client Quit]
AlSquire has joined #ruby
<aedornm> I learned Ruby by injection!
kpshek has quit [Ping timeout: 260 seconds]
Cork has joined #ruby
Cork has quit [Changing host]
Cork has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
arya_ has joined #ruby
takeru has joined #ruby
Choobie has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
darthdeus has quit [Ping timeout: 256 seconds]
gabrielrotbart has joined #ruby
zul_ has quit [Quit: Ex-Chat]
love_color_text has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
moted has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
nari has joined #ruby
<aedornm> unit_models.all_key_paths.grep(/models/i).grep(/#{@serial_number[0..3]}/i).first.split('::')[0] ... I think it's missing something.
jimeh has quit [Ping timeout: 272 seconds]
greenarrow has quit [Ping timeout: 255 seconds]
gyre007 has quit [Ping timeout: 256 seconds]
deadalus has quit [Ping timeout: 264 seconds]
mattbl has joined #ruby
greenarrow has joined #ruby
jimeh has joined #ruby
<dmonjo> .first returns the first result only ?
banseljaj is now known as imami|afk
keymone has quit [Quit: keymone]
SCommette has quit [Quit: SCommette]
arya_ has quit [Ping timeout: 248 seconds]
takeru has quit [Ping timeout: 255 seconds]
frem has quit [Ping timeout: 252 seconds]
<aedornm> yes
SCommette has joined #ruby
<aedornm> Also, don't write code like that. Unless your goal is to torture your coworkers...
deadalus has joined #ruby
rismoney has quit [Read error: Connection reset by peer]
willob has quit [Quit: Leaving.]
harrymoreno has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
harrymoreno has joined #ruby
nomenkun has quit [Remote host closed the connection]
moted has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
willob has joined #ruby
havenn_ has joined #ruby
willob has quit [Max SendQ exceeded]
willob has joined #ruby
keymone has joined #ruby
willob has quit [Max SendQ exceeded]
keymone has quit [Client Quit]
S1kx has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 244 seconds]
mikeg has quit [Quit: Leaving]
willob has joined #ruby
arya_ has joined #ruby
mercwithamouth has joined #ruby
rocket has joined #ruby
kirun has quit [Quit: Client exiting]
jerius has joined #ruby
kristofers has quit []
arya_ has quit [Ping timeout: 248 seconds]
geggam_wk has quit [Remote host closed the connection]
thams has quit [Quit: thams]
gaahrdner has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 264 seconds]
Quebert has quit [Ping timeout: 252 seconds]
mengu__ has quit [Read error: Operation timed out]
ph^ has joined #ruby
enebo has quit [Quit: enebo]
SCommette has quit [Quit: SCommette]
ryanong has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 240 seconds]
trevortwining has joined #ruby
<Spooner_> lectrick, I've been asked for my paypal some someone can "beer me", but I've never accepted ;) Seems cheeky, somehow!
horofox_ has quit [Quit: horofox_]
trevortwining has quit [Client Quit]
survili has joined #ruby
chrishough has quit [Quit: chrishough]
36DACZHS9 has joined #ruby
<Spooner_> lectrick, And, apparently, there is #bitcoin-otc on Freenode, but not entirely sure if that is actually something that helps you throw bitcoins about.
dmiller has quit [Quit: WeeChat 0.3.9.2]
rmcafee has quit [Quit: rmcafee]
weddingcakes has joined #ruby
<survili> hi, I have a little problem in my script, calling a method whose definition comes later in the file. I get "undefined local variable or method `some_method' for main:Object (NameError)". As far as I remember, once I saw some sort of trick that allowed ruby forst to interpret the whole file and in last file call something like main method.. Can someone help me resolve this issue or remind me how this trick is done ?
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<Spooner_> Put the "main" code at the end of the file.
maxmanders has quit [Quit: Computer has gone to sleep.]
punkrawkR has quit [Read error: Connection reset by peer]
<Spooner_> Or, as you suggest, make a main method at the top and call it at the end.
thams has joined #ruby
zastern has quit [Remote host closed the connection]
jgarvey has quit [Quit: Leaving]
<survili> Spooner_, got ya! trying
willob has quit [Quit: Leaving.]
zoonfafer has quit [Ping timeout: 256 seconds]
ad_sd has joined #ruby
<Spooner_> survili, Oh, you can also put END { your main code } at the top of the file, but that is sorta minging.
chrishough has joined #ruby
ph^ has quit [Ping timeout: 272 seconds]
bpfh has joined #ruby
ad_sd has quit [Client Quit]
<survili> Spooner_, hmm, good to know. calling main at the end, works like a charm :) thanks again
newUser1234 has quit [Remote host closed the connection]
<dmonjo> ['hello.rb','world.rb','public.html'].grep(/(.*)\.rb/){$1} <<---- what is the role of the (.*) in the grep please?
<Spooner_> dmonjo, Matches any character (.) any number of times(*). Look up Regexp - there is lots of magic there.
icole has quit [Remote host closed the connection]
MrSamuel has joined #ruby
etcetera has joined #ruby
jerius has quit []
daniel_- has quit [Quit: WeeChat 0.3.9.2]
allaire has joined #ruby
havenn_ has quit [Remote host closed the connection]
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
<dmonjo> {$!} to my understanding should return hello.rb not hello, how did we cut the .rb i nthis case?
<dmonjo> if i print withotu the $1 it prints the hello.rb
bean__ has joined #ruby
angusiguess has joined #ruby
<Spooner_> Yes, the $1 refers to the contents of the () captured by the regexp.
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
<Spooner_> Regular expressions are a large topic. You probably should do some research before you ask or we'll be here all night.
<dmonjo> sure
<dmonjo> thanks