apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
eivindml has joined #ruby
lsmola has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
lemur has quit [Ping timeout: 260 seconds]
_2_0130 has quit [Remote host closed the connection]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
dorei has quit []
livingstn has joined #ruby
yezzie has joined #ruby
InhalingPixels has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
axilla has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk_ has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
yezzie has quit [Ping timeout: 245 seconds]
jdj_dk_ has quit [Read error: Connection reset by peer]
livingstn has joined #ruby
jdj_dk has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
lsmola has joined #ruby
SilkFox_ has joined #ruby
jhass is now known as jhass|off
lemur has joined #ruby
sepp2k1 has joined #ruby
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
mferrier has joined #ruby
<benzrf> >> :=
<eval-in____> benzrf => /tmp/execpad-b117ba8de717/source-b117ba8de717:2: syntax error, unexpected '=', expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END (https://eval.in/186717)
<benzrf> >> :==
<eval-in____> benzrf => :== (https://eval.in/186718)
<benzrf> >> :===
<eval-in____> benzrf => :=== (https://eval.in/186719)
<benzrf> >> :====
jdj_dk has quit [Read error: Connection reset by peer]
<eval-in____> benzrf => /tmp/execpad-e04ac3a6c261/source-e04ac3a6c261:2: syntax error, unexpected '=', expecting keyword_end (https://eval.in/186720)
<benzrf> ok
jottr has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
jdj_dk has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
fabrice31 has joined #ruby
yezzie has joined #ruby
GinoMan has quit [Ping timeout: 255 seconds]
tjsousa has quit [Quit: Computer has gone to sleep.]
OffTheRails has quit [Ping timeout: 260 seconds]
tjsousa has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
endash has quit [Quit: endash]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
shevy has quit [Read error: Connection reset by peer]
jack_rabbit has quit [Quit: Leaving]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
drusepth has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
tjsousa has quit [Ping timeout: 245 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
jdj_dk has joined #ruby
davedev24_ has quit [Remote host closed the connection]
Wolland has joined #ruby
davedev24_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
jdj_dk has joined #ruby
rdavila has quit [Quit: rdavila]
Wolland_ has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk_ has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
phutchins has quit [Read error: Connection reset by peer]
jdj_dk_ has quit [Read error: Connection reset by peer]
sleepee has joined #ruby
avita1 has joined #ruby
jdj_dk has joined #ruby
deric_skibotn has joined #ruby
oo_ has quit [Remote host closed the connection]
jdj_dk has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
jdj_dk has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
shevy has joined #ruby
jdj_dk has joined #ruby
yacks has quit [Ping timeout: 255 seconds]
ffranz has quit [Quit: Leaving]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
Sawbones has joined #ruby
yacks has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
sinkensabe has joined #ruby
oo_ has joined #ruby
klmlfl has joined #ruby
sevenseacat has joined #ruby
geggam has quit [Ping timeout: 245 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
sarkis has quit [Ping timeout: 260 seconds]
sambao21 has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Ping timeout: 245 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
Apocalypse has quit [Quit: Input/Output Error]
klmlfl has quit [Ping timeout: 245 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banjara has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
avita1 has quit [Quit: Leaving.]
RandyT has quit [Ping timeout: 240 seconds]
grenierm has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
RandyT has joined #ruby
Scripore has joined #ruby
jdj_dk has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GinoMan has joined #ruby
avita1 has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
aspires has quit []
JoshGlzBrk has joined #ruby
jdj_dk has joined #ruby
lemur has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
lemur has joined #ruby
danijoo has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
jdj_dk has joined #ruby
sleepee has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
cirn0 has joined #ruby
W0rmDr1nk has quit [Ping timeout: 255 seconds]
asteve has joined #ruby
lemur has quit [Ping timeout: 260 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
Apocalypse has joined #ruby
Apocalypse has joined #ruby
Apocalypse has quit [Changing host]
meeko has joined #ruby
jdj_dk has joined #ruby
meeko has left #ruby [#ruby]
bmurt has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
cirn0 has quit [Ping timeout: 245 seconds]
jdj_dk has joined #ruby
iteratorP has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
bearish has joined #ruby
jdj_dk has joined #ruby
kenneth has joined #ruby
deric_skibotn has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cya]
bearish_ has joined #ruby
avi___ is now known as avi__
jdj_dk has quit [Read error: Connection reset by peer]
crdpink has joined #ruby
jdj_dk has joined #ruby
DesertCreature has joined #ruby
crdprink2 has quit [Ping timeout: 245 seconds]
sparrovv has joined #ruby
bearish has quit [Ping timeout: 255 seconds]
geggam has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
SilkFox_ has joined #ruby
bearish_ has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
sparrovv has quit [Ping timeout: 260 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
InhalingPixels has quit [Remote host closed the connection]
jdj_dk has quit [Read error: Connection reset by peer]
Takle has joined #ruby
obs has quit [Quit: Saliendo]
jdj_dk has joined #ruby
Adran has quit [Quit: Este é o fim.]
jdj_dk has quit [Read error: Connection reset by peer]
braincra- has joined #ruby
jdj_dk has joined #ruby
krz has joined #ruby
Adran has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
braincrash has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
jdj_dk has joined #ruby
sylvanica has quit [Ping timeout: 260 seconds]
drusepth has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
tlarevo has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
rockdon_ has joined #ruby
lemur has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
livingstn has joined #ruby
Fezzler has joined #ruby
jdj_dk has joined #ruby
luckyruby has quit [Remote host closed the connection]
Fezzler has quit [Client Quit]
avita11 has joined #ruby
avita1 has quit [Ping timeout: 252 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
catbusters_ has quit [Quit: Connection closed for inactivity]
lemur has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
autochthon has quit [Ping timeout: 250 seconds]
jdj_dk has joined #ruby
Hobogrammer has joined #ruby
nszceta has quit []
work_op has quit [Quit: Page closed]
jack_rabbit has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
alvaro_o has joined #ruby
dustin_ has joined #ruby
dustin_ has left #ruby [#ruby]
jdj_dk has quit [Read error: Connection reset by peer]
maestrojed has joined #ruby
jdj_dk has joined #ruby
optiz0r has quit [Ping timeout: 245 seconds]
sarkis has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
booboojeebies has joined #ruby
jdj_dk has joined #ruby
sea_local has joined #ruby
tokik has joined #ruby
optiz0r has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
autochthon has joined #ruby
DEA7TH has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
asterite has joined #ruby
klmlfl has joined #ruby
asterite has left #ruby [#ruby]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
starless has joined #ruby
Gurpartap has quit [Quit: Gurpartap]
alexju has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
klmlfl has quit [Ping timeout: 255 seconds]
zorak has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
mary5030 has quit [Remote host closed the connection]
krz has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
benlieb has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
benlieb has quit [Client Quit]
alvaro_o has quit [Quit: Ex-Chat]
SilkFox_ has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
fold has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 260 seconds]
livingstn has quit []
flori has quit [Ping timeout: 255 seconds]
flori has joined #ruby
fabrice31 has joined #ruby
chihhsin has quit [Ping timeout: 245 seconds]
yezzie has quit [Ping timeout: 255 seconds]
gaussblurinc1 has joined #ruby
bearish has joined #ruby
Sawbones has quit [Remote host closed the connection]
thomasfedb_ has quit [Ping timeout: 276 seconds]
thomasfedb has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
InhalingPixels has joined #ruby
gaussblurinc1 has quit [Ping timeout: 255 seconds]
bearish has quit [Ping timeout: 245 seconds]
Sawbones has joined #ruby
ValicekB has quit [Ping timeout: 255 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InhalingPixels has quit [Ping timeout: 260 seconds]
starless has quit [Quit: Leaving]
odlox has quit []
jdj_dk has joined #ruby
Jameser has joined #ruby
zorak is now known as zorak8
mumble has quit [Read error: Connection reset by peer]
starless has joined #ruby
pietr0 has joined #ruby
ValicekB has joined #ruby
sea_loca_ has joined #ruby
moxtree has quit [Quit: Leaving]
sea_local has quit [Ping timeout: 255 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
zettam has quit [Read error: Connection reset by peer]
DesertCreature has quit [Remote host closed the connection]
Wolland_ has quit []
omosoj has joined #ruby
Wolland has joined #ruby
fold has joined #ruby
maestrojed has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
omosoj has quit [Quit: Leaving]
TheNet has joined #ruby
maestrojed has quit [Client Quit]
zkay11 has joined #ruby
pietr0 has quit [Quit: pietr0]
Scotteh_ has joined #ruby
sinkensabe has joined #ruby
sea_loca_ has quit [Remote host closed the connection]
Scotteh has quit [Ping timeout: 240 seconds]
sea_local has joined #ruby
klmlfl has joined #ruby
sinkensabe has quit [Ping timeout: 255 seconds]
klmlfl has quit [Ping timeout: 260 seconds]
sea_local has quit [Ping timeout: 260 seconds]
FoxZoOL has joined #ruby
icy` has joined #ruby
arup_r has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
Sawbones has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
DrShoggoth has quit [Quit: Leaving]
mockra_ has joined #ruby
baroquebobcat has joined #ruby
thomasxie has joined #ruby
SilkFox_ has joined #ruby
sea_local has joined #ruby
braincra- has quit [Quit: bye bye]
nedbat has left #ruby ["Textual IRC Client: www.textualapp.com"]
chrishough has joined #ruby
lemur has joined #ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
gsd has joined #ruby
rockdon_ is now known as rockdon|away
zkay11 has left #ruby [#ruby]
braincrash has joined #ruby
sparrovv has joined #ruby
newmanships has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DadoCe has joined #ruby
bearish has joined #ruby
GriffinHeart has joined #ruby
newmanships has joined #ruby
sparrovv has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
chipotle has joined #ruby
oo_ has quit [Remote host closed the connection]
bearish has quit [Ping timeout: 255 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
luckyruby has joined #ruby
Sawbones has joined #ruby
zubov has joined #ruby
TheNet has quit [Quit: Leaving...]
hiyosi has quit [Ping timeout: 260 seconds]
banjara has quit [Quit: Leaving.]
luckyruby has quit [Ping timeout: 264 seconds]
sprihodko has joined #ruby
zubov has quit [Quit: Lingo - http://www.lingoirc.com]
zubov has joined #ruby
zubov has quit [Client Quit]
zz_anildigital is now known as anildigital
zubov has joined #ruby
odlox has joined #ruby
avita11 has quit [Quit: Leaving.]
Lewoco has joined #ruby
sea_local has quit [Remote host closed the connection]
odlox has quit []
tlarevo has quit [Remote host closed the connection]
thams has joined #ruby
J33Zy has joined #ruby
Sawbones has quit [Remote host closed the connection]
mikeg has joined #ruby
Scotteh_ has quit [Ping timeout: 245 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Lewoco> In a .rb file, how do I define functions at global scope so that users who 'require' the .rb can call the functions without needing to prefix a module name?
narcan has joined #ruby
<Lewoco> Oh you just leave out the 'module'.
baroquebobcat has joined #ruby
eam_ is now known as eam
zubov has quit [Quit: Lingo - http://www.lingoirc.com]
alexju has quit [Remote host closed the connection]
hiyosi has joined #ruby
mockra_ has quit [Remote host closed the connection]
klmlfl has joined #ruby
mockra has joined #ruby
mistergibson has quit [Quit: Quitting ... be good to each other :)]
oo_ has joined #ruby
havenwood has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
klmlfl has quit [Ping timeout: 255 seconds]
hiyosi has quit [Ping timeout: 245 seconds]
mockra has quit [Ping timeout: 260 seconds]
rjhunter has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
skolman_ has joined #ruby
J33Zy has quit [Quit: Linkinus - http://linkinus.com]
JBreit has joined #ruby
geggam has quit [Ping timeout: 260 seconds]
rdavila has joined #ruby
avita1 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Wolland has quit [Remote host closed the connection]
fabrice31 has joined #ruby
danijoo has joined #ruby
Wolland has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
GriffinHeart has quit [Remote host closed the connection]
dawkirst has joined #ruby
arup_r has quit [Quit: Leaving.]
chrishough has joined #ruby
stephen has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
dawkirst has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
SilkFox_ has joined #ruby
sylvanica has joined #ruby
avita1 has quit [Quit: Leaving.]
mockra_ has joined #ruby
GriffinHeart has joined #ruby
avita1 has joined #ruby
Vile` has quit [Remote host closed the connection]
Akagi201 has quit []
beef-wellington has joined #ruby
Vile` has joined #ruby
oo_ has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
bearish has joined #ruby
kireevco has joined #ruby
thams_ has joined #ruby
InhalingPixels has joined #ruby
jakolehm has joined #ruby
bearish has quit [Ping timeout: 245 seconds]
Wolland has joined #ruby
thams has quit [Ping timeout: 255 seconds]
thams_ is now known as thams
DadoCe has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 260 seconds]
fold has quit [Ping timeout: 245 seconds]
mallu has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
<mallu> i have defined a variable outside of a method then assigning value to that variable inside a method. Can i call that variable from another method?
mockra_ has quit [Remote host closed the connection]
mockra has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
avita1 has quit [Quit: Leaving.]
duncannz has joined #ruby
spicerack has joined #ruby
<havenwood> mallu: you could use an instance variable like that, or pass around a local variable
baroquebobcat has quit [Quit: baroquebobcat]
mockra has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
p4sh4 has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
avita1 has joined #ruby
mr-foobar has quit [Quit: Leaving...]
<pontiki> these are called "side effects", and they're generally a bad idea as they create couplings in your code
ARCADIVS has joined #ruby
<mallu> can you please take a look at this and see how I can achieve this? http://pastie.org/9520615
wjimenez5271 has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
JBreit has left #ruby ["Leaving"]
wjimenez_ has joined #ruby
<pontiki> volumes_old = get_volumes(); and inside at line 4, don't assign it there. just make sure it's the last thing in the method
anildigital is now known as zz_anildigital
<mallu> ok.. let me try that
cleopatra has joined #ruby
toastynerd has joined #ruby
sindork has quit [Quit: ZNC - http://znc.in]
wjimenez5271 has quit [Ping timeout: 260 seconds]
sindork has joined #ruby
newmanships has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ValicekB has joined #ruby
klmlfl has joined #ruby
Channel6 has quit [Remote host closed the connection]
chihhsin has joined #ruby
oo_ has joined #ruby
sinkensabe has joined #ruby
toastynerd has quit [Remote host closed the connection]
rdavila has quit [Quit: rdavila]
AlexRussia has quit [Ping timeout: 260 seconds]
hiyosi has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
mockra_ has joined #ruby
JohnBat26 has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
zz_anildigital is now known as anildigital
sinkensabe has quit [Ping timeout: 245 seconds]
FoxZoOL has quit [Ping timeout: 255 seconds]
kristofferR has joined #ruby
mallu has joined #ruby
<mallu> havenwood can you please take a look at this error? http://pastie.org/9520636
hiyosi has quit [Ping timeout: 255 seconds]
mary5030 has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 272 seconds]
benzrf is now known as benzrf|offline
bluOxigen has joined #ruby
bushido5 has quit [Ping timeout: 255 seconds]
newmanships has joined #ruby
tlarevo has joined #ruby
toastynerd has joined #ruby
lemur has joined #ruby
<icy`> ? that's not a working example
anildigital is now known as zz_anildigital
<sevenseacat> volumes_old is obviously a string, not an array
toastynerd has quit [Remote host closed the connection]
lxsameer has joined #ruby
<icy`> mallu, maybe use something like codepad.org and prefix your comments/output with #
<icy`> well in codepad case the output shows
skolman_ has quit [Remote host closed the connection]
<mallu> how can I change these strings to an array? ["vol-b68xyz", "vol-658feabc"]
<sevenseacat> that is an array
<sevenseacat> what is in your code is not
rockdon|away has quit [Ping timeout: 260 seconds]
<havenwood> >> ["vol-b68xyz", "vol-658feabc"].inspect
<eval-in____> havenwood => "[\"vol-b68xyz\", \"vol-658feabc\"]" (https://eval.in/186866)
<havenwood> >> eval ["vol-b68xyz", "vol-658feabc"].inspect
skolman__ has joined #ruby
<eval-in____> havenwood => ["vol-b68xyz", "vol-658feabc"] (https://eval.in/186867)
<havenwood> mallu: But don't eval, why do you have a String in the first place?
<havenwood> mallu: Show more code?
malcolmva has quit [Ping timeout: 250 seconds]
sylvanica has quit [Quit: Quitte]
ta_ has quit [Remote host closed the connection]
mallu has quit [Ping timeout: 246 seconds]
<icy`> lol
arup_r has joined #ruby
cirn0 has joined #ruby
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has joined #ruby
cirn0 has quit [Ping timeout: 245 seconds]
zz_anildigital is now known as anildigital
thomasxie has left #ruby [#ruby]
klmlfl has quit [Ping timeout: 255 seconds]
bearish has joined #ruby
JoshGlzBrk has joined #ruby
rjhunter has joined #ruby
ghr has joined #ruby
sinkensabe has joined #ruby
malcolmva has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
<mozzarella> why is it "respond_to?" instead of "responds_to?"
<havenwood> mozzarella: you're asking the object, do you "respond to?"
renier has joined #ruby
<havenwood> mozzarella: not do you responds to?
Takle has joined #ruby
spicerack has quit [Ping timeout: 245 seconds]
<havenwood> mozzarella: same with start_with? etc
<mozzarella> havenwood: why is it "has_key?" then?
<havenwood> mozzarella: guess it shouldn't be ;)
<mozzarella> do you "has key?"
<havenwood> have_key?
<mozzarella> >> {}.respond_to?(:have_key?)
<eval-in____> mozzarella => false (https://eval.in/186877)
<havenwood> mozzarella: it historically hasn't been consistent, but some of the third person have been deprecated, not all
Morkel has joined #ruby
<mozzarella> ruby has so many aliases, it might want to add some more
<havenwood> i think they've been trying to make it a bit more consistent
deric_skibotn has quit [Ping timeout: 255 seconds]
<havenwood> at least in cases where there were aliases, they've been willing to deprecate the inconsistent one
<havenwood> but i think some oddness is just grandfathered in, at least for 2.x
<havenwood> can't break backwards compatibility for propriety
Takle has quit [Ping timeout: 260 seconds]
<EasyCo> Anybody have a good read suggestion (online or otherwise) to help me wrap my head around include, extend and module composition? For example, looking through the Rails source code, each bloody module includes or extends 10 others and I'd like to pretend I understand what's happening but I don't.
aces1up9939 has joined #ruby
<aces1up9939> my ruby is running in version 1.8, can i set programmatically to ensure it runs 1.9? or can i use just enviornment variable?
<EasyCo> havenwood: Cool thanks, I haven't read that one. I'll have a look.
heftig has joined #ruby
Pharaoh2 has joined #ruby
<havenwood> EasyCo: Worth playing around with in irb/pry. A module that includes a module basically gets the same methods. A module that extends a module promotes those instance methods to module methods.
<aces1up9939> if i do a ruby -v and it says 1.8.7 then i do not have 1.9 installed right?
spicerack has joined #ruby
<aces1up9939> or is that pulling from the enviornment variable?
<havenwood> aces1up9939: You may have 1.9 installed, but not selected.
<aces1up9939> havenwood right cool how do i select it?
<havenwood> aces1up9939: That's the currently selected binary reporting its version.
<havenwood> aces1up9939: What distro/OS? how'd you install Ruby?
<aces1up9939> i have centos it was awhile ago.. I believe i installed via yum
ValicekB has quit [Ping timeout: 255 seconds]
toastynerd has joined #ruby
kyb3r_ has joined #ruby
<havenwood> aces1up9939: Do you want just one modern Ruby, or to be able to switch between Rubies?
<aces1up9939> naa just 1.9 is fine.
<havenwood> aces1up9939: 1.9s EOL is coming up pretty soon. Might want to just 2.0+.
<aces1up9939> hrmm ok just don't want to break any of my code..
<havenwood> aces1up9939: In that case, maybe consider just a ruby-install to /usr/local.
<aces1up9939> haven't ever run it on 2.0
<havenwood> aces1up9939: The 1.8 to 1.9 jump is harsh compared to the painless 1.9 to 2.0 to 2.1.
<havenwood> but sure, you can bump up from 1.9 whenever
<sevenseacat> i did that upgrade on a rails app recently
<sevenseacat> 1.8-1.9 was definitely the biggest pain point
<aces1up9939> ok i will try 2.0 what is the best way to remove current version or is that necessary?
<aces1up9939> yeh when i went from 1.8 to 1.9 alot of stuff broke.
<aces1up9939> that is why i was worried.
<havenwood> that's expected
sinkensabe has quit [Remote host closed the connection]
<havenwood> aces1up9939: think of 1.9.3 as the 2.0 release candidate :P
<aces1up9939> havenwood ahh ok. cool
starkhalo has quit [Ping timeout: 245 seconds]
<aces1up9939> havenwood what is the best way to remove the current version i have? or do i need to?
<havenwood> aces1up9939: to install 2.0 to be available in your PATH: ruby-install -i /usr/local/ ruby 2.0
<havenwood> aces1up9939: or latest stable: ruby-install -i /usr/local/ ruby
toastynerd has quit [Ping timeout: 260 seconds]
mallu has joined #ruby
<aces1up9939> cool
<aces1up9939> so thats sets all my paths up for the new install?
<havenwood> aces1up9939: well, it relies on /usr/local already being in it
lemur has quit [Remote host closed the connection]
<mallu> havenwood.. can you tell me how I can get this? http://pastie.org/9520681
lemur has joined #ruby
<havenwood> aces1up9939: consider chruby if you want finer control: https://github.com/postmodern/chruby#readme
<mallu> I want volumes_old to return as array not string
<havenwood> aces1up9939: or RVM if you want an all-in-one mega solution. :P
<sevenseacat> i like chruby. i installed it and then forgot about it.
<havenwood> sevenseacat: :)
<sevenseacat> exactly what i want such a tool to do.
<sevenseacat> zero problems
tagrudev has joined #ruby
<aces1up9939> what is the command to setup a new gem repository in custom directory?
bearish has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Kerber0s has quit [Read error: Connection reset by peer]
Kerber0s has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
<sevenseacat> mallu: have you looked at what its returning?
<mallu> yes.. it is returning strings
hiyosi has joined #ruby
* sevenseacat raises eyebrow
saarinen has joined #ruby
<mallu> undefined method `map' for "[nil, \"vol-bdddb3\", \"vol-8ddd0\"]":String (NoMethodError
alexju has joined #ruby
<havenwood> mallu: what's instance_old?
ValicekB has joined #ruby
kireevco has quit [Quit: Leaving.]
* sevenseacat backs away from discussion slowly
<mallu> instance_old is the instance id from which I want to get the volume ids
aganov has joined #ruby
<havenwood> mallu: an integer?
<Wolland> mallu try compact before map
<mallu> no string
<havenwood> mallu: was just confused because you: "#{instance_old}"
<Wolland> nm
<havenwood> mallu: if it's already a string don't do all that
fabrice31 has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
<havenwood> mallu: line 11 i mean
<havenwood> mallu: show the output for: p old_instance_info
<mallu> #{instance_old} how else would I pass the instance_old to the method?
<havenwood> mallu: just instance_old
<havenwood> mallu: no cruft
<mallu> ok
<aces1up9939> havenwood ok i installed ruby 2.0 thanks for the assist.. what paths do i need to change in linux? currently ruby -v is still reporting 1.8
hiyosi has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
ctp has joined #ruby
mr-foobar has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<havenwood> aces1up9939: just add /usr/local/bin to the PATH, i think in centos that'd be editing /etc/profile?
lw has quit [Quit: s]
<Wolland> mallu: can you post instance_old_info json
<havenwood> prepend to the PATH*
<havenwood> aces1up9939: often that's already the case, i guess you'll need to do it
saarinen has quit [Ping timeout: 260 seconds]
AndChat| has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<mallu> [4] pry(main)> p old_instance_info("i-5456780") ["vol-456783", "vol-2345670"]
relix has joined #ruby
GriffinHeart has joined #ruby
<havenwood> aces1up9939: to try it out: export PATH=$PATH:/usr/local/bin
<havenwood> err
<havenwood> aces1up9939: i mean: export PATH="/usr/local/bin:$PATH"
<Wolland> so it's working now? I meant inside of your method
<havenwood> aces1up9939: it's late >.>
saarinen has joined #ruby
<aces1up9939> havenwoodv looks like it was running from usr/bin i just copied over the exectuables there.
<aces1up9939> gem, irb, and ruby.
<aces1up9939> thats all i need there right?
<havenwood> aces1up9939: well.. i'd not mess with system ruby
<sevenseacat> that sounds dangerous
<havenwood> aces1up9939: just munge the PATH
<havenwood> aces1up9939: or whatev :P
<aces1up9939> hrmm ok.
mityaz has joined #ruby
<mallu> here is the output [4] pry(main)> p old_instance_info("i-5456780") ["vol-456783", "vol-2345670"]
<sevenseacat> any sort of manual munging like that really doesnt sound like a good idea, we have tested tools to do that
<havenwood> aces1up9939: i'd suggest checking the canonical way to prepend /usr/local/bin to PATH in CentOS, but you could just add this line to a dotfile that gets sourced: export PATH="/usr/local/bin:$PATH"
spastorino has quit [Quit: Connection closed for inactivity]
<havenwood> aces1up9939: or yeah, use chruby ;)
<sevenseacat> chruby ftw
axsuul has quit [Read error: Connection reset by peer]
bal has joined #ruby
<mallu> havenwood, sevenseacat see the output?
<havenwood> so looks like /usr/local/bin is in CentOS root PATH but for users you may need to visudo secure_path add it
Kerber0s has quit []
<havenwood> aces1up9939: ^ dunno, haven't CentOSed in a long time
<havenwood> mallu: so, that's the Array you want, it seems
Kerber0s has joined #ruby
<havenwood> mallu: what's the problem?
<mallu> I'm getting "undefined method `map' for "[nil, \"vol-d5567\", \"vol-8dty5670\"]":String (NoMethodError)"
<Wolland> cause it's not an array in your json, it's a string
<sevenseacat> you seem to be missing a step in the middle
<sevenseacat> youve showed us an array, and then an error on a string, and missing the bit in the middle
<mallu> Wolland.. yes.. I want it to be an array
<aces1up9939> i added a new gem_path but it installed my gem in the default directorty.
<mallu> so I'm calling volumes_old from another method
<Wolland> gist your json mallu
<havenwood> aces1up9939: chruby handles this all for ya ;)
<sevenseacat> where are you calling create_snapshot?
timonv_ has quit [Remote host closed the connection]
<sevenseacat> thats the bit you're missing
toastynerd has joined #ruby
<havenwood> aces1up9939: though if you want we could probably help you get it sorted manually
axsuul has joined #ruby
sinkensabe has joined #ruby
<havenwood> aces1up9939: chruby sets GEM_HOME, GEM_PATH etc correctly
<Wolland> mallu: gist the value of this: instance_old_json
<mallu> Wolland.. I need to remove some stuff from it before I can post it
<Wolland> sure
<havenwood> aces1up9939: i fear i may have led you astray with the /usr/local suggestion, just because CentOS :P
<havenwood> aces1up9939: often that's a totally painless route
<havenwood> aces1up9939: but seems they decided to not play nicely with /usr/local out of the box, dunno
mikeg has quit [Remote host closed the connection]
<havenwood> aces1up9939: anyways, chruby will autodetect rubies in ruby-install default installation directories
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has joined #ruby
<havenwood> aces1up9939: or you can point chruby at wherever you'd like to install Ruby
toastynerd has quit [Ping timeout: 245 seconds]
riotjones has joined #ruby
<havenwood> aces1up9939: dev or production?
tylerkern has quit [Quit: Connection closed for inactivity]
Macaveli has joined #ruby
thomasxie has joined #ruby
mockra_ has quit [Remote host closed the connection]
lemur has joined #ruby
<mallu> let me ask another question.. if I create an empty array called snapshot_id, can I do something like this inside a method snapshot_id << snapshot_ids["SnapshotId"]
mockra has joined #ruby
<mallu> created the empty array outside the method
techsethi has joined #ruby
Lewix has quit [Remote host closed the connection]
<mallu> I'm getting " undefined local variable or method `snapshot_id' for main:Object (NameError)"
armyriad has quit [Ping timeout: 255 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has quit [Quit: Space~~~]
<mallu> in other words how can i call a variable array from outside a method and add values to that variable array?
<havenwood> mallu: you've defined no `snapshot_id`, but we've no way of knowing what's going on
thomasxie has quit [Client Quit]
<havenwood> haven't seen any code where there's a snapshot_id
meinside has joined #ruby
<mallu> havenwood.. it is general question... how can I call a variable array which is defined somewhere and assign values to that array from a method?
<havenwood> mallu: guessing you meant to? (uhg, naming...): snapshot_id = []
InhalingPixels has joined #ruby
mockra has quit [Ping timeout: 255 seconds]
MasterPiece has joined #ruby
MasterPiece has joined #ruby
<mallu> yes. .. snapshot_id =[], then insise a method I'm doing snapshot_id <<
lemur has quit [Ping timeout: 272 seconds]
<havenwood> mallu: Err, that sounds like you mean instanciate a class with an empty Array instance method then append to that Array in a method?
<mallu> yes sir
b00stfr3ak has joined #ruby
<havenwood> mallu: class Example; def initialize; @array = [] end; def a_method; @array << :stuff end end
tobago has joined #ruby
<havenwood> mallu: try running that code in irb ^
<mallu> ok
<havenwood> mallu: then checkout: example = Example.new; example.a_method; example.a_method
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<mallu> thank you
oo_ has quit [Remote host closed the connection]
<havenwood> mallu: worth studying up on classes ^
narcan has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
shock_one has joined #ruby
shock_one_ has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
shock_one_ has quit [Client Quit]
mallu has quit [Ping timeout: 246 seconds]
avita1 has quit [Quit: Leaving.]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
GriffinHeart has joined #ruby
<riotjones> true == :true?
<sevenseacat> no
<havenwood> never!
oo_ has joined #ruby
Bumptious has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
Bumptious has joined #ruby
<havenwood> riotjones: a symbol or true won't twoquals anything but itself
<riotjones> ok thanks!
<havenwood> >> TrueClass === true
<eval-in____> havenwood => true (https://eval.in/186902)
<havenwood> >> Symbol === :true
<eval-in____> havenwood => true (https://eval.in/186903)
dawkirst has joined #ruby
<riotjones> ah ok, now i get it
dcoxall has joined #ruby
aces1up9939 has quit []
CaptainJet has quit []
starless has quit [Quit: Leaving]
HelperW has joined #ruby
bayed has joined #ruby
sparrovv has joined #ruby
Scotteh_ has joined #ruby
narcan has joined #ruby
jdj_dk has quit [Remote host closed the connection]
jdj_dk has joined #ruby
dkamioka has joined #ruby
shortCircuit__ has joined #ruby
<shortCircuit__> hi
<havenwood> hi
Scotteh_ has quit [Ping timeout: 245 seconds]
dcoxall has quit []
fabrice31 has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
tfitts has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
lele has joined #ruby
lele has quit [Excess Flood]
bearish has joined #ruby
Addiction has joined #ruby
lele has joined #ruby
franks2_ has joined #ruby
Soliah has joined #ruby
jdj_dk has quit [Remote host closed the connection]
hiyosi has joined #ruby
Guest89619 has quit [Quit: This computer has gone to sleep]
tfitts has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
hellangel7 has joined #ruby
sarkis has quit [Ping timeout: 260 seconds]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
franks2 has quit [Quit: leaving]
franks2_ is now known as frankS2
hiyosi has quit [Ping timeout: 245 seconds]
skolman__ has quit [Remote host closed the connection]
ptrrr has joined #ruby
narcan has joined #ruby
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
maletor has joined #ruby
GinoMan has quit [Ping timeout: 260 seconds]
sparrovv has quit [Ping timeout: 260 seconds]
arup_r has quit [Remote host closed the connection]
froggy has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
froggy has left #ruby [#ruby]
blueOxigen has joined #ruby
pandaant has joined #ruby
saarinen has quit [Quit: saarinen]
bluOxigen has quit [Ping timeout: 255 seconds]
niklasb has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
az has quit [Ping timeout: 260 seconds]
toastynerd has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
shaileshg has joined #ruby
grenierm has quit [Quit: grenierm]
dawkirst_ has joined #ruby
krisquigley has joined #ruby
sarkis has joined #ruby
krisquigley has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 245 seconds]
krisquigley has joined #ruby
cirn0 has joined #ruby
Pharaoh2 has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
mahtennek has joined #ruby
dawkirst_ has quit [Remote host closed the connection]
mahtennek has quit [Remote host closed the connection]
wpp has joined #ruby
grenierm has joined #ruby
echevemaster has quit [Quit: Leaving]
cirn0 has quit [Ping timeout: 260 seconds]
krisquigley has quit [Ping timeout: 260 seconds]
Lewoco has quit [Quit: Leaving]
axsuul has quit [Ping timeout: 245 seconds]
shortCircuit__ has left #ruby [#ruby]
ghr has joined #ruby
spicerack has quit [Ping timeout: 245 seconds]
Guest13407 has quit [Quit: sleep]
krisquigley has joined #ruby
arup_r has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
grenierm has quit [Quit: grenierm]
anarang has joined #ruby
newmanships has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has joined #ruby
DevAntoine has joined #ruby
dkamioka has quit [Remote host closed the connection]
ghr has joined #ruby
icy` has quit [Quit: .: adios :.]
hellangel7 has quit [Max SendQ exceeded]
arup_r has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
hellangel7 has joined #ruby
sarkis has quit [Ping timeout: 255 seconds]
unshadow has joined #ruby
jeramyRR has joined #ruby
RyanV has joined #ruby
cleopatra has quit [Remote host closed the connection]
lemur has joined #ruby
shock_one_ has joined #ruby
inbox has joined #ruby
wjimenez_ has quit [Remote host closed the connection]
<unshadow> In ruby 1.9.3 - 2, do I need ruby-dbi to interact with databases or does it has that functionality built in ?
mrsolo has joined #ruby
kaspertidemann has joined #ruby
<jeramyRR> hi all, need some help with an invalid method error that rspec keeps spitting out
<jeramyRR> when i run the program it works just fine, but rspec is saying invalid method ‘include’ for 1:fixnum
toastynerd has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
lemur has quit [Ping timeout: 245 seconds]
jhass|off is now known as jhass
<jeramyRR> anyone have any ideas? the error is in fizzbuzz_compare
toastynerd has quit [Read error: No route to host]
toastynerd has joined #ruby
<sevenseacat> jeramyRR: how do numbers include strings?
<havenwood> jeramyRR: 1.include?("Fizz")
<jeramyRR> that’s the thing, its answer.include
<jeramyRR> and answer is a string
<sevenseacat> no its not
<sevenseacat> it's 1
<jeramyRR> answer = gets.chomp
<jhass> unshadow: I'm not aware of database adapters in stdlib, dbi or oherwise
<jeramyRR> answer == string right?
<tobiasvl> gets.chomp? what line is that on?
<jeramyRR> or answer.class == string
<sevenseacat> you're passing 1 into fizzbuzz_compare
<sevenseacat> therefore answer is 1
<jeramyRR> i included the rest of the class, please hit refresh
bjz has joined #ruby
<jeramyRR> oh crap
<jeramyRR> I get it now
<jeramyRR> in my rspec file i’m passing it as an int
<jeramyRR> thank you
<sevenseacat> yes :)
<jeramyRR> I never would have thought about the error being in the rspec file
<sevenseacat> the error points to the rspec file...
<sevenseacat> the error is in a spec...
<jeramyRR> woot, it passes now
<sevenseacat> :)
<tobiasvl> it says SPECifically: "Failure/Error: expect(game.fizzbuzz_compare(1, 1)).to eq(true)"
<tobiasvl> which is code from the spec
<jeramyRR> I didn’t include my spec code in the gist
<sevenseacat> we know.
<jeramyRR> I guess I know to do that in the future now
<jeramyRR> I’m a noob if you haven’t figured that out yet
<jeramyRR> well, I guess Fizzbuzz gives it away
charliesome has joined #ruby
<tobiasvl> well you included the error in a comment, with code that is clearly spec code
toastynerd has quit [Ping timeout: 255 seconds]
alexju has quit [Remote host closed the connection]
blackmesa has joined #ruby
sleepee has joined #ruby
darrenkclee has joined #ruby
alex88 has joined #ruby
<havenwood> unshadow: depends on the DB, for SQL stuff i'd recommend the Sequel gem
Asher has joined #ruby
max06 has joined #ruby
<havenwood> unshadow: there's DBM/GDBM/SDBM in the stdlib
sk87 has joined #ruby
krisquigley has quit [Remote host closed the connection]
kalusn has joined #ruby
oponder has joined #ruby
darrenkclee has quit [Quit: darrenkclee]
hiyosi has joined #ruby
<havenwood> unshadow: guessing you don't mean the DBM type >.>
inbox has left #ruby [#ruby]
relix has joined #ruby
sectionme has joined #ruby
emocakes has joined #ruby
<havenwood> for redis there's the redis gem, etc
Kerber0s has quit [Remote host closed the connection]
<unshadow> havenwood: Thanks :)
starless has joined #ruby
Jackneill has joined #ruby
Xeago has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
krz has joined #ruby
sarkis has joined #ruby
unshadow has quit [Quit: leaving]
<jeramyRR> Good night guys, and thanks for the help
mikecmpbll has joined #ruby
Soliah has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
sarkis has quit [Ping timeout: 245 seconds]
xhoy_ has quit [Remote host closed the connection]
<havenwood> jeramyRR: g'night
jeramyRR has quit [Quit: jeramyRR]
iteratorP has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
iteratorP has joined #ruby
LekeFly has joined #ruby
<shevy> dumdedum
dumdedum has joined #ruby
LiohAu has joined #ruby
oo_ has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 245 seconds]
Wolland has quit [Remote host closed the connection]
Akagi201 has joined #ruby
CpuID has quit [Ping timeout: 245 seconds]
p4sh4 has quit []
scottj has joined #ruby
JBreit has joined #ruby
krisquigley has joined #ruby
JBreit has left #ruby [#ruby]
CpuID has joined #ruby
Xeago has joined #ruby
[1]Addiction has joined #ruby
[1]Addiction has quit [Read error: Connection reset by peer]
[1]Addiction has joined #ruby
[1]Addiction has quit [Read error: Connection reset by peer]
p0sixpscl has joined #ruby
gaussblurinc1 has joined #ruby
Addiction has quit [Ping timeout: 245 seconds]
Addiction has joined #ruby
Addiction has quit [Read error: Connection reset by peer]
mferrier has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Addiction has joined #ruby
eivindml has joined #ruby
[1]Addiction has joined #ruby
Takle has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
[2]Addiction has joined #ruby
oo_ has joined #ruby
gaussblurinc1 has quit [Ping timeout: 255 seconds]
Addiction has quit [Ping timeout: 255 seconds]
InhalingPixels has joined #ruby
[1]Addiction has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
pwestlund has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
rjhunter has quit [Remote host closed the connection]
DaniG2k has joined #ruby
Addiction has joined #ruby
andrewlio has joined #ruby
[2]Addiction has quit [Ping timeout: 255 seconds]
Aaaal has joined #ruby
CorpusCallosum has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
darrenkclee has joined #ruby
darrenkclee has quit [Client Quit]
DaniG2k_ has joined #ruby
timonv_ has joined #ruby
jimmykarily has joined #ruby
DaniG2k_ has quit [Client Quit]
DaniG2k_ has joined #ruby
lemur has joined #ruby
scottj has left #ruby [#ruby]
rageberry has joined #ruby
DaniG2k_ has quit [Client Quit]
Symbiosisz has quit [Remote host closed the connection]
W0rmDr1nk has joined #ruby
Addiction has quit [Ping timeout: 255 seconds]
Aaaal has quit [Quit: Aaaal]
DaniG2k has quit [Ping timeout: 245 seconds]
timonv_ has quit [Remote host closed the connection]
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
rageberry has quit [Client Quit]
mercwithamouth has joined #ruby
toastynerd has joined #ruby
rageberry has joined #ruby
Xeago has joined #ruby
lemur has quit [Ping timeout: 255 seconds]
toastynerd has quit [Read error: No route to host]
Aaaal has joined #ruby
toastynerd has joined #ruby
LekeFly_ has joined #ruby
Aaaal has quit [Ping timeout: 245 seconds]
toastynerd has quit [Ping timeout: 245 seconds]
LekeFly has quit [Ping timeout: 260 seconds]
rdark has joined #ruby
dumdedum has quit [Ping timeout: 255 seconds]
starless has quit [Quit: Leaving]
lkba has joined #ruby
jhass is now known as jhass|off
jack_rabbit has quit [Ping timeout: 255 seconds]
pranny has joined #ruby
DouweM has joined #ruby
marr has joined #ruby
Takle has quit [Remote host closed the connection]
hiyosi has joined #ruby
hendrici1s is now known as hendricius
Addiction has joined #ruby
hendricius has quit [Quit: leaving]
gaussblurinc1 has joined #ruby
rageberry has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
<shevy> "In order to build Mozart 2, you need the following tools on your computer:"
<shevy> java >= 1.6.0
<shevy> everyone wants java :(
<shevy> but it gets better
<shevy> Boost >= 1.53.0 (with development files)
hiyosi has quit [Ping timeout: 255 seconds]
<shevy> now we combine java AND C++!
<shevy> but that is still not enough
<shevy> Tcl/Tk 8.5 or 8.6 (with development files)
<shevy> yay \o/
<shevy> AND
<shevy> emacs
<shevy> :)
rexar has joined #ruby
Takle has joined #ruby
sarkis has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rexar has quit [Client Quit]
dumdedum has joined #ruby
dawkirst has joined #ruby
duncannz has quit [Ping timeout: 260 seconds]
HelperW has quit [Quit: Lingo - http://www.lingoirc.com]
dmyers1 has joined #ruby
sevenseacat has quit [Quit: Leaving.]
EasyCo has quit [Quit: Connection closed for inactivity]
sarkis has quit [Ping timeout: 272 seconds]
<wasamasa> wait, what
<wasamasa> emacs as build tool?
<wasamasa> or is it because it comes with an emacs mode
duncannz has joined #ruby
<shevy> not entirely sure
<wasamasa> I guess so
Takle has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 260 seconds]
<wasamasa> 1998
DaniG2k has joined #ruby
mkaesz has joined #ruby
<wasamasa> shevy: why are you interested in that language anyways
AlSquire has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
iteratorP has quit [Remote host closed the connection]
hellangel7 has quit [Read error: Connection reset by peer]
DevAntoine has quit [Ping timeout: 260 seconds]
DevAntoine has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
iteratorP has joined #ruby
mkaesz has quit [Ping timeout: 276 seconds]
cirn0 has joined #ruby
tvw has joined #ruby
<shevy> wasamasa I think it was related to audio?
* wasamasa slowly backs off
kristofferR has joined #ruby
mferrier has joined #ruby
Kerber0s has joined #ruby
kaspertidemann has quit []
<shevy> hehe
emocakes has quit []
cirn0 has quit [Ping timeout: 260 seconds]
error404_ is now known as error404
nfk has joined #ruby
mferrier has quit [Ping timeout: 268 seconds]
InhalingPixels has joined #ruby
elstif has joined #ruby
MSY has joined #ruby
MSY is now known as Guest90641
shock_one_ has quit [Ping timeout: 255 seconds]
qba73 has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
zettam has joined #ruby
zarul has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
stef_204 has joined #ruby
decoponio has joined #ruby
mary5030 has joined #ruby
mkaesz has joined #ruby
timonv_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
mary5030 has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
lemur has joined #ruby
spider-mario has joined #ruby
blackmesa has joined #ruby
spider-mario has quit [Remote host closed the connection]
banister has joined #ruby
toastynerd has joined #ruby
dmyers1 is now known as dmyers
agbeladem has joined #ruby
dmyers has quit [Changing host]
dmyers has joined #ruby
karupa is now known as zz_karupa
rylev has joined #ruby
spider-mario has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
mkaesz has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mkaesz has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
sarkis has joined #ruby
einarj has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
warprobot has joined #ruby
sarkis has quit [Ping timeout: 272 seconds]
<Mon_Ouie> Heh, just got a mail about a class about that language
xcv_ has joined #ruby
<Mon_Ouie> shevy: They don't actually use Java, they use Scala :p
MasterPiece has quit [Quit: Leaving]
radic_ has quit [Ping timeout: 245 seconds]
xcv__ has joined #ruby
mark06 has joined #ruby
havenwood has quit []
radic has joined #ruby
<shevy> oh man
fsapo has joined #ruby
hiyosi has joined #ruby
charliesome has quit [Quit: zzz]
timonv_ has joined #ruby
<mark06> does ruby have something to tell if terminal supports colors?
xcv_ has quit [Ping timeout: 276 seconds]
<Mon_Ouie> No, maybe look for a library that can use terminfo if you need it to be accurate
mkaesz has quit [Ping timeout: 272 seconds]
<Mon_Ouie> A common trick is to just check if a) $stdout.tty? is true and b) TERM != "dumb"
<Mon_Ouie> (where TERM is the TERM environment variable)
ndrei has joined #ruby
<mark06> unfortunately tty? is not an option because it's broken for mintty
bearish has quit [Remote host closed the connection]
<Hanmac> >> ENV["TERM"]
<eval-in____> Hanmac => nil (https://eval.in/186964)
hiyosi has quit [Ping timeout: 264 seconds]
pu22l3r has joined #ruby
bearish has joined #ruby
<mark06> Mon_Ouie: I heard about TERM != dumb, do you have any document stating that's a reliable way to know that there are color support (at least basic colors)
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
<Mon_Ouie> It probably isn't that reliable :p It's more like, anytime some application sets TERM to dumb, you can expect that there will be no support for colors, but I imagine there are other terminals with no color support
sk87 has joined #ruby
<mark06> maybe a more conservative/better way is to check for common terminal types... what are the most common beyond xterm?
Takle has joined #ruby
<Mon_Ouie> I think that makes it easier to miss things. I'd start with TERM != dumb and if I find any other terminal that doesn't support colors, add it to the list
charliesome has joined #ruby
max06 has quit [Ping timeout: 255 seconds]
<mark06> I prefer that the user does not see colors but have the program working than they see raw ansi escapes and wat on it
Takle has quit [Remote host closed the connection]
DevAntoine has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
pu22l3r has quit [Remote host closed the connection]
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
ndrei has quit [Quit: Lost terminal]
fabrice31 has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 245 seconds]
tjsousa has joined #ruby
OffTheRails has joined #ruby
max06 has joined #ruby
max06 has quit [Client Quit]
JonnieCache has joined #ruby
iteratorP has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
fumk has quit [Excess Flood]
fumk has joined #ruby
Takle has joined #ruby
Morkel_ has joined #ruby
<mark06> thanks
mark06 has left #ruby [#ruby]
Morkel has quit [Ping timeout: 245 seconds]
Morkel_ is now known as Morkel
mferrier has joined #ruby
DEA7TH has joined #ruby
odlox has joined #ruby
fabrice31 has joined #ruby
chipotle has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
mferrier has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Kerber0s has quit [Remote host closed the connection]
max06 has joined #ruby
InhalingPixels has joined #ruby
warprobot1 has joined #ruby
warprobot has quit [Read error: Connection reset by peer]
agbeladem has quit [Ping timeout: 246 seconds]
tkuchiki_ has joined #ruby
olivier_bK has joined #ruby
InhalingPixels has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
tkuchiki_ has quit [Ping timeout: 268 seconds]
warprobot1 has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
wpp has quit []
rylev has joined #ruby
mferrier has joined #ruby
odlox_ has joined #ruby
odlox has quit [Ping timeout: 245 seconds]
rylev has quit [Remote host closed the connection]
toastynerd has joined #ruby
adantj has quit [Ping timeout: 245 seconds]
Aaaal has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.4.3]
toastynerd has quit [Read error: No route to host]
MCDev has quit [Ping timeout: 250 seconds]
mferrier has quit [Ping timeout: 276 seconds]
Addiction has quit [Ping timeout: 245 seconds]
agjacome has joined #ruby
jottr has joined #ruby
end_guy has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cya]
arup_r has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 252 seconds]
michael_imac is now known as michael_mbp
benzrf|offline is now known as benzrf
sarkis has joined #ruby
bearish_ has joined #ruby
djdb has joined #ruby
mary5030 has joined #ruby
bearish__ has joined #ruby
bearish has quit [Ping timeout: 272 seconds]
end_guy has joined #ruby
earthquake has joined #ruby
sarkis has quit [Ping timeout: 245 seconds]
Andriamanitra has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
bearish_ has quit [Ping timeout: 245 seconds]
mary5030 has quit [Ping timeout: 260 seconds]
mark06 has joined #ruby
usse has joined #ruby
<mark06> does %x return an array for you?
pwestlund has quit [Read error: Connection reset by peer]
<Mon_Ouie> No, it returns a String
<Mon_Ouie> That answer is from 2008, he's probably using Ruby 1.8
<Mon_Ouie> In 1.8 String#each is each_line
Andriamanitra has joined #ruby
pwestlund has joined #ruby
Kerber0s has joined #ruby
KingOfKarlsruhe has quit [Ping timeout: 240 seconds]
<Nowaker> Mon_Ouie: be sure to edit the answer. :)
hiyosi has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kerber0s has quit [Read error: Connection reset by peer]
Kerber0s has joined #ruby
KingOfKarlsruhe has joined #ruby
AlexRussia has joined #ruby
tjsousa has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
arup_r has joined #ruby
_Kerber0s_ has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
kriskrop1 has quit [Ping timeout: 240 seconds]
Kerber0s has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
TaxmanBD has joined #ruby
Addiction has joined #ruby
<mark06> how would you conditionally set case insensitivity in a pattern literal?
jottr has quit [Ping timeout: 240 seconds]
Scotteh_ has joined #ruby
<mark06> any clever way than p = enable? /long/i : /long/?
tokik has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
<tobiasvl> mark06: several ways
jottr has joined #ruby
banister has joined #ruby
<tobiasvl> maybe this works:
<tobiasvl> str = "long"; p = enable? "i" : ""; %r(#{Regexp.escape(str)})#{p}
<tobiasvl> or maybe it doesn't like the empty string at the end…
<tobiasvl> anyway, you can send a constant like so: `Regexp.new(Regexp.escape("long"), Regexp::IGNORECASE)`
<tobiasvl> or a string like this: `Regexp.new(Regexp.escape("long"), "i")`
odlox_ has quit [Ping timeout: 255 seconds]
luckyruby has joined #ruby
<mark06> too ugly
Addiction has quit [Read error: Connection reset by peer]
kalusn has quit []
olivier_bK has quit [Ping timeout: 260 seconds]
axilla has joined #ruby
<shevy> hehehe
<shevy> damn tobiasvl
<shevy> you write so ugly code man
<Bish> why does iterating over a hash map give me the values as tuples? i feel like that is not ruby-like behavior
<shevy> ruby has tuples?
<Bish> array.
<Bish> i was expecting to get the values when doing hash.each do |e| end
<shevy> hash.values.each
<shevy> hash.each should return an Enumerator
<shevy> though for a hash it may be more common to run hash.each_pair {|key,value| }
<Bish> oh, i am an idiot, well sorry
sectionme has quit [Ping timeout: 255 seconds]
<shevy> I think the problem with hash.map is what you want to modify
<shevy> like if you have a hash like this:
<shevy> hash = { :cat => 'Tom', :mouse => 'Jerry' }
<shevy> so if you want to apply .map on it, how to modify both?
<shevy> or only the keys? or only the values?
<shevy> :)
sepp2k has joined #ruby
<shevy> in an array this is easier to answer
<shevy> array = ['Tom','Jerry']
<Bish> i tried hash.each.with_index and it gave me numbers.. i expected the index to be key in the hashmap
<shevy> array.map {|entry| entry * 2 } # => ["TomTom", "JerryJerry"]
<Bish> instead hash.each do |k,v| works fine
<shevy> \o/
Xeago has quit [Remote host closed the connection]
<izzol2> I'm trying to understand when I should use private/protected and I have some problems.
mdw has joined #ruby
<izzol2> This is what I have in my test scenario: http://pastebin.com/x1MuGdPj
<izzol2> It make sens ?
<izzol2> Or not really?
InhalingPixels has joined #ruby
<mdw> is there a #rails channel?
ptrrr has quit [Quit: ptrrr]
Fractional has joined #ruby
<izzol2> I'm using only self.iso and self.epoch from other class.
<Fractional> How can you return true or false from a class's constructor? I am trying to do the following: if Foo.new(true) then ..
<Fractional> The return value would of course depend on something else other than the instance of the class successfully creating.
<Mon_Ouie> That doesn't make sense, new can't both return a new instance and return your other value
<Fractional> Mon_Ouie: It does not need to return a new instance.
<izzol2> Fractional: I guess you need to put your "true return" to the method, and then call the method from that class.
<Mon_Ouie> Then don't use new
<Mon_Ouie> Call it something else that isn't going to be misleading
Takle has quit [Remote host closed the connection]
<Fractional> Mon_Ouie: Ok, thanks!: )
<tobiasvl> mdw: #rubyonrails
<izzol2> Fractional: if Foo.method == true ...
<mdw> tobiasvl thanks
<tobiasvl> Fractional: if new didn't return the created instance, the constructor wouldn't be of much use ;)
<Fractional> Now I need to find a great name for the method, ugh :P
InhalingPixels has quit [Ping timeout: 268 seconds]
timonv_ has quit [Remote host closed the connection]
<Fractional> tobiasvl: Brainfreeze :'<
narcan has joined #ruby
Xeago has joined #ruby
Takle has joined #ruby
pwestlun1 has joined #ruby
pwestlund has quit [Read error: Connection reset by peer]
<izzol2> Anyone? :-)
<workmad3> Fractional: also, if new doesn't return the instance, it throws an exception, iirc
<workmad3> Fractional: unless there's something you're doing in the constructor that is causing a status flag of some kind to be set? ;)
<tobiasvl> izzol2: it looks fine I think
<tobiasvl> izzol2: why do you set @time in self.time though?
<tobiasvl> you never use it, you just use the return value
luckyruby has quit [Remote host closed the connection]
<Fractional> workmad3: Thanks, no nothing causing a status flag :P Will simply make new method for it
mferrier has joined #ruby
luckyruby has joined #ruby
<workmad3> izzol2: I'd say it's slightly more idiomatic to have the public methods at the top using the default (public) visibility and then a 'private' keyword afterwards to change the visibility of all methods after that point
<izzol2> tobiasvl: you right. No need to use @time there.
Fractional has quit [Remote host closed the connection]
lemur has joined #ruby
<tobiasvl> yes, agree with workmad3
ldnunes has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
toastynerd has joined #ruby
<izzol2> Ahh yes. It's better to put public on top without public as they are in default public, and in the end private.
<izzol2> Make sense.
bogeyd6_ has quit [Read error: Connection reset by peer]
<izzol2> But I still have a problem to understand when I should use private :)
cocotton has joined #ruby
<Cope> has active_support changed its name or something? trying to bundle install and getting a failure to get active_support; nor can I gem install it.
<workmad3> izzol2: 'private' declares the methods as being part of the implementation details of the class, IMO
<izzol2> For example if I have a class where I don't use attr_accessor. It's better to add it ( let's say :test) and then private :test ?
<workmad3> Cope: no... but then it's been called 'activesupport' since about version 1 I believe ;)
luckyruby has quit [Ping timeout: 264 seconds]
mferrier has quit [Ping timeout: 260 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
<workmad3> izzol2: personally, I prefer to think of it as 'does this method need to be public?' rather than 'does this method need to be private?'
_Kerber0s_ has quit []
<Cope> workmad3: so I'd expect active_support in a gemfile to be a mistake then? Wondering how this ever worked
Kerber0s has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
<workmad3> Cope: active_support 3.0.0 was accidentally released and yanked... so it's possible you were using that version
heftig has quit [Ping timeout: 272 seconds]
cocotton has quit [Remote host closed the connection]
<Cope> thanks workmad3
toastynerd has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
kristofferR has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarkis has joined #ruby
earthquake has quit [Quit: earthquake]
Xeago has joined #ruby
<mark06> the most readable I've got http://vpaste.net/FXufM
gurix has joined #ruby
terlar has joined #ruby
<izzol2> workmad3: so all methods that I'm trying to call from other classes should be public and all methods that I'm trying to call from other methods in the same class are mostly private?
WillAmes has quit [Remote host closed the connection]
narendraj9 has joined #ruby
WillAmes has joined #ruby
Lewix has joined #ruby
Xeago has quit [Remote host closed the connection]
<workmad3> izzol2: pretty much
MCDev has joined #ruby
sarkis has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
<workmad3> izzol2: if a method is expected to be called by another object, it needs to be public. If the method is only intended to implement functionality then it's most likely private
Lewix has quit [Remote host closed the connection]
<workmad3> izzol2: if you're writing libraries and other widely used code, it's also *much* easier to make a private method public than it is a public method private
timonv_ has joined #ruby
phoo1234567 has joined #ruby
sectionme has joined #ruby
hiyosi has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
timonv_ has quit [Remote host closed the connection]
Neomex has joined #ruby
InhalingPixels has joined #ruby
timonv_ has joined #ruby
amundj has joined #ruby
Xeago has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
sparrovv has joined #ruby
selasi has joined #ruby
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
olivier_bK has joined #ruby
sectionme has quit [Ping timeout: 240 seconds]
aclearman037 has joined #ruby
sparrovv has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
Sgeo_ has quit [Read error: Connection reset by peer]
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
St_Marx has joined #ruby
yokel_ has quit [Ping timeout: 245 seconds]
HelperW has joined #ruby
claymore has joined #ruby
DevAntoine has joined #ruby
charliesome has joined #ruby
bluenemo has joined #ruby
freerobby has joined #ruby
rylev has joined #ruby
sparrovv_ has joined #ruby
sparrovv has quit [Ping timeout: 260 seconds]
kriskropd has joined #ruby
sparrovv_ has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
jhass|off is now known as jhass
hoelzro_ is now known as hoelzro
britneywright has joined #ruby
Lewix has joined #ruby
agjacome has quit [Quit: leaving]
Scripore has quit [Ping timeout: 245 seconds]
mark06 has left #ruby [#ruby]
arup_r has quit [Remote host closed the connection]
<aep> can i call an enclosing class in a do block somehow?
<aep> i mean methods of that class
workmad3 is now known as wm3|away
<aep> class A ; for i in bla do ; someMethodOfA
cirn0 has joined #ruby
sectionme has joined #ruby
mark06 has joined #ruby
cocotton has joined #ruby
<mark06> why do I get no superclass method `<<' for []:Array (NoMethodError) when overwriting <<?
<shevy> how did you overwrite it
<shevy> aep class A; class << self; def bla; end; end
<shevy> hmm I might have forgotten an end
<aep> shevy: oooh thanks
cocotton has quit [Remote host closed the connection]
<aep> nope same thing. undefined method `validates_integrity_of' for #<Class:0x007f0bfd333ed8> (NoMethodError)
meinside has quit [Quit: Connection closed for inactivity]
startupality has joined #ruby
<aep> class A ; class << self ; [1,2].each do |i| validates_integrity_of i
<aep> where validates_integrity_of is a member of A
claymore has quit [Ping timeout: 272 seconds]
<aep> err no wait, it isnt
<shevy> where do you def
startupality has quit [Client Quit]
<aep> that method is defined somewhere else
<aep> trying to figure out how
<shevy> well, if it is a method
<shevy> on an object
<shevy> then the notation is usually object.method_name_here
ohvlad has joined #ruby
oponder has quit [Ping timeout: 255 seconds]
<aep> its a DSL that basically works with class A; that_method ; end
<shevy> you have instance_eval and class_eval to support such DSL
freerobby has quit [Quit: Leaving.]
cirn0 has quit [Ping timeout: 276 seconds]
<shevy> but usually it is best if you make a minimal example first, and then put it into your real class
<benzrf> aep: y are you using for..in
sk87 has joined #ruby
<aep> because i want to avoid replicating a whole bunch of code
kriskropd has quit [Ping timeout: 272 seconds]
<aep> i'd have to repeat that block for every of the refs
mr-foobar has quit [Ping timeout: 255 seconds]
claymore has joined #ruby
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
mr-foobar has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<shevy> k so you try to subclass from ActiveRecord::Base
<aep> yeah
xcv__ has quit [Remote host closed the connection]
bmurt has joined #ruby
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MCDev has quit [Read error: Connection reset by peer]
MCDev has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> not sure how you normally invoke methods from there
<aep> i found it. its some obscure thing that adds the DSL
<aep> and i forgot to do that
<aep> the code works now :D
spastorino has joined #ruby
britneywright has left #ruby ["Textual IRC Client: www.textualapp.com"]
mferrier has joined #ruby
mferrier has quit [Remote host closed the connection]
Takle has joined #ruby
terlar has quit [Read error: Connection reset by peer]
rimenes has joined #ruby
oo_ has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 272 seconds]
max061 has joined #ruby
toastynerd has joined #ruby
max06 has quit [Ping timeout: 252 seconds]
usse has quit [Ping timeout: 252 seconds]
beef-wellington has quit [Ping timeout: 260 seconds]
Bumptious has quit [Ping timeout: 240 seconds]
pskrz has joined #ruby
Fire-Dragon-DoL has joined #ruby
tlarevo_ has joined #ruby
kristofferR has joined #ruby
kristofferR has quit [Client Quit]
toastynerd has quit [Ping timeout: 272 seconds]
yacks has quit [Read error: Connection reset by peer]
Guest90641 has quit [Ping timeout: 255 seconds]
Insti has quit [Ping timeout: 255 seconds]
tlarevo has quit [Ping timeout: 260 seconds]
bearish__ is now known as bearish
sleepee has quit [Ping timeout: 245 seconds]
terlar has joined #ruby
sarkis has joined #ruby
railzForDaiz has joined #ruby
mradmacher has joined #ruby
pu22l3r has joined #ruby
kristofferR has joined #ruby
sparrovv has joined #ruby
Morkel has quit [Quit: Morkel]
railzFor_ has joined #ruby
railzForDaiz has quit [Client Quit]
MSY has joined #ruby
MSY is now known as Guest88814
az has joined #ruby
mr-foobar has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
sarkis has quit [Ping timeout: 276 seconds]
MCDev has quit [Ping timeout: 250 seconds]
sparrovv_ has joined #ruby
sparrovv has quit [Ping timeout: 276 seconds]
pu22l3r has quit [Ping timeout: 276 seconds]
TheNet has joined #ruby
wm3|away has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
hamakn has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
hiyosi has joined #ruby
rdavila has joined #ruby
Koshian has quit [Ping timeout: 250 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
sambao21 has joined #ruby
pranny has quit [Quit: Leaving.]
GriffinHeart has joined #ruby
anaeem1 has quit [Remote host closed the connection]
arup_r has joined #ruby
hiyosi has quit [Ping timeout: 255 seconds]
rdavila has quit [Ping timeout: 260 seconds]
sparrovv_ has quit [Remote host closed the connection]
gurix has quit [Quit: gurix]
jonr22 has joined #ruby
rdavila has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
warprobot has joined #ruby
endash has joined #ruby
jonr22 has quit [Client Quit]
mferrier has joined #ruby
cuppscakes has joined #ruby
synergyz has quit [Read error: Connection reset by peer]
gurix has joined #ruby
jonr22 has joined #ruby
ptrrr has joined #ruby
Lewix has quit [Remote host closed the connection]
railzFor_ has quit [Quit: Textual IRC Client: www.textualapp.com]
rdavila has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby
dANOKELOFF has joined #ruby
phutchins has joined #ruby
pwestlun1 has quit [Read error: Connection reset by peer]
techsethi has quit [Quit: techsethi]
hellangel7 has joined #ruby
terlar has quit [Read error: Connection reset by peer]
Insti has joined #ruby
mark06 has left #ruby [#ruby]
pwestlun1 has joined #ruby
jerius has joined #ruby
Lewix has quit [Remote host closed the connection]
qmcnti has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
tokik has joined #ruby
xcv has joined #ruby
joast has joined #ruby
msmith has joined #ruby
sylvanica has joined #ruby
crazydiamond has joined #ruby
parduse has quit [Ping timeout: 245 seconds]
dblessing has joined #ruby
sailias has joined #ruby
parduse has joined #ruby
DaniG2k has quit [Ping timeout: 272 seconds]
unshadow has joined #ruby
Takle has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
arup_r has quit [Remote host closed the connection]
metadave has quit []
arup_r has joined #ruby
mark06 has joined #ruby
gtrak has joined #ruby
<mark06> how would you access a $global from a symbol :global? is eval the only way?
alexju has joined #ruby
arup_r has quit [Remote host closed the connection]
wm3|away has joined #ruby
<Mon_Ouie> As far as I know it is, there's no global_variable_get/set
yfeldblum has joined #ruby
<Hanmac> hm i checked it too, there isnt
unshadow has quit [Client Quit]
starkhalo has joined #ruby
Takle has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
anildigital is now known as zz_anildigital
TheDracle has joined #ruby
andrewlio has quit [Quit: Leaving.]
tlarevo_ has quit [Ping timeout: 240 seconds]
<jhass> mark06: besides, I'm sure you can find a sane application design that doesn't have that need
tlarevo has joined #ruby
tlarevo has quit [Remote host closed the connection]
beef-wellington has joined #ruby
sleepee has joined #ruby
tlarevo has joined #ruby
kaspergrubbe has joined #ruby
cuppscakes has quit [Quit: Whoops, AFK.]
SilkFox_ has joined #ruby
paulfm has joined #ruby
anaeem1_ has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
toastynerd has joined #ruby
terlar has joined #ruby
lemur has joined #ruby
Takle has quit [Remote host closed the connection]
gurix has quit [Quit: gurix]
Andriamanitra has quit [Ping timeout: 252 seconds]
Jameser` has joined #ruby
Ankhers has joined #ruby
Lewix has joined #ruby
Takle has joined #ruby
SilkFox_ has quit [Ping timeout: 268 seconds]
tlarevo has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Remote host closed the connection]
dserodio has quit [Quit: ZNC - http://znc.in]
kaspergrubbe has joined #ruby
gurix has joined #ruby
jusmyth has joined #ruby
momomomomo has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
jusmyth has left #ruby [#ruby]
toastynerd has quit [Ping timeout: 268 seconds]
Kricir has joined #ruby
dserodio has joined #ruby
sevenseacat has joined #ruby
siwica has joined #ruby
britneywright has joined #ruby
crazed_ is now known as crazed
sarkis has joined #ruby
Andriamanitra has joined #ruby
pu22l3r has joined #ruby
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
rylev has quit [Remote host closed the connection]
* jimmykarily
cuppscakes has joined #ruby
<shevy> cool
<shevy> mark06 perhaps write to ruby-core team to add that
cuppscakes has quit [Max SendQ exceeded]
<shevy> though probably that is the first time that someone needed it
<shevy> hahaha :D
orolo has joined #ruby
TheNet_ has joined #ruby
jonr22 has joined #ruby
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
<mark06> don't feel like doing it, see https://bugs.ruby-lang.org/issues/9016
<mark06> abandoned
<siwica> Since some of you are probably using RubyMine as an IDE: I have included some other ruby files with "require 'require_all'; require_all 'foo_directory'". Why does auto-completion does not work for the classes I am using from withing the directory foo_directory?
Neomex has quit [Read error: Connection reset by peer]
sarkis has quit [Ping timeout: 245 seconds]
cuppscakes has joined #ruby
Neomex has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 245 seconds]
cuppscakes has quit [Max SendQ exceeded]
TheNet has quit [Ping timeout: 240 seconds]
Jameser` has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
cuppscakes has joined #ruby
anarang has quit [Quit: Leaving]
livingstn has joined #ruby
jonr22 has quit [Client Quit]
bking39116 has joined #ruby
banister has joined #ruby
hiyosi has joined #ruby
banister has quit [Max SendQ exceeded]
clocKwize has quit [Ping timeout: 240 seconds]
gccostabr has joined #ruby
yokel has joined #ruby
banister has joined #ruby
<shevy> mark06 that's natural, nobody likes encoding
TheNet has joined #ruby
banister has quit [Max SendQ exceeded]
AlexRussia has joined #ruby
Insti has quit [Max SendQ exceeded]
AlexBlom has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
snath has quit [Ping timeout: 245 seconds]
clocKwize has joined #ruby
jusmyth1 has joined #ruby
kriskropd has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
TheNet_ has quit [Ping timeout: 240 seconds]
kristofferR has quit [Ping timeout: 240 seconds]
jusmyth2 has joined #ruby
jusmyth1 has quit [Read error: Connection reset by peer]
banister has joined #ruby
Guest88814 has quit [Quit: This computer has gone to sleep]
kaspergrubbe has quit [Remote host closed the connection]
luckyruby has joined #ruby
kaspergrubbe has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
cocotton has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
jobewan has joined #ruby
rylev has joined #ruby
arup_r has joined #ruby
momomomomo has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
cocotton has quit [Remote host closed the connection]
<Mon_Ouie> How is Ruby supposed to magically know the encoding of data passed to argv?
banister_ has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
sigurding has joined #ruby
aganov has quit [Quit: Leaving]
zz_anildigital is now known as anildigital
<Mon_Ouie> (well, magically, as I said :p)
banister_ has quit [Max SendQ exceeded]
jmbrown412 has quit [Remote host closed the connection]
Aranshada|W__ is now known as Aranshada|W
banister_ has joined #ruby
banister has quit [Ping timeout: 246 seconds]
banister_ has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Takle has quit [Remote host closed the connection]
<apeiros> shevy: you'd like the world a whole lot less if there were no encodings
banister has joined #ruby
banister has quit [Max SendQ exceeded]
echooo has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
zarul has joined #ruby
zarul has joined #ruby
Takle has joined #ruby
banister has joined #ruby
jobewan has quit [Remote host closed the connection]
banister has quit [Max SendQ exceeded]
jobewan has joined #ruby
DaniG2k has joined #ruby
qwyeth has joined #ruby
zz_jrhorn424 is now known as jrhorn424
andrewlio has joined #ruby
momomomomo_ has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
brasten has joined #ruby
tylerkern has joined #ruby
rylev has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 276 seconds]
momomomomo_ is now known as momomomomo
krz has quit [Quit: WeeChat 1.0]
rylev has joined #ruby
obs has joined #ruby
Kricir has quit [Ping timeout: 268 seconds]
zettam_ has joined #ruby
britneywright has joined #ruby
jakolehm has quit []
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Client Quit]
sigurding has quit [Ping timeout: 268 seconds]
rylev has quit [Ping timeout: 245 seconds]
zettam has quit [Ping timeout: 255 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
banister has joined #ruby
rylev has joined #ruby
banister has quit [Max SendQ exceeded]
sigurding has joined #ruby
ryanleesipes has joined #ruby
shackleford has joined #ruby
_KaszpiR_ has quit [Ping timeout: 240 seconds]
mupkoo has joined #ruby
shackleford has quit [Remote host closed the connection]
dte has joined #ruby
shackleford has joined #ruby
DivineEntity has joined #ruby
yfeldblum has joined #ruby
gsd has joined #ruby
ta_ has quit [Remote host closed the connection]
shackleford has quit [Read error: Connection reset by peer]
TheNet has quit [Quit: Leaving...]
shackleford has joined #ruby
fumk has quit [Ping timeout: 276 seconds]
Macaveli has quit [Ping timeout: 255 seconds]
<shevy> all we need is US-ASCII
<Mon_Ouie> My nickname disagrees!
felixjet has joined #ruby
Rollabunna has quit [Ping timeout: 268 seconds]
cirn0 has joined #ruby
sigurding has quit [Ping timeout: 268 seconds]
timonv_ has quit [Remote host closed the connection]
jusmyth2 has left #ruby [#ruby]
<shevy> how to best save a specific time into a file (as a string logically), and then restore that as some time object?
yfeldblum has quit [Ping timeout: 252 seconds]
timonv_ has joined #ruby
<shevy> let's say I store "2014-09-02 16:20:17 +0200" into the file time.txt
ptierno_ has joined #ruby
<shevy> hmm Time.parse seems to work
fumk has joined #ruby
<apeiros> shevy: and by "we" you mean "I". unless you want to go tell all asian people that they have to use latin script now.
<apeiros> shevy: also, US-ASCII is an encoding too
DesertCreature has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
wm3|away is now known as workmad3
<mferrier> shevy: YAML.load(YAML.dump(Time.now))
cirn0 has quit [Ping timeout: 252 seconds]
DaniG2k_ has joined #ruby
aedorn has quit [Ping timeout: 260 seconds]
timonv_ has quit [Ping timeout: 276 seconds]
anaeem1_ has quit [Remote host closed the connection]
<workmad3> mmm, encodings are fun
tagrudev has quit [Quit: Me = Awesome]
<shevy> apeiros yeah we don't need those weird asian stuff
momomomomo has quit [Quit: momomomomo]
<shevy> apeiros precisely - one is enough
yacks has joined #ruby
binaryhat has quit [Quit: Leaving]
<shevy> we will all consolidate on the english language one day
<toertore> shevy: iso 8601
<toertore> everyone: utf-8
toertore is now known as toretore
<shevy> nah
DaniG2k has quit [Ping timeout: 260 seconds]
<shevy> nobody needs 8601
binaryhat has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
sigurding has joined #ruby
Wolland has joined #ruby
<apeiros> 8601 is time/date
_KaszpiR_ has joined #ruby
<apeiros> 8859-1 is probably what was meant :)
<apeiros> shevy: again, speak for yourself. it's not "we" by a long shot. it's you.
<toretore> 8859-X is the devil's work
mallu has joined #ruby
agjacome has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
<shevy> apeiros I speak how I want to
<workmad3> shevy: if we got rid of unicode, you couldn't tell someone their idea is
Wolland has joined #ruby
<shevy> workmad3 the unicode snowman is pretty nifty
SilkFox_ has joined #ruby
<workmad3>
<shevy> you probably have the whole MS Word included in Unicode
<shevy> *Gallery
geggam has joined #ruby
<shevy> with that jumping paper clip
<mallu> can someone help me with this? http://pastie.org/9521690
anildigital is now known as zz_anildigital
fumk has quit [Remote host closed the connection]
<mallu> getting "`block in create_snapshot': undefined local variable or method `snapshot_id' for main:Object (NameError)"
<toretore> it's pretty obvious
<apeiros> shevy: sure. you come across rather arrogant this way, but go ahead.
<toretore> look over your code one more time
<apeiros> pretend to speak for others…
<shevy> apeiros did I tell you for who to speak?
<toretore> look at the code, now look at the error, now at the code again
<shevy> apeiros please speak for the penguins
<jhass> mallu: the variable or method snapshot_id is undefined
baroquebobcat has joined #ruby
DevAntoine has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
<mallu> but I'm creating snapshot_id as an array before the method
<workmad3>
<linduxed> so if have a modul nested inside a module, like Fruit::Banana or something like that and i have some class methods on the Banana module
<mallu> Can't I call it inside the method?
<linduxed> i'd like to test that with RSpec
<toretore> mallu: look more
<workmad3> mallu: you can't access local variables from outside a 'def' inside it
<shevy> right but not for "snapshot_id" mallu
<workmad3> mallu: you lose the scope
lemur has joined #ruby
<jhass> mallu: they're called _local_ variables for reason
<linduxed> the problem is it that when i do `describe Banana do` i get a NameError
<apeiros> shevy: I guess you're best ignored anyway.
<linduxed> and yes, i'm wrappnig the describe with a `module Fruit` first
<toretore> oh
<linduxed> it seems as if i have to turn the Banana module into a class
<mallu> so how do I call snapshot_id which is an empty array fron inside the method?
<linduxed> otherwise RSpec nameerrors
<jhass> linduxed: describe Fruit::Banana?
<linduxed> any ideas as to why or how i could solve this?
<workmad3> mallu: pass it in
lw has joined #ruby
<linduxed> jhass: i'll try that
<toretore> linduxed: `describe Fruite::Banana` ?
<toretore> damit
<toretore> 2late
Wolland_ has joined #ruby
<mallu> workmad3 Please explain
<jhass> mallu: pass it in or make a class with it as instance variable
<linduxed> OOH WAIT
<linduxed> damn it
warprobot has quit [Read error: Connection reset by peer]
<linduxed> i don't have my LOAD_PATH set up
<linduxed> that explains things
* linduxed facepalms
SilkFox_ has quit [Ping timeout: 260 seconds]
warprobot has joined #ruby
warprobot has quit [Remote host closed the connection]
<mallu> sorry to bug.. what does "pass it in" in mean?
<toretore> mallu: first, paste the entire file which contains your code
<jhass> mallu: you already pass volumes_old in
felixjet has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
felixjet has joined #ruby
<toretore> i'm guessing he's not the one calling create_snapshot
hellangel7 has quit [Quit: Leaving]
Wolland has quit [Ping timeout: 260 seconds]
lw has quit [Client Quit]
spyderman4g63 has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
mockra has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
albedoa has joined #ruby
zz_anildigital is now known as anildigital
shaileshg has quit [Quit: Connection closed for inactivity]
shredding has joined #ruby
sleepee has quit [Ping timeout: 240 seconds]
lolmaus has quit [Quit: Konversation terminated!]
thams_ has joined #ruby
lolmaus has joined #ruby
sleepee has joined #ruby
<siwica> Sorry for repeating my question.
<siwica> Since some of you are probably using RubyMine as an IDE: I have included some other ruby files with "require 'require_all'; require_all 'foo_directory'". Why does auto-completion does not work for the classes I am using from withing the directory foo_directory?
pu22l3r has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
sarkis has joined #ruby
ffranz has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
<shevy> I don't use RubyMine
<shevy> I think most people use some other editor here, vim and sublime are very widespread
failshell has joined #ruby
AlvaroFernandoMS has joined #ruby
marr has quit [Ping timeout: 245 seconds]
Sawbones has joined #ruby
thams has quit [Ping timeout: 260 seconds]
kaspertidemann has joined #ruby
momomomomo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
failshell has quit [Client Quit]
thams_ has quit [Ping timeout: 260 seconds]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
krisquigley has quit [Remote host closed the connection]
dte has quit [Ping timeout: 268 seconds]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
lolmaus has quit [Quit: Konversation terminated!]
krisquigley has joined #ruby
sarkis has quit [Ping timeout: 255 seconds]
jottr_ has joined #ruby
toastynerd has joined #ruby
GinoMan has joined #ruby
lmickh has joined #ruby
threesixes has quit [Remote host closed the connection]
amundj has quit [Ping timeout: 260 seconds]
pu22l3r has quit [Ping timeout: 268 seconds]
dte has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
jottr has quit [Ping timeout: 240 seconds]
fumk has joined #ruby
tlarevo has joined #ruby
JohnFord has joined #ruby
krisquigley has quit [Ping timeout: 276 seconds]
sleepee has quit [Ping timeout: 245 seconds]
maroloccio has joined #ruby
pranny has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
sleepee has joined #ruby
enebo has joined #ruby
<benzrf> dooooon't use rubymine
<benzrf> use vim
<benzrf> vim is a great editor
bal has quit [Quit: bal]
<benzrf> i cant imagine that IDEs would help much in ruby
riotjones has quit [Quit: waT]
<benzrf> it's too dynamic
sevenseacat has quit [Quit: Leaving.]
anildigital is now known as zz_anildigital
<mark06> thanks all
mark06 has left #ruby [#ruby]
AlvaroFernandoMS has left #ruby [#ruby]
lolmaus has joined #ruby
havenwood has joined #ruby
sambao21 has joined #ruby
itspots has joined #ruby
krisquigley has joined #ruby
fumk has quit [Ping timeout: 276 seconds]
Sht0 has quit [Ping timeout: 245 seconds]
<OffTheRails> +1 for sublime. I used Rubymine for a while. Not sure about the argument Ruby is too dynamic for an IDE. Rubymine made some very intelligent suggestions when I used it
rylev has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 264 seconds]
<linduxed> i'd say it the question about whether he should use an IDE or not depends entirely on what the purpose is
Takle has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
Ankhers has joined #ruby
<linduxed> if he/she is jumping into existing code and previously didn't work with ruby or something, or maybe even sat in an IDE before, i'd say it's fine to continue to do so
dte has quit [Remote host closed the connection]
<linduxed> on the other hand, the fact that you most definitely don't need an IDE for coding ruby makes choosing something which is nothing but an editor an option
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
<linduxed> besides, if it's a beginner asking, there's value to *not* having tools do stuff for you
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
<linduxed> one learns more that way
<OffTheRails> agreed, good points
icebourg has joined #ruby
avita1 has joined #ruby
<linduxed> if you're past that, have gained some experience then the choice doesn't matter that much
icebourg has quit [Max SendQ exceeded]
<linduxed> i've coded ruby for a good while now and my vim is so loaded with various plugins, bindings and helpers that it might as well be considered to be an IDE
anaeem1_ has quit [Remote host closed the connection]
icebourg has joined #ruby
rylev has joined #ruby
pcw888 has joined #ruby
LekeFly_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<OffTheRails> true. same here with sublime
mallu has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
asdfsdf has joined #ruby
<OffTheRails> I've tried to get into vim multiple times but can't handle the initial hit to productivity
sarkis has joined #ruby
Takle has joined #ruby
<mallu> please take a look http://pastie.org/9521757
<mallu> As I asked earlier how I can get snapshot_id to use ot down in the script
freerobby has joined #ruby
yfeldblum has joined #ruby
<jhass> mallu: as said, pass it as a parameter to the methods that need it or make the whole thing a class and use instance variables
mallu_ has joined #ruby
<mallu_> sorry I got disconnected
sleepee has quit [Ping timeout: 246 seconds]
<jhass> mallu: as said, pass it as a parameter to the methods that need it or make the whole thing a class and use instance variables
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
moted has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
<jhass> mallu_: actually, it seems like it should be the return value of create_snapshot
asdfsdf has quit [Ping timeout: 246 seconds]
gurix has quit [Quit: gurix]
<jhass> or it's still not the whole script
<mallu_> jhass.. yes it should be the returning value
<mallu_> it is not the whole scrip
Panicky has joined #ruby
<OffTheRails> mallu, so put `snapshot_id` at the end of your `create_snapshot` method
mallu has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
pandaant has quit [Quit: Lost terminal]
<OffTheRails> it's currently within the map block, so the map is being returned implicitly
pandaant has joined #ruby
robh71 has joined #ruby
<OffTheRails> or, much better -- encapsulate it in a class and use instance vars as jhass said
yfeldblum has quit [Ping timeout: 246 seconds]
terrellt_ is now known as terrellt
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
arup_r_ has joined #ruby
Bumptious has joined #ruby
sigurding has quit [Quit: sigurding]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
troulouliou_dev has joined #ruby
timonv_ has quit [Remote host closed the connection]
arup_r_ has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
Kricir has joined #ruby
kaspertidemann has quit []
ssvo has joined #ruby
Xeago has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
toastynerd has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
<mallu_> here is the whole script http://pastie.org/9521790
Phrogz has joined #ruby
cirn0 has joined #ruby
<mallu_> as you can see I need to use snapshot_id to create volumes
sigurding has joined #ruby
Cache_Money has joined #ruby
tokik has quit [Ping timeout: 260 seconds]
<jhass> I don't see create_snapshot being called at all
<siwica> shevy: benzrf: OffTheRails: I might try out Sublime sometime, but I am actually quite satisfied with it and just payed for a license. I am using Emacs elseways but it takes a lot of effort to properly set it up for a new language and RubyMine lets me use Emacs key bindings...
chrishough has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
<mallu_> the way I'm calling is... at the end of the script old_instance_info(instance_old) create_snapshot(volumes_old) create_volume
fumk has joined #ruby
doodlehaus has joined #ruby
fumk has quit [Max SendQ exceeded]
xenomorph is now known as {xenomorph}
toastynerd has quit [Ping timeout: 240 seconds]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
jmbrown412 has joined #ruby
wjimenez5271 has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
cirn0 has quit [Ping timeout: 276 seconds]
ceej___ is now known as ceej
andikr has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
geggam has quit [Remote host closed the connection]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
mikeg has joined #ruby
endash has quit [Quit: endash]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
endash has joined #ruby
{xenomorph} is now known as xenomorph
endash has quit [Client Quit]
obscured has joined #ruby
timonv_ has joined #ruby
lw has joined #ruby
geggam has joined #ruby
MCDev has joined #ruby
Hanmac has quit [Quit: Leaving.]
mikeg has quit [Read error: Connection reset by peer]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
baroquebobcat has quit [Client Quit]
wallerdev has joined #ruby
<gregf__> oops sorry :/
SilkFox_ has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
Scientz is now known as Scient
<Phrogz> gregf__: That's the most un-Ruby-ish Ruby I've ever seen. :)
Xeago has quit [Remote host closed the connection]
CaptainJet has joined #ruby
<gregf__> :/ it is. well heres a java version of it(more readable). for some reason i feel 'if it works in java it should in PHP'. :/. anyways ruby++
lw has quit [Client Quit]
AlexBlom has quit [Quit: This computer has gone to sleep]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
lemur has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
gurix has joined #ruby
ixti has joined #ruby
snath has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Quit: Leaving]
ohvlad has quit []
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
Aaaal has quit [Quit: Aaaal]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
amargherio has joined #ruby
narendraj9 has quit [Quit: Connection closed for inactivity]
lemur has quit [Ping timeout: 240 seconds]
ixti has quit [Client Quit]
gregf__ is now known as gregf_
ixti has joined #ruby
Takle has quit [Remote host closed the connection]
Xeago has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
avita1 has quit [Quit: Leaving.]
Cache_Money has quit [Quit: Cache_Money]
rylev has quit [Remote host closed the connection]
fumk has joined #ruby
rylev has joined #ruby
pu22l3r has joined #ruby
<jhass> mallu_: http://paste.mrzyx.de/pb5aeb257/ is how I would structure the code
mr-foobar has joined #ruby
<mallu_> ok thanks jhass
treehug88 has joined #ruby
hornairs has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
DaniG2k_ has quit [Ping timeout: 240 seconds]
pcw888 has quit [Quit: leaving]
b00stfr3ak has joined #ruby
jimmykarily has quit [Ping timeout: 245 seconds]
<aboudreault> emm, currently have a API that allow us to query group_id=X or group_id=x,y,z. I would like to add a way to query everything that *doesn't have* any group_id set.
<aboudreault> any api best practices?
rylev has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
mikeg has joined #ruby
slash_beep has quit [Changing host]
slash_beep has joined #ruby
pu22l3r has quit [Ping timeout: 260 seconds]
Moon_Doggy has joined #ruby
baroquebobcat has joined #ruby
yacks has joined #ruby
<Moon_Doggy> i've install a pkg called ruby/dict, when i run rdict i get a "/usr/bin/rdict:130:in `require': no such file to load -- dict (LoadError)", but if i cd to where dict.rb is and run rdict it works. how can i solve this?
qmfnp has joined #ruby
sigurding has quit [Quit: sigurding]
rylev has joined #ruby
DaniG2k has joined #ruby
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> Moon_Doggy: When you say a pkg, you don't mean a gem?
<Moon_Doggy> havenwood: no rpm
jeroenvisser101 has joined #ruby
deric_skibotn has joined #ruby
<jhass> that sounds as you have . in the load path which sounds as if you have ruby 1.8 which is out of official support
maniacal_ has joined #ruby
<Moon_Doggy> jhass: 1.8.7
<havenwood> indeed
DaniG2k has quit [Client Quit]
shackleford has quit [Remote host closed the connection]
<eam> Moon_Doggy: centos and epel?
<Moon_Doggy> eam: actually mint
<eam> most likely you've installed an rpm built against a different ruby than your system provides
<Moon_Doggy> used alien to convert the rpm to deb
pranny has quit [Quit: Leaving.]
<eam> yeah, that will not work -- it puts it in different paths
xcv has quit [Remote host closed the connection]
<eam> your best bet is to use gem
<eam> a gem built against a ruby binary will go into certain paths hardcoded at compile time
<jhass> well or whatever GEM_HOME is set to at install time
<eam> you can work around it using GEM_HOME and/or setting $:
<eam> yeah
<Moon_Doggy> eam: so sounds like it would be easier if i just grabbed source
<eam> Moon_Doggy: yes
mikeg has quit [Ping timeout: 264 seconds]
<jhass> but yeah, just gem install or gem2deb
<eam> you really want gems built against the actual ruby binaries you're using
mikeg has joined #ruby
<eam> prebuilt is OK only if your distro guarantees the gems match the binary built against
JoshGlzBrk has joined #ruby
sinkensabe has quit [Remote host closed the connection]
shackleford has joined #ruby
maniacal_ has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
mikeg has quit [Ping timeout: 252 seconds]
timonv_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
IceDragon has joined #ruby
qmcnti has quit [Remote host closed the connection]
rebelshrug has joined #ruby
omosoj has joined #ruby
pietr0 has joined #ruby
AlexBlom has joined #ruby
aspires has joined #ruby
saarinen has joined #ruby
bricker`work has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
wjimenez5271 has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 272 seconds]
lmickh has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
wjimenez5271 has joined #ruby
paulfm has quit []
emmesswhy has joined #ruby
troyready has joined #ruby
sectionme has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
emmesswhy has quit [Client Quit]
daxroc__ is now known as daxroc
shackleford has quit [Remote host closed the connection]
daxroc has quit [Changing host]
daxroc has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
max061 has quit [Ping timeout: 245 seconds]
rockdon_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<mallu_> jhass : what is the best way to separate creating snapshot and creating volumes from snapshot? There are times we only want to take snapshot not create volumes from the snapshot
toastynerd has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
<jhass> mallu_: time to use an option parser (trollop and slop are popular)
workmad3 has quit [Quit: leaving]
Steve has joined #ruby
Kerber0s has quit [Remote host closed the connection]
moritzschaefer has joined #ruby
<mallu_> jhass as it stands the current method migrator takes snapshot and volume from that snapshot when calling migrator method
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
<mallu_> can we seperate those two functions?
momomomomo has quit [Quit: momomomomo]
Rollabunna has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> sure, the process is abstracted
dawkirst has quit [Remote host closed the connection]
<jhass> use an option parser to get flags that control the behavior
Aaaal has joined #ruby
baroquebobcat has joined #ruby
Wolland_ has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
Wolland has joined #ruby
DrShoggoth has quit [Ping timeout: 272 seconds]
Photism has joined #ruby
michaeldeol has joined #ruby
speakingcode has joined #ruby
OffTheRails has quit [Ping timeout: 268 seconds]
Rollabunna has quit [Ping timeout: 240 seconds]
mattmcclure has joined #ruby
mallu has joined #ruby
<Moon_Doggy> jhass eam, that did it, source had a install.rb made it easy
mallu_ has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
<mallu> jhass: sorry to ask this dumb question; is it possible to just call migrate.snapshot?
Wolland has quit [Ping timeout: 264 seconds]
<Moon_Doggy> thanks again
Moon_Doggy has left #ruby ["Leaving"]
<jhass> mallu: if you don't make it private
<jhass> mallu: I only worked from what you showed, I can't magically know all your requirements
avita1 has joined #ruby
momomomomo has joined #ruby
<jhass> mallu: so take this as an example on how you _can_ structure things, _not_ on how it _has_ to be
OffTheRails has joined #ruby
alex88 has quit [Quit: Leaving...]
<mallu> jhass thanks
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
sambao21 has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
JonnieCache has quit [Ping timeout: 245 seconds]
timonv_ has quit [Remote host closed the connection]
xcv has joined #ruby
bearish has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
bearish has joined #ruby
bearish has quit [Remote host closed the connection]
Phrogz has quit [Ping timeout: 246 seconds]
bearish has joined #ruby
Xeago_ has joined #ruby
SouL has joined #ruby
jpic has quit [Ping timeout: 240 seconds]
gnash has joined #ruby
luckyrub_ has joined #ruby
luckyrub_ is now known as luckyruby_
jpic has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
luckyruby has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
bearish has quit [Ping timeout: 245 seconds]
moritzschaefer has quit [Ping timeout: 268 seconds]
mikecmpbll has quit [Ping timeout: 260 seconds]
goshdarnyou has quit [Quit: Connection closed for inactivity]
wallerdev has quit [Quit: wallerdev]
sigurding has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
SilkFox_ has joined #ruby
luckyruby_ is now known as luckyruby
nerdfile1 has joined #ruby
qba73 has quit []
sectionme has joined #ruby
apeiros has quit []
mikecmpbll has joined #ruby
User458764 has joined #ruby
lemur has joined #ruby
qmfnp has joined #ruby
spyderma_ has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
patrick99e99 has joined #ruby
starless has joined #ruby
rimenes has quit [Quit: Textual IRC Client: www.textualapp.com]
dumdedum has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 272 seconds]
sectionme has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
spyderman4g63 has quit [Ping timeout: 252 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lw has joined #ruby
nerdfile1 has quit [Quit: leaving]
lw has quit [Max SendQ exceeded]
lemur has quit [Ping timeout: 240 seconds]
robh71 has joined #ruby
lw has joined #ruby
jottr_ has joined #ruby
lw has quit [Client Quit]
bradleyprice has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
pu22l3r has joined #ruby
Nilium has quit [Ping timeout: 240 seconds]
DrShoggoth has quit [Ping timeout: 260 seconds]
s_e has quit [Ping timeout: 240 seconds]
camilapoortvliet has quit [Quit: No Ping reply in 180 seconds.]
ghostmoth has joined #ruby
camilasan has joined #ruby
p0sixpscl has joined #ruby
djbkd has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
wjimenez5271 has joined #ruby
queequeg1 has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
Hanmac has joined #ruby
s_e has joined #ruby
Nilium has joined #ruby
queequeg1 has joined #ruby
momomomomo has quit [Quit: momomomomo]
Xeago_ is now known as Xeago
pu22l3r has quit [Ping timeout: 245 seconds]
Marc- has quit [Ping timeout: 245 seconds]
RealMarc has joined #ruby
dANOKELOFF has quit [Ping timeout: 245 seconds]
gurix has quit [Quit: gurix]
Wolland has quit [Ping timeout: 260 seconds]
shredding has quit [Quit: shredding]
orolo has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
Steve has quit [Ping timeout: 252 seconds]
nfk has quit [Quit: yawn]
mary5030 has joined #ruby
avita1 has quit [Quit: Leaving.]
_tpavel has joined #ruby
nfk has joined #ruby
mary5030 has quit [Remote host closed the connection]
marr has joined #ruby
gurix has joined #ruby
mary5030 has joined #ruby
avita1 has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaeldeol has quit [Ping timeout: 246 seconds]
Steve has joined #ruby
ahmads_ has quit [Quit: Bye]
mercwithamouth has quit [Ping timeout: 255 seconds]
ahmads has joined #ruby
ahmads has quit [Client Quit]
kaspergrubbe has joined #ruby
yfeldblum has joined #ruby
britneywright has joined #ruby
ahmads has joined #ruby
sylvanica has quit [Ping timeout: 268 seconds]
momomomomo has joined #ruby
asterite has joined #ruby
ahmads has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
mrsolo has joined #ruby
gsd has joined #ruby
sylvanica has joined #ruby
jack_rabbit has joined #ruby
txdv has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
txdv has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
MCDev has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
dblessing has quit [Quit: dblessing]
W0rmDr1nk has quit [Ping timeout: 255 seconds]
icarus has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
Xeago has quit [Read error: Connection reset by peer]
gurix has quit [Quit: gurix]
Xeago_ has joined #ruby
HelperW has quit [Ping timeout: 260 seconds]
jeroenvisser101 has joined #ruby
maestrojed has joined #ruby
DrShoggoth has joined #ruby
gurix has joined #ruby
anaeem1_ has joined #ruby
mobiGeek5 has joined #ruby
<mobiGeek5> morning folks!
DrShoggoth has quit [Read error: Connection reset by peer]
DrShoggoth has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
brasten has quit [Quit: brasten]
AlyssaDa1mon is now known as AlyssaDaemon
fabrice31 has joined #ruby
yezzie has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
<gnash> morning!
carraroj has joined #ruby
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
Wolland has joined #ruby
DrShoggoth has quit [Quit: Leaving]
sigurding has quit [Quit: sigurding]
DrShoggoth has joined #ruby
maestrojed has joined #ruby
AlexBlom has quit [Read error: Connection timed out]
fabrice31 has quit [Ping timeout: 245 seconds]
Wolland has quit [Ping timeout: 245 seconds]
obscured has quit [Read error: Connection reset by peer]
kaspergrubbe_ has joined #ruby
tlarevo has quit [Read error: No route to host]
kaspergrubbe has quit [Ping timeout: 252 seconds]
tlarevo has joined #ruby
Lewix has joined #ruby
tommylommykins has quit [Ping timeout: 240 seconds]
sarkis has quit [Read error: Connection reset by peer]
tommylommykins has joined #ruby
havenwood has quit [Remote host closed the connection]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has joined #ruby
Xeago_ has quit [Remote host closed the connection]
nanoyak has joined #ruby
gnash has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
DrShoggoth has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
sparrovv has joined #ruby
dopie has joined #ruby
SouL has quit [Ping timeout: 252 seconds]
Takle has quit [Remote host closed the connection]
cirn0 has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
bluenemo has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby
Hanmac has joined #ruby
Morkel has joined #ruby
testcore has joined #ruby
Wolland has joined #ruby
michaeldeol has joined #ruby
bearish has joined #ruby
kaspertidemann has joined #ruby
jeroenvisser101 has quit [Ping timeout: 240 seconds]
lmickh has joined #ruby
bluenemo has joined #ruby
wallerdev has joined #ruby
mijicd has joined #ruby
sambao21 has joined #ruby
chipotle has joined #ruby
User458764 has joined #ruby
dkamioka has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
jeroenvisser101 has joined #ruby
SilkFox_ has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
drusepth has quit [Ping timeout: 255 seconds]
mikeg has joined #ruby
maroloccio has quit [Ping timeout: 245 seconds]
Hanmac has quit [Quit: Leaving.]
relix has quit [Remote host closed the connection]
relix has joined #ruby
einarj has quit [Remote host closed the connection]
Hanmac has joined #ruby
ptrrr has quit [Quit: ptrrr]
jeroenvisser101 has quit [Client Quit]
troyready has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
dkamioka has quit [Ping timeout: 276 seconds]
momomomomo has quit [Quit: momomomomo]
maniacal_ has joined #ruby
Aaaal has quit [Quit: Aaaal]
mikeg has quit [Ping timeout: 272 seconds]
troyready has joined #ruby
CaptainJet has quit [Ping timeout: 240 seconds]
dkamioka has joined #ruby
CaptainJet has joined #ruby
pu22l3r has joined #ruby
mikecmpbll has joined #ruby
shackleford has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
mpistone has joined #ruby
shackleford has quit [Read error: Connection reset by peer]
shackleford has joined #ruby
tobago has quit [Remote host closed the connection]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspergrubbe_ has quit [Ping timeout: 240 seconds]
zastern is now known as pizzaops
Wolland has joined #ruby
kaspergrubbe has joined #ruby
yezzie has quit [Quit: Lost terminal]
MCDev has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
kaspergrubbe has quit [Read error: Connection reset by peer]
banjara has joined #ruby
dANOKELOFF has joined #ruby
dkamioka has quit [Remote host closed the connection]
sigurding has joined #ruby
thams has joined #ruby
Wolland has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
renderful has joined #ruby
ringarin has joined #ruby
chrisja has joined #ruby
drusepth has joined #ruby
xcv has quit [Remote host closed the connection]
existensil has joined #ruby
jottr_ has quit [Ping timeout: 268 seconds]
renderfu_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
io_syl has joined #ruby
Heartbroken has quit [Ping timeout: 240 seconds]
ptrrr has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jespada has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0]
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
havenwood has joined #ruby
weeb1e has joined #ruby
mockra has quit [Remote host closed the connection]
qwyeth has quit [Ping timeout: 264 seconds]
mockra has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
arup_r has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
avita1 has quit [Quit: Leaving.]
mockra has quit [Ping timeout: 240 seconds]
gccostabr has joined #ruby
FL1SK has joined #ruby
xcv has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
jeroenvisser101 has joined #ruby
avita1 has joined #ruby
reset has joined #ruby
jeroenvisser101 has quit [Read error: Connection reset by peer]
heftig has joined #ruby
xcv has quit [Remote host closed the connection]
sambao21 has joined #ruby
xcv has joined #ruby
djbkd has joined #ruby
eivindml has joined #ruby
djbkd has quit [Remote host closed the connection]
<siwica> what is the most common webserver to use with a rails/sinatra/grape/... application?
nemesit|znc has quit [Ping timeout: 245 seconds]
JohnFord has quit [Ping timeout: 276 seconds]
<kenneth> hey there, so i'd like to use immutable collections only in my ruby codebase; and i'd like to find a way to enforce that at the code-level
<havenwood> siwica: probably unicorn, though puma, thin or passenger are also great
spider-mario has quit [Ping timeout: 245 seconds]
asterite has quit [Quit: Leaving.]
djbkd has joined #ruby
hpoydar has joined #ruby
<kenneth> i was thinking i could use refinements to throw an exceptions on any mutating methods on collections
<havenwood> kenneth: checkout the hamster gem: https://github.com/hamstergem/hamster#readme
ddd has quit [Read error: Operation timed out]
Jarboe has joined #ruby
jeroenvisser101 has joined #ruby
<siwica> havenwood: so if I have the choice you wouldn't use some Apache addon?
<havenwood> kenneth: adamantium is also neat: https://github.com/dkubb/adamantium#readme
ringarin has quit [Ping timeout: 276 seconds]
<kenneth> but then i'd have to `use` my refinements at the top of every source file. i'm looking for a way around that
Guest74006 has joined #ruby
Lulzon has quit [Ping timeout: 240 seconds]
<kenneth> havenwood: yeah, i'm aware of hamster and adamantium, but the question here is about enfocring that those are actually used, because it's easy to just write {} or [] by mistake
<havenwood> siwica: generally, you'd use nginx or apache to reverse proxy to your rack webserver of choice
Hanmac has quit [Ping timeout: 276 seconds]
<havenwood> kenneth: aha, gotcha
<havenwood> kenneth: interesting
<siwica> havenwood: ok, I see
ddd has joined #ruby
dkamioka has joined #ruby
nemesit|znc has joined #ruby
<siwica> havenwood: Are you aware of any tutorials for somebody who has not setup a reverse proxy to a rack webserver?
pasties_ is now known as pasties
<havenwood> siwica: you could use certain rainbows! setups to load balance and serve slow connections, but i think using nginx is most popular
Rollabunna has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
asterite has joined #ruby
DrShoggoth has joined #ruby
djbkd has joined #ruby
<kenneth> actually, gotta run on an errand. i'll think more about it, and log back on when i'm done
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mityaz_ has joined #ruby
<havenwood> siwica: nginx/unicorn or nginx/puma are great options
radic has quit [Ping timeout: 264 seconds]
hornairs has quit [Quit: hornairs]
mupkoo has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 250 seconds]
Lulzon has joined #ruby
<siwica> havenwood: its only needed for a super simple application and I am gonna deploy it at some persons server that probably only has apache installed. So I wonder what would be the benefit of using nginx instead?
<havenwood> siwica: don't bother
<siwica> ok
<siwica> havenwood: thanks, I will have to read some stuff I guess
mityaz_ has quit [Client Quit]
fsapo has quit [Remote host closed the connection]
<havenwood> siwica: i prefer nginx but if you're just adding an app to an existing apache setup just reverse proxy to your puma or unicorn app's port or socket
<havenwood> in apache
DrShoggoth has quit [Read error: Connection reset by peer]
DrShoggoth has joined #ruby
<siwica> havenwood: sounds reasonable
<havenwood> siwica: or the passenger route you could use the passenger apache module
<havenwood> siwica: there are multiple solid, fast options
<siwica> havenwood: ok, thanks!
<siwica> which one has the greater community?
<havenwood> siwica: unicorn, puma and thin are all top tier
<siwica> so passenger is not?
<havenwood> siwica: then passenger has the best enterprise support
Rollabunna has quit [Ping timeout: 268 seconds]
bearish has quit [Remote host closed the connection]
<havenwood> siwica: passenger by default is less performant, only because they choose very conservative, low-memory footprint options
fsapo has joined #ruby
<havenwood> siwica: if you bother to tune it just a little, unicorn like performance
<siwica> havenwood: performance is not much of an issue in my case so I might wanna stick to the best documented one
IceDragon has quit [Ping timeout: 246 seconds]
<havenwood> siwica: passenger is installed by default on a lot of vps setups, they prioritized low system resources just for the default setup
Spami has quit [Quit: This computer has gone to sleep]
ptrrr is now known as ptr
<siwica> havenwood: ok
<havenwood> siwica: i favor unicorn and puma personally
jottr_ has joined #ruby
<havenwood> or torqbox if fantastic in jruby land
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> or puma
<siwica> havenwood: great. I will give them a closer look
radic has joined #ruby
IceDragon has joined #ruby
<havenwood> siwica: you said performance isn't much of an issue, so no matter, but torqbox's performance is top
sambao21 has joined #ruby
<havenwood> siwica: what os/distro?
paulfm has joined #ruby
<siwica> havenwood: ok, but its just a uni project so there will barely be more than a couple requests per day
rockdon_ has quit [Remote host closed the connection]
<Eiam> I use passenger for all my ruby apps
<siwica> havenwood: dont know yett
<Eiam> (and my django ones)
<Eiam> no complaints so far..
Mon_Ouie has quit [Quit: WeeChat 1.0]
<havenwood> siwica: yeah, you can't go wrong. we are lucky to have so many solid options. you can also very easily switch from one to the other, they're just rack adapters.
<siwica> havenwood: might deploy on my raspberry pi first, this one has Raspbian ;)
Zesty has joined #ruby
<havenwood> siwica: try a few, pick one that works for your app - though at the rates you're talking, the stdlib webrick would suffice ;P
rockdon_ has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
mityaz_ has joined #ruby
Hanmac has joined #ruby
<siwica> havenwood: alright, thanks a bunch
goshdarnyou has joined #ruby
<havenwood> siwica: i'd prolly puma then, since it comes with jungle, a ready-to-go upstart setup
yetanotherdave has joined #ruby
mferrier_ has joined #ruby
<havenwood> siwica: err, Raspbian is upstart right? i was thinking it was now i'm second guessing..
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<siwica> havenwood: yes
<siwica> havenwood: I do have apache running on it though
skolman has joined #ruby
elstif has quit [Quit: Leaving.]
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
selasi has quit [Quit: Leaving]
mferrier has quit [Ping timeout: 246 seconds]
ssvo has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
radic has quit [Disconnected by services]
gurix has quit [Quit: gurix]
radic_ has joined #ruby
dmyers has quit [Ping timeout: 245 seconds]
bayed has quit [Quit: Connection closed for inactivity]
manacit has quit [Ping timeout: 240 seconds]
ssvo has joined #ruby
SilkFox_ has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
alexju has quit []
ArchBeOS has joined #ruby
<ArchBeOS> hey guys, is there a tool to help me push code to my server?
txdv has quit [Ping timeout: 240 seconds]
AlSquirrel has joined #ruby
Spami has joined #ruby
asterite has quit [Quit: Leaving.]
<havenwood> ArchBeOS: Capistrano or Mina, maybe?
<havenwood> ArchBeOS: Or git and git hooks. :P
txdv has joined #ruby
<ArchBeOS> jeez. capastrino. that was the DSL i was trying to remember. I will check Mina too havenwood
manacit has joined #ruby
<ArchBeOS> you are awesome
<havenwood> ArchBeOS: I used mina recently and was quite pleased: https://github.com/mina-deploy/mina#readme
<ArchBeOS> thanks havenwood :-)
lemur has joined #ruby
DrShoggoth has quit [Ping timeout: 240 seconds]
<havenwood> np
AlSquire has quit [Ping timeout: 276 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
asterite has joined #ruby
asterite has left #ruby [#ruby]
ghr has joined #ruby
JohnFord has joined #ruby
ringarin has joined #ruby
djbkd has quit [Remote host closed the connection]
ArchBeOS is now known as ArchAway
endash has joined #ruby
benzrf is now known as benzrf|offline
djbkd has joined #ruby
lemur has quit [Ping timeout: 260 seconds]
ringarin has quit [Client Quit]
mityaz_ has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
mityaz_ has joined #ruby
Steve has quit [Remote host closed the connection]
spyderma_ has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
ghr has quit [Ping timeout: 255 seconds]
cmoneylulz has joined #ruby
spyderman4g63 has joined #ruby
Akuma has joined #ruby
stef_204 has quit [Remote host closed the connection]
Wolland has joined #ruby
mikeg has joined #ruby
gurix has joined #ruby
Hobogrammer has joined #ruby
maniacal_ has quit [Ping timeout: 260 seconds]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
voodoofish430 has joined #ruby
_blackjid has quit [Quit: ZNC - http://znc.in]
pu22l3r has quit [Ping timeout: 255 seconds]
shredding has joined #ruby
Trynemjoel has quit [Quit: Trynemjoel]
project2501a has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
Trynemjoel has joined #ruby
Trynemjoel has quit [Client Quit]
robustus has quit [Ping timeout: 250 seconds]
mkaesz has joined #ruby
Wolland has quit [Ping timeout: 264 seconds]
gccostabr has joined #ruby
djbkd has quit [Remote host closed the connection]
<wasamasa> I'm pretty shocked the apparently fastest deployment tool merely creates bash
Trynemjoel has joined #ruby
spider-mario has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
cmoneylulz has quit [Quit: WeeChat 0.4.2]
mferrier_ has quit [Remote host closed the connection]
djbkd has joined #ruby
<havenwood> wasamasa: what would you expect it to do?
mferrier has joined #ruby
<wasamasa> havenwood: well, how about running one ssh session and doing things in it, then eventually close it once everything's done?
robustus has joined #ruby
<wasamasa> havenwood: it's not like shell scripts are magic sauce
zoo-zed has joined #ruby
spider-mario has joined #ruby
geggam has quit [Remote host closed the connection]
geggam has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
endash has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
Insti has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
<pontiki> i'm trying to figure out how to combine task arguments and task dependencies in a rake task declaration
chrishough has joined #ruby
kenneth has joined #ruby
mockra has joined #ruby
<pontiki> task dependency is like: task :two => :one
fabrice31 has joined #ruby
mockra_ has joined #ruby
<pontiki> task arguments: task :two, [:arg1]
<kenneth> back :)
<pontiki> what if you want *both*?
sambao21 has joined #ruby
Toordog has joined #ruby
DrShoggoth has joined #ruby
mockra has quit [Ping timeout: 246 seconds]
_5kg has quit [Ping timeout: 240 seconds]
endash has joined #ruby
Macaveli has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
<kenneth> so anybody have any thoughts on my question? i'd like to use immutable data structures (such as hamster) throughout my codebase. that's fine, but i'd like to actually *enforce* this in all our codebase, without breaking any third-party libraries. i was thinking one way to do this would be through refinements, by refining all mutable collection methods to throw an exception; but i'd have to `using` my refinement at the top of every source file
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> jhass: thank you
hiyosi has quit [Ping timeout: 268 seconds]
<kenneth> since my entire codebase is namespaced to a module, i'd like a way of saying, *within this module, as it's re-opened, use the refinement*
nanoyak has quit [Quit: Computer has gone to sleep.]
bricker`work has quit [Ping timeout: 260 seconds]
Kricir has quit [Remote host closed the connection]
chrishough has quit [Ping timeout: 245 seconds]
gurix has quit [Quit: gurix]
dorei has joined #ruby
Kricir has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_tpavel has quit [Quit: Leaving]
jimms has joined #ruby
timonv_ has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
robbyoconnor has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
Takle has joined #ruby
GinoMan has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
tvw has quit []
ArchAway has left #ruby [#ruby]
yfeldblum has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
gsd has joined #ruby
mary5030 has quit [Remote host closed the connection]
britneywright has joined #ruby
ghr has joined #ruby
msmith has quit [Remote host closed the connection]
ta_ has joined #ruby
blackmesa has joined #ruby
mary5030 has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
elstif has joined #ruby
decoponio has quit [Quit: Leaving...]
Danishman has joined #ruby
mupkoo has joined #ruby
qualiabyte has joined #ruby
chrishough has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 272 seconds]
maroloccio has joined #ruby
thumpba_ has quit []
avita1 has quit [Quit: Leaving.]
alvaro_o has joined #ruby
rockdon_ has quit [Ping timeout: 245 seconds]
avita1 has joined #ruby
sigurding has quit [Quit: sigurding]
obs has quit [Quit: Saliendo]
sambao21 has quit [Quit: Computer has gone to sleep.]
Pharaoh2 has joined #ruby
<shevy> you want to let a hamster code?
SilkFox_ has joined #ruby
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
sambao21 has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
Neomex has quit [Quit: Leaving]
avita1 has quit [Quit: Leaving.]
lemur has joined #ruby
whatasunnyday has joined #ruby
SilkFox_ has quit [Ping timeout: 268 seconds]
y_nk has joined #ruby
<y_nk> hi all
<y_nk> i'm new to ruby
<y_nk> (but not new in dev)
Ankhers has quit [Ping timeout: 264 seconds]
<y_nk> i've been given task to install the "ruby-dev" package on a slackware distribution
cirn0 has joined #ruby
soheil has joined #ruby
<y_nk> i'm lacking of informations out there, could somebody give... even a clue ?
robbyoconnor has quit [Quit: Konversation terminated!]
lemur has quit [Ping timeout: 240 seconds]
cirn0 has quit [Remote host closed the connection]
AlexBlom has joined #ruby
pu22l3r has joined #ruby
<shevy> y_nk that sounds like crap
<shevy> slackware packages don't have -dev packages
<shevy> in fact, they don't even have many of the packages either
<shevy> you get a slackbuild and then have to compile it for many things
synergyz has joined #ruby
<shevy> "Download SlackBuild: vpnc.tar.gz"
<y_nk> shevy: i just joined the company, my CTO has set all the servers to slack... and now he said he wants to monitor the fleet with sensu :/
<shevy> default slackware already has a ruby installed btw
elaptics is now known as elaptics`away
emmesswhy has quit [Quit: This computer has gone to sleep]
<shevy> perhaps ask your super clever boss why he needs to want a "ruby-dev" package
<shevy> it sure enough makes more sense on debian
<y_nk> well it doesnt seem shipped by default on the 13.37 distro i've found
<y_nk> it sure does, but i can't argue changing so many production servers right now... i'm 2 months olded in the company :D
spyderma_ has joined #ruby
Wolland has joined #ruby
<shevy> current slackware is "Slackware 14.1"
<y_nk> (so many => 50+)
Kerber0s has joined #ruby
<shevy> so let me get it straight ;)
nanoyak has joined #ruby
synergyz has quit [Remote host closed the connection]
<shevy> none of those computers does have ruby
<y_nk> i've been taking the distro it's installed to run my installation tests from a vagrant vm
synergyz has joined #ruby
<y_nk> then when it'll be "stable" i'll run it with pssh or smthg like that.
SouL has joined #ruby
jottr_ has joined #ruby
<y_nk> (my evil plan is to change all to debian/puppet but i need time)
pu22l3r has quit [Ping timeout: 264 seconds]
_5kg has joined #ruby
mupkoo has quit []
<y_nk> shevy: ... so you think it's rather "technically impossible" or just "pain in the ass doable" ?
mijicd has quit [Quit: leaving]
omosoj has quit [Ping timeout: 260 seconds]
<izzol2> sensu is pretty cool :-)
<shevy> well y_nk
<shevy> I still don't know if you have ruby installed or not
<shevy> you said 13.37 does not have ruby installed
<y_nk> i've 1.8.7 running on my 13.37
wallerdev has quit [Quit: wallerdev]
<shevy> so without ruby, any "ruby-dev" package wouldn't make sense
<shevy> ok so you have ruby
spyderman4g63 has quit [Ping timeout: 260 seconds]
<y_nk> there is a "slackpkg" kind-of-aptget in there... only 1.8.7 was available so i got it
<shevy> hehehe
Wolland has quit [Ping timeout: 246 seconds]
<izzol2> y_nk: why not to use rvm or even better on production rbenv ?
<y_nk> izzol2: rvm can be installed on slackware ?
<y_nk> shevy: if that can help, the full package name is "ruby-1.8.7_p174-i486-1" (i guess it's minor, but still...)
<izzol2> y_nk: I think so :-)
<y_nk> izzol2: ok lemme try on my vm :p
tlarevo has quit [Remote host closed the connection]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has joined #ruby
toastynerd has quit [Remote host closed the connection]
<shevy> y_nk well ruby is long past 1.8.7
<shevy> and I am still not sure about the problem
<Hanmac> 1.8.7 versions should be killed on sight! ;P
<shevy> if 1.8.7 works for you?
ssvo has joined #ruby
seamon has joined #ruby
<y_nk> it seems like, to install sensu
timonv_ has quit [Remote host closed the connection]
<y_nk> i have to type "gem install sensu" (so, gem package manager)
saarinen has quit [Quit: saarinen]
<y_nk> when doing that, it looks compiling some things, native extensions, like plugins maybe.
<shevy> aha
<shevy> then look at sensu first
<y_nk> and it fails. it's said it requires something called "ruby-dev" and i don't know what that package is. the only thing i know is that it should be installed through apt-get (lol@slackware)
<shevy> you can do this on rubygems.org
<shevy> no "ruby-dev" does not exist
<shevy> you need to get the real error
<shevy> download the .gem
saarinen has joined #ruby
<y_nk> and run through gem ?
<shevy> gem unpack sensu*gem
<shevy> enter the directory
sambao21 has quit [Quit: Computer has gone to sleep.]
<y_nk> yep got it
lmickh has quit [Remote host closed the connection]
<shevy> it fails for me at eventmachine
<y_nk> yes, same
radic has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
<y_nk> (i'm still trying to reinstall ruby with rvm as izzol2 said, but i fucking even need to install curl as it's not provided by default... wtf is wrong with this distro)
MCDev has joined #ruby
<shevy> aha I get my error
<shevy> ld.gold: error: cannot find -lcrypt
<shevy> seems I dont have crypt.so right now, can't help there
<shevy> in eventmachine, download the gem
GriffinHeart has joined #ruby
<shevy> cd eventmachine-1.0.3/ext/
radic_ has quit [Ping timeout: 260 seconds]
<shevy> run "ruby extconf.rb"
<shevy> some error will be logged
<shevy> look into the file: mkmf.log
<shevy> the real error will be stored there
zoo-zed has quit [Ping timeout: 240 seconds]
TMD has joined #ruby
<y_nk> mhm ok
djbkd has quit [Remote host closed the connection]
<y_nk> i need some time to perform that... it's like... i need to install dozens of soft just to perform a single task... gngngng distro
saarinen has quit [Quit: saarinen]
toastynerd has joined #ruby
hiyosi has joined #ruby
spyderma_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
TaxmanBD has quit [Ping timeout: 246 seconds]
GriffinHeart has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby
tfittsy has joined #ruby
rubytor has joined #ruby
whatasunnyday has joined #ruby
<y_nk> GODDAMN SLACK
wallerdev has joined #ruby
sambao21 has joined #ruby
heftig_ has joined #ruby
Takle has quit [Remote host closed the connection]
<tfittsy> is there an easy way to replace a/multiple hash values if the values contain or equal a given value, example {:color => 'Red', :shape => 'Shape Not Present'} goes to {:color => 'Red', :shape => nil}.
krisquigley has joined #ruby
chipotle has quit [Quit: cya]
moted has quit []
Takle has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heftig has quit [Ping timeout: 240 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> tfittsy: not really, I'd go for keys = hash.select {|_, v| v == x }.map(&:first); hash.merge(keys.map {|k| [k, nil] }.to_h) I guess
Spami has quit [Quit: This computer has gone to sleep]
gsd has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
<hakunin> is there a good ruby library for supervising your shell-outs?
cuppscakes has quit [Quit: Whoops, AFK.]
<hakunin> e.g. - tracking ram consumption, uptime of shelled-out process
<hakunin> kill it if anything
<hakunin> but not standalone tools like god, bluepill
<hakunin> tried google/github-search but hard to find the right terms
avita1 has joined #ruby
hiyosi has quit [Ping timeout: 255 seconds]
u6aBeWPy has joined #ruby
avita1 has quit [Read error: Connection reset by peer]
avita1 has joined #ruby
moted has joined #ruby
ghr has joined #ruby
Rollabunna has joined #ruby
<y_nk> @izzol2 : well... it's like when you don't have "getent" installed, you can't make a clean install of rvm. (i hate slack)
endash has quit [Quit: endash]
bking39116 has quit [Ping timeout: 272 seconds]
moted has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
ptierno_ has quit [Quit: leaving]
<havenwood> tfittsy: or: hash.map { |k, v| [k, v == x ? nil : v] }.to_h
Kricir has joined #ruby
ptierno_ has joined #ruby
moted has joined #ruby
ht has quit [Remote host closed the connection]
gccostabr has quit [Quit: ZZZzzz…]
dte has joined #ruby
<tfittsy> havenwood: success, thanks. Just what I was looking for.
St_Marx has quit [Quit: Ex-Chat]
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Rollabunna has quit [Ping timeout: 276 seconds]
andrewlio has quit [Quit: Leaving.]
<izzol2> y_nk: what about rbenv?
thumpba has joined #ruby
<izzol2> I'm using it on the production. RVM only on dev (vagrant).
djbkd has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0]
<izzol2> Not sure about the slack. Never used it :(
zorak8 has quit [Remote host closed the connection]
<y_nk> can it install/compile ruby on the way ?
<y_nk> thanks :)
<y_nk> i'm gonna look and try
Hobogrammer has quit [Ping timeout: 245 seconds]
cuppscakes has joined #ruby
cuppscakes has quit [Client Quit]
<havenwood> y_nk: izzol2: or stay shim-free and chruby! :P https://github.com/postmodern/chruby#readme
IceDragon has quit [Ping timeout: 268 seconds]
IceDragon has joined #ruby
blackmesa has joined #ruby
<izzol2> havenwood: interesting project. Even exist on FreeBSD ports ;-)
cirn0 has joined #ruby
<shevy> y_nk yeah you can compile ruby. url is: wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.bz2
mferrier_ has joined #ruby
<shevy> make sure to have libyaml installed before, it is a small program: wget http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz
<havenwood> chruby works with ruby compiled to any arbitrary location, but it'll autodetect /opt/rubies, ala: https://github.com/postmodern/chruby/wiki/Ruby#install-212
bmurt has quit [Ping timeout: 245 seconds]
Wolland has joined #ruby
DrShoggoth has quit [Ping timeout: 240 seconds]
<havenwood> or you can `ruby-build 2.1.2 /opt/rubies/ruby-2.1.2` etc
<havenwood> however you prefer to install
<havenwood> ruby-install ruby
mferrier has quit [Ping timeout: 252 seconds]
ringarin has joined #ruby
<havenwood> chruby autodetects ruby-install default installation locations
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
cirn0 has quit [Ping timeout: 245 seconds]
francis36012 has joined #ruby
gnash has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
<havenwood> kenneth: one issue is the unfortunate lack of support for `using` refinements in a module, they're only for classes
pandaant has quit [Quit: Lost terminal]
<kenneth> argh
eat_multi has joined #ruby
<kenneth> yeah, i don't think they'll do what i want, the more i think about it
IceDragon has joined #ruby
<havenwood> kenneth: if refinements were available top-level and in modules they'd really be something!
Kricir_ has quit [Remote host closed the connection]
<kenneth> one super ghetto and inefficient way of doing this would be: in development mode, swizzle all the mutating methods from the collections with wrapper methods that (1) check if they're being called by something in the X module by looking at the backtrace, and if so, throw an exception
<kenneth> or even, check if they're being called by a path we know is in our project and not a gem or stdlib
<kenneth> hmmm… super ghetto but could work
<kenneth> and in production, this would be disabled
pandaant has joined #ruby
sk87 has joined #ruby
SilkFox_ has joined #ruby
mikeg has quit [Ping timeout: 264 seconds]
<havenwood> kenneth: create a mutability warning linter?
carraroj has quit [Quit: Konversation terminated!]
<kenneth> how would i go about that?
ryanleesipes has quit [Ping timeout: 240 seconds]
<havenwood> use an existing parser
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has quit [Client Quit]
<shevy> hehehe
saarinen has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
chrishough has joined #ruby
emmesswhy has joined #ruby
lemur has joined #ruby
Wolland has quit [Remote host closed the connection]
TMD has quit [Quit: Leaving]
sambao21 has joined #ruby
TMD has joined #ruby
TMD has quit [Client Quit]
avita1 has quit [Quit: Leaving.]
SilkFox_ has quit [Ping timeout: 245 seconds]
Kerber0s has quit [Remote host closed the connection]
TaxmanBD has joined #ruby
<havenwood> kenneth: you could take a look at rubocop for reference or just use rubocop and create a custom rubocop offense for known mutable data structures
Morkel has quit [Quit: Morkel]
<havenwood> kenneth: (^ it uses the parse gem)
timonv_ has joined #ruby
avita1 has joined #ruby
iceden has quit [Remote host closed the connection]
TaxmanBD has quit [Client Quit]
TaxmanBD has joined #ruby
pu22l3r has joined #ruby
sprihodko has quit [Quit: Computer has gone to sleep.]
lemur has quit [Ping timeout: 240 seconds]
gccostabr has joined #ruby
zorak has joined #ruby
amystephen has joined #ruby
<kenneth> yeah i could try that too
dte has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
<havenwood> parser gem*
x1337807x has joined #ruby
pu22l3r has quit [Ping timeout: 272 seconds]
sepp2k has quit [Quit: Konversation terminated!]
saarinen has joined #ruby
fabrice31 has joined #ruby
fsapo has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
DrShoggoth has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
x1337807x has quit [Client Quit]
seamon has quit [Quit: Zzzzzzz]
Hobogrammer has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
dte has joined #ruby
<wasamasa> hmm
cleopatra has joined #ruby
iceden has joined #ruby
InhalingPixels has joined #ruby
<wasamasa> we really need a pure ruby replacement of rsense
<wasamasa> or an alternative
Rollabunna has joined #ruby
xcv has quit [Ping timeout: 268 seconds]
eat_multi has quit [Quit: leaving]
fabrice31 has quit [Ping timeout: 272 seconds]
LiohAu has quit [Quit: LiohAu]
rubytor has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
j_mcnall_ has joined #ruby
seamon has joined #ruby
seamon has quit [Client Quit]
Kricir has joined #ruby
j_mcnall_ is now known as j_mcnally
darksun_ has joined #ruby
choke has quit [Quit: Leaving]
ryanleesipes has joined #ruby
omosoj has joined #ruby
kaspertidemann has quit []
paulfm has quit []
jimms has quit []
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seamon has joined #ruby
ringaring has joined #ruby
DesertCreature has quit [Remote host closed the connection]
toastynerd has joined #ruby
Rollabunna has quit [Quit: Leaving...]
aclearman037 has quit []
momomomomo has quit [Quit: momomomomo]
sambao21 has quit [Quit: Computer has gone to sleep.]
crazydiamond has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
mkaesz has quit [Remote host closed the connection]
autochthon has quit [Ping timeout: 255 seconds]
<shevy> condoms
x1337807x has joined #ruby
GriffinHeart has joined #ruby
rezzack has joined #ruby
ringarin has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
asteve has joined #ruby
GriffinHeart has quit [Ping timeout: 246 seconds]
asteve has quit [Client Quit]
ringaring has quit [Quit: Leaving]
InhalingPixels has quit [Read error: Connection reset by peer]
dte has quit []
InhalingPixels has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
farid_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AlexRussia has quit [Quit: WeeChat 1.0-dev]
pskrz has quit [Quit: pskrz]
krisquigley has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
darksun_ has left #ruby [#ruby]
dfeuer has joined #ruby
<dfeuer> How long does gem install rails normally take? Is it supposed to produce any output to start, or just sit there acting like it's dead until it finishes?
<shevy> I think it can take up to about 10 minutes if you are unlucky
<dfeuer> Ah.
farid_ has joined #ruby
<dfeuer> It *just* started acting other-than-dead.
<shevy> \o/
hiyosi has joined #ruby
jottr_ is now known as jottr
dfeuer has left #ruby ["Leaving"]
emmesswhy has quit [Quit: This computer has gone to sleep]
zorak has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
gccostabr has quit [Quit: ZZZzzz…]
dapadoupas has joined #ruby
michaeldeol has joined #ruby
Spami has joined #ruby
mityaz_ has quit [Quit: See ya!]
sepp2k has joined #ruby
rebelshrug has quit [Quit: Textual IRC Client: www.textualapp.com]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 240 seconds]
mferrier_ has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
clov3r has joined #ruby
emmesswhy has joined #ruby
claymore has quit [Quit: Leaving]
sylvanica has quit [Ping timeout: 268 seconds]
<clov3r> here's a question for you. How do you run a regexp across a file, and do things with the matched results... without reading a file line by line( because the regexp may match across lines), or (ideally) loading the whole file into memory.
mdw has joined #ruby
<clov3r> I'm looking to process svg files to extract embedded images into their own files
zorak has joined #ruby
<clov3r> hmmm
xcv has joined #ruby
<Hanmac> clov3r: use an xml parser like Nokogiri to parse svg files
<clov3r> it occurs that svg is simply xml
<clov3r> ha hanmac
<clov3r> i just realised that
<clov3r> yes indeed
amargherio has quit [Remote host closed the connection]
* clov3r nods
emmesswhy has quit [Client Quit]
<clov3r> thank you thank you
<clov3r> ;)
Danishman has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ghr has quit [Ping timeout: 240 seconds]
threesixes has joined #ruby
toastynerd has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
thams has quit [Quit: thams]
MCDev has quit [Ping timeout: 250 seconds]
pietr0_ has joined #ruby
jerius has quit []
pietr0_ has quit [Remote host closed the connection]
pietr0 has quit [Ping timeout: 260 seconds]
sinkensabe has joined #ruby
mdw has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cocotton_ has joined #ruby
shredding has quit [Quit: shredding]
livingstn has quit []
britneywright has joined #ruby
cocotton has quit [Ping timeout: 245 seconds]
mradmacher has quit [Quit: leaving]
diegoviola has joined #ruby
cocotton_ has quit [Ping timeout: 276 seconds]
SilkFox_ has joined #ruby
mdw has joined #ruby
gnash has quit [Ping timeout: 245 seconds]
avita1 has quit [Quit: Leaving.]
orolo has quit [Quit: This computer has gone to sleep]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pietr0 has joined #ruby
Pharaoh2 has quit [Quit: Leaving...]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
xcv has quit [Ping timeout: 252 seconds]
avita1 has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
ssvo has quit [Ping timeout: 268 seconds]
pu22l3r has joined #ruby
timonv_ has joined #ruby
pr0t has quit [Remote host closed the connection]
charliesome has joined #ruby
mferrier has joined #ruby
tlarevo has quit [Ping timeout: 272 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
Lucky___ has joined #ruby
kenneth has joined #ruby
kenneth has quit [Max SendQ exceeded]
ssvo has joined #ruby
centrx has joined #ruby
kenneth has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
JoshGlzBrk has joined #ruby
<avi__> you're still going to have to understand which part of the svg is the embedded image :)
DadoCe has joined #ruby
CpuID has joined #ruby
mikeg has joined #ruby
<clov3r> well doc.css("image") should give me those
<clov3r> wondering how I encode/decode the base64 string and write it to a file
ryanleesipes has quit [Quit: Leaving]
<clov3r> but it's probably as simple as base64_decode(data), if previous xp with ruby is anything to go by
albedoa has quit [Quit: Textual IRC Client: www.textualapp.com]
<avi__> clov3r: they are probably data URIs https://tools.ietf.org/html/rfc2397
bricker`work has joined #ruby
rockdon_ has joined #ruby
mobiGeek6 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
earthquake has joined #ruby
mobiGeek5 has quit [Ping timeout: 252 seconds]
blueOxigen has quit [Ping timeout: 255 seconds]
Bumptious has quit [Remote host closed the connection]
seamon has quit [Quit: Zzzzzzz]
workmad3 has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
m8 has joined #ruby
ptr has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
RTG` has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby
bluenemo has quit [Quit: Verlassend]
pu22l3r has joined #ruby
<clov3r> thanks for that avi
chrisja has quit [Quit: leaving]
timonv_ has quit [Ping timeout: 260 seconds]
hiyosi has joined #ruby
elstif has quit [Quit: Leaving.]
sambao21 has joined #ruby
starless has quit [Quit: Leaving]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
treehug88 has quit [Ping timeout: 268 seconds]
hiyosi has quit [Ping timeout: 260 seconds]
momomomomo has quit [Ping timeout: 246 seconds]
Kricir has quit [Ping timeout: 245 seconds]
Hobogrammer_ has joined #ruby
narcan has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
lw has joined #ruby
doodlehaus has quit [Remote host closed the connection]
magnetica has joined #ruby
<magnetica> /msg NickServ identify magnetic1
sambao21 has quit [Quit: Computer has gone to sleep.]
zorak has quit [Ping timeout: 240 seconds]
magnetica has quit [Client Quit]
pu22l3r has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
magnetica has joined #ruby
magnetica has left #ruby [#ruby]
dmyers has joined #ruby
dmyers has quit [Excess Flood]
dmyers has joined #ruby
avita1 has quit [Quit: Leaving.]
avita1 has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
benzrf is now known as benzrf|offline
IceDragon has joined #ruby
nfk has quit [Quit: yawn]
cirn0 has joined #ruby
saarinen has quit [Quit: saarinen]
ffranz has quit [Quit: Leaving]
project2501a has joined #ruby
kirun has quit [Quit: Client exiting]
bjz has quit [Read error: Connection reset by peer]
bjz_ has joined #ruby
sinkensabe has quit [Ping timeout: 276 seconds]
shackleford has quit [Remote host closed the connection]
saarinen has joined #ruby
<shevy> hehe
cirn0 has quit [Ping timeout: 240 seconds]
lw has quit [Ping timeout: 240 seconds]
<mostlybadfly> Lol
bubbajuice has joined #ruby
MCDev has joined #ruby
Guest74006 has quit [Max SendQ exceeded]
icebourg has quit []
phoo1234567 has quit [Remote host closed the connection]
lw has joined #ruby
ramfjord has joined #ruby
emmesswhy has joined #ruby
Scripore has joined #ruby
fabrice31 has joined #ruby
SilkFox_ has joined #ruby
Wolland has joined #ruby
lw has quit [Client Quit]
Panicky has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 260 seconds]
Heartbroken has joined #ruby
j_mcnally has quit [Ping timeout: 272 seconds]
lemur has joined #ruby
lw has joined #ruby
testcore has quit [Quit: [BX] Beavis & Butthead use BitchX. Huh-huh huh-huh huh-huh he said "Bitch".]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jespada has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 264 seconds]
ctruett has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
bubbajuice has quit [Ping timeout: 240 seconds]
skolman has quit [Remote host closed the connection]
aspires has quit []
lw has quit [Quit: s]
snath has quit [Remote host closed the connection]
jhass is now known as jhass|off
aspires has joined #ruby
dyreshark_ is now known as dyreshark
seamon has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
ctruett has quit [Read error: Connection reset by peer]
ctruett has joined #ruby
<clov3r> shit yeah
<clov3r> smashed it out of the park
narcan has quit [Read error: Connection reset by peer]
<clov3r> The yak has been shoven
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
sparrovv has quit [Remote host closed the connection]
skolman_ has joined #ruby
gsd has joined #ruby
sparrovv has joined #ruby
testcore has joined #ruby
ctruett has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
seamon has quit [Quit: Zzzzzzz]
zorak has joined #ruby
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Bumptious has joined #ruby
seamon has joined #ruby
sparrovv has quit [Ping timeout: 260 seconds]
agjacome has quit [Quit: leaving]
hiyosi has joined #ruby
hpoydar has quit []
charliesome has quit [Quit: zzz]
timonv_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
matchaw has quit [Remote host closed the connection]
clov3r has quit []
itspots has quit [Quit: Lingo - http://www.lingoirc.com]
matchaw has joined #ruby
avita1 has quit [Quit: Leaving.]
timonv_ has quit [Ping timeout: 272 seconds]
Sgeo has joined #ruby
<shevy> are you sexing up the yak again
avita1 has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
Aaaal has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jarboe has quit [Ping timeout: 252 seconds]
pu22l3r has quit [Ping timeout: 260 seconds]
maroloccio has quit [Quit: WeeChat 0.4.3]
jottr has quit [Ping timeout: 264 seconds]
dorei has quit []
Jarboe has joined #ruby
zorak has quit [Ping timeout: 245 seconds]
benzrf|offline is now known as benzrf
kenneth has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
soheil has quit [Remote host closed the connection]
goshdarnyou has quit [Quit: Connection closed for inactivity]
AlexBlom has joined #ruby
nszceta has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Soliah has joined #ruby
Aaaal has quit [Quit: Aaaal]
<siwica> what rack server are you using in development?
spider-mario has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
Wolland has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
necro has joined #ruby
<necro> I understand the attr_reader defines and returns :name - but why is :name equal to @name? https://gist.github.com/anonymous/5efc03c212258504aaaa
duggiefresh has joined #ruby
<hoelzro> necro: :name and @name are two separate things
eshy has quit [Quit: bye]
<hoelzro> attr_reader takes a symbol as an argument, and generates a reader that returns the value of the instance variable with that symbol's name
zorak has joined #ruby
havenwood has joined #ruby
SilkFox_ has joined #ruby
mockra_ has quit [Remote host closed the connection]
nanoyak has joined #ruby
mockra has joined #ruby
<hoelzro> necro: no
<hoelzro> and please don't PM me without permission.
<necro> oh, sorry
<necro> thanks for your help
mrsolo has quit [Quit: Leaving]
marr has quit [Ping timeout: 276 seconds]
<hoelzro> attr_reader generates a method that simply returns the value of the instance variable with the name you give
<necro> ah, thank you
lemur has joined #ruby
<hoelzro> np
<necro> actually I am still confused - what method is fido.name calling?
spyderma_ has joined #ruby
<hoelzro> the name method on fido is generated
SilkFox_ has quit [Ping timeout: 255 seconds]
<hoelzro> and it probably doesn't call any methods
<necro> by attr_reader?
<hoelzro> yes
mockra has quit [Ping timeout: 276 seconds]
<necro> ok :)
spyderma_ has quit [Read error: No route to host]
spyderm__ has joined #ruby
avita1 has quit [Quit: Leaving.]
jottr has joined #ruby
thams has joined #ruby
Takle has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 260 seconds]
lemur has quit [Ping timeout: 240 seconds]
spyderm__ has quit [Client Quit]
m8 has quit [Quit: Sto andando via]
toastynerd has joined #ruby
avita1 has joined #ruby
eshy has joined #ruby
gnash has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
dapadoupas has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Ping timeout: 255 seconds]
icarus has quit [Remote host closed the connection]
Kerber0s has joined #ruby