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]
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]
<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.
<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.
<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
<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
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.,.
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.]
<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]
<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]
<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]
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.]
<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…]
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
<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?