baweaver has quit [Remote host closed the connection]
chopin has joined #ruby
bl0ndie has joined #ruby
tynamite has joined #ruby
tynamite is now known as Guest46085
dopamean_ has joined #ruby
dstarh has joined #ruby
chopin has quit [Remote host closed the connection]
arescorpio has joined #ruby
chopin has joined #ruby
fullofcaffeine has joined #ruby
sanjayu has quit [Ping timeout: 244 seconds]
user083 has quit [Quit: leaving]
rails897 has joined #ruby
sankaber has joined #ruby
<rails897>
hi!
haraoka has joined #ruby
<rails897>
I'm trying to create an enum on Rails and I'm getting this error "You tried to define an enum named "status" on the model "Post", but this will generate a class method "public", which is already defined by Active Record."
diegobiavati has quit [Read error: Connection reset by peer]
<rails897>
What does that mean?
chopin has quit [Ping timeout: 255 seconds]
<havenwood>
?rails rails897
<ruboto>
rails897, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
fullofca_ has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
<shevy>
pontiki aha so you are now snowtiki
Lucky__ has joined #ruby
bruno- has joined #ruby
user083 has joined #ruby
mistermocha has joined #ruby
stardiviner has joined #ruby
unreal_ has joined #ruby
axisys has quit [Remote host closed the connection]
sankaber has quit [Remote host closed the connection]
rails897 has quit [Ping timeout: 246 seconds]
sankaber has joined #ruby
rismoney1 has joined #ruby
unreal has quit [Ping timeout: 250 seconds]
axisys has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
northfurr has joined #ruby
bmurt has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
fastAndSlow has joined #ruby
fastAndSlow has left #ruby [#ruby]
joneshf-laptop has joined #ruby
yeshacker has quit [Ping timeout: 272 seconds]
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
diegoviola has joined #ruby
<pontiki>
no, not yet, thank the norse all-father
shmilan has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
XxionxX has joined #ruby
t0code has joined #ruby
<t0code>
whats the proper way to modify a value in a hash?
<t0code>
hash.[key]=value?
<eam>
hash[key] = value
<shevy>
t0code interesting how you used the . there :)
l_tonz has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
<t0code>
when passing the key in which to adjust, do you have to initialize the corresponding name within the method for it to pass?
stardiviner has quit [Ping timeout: 250 seconds]
thistle has joined #ruby
<t0code>
nvm ;p
workmad3 has joined #ruby
eminencehc has joined #ruby
stardiviner has joined #ruby
eminencehc has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
l_tonz has joined #ruby
<BraddPitt>
short of using ncurses, is there a simple library to make an interactive repl that can accept user input, selection and screen redrawing?
favadi has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<eam>
what's selection?
<eam>
if you just want a simple repl, readline oughta do
saddad has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
<shevy>
hmm
<bnagy>
there were a ton of things like that
<shevy>
screen redrawing
<bnagy>
highline, is that the name?
<shevy>
BraddPitt so you will go the curses way!
Melpaws has joined #ruby
<BraddPitt>
:(
<BraddPitt>
I mean like the ability to use arrow keys for option selection and stuff eam
willardg has joined #ruby
willardg has quit [Client Quit]
<BraddPitt>
perhaps im not using the right words to describe this
<drbrain>
for Array it appends an item, modifying the LHS, for String it concatenates
<drbrain>
for integers it is left-shift
<decaff>
ahh, alright, that makes sense
<decaff>
devise must have an array of parameters to sanitize, thanks
datanoise has joined #ruby
banister has joined #ruby
wldcordeiro has quit [Quit: WeeChat 0.4.2]
_wldcordeiro has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
Ebok has joined #ruby
<Ebok>
Hey. I've a rather simple question. I have to create a method that delivers a float unless its a round int.
psy_ has quit [Ping timeout: 268 seconds]
nofxx has quit [Remote host closed the connection]
<Ebok>
Is there a simple way to look at a float, and if its a num.0 return an int?
datanoise has quit [Ping timeout: 250 seconds]
<Ebok>
<_< my gut feeling is to look at it as a string[-2..-1] == ".0"
<Ebok>
However that feels sortve wonky
fullofcaffeine has joined #ruby
<monoprotic>
Ebok floats arent represented exactly and so you may get something like 2.0000002 after an operation. you may want to check if the value is within some small deviation from an integer instead
stardiviner has quit [Ping timeout: 260 seconds]
<bnagy>
return f.floor if f == f.floor; return f
riotjones has joined #ruby
<bnagy>
second return is redundant, I guess
diegoviola has quit [Ping timeout: 240 seconds]
<Ebok>
I'm going to look up #floor now
<Ebok>
Nah. See I cant round the answer at all
<bnagy>
it doesn't
<Ebok>
floor rounds it down to the nearest int
<bnagy>
it returns an int if it's say 2.0, otherwise it returns the float
<bnagy>
which is what you asked for
<Ebok>
Oh
<Ebok>
I misread your answer slightly. Thanks
<bnagy>
np :)
<bnagy>
note what monoprotic said though
s00pcan has joined #ruby
<bnagy>
for most uses you might want to return an int if it's within some epsilon (that you choose) of the whole number
<Ebok>
Yeah. If I was writing this for me, I'd definitely be looking at the be_within() variables
fullofcaffeine has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
ausec_ has quit [Ping timeout: 256 seconds]
darkf has joined #ruby
riotjones has quit [Ping timeout: 268 seconds]
<Ebok>
However, the method needs to match something given to me, rather then something I'm doing on my own
Musashi007 has quit [Client Quit]
fullofcaffeine has joined #ruby
failshell has joined #ruby
<Ebok>
so floats that cascade into tiny values need to match their tiny floats
<Ebok>
^_^
<monoprotic>
for example if you have `f = 129.95 * 100`, bnagy's thing will return the error-y float of 12994.9999999 rather than 12995
ramfjord has joined #ruby
jpfuentes2 has joined #ruby
<Ebok>
Yeah.
<Ebok>
Appreciate the help ^_^
ausec has joined #ruby
gnufied has quit [Quit: Leaving]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
<monoprotic>
np
lxb has joined #ruby
stardiviner has joined #ruby
thistle has quit [Remote host closed the connection]
thistle has joined #ruby
diegoviola has joined #ruby
keen__________13 has quit [Ping timeout: 272 seconds]
diegoviola has quit [Client Quit]
ausec has quit [Ping timeout: 240 seconds]
ausec has joined #ruby
mistermocha has quit [Remote host closed the connection]
_fumk is now known as fumk
<Ebok>
Does anyone here know how to use cloud 9? c9.io ?
<monoprotic>
i used it once
Renich has quit [Ping timeout: 252 seconds]
<Ebok>
That's probably not going to help. I enjoy the thing mostly, since I'm on like 4-5 computers a day.
<Ebok>
However, every now and then I end up highlighting my code with this strange orange cursor
htmldrum has quit [Ping timeout: 260 seconds]
<Ebok>
And I have no idea how to make the highlighted areas stop being orange. Its like I added a comment, or claimed authorship or something.
<Ebok>
There is still a cursor claim, but that's tiny and ignorable
devoldmx has quit [Ping timeout: 272 seconds]
renderfu_ has quit [Ping timeout: 268 seconds]
fedexo has quit [Remote host closed the connection]
<monoprotic>
:\
northfurr has quit [Quit: northfurr]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkxploit has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
beauby has quit [Ping timeout: 265 seconds]
stardiviner has quit [Ping timeout: 268 seconds]
konsolebox has joined #ruby
stardiviner has joined #ruby
TvL2386 has quit [Ping timeout: 252 seconds]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cwong_on_irc has joined #ruby
dikaio has joined #ruby
Melpaws has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
chopin has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Ping timeout: 256 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
braincra- has joined #ruby
RobertBirnie has joined #ruby
pietr0 has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 265 seconds]
quazimodo has joined #ruby
<quazimodo>
possible to run zeus in a shell script?
<quazimodo>
i keep getting bash: zeus: command not
<quazimodo>
found
konsolebox has quit [Read error: Connection reset by peer]
<quazimodo>
in fact i'm doing xterm -hold -e "/bin/bash zeus start" & from within my shell script. So i think chruby isn't setting up my paths
PaulCape_ has quit [Quit: .]
darkxploit has joined #ruby
<postmodern>
quazimodo, you probably want 'bash -c "..."'
PaulCapestany has joined #ruby
NotASpam has joined #ruby
<NotASpam>
Hello. FUCK ALL SPICS, NIGGERS, JEWS, CHRISTIANS, SAND NIGGERS, DUNE COONS, KIKES, CHINKS, WETBACKS, FAGS, DYKES, AND PEOPLE WHO LIKE PEACH ICE CREAM, JOIN #R.TREES FOR FREE OPS
<NotASpam>
Hello. FUCK ALL SPICS, NIGGERS, JEWS, CHRISTIANS, SAND NIGGERS, DUNE COONS, KIKES, CHINKS, WETBACKS, FAGS, DYKES, AND PEOPLE WHO LIKE PEACH ICE CREAM, JOIN #R.TREES FOR FREE OPS
<quazimodo>
postmodern: i'lltry
<NotASpam>
Hello. FUCK ALL SPICS, NIGGERS, JEWS, CHRISTIANS, SAND NIGGERS, DUNE COONS, KIKES, CHINKS, WETBACKS, FAGS, DYKES, AND PEOPLE WHO LIKE PEACH ICE CREAM, JOIN #R.TREES FOR FREE OPS
NotASpam has left #ruby [#ruby]
<postmodern>
JUSTICE
<quazimodo>
hrm
jenrzzz has quit [Ping timeout: 264 seconds]
<postmodern>
quazimodo, check `man bash`, "path foo" will expect foo to be a file in the $PWD
<quazimodo>
no that's not it
fedexo has joined #ruby
<postmodern>
quazimodo, oh also bash -l -c "..." that way login configuration files get loaded
workmad3 has joined #ruby
<quazimodo>
hrm
shoutsid has joined #ruby
<quazimodo>
postmodern: geting there :)
<postmodern>
quazimodo, also there's chruby-exec
gaboesquivel has quit []
<postmodern>
quazimodo, also make sure you don't override PATH anywhere in your shell config
<postmodern>
quazimodo, otherwise it will reset the inherited PATH
<postmodern>
it sucks that shell is this complex, but it is what it is
Melpaws1 has joined #ruby
Melpaws has quit [Ping timeout: 240 seconds]
<quazimodo>
postmodern: no idea how to use chruby-exec in this instance
TheNet has joined #ruby
<quazimodo>
now to invoke an interactive shell
<baweaver>
!mute NotASpam
<baweaver>
just in case ;)
psy_ has joined #ruby
dravine has quit [Ping timeout: 268 seconds]
opensource_ninja has quit [Quit: opensource_ninja]
leafybas_ has quit [Remote host closed the connection]
yeshacker has joined #ruby
joufflu has quit [Ping timeout: 268 seconds]
freerobby has quit [Quit: Leaving.]
shinnya has joined #ruby
cwong_on_irc has quit [Client Quit]
saddad has joined #ruby
chrissonar has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhjondoh has joined #ruby
ivanskie has joined #ruby
<ivanskie>
whats the offtopic channel again?
fullofcaffeine has joined #ruby
<ivanskie>
whats it called rather
<ivanskie>
had to re-install my textual
<havenwood>
ivanskie: #ruby-offtopic
TvL2386 has joined #ruby
<ivanskie>
thanks
<havenwood>
you're welcome
htmldrum has quit [Ping timeout: 252 seconds]
niemcu has joined #ruby
Rickmasta has joined #ruby
l_tonz has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
fullofcaffeine has quit [Ping timeout: 250 seconds]
htmldrum has joined #ruby
iamjarvo_ has joined #ruby
chopin has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
GriffinHeart has joined #ruby
HammyJammy has quit [Ping timeout: 240 seconds]
fullofcaffeine has joined #ruby
cwong_on_irc has joined #ruby
jpfuentes2 has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
spuk_ has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 246 seconds]
ICantCook has joined #ruby
datanoise has joined #ruby
lxb has quit [Quit: leaving]
finisherr has joined #ruby
diegoaguilar has joined #ruby
shoutsid has joined #ruby
haraoka has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
shoutsid has quit [Remote host closed the connection]
finisherr has quit [Client Quit]
avahey has quit [Quit: Connection closed for inactivity]
psk17_ has quit [Quit: Leaving]
tagrudev has joined #ruby
workmad3 has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
sdwrage has quit [Quit: Leaving]
last_staff has joined #ruby
diegoaguilar has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
sivsushruth has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
eminencehc has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Melpaws1 has quit [Quit: Leaving.]
UtkarshRay has quit [Remote host closed the connection]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ricer2 has quit [Remote host closed the connection]
eminencehc has quit [Ping timeout: 246 seconds]
shoutsid has joined #ruby
shoutsid has quit [Remote host closed the connection]
Dopagod has quit [Ping timeout: 255 seconds]
diegoaguilar has joined #ruby
mondayrain has joined #ruby
mondayrain has quit [Read error: Connection reset by peer]
astrobun_ has joined #ruby
tejasmanohar has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
l_tonz has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
psy_ has quit [Read error: Connection reset by peer]
shoutsid has joined #ruby
l_tonz has quit [Ping timeout: 265 seconds]
krz has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shoutsid has quit [Remote host closed the connection]
yeticry has joined #ruby
<certainty>
moin
mloy has quit [Quit: Leaving]
GeissT has quit [Remote host closed the connection]
tkuchiki has joined #ruby
datanoise has quit [Ping timeout: 268 seconds]
sp4rrow_ has joined #ruby
trautwein has joined #ruby
GeissT has joined #ruby
l_tonz has joined #ruby
Tariq has joined #ruby
GeissT has quit [Ping timeout: 265 seconds]
Tariq_ has joined #ruby
lkba_ has joined #ruby
haraoka has quit [Ping timeout: 244 seconds]
<Tariq_>
Hi
<Tariq_>
Is anyone here?
renderfu_ has joined #ruby
<Tariq_>
I have an image that I have cropped in memory using RMagick, but when I try to turn it into a blob and then save it onto the file into the Parse database
<Tariq_>
It raises an error about there being null bytes
Tariq has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<Tariq_>
Hello?
dionysus69 has joined #ruby
`tim` has joined #ruby
<certainty>
hello
<Tariq_>
hi
<Tariq_>
hello certainty
<Tariq_>
can you help me?
shoutsid has joined #ruby
<Tariq_>
Please?
<certainty>
hello Tariq_
<certainty>
i don't know
renderfu_ has quit [Ping timeout: 252 seconds]
<Radar>
Tariq_: no code == no help
<certainty>
show the code and the exact error message
<Tariq_>
Alright
zenguy_pc has quit [Ping timeout: 264 seconds]
shoutsid has quit [Remote host closed the connection]
<shevy>
toy #freenode should be able to help for questions like this too, if you can not find it in the freenode FAQ
ndrei has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
zotherstupidguy has joined #ruby
ruurd has joined #ruby
Xeago has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
datanoise has joined #ruby
keen_ has joined #ruby
joonty has joined #ruby
ecksit has joined #ruby
<toy>
yeah thanks shevy ..registered and i can send the message
ecksit has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
quazimodo has joined #ruby
datanoise has quit [Ping timeout: 250 seconds]
norc has joined #ruby
<shevy>
now you are part of the fightclub!
mikecmpbll has joined #ruby
fullofcaffeine has quit [Ping timeout: 265 seconds]
* adaedra
waves hello
dnewkerk_ has joined #ruby
anaeem1 has joined #ruby
* shevy
waves adaedra
Xeago has quit [Read error: Connection reset by peer]
<adaedra>
weeeee
Xeago has joined #ruby
futilegames has left #ruby [#ruby]
herbst has joined #ruby
dnewkerk has quit [Ping timeout: 255 seconds]
dnewkerk_ is now known as dnewkerk
ruurd has quit [Quit: ZZZzzz…]
dnewkerk has quit [Client Quit]
decaff has quit [Remote host closed the connection]
rgtk_ has quit [Remote host closed the connection]
rgtk has joined #ruby
renderf__ has joined #ruby
lessless has joined #ruby
l_tonz has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Ping timeout: 260 seconds]
l_tonz has joined #ruby
bMalum has joined #ruby
BSaboia has joined #ruby
ruurd has joined #ruby
htmldrum has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
renderf__ has quit [Ping timeout: 264 seconds]
solocshaw has joined #ruby
howdoi has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
arturmartins has quit [Quit: Leaving...]
David27 has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
ErfanBs has joined #ruby
DEA7TH has joined #ruby
<yorickpeterse>
morning
failshell has joined #ruby
marienz has quit [Changing host]
marienz has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
Peg-leg has joined #ruby
mistermocha has joined #ruby
PhantomSpank has quit []
stannard has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has quit [Ping timeout: 268 seconds]
Zackio has quit [Remote host closed the connection]
ksteck has quit [Ping timeout: 252 seconds]
favadi has joined #ruby
jenrzzz has joined #ruby
l_tonz has quit [Ping timeout: 255 seconds]
marr has joined #ruby
Senjai has quit [Ping timeout: 272 seconds]
ruby-lang297 has joined #ruby
ruurd has joined #ruby
stannard has quit [Ping timeout: 250 seconds]
CJKinni_ has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 260 seconds]
l_tonz has joined #ruby
blaxter has joined #ruby
BrunoSaboia has joined #ruby
chthon has joined #ruby
Zai00 has joined #ruby
Zackio has joined #ruby
[k- has joined #ruby
acidrainfall has quit [Ping timeout: 265 seconds]
ruby-lang297 has quit [Ping timeout: 246 seconds]
mistermocha has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 244 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
lenwood has quit [Ping timeout: 252 seconds]
bitsapien has joined #ruby
Kara has joined #ruby
Kara_ has joined #ruby
auzty has joined #ruby
Oog has joined #ruby
workmad3 has joined #ruby
dmolina has joined #ruby
<norc>
shevy: I wrote a line of code today.
<norc>
Can you believe it
XxionxX has quit [Ping timeout: 250 seconds]
Kendos-Kenlen has joined #ruby
acidrainfall has joined #ruby
<adaedra>
norc: congrats. How do you feel?
lenwood has joined #ruby
<norc>
Pretty hungry actually
workmad3 has quit [Ping timeout: 272 seconds]
kimegede has joined #ruby
arturmartins has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
darkf_ has joined #ruby
_blizzy_ has joined #ruby
ruurd has quit [Max SendQ exceeded]
graingert has joined #ruby
darkf has quit [Ping timeout: 246 seconds]
darkf_ is now known as darkf
leat has quit [Quit: leat]
Ropeney has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
baweaver has quit [Remote host closed the connection]
lamer14448990361 has joined #ruby
ViolentR has quit [Ping timeout: 246 seconds]
graingert has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
Xeago has joined #ruby
jgt has joined #ruby
leat has joined #ruby
rgtk has quit [Remote host closed the connection]
pzb has joined #ruby
rgtk has joined #ruby
ruurd has joined #ruby
pzb has quit [Client Quit]
senayar_ has joined #ruby
<certainty>
norc: one line?
Xeago has quit [Remote host closed the connection]
senayar has quit [Read error: Connection reset by peer]
Igorshp has quit [Remote host closed the connection]
<certainty>
task so simple, turned out to be a one-liner in ruby
<certainty>
:D
<norc>
That could be a useful metric for the complexity of a problem. Ruby LoC.
<norc>
I am sure someone in controlling would approve of this.
subscope has joined #ruby
Xeago has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
jgt has quit [Read error: Connection reset by peer]
graingert has joined #ruby
lenwood has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
freezevee has joined #ruby
Xeago has joined #ruby
l_tonz has quit [Ping timeout: 250 seconds]
l_tonz has joined #ruby
lenwood has joined #ruby
AnoHito has joined #ruby
Asher has quit [Quit: Leaving.]
AnoHito_ has quit [Ping timeout: 246 seconds]
stardiviner has joined #ruby
demonlove has joined #ruby
closer has quit [Ping timeout: 272 seconds]
CloCkWeRX has quit [Ping timeout: 268 seconds]
terlar has joined #ruby
closer has joined #ruby
_whitelogger_ has joined #ruby
tobyx has joined #ruby
_whitelogger has quit [Remote host closed the connection]
eggoez has joined #ruby
elektronaut has joined #ruby
Senjai has joined #ruby
CloCkWeRX has joined #ruby
nettoweb has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
neanderslob has quit [Read error: Connection reset by peer]
wpp has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
TrueNapsy has joined #ruby
<TrueNapsy>
Hello guys
arup_r has joined #ruby
ndrei has joined #ruby
Zai00 has joined #ruby
DoubleMalt has joined #ruby
Spami has joined #ruby
_blizzy_ has quit [Ping timeout: 264 seconds]
dikaio has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
workmad3 has joined #ruby
monq has joined #ruby
ZucchiniZe is now known as ZucchiniZe-
ZucchiniZe- is now known as ZucchiniZe
ZucchiniZe is now known as ZucchiniZe-
_whitelogger has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
elektronaut has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
bitsapien has quit [Quit: bitsapien]
Xeago has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
rgtk_ has joined #ruby
bitsapien has joined #ruby
fullofcaffeine has joined #ruby
lenwood has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
rismoney1 has joined #ruby
<izzol>
hello
troulouliou_div2 has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
TrueNapsy has quit [Quit: Leaving]
step1step2_ has quit [Quit: Leaving]
zenguy_pc has quit [Ping timeout: 240 seconds]
step1step2 has joined #ruby
Xeago has quit [Remote host closed the connection]
Igorshp has joined #ruby
fullofcaffeine has quit [Ping timeout: 240 seconds]
rismoney1 has quit [Ping timeout: 265 seconds]
nfk|laptop has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
Porfa has joined #ruby
roshanavand has joined #ruby
arup_r has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
datanoise has joined #ruby
lubarch has joined #ruby
Unicorn| has quit [Quit: Connection closed for inactivity]
DEA7TH has quit [Quit: DEA7TH]
Zai00 has joined #ruby
ErfanBs has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 252 seconds]
zenguy_pc has joined #ruby
<adaedra>
Ok, so I found in not so old code that I coded a Hash#fetch! to get a hash value or raise if not found... So, exactly what Hash#fetch did already.
<adaedra>
I don't even know what I was thinking then.
lubarch has quit [Quit: leaving]
arup_r has quit [Ping timeout: 256 seconds]
toy_ has joined #ruby
<workmad3>
adaedra: maybe you were thinking "I want to raise an exception, and ! means 'raise an exception'!"
lamer14449036960 has joined #ruby
<adaedra>
maybe
<workmad3>
(it doesn't, but people seem to think it does :( )
jenrzzz has quit [Ping timeout: 260 seconds]
Guest46085 has quit []
jenrzzz has joined #ruby
lamer14448990361 has quit [Read error: Connection reset by peer]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has quit [Remote host closed the connection]
renderfu_ has joined #ruby
toy has quit [Ping timeout: 260 seconds]
Igorshp has quit [Remote host closed the connection]
roshanavand has joined #ruby
Igorshp has joined #ruby
Zai00 has quit [Quit: Zai00]
lessless has joined #ruby
Igorshp_ has joined #ruby
senayar_ has quit []
renderfu_ has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
arup_r has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
Igorshp has quit [Ping timeout: 272 seconds]
Igorshp_ has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 244 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
failshell has joined #ruby
dEPy has joined #ruby
Rickmasta has joined #ruby
ndrei has joined #ruby
dEPy has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 240 seconds]
Kara_ has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 240 seconds]
dhjondoh has quit [Quit: dhjondoh]
dhjondoh has joined #ruby
arup_r has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Remote host closed the connection]
dEPy has joined #ruby
<dEPy>
yo
Kara has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 240 seconds]
<dEPy>
I have a (well not yet) simple cli app that requires login. Then based on the role of logged in user I wan't to restrict what he can or can not do.
Kara has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
Kara_ has joined #ruby
<dEPy>
So.. Should I after login based on the user role return an instance of specific client like AdminClient, ExpertClient, CustomerClient... ?
skade has quit [Quit: Computer has gone to sleep.]
<dEPy>
I'm just thinking that if I do that, and if I expose my 'api' to a web app then calling wrong method on the client will just tell you the method does not exist rather than the fact that you don't have permission to do that.
stamina has joined #ruby
jas02 has quit [Quit: jas02]
dionysus69 has quit [Ping timeout: 264 seconds]
phutchins has joined #ruby
bMalum has quit [Quit: bMalum]
bitsapien has quit [Quit: bitsapien]
GriffinHeart has joined #ruby
<tagrudev>
dEPy, maybe try #RubyOnRails
darkxploit has quit [Ping timeout: 252 seconds]
<dEPy>
this has nothing to do with rails
arup_r has joined #ruby
<certainty>
shevy: what's wieder boden?
<certainty>
erm, wiener
skade has joined #ruby
shredding has joined #ruby
Igorshp has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
kalusn has quit [Remote host closed the connection]
dEPy has quit [Quit: (null)]
Melpaws has quit [Quit: Leaving.]
gregoriokusowski has joined #ruby
nfk|laptop has joined #ruby
l_tonz has quit [Ping timeout: 246 seconds]
l_tonz has joined #ruby
bMalum has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp_ has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weihan has joined #ruby
Xeago has joined #ruby
gregoriokusowski has quit [Ping timeout: 265 seconds]
Igorshp has quit [Ping timeout: 260 seconds]
EasyCo has quit [Quit: Connection closed for inactivity]
demonlove has quit [Read error: Connection reset by peer]
Pupp3tm4st3r has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
lessless has joined #ruby
ledestin has joined #ruby
subscope has joined #ruby
roshanavand has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
blackmesa has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
<toy_>
for the beginer ruby which is good resource ?
DexterLB has quit [Quit: So long and thanks for all the fish]
<jhass>
hi
deepak has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
UtkarshRay has joined #ruby
Xeago has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
<shevy>
you scared him away jhass
jenrzzz has joined #ruby
<jhass>
looks like it
Xeago has joined #ruby
<jhass>
so what's wiener boden? sounds like cake
<Porfa>
do i save my methods in a .rb file? if so, how do i "load" that file when i start a new script?
Igorshp has joined #ruby
<Porfa>
require 'wtv.rb' ?
<Porfa>
load…
<jhass>
require_relative "wtv" most likely
<Porfa>
hmm
<jhass>
later when you learn about classes and proper project structures you'll put your classes each into its own file
<jhass>
and have folders for the namespaces etc.
<jhass>
but for now ^ is fine
<shevy>
jhass I honestly have no idea... but that could actually make sense. I don't know of any sweets like that though, the only one I know is the "Sachertorte", wikipedia-quote "invented by Austrian Franz Sacher in 1832 for Prince Wenzel von Metternich in Vienna, Austria"
mloy has quit [Ping timeout: 240 seconds]
Oog has quit []
<shevy>
Porfa always save code you may reuse one day in .rb files \o/
syath has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
Xeago has quit [Ping timeout: 265 seconds]
astrobun_ has quit [Remote host closed the connection]
<Porfa>
i've been working weeks on a simple script that goes do somethings in some supplier website. that took me weeks, because i had a lot to learn, but yesterday, i've been able to make a new script, based on the the old one, that does the same thing but for a different supplier that has different conditions etc etc… but like, 80% of the code is the same.. so I'm wondering if i can do (i guess is what you said shevy ) put that 80% code in indepe
<Porfa>
files, and just "code" what i need, I'm tired of copy pasta.
<shevy>
keep things simple
<shevy>
if you see code that can be re-used, the best thing is to usually put it into a separate (or same-named) module
<Porfa>
i read a new word here, "module" hmm
<shevy>
that, or you would subclass... but modules are somehow much easier
<Porfa>
ok
<shevy>
Porfa you should create a gem, all by yourself, without any helper code. that way you learn most, including the structure of the files
<Porfa>
i'll learn that then
<shevy>
it does not matter how small the gem is, just publish one
<jhass>
shevy: they don't really know what require does yet, sure you want to throw them into gems?
<shevy>
you need to "sign up" once at https://rubygems.org/ afterwards you can push gems from your local hdd to the remote gem repository
<shevy>
yeah
<jhass>
nonononono
<jhass>
you don't have to publish a gem
<jhass>
not at all
<shevy>
I want to gem install Porfa's gem!
<jhass>
it will give you zero benefit at this point
favadi has joined #ruby
postmodern has quit [Quit: Leaving]
<jhass>
Porfa: forget about gems for now, shevy is just giving random advice without really looking at the situation
l_tonz_ has joined #ruby
<shevy>
I am absolutely sure that Porfa will learn a lot that way
govg has joined #ruby
l_tonz has quit [Read error: Connection reset by peer]
favadi has quit [Client Quit]
_blizzy_ has joined #ruby
ldnunes has joined #ruby
nekomimimaid has quit [Quit: must get ready for work]
dhjondoh has quit [Quit: dhjondoh]
WizJin has quit [Excess Flood]
DanKnox[away] is now known as DanKnox
govg has quit [Ping timeout: 240 seconds]
<shevy>
what name would you give to ruby code that does this: move/copy .mp3 files from a voice recorder?
<jhass>
download_recordings
dhjondoh has joined #ruby
WizJin has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
_blizzy_ has joined #ruby
govg has joined #ruby
zenguy_pc has quit [Ping timeout: 268 seconds]
dhjondoh has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
Kara has quit [Remote host closed the connection]
Renich has quit [Ping timeout: 260 seconds]
weihan_ has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
BrunoSaboia has quit [Ping timeout: 265 seconds]
weihan has quit [Ping timeout: 272 seconds]
Kara_ has quit [Ping timeout: 240 seconds]
bitsapien_ has joined #ruby
<maloik>
could argue that how you get the recordings is irrelevant
ndrei has joined #ruby
diegobiavati has joined #ruby
<maloik>
and as such call it `recordings`
`tim` has joined #ruby
Jackneill has joined #ruby
<maloik>
going even further, the "how" could be an argument, i.e. `def recordings(downloader = VoiceRecorderDownloader)`
<maloik>
I'm sorry... last day at the job :D not much to do anymore
yfeldblum has quit [Ping timeout: 246 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
dhjondoh has joined #ruby
dhjondoh has quit [Client Quit]
spider-mario has joined #ruby
khebbie has joined #ruby
Igorshp has quit [Remote host closed the connection]
Xeago has joined #ruby
deepak has joined #ruby
Renich has joined #ruby
devoldmx has joined #ruby
AlexRussia has joined #ruby
dhjondoh has joined #ruby
minimalism has quit [Ping timeout: 260 seconds]
l_tonz_ has quit [Ping timeout: 250 seconds]
l_tonz has joined #ruby
<jhass>
as I know shevy it's probably a name for a ruby script, not a method
skweek has quit [Ping timeout: 265 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sanjayu has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Remote host closed the connection]
bluOxigen has joined #ruby
zenguy_pc has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
kalusn has joined #ruby
Cyther has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
blueOxigen has joined #ruby
rgtk_ has quit [Remote host closed the connection]
ndrei has joined #ruby
`tim` has joined #ruby
synthroid has joined #ruby
rgtk has joined #ruby
htmldrum has joined #ruby
V1s1ble has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
ayonkhan has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
futilegames has joined #ruby
<V1s1ble>
So I have a monkey patch for Jekyll...I originally just hacked on the gem manually in ~/.gem/ruby/2.1.0/gems/jekyll-2.5.3. I've removed the things I needed to modify at put them in a gist: https://gist.github.com/sumdog/ba0b72d12995dd185303
<V1s1ble>
I tried just putting them in as a Jekyll plugin, but it doesn't load my plugin early enough for it to be useful
blueOxigen has quit [Remote host closed the connection]
agit0 has joined #ruby
bluOxigen has joined #ruby
<V1s1ble>
What's the best way to apply my patch? I noticed jekyll uses :autoload for most of its classes...is there a way to place my monkey patch in such a position that it will get autoloaded
<jhass>
V1s1ble: I'd probably fork and use a Gemfile with github:, git: or path: option
diegobiavati has quit [Remote host closed the connection]
Kara has joined #ruby
<V1s1ble>
jhass, eh I don't want to fork. I want to make this eventually available for everyone
<jhass>
also look into why you need the patch, if it's a bug try to upstream it, if it's a missing feature try to get upstream support etc.
htmldrum has quit [Ping timeout: 256 seconds]
Kara_ has joined #ruby
dhjondoh has quit [Remote host closed the connection]
<V1s1ble>
jhass, it was added in for "security" ... git hub pages specifically
Xeago has quit [Remote host closed the connection]
quazimodo has joined #ruby
<V1s1ble>
it use to work..there is a bug...they have no interest in "fixing" it
<V1s1ble>
Jekyll cares more about github pages support...if a feature probably won't be allowed on ghp, they don't bother
<V1s1ble>
jhass, my comment is at the bottom. If you look at my patch, it removes the security from the sanitize function. I mean I should make a patch that runs my version if safe mode is off I guess, and I may eventually, but just for now I'd like to get it working for people other than myself
bryanray has joined #ruby
l_tonz_ has joined #ruby
<V1s1ble>
jhass, Is there anyway to insert a monkey patch just for the executable?
failshell has joined #ruby
karapetyan has quit [Remote host closed the connection]
<EdwardIII>
hrm looking at some devise code and inside a class i see enum role: [:user, :vip, :admin], but when i try that i get ndefined method `enum' for User:Class
<shevy>
jhass yeah I guess that name is short enough
canton7 has joined #ruby
shredding has quit [Quit: shredding]
<maloik>
I don't understand your first line in the issue... are you saying you put the shared components into a plugin or..?
<jhass>
EdwardIII: old rails version?
<V1s1ble>
jhass, So when I run "jekyll", it will use that monkey patch I shared on its own classes?
shredding has joined #ruby
<jhass>
V1s1ble: maybe, maybe not
<EdwardIII>
jhass: ah it's a rails thing, not a ruby thing?
dorei has joined #ruby
<jhass>
I don't know enough about its architecture
<jhass>
EdwardIII: yes
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
canton7 has quit [Client Quit]
<jhass>
activerecord specifically
<EdwardIII>
ok then
<EdwardIII>
i was just playing around trying to figure out what values like User.roles.admin returned
khebbie has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
<EdwardIII>
i shall play around in the rails console
<maloik>
V1s1ble: did you look into git submodules? I've honestly never worked with them, but perhaps they can offer a solution?
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<maloik>
you'd add the shared stuff to a submodule (i.e. separate repo) to manage it in one place, then just include it in the different repos representing the jekyll sites
failshell has quit [Ping timeout: 256 seconds]
<V1s1ble>
maloik, I don't think that applies in my case. A fork would make more sense. I don't want to touch the actual Jekyll code. I just want to monkey patch their existing stuff
momomomomo has joined #ruby
<maloik>
I'm talking about your own project, not the jekyll changes
<V1s1ble>
I do use github subtrees for some projects, but that wouldn't make sense in this context
<maloik>
using the submodules, you'd actually have the shared components in the source dir and thus the "bug" wouldn't occur
<V1s1ble>
maloik, yea I don't want to go down that route. I'd rather fork instead
<V1s1ble>
maloik, that makes more sense if you're like adding an ansible role to your project, which I did in vSense
<maloik>
I have no idea what ansible roles are or what vSense is
canton7 has joined #ruby
<maloik>
either way, if forking jekyll works for you, go ahead :)
<V1s1ble>
I wouldn't expect you to. It's a small personal project of mine
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
spcmastertim has joined #ruby
yardenbar has joined #ruby
fullofcaffeine has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
tubuliferous has joined #ruby
DexterLB has joined #ruby
blueOxigen has joined #ruby
favadi has joined #ruby
`tim` has joined #ruby
govg has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Ping timeout: 272 seconds]
khebbie has joined #ruby
ekleog has quit [Ping timeout: 244 seconds]
dhjondoh has joined #ruby
favadi has quit [Max SendQ exceeded]
bluOxigen has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
l_tonz has joined #ruby
blueOxigen has quit [Remote host closed the connection]
bluOxigen has joined #ruby
l_tonz_ has quit [Read error: Connection reset by peer]
V1s1ble has quit [Read error: No route to host]
Inv1s1ble_ has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
ekleog has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<deepak>
I get this error when dividing two float type values "coerce must return [x, y]" Anyone, who can explain whats going wrong, stuck with this for the past 3 hours
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Inv1s1ble has quit [Read error: Connection reset by peer]
codecop has joined #ruby
bl0ndie has joined #ruby
Coldblackice has quit [Ping timeout: 246 seconds]
<ljarvis>
yeah massive increase
datanoise has joined #ruby
dhjondoh has joined #ruby
Kara has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
Oog has quit [Client Quit]
Guest50 is now known as dmitch
TPBallbag has joined #ruby
`tim` has joined #ruby
<bougyman>
option parser question. I have an 'optioner.rb' that I use in my binaries, which sets a Module instance variable as @opts = OptionParser.new do { blockthings }
jenrzzz has joined #ruby
`tim` has quit [Client Quit]
JDiPierro has joined #ruby
segfalt has joined #ruby
<bougyman>
can I re-open that @opts instance and add things to it, then reparse?
datanoise has quit [Ping timeout: 265 seconds]
Kara has joined #ruby
Kara_ has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
Kara_ has joined #ruby
dmitch is now known as _dmitch
bmurt has joined #ruby
etrae has joined #ruby
awrfas2 has quit [Ping timeout: 272 seconds]
_dmitch is now known as dmitch
GriffinHeart has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
karapetyan has joined #ruby
mistermocha has joined #ruby
Zai00 has joined #ruby
decoponio has joined #ruby
Melpaws has joined #ruby
GnuYawk has joined #ruby
DexterLB has quit [Quit: So long and thanks for all the fish]
TvL2386 has quit [Quit: Ex-Chat]
Igorshp has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
tier_ has joined #ruby
l_tonz_ has quit [Read error: Connection reset by peer]
l_tonz has joined #ruby
yeshacker has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stannard has joined #ruby
tier has quit [Ping timeout: 268 seconds]
Igorshp has joined #ruby
joncol has joined #ruby
<bougyman>
qthe answer to my questions is yes-ish
weihan_ has quit [Ping timeout: 260 seconds]
<ljarvis>
bougyman: yes you can use parse multiple times
<ljarvis>
but you'll need to catch the exceptions
awrfas2 has joined #ruby
etrae has quit [Ping timeout: 255 seconds]
prestorium has joined #ruby
GriffinHeart has joined #ruby
skweek has joined #ruby
<joncol>
Is Celluloid a good choice for making a server? Does anyone know of any JSON RPC gem that works well with Celluloid? I've done some experiments with EventMachine, and there's the "rjr" gem that supports JSON RPC well there. I also want to get a feel for Celluloid, since that seems a bit more "active"?
Melpaws has quit [Ping timeout: 272 seconds]
Melpaws has joined #ruby
<blackjid>
hi!, is there any way to pass dependencies to a Rake task but without failing if the dependencies doesn't exists?? I need to pass an array of dependencies but not always all of them are going to be available...
freerobby has quit [Quit: Leaving.]
codecop has quit [Remote host closed the connection]
<mikecmpbll>
ehh, if I load IRB from a directory which is a symlink, File.directory?("../other_dir") returns nill where `cd ../other_dir && pwd` works.
<blackjid>
mmm, don't really know... I was trying to do taks :mytask => [ns:task1, ns:task2]... where would you put that begin resque block?
<mikecmpbll>
i find that odd.
<mikecmpbll>
returns false**
Igorshp has quit [Remote host closed the connection]
<joncol>
blackjid: Do you want some of those :mytasks to require stuff that potentially might not be present? And fail silently (ignore) if that's the case?
dhjondoh has quit [Quit: dhjondoh]
<mikecmpbll>
is there any way i can know which will work as a system command, in ruby?
<blackjid>
joncol, exactly... to wierd?
<blackjid>
*too
blueOxigen has quit [Read error: Connection reset by peer]
herbst has quit [Remote host closed the connection]
gusrub has joined #ruby
synthroid has quit [Remote host closed the connection]
shoutsid has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 252 seconds]
Igorshp has quit [Remote host closed the connection]
rushed has joined #ruby
jpfuentes2 has joined #ruby
karapetyan has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poikon has joined #ruby
big|bad|wolf has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
bruno- has quit [Quit: Lost terminal]
bluOxigen has joined #ruby
bruno- has joined #ruby
mistermocha has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 268 seconds]
Kendos-Kenlen has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
gizmore has joined #ruby
monq has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
Channel6 has joined #ruby
mistermocha has joined #ruby
bluOxigen has quit [Remote host closed the connection]
BSaboia has joined #ruby
bluOxigen has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
shredding has quit [Ping timeout: 268 seconds]
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby
Alayde has joined #ruby
dstarh has joined #ruby
<yorickpeterse>
acidrainfall: there are a lot of people in this channel from different timezones, you won't always get an answer within 4 minutes of asking a question
<yorickpeterse>
not getting an answer usually means nobody knows of one
Alayde has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
Melpaws has quit [Quit: Leaving.]
Igorshp has joined #ruby
<dstarh>
I'm trying to do a very simple statement using the tiny_tds gem and it segfaults when trying to execute the query. anyone seen anything like this? I haven't used the driver in a while and the only thing major since then is the upgrade to el-cap on osx
<eam>
also, not many people might have answers regarding the contents of a pay-walled garden
<yorickpeterse>
dstarh: you might need to recompile it
<dstarh>
yorickpeterse i've uninstalled and reinstalled both free_tds and tiny_tds
<dstarh>
that was my first thought
Tariq has joined #ruby
User458764 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
trollga has quit [Ping timeout: 260 seconds]
ZucchiniZe is now known as ajb
amclain has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
favadi has joined #ruby
Tariq_ has joined #ruby
<Tariq_>
Hello
Contigi has quit [Quit: Leaving]
shinnya has joined #ruby
devoldmx has joined #ruby
htmldrum has joined #ruby
Tariq has quit [Ping timeout: 246 seconds]
doddok has joined #ruby
fullofcaffeine has joined #ruby
<acidrainfall>
yorickpeterse: Yeah, I know
<acidrainfall>
That's typical for IRC
BSaboia has quit [Ping timeout: 246 seconds]
wldcordeiro has joined #ruby
BSaboia has joined #ruby
gizmore has quit [Ping timeout: 264 seconds]
EllisTAA has quit [Quit: EllisTAA]
htmldrum has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
michaeldeol has joined #ruby
unreal has joined #ruby
<Tariq_>
hey
<Tariq_>
I am getting some weird errors while connecting to an external database
Soda has joined #ruby
adac has quit [Ping timeout: 265 seconds]
<Tariq_>
Trying to get the code snippet right now
Porfa has quit [Ping timeout: 246 seconds]
beauby has quit [Ping timeout: 265 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
<yorickpeterse>
Tariq_: `self.table_name = 'foo'` is the right way I believe
<yorickpeterse>
instead of `set_table_name`
gizmore has joined #ruby
xcesariox has quit [Remote host closed the connection]
<yorickpeterse>
unless it's the other way around
<Tariq_>
Okay, let me try that
<Tariq_>
It works
<Tariq_>
Huh/.
<Tariq_>
That was really odd.
bryanray has joined #ruby
<yorickpeterse>
IIRC set_table_name was deprecated or something
<Tariq_>
I guess that makes sense. When I researched it, they mentioned set_table_name
<Tariq_>
they must have done so before the deprecration.
blaxter has quit [Quit: foo]
<Tariq_>
Why did they deprecate it anyway?
<yorickpeterse>
not sure
ramfjord has joined #ruby
Dopagod has joined #ruby
senayar has quit []
<Tariq_>
If it works, it works
renderfu_ has joined #ruby
<Tariq_>
Interesting, the SQL query that it generates is: 'Select Foo.* FROM Foo'
yardenbar has joined #ruby
SylarRuby has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
iceweasel has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
<Tariq_>
But yeah, thanks yorickpeterse
RobertBirnie has joined #ruby
gusrub has quit [Remote host closed the connection]
jenrzzz has joined #ruby
lolmaus has joined #ruby
axl_ has quit [Quit: axl_]
synthroid has joined #ruby
Kendos-Kenlen has joined #ruby
EricMoore has joined #ruby
<EricMoore>
serious question here did you enjoy the first time your mom gave you a blow job?
<adaedra>
!mute EricMoore
<EricMoore>
:(
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
tubuliferous has joined #ruby
<platzhirsch>
random
fullofcaffeine has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
iateadonut has quit [Quit: Leaving.]
mistermocha has quit [Remote host closed the connection]
haxrbyte has joined #ruby
kalusn has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 265 seconds]
shmilan has quit [Quit: Leaving]
shoutsid has joined #ruby
brandonshowers has joined #ruby
mistermocha has joined #ruby
diegoaguilar has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
mary5030 has quit [Remote host closed the connection]
to_json has quit [Quit: Leaving.]
roshanavand has quit [Remote host closed the connection]
mary5030 has joined #ruby
nofxx has joined #ruby
oetjenj has joined #ruby
duderonomy has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
<[k->
arbitrary
Tariq_ has quit [Quit: Page closed]
mhall has joined #ruby
momomomomo has quit [Quit: momomomomo]
<acidrainfall>
Bizarre?
<mhall>
Hello. How do you install a local gem using its gemfile, *and* all the dependencies? When I tried it I got the UnsatisfiableDependencyError from gem install --local
krz has quit [Quit: WeeChat 1.2]
devoldmx has quit [Ping timeout: 265 seconds]
<jhass>
mhall: try gem install bundler; bundle
mark4 has quit [Remote host closed the connection]
Porfa has joined #ruby
<nofxx>
mhall, rake install after that
Soda has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 264 seconds]
<mhall>
Yeah... I'm trying to do it on a non-dev system
<mhall>
Where the bundler is likely not present
stannard has joined #ruby
cschneid_ has joined #ruby
stannard has quit [Remote host closed the connection]
<jhass>
mhall: it should be present on production. In fact its purpose is to synchronize the environment of your application between the two
stannard has joined #ruby
roshanavand has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
brandonshowers has left #ruby ["Textual IRC Client: www.textualapp.com"]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
<nofxx>
mhall, bundler is (if the gem isn't decades old) a depency too problably
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
<adaedra>
my gems don't depend on bundler :x
<nofxx>
mhall, a modern Rakefile: require 'bundler/gem_tasks'
<nofxx>
adaedra, ah, I really enjoy the tasks
bluOxigen has quit [Read error: Connection reset by peer]
<workmad3>
nofxx: you only need that as a development dependency though, not a hard dependency ;)
momomomomo has joined #ruby
<workmad3>
nofxx: most gems won't have a runtime dependency on bundler
<nofxx>
workmad3, yup... dev dependency*
bluOxigen has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
iceweasel has joined #ruby
MrDSmith has joined #ruby
mistermocha has quit [Remote host closed the connection]
naftilos76 has quit [Ping timeout: 250 seconds]
Channel6 has quit [Ping timeout: 244 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
becks1 has joined #ruby
<becks1>
hi
<jhass>
hi
mistermocha has joined #ruby
prestorium_ has joined #ruby
<becks1>
!list
<jhass>
watcha want to list?
mistermocha has quit [Remote host closed the connection]
becks1 has left #ruby [#ruby]
<jhass>
still the weirdo
mistermocha has joined #ruby
<jhass>
been doing that for days in random channels
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
too bad it's "!list" and not "?list", could have been a fact
<adaedra>
?list
<ruboto>
I don't know anything about list
dfockler has joined #ruby
govg has quit [Ping timeout: 246 seconds]
bMalum has joined #ruby
diegoaguilar has joined #ruby
dionysus69 has joined #ruby
rushed has quit [Quit: rushed]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rsalazar has joined #ruby
sdothum has joined #ruby
prestorium has quit [Ping timeout: 272 seconds]
lamer14449036960 has quit [Ping timeout: 256 seconds]
Nina00_ has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
psy has joined #ruby
Guest47783 has quit [Remote host closed the connection]
Asher has joined #ruby
acidrainfall is now known as IntelligentDesig
arup_r has joined #ruby
chussenot has quit [Quit: chussenot]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shoutsid has quit [Remote host closed the connection]
IntelligentDesig is now known as acidrainfall
konsolebox has quit [Quit: Leaving]
firstdayonthejob has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Nina00_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
jenrzzz has joined #ruby
ruurd has joined #ruby
kin has joined #ruby
pandaant has joined #ruby
shoutsid has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
dmolina has quit [Quit: Leaving.]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
Igorshp has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
skade has joined #ruby
bluOxigen has joined #ruby
Nina00_ has quit [Ping timeout: 272 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BTRE has quit [Quit: Leaving]
tesuji has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<shevy>
he just likes lists
etrae has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
awrfas2 has joined #ruby
rsalazar has quit [Quit: rsalazar]
jenrzzz has quit [Ping timeout: 250 seconds]
BrunoSaboia has joined #ruby
jenrzzz has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<ghr>
Anyone know of some exemplar libraries that provide a cli (without a cli gem like thor)?
darkxploit has joined #ruby
Nina00_ has joined #ruby
djbkd has joined #ruby
arturmartins has quit [Quit: Leaving...]
ramfjord has joined #ruby
hanmac has joined #ruby
mikecmpbll has joined #ruby
BSaboia has quit [Ping timeout: 246 seconds]
petricore has joined #ruby
momomomomo has quit [Quit: momomomomo]
Peg-leg has quit [Quit: Leaving.]
PlasmaStar has quit [Ping timeout: 264 seconds]
ksteck has quit [Ping timeout: 240 seconds]
oetjenj has quit [Ping timeout: 252 seconds]
nofxx has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
<shevy>
I dunno? does bin/rack count?
rushed has joined #ruby
kalusn has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
PlasmaStar has joined #ruby
<ghr>
shevy yeah, that's the kind of thing I'm looking for
bb010g has joined #ruby
kin has quit [Quit: Leaving]
<dfockler>
rake just uses OptionParser
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tatsuo has quit [Quit: Leaving...]
rismoney1 has joined #ruby
<dfockler>
which is built-in to Ruby
oetjenj has joined #ruby
<dfockler>
or in the stdlib
<ghr>
Yeah I'm familiar with OptionParser, but just looking at how you handle errors and general structure
graingert has quit [Remote host closed the connection]
<shevy>
oh OptionParse my old nemesis... you could also try things like slop from ljarvis here
<shevy>
there is also get_opt_long or something like that
pdoherty has quit [Ping timeout: 244 seconds]
<ghr>
I quite like optionparser :) I'm looking in to e.g. whether you should handle errors in bin/command (like in that practicingruby article) or whether your bin/comannd fille should just be a shebang and My::CLI.new(ARGV).start (like rack)
trollga has joined #ruby
favadi has joined #ruby
failshell has joined #ruby
momomomomo has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Channel6 has joined #ruby
favadi has quit [Max SendQ exceeded]
Nina00_ has quit [Ping timeout: 272 seconds]
<ghr>
and in the case of the latter, how to handle errors, where to grab hold of ENV vars (e.g. is it okay to put them in MyApp::SomeClass) or is it better to grab them as early as possible in the cli initialization and pass them through as opts
jenrzzz has joined #ruby
jobewan has joined #ruby
eminencehc has quit [Remote host closed the connection]
tier_ has quit [Ping timeout: 255 seconds]
fullofcaffeine has joined #ruby
<shevy>
I always get annoyed by that so I let the lib/ sub files handle those things, and bin/bla just delegates to the part
<shevy>
like NameOfGem.run(ARGV) as part of bin/bla or something
ramfjord has quit [Ping timeout: 240 seconds]
<shevy>
I know of other people who have a several hundred lines of code bin/blabla
<ghr>
yeah, yuck
bryanray has joined #ruby
EricMoore has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
<drbrain>
all my gems have NameOfGem.run ARGV in bin/executable
renderfu_ has quit []
leafybas_ has joined #ruby
glasshole has joined #ruby
<shevy>
\o/
<A124>
Anyone has idea how do I figure out simplest which DB backend GDB uses?
<shevy>
ghr let me look at how rack does it
<A124>
And/or which one is used by MRI.
<ghr>
drbrain cool. got a repo url for one that you suggest I take a look at/
* A124
corrects, meants DBM.
<shevy>
ah they don't even handle ARGV... it's just bin/rackup with this Rack::Server.start
<ghr>
ah yeah. I need opts
rdark has quit [Quit: leaving]
rushed has quit [Quit: rushed]
<ghr>
well, I'd like to know how to handle the ops in that format :)
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BTRE has joined #ruby
tier has joined #ruby
eminencehc has joined #ruby
<ghr>
drbrain in https://practicingruby.com/articles/building-unix-style-command-line-applications he mentions "Regardless of how these exceptions are labeled, it's important to note that I intentionally let them bubble all the way up to the outermost layer and only then rescue them and call Kernel#exit. Intermingling exit calls within control flow or modeling logic makes debugging nearly impossible and also makes automated testing a whole lot harder."
karapetyan has quit [Remote host closed the connection]
musicmatze has joined #ruby
Renich has joined #ruby
gusrub has joined #ruby
pandaant has quit [Remote host closed the connection]
barhum2013 has quit [Quit: barhum2013]
karapetyan has joined #ruby
barhum2013 has joined #ruby
kgirthofer has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
SamGerber has joined #ruby
bMalum has quit [Quit: bMalum]
lolmaus has joined #ruby
rwilcox_ has quit [Read error: Connection reset by peer]
sp4rrow_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rushed has quit [Quit: rushed]
ruurd has joined #ruby
Ben_1 has joined #ruby
tubuliferous has joined #ruby
<Ben_1>
Hi
<jhass>
hi
<Ben_1>
im trying to install redmine with gitolite but a problem appeared and my error.log says that that gem: loofah-2.0.3 could not be found
rwilcox_ has joined #ruby
peteykun has quit [Quit: Leaving]
<Ben_1>
I'm wondering because bundle install returns this Using loofah 2.0.3
roshanavand has joined #ruby
<jhass>
how did you install Ruby?
<Ben_1>
I already updated and cleared my gems but that changed nothing
kadoppe has quit [Ping timeout: 264 seconds]
<pipework>
jhass: Usually in a drunken haze.
big|bad|wolf has quit [Ping timeout: 240 seconds]
<jhass>
so helpful
kadoppe has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
<pipework>
You asked :(
iceweasel has quit [Ping timeout: 252 seconds]
soosfarm has quit [Ping timeout: 264 seconds]
<Ben_1>
jhass: rvm
<shevy>
hahaha
<hectortrope>
/query manitu
soosfarm has joined #ruby
<shevy>
/query hectortrope
__chris has joined #ruby
<jhass>
Ben_1: generate a wrapper for bundler (rvm help wrapper) and replace the call giving the error with the wrapper /../../.rvm/.../bundle exec ...
<__chris>
is it possible to include modules into a class that is already instantiated
howdoi has joined #ruby
SylarRuby has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 268 seconds]
<jhass>
__chris: yes, include into the class will update all instances, extend will include into the objects singleton class. However both are most likely anti patterns
<Ben_1>
jhass: how should I replace that call? Redmine is a software to install and I'm not aware with its source code
barhum2013 has quit [Quit: barhum2013]
alexherbo2 has quit [Quit: WeeChat 1.3]
<__chris>
so if i have `foo = test.new` how would i include a module into foo? something like `foo.include SomeModule`
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<__chris>
(i know this is bad practice but Im trying to hack something in for a spec)
karapetyan has quit [Remote host closed the connection]
bMalum has joined #ruby
<jhass>
well, for all instances or just that particular one?
<jhass>
given you mentioned gitolite it sounded like you had some rake task to call in some integration or whatever
<jhass>
oh well
<jhass>
also
<jhass>
?crosspost Ben_1
<ruboto>
Ben_1, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
soosfarm has quit [Excess Flood]
kgirthofer_ has quit [Remote host closed the connection]
soosfarm has joined #ruby
Kara_ has quit [Ping timeout: 256 seconds]
<hectortrope>
/love shevy
<hectortrope>
:)
subscope has joined #ruby
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
aaah it's time for Ben_1 spanking :)
<jhass>
nope, already over, you're too late
<Ben_1>
sry :P
mistermocha has quit [Remote host closed the connection]
<Ben_1>
but I recognised that this is a ruby developer chan and maybe in #bundler this question is better placed
<jhass>
actually #redmine
hanmac has quit [Remote host closed the connection]
Renich has quit [Ping timeout: 256 seconds]
Nina00_ has joined #ruby
hanmac has joined #ruby
mistermocha has joined #ruby
roshanavand has quit [Remote host closed the connection]
<Ben_1>
jhass: you're right but there is nobody who answers
<jhass>
if that RVM install is properly activated and bundler is installed into it, so gem install as the same user, bundle should point to $HOME/.rvm/.../bin/bundle, overriding the global on
<shevy>
I have no idea what it allows or not, you simply should use def initialize, it's your usual main entry point to a class
blackmesa has quit [Ping timeout: 272 seconds]
<jhass>
one
haxrbyte has quit [Ping timeout: 250 seconds]
<jhass>
shevy: I don't think that's helpful, if you have no idea about the environment simply stay shut
<shevy>
jhass if you got a problem, redirect to /dev/null
<Ben_1>
aah it looks like I installed rubygems with apt-get, maybe later I installed it with rvm too so now I have two installations
<jhass>
as said, a properly activated RVM should take precedence over all of that, it shouldn't matter
<Ben_1>
this installation of redmine is several months old so I don't know in detail what I've done at that time
<jhass>
weirdness only happens if you randomly do things as root and different users
BustyLoliChan has joined #ruby
<jhass>
or rvm current says system
jamesaxl has joined #ruby
<Ben_1>
so rvm ist installed under my user Ben but redmine is running under user redmine. could this cause problems?
<jhass>
that that ever worked is weird in the first place
mistermocha has quit [Remote host closed the connection]
<Ben_1>
maybe some months ago I ran bundle install with sudo I don't know
<Ben_1>
how could I fix this if that's the case?
BustyLoli-Chan has quit [Ping timeout: 246 seconds]
[Butch] has joined #ruby
<jhass>
install RVM under the redmine user and best update your passenger install to that user, or run redmine as Ben
jamesaxl|2 has joined #ruby
<jhass>
in general for a RVM setup to work well, pick a user, not root, and do everything with it
<jhass>
if you switch users or use sudo, you do it wrong
Kara has joined #ruby
goldfish6744 has joined #ruby
jun has joined #ruby
Kara_ has joined #ruby
roshanavand has joined #ruby
mistermocha has joined #ruby
tubuliferous has joined #ruby
Nina00_ has quit [Ping timeout: 244 seconds]
jamesaxl has quit [Ping timeout: 246 seconds]
<Ben_1>
mh maybe I will make a ruby user or something where all my ruby applications run
maletor_ is now known as maletor|work
<jhass>
there's the option to do a global RVM setup, but that's even harder to get right
jpfuentes2 has joined #ruby
trollga has quit [Ping timeout: 264 seconds]
dvarrui has quit [Remote host closed the connection]
yardenbar has joined #ruby
eminencehc has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 246 seconds]
diegoaguilar has quit [Ping timeout: 246 seconds]
zenguy_pc has quit [Ping timeout: 260 seconds]
Dreamer3 has joined #ruby
Dreamer3 has quit [Client Quit]
Kara_ has quit [Ping timeout: 244 seconds]
Kara has quit [Ping timeout: 244 seconds]
k3asd` has joined #ruby
<Ben_1>
aah rvm will use /usr/bin/ruby and /var/lib/gems
<jhass>
no
<Ben_1>
I've removed gems fromm apt-get
<jhass>
only if you do rvm use system
tubuliferous has quit [Ping timeout: 265 seconds]
<Ben_1>
maybe I've used sudo
<Ben_1>
I will remove all
<Ben_1>
and reinstall
momomomomo has quit [Quit: momomomomo]
<Ben_1>
think that's the best solution
pocketprotector- has joined #ruby
_seanc_ has joined #ruby
cdg has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
pocketprotector- has quit [Remote host closed the connection]
CanTonic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pocketprotector- has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
stannard has quit [Remote host closed the connection]
Jardayn has joined #ruby
stannard has joined #ruby
pocketprotector- has quit [Remote host closed the connection]
pocketprotector- has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest50 has joined #ruby
eminencehc has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
zenguy_pc has joined #ruby
gusrub has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 268 seconds]
tubuliferous has joined #ruby
oetjenj has quit [Ping timeout: 272 seconds]
atmosx has quit [Quit: Lost in trance]
v4n has joined #ruby
karapetyan has quit [Remote host closed the connection]
towski_ has joined #ruby
oetjenj has joined #ruby
diegoaguilar has joined #ruby
momomomomo has joined #ruby
doddok has quit [Remote host closed the connection]
htmldrum has joined #ruby
goldfish6744 has quit [Quit: leaving]
tubuliferous has quit [Ping timeout: 250 seconds]
pvac has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
diegoviola has joined #ruby
doddok has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
bryanray has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 260 seconds]
Nina00_ has joined #ruby
rwilcox has joined #ruby
eminencehc has quit [Remote host closed the connection]
petricore has joined #ruby
rwilcox_ has quit [Ping timeout: 268 seconds]
tier has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
<darix>
.oO( i would start with understanding your problem )o
TPBallbag has quit []
subscope has quit [Remote host closed the connection]
podman has joined #ruby
baweaver has quit [Remote host closed the connection]
hagabaka has quit [Read error: Connection reset by peer]
<shevy>
Ben_1 say when the problem goes away after you did the reinstall, however had I would first dry-test singular gems and see whether they will work
ruurd has joined #ruby
kith_ is now known as kith
Icey has quit [Quit: Leaving]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
jenrzzz has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
dfockler has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
centrx has joined #ruby
LMity has joined #ruby
oetjenj has joined #ruby
baweaver has joined #ruby
jun has quit [Remote host closed the connection]
tubuliferous has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Guest50 has joined #ruby
sp4rrow_ has joined #ruby
Nina00_ has quit [Ping timeout: 240 seconds]
unreal_ has joined #ruby
sp4rrow_ has quit [Client Quit]
K1MOS has joined #ruby
baweaver has quit [Remote host closed the connection]
unreal has quit [Ping timeout: 246 seconds]
jackjackdripper1 has joined #ruby
_blizzy_ has quit [Ping timeout: 250 seconds]
tubuliferous has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Ping timeout: 240 seconds]
sp4rrow_ has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Freeaqingme has quit [Ping timeout: 255 seconds]
t0code has joined #ruby
tomchapin has joined #ruby
Freeaqingme has joined #ruby
<t0code>
when you create a new instance of a class does it process through every method after initialize or must you call subsequent methods?
jackjackdripper has quit [Ping timeout: 260 seconds]
timonv has quit [Ping timeout: 260 seconds]
Rixius has quit [Ping timeout: 246 seconds]
<pipework>
t0code: The only method that is called that you have to care about is #initialize
<workmad3>
t0code: are you asking if all the methods in a class get called automatically when you create an instance?
<shevy>
t0code it will only jump to the methods that you did put into initialize
bMalum has quit [Quit: bMalum]
baweaver has joined #ruby
<jhass>
well, what would be the point of creating a class or methods at all when it would always call them? that would amount to same as having all code being at toplevel, no? And how would it automagically call methods with arguments?
Nina00_ has joined #ruby
Ben_1 has left #ruby [#ruby]
momomomomo has quit [Quit: momomomomo]
sevin has quit [Max SendQ exceeded]
aquiles has joined #ruby
sevin has joined #ruby
sp4rrow_ has quit [Ping timeout: 240 seconds]
k3asd` has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
Rixius has joined #ruby
<t0code>
so are most functions performed outside of a class in most cases? in other words i want to be defining my method outside of the class structure? <new
<jhass>
I don't know how you jump to that conclusion...
bb010g has quit [Quit: Connection closed for inactivity]
shinnya has quit [Ping timeout: 252 seconds]
<shevy>
t0code depends on how you want to structure your class really
synthroid has quit []
<t0code>
suppose im having a hard time conceptualizing when in my code i want most of work to be handled or if i should even be worrying about such a thing
<t0code>
where*
Nina00_ has quit [Ping timeout: 256 seconds]
rolfb has joined #ruby
<shevy>
initialize is your main entry point right t0code?
<jhass>
do you have a small script (< 100 loc) that you've written without classes? Maybe we can rewrite it using classes proper
<t0code>
shevy, yes.
oetjenj has quit [Ping timeout: 256 seconds]
snockerton has quit [Quit: Leaving.]
<t0code>
jhass, i actually don't. i think ive got it in my head that function should be counching within classes is most cases. i could show you one that i wouldnt mind having broken down into a more efficient/accepted structure.
<shevy>
t0code alright, so let's say you have a class called CreateDirectories which will create some directories. Now you can define an array that holds all the directories that you want to create, then you start to write def initialize, and inside of def initialize you could delegate to a method called "def create_directories" that will simply iterate over that array, and create a directory unless it already exist
<shevy>
s, using fileutils
spider-mario has quit [Read error: Connection reset by peer]
jun has joined #ruby
<jhass>
t0code: I suggest you write one before spending more time on learning classes
aquiles has quit [Ping timeout: 272 seconds]
<jhass>
t0code: learn using classes, methods and objects before defining your own
CooloutAC has joined #ruby
<shevy>
t0code if you want to hint towards the usage, you can make create_directories private, and also show a help-section when your class is invoked without any argument (or perhaps better, if you invoke it via --help argument)
poikon has quit [Quit: Connection closed for inactivity]
<jhass>
and having tackled a problem before will be immensely be more useful to see different solutions to than somebody else's code
bryanray has joined #ruby
Nina00_ has joined #ruby
diegoaguilar has joined #ruby
Kara_ has joined #ruby
Kara has joined #ruby
oetjenj has joined #ruby
aquiles has joined #ruby
<t0code>
understood.
<CooloutAC>
hello all i have a beginner question
neanderslob has joined #ruby
<centrx>
?ask
<ruboto>
Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
snockerton has joined #ruby
<CooloutAC>
ya sorry trying to paste my code i'm failing this lesson lol
Nina00_ has quit [Read error: Connection reset by peer]
<jhass>
?gist
<ruboto>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<centrx>
Soon you will be a winner
musou has quit [Quit: Connection closed for inactivity]
<t0code>
jhass, when you say use classes,methods objects before defining my own...do you me the inherent ones that come built into Rails or what
snockerton has quit [Client Quit]
__chris has quit [Ping timeout: 246 seconds]
<t0code>
not sure what you mean by that
<jhass>
t0code: no using. Everything in Ruby is an object. gets method call, "foo" object, 1 object, "foo".upcase method call on object
<jhass>
use the classes that Ruby ships with and their methods
<slash_nick>
CooloutAC: the variable true_or_false will either evaluate to true or false... so `return true_or_false` is the same as `if true_or_false; return true; else; return false;end`
ngscheurich has quit [Ping timeout: 240 seconds]
<dstarh>
tried to use tiny_tds for the first time in a while to connect to our sql server db and i'm getting a segfault on dead simple query. I've changed to different versions of freetds not making any difference
freerobby has quit [Quit: Leaving.]
<dstarh>
the last time it worked was pre - el cap upgrade which is the only thing I can think of different between now and then
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dstarh>
i've uninstalled and reinstalled both freetds libs and the tinytds gem
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BSaboia has quit [Client Quit]
BrunoSaboia has quit [Ping timeout: 244 seconds]
<CooloutAC>
slash_nick: I don'[ get it
spcmastertim has quit [Quit: Leaving]
inteq has quit [Remote host closed the connection]
<CooloutAC>
I'm just gonna move on to the next lesson tks for the help
<t0code>
what does "class/module name must be CONSTANT mean?
skweek has quit [Ping timeout: 240 seconds]
tubuliferous has joined #ruby
<workmad3>
t0code: means you need to start a class or module name with a capital letter
Asher has quit [Quit: Leaving.]
<t0code>
lolol
<t0code>
thanks
finisherr has joined #ruby
<jhass>
because constants are defined by starting with a capital letter
<workmad3>
t0code: starting with capital == constant in ruby
<workmad3>
jhass: I was getting there :(
umgrosscol has quit [Remote host closed the connection]
<jhass>
happens
<CooloutAC>
jhass: are you saying I don't need the words return?
<drbrain>
based_pdev: 4 is at the end of the list while 5 is out of bounds
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<based_pdev>
isn't it 0 index?
shoutsid has quit [Remote host closed the connection]
<drbrain>
yes
<based_pdev>
so 0,1,2,3 ; 4 is not out of bounds?
diegoviola has joined #ruby
shoutsid has joined #ruby
<drbrain>
you can insert at 4
<drbrain>
(same as append)
<drbrain>
there might be some more-official reasoning for why the index after the last item is treated this way
<drbrain>
but that's how I think of it
firstdayonthejob has quit [Ping timeout: 272 seconds]
<based_pdev>
i see. i'm going through ruby-koans and thought i'd lost my mind
<drbrain>
yeah, it's kinda weird
Coldblackice has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
shoutsid has quit [Remote host closed the connection]
mondayrain has joined #ruby
mondayrain has quit [Read error: Connection reset by peer]
haylon has joined #ruby
<haylon>
Hey everyone! Using the Thor gem, how do I preserve my newlines in the long_desc? All the lines keep mashing up on each other and becoming one line.
diegobiavati has joined #ruby
<idefine>
hi, I'm using squeel to dynamically construct a query. I'd like to OR multiple query.where{} together is this possible? it currently appends the clauses as ANDs
shoutsid has quit [Remote host closed the connection]
failshell has joined #ruby
Kara_ has joined #ruby
tvw has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
imajes has quit [Ping timeout: 260 seconds]
shoutsid has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
awrfas2 has joined #ruby
imajes has joined #ruby
failshell has quit [Ping timeout: 260 seconds]
etrae has quit [Ping timeout: 268 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kara has quit [Remote host closed the connection]
quazimodo has joined #ruby
shoutsid has quit [Remote host closed the connection]
Kara_ has quit [Ping timeout: 244 seconds]
oetjenj has quit [Ping timeout: 250 seconds]
huddy has quit [Quit: Connection closed for inactivity]
symm- has quit [Ping timeout: 272 seconds]
Coldblackice has joined #ruby
Kara has joined #ruby
djcp1 has quit [Ping timeout: 252 seconds]
Kara_ has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
oetjenj has joined #ruby
CloCkWeRX has joined #ruby
helpa-bot has joined #ruby
nertzy3 has joined #ruby
`tim` has joined #ruby
rcvalle has quit [Quit: rcvalle]
segfalt_ has joined #ruby
tomchapi_ has joined #ruby
shinnya has quit [Ping timeout: 268 seconds]
<haylon>
Hey everyone! Using the Thor gem, how do I preserve my newlines in the long_desc? All the lines keep mashing up on each other and becoming one line.
helpa-bot has quit [Remote host closed the connection]
diprotic has joined #ruby
helpa-bot has joined #ruby
holsee__ has joined #ruby
ged_ has joined #ruby
MiracleBlue_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
inteq has joined #ruby
skcin7_ has joined #ruby
deavidsedice has joined #ruby
err_ok_ has joined #ruby
Azure|dc has joined #ruby
JJM has joined #ruby
_seanc__ has joined #ruby
decaff has joined #ruby
mroth_ has joined #ruby
clebrun has quit [Ping timeout: 260 seconds]
helpa-bot has quit [Remote host closed the connection]
zipkid_ has joined #ruby
jpinnix_______ has joined #ruby
helpa-bot has joined #ruby
benlakey_ has joined #ruby
crdpink has joined #ruby
<BraddPitt>
haylon can you post code? Are you using \n?
mblagden_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
shaman42_ has joined #ruby
max_Q_ has joined #ruby
kramsee_ has joined #ruby
tokik_ has joined #ruby
tiredcat_ has joined #ruby
bnagy_ has joined #ruby
verdoc_ has joined #ruby
eam_ has joined #ruby
<haylon>
BraddPitt its in Unix return characters, I imagine \n. i'm not explicitly specifying it
Rickmast_ has joined #ruby
holsee_ has quit [Read error: Connection reset by peer]
beagles has quit [Excess Flood]
chihhsin has quit [Write error: Broken pipe]
max_Q has quit [Remote host closed the connection]
shaman42 has quit [Write error: Connection reset by peer]
helpa has quit [Write error: Connection reset by peer]
tiredcat has quit [Write error: Broken pipe]
kramsee has quit [Read error: Connection reset by peer]
verdoc has quit [Read error: Connection reset by peer]
bnagy has quit [Remote host closed the connection]
LiquidInsect has quit [Remote host closed the connection]
Derasi has joined #ruby
cardoni_ has joined #ruby
Zamyatin has quit [Read error: Connection reset by peer]
sulky has quit [Remote host closed the connection]
crdpink2 has quit [Read error: Connection reset by peer]
LiquidIn1ect has joined #ruby
holsee__ is now known as holsee_
eam has quit [Read error: Connection reset by peer]
ged has quit [Read error: Connection reset by peer]
chihhsin has joined #ruby
asi_ has quit [Write error: Connection reset by peer]
[BNC]BLuEGoD has joined #ruby
deavid has quit [Read error: Connection reset by peer]
Rickmast_ has quit [Max SendQ exceeded]
tokik has quit [Read error: Connection reset by peer]
_seanc_ has quit [Read error: Connection reset by peer]