<n_blownapart>
^^ load and require always cause errors for me. the sample problem uses require for both lines 1 and 2.
machuga is now known as machuga|away
Beoran_ has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Ping timeout: 245 seconds]
yashshah has quit [Ping timeout: 256 seconds]
yashshah has joined #ruby
JimmyNeutron has joined #ruby
burlyscudd has joined #ruby
Hien has joined #ruby
wroathe has quit [Ping timeout: 245 seconds]
cads has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
sarkis has joined #ruby
mduvall has quit [Quit: mduvall]
x1337807x has joined #ruby
burlyscudd has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
simar77 has joined #ruby
<simar77>
Hii hw r uuu dear
seitensei has joined #ruby
<simar77>
U busyy ruby
neurosaurus has joined #ruby
r0bby is now known as robbyoconnor
ntus1017 has quit [Remote host closed the connection]
<simar77>
Reply kro
freerobby has quit [Ping timeout: 252 seconds]
sarkis has quit [Ping timeout: 245 seconds]
cheese1756 has quit [Excess Flood]
neurosaurus has quit [Client Quit]
simar77 has left #ruby [#ruby]
kadoo has joined #ruby
osvico has quit []
cheese1756 has joined #ruby
bionhart has quit [Remote host closed the connection]
jesly has quit [Ping timeout: 257 seconds]
bionhart has joined #ruby
kadoo has quit [Remote host closed the connection]
browndawg has joined #ruby
kofno has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
bigmac has joined #ruby
kadoo has joined #ruby
fandikurnia01 has joined #ruby
fandikurnia01 has quit [Read error: Connection reset by peer]
pipework has joined #ruby
n_blownapart has quit [Remote host closed the connection]
n_blownapart has joined #ruby
daniel_hinojosa has quit [Read error: Operation timed out]
bionhart has quit [Remote host closed the connection]
bionhart has joined #ruby
<n_blownapart>
http://pastie.org/8047694 Hi anyone know how to get microtest to load into microcardtest. I can't get require 'microtest' to work. thanks
mduvall has joined #ruby
bionhart has quit [Read error: Connection reset by peer]
haxrbyte has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
haxrbyte has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
haxrbyte has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 252 seconds]
lewis has joined #ruby
lewis is now known as lewix
freeayu has joined #ruby
LarsSmit has quit [Read error: Connection reset by peer]
DomKM has quit [Quit: Leaving.]
GeissT_ has joined #ruby
LarsSmit has joined #ruby
freeayu__ has joined #ruby
kofno has joined #ruby
kofno has quit [Remote host closed the connection]
GeissT has quit [Ping timeout: 248 seconds]
wargasm has quit [Read error: Connection reset by peer]
freeayu has quit [Ping timeout: 256 seconds]
rodasc has joined #ruby
robert___ has joined #ruby
robert___ has quit [Changing host]
robert___ has joined #ruby
Dreamer3__ has joined #ruby
fuleo has joined #ruby
jinie- has joined #ruby
jhowarth_ has joined #ruby
KarlHung1s has joined #ruby
sixtenei1hty has joined #ruby
weeb1e has joined #ruby
jhowarth has quit [Ping timeout: 264 seconds]
Dreamer3 has quit [Ping timeout: 264 seconds]
jinie_ has quit [Ping timeout: 264 seconds]
supergiantrobot_ has quit [Ping timeout: 264 seconds]
sixteneighty has quit [Ping timeout: 264 seconds]
weeb1e_ has quit [Read error: Connection reset by peer]
crodas has quit [Ping timeout: 264 seconds]
KarlHungus has quit [Read error: Connection reset by peer]
Quadlex has quit [Ping timeout: 264 seconds]
thelamest has quit [Ping timeout: 264 seconds]
Guest57220 has quit [Ping timeout: 264 seconds]
PaulePanter has quit [Ping timeout: 264 seconds]
darkc0met has quit [Ping timeout: 264 seconds]
nemesit|znc has quit [Ping timeout: 264 seconds]
PeteyT has quit [Ping timeout: 264 seconds]
fuleo2 has quit [Ping timeout: 264 seconds]
peterhellberg has quit [Ping timeout: 264 seconds]
foohey has quit [Ping timeout: 264 seconds]
asuka has quit [Ping timeout: 264 seconds]
andredieb has quit [Ping timeout: 264 seconds]
Dreamer3__ is now known as Dreamer3
peterhel1berg has joined #ruby
asuka_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
andredieb has joined #ruby
andredieb has quit [Changing host]
andredieb has joined #ruby
foohey has joined #ruby
nemesit|- has joined #ruby
LarsSmit has quit [Quit: Leaving.]
robert_ has quit [Ping timeout: 264 seconds]
Rennex has quit [Ping timeout: 264 seconds]
Coolhand has quit [Ping timeout: 264 seconds]
Weazy has quit [Ping timeout: 264 seconds]
chiel has quit [Ping timeout: 264 seconds]
thelamest has joined #ruby
LarsSmit has joined #ruby
chiel has joined #ruby
Rennex has joined #ruby
Weazy has joined #ruby
Guest57220 has joined #ruby
jhowarth_ is now known as jhowarth
PeteyT has joined #ruby
Quadlex has joined #ruby
Coolhand has joined #ruby
darkc0met has joined #ruby
Nisstyre has joined #ruby
burlyscudd has joined #ruby
hoyang has joined #ruby
ffio has joined #ruby
jenrzzz has quit [Quit: later!]
nari has joined #ruby
burlyscudd has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby
setient has quit [Remote host closed the connection]
mfridh has joined #ruby
skaby has joined #ruby
mfridh_ has joined #ruby
gr4yscale has joined #ruby
freerobby has joined #ruby
GeissT_ has quit [Quit: MillBroChat AdIRC User]
GeissT has joined #ruby
hoyang has quit [Ping timeout: 276 seconds]
jacobw has quit [Quit: WeeChat 0.4.0]
nomenkun has joined #ruby
leonidlm has joined #ruby
codezombie has joined #ruby
GeissT has quit [Read error: No route to host]
GeissT has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 264 seconds]
akashj87_ has joined #ruby
yashshah has joined #ruby
akashj87 has quit [Ping timeout: 256 seconds]
skasio has quit [Read error: Connection reset by peer]
mfridh has quit [Quit: Reconnecting]
mfridh_ is now known as mfridh
mfridh_ has joined #ruby
pyrac has quit [Quit: pyrac]
mfridh_ has quit [Client Quit]
akashj87_ has quit [Ping timeout: 256 seconds]
pootler__ has joined #ruby
pootler_1 has joined #ruby
DrCode has joined #ruby
snearch has joined #ruby
<amh345>
can anyone help with the gsub to replace a relative img path to an absolute?
kofno has joined #ruby
hogeo_ has joined #ruby
hoyang has joined #ruby
jastix has joined #ruby
hogeo has quit [Ping timeout: 245 seconds]
<havenwood>
amh345: what does the string look like?
<amh345>
havenwood: it looks like this. <img src="images/index_09.png" except image name and ext could be different.
mduvall has quit [Quit: mduvall]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
lyanchih has joined #ruby
Apane has quit [Ping timeout: 246 seconds]
<nanothief>
amh345: something like this may suffice: '<img src="test" alt="test">'.gsub(/(<img src=")([^"]*)("[^>]*>)/) { "#{$1}#{relative_to_absolute($2)}#{$3}" }
<nanothief>
you will have to write the relative_to_absolute method though, as that depends on the website setup
danslo has quit [Quit: danslo]
generalissimo has quit [Remote host closed the connection]
bionhart has quit [Remote host closed the connection]
<amh345>
i can't wrap my head around this regex stuff. it drives me nuts.
<amh345>
thank you nanothief
<amh345>
if i want to do background src as well as img source. do i have to gsub twice?
<havenwood>
amh345: could also do something like: your_string[/img src="(.+)"/,1] = File.expand_path($1)
kenmaz has quit [Ping timeout: 248 seconds]
codesoda has joined #ruby
<Mon_Ouie>
Doesn't work if you have another attribute after that or multiple images in string though (you need to make it non-greedy). Also, regexps will always fail if there happen to be escaped quotes in it.
BizarreCake has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
bionhart has joined #ruby
LarsSmit has quit [Quit: Leaving.]
Trynemjoel has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
Bhavesh_a_p has joined #ruby
xardas has joined #ruby
zmike123 has quit [Ping timeout: 252 seconds]
G________ has joined #ruby
browndawg has left #ruby [#ruby]
Bhavesh_a_p is now known as bhaveshkumar
bhaveshkumar is now known as Bhaveshkumar
timonv has quit [Remote host closed the connection]
sarkis has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
BizarreCake has joined #ruby
ananthakumaran has joined #ruby
kenmaz has joined #ruby
timonv has joined #ruby
kenmaz has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 248 seconds]
staafl has joined #ruby
pyrac has joined #ruby
Xeago has joined #ruby
zmike123 has joined #ruby
eighty4 has joined #ruby
leonidlm has quit [Read error: Connection reset by peer]
Rizzle has quit [Read error: Connection reset by peer]
ferr has quit [Ping timeout: 246 seconds]
devoldmx has quit [Remote host closed the connection]
Rizzle has joined #ruby
havenwood has quit [Remote host closed the connection]
amh345 has quit [Quit: amh345]
timonv has quit [Remote host closed the connection]
boblu has joined #ruby
tonini has joined #ruby
bionhart has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 245 seconds]
sayan has quit [Read error: Connection reset by peer]
bionhart has joined #ruby
bionhart has quit [Remote host closed the connection]
skaby has quit [Read error: Operation timed out]
anderson has quit [Read error: Operation timed out]
Bhaveshkumar is now known as Bhavesh_A_P
gnagno has joined #ruby
JohnBat26 has joined #ruby
im0b has quit [Ping timeout: 248 seconds]
MrZYX|off is now known as MrZYX
tonini has quit [Ping timeout: 248 seconds]
burlyscudd has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<nyuszika7h>
hi, I have a socket recv loop in a thread, and it hangs waiting forever on the socket, not realizing the other end has disconnected uncleanly. is there anything I can do about this?
icole has joined #ruby
icole has quit [Ping timeout: 248 seconds]
gnagno has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Ping timeout: 252 seconds]
<Xeago>
nyuszika7h: communicate the close
<Xeago>
or try putting io on it
<Xeago>
yoou'll get an error it is closed
<nyuszika7h>
how would I do that?
hawtin has joined #ruby
<Xeago>
#write I suppose
gnagno has joined #ruby
<Xeago>
don\t have experience with ruby's implementation
<nyuszika7h>
hmm
<Xeago>
but that is how it usually works
<nyuszika7h>
so I should send PINGs periodically to the ircd?
<Xeago>
IRC itself has a concept of PING
<nyuszika7h>
I know
<nyuszika7h>
my bot replies to PINGs
<Xeago>
it also has a disconnect acknowledgement
<nyuszika7h>
but the server closed the connection unexceptedly
<nyuszika7h>
the host was uncleanly shut down\
<Xeago>
then trying to ping would automatically notice the disconnect and gracefully resolve
<nyuszika7h>
ah
Shirakawasuna has quit [Ping timeout: 252 seconds]
m8 has joined #ruby
sepp2k has joined #ruby
qun has quit [Ping timeout: 252 seconds]
nightfly has quit [Ping timeout: 256 seconds]
nerdman has joined #ruby
browndawg has joined #ruby
danslo has joined #ruby
nightfly has joined #ruby
qun has joined #ruby
<gnagno>
hello all, is there a best practice for testing rails scripts with rspec? I mean, how can I for example test that my script prints a specific string?
kasper has quit [Remote host closed the connection]
mikewintermute has quit [Quit: mikewintermute]
GeissT has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
lusory has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
RORgasm has joined #ruby
freerobby has quit [Ping timeout: 268 seconds]
kofno has quit [Remote host closed the connection]
patteh has joined #ruby
RORgasm has quit [Ping timeout: 264 seconds]
amedeiros has joined #ruby
amedeiros has quit [Read error: Connection reset by peer]
stef_204 has joined #ruby
danguita has joined #ruby
mansi has joined #ruby
tkuchiki_ has joined #ruby
amedeiros has joined #ruby
amedeiros has quit [Read error: Connection reset by peer]
kayloos has joined #ruby
burlyscudd has joined #ruby
tkuchiki has quit [Ping timeout: 276 seconds]
staafl has quit [Ping timeout: 256 seconds]
mansi has quit [Ping timeout: 252 seconds]
tkuchiki_ has quit [Ping timeout: 268 seconds]
kofno has joined #ruby
amedeiros has joined #ruby
darkstar| has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
C0deMaver1ck has quit [Remote host closed the connection]
nightfly has joined #ruby
JaTochNietDan has quit [Ping timeout: 246 seconds]
amedeiros has quit [Ping timeout: 245 seconds]
darkstar| has left #ruby [#ruby]
darkstar| has joined #ruby
danguita has quit [Quit: leaving]
amedeiros has joined #ruby
darkc0met has quit [Ping timeout: 246 seconds]
gommo has quit [Remote host closed the connection]
kenmaz has joined #ruby
gommo has joined #ruby
yacks has joined #ruby
awc737 has quit [Ping timeout: 255 seconds]
amedeiros has quit [Ping timeout: 248 seconds]
amedeiros has joined #ruby
kenmaz has quit [Remote host closed the connection]
kenmaz has joined #ruby
freerobby has joined #ruby
timonv has joined #ruby
JohnBat26 has joined #ruby
Columcil1e has joined #ruby
gommo has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
niklasb has joined #ruby
vlad_starkov has joined #ruby
devoldmx has joined #ruby
amedeiros has quit [Ping timeout: 256 seconds]
Columcille has quit [Ping timeout: 256 seconds]
amedeiros has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
adkron has joined #ruby
yacks has quit [Quit: Leaving]
yacks has joined #ruby
LennyLinux has quit [Remote host closed the connection]
blaxter_ has joined #ruby
kayloos has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 240 seconds]
relix has quit [Ping timeout: 248 seconds]
amedeiros has joined #ruby
LennyLinux has joined #ruby
amedeiros has quit [Ping timeout: 268 seconds]
nfk has joined #ruby
jds has joined #ruby
sarkis has joined #ruby
lewix has quit [Remote host closed the connection]
blaxter_ has quit [Quit: foo]
lewix has joined #ruby
Columcil1e is now known as Columcille
relix has joined #ruby
jesly has quit [Ping timeout: 252 seconds]
sarkis has quit [Ping timeout: 240 seconds]
<Hanmac>
Xeago & apeiros i looked at ActiveSupport and they failed with implmenting IEC binary prefix, there where 4 issiue tickets but they closed them without implementing the correct handling ;P
hron84 has joined #ruby
<Hanmac>
"rails does fails" ;P
<apeiros>
Hanmac: well, should be simple enough to write a handler yourself
osvico has joined #ruby
<hron84>
Can anyone help me how autotest detects tests? I created a simple Test-Unit test and autotest does not recognizes it
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
blaxter_ has joined #ruby
F1skr has joined #ruby
BizarreCake has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 268 seconds]
icecandy has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
byprdct has quit [Ping timeout: 252 seconds]
icecandy has quit [Remote host closed the connection]
kenmaz has joined #ruby
icecandy has joined #ruby
Travis-42 has joined #ruby
ravster has joined #ruby
kenmaz has quit [Ping timeout: 245 seconds]
<Travis-42>
Can anyone point me to a nice way of converting an array like: [{:id => 5, :color => 'red', :size => 6}, etc.] to a multidimensional hash like {:colors => { 'red' => { :sizes => { 6 => 5 } } } } ?
F1skr has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
wallerdev has joined #ruby
eldariof has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
freeayu has quit [Remote host closed the connection]
kenmaz has joined #ruby
matled has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
kenmaz has quit [Remote host closed the connection]
Cyrus has quit [Quit: Cyrus.sleep()]
kenmaz has joined #ruby
ravster has quit [Ping timeout: 276 seconds]
freerobby has quit [Ping timeout: 248 seconds]
CreamTart has joined #ruby
altivec has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
apeiros has joined #ruby
LennyLinux has quit [Remote host closed the connection]
mansi has joined #ruby
lyanchih has quit [Quit: lyanchih]
nobitanobi has quit [Ping timeout: 252 seconds]
<apeiros>
Travis-42: .each/.map
<apeiros>
to a certain extent, you might also use group_by
<Travis-42>
ah, interesting Hanmac, I hadn't considered each_with_object
tatsuya_o has joined #ruby
kenmaz has quit [Remote host closed the connection]
burlyscudd has joined #ruby
kenmaz has joined #ruby
mansi has quit [Ping timeout: 268 seconds]
LennyLinux has joined #ruby
kenmaz has quit [Remote host closed the connection]
eka has joined #ruby
relix has joined #ruby
burlyscudd has quit [Ping timeout: 246 seconds]
F1skr has joined #ruby
wroathe has joined #ruby
icole has joined #ruby
kofno has quit [Remote host closed the connection]
banisterfiend has joined #ruby
jds has joined #ruby
Squarepy has quit [Remote host closed the connection]
timonv has joined #ruby
xardas_ has joined #ruby
brianherman has joined #ruby
Xeago_ has joined #ruby
kurtf has joined #ruby
mansi has joined #ruby
aryaLovesJoel has quit [Ping timeout: 248 seconds]
ffio_ has quit [Ping timeout: 246 seconds]
jdunck has joined #ruby
xardas has quit [Ping timeout: 268 seconds]
xardas_ is now known as xardas
jdunck has quit [Client Quit]
Xeago has quit [Ping timeout: 252 seconds]
Kabaka has quit [Remote host closed the connection]
jdunck has joined #ruby
Parsify has joined #ruby
icole has quit [Remote host closed the connection]
gnagno has quit [Ping timeout: 245 seconds]
Kabaka has joined #ruby
ausek has quit [Ping timeout: 240 seconds]
Abeepboop has joined #ruby
lyanchih has joined #ruby
<Abeepboop>
hi, I need help installing the "gosu" package, when I runs "gem install gosu" it gives me a bunch of errors about not being able to find the libraries (for example, it complains about pango when I do have pango at /usr/include/pango1.0)
Opettaja has joined #ruby
kil0byte has joined #ruby
cooldman224 has joined #ruby
jds has quit [Remote host closed the connection]
freerobby has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
<Hanmac>
Abeepboop: gosu is broken for ruby 2.0 and some revisions ... i telld them about but they did not fix that yet (its an error in mkmf itself)
<Abeepboop>
Hanmad: so I should use rvm to switch back to an earlier ruby? (Sorry I'm very new to ruby)
braoru has quit [Quit: Leaving]
<Hanmac>
yes this might work
timonv has quit [Remote host closed the connection]
<Abeepboop>
Hanmad: One more question, is it only the installation that's broken or it does not work at all with ruby 2.0?
* Hanmac
is switching to SFML ... it looks more cool than GOSU ... but i also need to write my own binding because rbSFML is broken for 2.0 too
jdunck has quit [Quit: Computer has gone to sleep.]
<banisterfiend>
Hanmac: gosu is pretty sweet, it's also maintained
<banisterfiend>
though maybe not yet for 2.0, but in general it's well maintained
<banisterfiend>
that's rare for a ruby gaming lib :)
<Hanmac>
banisterfiend: i reported the error and how to solv it months ago and it is not fixed yet
wallerdev has quit [Quit: wallerdev]
jdunck has joined #ruby
<banisterfiend>
Hanmac: you're defeated by imperfect data and the chaos concealed in your own equations
<Hanmac>
Abeepboop & banisterfiend also the error is more in ruby2.0 when you want to build C++ extensions (pkg_config of mkmf is broken)
freerobby has quit [Ping timeout: 276 seconds]
razi has joined #ruby
jdunck has quit [Client Quit]
thams has quit [Quit: thams]
Apane has joined #ruby
bigmac has joined #ruby
akashj87 has joined #ruby
aryaLovesJoel has joined #ruby
mvangala has quit [Read error: Operation timed out]
vlad_sta_ has joined #ruby
tw1sted has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
bigmac has quit [Client Quit]
havenwood has joined #ruby
pothibo has joined #ruby
whowantstolivefo has joined #ruby
<Abeepboop>
yay I got it installed
<Abeepboop>
I have another silly question, since Gosu is available to both C++ and Ruby, it is possible to interface between the two (project of both languages)
<Abeepboop>
(just curious)
jds has joined #ruby
<Hanmac>
Abeepboop: hm not so much, depends what you want ..
<Abeepboop>
Hanmac: oh and something that I have always wondered: I heard that some python/ruby libraries are built in C++, can I ask how they are done
<Abeepboop>
Maybe not the complete process, but some pointers (what topic I should look into for examples) would be great
<Hanmac>
ruby is written in C that means you can bind C or C++ libraries into ruby classes ... (gosu does that internaly for you)
<Abeepboop>
what I mean is, how do you bind libraries like that?
<Abeepboop>
is there like a tutorial about that :d
`MArceLL` has quit [Ping timeout: 276 seconds]
blaxter_ is now known as blaxter
vlad_sta_ has quit [Remote host closed the connection]
<ShellFu>
hey all. Id like some opinions on format of command line arguments. I am accepting the following: ./app.rb -c warrior,thief^item1=lockpick^item2=blackjack,mage
alexwh has left #ruby [#ruby]
kasper has joined #ruby
poga has quit [Remote host closed the connection]
<ShellFu>
its a bit dirty how im having to break that string up and the format looks a lil nasty
<ShellFu>
so Im curious what opinions are on the matter, and if there is a better way for me to handle those options
<ShellFu>
so you have a key, and that key CAN(doesnt have to) have its own hash of k=v pairs under it
danslo has quit [Quit: danslo]
<onewheelskyward>
lxsameer It depends on the line. :)
<ShellFu>
so end goal is something like {class => {item1 => value, item2 => value }}
tbrock has joined #ruby
<onewheelskyward>
ShellFu I'd try following http conventions. There are a log of parsers out there for that already.
<lxsameer>
onewheelskyward: hmmm , a long line of chained methods
<onewheelskyward>
or take in a json string.
<onewheelskyward>
lxsameer I've been known to do one dot per line.
<lxsameer>
onewheelskyward: thanks
<ShellFu>
hmmm ill check out some of the parsers. What I have works well enough, but shit it aint pretty :)
<ShellFu>
thats the nasty line that breaks the string up
blaxter has quit [Ping timeout: 260 seconds]
aryaLovesJoel has quit [Ping timeout: 248 seconds]
<ShellFu>
anyhow thanks for the tip. Ill check some of those out.
LanaDelRey has joined #ruby
hoyang has joined #ruby
Parsify has joined #ruby
Parsify has quit [Max SendQ exceeded]
wallerdev has joined #ruby
burlyscudd has joined #ruby
Parsify has joined #ruby
Parsify has quit [Max SendQ exceeded]
Guest51584 has quit [Ping timeout: 245 seconds]
EPIK has joined #ruby
adkron has joined #ruby
adkron_ has quit [Ping timeout: 276 seconds]
adkron has quit [Ping timeout: 240 seconds]
kofno has quit [Remote host closed the connection]
adkron has joined #ruby
freerobby has joined #ruby
KevinSjoberg has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
<gnagno>
usually istance method are indicated with an hash symbol in front of the name, so the method lenght of String is String#length , how are class method indicated?
gr4yscale has joined #ruby
adkron has quit [Read error: Connection reset by peer]
adkron has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
jds has quit [Remote host closed the connection]
cads has quit [Ping timeout: 245 seconds]
jetblack has quit [Quit: Lost terminal]
sarkis has joined #ruby
mikepack has joined #ruby
kasper has quit [Remote host closed the connection]
adkron_ has joined #ruby
darrik has quit [Read error: Connection reset by peer]
gildo has quit [Ping timeout: 252 seconds]
<banisterfiend>
gnagno: dot
<banisterfiend>
gnagno: MyClass.class_method
adkron has quit [Ping timeout: 260 seconds]
codesoda has joined #ruby
ravster has joined #ruby
johnrlive has joined #ruby
<gnagno>
thank you banisterfiend , even in rspec? can I say describe ".mymethod" ?
<banisterfiend>
gnagno: it's up to you how you want to describe something in rspec
bklane has quit [Remote host closed the connection]
generalissimo has joined #ruby
pskosinski has joined #ruby
adkron has quit [Ping timeout: 264 seconds]
adkron has joined #ruby
mikepack has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
<yxhuvud>
banister: it does care for some things. describe SomeClass and subject will automagically be a new instance of SomeClass. Probably doesn't help with class methods though ..
banisterfiend has joined #ruby
darrik has joined #ruby
Randomage has joined #ruby
<DrIDK>
Hello, I am learning ruby. I m trying bundle now. So, I understood I have to call bundle install to get my gem dependecies. Buy I didn't understand why I need to add "require gemfile" and require "bundle/install"
<DrIDK>
what's the purpose ?
<MrZYX>
you shouldn't need to, where did you read that?
<DrIDK>
MrZYX, "Inside your app, load up the bundled environment:"
_Renegade has quit [Quit: _Renegade]
<MrZYX>
that's require 'rubygems' and require 'bundler/setup'
<MrZYX>
not require 'gemfile' and require 'bundle/install'
<DrIDK>
MrZYX, yes, sorry...
adkron_ has joined #ruby
<MrZYX>
require 'rubygems' is implicit since ruby 1.9, so I guess that's just for ruby 1.8 there
<DrIDK>
my brain has crash
adkron has quit [Ping timeout: 240 seconds]
<DrIDK>
MrZYX, and what the goal of 'require 'rubygems' ?
<MrZYX>
require 'bundler/setup' reads your Gemfile.lock and modifies $LOAD_PATH so that only the gems in there can be required
codecop has joined #ruby
<MrZYX>
that basically adds your $GEM_HOME to the load path
<MrZYX>
the require 'rubygems'
<MrZYX>
and is nothing bundler specific
<MrZYX>
you'd need it to use any gems at all
<DrIDK>
MrZYX, so, you mean, if I use 'bundler/setup', I cannot use gem which are not in my GemFile ?
<MrZYX>
yes
<MrZYX>
more importantly you can't use any other versions than specified
<MrZYX>
so if you have foo 1.2 and foo 1.3 installed and gem 'foo', '1.2' in your Gemfile, require 'foo' before bundle/setup will load 1.3, after it'll load 1.2
boblu has quit [Ping timeout: 245 seconds]
<DrIDK>
MrZYX, and do I need to add require 'foo'
jdunck has joined #ruby
<DrIDK>
MrZYX, I mean, does it load All my gem directly ?
<DrIDK>
if I have in my gemfile : "foo" , "google", "boby" . Do I need to add requre "foo", require "google, require "boby"
d2dchat has joined #ruby
<MrZYX>
setup just restricts the load path, to automatically require all gems call Bundler.require
<DrIDK>
ok
jds has joined #ruby
robscomputer has quit [Ping timeout: 245 seconds]
<DrIDK>
it's a bit strange, but I trust the ruby logic
robscomputer has joined #ruby
kofno has quit [Remote host closed the connection]
kasper has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<DrIDK>
MrZYX, thanks for your help
timonv has joined #ruby
_Renegade has joined #ruby
<shime_>
#RubyOnRails
bklane has joined #ruby
jds has quit [Ping timeout: 252 seconds]
timkohrumel has joined #ruby
shime_ has left #ruby [#ruby]
nezumi has quit [Ping timeout: 245 seconds]
shime_ has joined #ruby
sarkis has joined #ruby
bobbyz has quit [Ping timeout: 252 seconds]
kasper has quit [Ping timeout: 268 seconds]
codesoda has joined #ruby
gr4yscale has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 245 seconds]
sameerynho has joined #ruby
arietis has joined #ruby
timkohrumel has quit [Ping timeout: 252 seconds]
Squarepy has joined #ruby
sgkim126l has quit [Read error: Operation timed out]
robscomputer has quit [Ping timeout: 248 seconds]
ShellFu has quit [Quit: Leaving]
generalissimo has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 252 seconds]
bobbyz has joined #ruby
saarinen has joined #ruby
kasper has joined #ruby
Travis-42 has left #ruby [#ruby]
timonv has quit [Remote host closed the connection]
Guerrero has quit [Read error: Connection reset by peer]
Guerrero has joined #ruby
boblu has joined #ruby
LarsSmit2 has joined #ruby
LarsSmit has quit [Ping timeout: 245 seconds]
<robert___>
this is weird; when I try to find .index() of obj.ancestors, it ends up being nil, but when I do it manually in an array, it works perfectly.
vlad_starkov has quit [Remote host closed the connection]
stayarrr has quit [Quit: Leaving...]
mikepack has joined #ruby
timkohrumel has joined #ruby
lewix has joined #ruby
Synthead has quit [Ping timeout: 245 seconds]
asgardBSD has joined #ruby
Davey has joined #ruby
boblu has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 256 seconds]
timkohrumel has quit [Ping timeout: 268 seconds]
eka has joined #ruby
Synthead has joined #ruby
viszu has joined #ruby
DrIDK has quit [Remote host closed the connection]
mikepack has joined #ruby
ninegrid has quit [Ping timeout: 256 seconds]
brennanMKE has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
mikepack_ has joined #ruby
ninegrid has joined #ruby
__class__ has quit [Ping timeout: 268 seconds]
Synthead has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Ping timeout: 245 seconds]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ToApolytoXaos has joined #ruby
kadoo has joined #ruby
darkc0met has joined #ruby
richiebkr has joined #ruby
jinie_ is now known as jinie
milardovich has quit [Quit: Leaving]
pskosinski has quit [Remote host closed the connection]
banisterfiend has joined #ruby
pskosinski has joined #ruby
jinie is now known as jinie_
vlad_starkov has joined #ruby
RubyPanther has quit [Ping timeout: 245 seconds]
pyrac has quit [Quit: pyrac]
daniel_hinojosa has joined #ruby
hattusili_III has joined #ruby
tommyvyo has quit [Quit:]
tvw has quit []
mikepack_ has quit [Ping timeout: 256 seconds]
icecandy has quit [Remote host closed the connection]
timmow has quit [Disconnected by services]
timmow has joined #ruby
IceDragon has joined #ruby
_bart has quit [Quit: _bart]
Squarepy has joined #ruby
__class__ has joined #ruby
Astralum has joined #ruby
Mekkis has quit [Excess Flood]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bashdy has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Mekkis has joined #ruby
Guest40430 is now known as banghouse
ivanoats has joined #ruby
ArchBeOS has quit [Ping timeout: 240 seconds]
relix has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
kasper has quit [Remote host closed the connection]
sameerynho has left #ruby ["Leaving"]
kasper has joined #ruby
Sherwyn has quit [Remote host closed the connection]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
Mekkis has quit [Max SendQ exceeded]
s0ber has quit [Read error: Connection reset by peer]
Mekkis has joined #ruby
adkron has joined #ruby
s0ber has joined #ruby
Mekkis has quit [Max SendQ exceeded]
Mekkis has joined #ruby
bashdy has quit [Quit: bashdy]
tatsuya_o has quit [Remote host closed the connection]
gasbakid_ has joined #ruby
catphish has quit [Ping timeout: 256 seconds]
mansi has quit [Remote host closed the connection]
catphish has joined #ruby
mansi has joined #ruby
gasbakid has quit [Ping timeout: 245 seconds]
DonRichie has quit [Quit: Verlassend]
aryaLovesJoel has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
cjk101010_ has quit [Ping timeout: 245 seconds]
gommo has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
timkohrumel has joined #ruby
gasbakid_ has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
kadoo has joined #ruby
nezumi has joined #ruby
gommo has quit [Remote host closed the connection]
aryaLovesJoel has joined #ruby
timkohrumel has quit [Ping timeout: 264 seconds]
asgardBSD has quit [Remote host closed the connection]
maetthew has joined #ruby
kadoo has quit [Client Quit]
n_blownapart has joined #ruby
bigmac has joined #ruby
<n_blownapart>
hi could anyone please explain ( remind me of ) the distinction between load and require when all the files are in the same directory? I can't get either to work, with or without file extensions, with or without ./. thank you
<n_blownapart>
* thats: ./ ^^
<bigmac>
from irb can i list functions or objects like Dir or File
<bigmac>
if that makes sense
<davidcelis>
n_blownapart: Use `require_relative`
adambeynon has joined #ruby
<davidcelis>
n_blownapart: If you want to see what's in the actual load path, then inspect the $LOAD_PATH variable, which is also aliased to $:
mikepack has joined #ruby
byprdct has quit [Ping timeout: 240 seconds]
<bigmac>
File.help ==> File=> open, new, exist and so on?
<davidcelis>
bigmac: File.methods
<n_blownapart>
I'll try it thanks davidcelis . maybe in a few minutes you could walk me through the load path business. thanks !
brennanMKE has joined #ruby
<bigmac>
is there a tab completion?
<davidcelis>
n_blownapart: i'm leaving in a minute, it's _extremely_ googlable
<bigmac>
for irb?
<n_blownapart>
thanks bro
<davidcelis>
n_blownapart: googling "ruby load path" gives a good stackoverflow thread as the very first result. just read that
<davidcelis>
bigmac: No, but pry has a good one
<n_blownapart>
davidcelis: thanks
<davidcelis>
bigmac: actually, `irb` does have tab completion
codesoda has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 246 seconds]
gnagno has quit [Quit: Sto andando via]
workmad3 has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 246 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
mikewintermute has joined #ruby
threesome has quit [Ping timeout: 245 seconds]
adkron has quit [Ping timeout: 252 seconds]
richiebkr has quit [Quit: richiebkr]
mikewintermute has quit [Quit: mikewintermute]
amh345 has quit [Quit: amh345]
Spooner has joined #ruby
kil0byte has quit [Remote host closed the connection]
mansi has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
n_blownapart has quit [Remote host closed the connection]
jds has quit [Remote host closed the connection]
Rix has quit [Quit: No One Lives Forever]
nbe_ has joined #ruby
Banistergalaxy has joined #ruby
nbe has quit [Read error: Operation timed out]
richiebkr has joined #ruby
mduvall has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 252 seconds]
Shirakawasuna has joined #ruby
Shirakawasuna has quit [Max SendQ exceeded]
Speed has joined #ruby
Shirakawasuna has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fomatin has joined #ruby
Guerrero has quit [Read error: Connection reset by peer]
adkron has joined #ruby
fschuindt has joined #ruby
Sherwyn has quit [Remote host closed the connection]
dominikh has quit [Read error: Operation timed out]
matti has quit [Read error: Operation timed out]
matti has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
pontiki has quit [Read error: Operation timed out]
dominikh has joined #ruby
akashj87_ has quit [Read error: Connection reset by peer]
adkron_ has quit [Ping timeout: 240 seconds]
pontiki has joined #ruby
akashj87_ has joined #ruby
v0n has joined #ruby
orien has joined #ruby
Meatant has quit [Quit: bbl]
RubyPanther has joined #ruby
orien has quit [Client Quit]
v0n has quit [Ping timeout: 246 seconds]
mduvall has quit [Quit: mduvall]
wallerdev has quit [Quit: wallerdev]
obs has quit [Quit: Konversation terminated!]
bklane_ has joined #ruby
danneu has joined #ruby
nomenkun has joined #ruby
richiebkr has quit [Quit: richiebkr]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
aryaLovesJoel has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
bklane has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
devoldmx has quit [Remote host closed the connection]
nickmm has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
kasper has quit [Remote host closed the connection]
nickmm has quit [Client Quit]
aryaLovesJoel has quit [Ping timeout: 256 seconds]
northelks_ has quit [Quit: ...]
kasper has joined #ruby
niklasb has joined #ruby
LennyLinux has quit [Remote host closed the connection]
kadoo has joined #ruby
aryaLovesJoel has joined #ruby
<moscownights>
.e
moscownights has quit [Quit: WeeChat 0.4.1]
nickmm has joined #ruby
generalissimo has quit [Remote host closed the connection]
<ericwood>
irc is hard
hadees has quit [Ping timeout: 268 seconds]
aryaLovesJoel_ has joined #ruby
gstamp has joined #ruby
beilabs_ has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
aryaLovesJoel has quit [Ping timeout: 276 seconds]
kil0byte has joined #ruby
Rix has joined #ruby
nickmm has quit [Quit: leaving]
havenn_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
ToApolytoXaos has quit [Quit: Leaving]
bigmac is now known as i8igmac
predator217 has joined #ruby
tw1sted has joined #ruby
<TJNII>
I want to access a HTTP API from Ruby (I send it a GET, it returns JSON). Any advice on which libraries I should be using, it apparently does not have a binding. Current googling is returning Net:HTTPRequest, but I wanted to ask if there was anything better.
codecop has quit [Remote host closed the connection]
<Spooner>
TJNII, rest-client
asgardBSD has joined #ruby
mduvall has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
catphish has quit [Quit: Leaving]
beilabs_ has joined #ruby
<TJNII>
Awesome. TYVM.
pygmael has left #ruby [#ruby]
bklane_ has quit [Remote host closed the connection]
Tectonic has joined #ruby
horofox_ has quit [Quit: horofox_]
mansi has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
hogeo_ has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
DrCode has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
pskosinski has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
nari has joined #ruby
Squarepy has quit [Quit: Leaving]
bklane has joined #ruby
timmow has quit [Remote host closed the connection]
horofox_ has joined #ruby
horofox_ has quit [Client Quit]
linsy has joined #ruby
maycon has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
IceDragon has quit [Ping timeout: 248 seconds]
horofox_ has joined #ruby
<pontiki>
or if it's SOAP, savon
IceDragon has joined #ruby
banisterfiend has joined #ruby
apeiros has quit [Remote host closed the connection]
wroathe has left #ruby [#ruby]
maetthew has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby
devoldmx has joined #ruby
aryaLovesJoel_ has quit [Ping timeout: 248 seconds]