apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
fabrice31 has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
hmsimha has joined #ruby
cmarques has joined #ruby
centrx has joined #ruby
dc has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 250 seconds]
stytown has quit [Quit: stytown]
dc has joined #ruby
cashnguns has joined #ruby
dc has quit [Remote host closed the connection]
sixxy has joined #ruby
Aryasam has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
hmsimha has quit [Quit: Leaving]
AlSquire has quit [Quit: This computer has gone to sleep]
nopolitica has quit [Remote host closed the connection]
hmsimha has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cesare has joined #ruby
NoticeIsOnYou has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
klaut has quit [Remote host closed the connection]
NoticeIsOnYou has quit [Ping timeout: 256 seconds]
benzrf|offline is now known as benzrf
amacou has joined #ruby
sdouglas has joined #ruby
mayday_jay has quit [Ping timeout: 250 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has quit [Ping timeout: 264 seconds]
dapz has joined #ruby
dapz has quit [Client Quit]
GriffinHeart has joined #ruby
kireevco1 has joined #ruby
Georg3 has joined #ruby
kireevco has quit [Ping timeout: 255 seconds]
KanKava has quit [Remote host closed the connection]
dbasch has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
DivineEntity has joined #ruby
dbasch has quit [Ping timeout: 245 seconds]
Deele has quit [Ping timeout: 255 seconds]
britneywright has joined #ruby
Atrumx has quit [Quit: exit]
havenwood has quit [Remote host closed the connection]
kireevco has joined #ruby
kireevco1 has quit [Ping timeout: 245 seconds]
Cort3z_ is now known as Cort3z
Hamburglr has quit [Ping timeout: 255 seconds]
lw has joined #ruby
rubytor has quit [Ping timeout: 245 seconds]
Aryasam has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
vincent has joined #ruby
vincent is now known as Guest84542
mijicd has quit [Remote host closed the connection]
SilkFox has joined #ruby
Martxel has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
wallerdev has joined #ruby
GlenK has quit []
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
marr has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Quit: Leaving...]
maestrojed has joined #ruby
SilkFox has quit [Ping timeout: 272 seconds]
pu22l3r has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
Sawbones has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
tectonic has joined #ruby
saarinen has joined #ruby
larissa has quit [Quit: Leaving]
Bumptious has quit [Remote host closed the connection]
jonathan_alban has quit [Ping timeout: 250 seconds]
SouL has quit [Remote host closed the connection]
SouL has joined #ruby
NoticeIsOnYou has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
robustus has quit [Ping timeout: 250 seconds]
NoticeIsOnYou has quit [Ping timeout: 245 seconds]
linojon has quit [Quit: linojon]
maestrojed has joined #ruby
mehlah has quit [Quit: Leaving...]
robustus has joined #ruby
<djapo> i get an error WARNING: You don't have /home/archer/.gem/ruby/2.1.0/bin in your PATH, gem executables will not run.
kaspergrubbe has quit [Remote host closed the connection]
Lewix has joined #ruby
<djapo> how do i fix this? PATH=$PATH:~/.gem/ruby/*/bin?
SouL has quit [Ping timeout: 250 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
chrishough has quit [Quit: chrishough]
rkazak has quit [Quit: Sleep.....ing....]
tectonic has quit []
rkazak has joined #ruby
DivineEntity has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
Sawbones has quit [Remote host closed the connection]
heyimwill has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
Hanmac has joined #ruby
m3_del has joined #ruby
SCommette has joined #ruby
Hanmac1 has quit [Ping timeout: 250 seconds]
Hanmac1 has joined #ruby
fabrice31 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
m3_del has quit [Ping timeout: 240 seconds]
amystephen has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
amystephen has joined #ruby
freerobby has joined #ruby
tectonic has joined #ruby
jonathan_alban has joined #ruby
<djapo> ok, i did bundle install --path ../vendor/bundle; my question is how does bundler know where the path is after the install is done?
Cort3z has quit [Ping timeout: 240 seconds]
Georg3 has quit [Quit: Computer has gone to sleep.]
maestrojed has joined #ruby
Aryasam has quit [Ping timeout: 255 seconds]
r_rios has joined #ruby
nateberkopec has joined #ruby
lw has quit [Quit: b]
<djapo> where does it save where the bundle files where installed? how does bundle exec sass know where sass is?
chipotle has joined #ruby
dbasch has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
banister has quit [Remote host closed the connection]
apeiros has joined #ruby
saarinen has quit [Quit: saarinen]
tus has quit []
dopie has joined #ruby
<dopie> hello beautiful rubyists
Hanmac has joined #ruby
SouL has joined #ruby
SCommette has quit [Quit: SCommette]
Hanmac1 has quit [Ping timeout: 240 seconds]
sixxy has quit [Remote host closed the connection]
duncan_ has quit [Ping timeout: 240 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
kaspergrubbe has joined #ruby
duncan_ has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
SCommette has joined #ruby
dbasch has quit [Read error: Connection reset by peer]
dbasch has joined #ruby
bradleyprice has joined #ruby
duncannz has joined #ruby
zB0hs has joined #ruby
<zenspider> why thank you
MrSamuel has joined #ruby
zB0hs has quit [Client Quit]
maestrojed has joined #ruby
Sawbones has joined #ruby
<jonathan_alban> Not sure if I'm a rubyist yet but hi back anyway dopie
dc has joined #ruby
amystephen has quit [Ping timeout: 245 seconds]
NoticeIsOnYou has joined #ruby
Cort3z has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
opus has joined #ruby
Lewix has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
lukec has quit [Quit: lukec]
rkazak has quit [Quit: Sleep.....ing....]
Sawbones has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
NoticeIsOnYou has quit [Ping timeout: 256 seconds]
opus has quit [Ping timeout: 250 seconds]
sdouglas has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
Cort3z has quit [Ping timeout: 245 seconds]
opus has joined #ruby
jonathan_alban has quit [Ping timeout: 240 seconds]
radic has quit [Ping timeout: 264 seconds]
Guest84542 has quit [Remote host closed the connection]
Georg3 has joined #ruby
radic has joined #ruby
<Symbiosisz> If I have two threads that are using a socket (one thread is just sending, the other is doing blocking receives), do I need to do anything beyond exiting a thread when I notice a socket failed in my listen method (by 'failed' I mean it's returning a 0 character message), or is there more I need to do to ensnure that I cleanup the socket?
sdouglas has quit [Ping timeout: 264 seconds]
Cache_Money has joined #ruby
Georg3 has quit [Ping timeout: 250 seconds]
cmarques has quit []
davispuh has quit [Read error: Connection reset by peer]
mostlybadfly has quit [Quit: Connection closed for inactivity]
opus has quit [Ping timeout: 240 seconds]
rkazak_ has joined #ruby
ra4king1 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
bmurt has joined #ruby
opus has joined #ruby
creede has quit [Ping timeout: 260 seconds]
ra4king has quit [Ping timeout: 250 seconds]
dc has quit [Remote host closed the connection]
zB0hs has joined #ruby
cesare has quit [Ping timeout: 245 seconds]
creede has joined #ruby
wallerdev has quit [Quit: wallerdev]
rkazak_ has quit [Quit: Sleep.....ing....]
Xeago has quit [Remote host closed the connection]
creede has quit [Ping timeout: 250 seconds]
SCommette has joined #ruby
cashnguns has quit [Ping timeout: 260 seconds]
ra4king1 is now known as ra4king
SCommette has quit [Client Quit]
amacou has quit [Remote host closed the connection]
britneywright has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has joined #ruby
braincrash has quit [Quit: bye bye]
creede has joined #ruby
Shidash has joined #ruby
dbasch has quit [Read error: Connection reset by peer]
sixxy has joined #ruby
braincrash has joined #ruby
saarinen has joined #ruby
dbasch has joined #ruby
nateberkopec has quit [Quit: Leaving...]
dawkirst has joined #ruby
bmurt has quit []
Sawbones has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
dawkirst has quit [Ping timeout: 245 seconds]
SCommette has joined #ruby
Sawbones has quit [Ping timeout: 256 seconds]
wldcordeiro has joined #ruby
wallerdev has joined #ruby
SCommette has quit [Client Quit]
benzrf is now known as benzrf|offline
NoticeIsOnYou has joined #ruby
oxez has joined #ruby
Sawbones has joined #ruby
<oxez> hello, any suggestions for an options parser? I want to do: my_app some_command -option1=value1 (or -o1 value1 for short), -option2 (or -o2 for short)
sixxy has quit [Quit: Leaving]
northfurr has quit [Quit: northfurr]
Georg3 has joined #ruby
NoticeIsOnYou has quit [Ping timeout: 245 seconds]
kireevco has quit [Quit: Leaving.]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Georg3 has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
mostlybadfly has joined #ruby
vincent has joined #ruby
vincent is now known as Guest54089
gil has quit [Remote host closed the connection]
Bumptious has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
gil has joined #ruby
k0m has joined #ruby
snath has quit [Ping timeout: 245 seconds]
amacou has joined #ruby
amacou has quit [Remote host closed the connection]
amacou has joined #ruby
luisjose_ has joined #ruby
luisjose has quit [Read error: Connection reset by peer]
Asher has quit [Read error: No route to host]
Asher has joined #ruby
opus has quit [Ping timeout: 260 seconds]
sdouglas has joined #ruby
benzrf|offline is now known as benzrf
Vivekananda_y510 has quit [Ping timeout: 240 seconds]
<agent_white> oxez: Just... parse ARGV?
<agent_white> Read ARGV into a function and do work!
frellnet has joined #ruby
opus has joined #ruby
snath has joined #ruby
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has quit [Quit: saarinen]
dbasch has quit [Read error: Connection reset by peer]
dbasch has joined #ruby
kireevco has joined #ruby
nateberkopec has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
vincent has joined #ruby
vincent is now known as Guest6949
benzrf is now known as benzrf|offline
nateberkopec has quit [Ping timeout: 240 seconds]
binaryhat has quit [Remote host closed the connection]
<zenspider> oxez: optparse is a nice standard to stick to
Guest6949 has quit [Remote host closed the connection]
papercode has quit [Quit: WeeChat 0.4.3]
papercode has joined #ruby
Sawbones has quit []
binaryhat has joined #ruby
sixxy has joined #ruby
amacou has quit [Remote host closed the connection]
sixxy has quit [Client Quit]
amacou has joined #ruby
<zenspider> oxez: grep -A 42 def.process_args $(gem which minitest/unit)
Guest54089 has quit [Ping timeout: 245 seconds]
<oxez> zenspider: Oh I didn't know there was one in the stdlib
<zenspider> there's 3 iirc
<zenspider> but optparse is the most complete/flexible
<zenspider> use the grep above to see a simple example
<oxez> Looks great
<oxez> thanks, zenspider
<zenspider> n/p
dbasch has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
dbasch has joined #ruby
Bumptious has quit [Remote host closed the connection]
wldcordeiro has quit [Remote host closed the connection]
amacou has quit [Ping timeout: 245 seconds]
ferr has quit [Ping timeout: 245 seconds]
amacou has joined #ruby
stytown has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
Bumptious has joined #ruby
kireevco1 has joined #ruby
Georg3 has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
kireevco has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
<zenspider> baaaaaah... so cool. spark.io is pretty nifty once you get through the fiddly setup. I just made a simple temperature sensor that I can probe via curl
Sawbones has joined #ruby
Cort3z has joined #ruby
NoticeIsOnYou has joined #ruby
Georg3 has quit [Ping timeout: 240 seconds]
Cort3z has quit [Ping timeout: 256 seconds]
NoticeIsOnYou has quit [Ping timeout: 240 seconds]
noocode has quit [Ping timeout: 240 seconds]
<Symbiosisz> I'm looking to learn how I can mock core classes in Ruby. E.g. make it so TCPSocket.new returns a mocked socket. Given those requirements, should I be trying to learn rspec, or is there another, more suitable library? Thanks!
steeve has joined #ruby
noocode has joined #ruby
doub has quit [Write error: Broken pipe]
lethjakman has joined #ruby
doub has joined #ruby
kireevco1 has quit [Quit: Leaving.]
Sawbones has quit [Remote host closed the connection]
papercode has quit [Quit: WeeChat 0.4.3]
papercode has joined #ruby
claw_ has joined #ruby
Sawbones has joined #ruby
claw has quit [Write error: Broken pipe]
lukec has joined #ruby
Channel6 has joined #ruby
<zenspider> Symbiosisz: why?
<Symbiosisz> zenspider: I want to be able to test that my system behaves as expected without having to go all the way into the realms of dependency injection. That's why I figured stubbing the core classes themselves would be the easiest approach.
<Symbiosisz> Am I mistaken?
m3_del has joined #ruby
<Symbiosisz> For example, I want to be sure that if a tcpsocket object returns nil on recvfrom, that I throw the proper exception, etc
dbasch_ has joined #ruby
dbasch has quit [Write error: Connection reset by peer]
dbasch_ is now known as dbasch
stytown has quit [Quit: stytown]
kireevco has joined #ruby
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
r_rios has quit [Ping timeout: 250 seconds]
kireevco1 has joined #ruby
m3_del has quit [Ping timeout: 240 seconds]
Sthebig has quit [Excess Flood]
sdouglas has quit [Remote host closed the connection]
<zenspider> can somebody ban kireevco1 until they clean up their connection?
kireevco has quit [Ping timeout: 240 seconds]
<zenspider> Symbiosisz: stubbing and mocking are totally different
<Symbiosisz> zenspider: Sorry, fair enough. Stubbing would be the correct term for what I'm trying to do, correct?
<zenspider> depends on what level you're trying to do it.
aaronrl has quit [Excess Flood]
<Symbiosisz> Could you elaborate?
lukec has quit [Quit: lukec]
dbasch has quit [Read error: Connection reset by peer]
aaronrl has joined #ruby
<zenspider> I _never_ mock. I stub as needed, usually stubbing HTTP#read or Time.now
dbasch has joined #ruby
<zenspider> but I'm always testing TDD, not BDD. mocking seems to be a BDD fetish
<Symbiosisz> Ahh, I see what you mean. So am I correct in saying generally you would use mocks when doing dependency injection, whereas you use stubs when you're trying to test without DI?
linoj has joined #ruby
<zenspider> I don't ever do DI. I wouldn't even think of it in a dynamic language (which is almost all I use these days)
<zenspider> I use stubs to substitute a method that will ALWAYS give what I want, regardless of external forces
<zenspider> network connection, clock, etc.
<Symbiosisz> zenspider: So, for stubbing, which library do you generally use?
<Symbiosisz> I suppose that's the meat of what I'm trying to find out.
<zenspider> and I usually stub lower than the level I'm interfacing at.
<zenspider> def is my stub framework
<Symbiosisz> oh, you just use meta programming for it?
duncannz has quit [Remote host closed the connection]
<Symbiosisz> (Is that the correct term: metaprogramming)?
<zenspider> def obj.read ; ... ; end
<zenspider> there's nothing really meta about this
duncan_ has quit [Write error: Broken pipe]
<zenspider> if you want a "safer" stubbing methodology, look at minitest/mock's stub function... it only lives for the lifetime of the block being executed
<Symbiosisz> ahh, neat, that seems like what I want
<Symbiosisz> Appreciate it
<zenspider> Time.stub :now, lambda { ... } do ... assert blah end
Sthebig has joined #ruby
<zenspider> gotta go
<Symbiosisz> thanks zenspider. Have a good one!
aoeu256 has quit [Ping timeout: 246 seconds]
stytown has joined #ruby
kireevco1 has quit [Quit: Leaving.]
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergr_ has joined #ruby
sdouglas has joined #ruby
vincent has joined #ruby
nateberkopec has joined #ruby
vincent is now known as Guest85697
Lewix has quit [Read error: Connection reset by peer]
Lewix_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Guest85697 has quit [Remote host closed the connection]
decoponio has joined #ruby
Domon_ has joined #ruby
stytown has quit [Quit: stytown]
JoshGlzBrk has joined #ruby
bmurt has joined #ruby
stytown has joined #ruby
SCommette has joined #ruby
dawkirst has joined #ruby
Georg3 has joined #ruby
lukec has joined #ruby
stytown has quit [Client Quit]
Kricir has joined #ruby
Georg3 has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
stytown has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
Solnse has quit [Quit: Leaving.]
sdouglas has quit [Remote host closed the connection]
DivineEntity has joined #ruby
sdouglas_ has joined #ruby
NoticeIsOnYou has joined #ruby
Notte has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
NoticeIsOnYou has quit [Ping timeout: 260 seconds]
ecksit has joined #ruby
ylluminarious has quit [Quit: Leaving...]
freerobby has quit [Quit: Leaving.]
alem0lars has joined #ruby
IceDragon has quit [Quit: Space~~~]
Notte has quit [Remote host closed the connection]
bmurt has quit []
klaut has joined #ruby
Georg3 has joined #ruby
Jeticus has quit []
alem0lars has quit [Quit: Going AFK...]
St_Marx has quit [Quit: Ex-Chat]
Georg3 has quit [Ping timeout: 264 seconds]
Channel6 has quit [Quit: Leaving]
<agent_white> So
<agent_white> It is possible to have a Ruby program write to itself?
alem0lars has joined #ruby
<agent_white> I'm wondering if I could modify the stuff after __END__ ...
pu22l3r has joined #ruby
dangerousdave has joined #ruby
steeve has quit []
chipotle_ has joined #ruby
larsam has joined #ruby
GriffinHeart has joined #ruby
lukec has quit [Quit: lukec]
Lewix_ has quit [Remote host closed the connection]
vincent has joined #ruby
vincent is now known as Guest61705
chipotle has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
GriffinHeart has quit [Ping timeout: 245 seconds]
amacou has quit [Ping timeout: 240 seconds]
jdj_dk has joined #ruby
<ecksit> agent_white, doesn't __END__ denote the end of the program execution?
blasius has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
Zebroid has joined #ruby
<agent_white> ecksit: Yup! :D
testcore has joined #ruby
dvb_ua has quit [Ping timeout: 240 seconds]
<unshadow> I'm having some issues when wroking with SOAP (using savon gem), I got a C# code that shows what to do but becuse its in C# I cant seems to get it to work :/ I posted it to http://stackoverflow.com/questions/24842186/using-c-sharp-example-to-connect-to-a-webservice-using-ruby-with-savon-gem
jdj_dk has quit [Remote host closed the connection]
Lewix has joined #ruby
frellnet has quit [Remote host closed the connection]
frellnet has joined #ruby
<agent_white> ecksit: Found it :D
frellnet_ has joined #ruby
bijumon has quit [Ping timeout: 272 seconds]
frellnet has quit [Ping timeout: 245 seconds]
frellnet_ has quit [Ping timeout: 264 seconds]
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frellnet has joined #ruby
NoticeIsOnYou has joined #ruby
Lewix has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
jdj_dk has joined #ruby
Guest61705 has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 245 seconds]
NoticeIsOnYou has quit [Ping timeout: 256 seconds]
St_Marx has joined #ruby
frellnet has joined #ruby
LadyRainicorn has joined #ruby
lethjakman has quit [Ping timeout: 245 seconds]
frellnet has quit [Ping timeout: 255 seconds]
frellnet has joined #ruby
charliesome has joined #ruby
zkay11 has left #ruby [#ruby]
alem0lars has quit [Quit: Going AFK...]
havenwood has quit [Remote host closed the connection]
Zebroid has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
Cort3z has joined #ruby
frellnet has quit [Ping timeout: 264 seconds]
frellnet_ has joined #ruby
mike32 has joined #ruby
yazgoo has quit [Ping timeout: 240 seconds]
stytown has quit [Quit: stytown]
arup_r has joined #ruby
jdj_dk has quit [Remote host closed the connection]
alem0lars has joined #ruby
frellnet_ has quit [Ping timeout: 245 seconds]
platz has joined #ruby
tuxninja has quit [Remote host closed the connection]
frellnet has joined #ruby
frellnet has quit [Ping timeout: 260 seconds]
frellnet has joined #ruby
_5kg has joined #ruby
_5kg has quit [Client Quit]
mr_rich101 has joined #ruby
mr_rich101 has quit [K-Lined]
_5kg has joined #ruby
<ecksit> is anyone using something to generate html docs using tomdoc?
frellnet has quit [Ping timeout: 255 seconds]
Morkel has joined #ruby
robbyoconnor has joined #ruby
frellnet has joined #ruby
linoj has quit [Quit: linoj]
polyidus has quit [Quit: EOF]
Sawbones has quit [Remote host closed the connection]
polyidus has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
opus has quit [Ping timeout: 240 seconds]
polyidus has quit [Client Quit]
frellnet has joined #ruby
robbyoconnor has quit [Ping timeout: 250 seconds]
tuxninja has joined #ruby
opus has joined #ruby
nateberkopec has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
skaflem has joined #ruby
frellnet has joined #ruby
absolutezeroff has quit [Remote host closed the connection]
Vivekananda_y510 has joined #ruby
dbasch has quit [Read error: Connection reset by peer]
polyidus has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
dbasch has joined #ruby
blasius has joined #ruby
fabrice31 has joined #ruby
frellnet has quit [Ping timeout: 260 seconds]
polyidus has quit [Client Quit]
frellnet has joined #ruby
larsam has quit [Remote host closed the connection]
polyidus has joined #ruby
polyidus has quit [Client Quit]
platz has left #ruby [#ruby]
<arup_r> suppose I have a gemset name foo. How can I see, what are the gems is installed in the gemset ?
blasius has quit [Ping timeout: 240 seconds]
jdj_dk has joined #ruby
yazgoo_ has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
luisjose_ has quit [Quit: Leaving...]
jshultz has quit [Quit: Connection closed for inactivity]
lkba has quit [Read error: Connection reset by peer]
polyidus has joined #ruby
lkba has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
polyidus has quit [Client Quit]
relix has joined #ruby
michael_lee has joined #ruby
Domon_ has quit [Quit: Connection closed for inactivity]
dawkirst has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
asmodlol has joined #ruby
lxsameer has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
ccooke has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
blasius has joined #ruby
dawkirst has quit [Ping timeout: 245 seconds]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
NoticeIsOnYou has joined #ruby
shredding has joined #ruby
blasius has quit [Ping timeout: 240 seconds]
uokesita has joined #ruby
polyidus has joined #ruby
dbasch has quit [Quit: dbasch]
frellnet has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
NoticeIsOnYou has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
tuxninja has quit []
polyidus has quit [Client Quit]
x1337807x has joined #ruby
sigurding has joined #ruby
polyidus has joined #ruby
polyidus has quit [Client Quit]
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
polyidus has joined #ruby
polyidus has quit [Client Quit]
toastynerd has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
dangerousdave has quit []
dangerousdave has joined #ruby
kareena has joined #ruby
<kareena> hi
<kareena> it is possible to convert ruby script to php?
polyidus has joined #ruby
luisjose has joined #ruby
polyidus has quit [Max SendQ exceeded]
kareena has quit [Changing host]
kareena has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
<agent_white> kareena: Depends on what your ruby script does.
luisjose_ has joined #ruby
jackneill has joined #ruby
<kareena> i tried to run it but i don't know how i never use ruby before
spastorino has quit [Quit: Connection closed for inactivity]
Sawbones has joined #ruby
<Beoran__> kareena, that link is s a ruby library to be used in your own ruby program
GriffinHeart has joined #ruby
luisjose has quit [Ping timeout: 260 seconds]
<Beoran__> but there is no automatic compiler from ruby to php
claymore has joined #ruby
frellnet has quit [Ping timeout: 260 seconds]
luisjose has joined #ruby
xcesariox has joined #ruby
xcesariox has quit [Max SendQ exceeded]
<Beoran__> you will have to learn ruby and then port it to php yourself , or find someone who knows both ruby and php and who is willing to do it for you
xcesariox has joined #ruby
frellnet has joined #ruby
<Beoran__> I know ruby and php, but don't look at me, you can't afford me.
luisjose_ has quit [Ping timeout: 260 seconds]
luisjose_ has joined #ruby
bruno- has joined #ruby
<kareena> when i try to run it i got the error : http://pastebin.com/JqeepAj5
bruno- is now known as Guest27660
jdj_dk has quit [Remote host closed the connection]
<kareena> hhhh Beoran__ even if i pay you ? :)
dc has joined #ruby
<Beoran__> I ask 10$ per LOC
<Beoran__> this is 500 LOC so...
<kareena> per LOC?
GriffinHeart has quit [Ping timeout: 240 seconds]
<Beoran__> Line of code
Hanmac1 has joined #ruby
<kareena> sorry better i learn ruby :)
<Beoran__> kareena, yes, you should
<kareena> please can you look on this error : http://pastebin.com/JqeepAj5?
luisjose has quit [Ping timeout: 240 seconds]
<Beoran__> anyway, bundler is a ruby tool to manage your dependencies, you don't strictly need it
<Beoran__> yes I just did
frellnet has quit [Ping timeout: 240 seconds]
<kareena> what i should to do?
luisjose has joined #ruby
<agent_white> kareena: Learn ruby :)
<Beoran__> indeed
blackmesa has joined #ruby
frellnet has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
<Beoran__> ... well if it's to convert this to php you don't have to learn so much ruby
luisjose_ has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
<kareena> realy i don't have time to learn ruby if i could fine someone who can convert it to phph with a good price that will be fine
<Beoran__> there are plenty of free resources available to lear the basics of ruby, and you already know php I assume, so it should be less hard than if you knew no programming at all
luisjose_ has joined #ruby
<Beoran__> kareena, good luck with that
luisjose has quit [Read error: Connection reset by peer]
<kareena> Beoran__ that you
<Beoran__> I refuse to work for less than what I get at my day job unless if it's for someone that can prove they are working for a charity or an open source project
frellnet has quit [Ping timeout: 250 seconds]
pencilcheck has joined #ruby
frellnet has joined #ruby
<Beoran__> if you're good at php you can learn ruby in less than a week, I think . I know because I also came from php. Now that I know ruby, I don't want to go back to PHP too much anymore.
luisjose_ has quit [Ping timeout: 245 seconds]
<dangerousdave> Can someone explain the following to me please. On step 5 they create a .ru file, I don't understand how that line "run Sinatra::Application" starts things running. http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Ruby_sinatra.html
<kareena> Beoran__ it is not opensource or charity i want to make a hotel reservation comparre
mikecmpbll has joined #ruby
luisjose has joined #ruby
pencilcheck is now known as pen
Sawbones has quit []
<Beoran__> kareena, then you should hire someone for the job and pay them properly if you can't do it yourself
jdj_dk has joined #ruby
nateberkopec has joined #ruby
Davedo has quit [Quit: Free as in Wine!]
luisjose_ has joined #ruby
opus has quit []
<Beoran__> dangerousdave, On your local computer, create a helloworld.rb file and place it in the top-level directory of your source bundle.
<Beoran__> the magic happens in the helloworld file
frellnet has quit [Ping timeout: 250 seconds]
<Beoran__> it includes sinatra
frellnet has joined #ruby
<Beoran__> so you can use the get '/' do .... end sinatra DSL
sigurding has quit [Quit: sigurding]
<Beoran__> this will end up automatically setting up Sinatra::Application
<Beoran__> so run can work on it
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Beoran__> dangerousdave, is that more clear now?
luisjose has quit [Ping timeout: 245 seconds]
luisjose has joined #ruby
luisjose_ has quit [Read error: Connection reset by peer]
nateberkopec has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
<unshadow> quit
unshadow has quit [Quit: leaving]
frellnet has quit [Ping timeout: 260 seconds]
Morkel has quit [Quit: Morkel]
frellnet has joined #ruby
farleyknight has quit [Ping timeout: 260 seconds]
luisjose has quit [Read error: Connection reset by peer]
frellnet has quit [Ping timeout: 260 seconds]
<dangerousdave> Beoran__, i think so, thanks
<dangerousdave> Beoran__how do i run the config file?
frellnet has joined #ruby
jdj_dk has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Davedo has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
marr has joined #ruby
Perceptes has joined #ruby
blasius has joined #ruby
mxpln has joined #ruby
<Beoran__> dangerousdave, locally?
<Beoran__> dangerousdave, you will need a ruby application server for that, like thin
frellnet has quit [Ping timeout: 255 seconds]
<dangerousdave> managed it now thanks by installing the rack gem
<Beoran__> yes you neded the rack gem
<Beoran__> and then rackup for a simple application server
<Beoran__> thin is more performant
NoticeIsOnYou has joined #ruby
<Beoran__> but it's ok just for testing
frellnet has joined #ruby
farleyknight has joined #ruby
chrishough has quit [Quit: chrishough]
blasius has quit [Ping timeout: 245 seconds]
frellnet has quit [Ping timeout: 250 seconds]
Wolland has joined #ruby
NoticeIsOnYou has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
grump has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
kareena has quit []
Cort3z has quit [Ping timeout: 260 seconds]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
nobodyzzz has joined #ruby
grump has quit [Remote host closed the connection]
grump has joined #ruby
shredding has quit [Quit: shredding]
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
<Symbiosisz> Any chance anyone knows why this Mocha mock isn't throwing an exception (http://pastie.org/pastes/9406766/text) when I don't call connectionFailed? If I call connectionFailed zero OR 1 times no error is thrown, an error is only thrown for 2 or more invocations.
<Symbiosisz> The behavior for one invocation is as expected, but I would have expected that if it's called zero times, the "once" would cause an exception to be thrown
<arup_r> I have a regex /(a|b)/ it will give all a or b .. How to *negate* this regex to give me all but not a and b
frellnet has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
jhass|off is now known as jhass
frellnet has joined #ruby
<Wolland> arup_r: i think ! is negation
<Wolland> /!(a|b)/
<arup_r> Hey Wollan, how are you ?
<arup_r> Let me test
<arup_r> not working...
<arup_r> :(
Gonzih has joined #ruby
<uokesita> arup_r [^a|b]
<arup_r> Wolland: I just tested again.. not working
<Wolland> yeah it's not that simple :/ se
<Wolland> sec
<arup_r> uokesita: nopes (crying)
frellnet has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
grump has quit [Remote host closed the connection]
grump has joined #ruby
grump has quit [Excess Flood]
Cort3z has joined #ruby
fabrice31 has joined #ruby
<nobodyzzz> uokesita, what about more than one symbol? :)
sigurding has joined #ruby
<wasamasa> time for negex
<wasamasa> negated expressions
<arup_r> arr = [1,2,3,4,5,6] ; arr.grep(/(3|6)/)
<arup_r> >> arr = [1,2,3,4,5,6] ; arr.grep(/(3|6)/)
e4xit has joined #ruby
<arup_r> >> arr = [1,2,3,4,5,6] ; arr.grep(/(3|6)/)
<Symbiosisz> Does anyone have any suggestions on where I should put "Thread.abort_on_exception = true" if I want that ot be the case everywhere in my project? Including both when running normally, and when running tests, etc
<Wolland> wait, what is it you actually trying to do arup_r
<Wolland> what's with array?
<arup_r> Repl is not working here.. anyway
frellnet has quit [Ping timeout: 240 seconds]
<arup_r> One min.. I became a bull..........
<atmosx> aloha
<arup_r> I am trying to apply Regex on Fixnum..
<arup_r> Lollz
<LadyRainicorn> .to_s
frellnet has joined #ruby
<arup_r> Forgot Regex understand string
<arup_r> damnn
toastynerd has quit [Remote host closed the connection]
jhass is now known as jhass|off
fabrice31 has quit [Ping timeout: 240 seconds]
jhass|off is now known as jhass
kyb3r_ has joined #ruby
<arup_r> jhass: Hi
<arup_r> uokesita: You are good in Regex... aww!! :-)
<jhass> arup_r: I'd just negate the expectation: unless foo.match /a|b/
<uokesita> I am not, hehe I use that webpage rubular it helps a lot
Perceptes has quit [Quit: Leaving.]
nateberkopec has joined #ruby
opus has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
<arup_r> jhass: I was checking how much intelligent I am.. But really I am not. I have an array arr = [1,2,3,4,5,6,3, 23] and I want all but 3 and 5.. can be done using arr - [3,5]
<arup_r> I was testing if can be done using a #grep not
claymore has quit [Ping timeout: 245 seconds]
Perceptes has joined #ruby
<arup_r> but it is not possible with #grep
frellnet has joined #ruby
<arup_r> as all are numerics inside arr
<jhass> that's not a requirement for that to work
<Wolland> [1,2,3,4,5,6]-[3,5]
mike32 has quit [Ping timeout: 256 seconds]
<jhass> >> ["foo", "bar", :baz, Object.new, 2, 3, 4, 5]-[3,5]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
CpuID has joined #ruby
<arup_r> Wolland: I know that.. I was trying to establish a friendship between cat and dog.. and finally failed.
<arup_r> jhass: repl is not working
<jhass> the more general version is .reject
<Wolland> there are dozen of ways to do it, regexp is probably the worse
<arup_r> Wolland: yesssssssssssss
nateberkopec has quit [Ping timeout: 240 seconds]
opus has quit [Ping timeout: 245 seconds]
claymore has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
<Wolland> you can also do [1,2,3,4] & [1,2] for opposite effect, keeping 1,2 only
<Wolland> if you need to, fyi
frellnet has joined #ruby
<arup_r> jhass: lot to learn from you... How many year, your fingers are running on your keyboard ? Great example it is - ["foo", "bar", :baz, Object.new, 2, 3, 4, 5]-[3,5] Now, I have started to hate `Array#-`.
<jhass> hate? why?
<Wolland> Enumerable is KING
<jhass> and I dunno, I find it hard to find the start point for such things
<arup_r> jhass: It is not reliable.. for mixed collection of objects...
<jhass> why is that result not what you expect?
<arup_r> Thus I hate Array#-
<agent_white> Nah new king is the "r+b" of IO. Modify IO stream in place.
<agent_white> So naiz.
mikecmpbll has joined #ruby
<arup_r> jhass: I luv #select and #reject
<arup_r> :-)
<jhass> note that Array#- is much faster in some cases
<arup_r> yes..
<jhass> so I think you have a misconception on what Array#- is, because it's totally the result I expect
frellnet has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
<arup_r> jhass: yes.. some cases..... Not all
<jhass> ?
CorpusCallosum has quit [Ping timeout: 255 seconds]
heftig has quit [Ping timeout: 250 seconds]
<arup_r> I am saying.. whatever you are saying is correct..
<arup_r> when I have such ["foo", "bar", :baz, Object.new, 2, 3, 4, 5] then Array#- is not good option to go.,.
<jhass> why not?
sigurding has quit [Quit: sigurding]
NoticeIsOnYou has joined #ruby
<jhass> >> ["foo", "bar", :baz, Object.new, 2, 3, 4, 5, 4]-["foo", 2]
<jhass> meh, totally gone
<arup_r> jhass: Opps.. Yes.. Now get it..
frellnet has quit [Ping timeout: 240 seconds]
<arup_r> I made mess some thing in IRB
dawkirst has joined #ruby
<arup_r> sorry... I am now again started to luv.. Array#-
frellnet has joined #ruby
ra4king1 has joined #ruby
NoticeIsOnYou has quit [Ping timeout: 245 seconds]
blasius has joined #ruby
mxpln has left #ruby [#ruby]
funktor has joined #ruby
ra4king has quit [Ping timeout: 240 seconds]
dawkirst has quit [Ping timeout: 250 seconds]
frellnet has quit [Ping timeout: 255 seconds]
carraroj has joined #ruby
frellnet has joined #ruby
lolmaus has quit [Remote host closed the connection]
blasius has quit [Ping timeout: 264 seconds]
frellnet has quit [Ping timeout: 260 seconds]
frellnet has joined #ruby
heftig has joined #ruby
toastynerd has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<zenspider> agent_white: yup. I've written simple build-in DBs that way.
<zenspider> (__END__)
frellnet has quit [Ping timeout: 260 seconds]
<agent_white> zenspider: I'm working on making it into a little log-section for my program :)
<agent_white> Never knew about that before... it's pretty awesome.
frellnet has joined #ruby
<zenspider> iirc, I used it for self-modifying config values via yaml... and some simple DBs, prolly also via yaml
GriffinHeart has joined #ruby
memph1s has joined #ruby
toastynerd has quit [Ping timeout: 245 seconds]
spider-mario has joined #ruby
<agent_white> Ooo...
mijicd has joined #ruby
m8 has joined #ruby
<Wolland> agent_white: what's ""r+b" of IO"
frellnet has quit [Ping timeout: 240 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
frellnet has joined #ruby
GriffinHeart has quit [Ping timeout: 256 seconds]
<agent_white> Wolland: Ah binary file mode -- http://ruby-doc.org/core-2.1.2/IO.html#method-c-new
timonv_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
<Wolland> ah i see read binary, thanks
timonv_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
starkhalo has quit [Ping timeout: 256 seconds]
<zenspider> I never remember a+ vs r+ and have to look them up
<zenspider> (start at back vs front)
ringarin has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
Hanmac has joined #ruby
frellnet has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
agjacome_ has joined #ruby
spider-mario has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has quit [Ping timeout: 245 seconds]
Mekkis has quit [Excess Flood]
frellnet has quit [Ping timeout: 245 seconds]
Mekkis has joined #ruby
frellnet has joined #ruby
alem0lars has quit [Quit: Going AFK...]
NoticeIsOnYou has joined #ruby
<apeiros> I think w+ and a+ are the ones I've never actually used
tectonic has quit []
<apeiros> I think r+ and a are the ones I used most. r I used rarely because of File.read
frellnet has quit [Ping timeout: 240 seconds]
MrSamuel has quit [Remote host closed the connection]
<apeiros> errr, forgot w. I think w > r+ > a (usage wise)
frellnet has joined #ruby
Mekkis has quit [Max SendQ exceeded]
Mekkis has joined #ruby
ferr has joined #ruby
mijicd has quit [Remote host closed the connection]
mijicd has joined #ruby
Xeago has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
mijicd has quit [Remote host closed the connection]
vst0rm has joined #ruby
frellnet has joined #ruby
ringarin has quit [Quit: Leaving]
alem0lars has joined #ruby
mijicd has joined #ruby
kyb3r_ has joined #ruby
freannrak has quit [Quit: leaving]
vifino has joined #ruby
mijicd has quit [Remote host closed the connection]
Morkel has joined #ruby
nateberkopec has joined #ruby
frellnet has quit [Ping timeout: 255 seconds]
mijicd has joined #ruby
frellnet has joined #ruby
webgen has joined #ruby
NoticeIsOnYou has quit [Quit: Computer has gone to sleep.]
timonv_ has joined #ruby
mgomezch has joined #ruby
NoticeIsOnYou has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
NoticeIsOnYou has quit [Read error: No route to host]
frellnet has quit [Ping timeout: 245 seconds]
NoticeIsOnYou has joined #ruby
mijicd has quit [Remote host closed the connection]
frellnet has joined #ruby
mijicd has joined #ruby
wallerdev has quit [Quit: wallerdev]
AlexRussia_ has quit [Quit: No Ping reply in 180 seconds.]
AlexRussia_ has joined #ruby
Xeago has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 264 seconds]
frellnet_ has joined #ruby
elaptics`away is now known as elaptics
mijicd has quit [Remote host closed the connection]
vst0rm has quit [Quit: WeeChat 0.4.3]
mijicd has joined #ruby
agent_white has quit [Quit: gnight]
mijicd has quit [Remote host closed the connection]
frellnet_ has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
r_rios has joined #ruby
mijicd has joined #ruby
dc_ has joined #ruby
blasius has joined #ruby
marahin has quit [Ping timeout: 256 seconds]
dc has quit [Ping timeout: 240 seconds]
mijicd has quit [Client Quit]
kyb3r_ has quit [Read error: Connection reset by peer]
ferr has quit [Ping timeout: 240 seconds]
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
mostlybadfly has joined #ruby
mijicd has joined #ruby
kyb3r_ has joined #ruby
blasius has quit [Ping timeout: 245 seconds]
lxsameer has quit [Read error: Connection reset by peer]
mijicd has quit [Remote host closed the connection]
emergion has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
gigetoo has quit [Remote host closed the connection]
frellnet has joined #ruby
gigetoo has joined #ruby
mijicd has joined #ruby
postmodern has quit [Quit: Leaving]
Deele has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
Cort3z has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
alem0lars has quit [Quit: Going AFK...]
mijicd has quit [Remote host closed the connection]
spider-mario has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
frellnet has quit [Ping timeout: 255 seconds]
anaeem1 has joined #ruby
Perceptes has quit [Quit: Leaving.]
frellnet has joined #ruby
gigetoo has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
Atttwww has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
hgl has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
r_rios has quit [Ping timeout: 245 seconds]
Hobogrammer has quit [Ping timeout: 260 seconds]
mehlah has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
funktor has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
alem0lars has joined #ruby
oo_ has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
oo_ has quit [Remote host closed the connection]
mijicd has joined #ruby
jarto has joined #ruby
funktor has joined #ruby
pen has quit []
frellnet has quit [Ping timeout: 250 seconds]
ylluminarious has joined #ruby
frellnet has joined #ruby
jarto has quit [Client Quit]
jarto_ has joined #ruby
klaut has quit [Remote host closed the connection]
jarto_ has quit [Read error: Connection reset by peer]
<vifino> meh, ruby behaves weird
<vifino> vifino -> #ocbots: yus
<vifino> vifino -> #ocbots :?say: w
Xeago has joined #ruby
<vifino> This is just meh
<vifino> It seems that it shifts :
<jhass> wat
<vifino> yes
<vifino> I dont even why
<vifino> The command was "?say :w"
<jhass> what's the code again?
<vifino> It got it as "?say: w"
<vifino> .-.
funktor has quit [Read error: Connection reset by peer]
funktor_ has joined #ruby
<vifino> pls no haxxor me https://github.com/vifino/Numatron
<vifino> xD
gigetoo has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
gigetoo has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
marahin has joined #ruby
marahin is now known as Guest44944
frellnet has joined #ruby
<jhass> so what line does generate that output again?
kaspergr_ has quit [Remote host closed the connection]
mike32 has joined #ruby
<vifino> well, its probably the socket messing with mem
<vifino> *me
Wolland has quit [Remote host closed the connection]
Lewix has joined #ruby
kaspergrubbe has joined #ruby
Morkel has quit [Quit: Morkel]
nateberkopec has joined #ruby
<vifino> jhass: found something?
<vifino> Because thats certainly weird behaviour
<jhass> I don't think the code I'm looking at is the code you have running
toastynerd has quit [Ping timeout: 260 seconds]
<vifino> err, yes?
<vifino> I do run my own bot
<jhass> there's no place where you would filter commands for starting with ?
<vifino> t
<vifino> *I think the regex does that
frellnet has quit [Ping timeout: 240 seconds]
<vifino> ye
<vifino> s
<vifino> line 139
<jhass> /^:(.*)!(.*)@(.*) PRIVMSG (.*) :(.*)/ that one?
<vifino> nope, 139
<jhass> wha, oh
<jhass> jeez, I remember why I renamed that method
frellnet has joined #ruby
<vifino> q_q
asmodchan has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
<vifino> brb
mijicd has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 240 seconds]
Guest44944 is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
asmodchan has quit [Client Quit]
nateberkopec has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
<vifino> back
hmsimha has quit [Ping timeout: 250 seconds]
<jhass> vifino: I think the greedyness of the regex fools you
<vifino> :o
<vifino> how can I fix that darn thing?
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
<vifino> oh
<vifino> cool
funktor has joined #ruby
<vifino> Damn, you are useful
r_rios has joined #ruby
mijicd has joined #ruby
funktor_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
xcesariox has joined #ruby
namxam has joined #ruby
Takle has joined #ruby
phoo1234567 has joined #ruby
jdj_dk has joined #ruby
yfeldblum has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 245 seconds]
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
<jhass> if so, how about http://paste.mrzyx.de/pcb6c1595/
* vifino tries to put jhass in his pocket
<vifino> jhass: That seems like an old version
<vifino> very old, many change
<jhass> I only see that settings stuff as new
<jhass> and that plesky admins array
<jhass> easily ported (or yet better replaced by some json or yaml config)
jottr_ has quit [Ping timeout: 250 seconds]
<apeiros> .* is generally a bad idea if followed by other places with .*
<vifino> I tried yaml, but it errored all over the place
<apeiros> be specific
<vifino> yeah, i am relativly new to regex
<apeiros> [^!]* etc.
<vifino> lua patterns ftw
jottr_ has joined #ruby
<jhass> you can have that part of the hostmask empty?
<apeiros> (.*)!(.*)@(.*) with a string like "foo!bar@baz privmsg @apeiros hi there!" e.g.
<apeiros> the middle .* easily matches up to @ of @apeiros
timonv_ has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
klaut has joined #ruby
gigetoo has joined #ruby
timonv_ has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
mehlah has quit [Quit: Leaving...]
frellnet has joined #ruby
<vifino> apeiros: But there is no @ in there
kaspergrubbe has quit [Remote host closed the connection]
<vifino> nick is never an @
<vifino> only # or nothing
<vifino> ( the prefix )
<apeiros> @vifino oh look there's an @
<jhass> he meant "foo!bar@baz privmsg #whatever :@apeiros hi there!"
<vifino> oh
jdj_dk has quit [Remote host closed the connection]
<vifino> .-.
<apeiros> anyway, more generally speaking anyway.
dawkirst has joined #ruby
* apeiros overuses anyway :-|
<vifino> What should I exchange for it?
<apeiros> 13:23 apeiros: be specific
<apeiros> 13:23 apeiros: [^!]* etc.
<vifino> i dont even .-.
<jhass> [^!]+ no?
blasius has joined #ruby
Cort3z has joined #ruby
<apeiros> sure, if the quantifier should be {1,} instead of {0,}
<jhass> pretty sure that part of a hostmask can't be empty
<shevy> vifino, you can use http://rubular.com/ for online regex testing in ruby
<apeiros> I haven't read RFC1459 or 2812 in a while
<apeiros> and I somewhat guess neither did vifino
jottr_ has quit [Ping timeout: 245 seconds]
<vifino> ._.
<apeiros> those rfc's contain irc protocol spec
GriffinHeart has joined #ruby
funktor_ has joined #ruby
<shevy> and dead bodies
<apeiros> you should read it some time. keep in mind though that there's plenty of ircd authors who can't be bothered to adhere to specs either.
<vifino> apeiros: Actually, i am pretty fit in irc specs, well, some parts atleast
timonv_ has quit [Ping timeout: 256 seconds]
Slavox is now known as Slavox|AFK
<apeiros> vifino: hard to believe given that you don't even terminate messages with \r\n :-p
asmodlol has joined #ruby
<vifino> i do, actually
<vifino> .-.
atraylen has joined #ruby
<shevy> this will become the best IRC bot ever
frellnet has quit [Ping timeout: 260 seconds]
<apeiros> ah, true. my fault. you wrote your own send.
frellnet has joined #ruby
<jhass> shevy: uhm, well, did you look at the code?
<vifino> yes
blackmesa has quit [Ping timeout: 245 seconds]
<jhass> (not my version of it)
funktor has quit [Ping timeout: 250 seconds]
<shevy> jhass yeah, remember, you also gave some advice
<shevy> he'll improve it based on that feedback
dawkirst has quit [Ping timeout: 240 seconds]
<shevy> of course he may have to rewrite it a few times completely
<vifino> ._.
<apeiros> rescue Exception => detail # <-- never do that
blasius has quit [Ping timeout: 245 seconds]
<apeiros> rescue => detail # use this
Cort3z has quit [Ping timeout: 255 seconds]
<apeiros> Exception covers things you rarely ever should rescue. like NoMemoryError and Interrupt
<shevy> yesterday vifino said he'll never again show code
<vifino> :3
<shevy> what's with that upset smiley
<shevy> vifino is your bot connected here?
<vifino> Nope, espernet
<shevy> like eval... uhm
<shevy> where did it go
<shevy> espernet?
<apeiros> somehow I read ":3" as "buttface" :D
<shevy> isn't esper a car?
<vifino> .-.
<vifino> irc.esper.net .-.
GriffinHeart has quit [Ping timeout: 245 seconds]
funktor_ has quit [Ping timeout: 256 seconds]
<jhass> apeiros: do you know the south park episode where butters gets "stuff" on his chin?
<apeiros> he gets cartman'ed? :)
gigetoo has quit [Ping timeout: 264 seconds]
<shevy> jhass you damn nerd!
<apeiros> sure
<jhass> apeiros: no, the other one
<apeiros> oh
<shevy> vifino now you see how creepy the folks in here are
<apeiros> hm, I probably have seen it
<shevy> the creepiest among them all is Hanmac
<apeiros> oh, that one
<apeiros> hrm, but don't remember the story
<vifino> shevy: o_o
<jhass> I think it looks like that
<jhass> some getting the show accommodations when they invite the "special people"
jottr_ has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
* vifino slowly backs off
frellnet has joined #ruby
gigetoo has joined #ruby
Slavox|AFK is now known as Slavox
ARCADIVS has quit [Quit: WeeChat 0.4.3]
warprobot has joined #ruby
warprobot has quit [Client Quit]
claymore has quit [Ping timeout: 260 seconds]
frellnet has quit [Ping timeout: 240 seconds]
jcromartie has joined #ruby
frellnet has joined #ruby
j416 has joined #ruby
ecksit has quit [Quit: Computer has gone to sleep.]
timonv_ has joined #ruby
m3_del has joined #ruby
claymore has joined #ruby
aoeu256 has joined #ruby
elaptics is now known as elaptics`away
gigetoo has quit [Ping timeout: 255 seconds]
yeticry has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
frellnet has joined #ruby
gigetoo has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
m3_del has quit [Ping timeout: 256 seconds]
atraylen has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
yeticry has joined #ruby
frellnet has joined #ruby
roolo has quit [Quit: Leaving...]
Lewix has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
Cort3z has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
frellnet has joined #ruby
<shevy> vifino so did you learn something new today
<vifino> yes
<shevy> I am reading the pickaxe and I can teach you something now vifino
timonv_ has quit [Remote host closed the connection]
<shevy> vifino, objects in ruby have a #taint method
<vifino> yus
<shevy> >> x = 'foo'; x.taint; x << 'yo'
<vifino> i read about that
<shevy> oh damn
<shevy> where is the bot?
<shevy> :(
<vifino> okay, i will play ruby bot today!
<shevy> you should connect your bot to #ruby
<shevy> I think I have a semi-bot too, let's see
<vifino> => "fooyo"
<vifino> shevy: meh, its "me only" ruby >:D
shevy3 has joined #ruby
<shevy3> test
<shevy> see
<vifino> what da heck!
<vifino> where is shevy2!
<vifino> xD
Hanmac has joined #ruby
<shevy> I forgot how to control it ...
<vifino> ...
<shevy> reading up my own documentation, which sucks :P
<shevy3> This is a colourcolour test.
<vifino> dafuq is documentation >:D
<shevy> omg
shevy3 has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 240 seconds]
<shevy> the colours no longer work
<vifino> lol
amystephen has joined #ruby
frellnet has joined #ruby
<shevy> damn
<shevy> when you do: $SAFE = 3
<shevy> in irb, it crashes
<vifino> o-o
<shevy> SecurityError: Insecure operation - eval
<vifino> lol
<shevy> ok let's quiz you vifino
<shevy> say you have an array
<vifino> k
<shevy> what does it mean when you do: [-1] on it ?
<vifino> counts backwards?
gigetoo has quit [Ping timeout: 264 seconds]
<shevy> kinda
<shevy> next question
<vifino> i dont even D:
<shevy> is there another way to call [] on an array?
<vifino> yeah
<vifino> i just dont know whats it called xD
<shevy> array = %w( abc def ghi )
<vifino> ...wat
<shevy> can you give the example with this array here
jcromartie has joined #ruby
<shevy> can you first show how it is called via []
toastynerd has joined #ruby
<nobodyzzz> slice?
gigetoo has joined #ruby
<nobodyzzz> at?
frellnet has quit [Ping timeout: 245 seconds]
<vifino> array[1]?
<shevy> hmm
<shevy> yeah vifino
<vifino> probably wrong! D:
<vifino> \o/
<shevy> no it is not wrong
Hanmac1 has joined #ruby
<shevy> array.at seems to work as well
<shevy> and so does array.slice
<shevy> so let me ask the question in a different way
<shevy> vifino, how does the ruby parser see array[1] ?
frellnet has joined #ruby
<vifino> first element from array
<vifino> ?
<shevy> well 0 would be the first, but that is not the important part
<vifino> vifino: Knowing ruby since.... yesterday xD
<shevy> vifino, can you write array[1] differently?
<shevy> and it would still work?
<vifino> array.at(1)?
<shevy> where did the [] go
Hanmac has quit [Ping timeout: 240 seconds]
<vifino> idk D:
<shevy> we need a way that includes the []
lolmaus has joined #ruby
<vifino> No idea xD
<shevy> vifino, compare your example with array[1]
<shevy> what syntactical elements are different or missing?
<vifino> uhm, "[]"?
<shevy> only [] ?
luckyruby has quit [Remote host closed the connection]
<vifino> and "."
<shevy> yes
<shevy> the .
<vifino> since [] isnt a function call
<nobodyzzz> send(:[], 1) :D
<shevy> do you think you can make array[1] work with . ?
luckyrub_ has joined #ruby
nateberkopec has joined #ruby
<shevy> yes, .send would also be possible
toastynerd has quit [Ping timeout: 250 seconds]
<shevy> you learned that yesterday vifino
funktor has joined #ruby
<vifino> well, i can call a func on the content of array[1]
<nobodyzzz> arrayy.[](1) works too
danijoo has quit [Read error: Connection reset by peer]
<shevy> damn it nobodyzzz
<vifino> whaa~~~
<nobodyzzz> oops
<shevy> I must kill him!
<vifino> Mind = blown
krz has joined #ruby
<shevy> well vifino you see the '.' yes?
<vifino> yes
<shevy> ok good
<shevy> look at your example above
danijoo has joined #ruby
<shevy> <vifino> array.at(1)
alem0lars has quit [Ping timeout: 240 seconds]
<shevy> so when nobodyzzz included (1) there, this is the same as in your example
<vifino> interesting
<shevy> the only difference is on [] which is actually the name of the method
frellnet has quit [Ping timeout: 250 seconds]
<vifino> neat
<shevy> and you can define [] on your class too:
<shevy> class Foo
<vifino> O_O
<shevy> def self.[](i)
<shevy> Foo[]
frellnet has joined #ruby
<vifino> Mind = nuked
<shevy> now you know that the ruby parser is a very strange beast
<vifino> yeah
gigetoo has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<vifino> Also, there are many different ruby versions and things, whats the difference between the "stock" ruby and jruby or rubinius
<vifino> ?
claymore has quit [Ping timeout: 240 seconds]
hgl_ has joined #ruby
gigetoo has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
<arup_r> shevy: Go sleep... You helped long hours,,, take rest. :)
<vifino> ^
claymore has joined #ruby
hgl has quit [Ping timeout: 256 seconds]
Morkel has joined #ruby
burritolove has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
<guardian> hello is there a way to strip a string and strip only new lines?
<apeiros> guardian: gsub
<guardian> started fiddling with regexps but it's not so trivial
<jhass> .delete
<apeiros> jhass: that'll also affect the middle of the string, i.e. not strip
<apeiros> guardian: by "strip", you do mean at front and end of string, not in the middle?
<guardian> I want the trailing potentially multiple \n to be removed but I don't want to remove blank lines in the middle of the string
<guardian> apeiros: yeah strip as in String#strip but that would leave space and tabs untouched
<apeiros> gsub(/\n*\z/, '') # remove trailing
<shevy> arup_r I already slept, didn't you notice the many hours of inactivity from me before :(
gigetoo has quit [Ping timeout: 240 seconds]
<guardian> apeiros: what's \z?
<apeiros> gsub(/\A\n|\n*\z/, '') # remove leading and trailing
<apeiros> \z = end of string, \A = start of string
<guardian> ok
<guardian> trying
<apeiros> note: ^ is start of *line*, not string. and $ is end of *line*, not string
<apeiros> many mistake that as those differ in other languages.
<arup_r> shevy: :-)
<guardian> ah yeah
<apeiros> gsub(/\n*\z/, '') # <-- actually here sub is sufficient, as you only have a single match
<guardian> I tried with ^ and $
<guardian> and it was hairy
<shevy> hairy
<shevy> dirty hairy
<guardian> didn't know about \A and \z, game changer thanks for letting me learn something new
Martxel has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
<guardian> apeiros: should I augment that with optional \r ?
frellnet has joined #ruby
<apeiros> guardian: that depends on your use-case
blasius has joined #ruby
<apeiros> gsub(/\A[\r\n]*|[\r\n]*\z/, '') # remove leading and trailing \r and \n's
timonv_ has joined #ruby
<arup_r> Is there anyone using openSUSE ?
dawkirst has joined #ruby
bluenemo has joined #ruby
<apeiros> I think darix over in #ruby-lang uses suse
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timmee has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
<guardian> thanks
frellnet has quit [Ping timeout: 264 seconds]
lolmaus has quit [Ping timeout: 260 seconds]
frellnet has joined #ruby
ra4king1 is now known as ra4king
lolmaus has joined #ruby
blasius has quit [Ping timeout: 264 seconds]
dawkirst has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
Lewix has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
phoo1234567 has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 240 seconds]
Notte has joined #ruby
gigetoo has joined #ruby
frellnet has joined #ruby
fabrice31 has joined #ruby
lxsameer has quit [Quit: Leaving]
<shevy> anyone of you ever defined to_ary ?
timonv_ has quit [Ping timeout: 264 seconds]
phoo1234567 has joined #ruby
mehlah has joined #ruby
zorak has quit [Read error: Connection reset by peer]
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
ccooke has joined #ruby
NoticeIsOnYou has quit [Quit: Computer has gone to sleep.]
NoticeIsOnYou has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
<shevy> why do we have .reverse_each when this seems equivalent to .reverse.each ?
<jhass> doesn't create an intermediate array I guess
namxam has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
<shevy> aha
<shevy> so it should be cheaper to do .reverse_each
Cort3z has quit [Ping timeout: 240 seconds]
<jhass> yeah
Macacity has quit [Quit: Connection closed for inactivity]
webgen has quit [Quit: Leaving]
yfeldblum has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
<shevy> yeah benchmark says the same
<shevy> Testing: .reverse_each 4.000000 0.000000 4.000000 ( 4.000443)
<shevy> Testing: .reverse.each 5.530000 0.000000 5.530000 ( 5.517684)
NoticeIsOnYou has quit [Ping timeout: 250 seconds]
frellnet has quit [Ping timeout: 264 seconds]
bluenemo has quit [Ping timeout: 255 seconds]
<vifino> \o/
<vifino> Lua in ruby!
frellnet has joined #ruby
<vifino> >:D
gigetoo has joined #ruby
<vifino> gems ftw
Martxel_ has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
soulcake has joined #ruby
<shevy> hmm
<shevy> do you know how to install a gem vifino
<vifino> Yes
Notte has quit [Remote host closed the connection]
Lewix has joined #ruby
<vifino> gem install <gem>
<vifino> ez as pie
<vifino> :3
frellnet has quit [Ping timeout: 240 seconds]
Martxel has quit [Ping timeout: 240 seconds]
<shevy> yeah
namxam has joined #ruby
frellnet has joined #ruby
hgl_ has quit [Remote host closed the connection]
matson has quit [Remote host closed the connection]
hgl_ has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
namxam has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
gigetoo has joined #ruby
Takle has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 250 seconds]
funktor has left #ruby [#ruby]
frellnet_ has joined #ruby
frellnet has quit [Ping timeout: 264 seconds]
<pontiki> pie is only easy if you use a premade pie crust :>
hgl__ has joined #ruby
namxam has joined #ruby
toastynerd has joined #ruby
Xeago has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
hgl_ has quit [Ping timeout: 264 seconds]
frellnet_ has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
nateberkopec has joined #ruby
amacou has joined #ruby
timmee has quit []
vincent_ has joined #ruby
gigetoo has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
mikecmpbll has joined #ruby
toastynerd has quit [Ping timeout: 260 seconds]
and77 has joined #ruby
<and77> hi there - could anyone kindly tell me how I can load a bytecode compiled code back into Ribinius? no success with the instructions here because of "no such file" error: http://rubini.us/2011/03/17/running-ruby-with-no-ruby/
NoticeIsOnYou has joined #ruby
<and77> *Rubinius
frellnet has quit [Ping timeout: 260 seconds]
frellnet has joined #ruby
mostlybadfly has joined #ruby
sepp2k has joined #ruby
namxam_ has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
GriffinHeart has joined #ruby
namxam has quit [Ping timeout: 245 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
Cort3z has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
frellnet has quit [Ping timeout: 245 seconds]
elico has quit [Read error: Connection reset by peer]
elico has joined #ruby
frellnet has joined #ruby
vincent_ has quit [Remote host closed the connection]
sputnik1_ has joined #ruby
vincent_ has joined #ruby
claymore has quit [Ping timeout: 260 seconds]
coffeina has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
frellnet has quit [Ping timeout: 260 seconds]
frellnet has joined #ruby
<shevy> pontiki knows when it comes about cooking
claymore has joined #ruby
gigetoo has joined #ruby
blasius has joined #ruby
aalmenar has quit [Quit: No Ping reply in 180 seconds.]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
aalmenar has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
mijicd has joined #ruby
dontwork has joined #ruby
timonv_ has joined #ruby
alexju has joined #ruby
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
frellnet has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
cesare has joined #ruby
blasius has quit [Ping timeout: 264 seconds]
vadzimt has quit [Ping timeout: 240 seconds]
and77 has left #ruby [#ruby]
klaut has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 264 seconds]
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
Cort3z has quit [Ping timeout: 250 seconds]
burritolove has quit [Quit: burritolove]
gigetoo has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
jcromartie has joined #ruby
Xeago has joined #ruby
claymore has joined #ruby
frellnet has quit [Ping timeout: 255 seconds]
namxam_ has quit [Remote host closed the connection]
frellnet has joined #ruby
Lewix has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Vivekananda_y510 has quit [Ping timeout: 255 seconds]
mijicd has quit [Remote host closed the connection]
NoticeIsOnYou has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
mikecmpbll has joined #ruby
bmurt has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
bmurt has quit [Client Quit]
gigetoo has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
AskSteve has joined #ruby
AskSteve has left #ruby [#ruby]
hgl__ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
hgl__ has joined #ruby
mijicd has joined #ruby
mityaz has joined #ruby
mijicd has quit [Remote host closed the connection]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
gigetoo has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
cashnguns has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
hgl___ has joined #ruby
frellnet has joined #ruby
elaptics`away is now known as elaptics
mijicd has joined #ruby
phoo1234567 has quit [Quit: Leaving]
alem0lars has joined #ruby
mechanicalduck_ has quit [Ping timeout: 250 seconds]
hgl__ has quit [Ping timeout: 245 seconds]
bmurt has quit []
toastynerd has joined #ruby
phoo1234567 has joined #ruby
hgl___ has quit [Client Quit]
frellnet has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
spastorino has joined #ruby
carraroj has quit [Ping timeout: 256 seconds]
gigetoo has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
amacou has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
frellnet has quit [Ping timeout: 255 seconds]
frellnet has joined #ruby
namxam has joined #ruby
linoj has joined #ruby
bluenemo has quit [Ping timeout: 250 seconds]
Arkaniad|Laptop has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
Neomex has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
amacou has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
frellnet has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
frellnet has joined #ruby
<arup_r> How can I lazily assgin those class variables https://gist.github.com/aruprakshit/119672afdacfdcc25293 .. Otherwise those hash entries for subject is set to nil for filename and dirname ... Idea please.
<apeiros> arup_r: you don't have class variables. @@this_is_a_class_var
<arup_r> not subject.. for **body** key
<arup_r> Yes Ihave check method initialize in notify.rb
<arup_r> Only problem is the Hash is being constructed at the class load time..
amacou has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 250 seconds]
<arup_r> so new values are not getting into the Hash..
amacou has joined #ruby
frellnet has joined #ruby
<Mon_Ouie> Why are you using class variables?
<apeiros> are you usre you pasted the right link?
<apeiros> I don't see a hash
<Mon_Ouie> The file_name and dir_name seem to be properties of each instance
<arup_r> Sorry there is a problem
<arup_r> let me fix it first
<Mon_Ouie> apeiros: Scroll down?
<apeiros> ah, second file
<apeiros> and there'd be class vars too
<apeiros> arup_r: in most cases you'll want to avoid @@vars
<shevy> I think I have just decided to test every class I write in big projects
<apeiros> and the paste you've given makes me wonder a lot why you use class vars at all
amacou_ has joined #ruby
thesheff17 has joined #ruby
fabrice31 has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
amacou has quit [Read error: Connection reset by peer]
<arup_r> Ok.. How then the hash I will put..
namxam has quit [Remote host closed the connection]
namxam has joined #ruby
<arup_r> If I use @file_name it will become a instance variable of the class instances
<arup_r> sorry it will be class instance variable... not instance variable of instaces..
uokesita has quit [Quit: uokesita]
frellnet has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
frellnet has joined #ruby
namxam has quit [Client Quit]
SilkFox has joined #ruby
blasius has joined #ruby
nateberkopec has quit [Quit: Leaving...]
asmodlol has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
<arup_r> apeiros: Your suggestion is most welcome.. My thought didn't work.. The thing is I need put those Hash some where, so that its values are defined dynamically..
<arup_r> basically the value of the key :subject
yfeldblum has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
frellnet has joined #ruby
<arup_r> sorry *summary key
blasius has quit [Ping timeout: 240 seconds]
lukec has joined #ruby
dontwork has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
<arup_r> damn! the key *body... the value of it I want to be set dynamically..
nateberkopec has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
AndChat| has quit [Read error: Connection reset by peer]
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
<arup_r> Mon_Ouie: Should I use Struct for this ? to create those Hash
Pepek has joined #ruby
SilkFox has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
<Mon_Ouie> Why would you do that?
<Mon_Ouie> It just looks like they shouldn't be defined as constants — since they're clearly not constant
<arup_r> Great point..
NoticeIsOnYou has joined #ruby
t_p has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
<arup_r> Mon_Ouie: Thanks for the hints.. Today it makes sense to me... What constants are.... I will modify the code and I will show you
NoticeIsOnYou has quit [Ping timeout: 250 seconds]
frellnet has quit [Ping timeout: 250 seconds]
eka has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
GlenK has joined #ruby
frellnet has joined #ruby
gbaway has joined #ruby
kotk has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
parzo has joined #ruby
xcesariox has quit [Ping timeout: 250 seconds]
frellnet has quit [Ping timeout: 264 seconds]
gbaway has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
<arup_r> Updated and working - https://gist.github.com/aruprakshit/119672afdacfdcc25293 Mon_Ouie:
gbaway has joined #ruby
Pepek has left #ruby ["Odcházím"]
ctp has joined #ruby
<vifino> How can I remove unused spaces, such that " test " gets "test"
<vifino> ?
<jhass> .strip
parzo has quit [Ping timeout: 255 seconds]
<vifino> Does that work with multi-word constructs?
<canton7> #gsub
<vifino> like " test 1 2 3 " gets "test 1 2 3"
<jhass> yes
<canton7> " test 1 2 3 ".gsub(' ', '')
parzo has joined #ruby
<canton7> >> " test 1 2 3 ".gsub(' ', '')
* canton7 pokes the bot
<arup_r> canton7: that's gone... Don't try
<canton7> :(
<vifino> doesnt that remove every space?
<canton7> read the docs for gsub ;)
<jhass> the gsub does, .strip doesn't
<arup_r> Yes... #strip is good.
<jhass> there's #lstrip and #rstrip for only either side
<arup_r> for trailing and ending
<canton7> ah, and I misunderstood what you wanted - thought you wanted all spaces to be removed :P
<vifino> ohok
<vifino> oh no! :P
coffeina has quit [Quit: Wychodzi]
frellnet has quit [Ping timeout: 256 seconds]
<canton7> #strip, then, like everyone's saying :P
gbaway has quit [Client Quit]
xcesariox has joined #ruby
frellnet has joined #ruby
<arup_r> vifino: it seems your place is too *sunny* today.. So you are not able to concentrate :p
banisterfiend has quit [Quit: ZNC - http://znc.in]
<vifino> .-.
gigetoo has quit [Ping timeout: 245 seconds]
<arup_r> shevy: what's the temperature there today,.., workable.. ? ;)
parzo has quit [Ping timeout: 240 seconds]
alem0lars has quit [Quit: Going AFK...]
gigetoo has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
mike32 has quit [Quit: Leaving]
lolmaus has joined #ruby
parzo has joined #ruby
Fusl has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
ascarter has joined #ruby
asmodlol has joined #ruby
GriffinHeart has joined #ruby
linoj has quit [Quit: linoj]
toastynerd has joined #ruby
SCommette has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
lolmaus has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
nateberkopec has quit [Quit: Leaving...]
frellnet has joined #ruby
angorabedsock has joined #ruby
<vifino> How can I split a string by pipes, while allowing escaping, such as "\|"?
gigetoo has quit [Ping timeout: 240 seconds]
<banister_> vifino you have to write that yourself
<vifino> But how?
<banister_> vifino learn about regular expressions
<jhass> .split(/(?!<\\)|/) or something
GriffinHeart has quit [Ping timeout: 245 seconds]
<apeiros> that'll only work if escaping \ is not allowed
<apeiros> scan(/(?:[^\\]|\\[^|])*/) iirc should work with scan. afaik there's a way with split too, but I forgot how
gigetoo has joined #ruby
toastynerd has quit [Ping timeout: 264 seconds]
SilkFox has joined #ruby
blackmesa has joined #ruby
mr_snowf1ake has joined #ruby
frellnet has quit [Ping timeout: 260 seconds]
frellnet has joined #ruby
<mozzarella> yeah, use split
centrx has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vadzimt has joined #ruby
andrewlio has joined #ruby
linoj has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
orionstein is now known as orionstein_away
blackmesa has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
parzo has quit [Read error: Connection timed out]
<shevy> arup_r worse than yesterday; 33 ° C
<vifino> my best trial was .split(/(?<!\\)\|/) :/
gigetoo has quit [Ping timeout: 260 seconds]
<vifino> Splits by |
<mozzarella> jhass: can you explain to me that ?!< in the capture group? would ?<! do the same?
<vifino> but doesnt care about \|
<vifino> err
<vifino> it does care
<vifino> it splits
<jhass> mozzarella: I meant ?<!
<arup_r> buy ice chunk..seat on top of it..
<arup_r> :-
Martxel_ has quit [Quit: q]
orionstein_away is now known as orionstein
<jhass> vifino: note that "\|" and "\\|" are two different things and you're probably looking for the later
<mozzarella> still not sure what it does, lol
<vifino> oh
<vifino> right
<mozzarella> but I know I needed it at some point
parzo has joined #ruby
<vifino> :>
gigetoo has joined #ruby
<shevy> arup_r I dunno ... worse is that work starts tomorrow, I have no idea how to survive the temperature at work
<jhass> mozzarella: negative lookbehind assertion, only matches the following character if it isn't preceded by the specified sequence
<vifino> vifino ?rb "test | test".split(/(?<!\\)\\|/)
<vifino> @Numatron=> ["t", "e", "s", "t", " ", "|", " ", "t", "e", "s", "t"]
<vifino> :/
kaspergrubbe has joined #ruby
<jhass> /\\|/ matches \ or nothing
frellnet has quit [Ping timeout: 260 seconds]
frellnet has joined #ruby
<mozzarella> >> "test | test".split(/(?<!\\)|/)
parzo_ has joined #ruby
<vifino> jhass: But if I add another backslash, to escape |, it doesnt wanna work
parzo has quit [Ping timeout: 256 seconds]
<jhass> mozzarella: that will match nothing not preceded by \ or nothing
<mozzarella> where is the bot
<jhass> /(?<!\\)\|/
<centrx> >> :quack_quack
<mozzarella> exactly
<mozzarella> >> "test | test".split(/(?<!\\)\|/)
SilkFox has quit [Ping timeout: 272 seconds]
sigurding has joined #ruby
mijicd has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
<mozzarella> didn't know | would work outside of a capture group
Cort3z has joined #ruby
alem0lars has joined #ruby
vadzimt has quit [Quit: Textual IRC Client: www.textualapp.com]
frellnet has quit [Ping timeout: 245 seconds]
gigetoo has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
<vifino> regex is so confusing :<
<vifino> guess I have to do dirty hax
blasius has joined #ruby
<vifino> Like replacing the escaped thing with a random string
gigetoo has joined #ruby
<jhass> apeiros presented an alternative that should handle escaping \
nateberkopec has joined #ruby
<shevy> apeiros is drunk
<apeiros> yeah, I omitted a |, though
<vifino> :o
sigurding has quit [Ping timeout: 255 seconds]
Cort3z has quit [Ping timeout: 260 seconds]
<vifino> I didnt see apeiros's D:
sigurding_ has joined #ruby
<apeiros> "foo|bar\\|baz\\\\|quuz" --> ["foo", "bar\\|baz\\\\", "quuz"] # <-- IMO
<vifino> errr
sevvie has joined #ruby
<vifino> wat
<apeiros> first | is not escaped -> split. second | is escaped -> don't split. third is preceded by an escaped \, so not escaped itself -> split
<vifino> +vifino?rb "test | test".scan(/(?:[^\\]|\\[^|])*/)
<vifino> @Numatron=> ["test | test", ""]
<vifino> meh
frellnet has quit [Ping timeout: 250 seconds]
<apeiros> but I did something wrong in my scan expression
frellnet has joined #ruby
dbasch has joined #ruby
blasius has quit [Ping timeout: 250 seconds]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has quit [Quit: Morkel]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<apeiros> ah, stupid
<shevy> I am here
<apeiros> "foo|bar\\|baz\\\\|quuz".scan(/(?:[^|\\]|\\.)+/) # => ["foo", "bar\\|baz\\\\", "quuz"]
<apeiros> there. proper scan expression. my first one had two mistakes. missed the | in the first char class and used [^|] instead of . in the escape sequence matcher
luckyrub_ has quit [Quit: Leaving...]
<centrx> what comes after quuz
<shevy> qqqq
<apeiros> zebus
<shevy> zomg
frellnet has quit [Ping timeout: 245 seconds]
<shevy> what comes bfore quuz?
<shevy> *before
gigetoo has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
frellnet has joined #ruby
emergion has quit [Quit: Connection closed for inactivity]
<apeiros> vifino: ^
danijoo has quit [Read error: Connection reset by peer]
<vifino> :O
danijoo has joined #ruby
gigetoo has joined #ruby
parzo_ has quit [Read error: Connection timed out]
zkay11 has joined #ruby
foredoomed has joined #ruby
parzo has joined #ruby
NoticeIsOnYou has joined #ruby
Soda has joined #ruby
<shevy> vifino will become a true ruby master
<vifino> :>
frellnet has quit [Ping timeout: 240 seconds]
jmbrown412 has joined #ruby
alem0lars has quit [Quit: Going AFK...]
arya_ has joined #ruby
frellnet has joined #ruby
foredoomed has quit [Client Quit]
foredoomed has joined #ruby
foredoomed has quit [Remote host closed the connection]
zkay11 has left #ruby [#ruby]
<dopie> Tea Leaf Academy is the best ruby academy out there
havenwood has quit [Remote host closed the connection]
SilverKey has joined #ruby
alem0lars has joined #ruby
jmbrown412 has quit [Read error: Connection reset by peer]
SilverKey has quit [Client Quit]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KanKava has joined #ruby
jmbrown412 has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
NoticeIsOnYou has quit [Ping timeout: 256 seconds]
linoj has quit [Quit: linoj]
parzo has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
Xeago has quit [Remote host closed the connection]
<wasamasa> "Ruby and MongoDB Web Development Beginner's Guide by Gautam Rege (Packt Publishing) [2012]"
<wasamasa> I'm not sure what to think of this
diegoviola has joined #ruby
<wasamasa> beginners and mongodb?
dbasch has quit [Quit: dbasch]
nateberkopec has quit [Quit: Leaving...]
gigetoo has joined #ruby
parzo has quit [Ping timeout: 250 seconds]
<centrx> wasamasa, I'm not sure what to think of it either. What are you talking about>?
<wasamasa> centrx: title of an ebook I came along
parzo has joined #ruby
linoj has joined #ruby
ctp has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
shredding has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Read error: Connection reset by peer]
Darryl has joined #ruby
burritolove has joined #ruby
klaut has joined #ruby
burritolove has quit [Client Quit]
veleno has joined #ruby
havenwood has joined #ruby
parzo has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<atmosx> what ruby library do you use to talk to APIs?
parzo has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
arup_r has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
sevvie has quit [Quit: leaving]
gigetoo has quit [Ping timeout: 255 seconds]
<veleno> hello. I’m using ruby 2.1.1, and for some reason the method array.sample(3,rng) is not being recognized. What am I doing wrong ? https://gist.github.com/vschiavoni/0cc6c7bf254bcaf55552
<centrx> atmosx, each API is different
<centrx> atmosx, If it's URLs with XML, I suppose Nokogiri
<atmosx> centrx: Yeah that's what I thought, nokogiri.. although I'm looking into this https://github.com/Zorbash/response_mate
Dreamer3 has quit [Quit: Leaving...]
<centrx> veleno, Notice in the documentation that the second argument is a named argument
gigetoo has joined #ruby
cesare has quit [Ping timeout: 250 seconds]
<havenwood> veleno: array.sample(3, random: rng)
<veleno> indeed … i did not notice that. thanks !
<havenwood> oh, centrx just said
Shidash has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
<havenwood> coffee... \o/
amystephen has quit [Ping timeout: 244 seconds]
<atmosx> havenwood: :D
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frellnet has joined #ruby
sigurding_ has quit [Quit: sigurding_]
lkba has quit [Ping timeout: 240 seconds]
manlycode has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
toastynerd has joined #ruby
shredding has quit [Quit: shredding]
frellnet has quit [Ping timeout: 245 seconds]
dangerou_ has quit [Read error: Connection reset by peer]
frellnet has joined #ruby
dangerousdave has joined #ruby
manlycode has quit [Remote host closed the connection]
shredding has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
Sauvin has quit [Remote host closed the connection]
mr_snowf1ake has quit [Quit: Leaving]
manlycode has joined #ruby
vincent_ has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 250 seconds]
sjouke has joined #ruby
<sjouke> What is a good resource for learnign tdd with ruby?
alexju has quit [Remote host closed the connection]
gigetoo has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 250 seconds]
Shidash has quit [Ping timeout: 250 seconds]
jmbrown412 has joined #ruby
fabrice31 has joined #ruby
frellnet has joined #ruby
jcromartie has joined #ruby
<mozzarella> are ruby threads green threads or "real" threads?
frellnet has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
jmbrown412 has quit [Ping timeout: 250 seconds]
timonv_ has quit [Remote host closed the connection]
asmodchan has joined #ruby
cdolan has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
jcromartie has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
<centrx> The only real thread is a process!
asmodlol has quit [Ping timeout: 264 seconds]
kireevco has joined #ruby
<jhass> mozzarella: each ruby thread has a system thread but, in MRI, due to the GVL no ruby code will run truly in parallel
yfeldblum has quit [Ping timeout: 264 seconds]
<mozzarella> centrx: no?
<mozzarella> by real thread I mean system thread
<mozzarella> jhass: what's GVL?
SilkFox has quit [Ping timeout: 256 seconds]
<jhass> global VM lock, you'll get more results with GIL (global interpreter lock)
Fire-Dragon-DoL has joined #ruby
gigetoo has joined #ruby
<sjouke> I expected this test to fail, but it doesn't look like the error on the rspec homepage http://rspec.info/
<sjouke> bowling.rb now has the content and I'm still getting that same error
krz has quit [Quit: WeeChat 0.4.3]
danijoo has quit [Read error: Connection reset by peer]
<jhass> sjouke: you need to setup the load path, if you don't do that in a spec_helper you can try running with rspec -I. ...
danijoo has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
blasius has joined #ruby
manlycode has quit []
Mikalv has quit [Quit: Lost terminal]
arya_ has quit [Ping timeout: 245 seconds]
alem0lars has quit [Quit: Going AFK...]
alem0lars has joined #ruby
timonv_ has joined #ruby
blasius has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
<havenwood> mozzarella: yes, system threads
dvb_ua has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
jcromartie has joined #ruby
Hanmac1 has joined #ruby
<havenwood> 1.8 was green threads but 1.9+ is system threads and now we have fibers
jcromartie has quit [Client Quit]
maestrojed has joined #ruby
kireevco1 has joined #ruby
papercode has quit [Ping timeout: 245 seconds]
<havenwood> gvl_acquire_common(rb_vm_t *vm)
gigetoo has joined #ruby
kireevco has quit [Ping timeout: 245 seconds]
NoticeIsOnYou has joined #ruby
m3_del has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
amacou_ has quit [Remote host closed the connection]
<sjouke> jhass: thanks for the information, that seems to be the relevant answer, I'm now getting a different error: https://defuse.ca/b/5mAFlfU9f0k2XomprRGotq
<sjouke> One that is different from rspec.info
<sjouke> I think I copy and pasted correctly
<jhass> sjouke: Bowling "#score that's a method call
<jhass> Bowling("#score")
wingedsnake has joined #ruby
<wingedsnake> hi!
<wingedsnake> s.add_development_dependency 'factory_girl', '~> 2.0'
<wingedsnake> ~> ? can any1 explain to me that that means ?
<sjouke> jhass: There's a difference between Bowling("#score") and Bowling "#score"?
FarLight has joined #ruby
<FarLight> Hello
<shevy> wingedsnake should be only for devs, that they need this gem
NoticeIsOnYou has quit [Ping timeout: 264 seconds]
m3_del has quit [Ping timeout: 240 seconds]
<jhass> sjouke: no, I was just trying to make clear that the later is a method call too
<wingedsnake> thx ppl
chrishough has joined #ruby
<FarLight> I have the following line in one of my controllers:
<FarLight> render :json => User.all.to_json(:include => :user_roles)
<jhass> FarLight: try #rubyonrails
<FarLight> oops
<FarLight> sorry
<vifino> yaaay
<vifino> I made good progress!
<vifino> :D
<vifino> Piping support :D
<sjouke> i was missing a comma
<sjouke> i think that's what you were getting at :)
<sjouke> in the describe statement, what is the text "#score" used for?
Mikalv has joined #ruby
<shevy> I keep on forgetting
<shevy> how to build an array of symbols, in shortcut notation?
<jhass> tbh. I've never seen that form of calling it
<jhass> shevy: %i, since ruby 2.0
<shevy> oh yes, %i it was, thanks. somehow I can't seem to mnemo it
gigetoo has quit [Ping timeout: 245 seconds]
Rollabunna has joined #ruby
<jhass> sjouke: normally the descriptions build up the example name: describe "foo" describe "bar" it "baz" -> "foo bar baz" failed
alem0lars has quit [Quit: Going AFK...]
maestrojed has quit [Quit: Computer has gone to sleep.]
gigetoo has joined #ruby
<wingedsnake> shevy, well I'm trying to develop my first gem :)
freerobby has quit [Quit: Leaving.]
Channel6 has joined #ruby
<shevy> wingedsnake ok, you won't need .add_development_dependency
<wingedsnake> actually i'm using the json gem
<wingedsnake> in my project
GriffinHeart has joined #ruby
<jhass> shevy: why not?
ylluminate has joined #ruby
<shevy> because he won't require it
maestrojed has joined #ruby
<pontiki> wingedsnake: have you read through the docs at http://guides.rubygems.org ?
<jhass> shevy: that's not a reason
starkhalo has joined #ruby
<shevy> the only thing he may need is .add_dependency
<jhass> shevy: how should he declare dependencies for his test suite?
<shevy> how do you know he has a test suite?
<jhass> he investigates how to add a dev dependency for factory_girl
<shevy> ok let's ask him
<shevy> wingedsnake do you have a test suite for your first gem?
<wingedsnake> bundle generated some add_development_dependency in the gemspec
<wingedsnake> spec.add_development_dependency "bundler", "~> 1.6"
<shevy> hehe
<shevy> it added itself as a dep? :)
tvw has joined #ruby
<pontiki> yes
<shevy> that's awesome
<jhass> shevy: see, so he uses bundlers helpers to build the gem, that's only needed for development
<wingedsnake> spec.add_development_dependency "bundler", "~> 1.6"
<wingedsnake> spec.add_development_dependency "rake"
Vivekananda_y510 has joined #ruby
kireevco1 has quit [Quit: Leaving.]
spastorino has quit [Quit: Connection closed for inactivity]
Soda has quit [Remote host closed the connection]
amystephen has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
Sirupsen has joined #ruby
linoj has quit [Quit: linoj]
gigetoo has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
ValicekB has quit []
blackmesa has quit [Ping timeout: 250 seconds]
amystephen has quit [Ping timeout: 244 seconds]
gigetoo has joined #ruby
alem0lars has joined #ruby
Shidash has quit [Client Quit]
Bumptious has quit [Remote host closed the connection]
amystephen has joined #ruby
kireevco1 has joined #ruby
frellnet has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
bidgy has joined #ruby
toastynerd has joined #ruby
<bidgy>
<bidgy> what is an int?
<bidgy> do I need one?
dangerousdave has joined #ruby
thesheff17 has quit [Ping timeout: 264 seconds]
<jhass> maybe?
CaptainJet has joined #ruby
ValicekB has joined #ruby
stytown has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
SCommette has joined #ruby
Cache_Money has joined #ruby
FarLight has left #ruby ["Leaving"]
toastynerd has quit [Ping timeout: 245 seconds]
angorabedsock has quit [Quit: Connection closed for inactivity]
gigetoo has joined #ruby
<shevy> wingedsnake did you build the gem yet?
alem0lars has quit [Quit: Going AFK...]
yfeldblum has joined #ruby
<wingedsnake> working on it
linoj has joined #ruby
<wingedsnake> I wrote my ruby classes already. just need to include them to the bundler gem and create 2 methods to fire the classes and i'm done
stytown has quit [Quit: stytown]
sjouke has quit [Quit: thank you for all your help]
thesheff17 has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
bidgy has left #ruby ["Leaving"]
SilkFox has joined #ruby
SilkFox_ has joined #ruby
gigetoo has joined #ruby
papercode has joined #ruby
papercode has quit [Client Quit]
papercode has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
Beoran__ has quit [Ping timeout: 240 seconds]
cesare has joined #ruby
fschuindt has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
blasius has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
blasius has quit [Ping timeout: 260 seconds]
MCDev has joined #ruby
gigetoo has joined #ruby
Beoran has joined #ruby
Morkel has joined #ruby
spider-mario has joined #ruby
freerobby has joined #ruby
dbasch has joined #ruby
IceDragon has joined #ruby
sevvie has joined #ruby
stytown has joined #ruby
stytown has left #ruby [#ruby]
rkazak has joined #ruby
stytown has joined #ruby
motto has joined #ruby
m3_del has joined #ruby
shredding has joined #ruby
k0m has joined #ruby
m8 has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
SilkFox_ has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
charliesome has joined #ruby
gigetoo has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
m3_del has quit [Ping timeout: 255 seconds]
IceDragon has joined #ruby
linoj has quit [Quit: linoj]
lkba has joined #ruby
stytown has quit [Quit: stytown]
roolo has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
marr has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
gigetoo has joined #ruby
thegoodlife has joined #ruby
yfeldblum has joined #ruby
<shevy> so guys
CoffeeDrivenC0de has joined #ruby
<shevy> how do you lose weight
<CoffeeDrivenC0de> Running
<CoffeeDrivenC0de> Well, I run
<shevy> hmm
lkba has quit [Ping timeout: 250 seconds]
<shevy> do you have regular intervals for running? like, to run only in the early morning?
thegoodlife has left #ruby [#ruby]
<centrx> Do it every day
muz0xd has joined #ruby
<CoffeeDrivenC0de> I run about 3m almost every day (unless it's down pouring)
muz0xd has quit [Client Quit]
x1337807x has joined #ruby
mr-foobar has quit [Quit: Leaving...]
<CoffeeDrivenC0de> That plus not eating a midnight snack helped me slim down to about what I want to be.
<centrx> Only eat nourishing food
<CoffeeDrivenC0de> ++
<oxez> thats the hard part, the midnight snack
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> hmm
<centrx> Do not oscillate between starving yourself and eating junk
stytown has joined #ruby
fabrice31 has joined #ruby
mr-foobar has joined #ruby
shredding has quit [Quit: shredding]
x1337807x has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
parzo_ has joined #ruby
parzo has quit [Read error: Connection reset by peer]
mxpln has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
toastynerd has joined #ruby
IceDragon has quit [Ping timeout: 256 seconds]
IceDragon has joined #ruby
toastynerd has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
tvw has quit []
<Mon_Ouie> CoffeeDrivenC0de: You run 3 whole meters every day? :p
SilkFox_ has joined #ruby
<centrx> He has the record for the half-second mini-sprint
<jhass> aka jump?
mxpln has left #ruby [#ruby]
jmbrown412 has joined #ruby
NoticeIsOnYou has joined #ruby
<banister_> Mon_Ouie 'alut
<Mon_Ouie> 'alut
<banister_> Mon_Ouie i bought a book that i think is from your univerity
toastynerd has quit [Ping timeout: 264 seconds]
oddraisin has joined #ruby
<Mon_Ouie> Yeah, I have a copy here too
gigetoo has quit [Read error: Connection reset by peer]
<banister_> Mon_Ouie is it good?
toastynerd has joined #ruby
gigetoo has joined #ruby
<CoffeeDrivenC0de> Lol yes just 3 meters ;)
idiocrash has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
IceDragon has quit [Ping timeout: 240 seconds]
<Mon_Ouie> I think so, but couldn't really elaborate on it
blackmesa has joined #ruby
<banister_> Mon_Ouie why can't you elaborate on it?
<Mon_Ouie> This feels like a conversation with ELIZA
jmbrown412 has quit [Ping timeout: 240 seconds]
michael_lee has quit [Quit: Ex-Chat]
<banister_> Mon_Ouie heh heh, but - you have a copy right? :) you can't say whether it's good or not? why not?
<Mon_Ouie> I only read the first few chapters, which are more of an introduction to programming in general
<banister_> ah
chipotle_ has quit [Quit: cya]
<Mon_Ouie> I have a copy of a version with only the chapters he uses in his first class
parzo_ has quit [Read error: Connection timed out]
NoticeIsOnYou has quit [Quit: Computer has gone to sleep.]
parzo has joined #ruby
JBreit has joined #ruby
NoticeIsOnYou has joined #ruby
<CoffeeDrivenC0de> Any one watch the movie "Conspiracy theory" on Netflix yet?
<centrx> You mean the one from like 1998?
t_p has quit [Ping timeout: 245 seconds]
CodeLicker2 has joined #ruby
<CoffeeDrivenC0de> Nope it's pretty new
frellnet has quit [Remote host closed the connection]
<banister_> Mon_Ouie is the use of the mozart language intrusive? i.e i dont want to have to dig too deeply into mozart, i just want to grok the ideas
JBreit has left #ruby [#ruby]
stytown has quit [Quit: stytown]
<CoffeeDrivenC0de> Woops it's actually calle "The Conspiracy"
jdj_dk has joined #ruby
frellnet has joined #ruby
IceDragon has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CodeLicker has quit [Ping timeout: 260 seconds]
<wingedsnake> not released yet
<Mon_Ouie> At least for the part I read, it does talk about the language quite a bit (e.g. how to translate code from Oz to a subset of it, or a mathematical model of the execution that's still quite specific to Oz)
<Mon_Ouie> (Also Mozart is the name of the implementation, Oz is the language)
<shevy> wingedsnake gem install is missing :D
Cort3z has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
<banister_> Mon_Ouie danke vaal
sixxy has joined #ruby
<wingedsnake> not released yet, I had to write some tests, seems to be a good habit
NoticeIsOnYou has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby
gigetoo has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
<shevy> hmm... if I subclass from a class
<shevy> and that parent class has a module included, my subclass will also have this module included?
<Mon_Ouie> Yes. The module is part of the ancestry chain just like superclasses.
papercode has quit [Ping timeout: 240 seconds]
<shevy> okies, thanks
<banister_> shevy you're the #ruby version of PopaVic
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
charliesome has joined #ruby
Cort3z has quit [Ping timeout: 250 seconds]
chrishough has quit [Quit: chrishough]
<centrx> Who is that
blasius has joined #ruby
m3_del has joined #ruby
x1337807x has joined #ruby
RandyT_ has joined #ruby
CodeLicker2 has quit [Read error: Connection reset by peer]
stytown has joined #ruby
<banister_> centrx the resident lunatic of #c ;)
asmodchan has quit [Quit: Leaving]
RandyT has quit [Read error: Connection reset by peer]
RandyT_ is now known as RandyT
jdj_dk has quit [Remote host closed the connection]
marr has joined #ruby
carraroj has joined #ruby
blasius has quit [Ping timeout: 250 seconds]
x1337807x has quit [Ping timeout: 256 seconds]
carraroj has quit [Client Quit]
chrishough has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
dawkirst has joined #ruby
gigetoo has joined #ruby
GriffinHeart has joined #ruby
mijicd has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 272 seconds]
chipotle has joined #ruby
GriffinHeart has quit [Ping timeout: 245 seconds]
danijoo has quit [Read error: Connection reset by peer]
tacos1de has quit [Ping timeout: 264 seconds]
danijoo has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
aef has joined #ruby
SouL has quit [Ping timeout: 264 seconds]
SouL has joined #ruby
tacos1de has joined #ruby
gigetoo has joined #ruby
peret has joined #ruby
tectonic has joined #ruby
<banister_> Mon_Ouie 'alut, working on anything interesting these days?
<banister_> you always have your secret projects
<Mon_Ouie> They wouldn't be secret if I just told you about them
<banister_> Mon_Ouie whisper it, i'll pretend i didn't hear
<Mon_Ouie> I just whispered!
Bumptious has joined #ruby
Hanmac has joined #ruby
skaflem has quit [Quit: Leaving]
sjouke has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
<sjouke> https://defuse.ca/b/ZXhVYtkesoSIPT3iRsfSww <- why does this not cause an error?
gigetoo has joined #ruby
<jhass> why should it?
lukec has quit [Quit: lukec]
<sjouke> jhass: i haven't defined new, do all classes have the new method? is that what's going on?
<jhass> yes, all classes have new
<sjouke> yep
<sjouke> irb confirms
blasius has joined #ruby
<apeiros> Class#new is the method classes get from being an instance of Class
<apeiros> (instance method `new`of class `Class`, in case you're unfamiliar with Klass#method notation)
relix has joined #ruby
banjara has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
<Hanmac> jhass: wrong, not all, some classes does have ::new method removed like Integer
mostlybadfly has quit [Quit: Connection closed for inactivity]
gigetoo has quit [Ping timeout: 250 seconds]
kaspergrubbe has joined #ruby
gigetoo has joined #ruby
Slavox is now known as Slavox|AFK
IceDragon has quit [Ping timeout: 250 seconds]
IceDragon has joined #ruby
cashnguns has quit [Ping timeout: 255 seconds]
<Hanmac> >> ObjectSpace.each_object(Class).reject {|c| c.respond_to?(:new) }
koyd has left #ruby [#ruby]
Rollabunna has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 250 seconds]
IceDragon has joined #ruby
kireevco1 has quit [Quit: Leaving.]
cmoneylulz has joined #ruby
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
parzo has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 245 seconds]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
parzo has joined #ruby
kireevco has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<Hanmac> charliesome: huhu is the bot broken again?
gigetoo has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<Mon_Ouie> It's just not here
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<Hanmac> its today some religious day where all bots have free? ;P
banister has joined #ruby
kireevco1 has joined #ruby
kireevco has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
yeticry has quit [Ping timeout: 245 seconds]
Guest27660 has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
kireevco1 has quit [Client Quit]
yeticry has joined #ruby
claymore has quit [Quit: Leaving]
veleno has quit [Quit: veleno]
claymore has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
x1337807x has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
blasius has quit [Remote host closed the connection]
cmoneylulz has quit [Remote host closed the connection]
<charliesome> Hanmac: the server the bot lived on died
banjara has quit [Quit: Leaving.]
x1337807x has quit [Ping timeout: 255 seconds]
cesare has quit [Ping timeout: 264 seconds]
parzo has quit [Read error: Connection timed out]
parzo has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
banjara has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
rkazak has quit [Quit: Sleep.....ing....]
fwaokda has joined #ruby
parzo_ has joined #ruby
parzo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
<shevy> may it rest in peace
<shevy> he had a great run
<shevy> all the ascii pr0n it gave us
pothibo has joined #ruby
k0m has joined #ruby
tvw has joined #ruby
rkazak has joined #ruby
WormDrink has quit [Quit: Leaving]
Notte has joined #ruby
LadyRainicorn has quit [Ping timeout: 256 seconds]
pothibo has quit [Client Quit]
fabrice31 has joined #ruby
Notte has quit [Remote host closed the connection]
parzo_ has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
parzo has joined #ruby
banjara has quit [Quit: Leaving.]
gigetoo has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
postitnote has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
parzo_ has joined #ruby
parzo has quit [Read error: Connection reset by peer]
sjouke has quit [Quit: Lost terminal]
<postitnote> I can't seem to update ruby on my mac. I have os 10.8.4 and ruby 1.8.7 p358. I tried to install cocoapods and got activesupport requires Ruby version >= 1.9.3. I have installed rvm. I have ready very conflicting suggestions on how to proceed.
<postitnote> Thus, I am here, for realtime advice on irc.
<centrx> Ruby 1.8 is quite old
cashnguns has joined #ruby
<centrx> Are you using homebrew?
<postitnote> I use macports, not homebrew.
tvw has quit []
<centrx> I'm not really familiar with it, but people seem to prefer homebrew here and it works, but I don't know
<centrx> I do know Ruby 1.8 is very old, and that's what you are running into
<postitnote> People have suggested "rvm list known" -- but these people have an intimate relationship with ruby. These numbers mean nothing to me heh.
<postitnote> Do I just pick the highest? Or 1.9.3 p481?
<postitnote> I mean p547
parzo_ has quit [Ping timeout: 260 seconds]
<postitnote> I ran rvm install 1.9.3, which took like 45 minutes to tell me "There has been an error while running configure. Halting the installation."
<centrx> postitnote, All else being equal, pick 2.1.2
error404_ is now known as error404
Noob101 has joined #ruby
blasius has joined #ruby
parzo has joined #ruby
timonv_ has quit [Remote host closed the connection]
pothibo has joined #ruby
IceDragon has quit [Quit: Space~~~]
<postitnote> Ok. I'm just afraid of running rvm install and wasting 45 minutes again.
<apeiros> postitnote: if you're not on an exotic platform, you should get a binary installed
gigetoo has quit [Ping timeout: 260 seconds]
<centrx> postitnote, Find an option for disabling rdoc generation, that should speed it up
<cleopatra> HELLO
<apeiros> i.e. a couple of seconds to a low number of minutes
<apeiros> hi cleopatra. your capslock seems stuck.
<cleopatra> friends some guide or resource of rspec
<cleopatra> apeiros, sorry i am in irc so much rules dont no krow
Spami has quit [Read error: Connection reset by peer]
<centrx> It's a tough life
<apeiros> dunno, uppercase for screaming isn't just an irc thing
<apeiros> applies to mail, twitter, sms etc. all the same
parzo has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
<centrx> You can scream hello once, in one channel
gigetoo has joined #ruby
<centrx> but how rude
<cleopatra> it's okay ...
<centrx> That said, my advice is to use MiniTest!
<centrx> *MINITEST
IceDragon has joined #ruby
<postitnote> apeiros: The ruby site says "On OS X machines, you can use third-party tools (rbenv and RVM)"
sixxy has quit [Quit: Leaving]
<postitnote> So I installed rvm. Is this bad advice?
<cleopatra> jojojo!
vifino has quit [Quit: Ze Cat now leaves...]
Cu1ture has joined #ruby
<cleopatra> centrx, thank you
maximski has joined #ruby
parzo has joined #ruby
thesheff17 has quit [Ping timeout: 250 seconds]
Morkel has quit [Quit: Morkel]
<Cu1ture> Hello
diegoviola has joined #ruby
<postitnote> I did it. Disabling rdoc made this a 20 second thing :) Thanks centrx
decoponio has quit [Quit: Leaving...]
Notte has joined #ruby
kireevco has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<diegoviola> why does many distros ship with python by default and not ruby?
<banister> diegoviola python is more popular
<centrx> diegoviola, Python has been the new successor to Perl on Unix systems for quite some time
Cu1ture has quit [Quit: Page closed]
<centrx> diegoviola, So base packages depend on it
parzo has quit [Ping timeout: 264 seconds]
<apeiros> postitnote: rvm is fine on osx
WormDrink has joined #ruby
parzo has joined #ruby
uokesita has joined #ruby
<apeiros> postitnote: and for the newer osx versions you should indeed get a binary for 2.1.2
<apeiros> at least I think I got one :)
gigetoo has quit [Read error: Connection reset by peer]
<diegoviola> i see, thanks
gigetoo has joined #ruby
Geekabilly has joined #ruby
<postitnote> apeiros: I now have this: "ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]"
<apeiros> yes, sounds correct. what about it?
parzo has quit [Ping timeout: 245 seconds]
Geekabilly has quit [Quit: Leaving...]
cdolan has quit [Quit: WeeChat 0.4.3]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
postitnote has quit [Quit: Question Republicans]
gigetoo has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
Cort3z has joined #ruby
gigetoo has joined #ruby
davispuh has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
jackneill has quit [Ping timeout: 255 seconds]
cleopatra has quit [Remote host closed the connection]
tectonic has quit []
SilkFox_ has joined #ruby
<atmosx> aloha
Cort3z has quit [Ping timeout: 250 seconds]
IceDragon has joined #ruby
Shidash has joined #ruby
GriffinHeart has joined #ruby
bruno- has joined #ruby
x1337807x has joined #ruby
dbasch has quit [Read error: Connection reset by peer]
fschuindt has quit [Ping timeout: 240 seconds]
dbasch has joined #ruby
spastorino has joined #ruby
GriffinHeart has quit [Ping timeout: 250 seconds]
gigetoo has quit [Ping timeout: 256 seconds]
x1337807x has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
chrishough has quit [Quit: chrishough]
jpierre03 has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
jpierre03 has joined #ruby
dawkirst has joined #ruby
cesare has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
maximski has quit [Ping timeout: 255 seconds]
papercode has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<wingedsnake> My first gem is up now :/
tectonic has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
CodeLicker has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<shevy> yay wingedsnake
<uokesita> :)
gigetoo has quit [Read error: Connection reset by peer]
maximski has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
gigetoo has joined #ruby
ChristianDC has joined #ruby
jdj_dk has joined #ruby
enebo has joined #ruby
<ChristianDC> are array .size/.count/.length appropriate during evaluation? so if array.count
LexicalScope has joined #ruby
<ChristianDC> curious if a size of 0 is ever true
<jhass> only nil and false are falsey in ruby
<jhass> 0 is true
maximski has quit [Ping timeout: 255 seconds]
<shevy> wingedsnake gem install works; how to use it?
<jhass> .size and .length are aliases, .count is inefficient if you count all elements (you pass no argument or block to it)
<ChristianDC> ok so array.count will always be true then?
opus has joined #ruby
<shevy> it will give you back something
<shevy> array.count gives you 0 if it is empty
<jhass> ChristianDC: it will always return a Fixnum and all Fixnums are truthy
<apeiros> ChristianDC: .size and .length are aliases
<wingedsnake> check the github
<wingedsnake> for info
<wingedsnake> require "yahoo_countries_and_provinces"
<apeiros> I'm late to the party obviously :)
<wingedsnake> country_array = YahooCountriesAndStates::countries("en")
<wingedsnake> will give u the list of all the countries in english
<jhass> wingedsnake: we prefer to not call methods with ::, always use .
<ChristianDC> so i guess i went to do if array.count == 0
<shevy> country_array = YahooCountriesAndProvinces::countries("en")
maximski has joined #ruby
<shevy> wingedsnake it worked with YahooCountriesAndProvinces
<jhass> ChristianDC: I'd prefer if array.empty?
maximski has quit [Max SendQ exceeded]
<shevy> wingedsnake your first gem works \o/
<ChristianDC> jhass: hah yeah
<ChristianDC> forgot about .empty
<ChristianDC> thanks!
maximski has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
larissa has joined #ruby
einarj has joined #ruby
x1337807x has joined #ruby
gigetoo has joined #ruby
einarj has quit [Client Quit]
sevvie has joined #ruby
alexju has joined #ruby
LexicalScope has quit [Quit: Leaving]
havenwood has joined #ruby
kireevco has quit [Quit: Leaving.]
x1337807x has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
kireevco has quit [Client Quit]
k0m has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
Shidash has quit [Ping timeout: 250 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
cleopatra has joined #ruby
kalusn has joined #ruby
nickenchuggets has quit [Quit: nickenchuggets]
lxsameer has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
jpierre03 has quit [Ping timeout: 272 seconds]
gigetoo has quit [Ping timeout: 250 seconds]
Shidash has joined #ruby
Rollabunna has joined #ruby
parzo has joined #ruby
linoj has joined #ruby
gigetoo has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
danijoo has quit [Quit: Leaving...]
jottr_ has joined #ruby
banister is now known as banisterfiend
veleno has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
Rollabunna has quit [Ping timeout: 250 seconds]
maximski has quit []
SilkFox_ has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Jeticus has joined #ruby
CaptainJet has quit [Ping timeout: 250 seconds]
gigetoo has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
nerium has joined #ruby
SilkFox_ has joined #ruby
veleno has quit [Quit: veleno]
nickenchuggets has joined #ruby
nickenchuggets has quit [Client Quit]
SilkFox_ has quit [Ping timeout: 240 seconds]
jhass is now known as jhass|off
gigetoo has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
gigetoo has joined #ruby
SilkFox_ has joined #ruby
enebo has quit [Quit: enebo]
fabrice31 has quit [Ping timeout: 240 seconds]
chrisg has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
ascarter has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
Dwarf has quit [Ping timeout: 272 seconds]
roolo has quit [Quit: Leaving...]
claymore has quit [Quit: Leaving]
SilkFox has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
SilkFox_ has quit [Ping timeout: 240 seconds]
Dwarf has joined #ruby
gigetoo has joined #ruby
matchaw has joined #ruby
P-NuT has joined #ruby
SilkFox_ has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
chipotle has quit [Quit: cya]
SilkFox has quit [Ping timeout: 250 seconds]
thesheff17 has joined #ruby
motto has quit [Quit: Sto andando via]
Gonzih has quit [Ping timeout: 240 seconds]
lethjakman has joined #ruby
SilkFox has joined #ruby
opus has quit []
<P-NuT> Hey all, In ruby you can list all the methods in a gem with <gem>.methods, but is there an equivalent of the python command dir(method) that shows the documentation on each method?
klaut has quit [Remote host closed the connection]
<shevy> P-NuT ruby has no docstrings
<shevy> you can read static offline docu via ri perhaps
<shevy> this should work in irb as well
<P-NuT> Really? That's pants. :-(
Ulrike_Rayne is now known as Ulri[away]
<P-NuT> So how do you document your Gem?
SilkFox_ has quit [Ping timeout: 250 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gigetoo has quit [Read error: Connection reset by peer]
<uokesita> /join swift
gigetoo has joined #ruby
<uokesita> oops
nopolitica has joined #ruby
memph1s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
maximski has quit []
freerobby has quit [Quit: Leaving.]
SilkFox has quit [Ping timeout: 250 seconds]
maximski has joined #ruby
kalusn has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
kalusn has joined #ruby
dbasch has quit [Quit: dbasch]
<apeiros> P-NuT: see rdoc and/or yard
gigetoo has quit [Ping timeout: 260 seconds]
<apeiros> P-NuT: you can use pry instead of irb. it comes with a couple of handy helpers like `ls obj`, or `? obj.method`, or `$ obj.method`
chipotle has joined #ruby
kireevco has joined #ruby
tus has joined #ruby
parzo has joined #ruby
uokesita has quit [Quit: uokesita]
gigetoo has joined #ruby
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uokesita has joined #ruby
Ulri[away] has quit [Quit: ZNC - http://znc.in]
SilkFox_ has quit [Ping timeout: 260 seconds]
Lewix has joined #ruby
linoj has quit [Quit: linoj]
parzo has quit [Ping timeout: 240 seconds]
elaptics is now known as elaptics`away
mijicd has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 255 seconds]
SilkFox_ has joined #ruby
mijicd has joined #ruby
mijicd has quit [Remote host closed the connection]
kaspergrubbe has quit [Read error: Connection reset by peer]
jdj_dk has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
GriffinHeart has joined #ruby
mikepack has joined #ruby
riotjones has joined #ruby
bruno- has joined #ruby
mijicd has joined #ruby
kaspergr_ has quit [Client Quit]
nerium has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
nerium has joined #ruby
andrewlio has quit [Quit: Leaving.]
kaspergrubbe has joined #ruby
SilkFox_ has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
peret has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 255 seconds]
bricker`LA has joined #ruby
virtualize has joined #ruby
bradleyprice has joined #ruby
vigintas has joined #ruby
mijicd has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mijicd has joined #ruby
mijicd has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
KanKava has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 256 seconds]
P-NuT has quit [Quit: Leaving]
Rollabunna has joined #ruby
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
amystephen has quit [Ping timeout: 240 seconds]
gigetoo has quit [Read error: Connection reset by peer]
maoko has joined #ruby
gigetoo has joined #ruby
bradleyprice has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
virtualize has joined #ruby
SilkFox has joined #ruby
sMecKs has joined #ruby
mijicd has joined #ruby
Rollabunna has quit [Ping timeout: 260 seconds]
k0m has joined #ruby
havenwood has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
<sMecKs> Anyone just starting out with ruby?
sdouglas has quit [Ping timeout: 250 seconds]
supermat has quit [Ping timeout: 256 seconds]
Fusl has quit [Ping timeout: 272 seconds]
SilkFox_ has joined #ruby
mijicd has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 245 seconds]
hmsimha has joined #ruby
supermat has joined #ruby
SilkFox has quit [Ping timeout: 272 seconds]
Darryl has quit [Quit: Connection closed for inactivity]
gigetoo has quit [Ping timeout: 264 seconds]
mijicd has joined #ruby
SilkFox has joined #ruby
maestrojed has joined #ruby
gigetoo has joined #ruby
Ulrike_Rayne has joined #ruby
mijicd has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 260 seconds]
SilkFox_ has joined #ruby
isthisreallife has joined #ruby
dawkirst has joined #ruby
isthisreallife has left #ruby [#ruby]
Fusl has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
axepyre has joined #ruby
mijicd has joined #ruby
virtualize has quit [Ping timeout: 245 seconds]
<axepyre> Hello. What can I put at the end of my code to stop the program from ending?
<banisterfiend> axepyre goto 1
hmsimha has quit [Quit: Leaving]
SilkFox has joined #ruby
sevvie has quit [Quit: leaving]
<axepyre> just goto 1?
dawkirst has quit [Ping timeout: 250 seconds]
SilkFox_ has quit [Ping timeout: 260 seconds]
<axepyre> It still seems to be ending itself
mijicd has quit [Remote host closed the connection]
virtualize has joined #ruby
bradleyprice has quit [Ping timeout: 255 seconds]
asdasdasdasss has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
sevvie has joined #ruby
<tectonic> axepyre: you want it to sit forever?
gigetoo has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
<axepyre> Well I just want to see if my code works. I have a .rb file that prints "Hello world" but everytime I run it the command prompt windows opens up, says it real quick, then closes.
sMecKs_ has joined #ruby
bruno- has joined #ruby
<havenwood> axepyre: what do you want it to do? wait until you press a key or for a certain amount of time?
<axepyre> press a key I suppose
vigintas has quit [Ping timeout: 260 seconds]
<tectonic> axepyre: gets
<tectonic> axepyre: gets will wait until you hit return
<tectonic> user_input = gets
<tectonic> puts user_input
<axepyre> thank you :)
Rollabunna has joined #ruby
<havenwood> axepyre: or any keypress: require 'io/console'; STDIN.getch
<tectonic> havenwood: cool
SilkFox has joined #ruby
bato has quit [Quit: Textual IRC Client: www.textualapp.com]
<axepyre> do I need to put ; after every line in ruby?
<havenwood> axepyre: never
<axepyre> Sorry for all the questions, I'm new to programming.
<havenwood> axepyre: except for representing newlines in an examle
sMecKs has quit [Ping timeout: 264 seconds]
<havenwood> exgf_g: just here for one-lines to avoid spamming multiple lines
oracal has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
oracal has quit [Client Quit]
fluve has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
Rakko has joined #ruby
dangerou_ has quit [Ping timeout: 250 seconds]
gregf has quit [Quit: WeeChat 0.4.3]
gigetoo has joined #ruby
peret has joined #ruby
<havenwood> at_exit { sleep } :P
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tectonic> eww
AlSquire has quit [Quit: This computer has gone to sleep]
gregf has joined #ruby
tectonic has quit []
gigetoo has quit [Ping timeout: 245 seconds]
k0m has joined #ruby
sMecKs__ has joined #ruby
sdouglas has joined #ruby
AlSquire has joined #ruby
AlSquire has quit [Client Quit]
gigetoo has joined #ruby
sdouglas has quit [Remote host closed the connection]
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
Soliah has quit [Quit: Soliah]
asdasdasdasss has joined #ruby
sMecKs_ has quit [Ping timeout: 264 seconds]
nanoyak has joined #ruby
proxie has joined #ruby
sdouglas has joined #ruby
virtualize has quit [Remote host closed the connection]
sMecKs__ has quit [Ping timeout: 240 seconds]
tectonic has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 245 seconds]
amystephen has joined #ruby
Soliah has joined #ruby
stytown has quit [Quit: stytown]
sjouke has joined #ruby
<sjouke> what's the difference in a struct and a hash?
<shevy> sjouke struct is more object-like
<sjouke> Struct.new({{"age": 3}) versus {"age": 3}
<shevy> so you get .methods
lkba has joined #ruby
<sjouke> shevy: you can do something like person.age.map?
<banisterfiend> sjouke similar
<shevy> sword = Sword.new(120, 4.5)
<sjouke> couldn't you assign person to either and get this functionality?
<shevy> oops sorry
<shevy> Sword = Struct.new(:length, :weight)
<shevy> that should have been the first
proxie has quit [Read error: Connection reset by peer]
<shevy> sword.weight # => 4.5
<shevy> person?
<shevy> what person?
virtualize has joined #ruby
<shevy> where is eval-in :(
mikepack has quit [Remote host closed the connection]
<agent_white> >> puts "hello?"
<agent_white> D:
<shevy> the world has come to an end agent_white
mikepack has joined #ruby
<agent_white> shevy: ! D:
godd2 has joined #ruby
<agent_white> Someone contact their local milk vendor, we need eval's code on cartons ASAP!
centrx has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<godd2> Did someone break eval-in ?
<agent_white> Or someone put him in the trunk of their car :(
emergion has joined #ruby
gigetoo has joined #ruby
<agent_white> shevy: I accidentally made a ruby quine yesterday! -- `DATA.rewind; puts DATA.readlines; __END__`
<shevy> lol
k0m has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has quit [Quit: i've nodded off.]
<agent_white> :D
fabrice31 has joined #ruby
dda has joined #ruby
dda has quit [Client Quit]
lucianosousa has joined #ruby
inside has joined #ruby
<inside> and then I'm going " wait a minute... this is satire!"
lxsameer has quit [Quit: Leaving]
gigetoo has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
lethjakman has joined #ruby
mikecmpbll has joined #ruby
sjouke has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 245 seconds]
aoeu256 has quit [Ping timeout: 246 seconds]
nopolitica has quit [Quit: Lost terminal]
Ulrike_Rayne is now known as Ulri[Away]
Zenigor has joined #ruby
gigetoo has joined #ruby
asdasdasdasss has joined #ruby
virtualize has quit [Remote host closed the connection]
virtualize has joined #ruby
maestrojed has joined #ruby
apeiros has quit [Remote host closed the connection]
bricker`work has joined #ruby
apeiros has joined #ruby
Sauvin has joined #ruby
bruno- has joined #ruby
lyuzashi has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
oso96_2000 has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
gigetoo has joined #ruby
Doppp has quit [Ping timeout: 260 seconds]
bruno- has quit [Ping timeout: 255 seconds]
oso|away has joined #ruby
oso|away is now known as oso96_2000
beef-wellington has joined #ruby
phoo1234567 has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
virtualize has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
virtualize has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<djapo> ok, i used bundle install --path ../vendor/bundle; how does bundle exec command knwo where to find command? does it write to where the path was specified somewhere?