spyderman4g63 has quit [Ping timeout: 246 seconds]
Sicarul has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
heidi has quit [Quit: Leaving.]
Xaitec has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 264 seconds]
renier has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
freggles has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
phipes has quit [Remote host closed the connection]
peregrine81 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
fmendez has quit [Quit: fmendez]
aryaching has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Ohga has joined #ruby
Guedes0 has quit [Ping timeout: 246 seconds]
<renier>
hey, any has had any luck installing ruby-ldap gem on osx? I'm trying `sudo gem install ruby-ldap -- --with-ldap-dir=/opt/local`, but failing to find the ldap headers. MacPorts installed them under /opt/local….
s2013 has joined #ruby
sensen has joined #ruby
w4pm has joined #ruby
fandikurnia01 has quit [Quit: Leaving]
<Ohga>
hi, so with this first ruby script of mine, where is the standard place to put files created by the script that is of internal use by the script?
emocakes has quit [Quit: Leaving...]
<bricker`LA>
Ohga: tmp/ perhaps
mary5030 has quit [Remote host closed the connection]
<Ohga>
and it's supposed to be os agnostic..
<bricker`LA>
assuming the files are temporary
<bricker`LA>
Ohga: I mean path/to/application/tmp
nobitanobi has quit [Read error: Connection reset by peer]
thumpba has quit [Remote host closed the connection]
virtualize has joined #ruby
<Ohga>
bricker: well, it isn't temporary, it's supposed to remain between sessions
<renier>
Ohga, require 'tmpdir', then use Dir.tmpdir to get the os-agnostic directory where to put temp files
Kayzon has joined #ruby
thumpba has joined #ruby
mary5030 has joined #ruby
<bricker`LA>
Ohga: in that case, I don't think there is a standard. I use 'data/' or 'log/' usually
<Lewix>
shterrett: I wonder why people find rvm complicated
<Lewix>
so they switch to rbenv
digital-ghost has quit [Remote host closed the connection]
<shterrett>
I don't know. rbenv messes with your system less, but from a person-interface, they're both pretty straightforward. I've used both and am on rbenv now mostly because that's what came with the build script I used for my laptop
mootpointer has joined #ruby
<Styles>
lewellyn, it's just not compiling
<shterrett>
Styles: ruby isn't compiling? The OpenSSL?
parduse has quit [Ping timeout: 246 seconds]
emocakes has joined #ruby
<Styles>
OpenSSL seems to be causing it to fail
<Styles>
I have no clue why though
parduse has joined #ruby
<shterrett>
are you using rvm?
lfox has quit []
<aarkerio>
hi! I have a question: how do you know when a class attribute is a "state"? I mean if I have a Dog class color attr is a state?
A124 has quit [Read error: Connection reset by peer]
kevind has joined #ruby
vlad_starkov has joined #ruby
<shterrett>
aarkerio - any class variable or class instance variable is state for the class; and instance variable is state for the object
<shterrett>
state is just information
aryaching_ has joined #ruby
browndawg has left #ruby [#ruby]
emocakes has quit [Quit: Leaving...]
jjbohn has joined #ruby
<aarkerio>
mmm, I am asking this because I have a SendBunchOfMails class and I am passing a value as method argument a lot: method_1(my_var), method_3(my_var), method_3(my_var)
<aarkerio>
so maybe my_var is a class state
clamstar has quit [Quit: Computer has gone to sleep.]
kevinykchan has quit [Quit: Computer has gone to sleep.]
<shterrett>
aarkerio - if you're just reading the variables, I would definitely use instance variables. It gets confusing when they are getting set in the dark recesses of an object's methods. Typically I only set instance variables in in initialize and a a few well defined public interface methods where they're used to save the result of an expensive computation.
<Lewix>
I agree
nobitanobi has joined #ruby
s2013 has joined #ruby
<aarkerio>
when I asked some guy answer me: "make the variable an instance variable only when is a class state", but that lead me to the question: how can I know when an attribute class represents a class state?
skofo has quit [Quit: Leaving]
skulker has joined #ruby
kostine has joined #ruby
<shterrett>
There's a difference between state for the class (@@class_variable) and state for an instance (@instance_variable). You should only use @@class_variable what you want to set is applicable to every instance of that class, and is representative of the class itself. There are also some ramifications with inheritance - a CONSTANT might be the better bet here.
kevind has quit [Quit: kevind]
eka has quit [Quit: Computer has gone to sleep.]
<shterrett>
an @instance variable is used to set state that it relevant to a particular instance of a class, but is not necessarily the same for each instance; it is set when the object is initialized and erased when the object is destroyed.
<aarkerio>
yes I think an object @variable is what I'm looking for, thanks again
Kayzon has quit [Read error: No route to host]
drag00n has joined #ruby
<Asitha>
anyone here familiar with the omniauth facebook gem?
<Asitha>
I'm trying to use the scope to gain permissions to access the email address
<Lewix>
aarkerio: shterrett ^^
<Asitha>
But it never seems to get stored
dukz has quit [Remote host closed the connection]
<shterrett>
Lewix yes - class instance variables are in there too. I prefer them to class variables, but recently have found any of those needs filled by constants.
dukz has joined #ruby
<Styles>
figured out the problem
<Styles>
it's openssl update broke :(
<Styles>
centos needs to update
jmimi has joined #ruby
jalcine has quit [Excess Flood]
aapzak has quit [Ping timeout: 260 seconds]
Viridisignis has quit [Quit: Computer has gone to sleep.]
IceDragon has quit [Quit: Space~~~]
freakazoid0223 has quit [Ping timeout: 240 seconds]
<Lewix>
shterrett: because of their hierarchy-based scope they are visible to a lot of objects.I don't use it whenever I don't need visibility for the instances of the class
braincrash has joined #ruby
joaoh82 has joined #ruby
<shterrett>
Lewix: don't use which?
ikawnoclast has quit [Ping timeout: 272 seconds]
ikawnoclast_ is now known as ikawnoclast
<Styles>
shterrett, seriously blah
<Lewix>
shterrett: class variables
Viridisignis has quit [Ping timeout: 264 seconds]
s2013 has quit [Ping timeout: 246 seconds]
stonevil has quit [Remote host closed the connection]
<shterrett>
I agree; I rarely, if ever, use them. Usually, when I find myself needing shared state across the instances, I put it in a constant.
<shterrett>
I was trying to illustrate the difference for the OP
vlad_starkov has quit [Read error: Connection reset by peer]
<Lewix>
what does OP stand for between, shterrett
<shterrett>
original poster
<Lewix>
I see that now and then
<Lewix>
ah
phipes has joined #ruby
<shterrett>
at least, when I was younger it did:)
<Lewix>
shterrett: I guess I'm getting old
platzhirsch has left #ruby [#ruby]
virtualize has quit [Quit: Leaving...]
joaoh82 has quit [Ping timeout: 252 seconds]
clamstar has quit [Quit: Computer has gone to sleep.]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
L8D has quit [Ping timeout: 246 seconds]
shadoi has quit [Quit: Leaving.]
mneorr has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Ping timeout: 260 seconds]
mikepack has quit [Ping timeout: 265 seconds]
skulker has quit [Remote host closed the connection]
sensen has quit [Ping timeout: 260 seconds]
skulker has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
skulker_ has joined #ruby
skulker has quit [Read error: Connection reset by peer]
juarlex has quit [Remote host closed the connection]
mneorr has joined #ruby
phipes has joined #ruby
aarkerio has quit [Quit: Verlassend]
Reach has joined #ruby
skulker_ has quit [Ping timeout: 250 seconds]
s2013 has quit [Ping timeout: 260 seconds]
slap_stick has quit [Remote host closed the connection]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
justsee has quit [Ping timeout: 250 seconds]
gverri has joined #ruby
mgberlin has quit [Quit: mgberlin]
L8D has joined #ruby
mansi has quit [Ping timeout: 250 seconds]
coca_rails has joined #ruby
michaeldeol has joined #ruby
browndawg has joined #ruby
stonevil has quit [Remote host closed the connection]
browndawg has quit [Client Quit]
stonevil has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
coca_rails has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby
Bira has joined #ruby
tylersmith has quit [Remote host closed the connection]
stonevil has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
snath has joined #ruby
snath has quit [Remote host closed the connection]
snath has joined #ruby
Bira has quit [Ping timeout: 252 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
primenum has joined #ruby
TigerWolf has quit [Read error: Connection reset by peer]
w4pm_ has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
i8igmac has joined #ruby
<primenum>
is there a way to use attr_reader on a class variable such that you can initialize the class variable to some static value? e.g., class Foo; class << self; attr_reader :class_var; end; def initialize; class_var = "some static value"; end; end
<bricker`LA>
zastern: Look at some other gems, there is a pretty solid convention
maoko has joined #ruby
bricker`LA has quit [Remote host closed the connection]
zz_N00D is now known as CripperZ
xcv_ has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
bricker`LA has joined #ruby
CripperZ is now known as N00D
atno has joined #ruby
xcv has joined #ruby
peregrine81 has quit []
<aagdbl>
primenum: @class_var=foo outside your class<<self block?
coca_rails has joined #ruby
stonevil has joined #ruby
dopie has quit [Quit: Leaving]
xcv has quit [Ping timeout: 265 seconds]
dopie has joined #ruby
<dopie>
good late night all
<dopie>
Another night sleeping late because of my dogs
<dopie>
woohoo!!
i8igmac has quit [Remote host closed the connection]
DeProdigy has quit [Ping timeout: 250 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
joaoh82 has joined #ruby
Xuerian has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
Xuerian has joined #ruby
mneorr has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
virtualize has quit [Quit: Leaving...]
Reach has quit [Remote host closed the connection]
joaoh82 has quit [Ping timeout: 252 seconds]
mneorr has quit [Ping timeout: 246 seconds]
sensen has joined #ruby
jalcine has joined #ruby
jamesaanderson has joined #ruby
Kabaka has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
aagdbl1 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
jkline has joined #ruby
jkline has quit [Client Quit]
stonevil has quit [Remote host closed the connection]
mneorr has joined #ruby
fella6s has joined #ruby
stonevil has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandeepk has joined #ruby
maletor has joined #ruby
maletor has quit [Client Quit]
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sandeepk>
join -window ruby-lang
pu22l3r has quit [Remote host closed the connection]
fella5s has quit [Ping timeout: 246 seconds]
stonevil has quit [Remote host closed the connection]
d45h has joined #ruby
skulker has joined #ruby
stonevil has joined #ruby
skulker has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
mikepack has joined #ruby
Bry8Star{T2 has joined #ruby
Takehiro has joined #ruby
wereHamster has quit [Read error: Operation timed out]
<Asitha>
need help from anyone who is familiar with OmniAuth Facebook
<Asitha>
I can't seem to request for the email address using scope
wereHamster has joined #ruby
ewnd9 has joined #ruby
nhhagen has joined #ruby
phrozen77 has quit [Ping timeout: 252 seconds]
ewnd9 has quit [Max SendQ exceeded]
stonevil has quit [Read error: No route to host]
Viridisignis has joined #ruby
ewnd9 has joined #ruby
stonevil has joined #ruby
d45h has quit []
mikepack has quit [Ping timeout: 260 seconds]
ceej has joined #ruby
spyderman4g63 has joined #ruby
lurch_ has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
DeProdigy has joined #ruby
phrozen77 has joined #ruby
sandeepk has quit [Remote host closed the connection]
Viridisignis has quit [Ping timeout: 250 seconds]
Takehiro has quit [Quit: Leaving...]
kcombs has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has joined #ruby
lurch_ has left #ruby [#ruby]
agent_white has joined #ruby
spyderman4g63 has quit [Ping timeout: 265 seconds]
DeProdigy has quit [Ping timeout: 246 seconds]
LexicalScope has quit [Ping timeout: 260 seconds]
phipes has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
phipes has joined #ruby
vlad_starkov has joined #ruby
mary5030 has joined #ruby
dhruvasagar has joined #ruby
mneorr has quit [Remote host closed the connection]
tagrudev has joined #ruby
mneorr has joined #ruby
mansi has joined #ruby
echevemaster has quit [Quit: Leaving]
Es0teric has joined #ruby
amritanshu_RnD has joined #ruby
noop has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
mneorr has quit [Ping timeout: 260 seconds]
mansi has quit [Ping timeout: 246 seconds]
g3n1us has quit [Quit: Leaving]
Bry8Star{T2 has quit [Remote host closed the connection]
<tobiasvl>
but I thought it wise to teach how to actually escape too
camilasan has joined #ruby
jmimi has quit [Quit: Leaving.]
hogeo has joined #ruby
<dopie>
hmmm
sergicles has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
Arzaga has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
_5kg has quit [Ping timeout: 264 seconds]
shedd has joined #ruby
phipes has joined #ruby
vlad_sta_ has joined #ruby
dfranciosi has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
cbetta is now known as cbetta_afk
Arzaga has quit [Quit: Computer has gone to sleep.]
phipes has quit [Ping timeout: 246 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
roolo_ has joined #ruby
<KevinSjoberg>
Is there a neat way to take a number and return either the minimum or maximum or the number. For instance, if I have 2 as minimum and 4 as maximum then if the number is 5 I get 4. If the number is 1 I get 2. If the number is 3 I get 3.
Arzaga has joined #ruby
shedd has quit [Ping timeout: 260 seconds]
Wildhoney has joined #ruby
<Hanmac>
KevinSjoberg: [[i,2].max,4].min
troessner has joined #ruby
nvrch has joined #ruby
slap_stick has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
<KevinSjoberg>
Hanmac: Awesome! :)
<sevenseacat>
ruby doesnt have clamp built in, thats what you're after
nanoyak has joined #ruby
<KevinSjoberg>
sevenseacat: Yep, you're right. That's what I was looking for. Thanks for letting me know :)
Jetchisel has joined #ruby
dhruvasagar has joined #ruby
gyre007 has joined #ruby
shime has quit [Ping timeout: 245 seconds]
emocakes has quit [Quit: Leaving...]
vlad_sta_ has quit [Write error: Broken pipe]
vlad_starkov has joined #ruby
ViPi2 has joined #ruby
ViPi2 has quit [Max SendQ exceeded]
joaoh82 has quit [Remote host closed the connection]
rjhunter has joined #ruby
Xeago has joined #ruby
wallerdev has quit [Quit: wallerdev]
emocakes has joined #ruby
DeProdigy has joined #ruby
skulker has joined #ruby
xcv has joined #ruby
rjhunter has quit [Ping timeout: 252 seconds]
gregoriokusowski has joined #ruby
camilasan has quit [Remote host closed the connection]
CpuID has quit [Quit: This computer has gone to sleep]
phansch has left #ruby ["Leaving"]
jpun has quit [Ping timeout: 248 seconds]
camilasan has joined #ruby
phansch has joined #ruby
Guest38676 has quit [Read error: Connection reset by peer]
skulker has quit [Ping timeout: 246 seconds]
DeProdigy has quit [Ping timeout: 246 seconds]
jpun has joined #ruby
matthieua has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
fivethre1o has joined #ruby
fivethreeo has quit [Ping timeout: 246 seconds]
matthieua has quit [Client Quit]
cantonic has left #ruby [#ruby]
liamkeily has joined #ruby
DouweM has joined #ruby
noname001__ has joined #ruby
barratt has joined #ruby
mootpointer has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasa_ has joined #ruby
carraroj has joined #ruby
klaut has quit [Remote host closed the connection]
zombiebit has joined #ruby
robbyoconnor has joined #ruby
charliesome has joined #ruby
Cornflake has joined #ruby
jinie has joined #ruby
ttlnow has joined #ruby
Asitha has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dagobah has joined #ruby
fandikurnia01 has joined #ruby
nhhagen has joined #ruby
marz_skilex has joined #ruby
aryaching_ has quit [Ping timeout: 252 seconds]
bnjamin has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
djdb has joined #ruby
<slap_stick>
dont suppose anyone could help me with https://gist.github.com/anonymous/0bffed3a2c3b6e5c5782 all i want to do is delete any key from h2 hash if it isn't present without the '?' in h1 hash. but i can't figure out how to get it to work :( tried loads of different things
fandikurnia01 has quit [Read error: Connection reset by peer]
fandikurnia01 has joined #ruby
d45h has quit []
TMM has joined #ruby
tylersmith has joined #ruby
okinomo_ has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
drumusician has joined #ruby
juarlex has joined #ruby
mneorr has joined #ruby
coca_rails has joined #ruby
yfeldblum has joined #ruby
rdark has joined #ruby
arietis has joined #ruby
bnjamin has quit [Remote host closed the connection]
Cornflake has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 250 seconds]
marz_skilex has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bnjamin has joined #ruby
sevenseacat has quit [Quit: Leaving.]
Speed has joined #ruby
juarlex has quit [Ping timeout: 265 seconds]
mneorr has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
ttlnow has quit [Quit: leaving]
mansi has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
Jdubs has quit [Remote host closed the connection]
jrhe has joined #ruby
olivier_bK has joined #ruby
mikecmpbll has joined #ruby
karupanerura is now known as zz_karupanerura
mootpointer has quit [Quit: ENOCAFFEINE.]
coderhs has quit [Quit: Leaving]
mansi has quit [Ping timeout: 265 seconds]
shedd has joined #ruby
Bry8Star{T2 has joined #ruby
avril14th has quit [Remote host closed the connection]
avril14th_ has quit [Remote host closed the connection]
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
avril14th has joined #ruby
avril14th_ has joined #ruby
jlebrech has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
Bosox20051 has quit [Quit: Leaving]
okinomo_ has quit [Ping timeout: 245 seconds]
okinomo has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
fgo has quit [Remote host closed the connection]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
klaut has joined #ruby
amoli has joined #ruby
haridas has joined #ruby
haridas has left #ruby [#ruby]
buscon_ has joined #ruby
mengu has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
reset has joined #ruby
dhruvasagar has joined #ruby
timonv has joined #ruby
freakazoid0223 has quit [Ping timeout: 240 seconds]
gyre007 has quit [Ping timeout: 245 seconds]
Bry8Star{T2 has quit [Quit:]
skulker has joined #ruby
nisstyre has quit [Quit: Leaving]
rootshift has joined #ruby
vlad_sta_ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
fmendez has joined #ruby
Viridisignis has joined #ruby
freakazoid0223 has joined #ruby
rjhunter has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
skulker has quit [Ping timeout: 245 seconds]
buscon_ has quit [Remote host closed the connection]
DeProdigy has joined #ruby
rikas has joined #ruby
funburn has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
Viridisignis has quit [Ping timeout: 245 seconds]
Loaft has quit []
Floydzy has joined #ruby
Wildhoney has quit [Ping timeout: 250 seconds]
ewnd9 has quit [Ping timeout: 245 seconds]
marr has joined #ruby
rjhunter has quit [Ping timeout: 252 seconds]
emergion has joined #ruby
seoNinjaWarrior has joined #ruby
DeProdigy has quit [Ping timeout: 264 seconds]
rootshift has quit [Quit: rootshift]
DouweM has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
michaeldeol has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
timonv has quit [Read error: Connection reset by peer]
kevinykchan has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
otero has joined #ruby
solars has joined #ruby
jbpros has joined #ruby
<solars>
what's the best scraping combination right now? (need to login) nokogiri and mechanize?
michaeldeol has joined #ruby
<otero>
that's what i use, but i don't really know if it's the best
<solars>
just wondered since it's a while when I last used it
p4d4w4n has joined #ruby
<clocKwize>
I use selenium web driver
<clocKwize>
for something at the moment
<clocKwize>
I find it works better than phantomjs/poltergeist
<clocKwize>
and its nice to see what is happening, a lot easier to debug
<clocKwize>
not the fastest way though
<clocKwize>
depends on many factors, if there is a lot of pages to scrape, browser isn't the way to go
funburn has joined #ruby
<clocKwize>
if you don't need js to execute, browser isn't the way to go
h_kon has quit [Remote host closed the connection]
Astralum has quit [Read error: Connection reset by peer]
Kneferilis has joined #ruby
kostine has quit [Quit: kostine]
Astralum has joined #ruby
<solars>
I can't use a browser, it should be headless
dhruvasagar has quit [Read error: Connection reset by peer]
<clocKwize>
do you need JS execution within the browser? (ajax calls etc)
michaeldeol has quit [Ping timeout: 246 seconds]
<clocKwize>
if not, then use mechanize
<clocKwize>
perfect for the job
<solars>
nope
<solars>
alright
<solars>
:)
Loaft has joined #ruby
dhruvasagar has joined #ruby
shime has joined #ruby
liamkeily has quit [Read error: Operation timed out]
mikepack has joined #ruby
tedstriker has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
amacgregor_ has joined #ruby
amacgregor_ has quit [Read error: No route to host]
amacgregor has quit [Read error: Connection reset by peer]
amacgregor_ has joined #ruby
Ch4rAss` has joined #ruby
jrhe has quit [Quit: jrhe]
mrpoppop has joined #ruby
<mrpoppop>
Hello all. Is there a way to check if an array only contains nil? I thought .empty? would do it, but apparently not
<Lewix>
shevy: then someone will ask why don't we have hundred?
mansi has quit [Ping timeout: 245 seconds]
<Xeago>
shevy: because activerecord will give you second
agent_white has quit [Quit: gnight]
shedd has joined #ruby
nari has joined #ruby
akonny has quit [Quit: akonny]
michaeldeol has joined #ruby
jrhe has quit [Quit: jrhe]
Zai00 has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
lkba has joined #ruby
Xeago_ has joined #ruby
shedd has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has quit [Ping timeout: 245 seconds]
shadoi has joined #ruby
jbpros has quit [Quit: jbpros]
shime has quit [Ping timeout: 265 seconds]
Xeago has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
stonevil has joined #ruby
phansch has quit [Read error: Operation timed out]
phansch_ has joined #ruby
w4pm has joined #ruby
skulker has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
h_kon has joined #ruby
jrhe has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
dhruvasagar has joined #ruby
gianlucadv has joined #ruby
funburn has quit [Quit: funburn]
JohnBat26 has joined #ruby
zipper has quit [Ping timeout: 245 seconds]
stonevil has quit [Ping timeout: 265 seconds]
skulker has quit [Ping timeout: 246 seconds]
w4pm has quit [Ping timeout: 252 seconds]
nettoweb has quit [Quit: nettoweb]
okinomo has quit [Ping timeout: 265 seconds]
joaoh82 has joined #ruby
atm1 has joined #ruby
nettoweb has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
A124 has joined #ruby
psyl0n has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
eka has joined #ruby
funburn has joined #ruby
coca_rails has joined #ruby
charliesome has joined #ruby
joaoh82 has quit [Ping timeout: 246 seconds]
rjhunter has joined #ruby
xcv has quit [Ping timeout: 246 seconds]
DeProdigy has joined #ruby
jrhe has quit [Quit: jrhe]
coca_rails has quit [Ping timeout: 245 seconds]
tedstriker has quit [Quit: Anti-Fraping status set.]
tedstriker has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
rjhunter has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
DeProdigy has quit [Ping timeout: 246 seconds]
maasha has joined #ruby
phansch_ has quit [Ping timeout: 250 seconds]
<maasha>
gday
_5kg has joined #ruby
zipper has joined #ruby
mojjojo has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
<mojjojo>
can i access google analytics api without private key and are there any examples with ruby?
carraroj has joined #ruby
rootshift has joined #ruby
drumusician has joined #ruby
Fire-Dragon-DoL has joined #ruby
dukz has joined #ruby
dukz has quit [Remote host closed the connection]
dEPy has quit [Quit: Computer has gone to sleep.]
Xeago_ has quit [Remote host closed the connection]
Xeago has joined #ruby
reset has quit [Quit: Leaving...]
marz_skilex has joined #ruby
decoponio has joined #ruby
Xeago_ has joined #ruby
<heftig>
mojjojo: no, you need an api key
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
drumusician has quit [Read error: Connection reset by peer]
marz_skilex has quit [Client Quit]
Xeago has quit [Ping timeout: 252 seconds]
drumusician has joined #ruby
zipper has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
zeeraw has joined #ruby
nhhagen has joined #ruby
rootshift has quit [Quit: rootshift]
robertjpayne has quit [Ping timeout: 246 seconds]
tonni_ has joined #ruby
nettoweb has quit [Quit: nettoweb]
vlad_starkov has quit [Read error: Connection reset by peer]
tonni has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
_HolyCow1 has joined #ruby
tylersmith has joined #ruby
timonv has quit [Read error: Connection reset by peer]
juarlex has joined #ruby
timonv has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
vlad_starkov has joined #ruby
matheuscaceres has joined #ruby
tjaco has joined #ruby
yfeldblum has joined #ruby
_HolyCow has quit [Ping timeout: 272 seconds]
Squarepy has joined #ruby
falood has joined #ruby
funburn has quit [Quit: funburn]
vlad_starkov has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 260 seconds]
drumusician has quit [Ping timeout: 250 seconds]
juarlex has quit [Ping timeout: 260 seconds]
<maasha>
workmad3: Hey, in the that pipe code ... How would it be possible to save to a specific file in the middle of a pipe: cmd(:read_file, input: "foo") | cmd(:save_file, output: "bar") | cmd(:wc) ?
mneorr has quit [Ping timeout: 245 seconds]
maroloccio has quit [Read error: Connection reset by peer]
dagobah has quit [Read error: Connection reset by peer]
dagobah has joined #ruby
mansi has quit [Ping timeout: 250 seconds]
niklasb has joined #ruby
banister has joined #ruby
<Hanmac>
maasha: what about: cmd(:read_file, input: "foo") | [cmd(:command1),cmd(:command2)] that would be similar to cmd(:read_file, input: "foo") | cmd(:command1) AND cmd(:read_file, input: "foo") | cmd(:command2) but with a bit less iterations? (with that you may be possible to split the pipe into sub pipes?
raphaelivan has joined #ruby
michaeldeol has joined #ruby
skulker has joined #ruby
<maasha>
Hanmac: looks good to me if it can be implemented. For now I am wondering simply how to save data to a file in the middle of pipe :o)
<dopie>
with capybara how do i puts a specific table on the page?
<maasha>
dopie: #rails
<Hanmac>
maasha: my question is cmd(:wc) ... should that count the lines from the save_file or the read_file?
ewnd9 has joined #ruby
<Hanmac>
maasha & dopie wrong its #rubyonrails
<workmad3>
maasha: alternatively, your :save_file command can open a file, append each line to a file as it happens and pass the line along...
<workmad3>
yeah, you'll be lonely in #rails
<maasha>
workmad3: but I will get a dangling file handle?
altvnk has quit []
<workmad3>
maasha: you may want to consider something like a 'start' and 'stop' through your pipeline
<workmad3>
maasha: seeing as you want to do it stream-style
Viridisignis has joined #ruby
michaeldeol has quit [Ping timeout: 246 seconds]
sparviero has joined #ruby
jrhe has quit [Quit: jrhe]
sparviero has quit [Client Quit]
tvw has joined #ruby
flame_ has joined #ruby
skulker has quit [Ping timeout: 250 seconds]
* Hanmac
hisses and says: "hiss hiss i am a steam pipe" ;P
lhdc has quit [Ping timeout: 246 seconds]
ewnd9 has quit [Remote host closed the connection]
Speed has left #ruby ["WeeChat 0.4.2"]
ewnd9 has joined #ruby
<maasha>
workmad3: Hanmac overall I am aiming for a biopieces ver 2.0 (www.biopieces.org) - there is a brief explanation of the concept.
Viridisignis has quit [Read error: Operation timed out]
jrhe has joined #ruby
stonevil has joined #ruby
<maasha>
workmad3: maybe something with an instance variable with file handles
<workmad3>
maasha: how do you know when to close it though? :P
polaco is now known as polaco_zZz
<workmad3>
maasha: the issue isn't tracking the file handle, it's knowing when you're 'done'
tkuchiki has quit [Remote host closed the connection]
fgo has joined #ruby
mercwithamouth has quit [Ping timeout: 259 seconds]
<maasha>
workmad3: yeah. :o/
larissa has joined #ruby
<workmad3>
maasha: hence my suggestion of pushing some form of 'start' and 'end' token through your pipeline
<workmad3>
maasha: things that summarize, like wc, would probably need that anyway ;)
<maasha>
workmad3: we could keep track of the record count at all times and use that to know when we are done and close files?
stonevil has quit [Ping timeout: 245 seconds]
zipper has quit [Ping timeout: 250 seconds]
joaoh82 has joined #ruby
<workmad3>
record count?
<maasha>
workmad3: line count
<workmad3>
ok... but how does that help you in knowing you're done?
<workmad3>
files can have different numbers of lines, you know :P
h_kon has quit [Remote host closed the connection]
<maasha>
if we read in 1000 lines, grep 400 of these and want to same them - we know the file handle should be closed after 400 lines were processed
reset has joined #ruby
<workmad3>
maasha: yes... but how does the *pipeline* know that?
<maasha>
*save
h_kon has joined #ruby
zomgbie has joined #ruby
<workmad3>
you know that because you looked at the file
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3>
and applied some out-of-band reasoning
coca_rails has joined #ruby
nettoweb has joined #ruby
matheuscaceres has quit [Ping timeout: 246 seconds]
kaldrenon has joined #ruby
joaoh82 has quit [Ping timeout: 246 seconds]
<maasha>
hm I feel it should be doable by keeping track of the lines exactly because we "looked at the file"
<Hanmac>
maasha: what about marking save_file as a "end" point but making it possible to return wc ? like cmd(:save_file, output: "bar",return: :wc) ?
rjhunter has joined #ruby
polaco_zZz is now known as polaco
<maasha>
Hanmac: That is an idea, but I like the separation of concerns that every tool does exactly one thing only.
matheuscaceres has joined #ruby
fmendez has quit [Quit: fmendez]
<workmad3>
maasha: the only command that can look at the file and say what counts as 'done' is the starting file read command
DeProdigy has joined #ruby
<workmad3>
maasha: and that would then need to push that detail down the pipeline
larssmit has quit [Quit: Leaving.]
<workmad3>
maasha: a.k.a. an 'end' token
<Hanmac>
hm yeah but my point was that "end" points finish the line like save_file and maybe also "wc"
flubba has quit [Remote host closed the connection]
<workmad3>
Hanmac: yeah, but when does save_file close the file handle and return its count?
<maasha>
workmad3: that was another thing I am interested in - to push a hash with statistics down the pipeline as well
flubba has joined #ruby
kaldrenon has quit [Ping timeout: 250 seconds]
rjhunter has quit [Ping timeout: 246 seconds]
<workmad3>
maasha: I'd be more tempted to push an array of info hashes personally
<workmad3>
maasha: so each command adds its own hash of info to the array
jrhe has quit [Quit: jrhe]
reset has quit [Ping timeout: 246 seconds]
akonny has joined #ruby
dagobah_ has joined #ruby
<workmad3>
maasha: keep in mind that you're wanting to deal with large volumes of info though, so things like counting the number of lines in a source file in advance are gonna add overhead
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
DeProdigy has quit [Ping timeout: 250 seconds]
<workmad3>
maasha: which will affect the kinds of info you can realisticly push through
gestahlt has joined #ruby
<gestahlt>
Hi
mojjojo has joined #ruby
dkamioka has joined #ruby
fmendez has joined #ruby
akonny has quit [Client Quit]
dagobah_ has quit [Read error: Connection reset by peer]
dagobah_ has joined #ruby
flubba has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
dagobah has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
<gestahlt>
I have a question regarding threads and workers: I have a Class (Just a regular Class and it works fine when i instance it and call its methods). Now i like to put this class in a thread and call the Class methods. Is this the correct approach? If so, how do i do it?
lele has quit [Ping timeout: 252 seconds]
zoee has joined #ruby
Monie has joined #ruby
<maasha>
workmad3: hm. back to the drawing board ...
<gestahlt>
I made a hash with the threads workers{ worker_1 => Thread } so i can get them when i need it
mansi has joined #ruby
shedd has joined #ruby
<gestahlt>
and the thread is made like this Thread.new do MyClass.new
nettoweb has quit [Quit: nettoweb]
Ogion has quit [Read error: Connection reset by peer]
emocakes has quit [Quit: Leaving...]
marz_skilex has joined #ruby
marz_skilex has quit [Client Quit]
Ogion has joined #ruby
marz_skilex has joined #ruby
amoli has quit [Ping timeout: 252 seconds]
shedd has quit [Ping timeout: 246 seconds]
fgo has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
zipper has quit [Ping timeout: 246 seconds]
flame_ has quit [Quit: Computer has gone to sleep.]
zz_N00D is now known as CripperZ
tkuchiki has joined #ruby
zombiebit has quit [Remote host closed the connection]
lele has joined #ruby
CripperZ is now known as N00D
h_kon has quit [Remote host closed the connection]
nettoweb has joined #ruby
stonevil has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
emocakes has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
_whitelogger has joined #ruby
zeeraw has joined #ruby
nhhagen has joined #ruby
aryaching has joined #ruby
RaCx has quit [Ping timeout: 250 seconds]
spyderman4g63 has joined #ruby
fmendez has quit [Quit: fmendez]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
dkamioka has quit [Remote host closed the connection]
tylersmith has joined #ruby
fgo has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
mojjojo has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
kitak has joined #ruby
yfeldblum has joined #ruby
pranny has quit [Quit: Leaving.]
mojjojo has joined #ruby
nettoweb has quit [Quit: nettoweb]
gregoriokusowski has quit [Ping timeout: 252 seconds]
tylersmith has quit [Ping timeout: 246 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx has joined #ruby
RaCx has quit [Remote host closed the connection]
m_3_ has quit [Remote host closed the connection]
RaCx has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
allsystemsarego has joined #ruby
robaman has quit [Remote host closed the connection]
joaoh82 has joined #ruby
tedstriker has quit [Ping timeout: 246 seconds]
mneorr has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
echevemaster has joined #ruby
coldmethod has joined #ruby
m_3 has joined #ruby
m_3 has quit [Client Quit]
shime has joined #ruby
matheuscaceres has quit [Ping timeout: 245 seconds]
matheuscaceres has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
m_3 has joined #ruby
rootshift has joined #ruby
<solars>
hi, I've got a csv string starting with Provider,Silo Name,Bucket Name,TA Location ID,Location Name,Paid Clicks,Click Cost\n2013-12-09,S... when parsing I keep getting Illegal quoting in line 1. (CSV::MalformedCSVError) - what's causing this?
gregoriokusowski has joined #ruby
<popl>
How are you parsing it?
<popl>
There is a pastebin URL in the channel topic if you'd like to share your code, solars.
ffranz has joined #ruby
<solars>
yep, sec
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Hanmac>
GoodTimes: why cant rails questions be asked in #rubyonrails only?
mikepack has quit [Ping timeout: 245 seconds]
<GoodTimes>
i guess they can
<GoodTimes>
but i thought it was css
justsee has quit [Ping timeout: 265 seconds]
<GoodTimes>
anyone know how?
GoodTimes has quit []
dkamioka has quit [Remote host closed the connection]
GoodTimes has joined #ruby
GoodTimes has quit [Client Quit]
pranny has joined #ruby
dkamioka has joined #ruby
nhhagen has joined #ruby
nettoweb has joined #ruby
<Hanmac>
swordsmanz: your problem is that "str" || something returns the left part when its true and directly ignores the right part (because for optimation it can be ignored)
<swordsmanz>
im useing
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<swordsmanz>
|| to denote line break in that
<Xeago_>
use ;
Xeago_ is now known as Xeago
rootshift has joined #ruby
tylersmith has joined #ruby
coca_rails has joined #ruby
aagdbl has quit [Quit: Leaving.]
dkamioka has quit [Ping timeout: 260 seconds]
juarlex has joined #ruby
joaoh82 has quit [Remote host closed the connection]
hogeo has joined #ruby
niklasb has quit [Ping timeout: 250 seconds]
breakingthings has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
fgo has quit [Remote host closed the connection]
RaCx has joined #ruby
stringoO has joined #ruby
mneorr has joined #ruby
vlad_starkov has joined #ruby
sevenseacat has joined #ruby
amedeiros has joined #ruby
Lewix has quit [Remote host closed the connection]
p4d4w4n has quit [Quit: This computer has gone to sleep]
coca_rails has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby
_maes_ has quit [Read error: Connection reset by peer]
juarlex has quit [Ping timeout: 264 seconds]
momomomomo has quit [Client Quit]
Viridisignis has joined #ruby
pranny has quit [Quit: Leaving.]
jchristi has joined #ruby
momomomomo has joined #ruby
momomomomo has joined #ruby
dopie has quit [Quit: Leaving]
tesuji has quit [Read error: Connection reset by peer]
mneorr has quit [Ping timeout: 264 seconds]
bogeyd6 has joined #ruby
phantummm has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
rootshift has quit [Quit: rootshift]
jkamenik has joined #ruby
Viridisignis has quit [Ping timeout: 265 seconds]
ricburton has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shime has quit [Ping timeout: 250 seconds]
vlad_starkov has joined #ruby
michaeldeol has joined #ruby
joaoh82 has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
skaflem has joined #ruby
ringaroses has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
bcap-me-indexer has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
greg____ has joined #ruby
<greg____>
hi all
Hanmac1 has joined #ruby
kaldrenon has joined #ruby
tylershipe has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
kiri has quit [Quit: Leaving]
jerius has joined #ruby
michaeldeol has quit [Ping timeout: 246 seconds]
aapzak has quit [Ping timeout: 252 seconds]
relix has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 265 seconds]
akonny has quit [Quit: akonny]
dayepa1 has quit [Quit: dayepa1]
aapzak has joined #ruby
RaCx has joined #ruby
p0wn3d has joined #ruby
LexicalScope has joined #ruby
maroloccio has joined #ruby
Megtastique has joined #ruby
reset has joined #ruby
h_kon has joined #ruby
Squarepy has quit [Remote host closed the connection]
zoee has joined #ruby
gr33n7007h has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: nettoweb]
kpshek has joined #ruby
MattStratton has joined #ruby
fijimunkii has joined #ruby
phansch has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
blaskovicz has joined #ruby
browndawg has joined #ruby
reset has quit [Ping timeout: 250 seconds]
krawchyk has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Bira has quit [Remote host closed the connection]
Viridisignis has joined #ruby
mojjojo has quit [Read error: Connection reset by peer]
Viridisignis has quit [Read error: Connection reset by peer]
<_br_>
You could have an array with e.g. openstruct's. So that way you could do e.g. content = [] ; o = OpenStruct.new; o.object = Foo.new; o.attribute = :blah ; content << o
<Phobos>
_br_, for example I want to group data by :group attribute then sorting them by priority
tannerburson has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Phobos>
_br_, for example group A has name sorted like that : x,z
<_br_>
how large are those objects? Might be more interesting to create a sorting based on a separate ref list instead of sorting the actual content.
mary5030 has joined #ruby
<_br_>
Are you serializing this into a DB or something?
banghouse2 has joined #ruby
<Phobos>
_br_, Yesterday I was looking for example using struct and openstruct and didn't see it was the best way to do such things for example in Rails
petey has joined #ruby
<_br_>
Rails? Well if you are looking for rails centric advice you should try #rubyonrails or #rails
dhruvasagar has quit [Ping timeout: 250 seconds]
tylersmith has joined #ruby
mark_locklear has joined #ruby
momomomomo has joined #ruby
<Phobos>
_br_, No I am just using an array like a container, the object has the same attributes all the time so I guess Struct is preferable to OpenStruct
momomomomo has quit [Client Quit]
rjhunter has quit [Ping timeout: 264 seconds]
<Phobos>
_br_, Rails stay one of the best thing ever made in Ruby World :).. If you have something better let me know please
<_br_>
Well sounds like you want to create a proper abstract data type, and code up the logic you want by just sorting a ref list
banghouse2 is now known as banghouse
lmickh has quit [Quit: lmickh]
araujo has quit [Read error: Connection reset by peer]
<Phobos>
_br_, exactly but with the two conditions : first grouping by 'group' then sorting by priority
<_br_>
Phobos: Did I say Rails is bad or something? I just said that this is #ruby. In response to "...didn't see it was the best way to do such things for example in Rails".
niklasb has quit [Ping timeout: 252 seconds]
araujo has joined #ruby
fmendez has quit [Quit: fmendez]
psyl0n has quit [Remote host closed the connection]
fella6s has quit [Read error: Connection reset by peer]
<_br_>
first grouping by 'group' then sorting by priority... yeah doesn't matter. Build your own ADT.
shedd has joined #ruby
<Phobos>
_br_, ADT ?
tobago has quit [Remote host closed the connection]
<Phobos>
_br_, All I want to find a way to group element of an array by ":group" Hash key, THEN sorting That grouped element by priority that's all dude !
petey has joined #ruby
jbpros has quit [Quit: jbpros]
<Phobos>
_br_, Yeah correct
<_br_>
Dude? Lol.
Viridisignis has quit [Ping timeout: 264 seconds]
jkamenik has left #ruby [#ruby]
_bart has joined #ruby
axl_ has left #ruby [#ruby]
spike|spiegel has joined #ruby
interactionjaxsn has joined #ruby
doodlehaus has joined #ruby
<w|t>
sup dudes
danman has joined #ruby
DeProdigy has joined #ruby
<Phobos>
_br_, If you recall my question wasn't how to solve my problem, my question was what is THE BEST supposed way to deal with such use case
petey_ has joined #ruby
<Phobos>
_br_, I have at least 5 way to do so
nhhagen has joined #ruby
jerius has quit [Ping timeout: 246 seconds]
petey has quit [Read error: Connection reset by peer]
Spami has joined #ruby
momomomomo has joined #ruby
fella5s has joined #ruby
browndawg has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 250 seconds]
<Phobos>
_br_, In PHP way such use case is solved by nested hash for example : my_array[group_name][priority] do exactly what I want
s2013 has quit [Ping timeout: 250 seconds]
<Phobos>
the element are first grouped by group_name then sorted by priority
coca_rails has joined #ruby
jlast has joined #ruby
dcope has quit [Ping timeout: 252 seconds]
rootshift has quit [Quit: rootshift]
DeProdigy has quit [Ping timeout: 260 seconds]
psyl0n has joined #ruby
<Phobos>
a simple 'asort' can do the magic but in Ruby I am sure there is a very different technique to solve the same problem
tylersmith has quit [Ping timeout: 264 seconds]
<Phobos>
THIS IS WHAT I AM LOOKING FOR :D
momomomomo has quit [Client Quit]
dcope has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
lowski has quit [Ping timeout: 264 seconds]
dkamioka_ has joined #ruby
baroquebobcat has joined #ruby
petey has joined #ruby
jlast has quit [Read error: Operation timed out]
tylersmith has joined #ruby
petey_ has quit [Read error: Connection reset by peer]
jprovazn has quit [Quit: Leaving]
nettoweb has joined #ruby
joaoh82 has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 250 seconds]
jerius has joined #ruby
dkamioka has quit [Ping timeout: 265 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
Heskie has joined #ruby
otherj has joined #ruby
jerius has quit [Client Quit]
marr has quit [Ping timeout: 264 seconds]
Viridisignis has joined #ruby
ambushsabre has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
Themus has joined #ruby
<Themus>
Welcome Themus , now, you're operator ! Good luck for survive :)
<Themus>
I want to test my bot (it is a bot who op all people) ! Can you enter in my channel 2sec for test ? This is the #ALL-OP channel ! Thanks for you ;)
momomomomo has joined #ruby
<Themus>
Welcome momomomomo , now, you're operator ! Good luck for survive :)
momomomomo has quit [Client Quit]
vlad_starkov has joined #ruby
ua_ has joined #ruby
<Themus>
Welcome vlad_starkov , now, you're operator ! Good luck for survive :)
<Themus>
Welcome ua_ , now, you're operator ! Good luck for survive :)
freakazoid0223 has quit [Ping timeout: 240 seconds]
rootshift has joined #ruby
<Themus>
Welcome rootshift , now, you're operator ! Good luck for survive :)
jerius has joined #ruby
<Themus>
Welcome jerius , now, you're operator ! Good luck for survive :)
* Hanmac
pings apeiros
fandikurnia01 has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
<Themus>
Welcome jlast , now, you're operator ! Good luck for survive :)
Squarepy has joined #ruby
<Themus>
Welcome Squarepy , now, you're operator ! Good luck for survive :)
polaco is now known as polaco_zZz
<Hanmac>
ping fflush
<Phobos>
Hanmac this looks a little bit weired :) Maybe I should use struct or an external class for storing element rather than sticking with arrays ?
ua has quit [Ping timeout: 264 seconds]
jlast has quit [Remote host closed the connection]
jlast_ has joined #ruby
<Themus>
Welcome jlast_ , now, you're operator ! Good luck for survive :)
MrZYX|off is now known as MrZYX
arietis has joined #ruby
<Themus>
Welcome arietis , now, you're operator ! Good luck for survive :)
<Hanmac>
Phobos: hm no Array is okay or do you mean Struct for the elements than hashs? hm yeah you can do that but it only shorted that code a little bit (i was unsure about the return value if you only wanted that names or the entire hash)
<Hanmac>
banister: hey
mneorr has quit [Ping timeout: 250 seconds]
<DefV>
Themus: disable your bot
Themus has left #ruby [#ruby]
skulker has quit [Remote host closed the connection]
DeProdigy has joined #ruby
jerius has quit [Client Quit]
<Phobos>
Honestly I am just looking for the best way here, your solution was OK and will works but what is the standard for such use case ?
ghr has joined #ruby
<Phobos>
I can't find real examples in the inet
browndawg has joined #ruby
zipper has joined #ruby
snath has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
Squarepy has quit [Client Quit]
Squarepy has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
joaoh82 has joined #ruby
wallerdev has joined #ruby
otherj has quit []
f0ster__ has joined #ruby
f0ster__ is now known as f0ster
michaeldeol has joined #ruby
<Phobos>
Hanmac, in my current code I simply do : my_array[:type][:priority] and the store object in the right type/priority place with a simple <<
mmitchell has joined #ruby
f0ster has quit [Changing host]
f0ster has joined #ruby
tesuji has quit [Ping timeout: 246 seconds]
alekst has joined #ruby
iaj has quit [Ping timeout: 272 seconds]
gtsiftsis has quit [Quit: Leaving]
stonevil has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
DeProdigy has quit [Ping timeout: 250 seconds]
clamstar has joined #ruby
dukz has quit [Remote host closed the connection]
jlast has joined #ruby
stonevil has joined #ruby
Arzaga has joined #ruby
verglas has joined #ruby
DeProdigy has joined #ruby
michaeldeol has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby
kpshek has quit []
Arzaga has quit [Client Quit]
jlast_ has quit [Ping timeout: 246 seconds]
DropsOfSerenity has joined #ruby
jlast_ has joined #ruby
g0bl1n has joined #ruby
mneorr has joined #ruby
stonevil_ has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
Clooth has joined #ruby
stonevil has quit [Ping timeout: 264 seconds]
dukz has joined #ruby
niklasb has joined #ruby
okinomo has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
yfeldblum has joined #ruby
reset has joined #ruby
geggam has joined #ruby
joonty has quit [Ping timeout: 246 seconds]
dukz has quit [Remote host closed the connection]
iaj has joined #ruby
joonty has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
saarinen has joined #ruby
jlast_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeeraw has joined #ruby
solars has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
threesome has quit [Ping timeout: 246 seconds]
Azure has joined #ruby
reset has quit [Ping timeout: 250 seconds]
tylersmith has joined #ruby
mando has joined #ruby
ss_ has quit [Remote host closed the connection]
DropsOfSerenity has joined #ruby
<momomomomo>
mornin
baroquebobcat has quit [Quit: baroquebobcat]
alup has quit [Quit: Leaving]
jerius has joined #ruby
allaire has joined #ruby
mikepack has joined #ruby
LostMonk has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
<platzhirsch>
momomomomo: west coast?
ahawkins has quit [Ping timeout: 245 seconds]
<momomomomo>
platzhirsch: CST - I was here at 7, though :p
crus has quit [Read error: Connection reset by peer]
<momomomomo>
up at 5, jamming on the guitar at 6, doin some learning at 630, at work by 720 :p
<platzhirsch>
Productivity. You are doing it right
Tentra has joined #ruby
terrellt has joined #ruby
liamkeily has joined #ruby
pel_daniel has joined #ruby
phansch has quit [Ping timeout: 252 seconds]
flubba has joined #ruby
<momomomomo>
platzhirsch: yesterday I slept in :p you win some days, you lose some
maasha has quit [Ping timeout: 272 seconds]
Heskie has quit []
primenum has joined #ruby
rootshift has quit [Quit: rootshift]
smlgs has quit [Ping timeout: 272 seconds]
shedd has joined #ruby
benweint has joined #ruby
phansch has joined #ruby
hamakn has joined #ruby
flubba has quit [Remote host closed the connection]
elux has joined #ruby
BRMatt has joined #ruby
BRMatt has quit [Client Quit]
BRMatt has joined #ruby
xlogic has quit [Quit: Connection closed for inactivity]
Spami has joined #ruby
deception has joined #ruby
baroquebobcat has joined #ruby
BRMatt has quit [Client Quit]
saarinen has quit [Quit: saarinen]
BRMatt has joined #ruby
peregrine81 has quit []
<shevy>
hehe
mneorr has quit [Remote host closed the connection]
larssmit has quit [Quit: Leaving.]
<shevy>
sounds like beer
synfin has joined #ruby
mneorr has joined #ruby
peregrine81 has joined #ruby
dhruvasagar has joined #ruby
<momomomomo>
shevy: nah, just sleepy
shedd has quit [Ping timeout: 260 seconds]
avril14th_ has quit [Remote host closed the connection]
avril14th has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
skulker has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Xeago has joined #ruby
psyl0n has quit [Remote host closed the connection]
fmendez has quit [Quit: fmendez]
nettoweb has quit [Quit: nettoweb]
djdarkbeat has quit [Quit: djdarkbeat]
jlast has joined #ruby
brianpWins has quit [Quit: brianpWins]
mneorr has quit [Ping timeout: 246 seconds]
kevind_ has joined #ruby
mneorr has joined #ruby
psyl0n has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
skulker has quit [Ping timeout: 264 seconds]
mgberlin has joined #ruby
petey has quit [Remote host closed the connection]
Virtualize has quit [Quit: Leaving...]
digital-ghost has joined #ruby
petey has joined #ruby
<shevy>
bugs cost my nerves :(
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
mgberlin has quit [Client Quit]
dukz has joined #ruby
ddd has quit [Remote host closed the connection]
jerius has quit []
Virtualize has joined #ruby
<IceDragon>
shevy: that would mean you have no nerves now, amirite?
ddd has joined #ruby
ddd has quit [Max SendQ exceeded]
Bira has quit [Remote host closed the connection]
<shevy>
hmm
olivier_bK has quit [Quit: Quitte]
<shevy>
I have little patience and a bit more nerves normally right when I wake up
<shevy>
but soon after that it goes downhill
olivier_bK has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
psyl0n has quit [Remote host closed the connection]
amritanshu_RnD has quit [Read error: Connection reset by peer]
zomgbie has quit [Quit: leaving]
ddd has joined #ruby
axl_ has joined #ruby
ddd has quit [Max SendQ exceeded]
petey has quit [Ping timeout: 250 seconds]
nhhagen has joined #ruby
lmickh has joined #ruby
burlyscudd has quit [Quit: Leaving.]
DouweM has joined #ruby
rootshift has joined #ruby
Heskie has joined #ruby
Virtualize has quit [Read error: Connection reset by peer]
Virtualize has joined #ruby
mneorr has quit [Remote host closed the connection]
ddd has joined #ruby
<IceDragon>
shevy.tap {|s|s.nerves += 1}.tap {|s|s.nerves -= 2} # aka: [wakeup] >> [by the end of the day]
<shevy>
IceDragon.die_now!
<shevy>
IceDragon I still don't grok .tap
mneorr has joined #ruby
<shevy>
when do I need it
TMM has quit [Quit: Ex-Chat]
ddd has quit [Max SendQ exceeded]
arietis has joined #ruby
<IceDragon>
for methods that don't return self, and you really need to chain
threesome has joined #ruby
<IceDragon>
like a bang
<shevy>
ah
<shevy>
so I could then do something like
<shevy>
bla.chop!.tap.size
benweint has quit [Quit: Computer has gone to sleep.]
ddd has joined #ruby
petey has joined #ruby
noname001__ has quit [Ping timeout: 246 seconds]
<IceDragon>
more like
<IceDragon>
bla.tap(&:chop!).size
Atrophius has joined #ruby
michaeldeol has joined #ruby
coca_rails has joined #ruby
<IceDragon>
tap is the one that will return self
browndawg has left #ruby [#ruby]
parduse has quit [Ping timeout: 250 seconds]
aapzak has quit [Ping timeout: 252 seconds]
mlpinit has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
jerius has joined #ruby
shedd has joined #ruby
johnnyfuchs has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
jerius has quit [Client Quit]
aapzak has joined #ruby
parduse has joined #ruby
Tentra has quit [Quit: Rage quit!]
verto_ is now known as verto
xcv has joined #ruby
fmendez has joined #ruby
ss_ has joined #ruby
stonevil_ has quit [Remote host closed the connection]
tylershipe has quit [Remote host closed the connection]
havenwood has joined #ruby
tylershipe has joined #ruby
atm1 is now known as canton7-mac
Spami has quit [Quit: This computer has gone to sleep]
terrellt has quit [Ping timeout: 265 seconds]
tylersmith has quit [Remote host closed the connection]
jerius has joined #ruby
plotter has quit [Remote host closed the connection]
stonevil_ has joined #ruby
danshultz has joined #ruby
burlyscudd has joined #ruby
rootshift has quit [Quit: rootshift]
tylershipe has quit [Read error: Operation timed out]
Bira has joined #ruby
michael_lee has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
nettoweb has joined #ruby
Bira has joined #ruby
ss_ has quit [Ping timeout: 246 seconds]
bean has quit [Read error: Connection reset by peer]
bean has joined #ruby
thumpba has quit [Remote host closed the connection]
zombiebi_ has joined #ruby
zombiebit has quit [Read error: Connection reset by peer]
mlpinit has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 246 seconds]
thumpba has joined #ruby
aganov has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
abhijeet has quit [Quit: ChatZilla 0.9.90.1 [Firefox 22.0/20130701153659]]
io_syl has quit []
mikecmpbll has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mrj has joined #ruby
polaco_zZz is now known as polaco
flubba has joined #ruby
w4pm has joined #ruby
sambao21 has joined #ruby
user258467 has quit [Quit: Quitte]
mlpinit has joined #ruby
michael_lee has joined #ruby
saarinen has joined #ruby
olivier_bK has quit [Quit: Quitte]
_maes_ has joined #ruby
zombiebi_ has quit [Remote host closed the connection]
w4pm has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
nhhagen has joined #ruby
shime has quit [Ping timeout: 246 seconds]
jkhwan has joined #ruby
arietis has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Quit: Leaving.]
reset has joined #ruby
stevenrockarts has quit [Quit: stevenrockarts]
michael_lee has quit [Read error: Connection reset by peer]
stonevil_ has quit [Remote host closed the connection]
dagobah_ has quit [Remote host closed the connection]
terrellt has joined #ruby
roolo_ has quit [Remote host closed the connection]
mlpinit_ has joined #ruby
po10 has joined #ruby
joonty has joined #ruby
ssvo has joined #ruby
xcv has quit [Remote host closed the connection]
Virtualize|away has joined #ruby
Virtualize has quit [Read error: Connection reset by peer]
senj has joined #ruby
xcv has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
brianpWins has joined #ruby
spider-mario has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
reset has quit [Ping timeout: 250 seconds]
saarinen has joined #ruby
brianpWins has quit [Client Quit]
jlebrech has quit [Quit: Konversation terminated!]
mlpinit has quit [Ping timeout: 250 seconds]
aapzak has quit [Ping timeout: 265 seconds]
camilasan has quit []
ace_striker has joined #ruby
plotter has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
aapzak has joined #ruby
Spami has joined #ruby
primenum has quit [Ping timeout: 265 seconds]
xcv has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
psyl0n has joined #ruby
rjhunter has joined #ruby
MadDog31 has quit [Ping timeout: 265 seconds]
mengu has quit [Ping timeout: 250 seconds]
stonevil has joined #ruby
benweint has joined #ruby
A124 has quit [Read error: Connection reset by peer]
marr has joined #ruby
A124 has joined #ruby
brianpWins has joined #ruby
stonevil has quit [Read error: Connection reset by peer]
troyready has joined #ruby
rjhunter has quit [Ping timeout: 250 seconds]
dukz_ has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
nateberkopec has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
dukz has quit [Ping timeout: 252 seconds]
ringaroses has joined #ruby
DrShoggoth has joined #ruby
flubba has quit [Remote host closed the connection]
ringaroses1 has joined #ruby
mando has quit [Remote host closed the connection]
gomix has joined #ruby
* gomix
o/
bradhe has joined #ruby
mando has joined #ruby
flubba has joined #ruby
ringaroses2 has joined #ruby
sophomorical has quit [Ping timeout: 240 seconds]
nvrch has quit [Write error: Broken pipe]
bigoldrock1 has joined #ruby
colonolGron has quit [Quit: leaving]
zipper has quit [Quit: Lost terminal]
jlast has joined #ruby
sophomorical has joined #ruby
diegoviola has joined #ruby
ringaroses has quit [Ping timeout: 265 seconds]
d45h has joined #ruby
aapzak has quit [Ping timeout: 252 seconds]
ringaroses1 has quit [Ping timeout: 265 seconds]
ringaroses2 has quit [Ping timeout: 246 seconds]
flubba has quit [Ping timeout: 245 seconds]
rippa has quit [Read error: Connection reset by peer]
<diegoviola>
i wrote some functionality in some rails app but i didn't wrote tests, since i'm new with testing i'd like to start writing some tests for the functionality that i just added to the app, the application uses capybara and rspec, how do you guys suggest i start with this?
mneorr has joined #ruby
nobitanobi has joined #ruby
Xeago has quit [Remote host closed the connection]
Viridisignis has quit [Quit: Computer has gone to sleep.]
tvw has quit []
Viridisignis has joined #ruby
<stringoO>
diegoviola: if the app already has tests, you can try following the same format that the app already uses
dfranciosi has quit []
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
<diegoviola>
stringoO: ok thanks, i'll look into the existing tests and try to follow with that
<ddd>
A) hit #rubyonrails not here (this is for 'pure' ruby, w/o rails) B) use rspec, capybara, selenium, and see the rspec site for docs on how to test using rspec, as well as check out the free online book ruby.railstutorial.org
<diegoviola>
cool, thanks
Virtualize|away has quit [Quit: Leaving...]
s2013 has joined #ruby
<stringoO>
what ddd said is true as well :P
petey has quit [Remote host closed the connection]
<diegoviola>
yeah thanks
<ddd>
the full address for the free book is ruby.railstutorial.org/ruby-on-rails-tutorial-book
canton7-mac has quit [Read error: Operation timed out]
saarinen has quit [Quit: saarinen]
DeProdigy has joined #ruby
<stringoO>
diegoviola: I'm new to testing as well, I found it helpful to see how testing was done in the app and test similarly
clamstar has quit [Quit: Computer has gone to sleep.]
<ddd>
i would highly suggest Rails 3 In Action ebook as well as The RSpec Book ebook too
hogeo has quit [Ping timeout: 264 seconds]
<ddd>
worth every penny
jlast has joined #ruby
nhhagen has quit [Remote host closed the connection]
<ddd>
I would also suggest The Well-Grounded Rubyist for learning Ruby. (rails as an aside)
chris_____ has joined #ruby
<chris_____>
Hi All
peregrine81 has joined #ruby
enebo has quit [Quit: enebo]
mklappstuhl has quit [Remote host closed the connection]
nhhagen has joined #ruby
Viridisignis has quit [Ping timeout: 250 seconds]
mengu has joined #ruby
<ddd>
There is also Programming Ruby 1.9 (and I believe a Programming Ruby 2.0 is planned if not out already), however, that is more for programmers. Or at least it reads more dry like a textbook than anything else.
djdarkbeat has joined #ruby
<chris_____>
I have a requirement to split a html document in half, nicely. The html I have is the html within the <body> tags. It needs to be done in a nice way so that the resulting html is valid html, ie every start tag has an end tag. Can anyone suggest a good way of doing this?
<ddd>
if thats your style of reading, then its great. but if you like a bit more user-friendly approach, TWGR is better
nhhagen has quit [Read error: Connection reset by peer]
<s2013>
also you can check it against w3c validator
nobitanobi has quit [Read error: Connection reset by peer]
machuga is now known as machuga|away
petey_ has joined #ruby
<chris_____>
s2013: I can't check it. I need to know that it's right by processing it correctly.
DeProdigy has quit [Ping timeout: 260 seconds]
<s2013>
um ok
nobitanobi has joined #ruby
<chris_____>
s2013: no internet access
clamstar has joined #ruby
mansi has quit [Remote host closed the connection]
dopie has joined #ruby
<chris_____>
I need to somehow loop through all the elements, while knowing the "level" of nesting that I am at, and then need to split the document when I'm at level 0 and at a suitable point.
mansi has joined #ruby
kcombs has joined #ruby
kpshek has joined #ruby
<chris_____>
I haven't used nokogiri that much so not sure if that will be easy
verglas has quit [Ping timeout: 250 seconds]
<DouweM>
chris_____: why do you want to do this? just curious
<dopie>
chris_____, you want to throw it in a array??
duggiefresh has quit [Remote host closed the connection]
barratt has quit [Quit: Leaving...]
blaxter has quit [Quit: foo]
hadees has joined #ruby
Heskie has quit [Read error: Connection reset by peer]
phantummm has quit [Read error: No route to host]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Heskie has joined #ruby
phantummm has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
Zesty has joined #ruby
mansi has quit [Remote host closed the connection]
<chris_____>
DouweM: I need to display just the beginning of several html documents on the page : http://imagebin.org/281864
mansi has joined #ruby
<dopie>
chris_____, from tht what do you need?
m8 has joined #ruby
timonv has joined #ruby
<chris_____>
dopie: I'm just showing the user the start of the document. So I need to split the HTML document in a nice way so I can display it within a div on the page.
jonathanwallace has quit [Quit: WeeChat 0.4.1]
CpuID has joined #ruby
CpuID has joined #ruby
rippa has quit [Read error: Connection reset by peer]
<chris_____>
dopie: If I just chop the HTML document at a random point then it would probably screw up the html of the whole web page.
rippa has joined #ruby
hogeo has joined #ruby
iliketur_ has joined #ruby
petey_ has quit [Remote host closed the connection]
noop has joined #ruby
mansi has quit [Ping timeout: 250 seconds]
jonathanwallace has joined #ruby
MadDog31 has joined #ruby
s2013 has quit [Ping timeout: 265 seconds]
troessner has quit [Read error: Connection reset by peer]
ozgun has quit [Quit: Leaving]
aspires has quit []
cbetta_afk is now known as cbetta
aagdbl has joined #ruby
flubba has joined #ruby
shedd has quit [Remote host closed the connection]
iliketur_ has quit [Client Quit]
nari has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Quit: Leaving]
klaut has quit [Remote host closed the connection]
d45h has quit []
nobitanobi has joined #ruby
mlpinit has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duggiefresh has joined #ruby
d45h has joined #ruby
brianpWins has quit [Quit: brianpWins]
ace_striker has quit [Ping timeout: 272 seconds]
Dwarf has quit [Max SendQ exceeded]
kevinykchan has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
Dwarf has joined #ruby
mlpinit has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
obs has quit [Remote host closed the connection]
nobitanobi has quit [Read error: Connection reset by peer]
phansch has quit [Remote host closed the connection]
io_syl has joined #ruby
elux has quit [Quit: Leaving...]
mlpinit_ has quit [Ping timeout: 250 seconds]
Jdubs has joined #ruby
nobitanobi has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Dwarf has quit [Max SendQ exceeded]
Dwarf has joined #ruby
sambao21 has joined #ruby
liamkeily has quit [Quit: WeeChat 0.4.1]
aspires has joined #ruby
arietis has joined #ruby
jhaals has joined #ruby
RaCx_ has joined #ruby
liamkeily has joined #ruby
Solnse has joined #ruby
sambao21 has quit [Client Quit]
elux has joined #ruby
elux has quit [Client Quit]
RaCx has quit [Ping timeout: 245 seconds]
RaCx_ is now known as RaCx
cbetta is now known as cbetta_afk
ddd has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
<shevy>
chris you have a lot of _ in your nick
ddd has joined #ruby
kitak__ has joined #ruby
sambao21 has joined #ruby
ddd has quit [Max SendQ exceeded]
<apeiros>
shevy: I think ______'s nick is tainted by a 'chris'
shedd has joined #ruby
stonevil has joined #ruby
ddd has joined #ruby
davy_ has joined #ruby
aspires has quit [Client Quit]
jhaals has quit [Client Quit]
s2013 has joined #ruby
ddd has quit [Max SendQ exceeded]
DeProdigy has joined #ruby
kitak has quit [Ping timeout: 245 seconds]
reset has joined #ruby
Columcille has quit [Quit: leaving]
verglas has joined #ruby
vergl4s has joined #ruby
ddd has joined #ruby
Zai00 has quit [Quit: Zai00]
ddd has quit [Max SendQ exceeded]
Advocation has joined #ruby
Bira has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 246 seconds]
machuga|away is now known as machuga
saarinen has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
coca_rails has joined #ruby
joonty has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
nhhagen_ has quit [Ping timeout: 245 seconds]
heidi has joined #ruby
reset has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
DeProdigy has quit [Ping timeout: 250 seconds]
mlpinit has joined #ruby
bluenemo has joined #ruby
xcv has joined #ruby
nhhagen has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
stonevil has quit [Remote host closed the connection]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mlpinit_ has joined #ruby
<platzhirsch>
D:
jbpros has joined #ruby
elux has joined #ruby
heidi has quit [Ping timeout: 260 seconds]
zeeraw has joined #ruby
rjhunter has joined #ruby
zeeraw has quit [Client Quit]
ddd has joined #ruby
tirengarfio has quit [Ping timeout: 240 seconds]
d45h has quit []
gianlucadv has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
alvaro_o has joined #ruby
mlpinit has quit [Ping timeout: 246 seconds]
alvaro_o has quit [Client Quit]
bradhe has joined #ruby
bigoldrock1 has quit [Ping timeout: 250 seconds]
tylershipe has joined #ruby
reset has joined #ruby
reset has quit [Client Quit]
tylersmith has quit [Ping timeout: 250 seconds]
heidi has joined #ruby
alvaro_o has joined #ruby
rjhunter has quit [Ping timeout: 250 seconds]
tylersmith has joined #ruby
jhaals has joined #ruby
mengu has quit []
michaeldeol has quit [Remote host closed the connection]
wallerdev has joined #ruby
MattStratton has joined #ruby
MattStra_ has quit [Ping timeout: 246 seconds]
greg_____ has joined #ruby
stonevil has joined #ruby
bluenemo has quit [Remote host closed the connection]
Davey has quit [Ping timeout: 246 seconds]
brandonblack has quit [Ping timeout: 272 seconds]
Columcille has joined #ruby
jonahR has joined #ruby
Kudos has quit [Ping timeout: 252 seconds]
xcv has quit [Remote host closed the connection]
mpereira has quit [Ping timeout: 245 seconds]
xcv has joined #ruby
maxmanders has quit [Ping timeout: 260 seconds]
hogeo has quit [Ping timeout: 265 seconds]
whysosad has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
whysosad has joined #ruby
jbpros has quit [Quit: jbpros]
timonv has quit [Remote host closed the connection]
stonevil has quit [Remote host closed the connection]
iliketur_ has joined #ruby
xcv_ has joined #ruby
amoli has joined #ruby
SHyx0rmZ has joined #ruby
xcv has quit [Read error: No route to host]
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greg_____ has quit [Ping timeout: 260 seconds]
heidi has quit [Quit: Leaving.]
heidi has joined #ruby
nanoyak has joined #ruby
johnnyfuchs has joined #ruby
johnnyfuchs has left #ruby [#ruby]
Heskie has quit []
dukz_ has quit [Remote host closed the connection]
tylershipe has quit [Read error: Connection reset by peer]
dukz has joined #ruby
tylershipe has joined #ruby
carraroj has joined #ruby
davy_ has quit [Remote host closed the connection]
banister has joined #ruby
Heskie has joined #ruby
motto has joined #ruby
kevind has quit [Quit: kevind]
Heskie_ has joined #ruby
Heskie has quit [Read error: Connection reset by peer]
Heskie_ is now known as Heskie
m8 has quit [Ping timeout: 250 seconds]
DeProdigy has joined #ruby
p0wn3d has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
jkhwan has quit [Remote host closed the connection]
tylershipe has joined #ruby
dukz has quit [Ping timeout: 265 seconds]
jkhwan has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
Bira has joined #ruby
tylershipe has joined #ruby
ixti has joined #ruby
DrCode has quit [Remote host closed the connection]
arietis has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
greg_____ has joined #ruby
brandonbl has joined #ruby
Hanmac1 has joined #ruby
Advocation has quit [Quit: Advocation]
DeProdigy has quit [Ping timeout: 265 seconds]
mpereira has joined #ruby
psyl0n has quit [Remote host closed the connection]
ldnunes has quit [Ping timeout: 264 seconds]
liamkeily has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 246 seconds]
Bira has quit [Ping timeout: 246 seconds]
Davey has joined #ruby
Xeago has joined #ruby
bigoldrock has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
jkhwan has quit [Remote host closed the connection]
DrCode has joined #ruby
Kudos has joined #ruby
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has quit [Excess Flood]
jkhwan has joined #ruby
ldnunes has joined #ruby
Floydzy has quit [Quit: Floydzy]
d45h has joined #ruby
Kudos has joined #ruby
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has quit [Excess Flood]
jkhwan has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
<shevy>
it's like a variable name
DeProdigy has joined #ruby
ambushsabre has joined #ruby
xcv_ has quit [Remote host closed the connection]
iliketur_ has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
xcv has joined #ruby
ddd has quit [Quit: Leaving]
Kudos has joined #ruby
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has quit [Excess Flood]
ddd has joined #ruby
Kudos has joined #ruby
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has quit [Excess Flood]
xcv_ has joined #ruby
xcv has quit [Read error: No route to host]
phansch has joined #ruby
dev_ has joined #ruby
ddd has quit [Client Quit]
Kudos has joined #ruby
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has quit [Excess Flood]
avril14th has joined #ruby
avril14th_ has joined #ruby
sayan has joined #ruby
flak has joined #ruby
jkhwan has quit [Remote host closed the connection]
flak is now known as Guest83073
Kudos has joined #ruby
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has quit [Excess Flood]
ddd has joined #ruby
jkhwan has joined #ruby
DeProdigy has quit [Ping timeout: 265 seconds]
ddd has quit [Client Quit]
benweint has quit [Quit: Computer has gone to sleep.]
<Hanmac>
aarkerio: depends did you define "@foo = 1" inside a method too? if yes yeah you can change it in methods, if not than you have defined that variable as class instance varable and it can only be changed in a class method of this class
<aarkerio>
the attr_accesor is only of I want to access that @foo var outside the class right?
<aarkerio>
I see, thanks guys
flame_ has joined #ruby
<Hanmac>
attr_accessor are only helper you can define your own get and set methods
havenwood has joined #ruby
jlast_ has joined #ruby
MadDog31 has quit [Ping timeout: 260 seconds]
g0bl1n has joined #ruby
g0bl1n has joined #ruby
MadDog31 has joined #ruby
thumpba has quit [Remote host closed the connection]
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
petey has joined #ruby
jkhwan has quit [Remote host closed the connection]
<LiohAu>
it seems that all the versions I have are required right ?
<LiohAu>
so I can't update ?
cpruitt has joined #ruby
<platzhirsch>
looks like some conflicting dependency requirements, maybe you need to update the depending libraries, too or see if you need them. In any case cucumber seems to want 1.0 as to your previous error log
mary5030 has quit [Remote host closed the connection]
<LiohAu>
i just removed all my gems
tinAndi has joined #ruby
<LiohAu>
and installed them again
<LiohAu>
so i guess that they are all up-to-date right?
maasha has joined #ruby
mansi has joined #ruby
g0bl1n has quit [Read error: Operation timed out]
Heskie has joined #ruby
mlpinit has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
<platzhirsch>
That should be the case
kreisys has joined #ruby
juarlex has quit [Remote host closed the connection]
kreisys has quit [Read error: Connection reset by peer]
phansch has quit [Quit: Leaving]
Bira has joined #ruby
kreisys has joined #ruby
mlpinit has quit [Read error: No route to host]
kreisys has quit [Read error: Connection reset by peer]
<bnagy>
maasha: basically no
tylersmi_ has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Quit: Leaving.]
mlpinit has joined #ruby
Bira has quit [Remote host closed the connection]
MadDog31 has quit [Ping timeout: 260 seconds]
<gr33n7007h>
anything is possible
petey has joined #ruby
<gr33n7007h>
because impossibe => i'm possible
funburn has joined #ruby
MadDog31 has joined #ruby
jgrevich has joined #ruby
benweint has quit [Quit: Computer has gone to sleep.]
<platzhirsch>
gr33n7007h: if the left side of the application is already false, the implication will not become true
<platzhirsch>
s/application/implication
mikecmpbll has quit [Quit: Computer has gone to sleep.]
<gr33n7007h>
reprogram your mind mr platzhirsch
<bnagy>
stop huffing paint
aryaching has quit [Ping timeout: 240 seconds]
<gr33n7007h>
the color is bright
rjhunter has joined #ruby
mojjojo has joined #ruby
* platzhirsch
puts gr33n7007h down
* gr33n7007h
ifconfig gr33n7007h up
bradhe has joined #ruby
<bnagy>
sudo ifconfig gr33n7007h mtu 0
<maasha>
bnagy: ok
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
peregrine81 has quit [Ping timeout: 260 seconds]
benweint has joined #ruby
<gr33n7007h>
bnagy, no sudo i'm r00t
<maasha>
Hanmac: well, I was hoping for a "short" hand :o)
maletor has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
<bnagy>
if foo weren't a symbol it would be vaguely tractable but still pretty bad
krawchyk has quit []
ItSANgo has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
<Hanmac>
maasha: on 2.1 you can leave the nil out, but if you leave the **_ out you will get problems with other options
* gr33n7007h
time for another beer
<bnagy>
just look at the existing spec frameworks. You can reasonably assume that if it were possible to make them more stupidly pretend-english than they already are then it would be done by now
funburn has quit [Quit: funburn]
barratt has joined #ruby
<maasha>
bnagy: thats a point
Tentra has joined #ruby
rjhunter has quit [Ping timeout: 260 seconds]
<waxjar_>
maasha, you could (re)define Symbol#> ? i'd not recommend it, tho
peregrine81 has joined #ruby
<maasha>
waxjar_: sounds evil
mojjojo has quit [Quit: mojjojo]
hogeo has joined #ruby
jlast has joined #ruby
barratt has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
<maasha>
It could be done with eval?
chukdisc has joined #ruby
Sawbones has joined #ruby
fmendez has quit [Quit: fmendez]
allsystemsarego has quit [Quit: Leaving]
mary5030 has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
tylershipe has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
CpuID has quit [Quit: This computer has gone to sleep]
carraroj has quit [Quit: Konversation terminated!]
cflat has joined #ruby
davy_ has joined #ruby
jlast has joined #ruby
kaldrenon has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
tylersmith has joined #ruby
w4pm has joined #ruby
yfeldblu_ has joined #ruby
kaldrenon has joined #ruby
mansi has joined #ruby
tylershipe has quit [Ping timeout: 240 seconds]
<coldmethod>
anyone using emacs here?
danshultz has quit [Remote host closed the connection]
<coldmethod>
what do you guys use for tab completion of methods in emacs?
gigetoo has quit [Remote host closed the connection]
maasha has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
davy__ has joined #ruby
gigetoo has joined #ruby
mroth has quit [Ping timeout: 260 seconds]
ryotarai has quit [Ping timeout: 260 seconds]
gadgetoid has quit [Ping timeout: 260 seconds]
<Hanmac>
emacs, isnt that this fantastic os that has a medium-low text editor included?
<nwertman>
Do you guys know of a ruby option parsing library that allows multiple instances of the same argument? I'd like to be able to pass -a/--add to my tool multiple times if necessary.
itamar7 has quit [Ping timeout: 260 seconds]
<xibalba>
newb Q, when looking at object.public_methods, are these the methods from only the object itself or the inheirted methods from the super class too?
yeboot has quit [Ping timeout: 250 seconds]
<bnagy>
nwertman: trollop supports that ( as well as tons of other stuff )
<bnagy>
xibalba: guess
<canton7>
newton, I'm pretty sure about trollop and slop allow that? it's been a while though
<Hanmac>
xibalba: superclass and modules too
juarlex has quit [Remote host closed the connection]
<xibalba>
i was about to guess!
<xibalba>
=P
kaldrenon has quit [Ping timeout: 250 seconds]
<xibalba>
ok, is there a way for me to determine if the method is from the class or the super class?
<Hanmac>
xibalba: look also at object.public_methods(false)
juarlex has joined #ruby
davy_ has quit [Ping timeout: 260 seconds]
<nwertman>
bnagy: Via the type => :ints pluralization? I'll look into that! thanks!
<nwertman>
I like !!!'s apparently!
<bnagy>
you're not alone
<Hanmac>
xibalba: object.method(methname).owner #returns the class or object in which the method was defined
martin_work has quit [Ping timeout: 252 seconds]
mroth has joined #ruby
yeboot has joined #ruby
itamaryu has joined #ruby
<xibalba>
awesome, is there a way i can print the whole list from an object or do i have to do it method by method
jmeeuwen has quit [Read error: No route to host]
jmeeuwen has joined #ruby
DeProdigy has quit [Ping timeout: 250 seconds]
Monie has quit [Ping timeout: 246 seconds]
danshultz has quit [Ping timeout: 272 seconds]
<xibalba>
i guess i could iterate on the results
<endash>
Does anyone have any idea why the value of a float passed into a method will somehow change between the method returning and the next line executed
<existensil>
not knowing if you're using an instance method, global method, local variable, etc is one of the downsides to using bare words. its also one of the advantages.
colonolGron has quit [Quit: leaving]
havenwood has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juarlex has joined #ruby
ckinni has joined #ruby
Monie has joined #ruby
kitak__ has quit [Remote host closed the connection]
casheew has joined #ruby
kitak has joined #ruby
g0bl1n has quit [Ping timeout: 272 seconds]
<endash>
related: "result should have been changed by -96.8, but was changed by -96.8"… thanks ruby
frx has joined #ruby
<existensil>
looks like you're running into the loss of precision when using floats. you will find this same behavior in every language that implements floats
<existensil>
when precision matters using arbitrary precision math. BigDecimal too the resque.
<endash>
fair enough :)
<existensil>
dammit, resque has me spelling rescue wrong out of habit
RaCx_ has joined #ruby
<endash>
existensil: you need a spelling sidekiq
casheew_ has quit [Read error: Connection reset by peer]
RaCx has quit [Ping timeout: 260 seconds]
Speed has joined #ruby
RaCx_ is now known as RaCx
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Astralum has quit [Quit: Leaving]
* Hanmac
imaged a superhero with a sidekick, dressed as a spelling bee ;P
rjhunter has joined #ruby
Speed has left #ruby ["WeeChat 0.4.2"]
axl_ has quit [Quit: axl_]
PanPan has quit [Ping timeout: 245 seconds]
IceDragon has quit [Ping timeout: 260 seconds]
fijimunkii has quit [Ping timeout: 250 seconds]
mojjojo has quit [Quit: mojjojo]
dev_ has quit [Read error: No route to host]
simoz has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
IceDragon has joined #ruby
PanPan has joined #ruby
CpuID has joined #ruby
buscon_ has joined #ruby
mando has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 246 seconds]
mando has joined #ruby
rjhunter has quit [Ping timeout: 260 seconds]
mlpinit has quit [Remote host closed the connection]
emocakes_ has quit [Quit: Leaving...]
breakingthings has quit []
Bira has joined #ruby
hogeo has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
<coldmethod>
Hanmac: Yup that is! Contrary to vim, it even has its own package installer :P
Floydzy has joined #ruby
clamstar has joined #ruby
Floydzy has quit [Client Quit]
simoz has joined #ruby
mando has quit [Ping timeout: 240 seconds]
m8 has quit [Quit: Sto andando via]
bnjamin has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
petey has joined #ruby
hogeo has quit [Ping timeout: 250 seconds]
burlyscudd has joined #ruby
davy_ has joined #ruby
mlpinit has joined #ruby
rootshift has joined #ruby
petey_ has joined #ruby
elux has quit [Quit: Bye!]
axl_ has joined #ruby
shedd has joined #ruby
nettoweb has quit [Quit: nettoweb]
nhhagen has joined #ruby
Advocation has quit [Quit: Advocation]
<Styles>
What's with RubyForge being broken so much lately?
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has quit [Ping timeout: 250 seconds]
dallasm_ has quit [Remote host closed the connection]
buscon_ has quit [Remote host closed the connection]
fandikurnia01 has quit [Ping timeout: 252 seconds]
petey_ has quit [Remote host closed the connection]
niklasb has joined #ruby
kcombs has quit [Remote host closed the connection]
baordog_ has quit [Remote host closed the connection]
matti has quit [Ping timeout: 260 seconds]
bw__ has quit [Ping timeout: 260 seconds]
awkisopen has quit [Ping timeout: 260 seconds]
burlyscudd has quit [Quit: Leaving.]
matti has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
bw_ has joined #ruby
MadDog31 has quit [Quit: Leaving]
fella5s has quit [Ping timeout: 260 seconds]
crapple has joined #ruby
soulcake has joined #ruby
mgorbach has joined #ruby
nhhagen has joined #ruby
awkisopen has joined #ruby
stonevil has quit [Remote host closed the connection]
stonevil has joined #ruby
kitak has quit [Remote host closed the connection]
jkhwan has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 252 seconds]
mary5030 has quit [Remote host closed the connection]
jkhwan has joined #ruby
bluOxigen has joined #ruby
dcope has quit [Quit: leaving]
gr33n7007h has joined #ruby
mlpinit_ has joined #ruby
KmartSqrl has joined #ruby
marr has quit [Ping timeout: 265 seconds]
kristian_ has joined #ruby
kiba has quit [Ping timeout: 246 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
CpuID has quit [Read error: Connection reset by peer]
mgorbach has quit [Read error: Connection reset by peer]
kristiandelay has quit [Read error: Connection reset by peer]
nobitanobi has quit [Read error: Operation timed out]
Bira has joined #ruby
sergicles has quit [Quit: sergicles]
mansi has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 260 seconds]
mgorbach has joined #ruby
mansi has joined #ruby
tylersmi_ has quit [Ping timeout: 246 seconds]
tylersmith has joined #ruby
joshwines_ has joined #ruby
Es0teric has joined #ruby
mary5030 has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sergicles has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
DeProdigy has quit [Ping timeout: 246 seconds]
maroloccio has quit [Quit: WeeChat 0.4.1]
davy_ has joined #ruby
CpuID has joined #ruby
danshultz has joined #ruby
peregrine81 has joined #ruby
Hanmac1 has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
simoz has quit [Ping timeout: 260 seconds]
stonevil has quit [Remote host closed the connection]
simoz has joined #ruby
stonevil has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
reach has quit [Remote host closed the connection]
rjhunter has joined #ruby
danshultz has quit [Read error: Operation timed out]
solars has quit [Ping timeout: 252 seconds]
DrPonyo has joined #ruby
mojjojo has quit [Quit: mojjojo]
Heskie has quit []
awkwords1 has joined #ruby
mojjojo has joined #ruby
mojjojo has quit [Client Quit]
mojjojo has joined #ruby
enebo has quit [Quit: enebo]
Hanmac1 is now known as Hanmac
DeProdigy has joined #ruby
kirun has quit [Quit: Client exiting]
<awkwords1>
anyone here experienced with optionparser? http://ruby-doc.org/stdlib-2.0.0/libdoc/optparse/rdoc/OptionParser.html … here in the example it shows -r to import the library, i wrote a small library in lib/ and am calling it in.. i also built another opt to pass in a string to the library.. how can i confirm the library is receiving the string from optparser?
nobitanobi has joined #ruby
jamesaanderson has joined #ruby
jmimi1 has joined #ruby
mojjojo_ has joined #ruby
mojjojo has quit [Read error: Connection reset by peer]
mojjojo_ is now known as mojjojo
nico103 has joined #ruby
<nico103>
hi
blaskovicz has joined #ruby
<nico103>
I'm writing Ruby bindings for a C API
DrPonyo has left #ruby [#ruby]
djdarkbeat has quit [Ping timeout: 252 seconds]
<nico103>
I'd like to raise exceptions on error, but I'd like numeric error codes to be available to the Ruby app