jcdesimp_ has quit [Remote host closed the connection]
jcdesimp has joined #ruby
spider-mario has quit [Remote host closed the connection]
tokik has quit [Ping timeout: 245 seconds]
ta has quit [Quit: Leaving...]
ponga has quit [Ping timeout: 256 seconds]
zachrab has quit [Ping timeout: 240 seconds]
vdamewood has quit [Read error: Connection reset by peer]
maximski has quit []
apeiros_ has joined #ruby
chrishough has joined #ruby
tyfighter has joined #ruby
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
vaneda has quit [Quit: Computer has gone to sleep.]
shredding has joined #ruby
psy_ has quit [Read error: Connection reset by peer]
ta has joined #ruby
psy_ has joined #ruby
ta_ has joined #ruby
BurningChrome_ has quit [Ping timeout: 245 seconds]
gawd has joined #ruby
atomi has quit [Quit: back in a while]
pdoherty has joined #ruby
shredding has quit [Client Quit]
josephndenton has joined #ruby
kayloos has joined #ruby
ta_ has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 244 seconds]
DEA7TH has quit [Ping timeout: 272 seconds]
shredding has joined #ruby
shredding has quit [Client Quit]
josephndenton has quit [Ping timeout: 272 seconds]
kalusn has quit [Ping timeout: 276 seconds]
x1337807x has joined #ruby
zapho53 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
<zapho53>
Ruby 2.2.0 /OS X 10.10/rbenv produces a list of "Ignoring <gem> because its extensions are not built. Try: gem pristine <gem> --version ..." every time I run irb. Why?
siso has quit [Quit: siso]
<zapho53>
My gems are located in $HOME/.gem
<jhass>
did you try?
einarj has quit [Remote host closed the connection]
<zapho53>
jhass: No. Didn't need this when I moved to 2.1.
arescorpio has joined #ruby
<zapho53>
jhass: Just trying to understand why it's happening.
<jhass>
probably rbenv related issue
caveat- has joined #ruby
Sid05 has quit [Quit: Sid05]
kenneth has joined #ruby
Aova has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
mrmargolis has joined #ruby
dc_ has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
tmk1108 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfinninger has quit [Ping timeout: 256 seconds]
maximski has joined #ruby
jbae has quit [Ping timeout: 245 seconds]
maximski has quit [Max SendQ exceeded]
agrinb has joined #ruby
Aova has joined #ruby
m8 has quit [Quit: Sto andando via]
jbae_ has joined #ruby
eka has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
tyfighter has quit [Quit: tyfighter]
vvivv has quit [Ping timeout: 256 seconds]
agrinb has quit [Ping timeout: 265 seconds]
caveat- has quit [Ping timeout: 245 seconds]
jbae_ has quit [Ping timeout: 245 seconds]
jetblack has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
jbae has joined #ruby
helpa has quit [Remote host closed the connection]
certaint1 has joined #ruby
pipecloud has joined #ruby
shellox_ has quit [Remote host closed the connection]
ericwood_ has joined #ruby
shellfu is now known as shellfu_watches
helpa has joined #ruby
rodasc has quit [Quit: Disconnecting from stoned server.]
mhenrixon has quit [Ping timeout: 256 seconds]
nug has quit [Ping timeout: 256 seconds]
adam12 has quit [Ping timeout: 256 seconds]
zonetti has quit [Ping timeout: 256 seconds]
nitrix has quit [Ping timeout: 256 seconds]
maximski has quit [Ping timeout: 256 seconds]
chrishough has quit [Ping timeout: 256 seconds]
gf3 has quit [Ping timeout: 256 seconds]
ValicekB has quit [Ping timeout: 256 seconds]
webguynow has quit [Ping timeout: 256 seconds]
bashusr has quit [Ping timeout: 256 seconds]
n88 has quit [Ping timeout: 256 seconds]
gregf_ has quit [Ping timeout: 256 seconds]
seanmarcia has quit [Ping timeout: 256 seconds]
bier has quit [Ping timeout: 256 seconds]
nisstyre has quit [Ping timeout: 256 seconds]
Eiam has quit [Ping timeout: 256 seconds]
certainty has quit [Ping timeout: 256 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
thejoecarroll has quit [Ping timeout: 256 seconds]
pipework has quit [Ping timeout: 256 seconds]
Spleeze has quit [Ping timeout: 256 seconds]
leafybasil has quit [Ping timeout: 256 seconds]
jcp has quit [Ping timeout: 256 seconds]
chuck has quit [Ping timeout: 256 seconds]
mbwe has quit [Ping timeout: 256 seconds]
s_e has quit [Ping timeout: 256 seconds]
droidburgundy has quit [Ping timeout: 256 seconds]
ryotarai has quit [Ping timeout: 256 seconds]
thoraxe has quit [Ping timeout: 256 seconds]
clauswitt has quit [Ping timeout: 256 seconds]
diegok has quit [Ping timeout: 256 seconds]
contradictioned has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
madhatter has quit [Ping timeout: 256 seconds]
jamo_ has quit [Ping timeout: 256 seconds]
jxport has quit [Ping timeout: 256 seconds]
kayloos has quit [Ping timeout: 256 seconds]
byaruhaf has quit [Ping timeout: 256 seconds]
peterhu has quit [Ping timeout: 256 seconds]
riotjones has quit [Ping timeout: 256 seconds]
red_horned_rihno has quit [Ping timeout: 256 seconds]
suy has quit [Ping timeout: 256 seconds]
uxp has quit [Ping timeout: 256 seconds]
Gonzih has quit [Ping timeout: 256 seconds]
bennyklotz has quit [Ping timeout: 256 seconds]
majoh has quit [Ping timeout: 256 seconds]
gomix has quit [Ping timeout: 256 seconds]
tercenya has quit [Ping timeout: 256 seconds]
kies has quit [Ping timeout: 256 seconds]
ctrlrsf has quit [Ping timeout: 256 seconds]
warreng has quit [Ping timeout: 256 seconds]
aep has quit [Ping timeout: 256 seconds]
gnarf has quit [Ping timeout: 256 seconds]
JyZyXEL has quit [Ping timeout: 256 seconds]
Guest57534 has quit [Ping timeout: 256 seconds]
Takumo has quit [Ping timeout: 256 seconds]
jkyle has quit [Ping timeout: 256 seconds]
justinmcp has quit [Ping timeout: 256 seconds]
Zackio has quit [Ping timeout: 256 seconds]
mattp__ has quit [Ping timeout: 256 seconds]
klap has quit [Ping timeout: 256 seconds]
j0n3 has quit [Ping timeout: 256 seconds]
ItSANgo has quit [Ping timeout: 256 seconds]
pu22l3r has quit [Ping timeout: 256 seconds]
lady3bean has quit [Ping timeout: 256 seconds]
Platini has quit [Ping timeout: 256 seconds]
regnartim has quit [Ping timeout: 256 seconds]
guardian has joined #ruby
matrixise has quit [Ping timeout: 256 seconds]
livcd has quit [Ping timeout: 256 seconds]
AlexRussia has quit [Ping timeout: 256 seconds]
Drakevr has quit [Ping timeout: 256 seconds]
ericwood has quit [Ping timeout: 256 seconds]
Esya has quit [Ping timeout: 256 seconds]
linduxed has quit [Ping timeout: 256 seconds]
prasselpikachu has quit [Ping timeout: 256 seconds]
robustus has quit [*.net *.split]
TheNumb has quit [*.net *.split]
FaresKAlaboud has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
wasamasa has quit [*.net *.split]
deepy has quit [*.net *.split]
mame2 has quit [*.net *.split]
Ridley5 has quit [*.net *.split]
Cork has quit [*.net *.split]
kith has quit [*.net *.split]
erichmenge has quit [*.net *.split]
KillerFox has quit [*.net *.split]
guardian is now known as 6A4ABBRRG
prasselpikachu has joined #ruby
pipecloud is now known as pipework
FIGO_ has joined #ruby
exomniac has quit [Quit: Leaving]
nitrix- has joined #ruby
mist has quit [Ping timeout: 606 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
n88 has joined #ruby
raddazong has joined #ruby
s_e_ has joined #ruby
thejoecarroll has joined #ruby
s_e_ is now known as s_e
helpa has quit [Remote host closed the connection]
havenwood has joined #ruby
caveat- has joined #ruby
jbae has left #ruby [#ruby]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybas_ has joined #ruby
riotjone_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
astrobunny has joined #ruby
mhenrixon_ has joined #ruby
j0n3_ has joined #ruby
weaksauce has joined #ruby
tercenya_ has joined #ruby
gnarld_ has joined #ruby
javawizard has joined #ruby
jalcine- has joined #ruby
chrishou_ has joined #ruby
suy_ has joined #ruby
justinmcp_ has joined #ruby
mbwe1 has joined #ruby
adam- has joined #ruby
ryotarai_ has joined #ruby
vlad_sta- has joined #ruby
gregf__ has joined #ruby
contradictioned_ has joined #ruby
gf3_ has joined #ruby
sent1nel has joined #ruby
jxport_ has joined #ruby
aep_ has joined #ruby
crodas has joined #ruby
clauswitt_ has joined #ruby
byaruhaf_ has joined #ruby
thoraxe_ has joined #ruby
peterhu_ has joined #ruby
jenrzzz has joined #ruby
klap_ has joined #ruby
bennyklo1z has joined #ruby
uxp_ has joined #ruby
robustus|Off has joined #ruby
adam- is now known as adam12_
sandshark_ has joined #ruby
diego_k has joined #ruby
DadoCe has joined #ruby
Drakevr_ has joined #ruby
bashusr2 has joined #ruby
matrixis1 has joined #ruby
ItSANg___ has joined #ruby
porfa has quit [Ping timeout: 245 seconds]
livcd_ has joined #ruby
bier_ has joined #ruby
JyZyXEL- has joined #ruby
gnarld_ is now known as nug
bashusr2 is now known as bashusr
mhenrixon_ is now known as mhenrixon
JyZyXEL- is now known as JyZyXEL
robustus|Off is now known as robustus
bashusr has quit [Changing host]
bashusr has joined #ruby
TakumoKatekari has joined #ruby
gf3_ is now known as gf3
adam12_ is now known as adam
ryotarai_ is now known as ryotarai
FIGO_ has quit [Changing host]
FIGO_ has joined #ruby
sent1nel has quit [Ping timeout: 245 seconds]
sandshark has quit [Ping timeout: 245 seconds]
seanmarcia has joined #ruby
ninjazach has joined #ruby
warreng has joined #ruby
mattp__ has joined #ruby
webguynow has joined #ruby
pipework is now known as Guest81637
adam is now known as Guest24051
Guest81637 has joined #ruby
Guest81637 has quit [Changing host]
nuck has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
ninjazach is now known as Guest75921
mist has joined #ruby
Spleeze has joined #ruby
tvw has quit []
helpa has joined #ruby
red_horned_rihno has joined #ruby
Gonzih has joined #ruby
RedDwarf has joined #ruby
gomix has joined #ruby
majoh has joined #ruby
jalcine has quit [Quit: Goodbye]
jalcine- is now known as jalcine
kalusn has joined #ruby
jamo__ has joined #ruby
pu22l3r_ has joined #ruby
zonetti_ has joined #ruby
Trynemjoel2 has joined #ruby
lady3bean has joined #ruby
tmk1108 has joined #ruby
kies has joined #ruby
DadoCe has quit [Ping timeout: 265 seconds]
shellox has joined #ruby
gnarf_ has joined #ruby
FIGO_ is now known as Platini
prasselpikachu_ has joined #ruby
tunaCanBruh has joined #ruby
helpa has quit [Remote host closed the connection]
nisstyre has joined #ruby
prasselpikachu has quit [Ping timeout: 256 seconds]
nuck has quit [Quit: Computer has gone to sleep.]
Takle has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
j0n3_ has quit [Read error: Connection reset by peer]
FaresKAlaboud has joined #ruby
mame2 has joined #ruby
erichmenge has joined #ruby
kith has joined #ruby
KillerFox has joined #ruby
Ridley5 has joined #ruby
Cork has joined #ruby
wasamasa has joined #ruby
sonOfRa has joined #ruby
deepy has joined #ruby
TheNumb has joined #ruby
Cork has quit [Max SendQ exceeded]
zachrab has joined #ruby
shellox has quit [Ping timeout: 264 seconds]
6A4ABBRRG has quit [Ping timeout: 256 seconds]
Cork has joined #ruby
Cork is now known as 32NAA62KE
jimg has joined #ruby
ValicekB has joined #ruby
helpa has joined #ruby
FooMunki has quit [Quit: FooMunki]
adriancb has joined #ruby
jimg has quit [Client Quit]
jimg has joined #ruby
regnartim has joined #ruby
danzilio has quit []
zachrab has quit [Ping timeout: 265 seconds]
Pupeno has joined #ruby
tunaCanBruh has quit [Ping timeout: 276 seconds]
jalcine has quit [Quit: Goodbye]
FooMunki_ has joined #ruby
adamjleonard has quit [Quit: Leaving...]
freerobby has joined #ruby
jalcine has joined #ruby
shellox has joined #ruby
maximski has joined #ruby
hgl has quit [Ping timeout: 276 seconds]
einarj has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
ych4k3r has joined #ruby
hgl has joined #ruby
Ankhers`` has quit [Ping timeout: 250 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shum has joined #ruby
FooMunki_ has quit [Read error: Connection reset by peer]
maximski has quit []
FooMunki_ has joined #ruby
coreycondardo has joined #ruby
mrmargolis has quit [Remote host closed the connection]
mrmargolis has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo___ has joined #ruby
kenneth has joined #ruby
<coreycondardo>
hi
vaneda has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
<coreycondardo>
hi
adriancb has quit []
shum has quit [Client Quit]
AlexRussia has joined #ruby
maximski has joined #ruby
shum has joined #ruby
maximski has quit [Max SendQ exceeded]
ta has quit [Remote host closed the connection]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
mloveless has quit [Remote host closed the connection]
Damonique has joined #ruby
mrmargolis has quit [Ping timeout: 272 seconds]
juanpablo___ has quit [Ping timeout: 256 seconds]
<jhass>
coreycondardo: sup
<coreycondardo>
just fucking with webmock :).
linduxed has joined #ruby
<coreycondardo>
opps!
<coreycondardo>
i meant fighting!!
<coreycondardo>
oy :-[
<jhass>
you know
<jhass>
you can't make that undone now
<coreycondardo>
i know :(.
<coreycondardo>
i had a good run.
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlSquire has quit [Quit: This computer has gone to sleep]
adriancb has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
freerobby has quit [Quit: Leaving.]
Aova has quit [Read error: Connection reset by peer]
adamjleonard has joined #ruby
dfinninger has joined #ruby
aemeredith has joined #ruby
goodenough has quit [Remote host closed the connection]
rbennacer has joined #ruby
<rbennacer>
hello guys
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rbennacer>
i am trying to make my api wrapper more modular
TripTastic has joined #ruby
<rbennacer>
anybody has experience with ruby module
<havenwood>
pabloh: I miss the top level refinements from 2.0. If not something implicit at top level it'd be nice to be able to explicitly enable them.
Pharaoh2 has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
<havenwood>
It'd make examples easier to show. It's handy for spiking out ideas. It's consistent with others of its ilk being usable from top level.
zachrab has quit [Ping timeout: 255 seconds]
lampd1_ has joined #ruby
kobain has joined #ruby
arescorpio has quit [Excess Flood]
lampd1 has quit [Ping timeout: 265 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
BlakeRG has joined #ruby
<pabloh>
havenwood, sry that's an irb specific issue?
Spami has joined #ruby
<havenwood>
pabloh: yup
rbennacer has joined #ruby
<havenwood>
pabloh: try it in a file
oo_ has joined #ruby
Sid05 has quit [Quit: Sid05]
__chris has quit [Ping timeout: 240 seconds]
wind has joined #ruby
ekem_`d`_meke is now known as ekem
fabrice31 has joined #ruby
ta has joined #ruby
Aova has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
aemeredith has joined #ruby
<totimkopf>
yay for symbol gc
<pabloh>
havenwood, I got the same behavior on a file, if I redefine Module#using, the top level one don't change and also keeps working fine
aemeredith has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
aemeredith has joined #ruby
<pabloh>
havenwood, anyhow, what I was trying to do was to refine an anonymous class specifically the singleton class from the top level object
<pabloh>
the reason it wans't working was due the problem with IRB you pointed out though :)
swgillespie has quit [Client Quit]
fabrice31 has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 272 seconds]
<pabloh>
wasn't*
Aova has joined #ruby
ponga has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 255 seconds]
aemeredith has quit [Ping timeout: 244 seconds]
ta has joined #ruby
kenneth has joined #ruby
red_horned_rihno has quit [Read error: Connection reset by peer]
red_horned_rihno has joined #ruby
rbennacer has quit [Remote host closed the connection]
<havenwood>
weaksauce: maybe since #sub is regexp already a positive lookbehind is just the way to go
dfinninger has joined #ruby
Ankhers`` has joined #ruby
<havenwood>
weaksauce: i guess you could break your string apart into pieces then sub the latter piece and rejoin.
Aova has joined #ruby
<weaksauce>
good ideas. I will ruminate on them later and come to terms with rubies failings....
<havenwood>
weaksauce: but i think #index as a first step or positive lookbehind is probably the way to go
psy_ has joined #ruby
<havenwood>
i can't think of an elegant way to extend #sub/#gsub to support the after index x usecase that makes sense
tus has quit []
aemeredith has quit [Ping timeout: 264 seconds]
psy_ has quit [Max SendQ exceeded]
<havenwood>
weaksauce: you should implement it the way you think makes sense
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
weaksauce: then propose it if you like it
dfinninger has quit [Ping timeout: 240 seconds]
zachrab has quit [Ping timeout: 264 seconds]
psy_ has joined #ruby
Ankhers`` has quit [Ping timeout: 250 seconds]
<havenwood>
a pretty decent percent of proposals are accepted
<weaksauce>
oh yeah?
caveat- has joined #ruby
tunaCanBruh has joined #ruby
<weaksauce>
I am not super serious really... i am doing some parsing with regexes and instead of doing it properly by tokenizing and parsing against a grammar I am using the regex method...
<havenwood>
some are good ideas and haven't percolated to the top yet, but yeah, I think a good idea has a good shot
<weaksauce>
It is in other languages though
<havenwood>
some are quite resistant to outside ideas
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
weaksauce: and in cases like this you can extend core classes how you please whether they decide to add it to the language or not, that's a perk
<weaksauce>
that's one of the nice things about ruby eh?
tunaCanBruh has quit [Ping timeout: 246 seconds]
<havenwood>
weaksauce: indeed!
<weaksauce>
the packaging ecosystem swayed me from python but the power in the metaprogramming kept me
rbennacer has quit [Ping timeout: 265 seconds]
Cache_Money has joined #ruby
<arup_r>
Anybody worked on OpenOffice word doc parsing using Ruby ?
<weaksauce>
excel yeah
MasterPiece has quit [Quit: Leaving]
wind has joined #ruby
<weaksauce>
arup_r look into the rubyXL gem
<weaksauce>
er. wow.
<arup_r>
weaksauce: No.. I want to work with openoffice worddoc
<weaksauce>
yeah I probably need to go to sleep now
<arup_r>
ok
astrobunny has joined #ruby
aemeredith has joined #ruby
ponga has joined #ruby
aemeredith has quit [Read error: Connection reset by peer]
aemeredith has joined #ruby
juanpablo___ has joined #ruby
agrinb has quit [Remote host closed the connection]
vaneda has quit [Quit: Computer has gone to sleep.]
agrinb has joined #ruby
ponga has quit [Ping timeout: 255 seconds]
rbennacer has joined #ruby
aemeredith has quit [Ping timeout: 265 seconds]
klmlfl has joined #ruby
juanpablo___ has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
ta has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
konsolebox has joined #ruby
klmlfl has joined #ruby
zzzbra has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
agent_white has joined #ruby
<agent_white>
Evenin folks
rbennacer has quit [Remote host closed the connection]
ta has quit [Ping timeout: 246 seconds]
OrbitalKitten has joined #ruby
work_op has left #ruby [#ruby]
einarj has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has quit [Quit: Cache_Money]
caveat- has quit [Ping timeout: 245 seconds]
The_Phoenix has joined #ruby
ponga has joined #ruby
oo_ has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 246 seconds]
caveat- has joined #ruby
Pharaoh2 has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
M-Technic has quit [Quit: leaving]
LudicrousMango has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
oo_ has joined #ruby
timanema has joined #ruby
fabrice31 has joined #ruby
tiwillia has quit [Ping timeout: 240 seconds]
shellfu_watches is now known as shellfu
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tiwillia has joined #ruby
oo_ has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
agjacome has quit [Quit: leaving]
<chipotle>
hello
oo_ has joined #ruby
<timanema>
hello
aemeredith has joined #ruby
caveat- has quit [Ping timeout: 245 seconds]
aemeredith has quit [Read error: Connection reset by peer]
aemeredith has joined #ruby
Aova has quit [Read error: Connection reset by peer]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aemeredith has quit [Read error: Connection reset by peer]
caveat- has joined #ruby
oo_ has quit [Remote host closed the connection]
MasterPiece has joined #ruby
lioninawhat has joined #ruby
oo_ has joined #ruby
aemeredith has joined #ruby
dfinninger has joined #ruby
Ankhers`` has joined #ruby
Aova has joined #ruby
MasterPiece has quit [Remote host closed the connection]
pardusf has quit []
aemeredith has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
parduse has joined #ruby
dfinninger has quit [Ping timeout: 276 seconds]
klmlfl has quit [Remote host closed the connection]
Ankhers`` has quit [Ping timeout: 250 seconds]
parduse has quit [Client Quit]
Kn|t3 has quit [Ping timeout: 245 seconds]
jalcine has joined #ruby
fenzil has quit [Ping timeout: 256 seconds]
tyfighter has joined #ruby
Kn|t3 has joined #ruby
dc_ has quit [Remote host closed the connection]
parduse has joined #ruby
james__ has joined #ruby
james__ is now known as dukejames
<totimkopf>
sir dukejames
Spami has quit [Read error: Connection reset by peer]
lampd1_ has quit [Remote host closed the connection]
Spami has joined #ruby
<dukejames>
Hello
<dukejames>
:)
mitchellhenke has joined #ruby
timanema has quit [Ping timeout: 245 seconds]
pabloh has quit [Quit: Saliendo]
josephndenton has joined #ruby
hvxgr has quit [Ping timeout: 245 seconds]
tyfighter has quit [Ping timeout: 256 seconds]
jerematic has joined #ruby
dspangenberg has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
ponga has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 264 seconds]
M-Technic has joined #ruby
oo_ has joined #ruby
tyfighter has joined #ruby
Pharaoh2_ has joined #ruby
razieliyo has quit [Ping timeout: 264 seconds]
rbennacer has joined #ruby
dspangenberg has quit [Ping timeout: 245 seconds]
aswen has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
oo_ has quit [Remote host closed the connection]
Pharaoh2 has quit [Ping timeout: 246 seconds]
rbennacer has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
li0ninawhat has joined #ruby
oo_ has joined #ruby
sent1nel_ has quit [Remote host closed the connection]
aswen has quit [Ping timeout: 245 seconds]
32NAA62KE has quit [Changing host]
32NAA62KE has joined #ruby
32NAA62KE is now known as Cork
oo_ has quit [Remote host closed the connection]
Ankhers`` has joined #ruby
lioninawhat has quit [Ping timeout: 272 seconds]
agent_white has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ponga has joined #ruby
pdoherty has joined #ruby
Ankhers`` has quit [Ping timeout: 250 seconds]
yfeldblu_ has quit [Ping timeout: 255 seconds]
LudicrousMango has joined #ruby
Sawbones_ has joined #ruby
jgt has joined #ruby
agrinb has joined #ruby
zachrab has joined #ruby
mleung has joined #ruby
pdoherty has quit [Ping timeout: 265 seconds]
wldcordeiro has joined #ruby
ta has joined #ruby
atomi has joined #ruby
grzesieq has joined #ruby
tiwillia has quit [Ping timeout: 276 seconds]
hvxgr has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
mices has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
tiwillia has joined #ruby
<mices>
what's the rails channel?
<mices>
is this it?
zachrab has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 272 seconds]
mices has left #ruby [#ruby]
jetblack has quit [Ping timeout: 256 seconds]
tunaCanBruh has joined #ruby
vaneda has joined #ruby
thumpba has joined #ruby
Aova has quit [Read error: Connection reset by peer]
aemeredith has joined #ruby
coreycondardo has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 244 seconds]
goodenough has quit [Remote host closed the connection]
dfinninger has joined #ruby
aemeredith has quit [Ping timeout: 256 seconds]
Aova has joined #ruby
josephndenton has joined #ruby
godd2 has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
tyfighter has quit [Quit: tyfighter]
ta has joined #ruby
wittyfox has joined #ruby
dfinninger has quit [Ping timeout: 272 seconds]
astrobunny has quit [Remote host closed the connection]
agent_white has joined #ruby
thumpba has quit [Remote host closed the connection]
mistermocha has joined #ruby
juanpablo___ has joined #ruby
josephndenton has quit [Ping timeout: 276 seconds]
vaneda has quit [Quit: Computer has gone to sleep.]
Sawbones_ has quit [Remote host closed the connection]
sudog has quit [Remote host closed the connection]
Miron has joined #ruby
<havenwood>
arup_r: using "**/*" makes sense, to look in directories recursively for any file
sudog has joined #ruby
pdoherty has joined #ruby
dfinninger has quit [Ping timeout: 244 seconds]
sheepman has joined #ruby
ZucchiniZe has joined #ruby
Livadi has joined #ruby
cnj has joined #ruby
<havenwood>
arup_r: looking in directories recursively for directories recursively for directories recursively is, is, is, ga, got stuck
<arup_r>
That I know.. But the other one I don't know..still working
_honning__ has joined #ruby
<havenwood>
arup_r: Do you expect it to have a purpose?
jimbauds has left #ruby [#ruby]
hgl has quit [Ping timeout: 256 seconds]
shellfu_afk has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 255 seconds]
ta has quit [Ping timeout: 276 seconds]
bMalum has quit [Quit: bMalum]
tvw has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
kenneth_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ev____ has joined #ruby
<ferr>
I use 'net/dns' and the issue I experience is that if dns does not response it breaks my script with this error Net::DNS::Resolver::NoResponseError: No response from nameservers list
<havenwood>
arup_r: Maybe just think of it as a fallback to a *, I don't think there's anything useful with your second example.
<ferr>
How would I make just a plain error message or something to keep script executing except of breaking
<Xeago>
I'm not a good rubyist, neither is the author. Was merely hoping for a friendly chatter about idioms and how to not make it look as it does right now
lkba_ has quit [Ping timeout: 264 seconds]
ev____ has quit [Ping timeout: 264 seconds]
LudicrousMango has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
Cadillactica has quit [Quit: Cadillactica]
lkba has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
lkba has quit [Client Quit]
jetblack has quit [Ping timeout: 244 seconds]
Jackneill has joined #ruby
lkba has joined #ruby
anaeem1_ has joined #ruby
Jackneill has quit [Max SendQ exceeded]
BurningChrome_ has quit [Ping timeout: 256 seconds]
<shevy>
did any of you ever wrote old school ascii art, generated through ruby? like ascii boxes and such
agrinb has joined #ruby
AndChat-570836 has quit [Ping timeout: 245 seconds]
guardian has joined #ruby
agit0 has quit [Quit: This computer has gone to sleep]
mijicd has quit [Remote host closed the connection]
anaeem1_ has quit [Ping timeout: 244 seconds]
Joufflu_ has joined #ruby
<shevy>
is there a syntax to create a hash, such as %w() for Arrays?
<shevy>
I only need simple key->value entries where each key is just one word and each value is just one word
thomas has joined #ruby
<apeiros_>
shevy: %w + .to_h
Joufflu__ has joined #ruby
<apeiros_>
oh, wait
<shevy>
ah I see what you mean, an intermediate step
quimrstorres has joined #ruby
<apeiros_>
Hash[%w[…]]
<apeiros_>
since to_h expects [[k,v], …]
agrinb has quit [Ping timeout: 245 seconds]
apeiros_ has quit []
apeiros_ has joined #ruby
bMalum has quit [Quit: bMalum]
Joufflu has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
zachrab has joined #ruby
Joufflu_ has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Remote host closed the connection]
sent1nel has joined #ruby
borel has joined #ruby
dfinninger has joined #ruby
banister has joined #ruby
einarj has quit [Ping timeout: 255 seconds]
sent1nel has quit [Ping timeout: 245 seconds]
zachrab has quit [Ping timeout: 256 seconds]
shime has joined #ruby
aces2up has joined #ruby
ta has joined #ruby
<aces2up>
i am writing to a file via puts.. but it only actually writes the data seems when i do file.close, is there way to have it write to the file imediately?
jcdesimp_ has quit [Quit: Leaving...]
dfinninger has quit [Ping timeout: 245 seconds]
<apeiros_>
aces2up: see IO#sync and IO#flush
<apeiros_>
IO#sync= actually.
ziyadb has joined #ruby
ta has quit [Ping timeout: 255 seconds]
Xeago_ has joined #ruby
quimrstorres has joined #ruby
agit0 has joined #ruby
jack_rabbit has quit [Ping timeout: 264 seconds]
<aces2up>
apeiros_ nice worked.
<aces2up>
thanks.
blackmes1 has joined #ruby
aces2up has left #ruby [#ruby]
sameerynho has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
astrobunny has quit [Remote host closed the connection]
TinkerTyper has quit [Ping timeout: 272 seconds]
ypasmk has joined #ruby
dotix has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
agit0 has quit [Quit: This computer has gone to sleep]
Aova has quit [Read error: Connection reset by peer]
aemeredith has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.1]
aswen has joined #ruby
BurningChrome_ has joined #ruby
TinkerTyper has joined #ruby
jerematic has joined #ruby
_honning__ has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
aemeredith has quit [Ping timeout: 250 seconds]
Aova has joined #ruby
spider-mario has joined #ruby
astrobunny has joined #ruby
tiwillia has quit [Ping timeout: 255 seconds]
jerematic has quit [Ping timeout: 245 seconds]
dspangenberg has joined #ruby
yellowgh0st has joined #ruby
josephndenton has joined #ruby
tiwillia has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
astrobunny has quit [Ping timeout: 246 seconds]
aapole has joined #ruby
yellowgh0st has quit [Client Quit]
dspangenberg has quit [Ping timeout: 245 seconds]
rbennacer has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
agit0 has joined #ruby
MasterPiece has quit [Ping timeout: 246 seconds]
MasterPiece has joined #ruby
rbennacer has quit [Ping timeout: 245 seconds]
fewqs has joined #ruby
govg has joined #ruby
jack_rabbit has joined #ruby
fewqs has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
blackmesa has joined #ruby
caveat- has quit [Ping timeout: 245 seconds]
ypasmk has quit [Quit: ypasmk]
quimrstorres has joined #ruby
lampd1 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jetblack has joined #ruby
jusmyth has quit [Quit: Leaving.]
caveat- has joined #ruby
n008f4g_ has joined #ruby
lampd1 has quit [Ping timeout: 255 seconds]
Takle has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
agit0 has quit [Quit: This computer has gone to sleep]
scripore has quit [Quit: This computer has gone to sleep]
jack_rabbit has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby
ypasmk has joined #ruby
jetblack has quit [Ping timeout: 264 seconds]
aswen has quit [Ping timeout: 245 seconds]
RedDwarf is now known as Zackio
ta has joined #ruby
sigurding has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
Takle_ has quit [Ping timeout: 252 seconds]
duncannz has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
tunaCanBruh has joined #ruby
Spami has joined #ruby
duncannz has joined #ruby
kirun has joined #ruby
ta has quit [Ping timeout: 252 seconds]
plashchynski has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
malcolmva has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
kalusn has joined #ruby
lkba_ has joined #ruby
kalusn has quit [Read error: No route to host]
kalusn has joined #ruby
jack_rabbit has joined #ruby
AndChat-570836 has joined #ruby
dfinninger has joined #ruby
caveat- has quit [Ping timeout: 245 seconds]
sigurding has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 240 seconds]
exadeci has joined #ruby
sigurding has joined #ruby
bMalum has joined #ruby
lkba_ has quit [Ping timeout: 255 seconds]
caveat- has joined #ruby
pdoherty has joined #ruby
BurningChrome__ has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
Ankhers`` has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
towski_ has joined #ruby
juanpablo___ has joined #ruby
jxport has quit [Ping timeout: 240 seconds]
klap has quit [Ping timeout: 240 seconds]
klap has joined #ruby
Xeago_ has quit [Ping timeout: 245 seconds]
DylanJ has quit [Ping timeout: 245 seconds]
jxport has joined #ruby
DylanJ has joined #ruby
BurningChrome_ has quit [Ping timeout: 245 seconds]
duncannz has quit [Read error: Connection reset by peer]
malcolmva has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
juanpablo___ has quit [Ping timeout: 245 seconds]
yellowgh0st has joined #ruby
towski_ has quit [Ping timeout: 252 seconds]
ta has joined #ruby
konsolebox has joined #ruby
ypasmk has quit [Quit: ypasmk]
sigurding has quit [Ping timeout: 265 seconds]
Aova has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 252 seconds]
caveat- has quit [Ping timeout: 245 seconds]
aemeredith has joined #ruby
sigurding has joined #ruby
olivier_bK has joined #ruby
fredsir_ is now known as fredsir
adamjleonard has joined #ruby
paradoja has joined #ruby
agit0 has joined #ruby
caveat- has joined #ruby
kalusn has quit [Remote host closed the connection]
Aova has joined #ruby
aemeredith has quit [Ping timeout: 256 seconds]
BurningChrome__ has quit [Ping timeout: 245 seconds]
visof has joined #ruby
ypasmk has joined #ruby
quimrstorres has joined #ruby
aemeredith has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
aemeredith has quit [Read error: Connection reset by peer]
anaeem1 has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 264 seconds]
wittyfox has joined #ruby
neoxquick has joined #ruby
caveat- has joined #ruby
zenspider_ has joined #ruby
agrinb has joined #ruby
bMalum has quit [Read error: Connection reset by peer]
zenspider has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 252 seconds]
Ankhers`` has quit [Ping timeout: 250 seconds]
bMalum has joined #ruby
Cork has quit [Ping timeout: 264 seconds]
devyn has quit [Ping timeout: 264 seconds]
sweeper has quit [Ping timeout: 264 seconds]
urtokk has quit [Ping timeout: 264 seconds]
jetblack has joined #ruby
devyn has joined #ruby
urtokk has joined #ruby
quimrstorres has quit [Remote host closed the connection]
speaking1ode has quit [Ping timeout: 264 seconds]
sweeper has joined #ruby
oleo has joined #ruby
visof_ has joined #ruby
vaneda has joined #ruby
Takle has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 245 seconds]
suffice_ has quit [Ping timeout: 264 seconds]
speaking1ode has joined #ruby
marcdel has joined #ruby
quimrstorres has joined #ruby
suffice has joined #ruby
s_e has quit [Ping timeout: 264 seconds]
RandyT has quit [Ping timeout: 264 seconds]
RandyT has joined #ruby
FifthWall has quit [Ping timeout: 264 seconds]
FifthWall_ has joined #ruby
visof has quit [Ping timeout: 265 seconds]
oleo__ has quit [Ping timeout: 265 seconds]
jetblack has quit [Ping timeout: 245 seconds]
ValicekB has quit [Ping timeout: 264 seconds]
n88 has quit [Ping timeout: 264 seconds]
zachrab has joined #ruby
hgl has quit [Ping timeout: 256 seconds]
ferr has quit [Ping timeout: 264 seconds]
s_e has joined #ruby
ferr has joined #ruby
wittyfox has left #ruby ["WeeChat 0.4.3"]
YamakasY_ has joined #ruby
tvw has quit [Ping timeout: 245 seconds]
chiel has quit [Ping timeout: 264 seconds]
hgl has joined #ruby
n88 has joined #ruby
wottam has quit [Read error: Connection reset by peer]
caveat- has quit [Ping timeout: 245 seconds]
urtokk has quit [Ping timeout: 240 seconds]
chiel has joined #ruby
DylanJ has quit [Ping timeout: 245 seconds]
urtokk has joined #ruby
DylanJ has joined #ruby
Neomex has joined #ruby
<YamakasY_>
hi guys, wasn´t it possible to do a gsub on domain_name in the same line ? <% @domains.each do |domain_name| -%>
marienz has joined #ruby
Cork has joined #ruby
caveat- has joined #ruby
zachrab has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Remote host closed the connection]
FooMunki_ has joined #ruby
yellowgh0st has quit [Quit: yellowgh0st]
quimrstorres has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Takle has joined #ruby
astrobunny has joined #ruby
raphaelss has joined #ruby
ValicekB has joined #ruby
raphaelss has quit [Client Quit]
Takle has quit [Remote host closed the connection]
Cat_1 has quit [Ping timeout: 264 seconds]
Alina-malina has quit [Ping timeout: 265 seconds]
ta has joined #ruby
PaulCape_ is now known as PaulCapestany
visof has joined #ruby
Alina-malina has joined #ruby
_5kg has quit [Ping timeout: 264 seconds]
Cork has quit [Quit: .]
astrobunny has quit [Ping timeout: 264 seconds]
caveat- has quit [Ping timeout: 245 seconds]
Azure has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
ferr has quit [Ping timeout: 246 seconds]
visof_ has quit [Ping timeout: 264 seconds]
caveat- has joined #ruby
ta has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
dfinninger has joined #ruby
siso has quit [Quit: siso]
Xeago has joined #ruby
xenomorph is now known as {xenomorph}
tkuchiki has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 246 seconds]
LudicrousMango has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arup_r>
any help ? :(
dfinninger has quit [Ping timeout: 244 seconds]
mistermocha has quit [Ping timeout: 245 seconds]
adriancb has joined #ruby
Hobogrammer_ has quit [Ping timeout: 256 seconds]
vaneda has quit [Quit: Computer has gone to sleep.]
jerematic has joined #ruby
BurningChrome__ has joined #ruby
DadoCe has joined #ruby
elaptics is now known as elaptics`away
kalusn has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
aemeredith has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
quimrstorres has joined #ruby
maximski has joined #ruby
plashchynski has quit [Quit: plashchynski]
aemeredith has quit [Read error: Connection reset by peer]
jerematic has quit [Ping timeout: 250 seconds]
aemeredith has joined #ruby
maximski has quit [Max SendQ exceeded]
dspangenberg has joined #ruby
DadoCe has quit [Ping timeout: 252 seconds]
maximski has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
aryaching has joined #ruby
Cork has joined #ruby
_honning__ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
aemeredith has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
aemeredith has joined #ruby
dspangenberg has quit [Ping timeout: 250 seconds]
sigurding has quit [Quit: sigurding]
MasterPiece has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 244 seconds]
Aova has joined #ruby
aemeredith has quit [Ping timeout: 255 seconds]
Luyt has joined #ruby
Jetchisel has joined #ruby
quimrstorres has joined #ruby
vdamewood has joined #ruby
rvchangu- is now known as rvchangue
rvchangue has quit [Changing host]
rvchangue has joined #ruby
Xeago has joined #ruby
elaptics`away is now known as elaptics
ypasmk has quit [Quit: ypasmk]
m8 has joined #ruby
Xeago has quit [Remote host closed the connection]
govg has quit [Quit: leaving]
sivoais has joined #ruby
lampd1 has joined #ruby
lampd1 has quit [Client Quit]
oo_ has joined #ruby
tiwillia has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
puppetmonkey has joined #ruby
agrinb has joined #ruby
aemeredith has joined #ruby
tiwillia has joined #ruby
quimrstorres has quit [Remote host closed the connection]
shime_ has joined #ruby
goodenough has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
Cork has quit [Quit: .]
ta has joined #ruby
Ankhers`` has joined #ruby
blizzy has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
aemeredith has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
konsolebox has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
jetblack has joined #ruby
quimrstorres has joined #ruby
_5kg has joined #ruby
tunaCanBruh has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
jusmyth has joined #ruby
banister has joined #ruby
jenrzzz has joined #ruby
shime_ has quit [Read error: Connection reset by peer]
shime has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
jetblack has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
tunaCanBruh has quit [Ping timeout: 255 seconds]
trufflesnout has quit [Remote host closed the connection]
shime has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
EbonyDarkness has joined #ruby
<EbonyDarkness>
hey gays
<EbonyDarkness>
omfs mi bf just sang me crucifixion in space bi (Geddit im bi) marylin monson
<EbonyDarkness>
dat song iz so touching
CustosL1men has quit [Quit: Leaving]
jerematic has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
AlSquire has joined #ruby
astrobunny has joined #ruby
<EbonyDarkness>
omg
blizzy has joined #ruby
<EbonyDarkness>
hi bitch
<wasamasa>
apeiros_: do it
<EbonyDarkness>
do what
* wasamasa
waits for the sound of the kickban hammer
juanpablo___ has joined #ruby
Takle has joined #ruby
behrz has joined #ruby
ta_ has joined #ruby
<EbonyDarkness>
STFU i didnt do anyfing yet u prep
ta has quit [Remote host closed the connection]
klaas_ is now known as klaas
astrobunny has quit [Ping timeout: 240 seconds]
ypasmk has joined #ruby
flipdip is now known as MrSparkle
EbonyDarkness was kicked from #ruby by apeiros_ [good bye]
behrz has quit [Client Quit]
<arup_r>
a = []; a.each_with_index() { |item, index| # code } Here for each iteration index will be incremented by one.. Is there anything to increment by any number say N.. Suppose `Range#step`
behrz has joined #ruby
behrz has quit [Remote host closed the connection]
<arup_r>
just the way works,,
<jhass>
Rage#step#with_index
<arup_r>
No with Array.. I want
<jhass>
*range
<jhass>
er, yes, with_object there is I think?
juanpablo___ has quit [Ping timeout: 264 seconds]
<arup_r>
Yes it is there...
<arup_r>
Enumerable#with_object
<arup_r>
But how does it help ?
Takle has quit [Ping timeout: 264 seconds]
<jhass>
>> a = [1,2,3,4,5] 0.upto(a.size-1).step(2).with_object(a) do |i| print a[i]; end
BurningChrome__ has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
xm has joined #ruby
aryaching has joined #ruby
Aova has quit [Read error: Connection reset by peer]
caveat- has quit [Ping timeout: 245 seconds]
banister has quit [Ping timeout: 245 seconds]
shum has joined #ruby
lamasnik has quit [Quit: WeeChat 0.4.3]
fabrice31 has joined #ruby
Spami has joined #ruby
Aova has joined #ruby
Aova has joined #ruby
Aova has quit [Changing host]
TinkerTyper has joined #ruby
caveat- has joined #ruby
quimrstorres has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
fabrice31 has quit [Ping timeout: 240 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__chris has quit [Ping timeout: 250 seconds]
quimrstorres has joined #ruby
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
agrinb has joined #ruby
fantazo has quit [Quit: Verlassend]
psy_ has quit [Quit: Leaving]
psy_ has joined #ruby
einarj has joined #ruby
knut has joined #ruby
reinaldob has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
agrinb has quit [Ping timeout: 245 seconds]
nolic has joined #ruby
caveat- has quit [Ping timeout: 245 seconds]
shum has joined #ruby
zwer_z is now known as zwer
ych4k3r has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
lukeholder has joined #ruby
zachrab has joined #ruby
<lukeholder>
why do you need self in assignments: self.first_name = "John"
pika_pika has joined #ruby
tiwillia has quit [Ping timeout: 244 seconds]
DEA7TH has joined #ruby
reinaldob has quit [Ping timeout: 240 seconds]
<apeiros_>
lukeholder: because otherwise you'd just assign to a local variable
Takle has joined #ruby
caveat- has joined #ruby
sameerynho has quit [Ping timeout: 245 seconds]
Cork has joined #ruby
lxsameer_ has joined #ruby
<lukeholder>
@apeiros_ oh i didn't think you could use a local variable with the same name as a resolvable method=
<lukeholder>
but thats why
<lukeholder>
ok
<lukeholder>
thanks
<apeiros_>
lvars always take precedence over methods
<apeiros_>
otherwise nothing would work. think of method_missing.
<apeiros_>
or it'd work *very* inefficiently because you'd do lvars via method calls.
* apeiros_
shudders
tiwillia has joined #ruby
<knut>
hey guys, I'm having problems with SerialPort. I'm sending and receiving binary data, but at some point it just stops working. There are no error messages, nor is the port closed (which would result in an error) but it stops sending the right command or sending at all. Any sugestions how I can further investigate to find the error?
<knut>
it should receive always 8 bytes, but before it stops working just 7 or less bytes are read. but even is there a problem the next iteration should work again
ypasmk has quit [Quit: ypasmk]
<knut>
it can't be a problem with the hardware, because after restarting the ruby console it will work again
dspangenberg has joined #ruby
gr_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
reinaldob has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
<ferr>
Just to clarify, shevy, should I use a simple loop ar some external gems?
<shevy>
ferr dunno. gems are also ruby code
Mon_Ouie has quit [Ping timeout: 245 seconds]
<shevy>
depends on how many features you want
<shevy>
in the simplest case you can do something like this:
{xenomorph} is now known as xenomorph
scripore has quit [Quit: This computer has gone to sleep]
caveat- has joined #ruby
<shevy>
loop { user_input = $stdin.gets.chomp; case user_input; when 'q'; exit; else; puts 'you typed '+user_input; end }
* arup_r
waiting to see : what shevy: is going to give bellow something:
<shevy>
then you can intercept signals like ctrl-c Signal.trap('SIGINT') { exit }
<shevy>
and so on and so forth. Readline.readline() is also available if you do require 'readline', so you get history and cursor scrollback
cossima has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
cossima has quit [Remote host closed the connection]
ta has joined #ruby
adriancb has joined #ruby
Sawbones has joined #ruby
reinaldob has joined #ruby
adriancb has quit [Remote host closed the connection]
<ferr>
Ok, I got it. What about compilation? How would you recommend me to export the console based application? it includes external libraries as whois, net/dns, etc.
mjhoy has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
jottr has quit [Ping timeout: 244 seconds]
regnartim_ has quit [Quit: Leaving]
leafybasil has quit [Remote host closed the connection]
ta has quit [Ping timeout: 252 seconds]
bMalum has joined #ruby
Megtastique has joined #ruby
<shevy>
I do not get your question
<shevy>
it is ruby code
<shevy>
so everything that is doable in pure ruby is doable
Sawbones has quit [Ping timeout: 245 seconds]
reinaldob has quit [Ping timeout: 240 seconds]
<shevy>
you can call external code at all times through system() and `` and popen etc...
<shevy>
you can re-load ad-hoc at runtime through load()
bronson has quit [Remote host closed the connection]
Kn|t3 has joined #ruby
ByronJoh1son is now known as ByronJohnson
ta has joined #ruby
jusmyth has quit [Quit: Leaving.]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
sent1nel has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
daynaskully has quit [Quit: quit]
timanema has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 255 seconds]
adriancb has joined #ruby
Aova has joined #ruby
Ankhers`` has joined #ruby
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
rbennacer has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
TrOuBLeStArTeR has joined #ruby
Azure has joined #ruby
rbennacer has joined #ruby
timanema has joined #ruby
yfeldblum has joined #ruby
tus has joined #ruby
sheeny has joined #ruby
<sheeny>
Hi, does anyone know a way of determining if a colour is "light" or "dark" ?
rbennacer has quit [Remote host closed the connection]
Drakevr_ is now known as drakevr
drakevr has quit [Changing host]
drakevr has joined #ruby
athan has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
caveat- has joined #ruby
<Gmind>
would LLVM improve significant speed over CRuby ?
rbennacer has joined #ruby
ferr has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
regnartim has quit [Quit: Leaving]
Xeago has joined #ruby
scripore has joined #ruby
<centrx>
Gmind, Is there LLVM for Ruby?
bMalum has quit [Quit: bMalum]
<centrx>
Gmind, You may want to look at JRuby for speed
cpruitt has quit [Ping timeout: 250 seconds]
tiwillia has quit [Ping timeout: 264 seconds]
cpruitt has joined #ruby
centrx has quit [Quit: In the beginning there was nothing, which exploded. - Terry Pratchett]
sheeny has quit [Quit: Page closed]
<IceDragon>
centrx, Gmind: Rubinius, if I'm right uses LLVM
tyfighter has quit [Quit: tyfighter]
<IceDragon>
So you may look into that if you want something faster than CRuby
m8 has quit [Quit: Sto andando via]
anaeem1 has joined #ruby
Xeago has quit [Remote host closed the connection]
konsolebox has joined #ruby
Channel6 has joined #ruby
tiwillia has joined #ruby
kenneth has joined #ruby
<brixen>
Rubinius uses LLVM to generate machine code from the JIT
<brixen>
whether the JIT can help your Ruby code depends on quite a few things
Gmind has quit [Quit: Leaving.]
<brixen>
like how often the Ruby code runs and how stable the type profile if the code is
<brixen>
if it runs a lot and the types are stable, the Rubinius JIT will aggressively inline methods
<brixen>
if the types are changing a lot, the JIT will eventually ignore the code
kenneth has quit [Client Quit]
Ankhers`` has quit [Ping timeout: 250 seconds]
Sid05 has quit [Quit: Sid05]
fabrice31 has joined #ruby
Patabugen has quit [Ping timeout: 265 seconds]
Gmind has joined #ruby
borel has quit [Remote host closed the connection]
adamjleonard has joined #ruby
rbennacer has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
rbennacer has joined #ruby
<Gmind>
brixen, totally agreed. not every cases, llvm improve the speed.
tyfighter has joined #ruby
adriancb has joined #ruby
king313 has joined #ruby
king313 has joined #ruby
<brixen>
also, we're starting to do a lot more work on the JIT
cpruitt has quit [Quit: cpruitt]
fabrice31 has quit [Ping timeout: 255 seconds]
<brixen>
in Rubinius 3.0, Tuple (basis for Array & Hash) and ByteArray (basis for String) are no longer going to be OO objects
<brixen>
they will be more like the structures in a functional language
<brixen>
so the JIT will be able to do a lot more to optimize them
posixpascal has joined #ruby
<chrisseaton>
brixen: is there a goal to rewrite the JIT in Ruby? Seems like the missing link at the moment
<brixen>
why is it a missing link?
SolarSailor has joined #ruby
<brixen>
or perhaps, what is missing?
<chrisseaton>
If having as much as possible written in Ruby is a goal by itself (separate to performance and other things) wouldn't it be nice to have the JIT written in Ruby, like the parser, AST, etc
adriancb has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
<brixen>
Rubinius 3.0 isn't written in Ruby anyway
Zai00 has quit [Quit: Zai00]
fesotovi has joined #ruby
<chrisseaton>
I mean 'do you have any plans to rewrite the language in a language other than C++, such as conventional Ruby, or some Rubinius 3.0 version of the Ruby language'?
<chrisseaton>
'rewrite the JIT' I mean
jottr has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
<brixen>
I have plans to make the JIT many times more effective :)
jgt has joined #ruby
<jgt>
hey everyone
rbennacer has quit [Remote host closed the connection]
<jgt>
how can I nuke dos newlines in a string?
pdoherty has joined #ruby
rbennacer has joined #ruby
<jgt>
I opened up a CSV in vim and I noticed a few ^M dotted around the place
<jgt>
I’m quite sure this is a newline
anaeem1_ has quit [Ping timeout: 240 seconds]
<jgt>
can I do something like str.delete("\r")? Or do I force an encoding?
posixpascal has quit [Read error: Connection reset by peer]
Stoge88 has quit [Client Quit]
Aova has quit [Read error: Connection reset by peer]
posixpascal has joined #ruby
tunaCanBruh has joined #ruby
ta has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 264 seconds]
Gmind has quit [Quit: Leaving.]
regnartim has joined #ruby
razieliyo has quit [Ping timeout: 255 seconds]
ForkingPaths has joined #ruby
ForkingPaths has quit [Max SendQ exceeded]
tyfighter has quit [Quit: tyfighter]
parduse is now known as Guest2034
Guest2034 has quit [Ping timeout: 246 seconds]
Aova has joined #ruby
pardusf has joined #ruby
poikon has quit []
tunaCanBruh has quit [Ping timeout: 264 seconds]
iamninja has quit [Remote host closed the connection]
iamninja has joined #ruby
dimaursu16 has quit [Ping timeout: 264 seconds]
dimaursu16 has joined #ruby
nfk has joined #ruby
ta has joined #ruby
king313 has quit [Quit: .]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
poikon has joined #ruby
roshanavand has quit [Ping timeout: 265 seconds]
mic has joined #ruby
<shevy>
anyone knows if there is a simple way to reshuffle CVS tables in ruby?
<shevy>
so that |1|2|3|4| might become |4|2|1|3|
plashchynski has quit [Quit: plashchynski]
jottr has quit [Ping timeout: 246 seconds]
ta has quit [Ping timeout: 252 seconds]
fsotovi has joined #ruby
jlast has joined #ruby
fsotovi has left #ruby [#ruby]
slyv has joined #ruby
quimrstorres has joined #ruby
<mic>
I keep getting an unidentified method "stylesheet_path" while trying to use sinatra with sprockets and sprocket_helper. Can someone give me a hand http://bit.ly/1ypAkLX
juanpablo___ has joined #ruby
claw_ has joined #ruby
avahey has joined #ruby
swgillespie has joined #ruby
claw has quit [Ping timeout: 255 seconds]
vdamewood has quit [Quit: Computer has gone to sleep.]
caveat- has quit [Ping timeout: 245 seconds]
fcanela has joined #ruby
<apeiros_>
shevy: read with csv gem, use Array#shuffle, write back with csv gem
juanpablo___ has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Ping timeout: 244 seconds]
Sawbones has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shredding has joined #ruby
caveat- has joined #ruby
ta has joined #ruby
fesotovi has joined #ruby
anaeem1 has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
amclain has joined #ruby
Sawbones has quit [Ping timeout: 264 seconds]
<mic>
I keep getting an unidentified method "stylesheet_path" while trying to use sinatra with sprockets and sprocket_helper. Can someone give me a hand http://bit.ly/1ypAkLX
<mic>
Come on guys, any takers?
Sakens has joined #ruby
kenneth has joined #ruby
<Sakens>
Hello
<Sakens>
Using Parallels, how can I return some value to "parent"?
<Sakens>
Parallel*
<DEA7TH>
I have def foo(arg = 0); arg; end and def bar(arg = 0); foo(arg); end. Is there a way to avoid this duplication (arg = 0 in bar)? I want to call foo with no arguments by default.
<DEA7TH>
The purpose of the default argument in bar is to be the same as foo's default argument - code repetition. I'm looking for a more DRY way
regnartim has quit [Quit: Leaving]
<apeiros_>
DEA7TH: if you don't need the args in the outer method, use foo(*args); bar(*args); end
kenneth has joined #ruby
drakevr is now known as Drakevr
snath has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
ypasmk has joined #ruby
<mic>
I keep getting an unidentified method "stylesheet_path" while trying to use sinatra with sprockets and sprocket_helper. Can someone give me a hand http://bit.ly/1ypAkLX I am trying to find the correct way to use sprockets with sinatra but can't seem to get it to work
plashchynski has joined #ruby
tiwillia has quit [Ping timeout: 245 seconds]
zzzbra has joined #ruby
regnartim has joined #ruby
<Sakens>
anybody uses Parallel gem?
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
athan has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
tiwillia has joined #ruby
cphrmky has joined #ruby
Cache_Money has joined #ruby
regnartim has quit [Quit: Leaving]
regnartim has joined #ruby
OrbitalKitten has joined #ruby
ta has joined #ruby
photographer has quit [Ping timeout: 264 seconds]
neoxquick has quit [Ping timeout: 255 seconds]
regnartim has quit [Client Quit]
jonr22 has joined #ruby
FooMunki_ has quit [Quit: FooMunki_]
kaspertidemann has joined #ruby
Megtastique has quit []
tyfighter has joined #ruby
Sid05 has joined #ruby
dimaursu16 has quit [Quit: Leaving]
caveat- has quit [Ping timeout: 245 seconds]
dimon_ has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
Pupeno_ has quit [Remote host closed the connection]
gizmore has joined #ruby
gizmore has quit [Changing host]
gizmore has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
ixti has joined #ruby
adriancb has joined #ruby
AndChat-570836 has quit [Ping timeout: 255 seconds]
Sid05 has quit [Client Quit]
<mic>
I keep getting an unidentified method "stylesheet_path" while trying to use sinatra with sprockets and sprocket_helper. Can someone give me a hand http://bit.ly/1ypAkLX I am trying to find the correct way to use sprockets with sinatra but can't seem to get it to work
adriancb has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving...]
quimrstorres has joined #ruby
neoxquick has joined #ruby
rbennacer has joined #ruby
Kn|t3 has joined #ruby
ta has quit [Ping timeout: 252 seconds]
Sid05 has joined #ruby
mobiGeek has joined #ruby
JohnBat26 has joined #ruby
maximski has quit [Read error: Connection reset by peer]
maximski_ has joined #ruby
maximski_ has quit [Read error: Connection reset by peer]
maximski has joined #ruby
caveat- has joined #ruby
bronson has joined #ruby
Sawbones has joined #ruby
yfeldblum has joined #ruby
kaspertidemann has quit []
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sid05 has quit [Client Quit]
vdamewood has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Kn|t3 has quit [Quit: Kn|t3]
Sid05 has joined #ruby
shredding has quit [Quit: shredding]
terlar has quit [Ping timeout: 245 seconds]
goshdarnyou has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
athan has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
nobitanobi has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
wookiehangover has quit [Ping timeout: 272 seconds]
Sawbones has quit [Remote host closed the connection]
Edes_ is now known as Edes
neersighted has quit [Remote host closed the connection]
Sid05 has quit [Client Quit]
x77686d has joined #ruby
adamjleonard has quit [Quit: Leaving...]
Ankhers`` has joined #ruby
swgillespie has joined #ruby
Ankhers`` has quit [Remote host closed the connection]
Aova has joined #ruby
Aova has joined #ruby
Aova has quit [Changing host]
caveat- has quit [Ping timeout: 245 seconds]
neersighted has joined #ruby
rbennacer has joined #ruby
wookiehangover has joined #ruby
cphrmky has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
regnartim has joined #ruby
ponga has joined #ruby
anaeem1_ has joined #ruby
Joufflu has joined #ruby
Sakens has joined #ruby
Joufflu__ has quit [Ping timeout: 245 seconds]
mic has joined #ruby
<mic>
I keep getting an unidentified method "stylesheet_path" while trying to use sinatra with sprockets and sprocket_helper. Can someone give me a hand http://bit.ly/1ypAkLX
quimrstorres has quit [Remote host closed the connection]
Aova has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
zachrab has quit [Remote host closed the connection]
quimrstorres has joined #ruby
bluOxigen has joined #ruby
zachrab has joined #ruby
agit0 has joined #ruby
paradoja has joined #ruby
paradoja has left #ruby [#ruby]
fantazo has quit [Quit: Verlassend]
blackmesa has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
caveat- has quit [Ping timeout: 245 seconds]
sankaber has joined #ruby
josephndenton has joined #ruby
mynameis has quit [Quit: Leaving]
DadoCe has quit [Remote host closed the connection]
jenrzzz has joined #ruby
athan has quit [Ping timeout: 250 seconds]
Yzguy has joined #ruby
zachrab has quit [Ping timeout: 244 seconds]
athan has joined #ruby
Yzguy has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
tyfighter has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
maximski has quit []
caveat- has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
kaspertidemann has joined #ruby
ta has joined #ruby
Pupeno_ has joined #ruby
TrOuBleStArTeR has quit [Quit: Going offline, see ya! (www.adiirc.com)]
dc_ has joined #ruby
Pupeno has quit [Ping timeout: 252 seconds]
hgl has quit [Ping timeout: 250 seconds]
sigurding has quit [Quit: sigurding]
fesotovi has quit [Read error: Connection reset by peer]
sent1nel has joined #ruby
quimrstorres has joined #ruby
hgl has joined #ruby
mic has quit []
fesotovi has joined #ruby
_5kg has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 245 seconds]
hmsimha has joined #ruby
sent1nel has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Ping timeout: 256 seconds]
Sid05 has quit [Quit: Sid05]
Pupeno has joined #ruby
fesotovi has quit [Quit: fesotovi]
lidaaa has joined #ruby
Sid05 has joined #ruby
Pupeno_ has quit [Ping timeout: 265 seconds]
lolmaus has joined #ruby
lemur has joined #ruby
Fezzler has quit [Quit: Leaving]
tier has joined #ruby
nfk has quit [Quit: yawn]
mrmargolis has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
Sakens has quit [Ping timeout: 245 seconds]
symbol_ has joined #ruby
russt has joined #ruby
yfeldblum has joined #ruby
Sakens has joined #ruby
cpruitt has joined #ruby
whomp has quit [Quit: leaving]
centrx has quit [Quit: In the beginning there was nothing, which exploded. - Terry Pratchett]
Adran has quit [Remote host closed the connection]
symbol_ has quit [Quit: WeeChat 1.1]
Sawbones has joined #ruby
symbol_ has joined #ruby
aryaching has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has quit [Remote host closed the connection]
quimrstorres has joined #ruby
Sawbones has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
nb_bez___ has quit [Read error: No route to host]
<dain>
I'm trying to do this thing where I have data from my database displayed on the page. In a list. Let's call it shows. I display that in the page, then use capybara to find one of the show links by name or ID and click it. Easy enough. But my problem is those shows also have episodes in my database, but for the life of me I can't get the test database to stay in sync with the main dev database. And with how Capybara
<dain>
actually navigates the page im writing it like 'click_link(episode.title)' and it expects those entities to exist from the dev database (or I do rather). I'm not sure how do we mitigate this issue in the capybara world?
nb_bez___ has joined #ruby
ta has quit [Ping timeout: 250 seconds]
multi_io_ has joined #ruby
<jhass>
Your tests shouldn't depend on your dev database at all
vaneda has joined #ruby
<jhass>
they should prepare the test database fully
<dain>
Okay, so the test database should copy the dev DB?
diegoviola has joined #ruby
<jhass>
either fully on test boot up by emptying it and loading a seed file
<jhass>
no
<jhass>
either provide a seed file
<dain>
Because Capybara looks on page for things. So if I have some data in Dev Capybara will look for it on the page, but it isn't there its only in a test. It sort of invalidates the purpose of using capybara I feel like
<dain>
If I have to build up an entity that doesn't exist really
<dain>
Idk, maybe Im just not looking at it right
thatslifeson has joined #ruby
<jhass>
or ensure the preconditions for the test are met by inserting the right data right before the individual test
<jhass>
or a mixture of those approaches
Hobogrammer has joined #ruby
marr has joined #ruby
Sawbones has joined #ruby
fantazo has joined #ruby
<jhass>
"dev capybara" ?
multi_io has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
<Nilium>
Capybara's are pretty swell developers.
<dain>
My first time using it.. I think it's ok to not know everything Nilium ;)
jottr has quit [Ping timeout: 245 seconds]
<jhass>
let's take out capybara here, I think it's actually not relevant for your problem here
<Nilium>
Capybaras.
<Nilium>
Fuck English.
<jhass>
your issue is that your tests don't setup your application into a consistent state
<Nilium>
Also I have no idea what capybara is beyond an adorable animal.
Aova has quit [Read error: Connection reset by peer]
<dain>
Right jhass. agreed.
<Nilium>
Looks boring.
<dain>
I think I have an idea of this now
<dain>
Thanks
Xeago has quit [Remote host closed the connection]
<jhass>
dain: look into things like fixture_builder for the "seed on bootup" approach and things like factory_girl / fabricate for the on demand approach
dopie has joined #ruby
<jhass>
and as said, a mixture of those approaches is not uncommon
<dain>
Ah, okay perfect. I will take a look at those
bronson has quit [Ping timeout: 265 seconds]
<jhass>
er, not fabricat, what was the name of that thing again
symbol_ has quit [Quit: WeeChat 1.1]
pika_pika has quit [Ping timeout: 245 seconds]
<jhass>
fabrication it was
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
az7ar_away has quit [Read error: Connection reset by peer]
Aova has joined #ruby
_5kg has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jack_rabbit has joined #ruby
<dain>
Random aside jhass, but tangentially related: how do you feel about the concept of outside-in testing like Thoughtbot says they do? So they would write 'feature' and 'scenario' tests first in the form of user stories. Do you go that route?
<dain>
Or do you just write some capybara tests to sanity check things after the code is written
<jhass>
I didn't really develop a workflow for myself yet
Pupeno_ has joined #ruby
<jhass>
tbh. I usually spike the code when starting a new project and add tests to it once it's in a shape I like
ponga has quit [Quit: Leaving...]
<jhass>
then for adding more stuff and bug fixing I switch to TDD/BDD approaches, usually
<jhass>
but I'm not stringent enough I guess
DaniG2k has joined #ruby
diegoviola has quit [Remote host closed the connection]
<dain>
I'm the same way right now. It feels like a sort of fortification strategy for me, writing tests. I am definitely in the camp that writing tests first all the time isn't necessary
<dain>
Perhaps can help with brainstorming though
DadoCe has joined #ruby
<jhass>
I tend to write tests first if I want to design a library by defining my wanted API first for example
davidhq has joined #ruby
Pupeno has quit [Ping timeout: 265 seconds]
<jhass>
so, yeah
<dain>
That's actually a great place to write tests first
neoxquick has quit [Ping timeout: 255 seconds]
<dain>
anything you want to refine an API for
<dain>
internal or external
aemeredith has quit [Remote host closed the connection]
diegoviola has joined #ruby
aemeredith has joined #ruby
aemeredith has quit [Read error: Connection reset by peer]
Jake232 has joined #ruby
Jake232 has quit [Max SendQ exceeded]
aemeredith has joined #ruby
ZoanthusR has joined #ruby
jottr has joined #ruby
bluehavana has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
ypasmk has quit [Quit: ypasmk]
LudicrousMango has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
aemeredith has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
nolic has quit [Remote host closed the connection]
ptrrr has joined #ruby
m8 has joined #ruby
ta has joined #ruby
sigurding has joined #ruby
tunaCanBruh has joined #ruby
quimrstorres has joined #ruby
athan has quit [Ping timeout: 245 seconds]
marienz has quit [Remote host closed the connection]
ahegyi has quit [Remote host closed the connection]
dc_ has joined #ruby
kevr has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
<dain>
Wow, most of my issues were due to the fact that when you tell capybara to 'visit' a url or path, it automatically will then expect all test database entities to be finalized. I was visiting the URL then creating a bunch of entities and then checking for existance. All I had to do was switch the order there and create them before visiting. Clearly I need a setup/teardown mechanism as you suggested that would have s
<dain>
olved that from step 1
ta has quit [Ping timeout: 252 seconds]
quimrstorres has quit [Ping timeout: 255 seconds]
tunaCanBruh has quit [Ping timeout: 255 seconds]
<jhass>
well, it drives a browser of some sort, it doesn't magically detect db changes and figures out whether it's okay/wanted to reload the page for sure ;)
anaeem1 has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
<jhass>
shevy: "now" is kinda vague. Note that I don't code as a job or so atm
<slash_nick>
Script in gist loops through images provided to Expedia by hotels... the script loops through some 13000-15000 images with captions including the word "aerial"
Jackneill has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
reinaldob has quit [Ping timeout: 245 seconds]
<slash_nick>
oh cool, 569 or so has a pic of the aurora borealis :)
<shevy>
jhass well I don't either, last week we had to use R ... I wished I could have used ruby instead, but so many statistical tools for bioinformatics are written in R, and the plots are cute
<shevy>
but R as a language annoys me
ta has quit [Ping timeout: 255 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
they love assignment through x <- c("foo","bar","bla")
<shevy>
feels like the stabby proc just the other way around
jetblack has quit [Ping timeout: 256 seconds]
last_staff has quit [Quit: last_staff]
<jhass>
slash_nick: bored? :P
Pupeno has joined #ruby
wldcordeiro has quit [Ping timeout: 272 seconds]
juanpablo___ has joined #ruby
<slash_nick>
jhass: hahaha... lately i've been doing a lot of toying around with JS in my spare time... trying to make neat, pointless things... e.g. http://ea.rthbound.com/riot-timer-fun/ ... you could say i'm a bit bored lol
jetblack has joined #ruby
joshbamboo2 has quit [Read error: Connection reset by peer]
<jhass>
learn crystal instead! :P
JyZyXEL has left #ruby [#ruby]
<slash_nick>
jhass: haven't heard of it
mrmargolis has quit [Remote host closed the connection]
<jhass>
crystal-lang.org
<slash_nick>
ah, a ruby like dsl for c?
<jhass>
new shiny language that needs its standard library filled
Pupeno_ has quit [Ping timeout: 245 seconds]
<jhass>
more ruby inspired syntax
Pharaoh2 has joined #ruby
<jhass>
generates native code through llvm
<slash_nick>
alright... thanks jhass it's on my radar now
<jhass>
written in itself, so easy to hack
snath has quit [Ping timeout: 246 seconds]
<slash_nick>
in a couple of weeks when I wind down my riot fun I'm interested in trying that new react-native.. but I'll be playing with crystal before then
cpruitt has quit [Quit: cpruitt]
regnartim has quit [Ping timeout: 245 seconds]
juanpablo___ has quit [Ping timeout: 246 seconds]
marcdel has quit []
gizmore has joined #ruby
aemeredith has joined #ruby
marcdel has joined #ruby
anaeem1 has quit [Remote host closed the connection]
alex88 has quit [Remote host closed the connection]
aemeredith has quit [Read error: Connection reset by peer]
Azure has quit [Read error: Connection reset by peer]
Pupeno has quit [Read error: Connection reset by peer]
<timanema>
shevy: what are you trying to do with the line oo[] { 'foo' }
<shevy>
timanema I try to pass a block
<shevy>
to []
<timanema>
shevy: should you be doing Foo.new {'foo'} thouhg?
<shevy>
Foo.new works fine
Aova has quit [Read error: Connection reset by peer]
<timanema>
shevy: okay but in your code you are yielding to a block in initialize
riotjones has quit [Ping timeout: 264 seconds]
<djapo>
timanema: i normally try bundle install --path ../bundle
robbyoconnor has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 264 seconds]
<shevy>
nah timanema it errors
<djapo>
but i accidently did just bundle and installed a bunch of shtuff
<shevy>
the parser does not understand it; I am trying to find out why
<shevy>
it's a set back for me because I thought I could use [] rather than .new but they are not equivalent from the parser alone :(
bronson has joined #ruby
<timanema>
okay shevy gimme a few to try it all out on my system
sandshark_ has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timanema>
djapo: try echo $BUNDLE_PATH
OrbitalKitten has joined #ruby
Meeh has quit [Read error: Connection reset by peer]
<Radar>
djapo: `bundle env` should tell you.
Aova has joined #ruby
Meeh has joined #ruby
<djapo>
timanema: not set, well when i update ruby do all of my old gems not work with the new ruby? i have a .gem/ruby/ with diffrent versions folders there and every time i update it feels like i have to install all my old gems
<djapo>
Radar: thaanks
dspangen1erg has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 265 seconds]
russt has quit [Quit: russt]
maletor has quit [Quit: Computer has gone to sleep.]
m8 has quit [Quit: Sto andando via]
zachrab has joined #ruby
nobitanobi has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 245 seconds]
ptrrr has quit [Quit: ptrrr]
kaspertidemann has quit []
sivam has quit [Quit: Leaving.]
astrobunny has joined #ruby
hiyosi has joined #ruby
tkuchiki has joined #ruby
quimrstorres has joined #ruby
nolic has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
__chris has joined #ruby
Zai00 has quit [Quit: Zai00]
fijimunkii has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
<Nowaker>
x = Blah.first; val = x ? x.foo : 'default' <- any 'cleaner' approach for this?
<Nowaker>
In Rubish Groovy it'd be val = x?.foo ||= 'default' ;)
quimrstorres has quit [Ping timeout: 264 seconds]
<crome_>
how about you check the size of the array first?
<crome_>
keeps it nice and obvious
<Nowaker>
crome_: show me the exact code
tunaCanBruh has quit [Ping timeout: 245 seconds]
timanema has quit [Ping timeout: 250 seconds]
<banister>
Nowaker: i dont think that groovy code is equivalent
<banister>
Nowaker what if x.foo returns nil?
gr33n7007h has quit [Quit: Leaving]
jottr_ has joined #ruby
<crome_>
val = 'default'; val = x.first.foo if x.any?
<crome_>
after a second thought
<crome_>
I mean
<crome_>
Blah
shum has quit [Quit: WeeChat 1.1.1]
AlSquire has quit [Quit: This computer has gone to sleep]
shum has joined #ruby
<Nowaker>
banister:
bjonnh has joined #ruby
<Nowaker>
banister: soft of equivalent. (not 100%)
<Nowaker>
sort*
<Nowaker>
I know that in my case it just won't return nil
<banister>
Nowaker well if you want something equivalent to that groovy code and you're using rails, you can do: val = x.try(:foo) || 'default'
bjonnh has quit [Quit: WeeChat 1.0.1]
shum has quit [Client Quit]
<Nowaker>
gotcha, it's been a long time since I last did rails coding
<Nowaker>
so yeah, try is gonna be the best bet, thanks banister
shum has joined #ruby
Musashi007 has joined #ruby
Takle has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<crome_>
uh oh, #try is horrible
Sawbones has joined #ruby
jgt has quit [Ping timeout: 245 seconds]
gr33n7007h has joined #ruby
caveat- has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
Pharaoh2_ is now known as Pharaoh2
apeiros_ has joined #ruby
Sawbones has quit [Ping timeout: 256 seconds]
kalusn has quit [Remote host closed the connection]
caveat- has joined #ruby
Channel6 has joined #ruby
lemur has quit [Remote host closed the connection]