matchaw_ has quit [Remote host closed the connection]
tenmilestereo[aw has quit [Read error: Connection reset by peer]
alexspeller has quit [Ping timeout: 252 seconds]
kokainepizza has quit [Quit: My pooter is sleep.]
tommyvyo has quit [Quit: Computer has gone to sleep.]
Virunga has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
Targen has quit [Read error: Operation timed out]
mengu has quit [Quit: Leaving]
Targen has joined #ruby
gnul0ver has joined #ruby
cascalheira has joined #ruby
markit has quit []
under has joined #ruby
<under>
Hello
_64k has quit [Quit: _64k]
pxjorge has quit [Quit: Leaving]
autumn has joined #ruby
arya_ has joined #ruby
AtoxIO has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 244 seconds]
dsdeiz has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
<fowl>
under: we built this city
<fowl>
under: on rock & roll
* fowl
drops the mic
fowl has left #ruby ["Leaving"]
<under>
lol
CaptainJet has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
picca has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 265 seconds]
arya has joined #ruby
tommyvyo has joined #ruby
cascalheira has quit [Quit: Leaving...]
swex has quit [Remote host closed the connection]
swex has joined #ruby
joofsh has joined #ruby
cascalheira has joined #ruby
Agbeladem has quit [Quit: Leaving.]
arya has quit [Ping timeout: 244 seconds]
daniel_- has joined #ruby
lenovodroid has quit [Ping timeout: 250 seconds]
lenovodroid has joined #ruby
arya has joined #ruby
jenrzzz has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
atno has quit [Ping timeout: 265 seconds]
tchebb has quit [Ping timeout: 252 seconds]
TheFuzzball has joined #ruby
ltsstar has quit [Quit: ltsstar]
baphled has quit [Ping timeout: 246 seconds]
cascalheira has quit [Quit: Leaving...]
tchebb has joined #ruby
arya has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
havenn has joined #ruby
dr_neek has quit [Quit: dr_neek]
arya has joined #ruby
rakl has quit [Quit: sleeping]
otters has quit [Ping timeout: 252 seconds]
atno has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
moos3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
maetthew has quit [Quit: bye]
maetthew has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
taoru has joined #ruby
alexy has joined #ruby
alexy has left #ruby ["Leaving"]
zastern has joined #ruby
nari_ has joined #ruby
Guest9041 has quit [Ping timeout: 252 seconds]
neurotech has joined #ruby
Guest9041 has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
under has quit [Quit: Sto andando via]
jenrzzz has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 252 seconds]
taoru has quit [Remote host closed the connection]
taoru has joined #ruby
yshh has quit [Remote host closed the connection]
arya has joined #ruby
marr has quit [Ping timeout: 265 seconds]
rakl has joined #ruby
arya has quit [Ping timeout: 255 seconds]
koshii has quit [Ping timeout: 265 seconds]
pyr0commie has joined #ruby
arya has joined #ruby
swex has quit [Read error: Operation timed out]
dreinull has quit [Remote host closed the connection]
otters has joined #ruby
nyrb has quit [Read error: Connection reset by peer]
swex has joined #ruby
_bry4n has joined #ruby
matip_ has quit [Ping timeout: 264 seconds]
darthdeus has quit [Quit: Leaving...]
jjbohn has joined #ruby
gnul0ver has quit [Ping timeout: 250 seconds]
razibog has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 255 seconds]
arya has joined #ruby
Chryson has joined #ruby
tpelletier has joined #ruby
koshii has joined #ruby
katze_t4 has joined #ruby
agarie has quit [Read error: Connection reset by peer]
agarie has joined #ruby
krz has joined #ruby
ttt has joined #ruby
ttt has quit [Remote host closed the connection]
ttt has joined #ruby
foohey has quit [Quit: leaving]
arya has quit [Ping timeout: 255 seconds]
foohey has joined #ruby
foohey has joined #ruby
foohey has quit [Changing host]
freeayu has joined #ruby
reppard has joined #ruby
arya has joined #ruby
kaen has quit [Read error: Connection reset by peer]
agarie has quit [Ping timeout: 252 seconds]
<shevy>
THE END OF THE WORLD IS COMING
<shevy>
BUT FEAR NOT, YOU UNBELIEVERS
<shevy>
FOR ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p362.tar.bz2 HAS ARRIVED TO SAVE US ALL!
arya has quit [Ping timeout: 256 seconds]
<Iszak>
QUICK! Someone update the wikipedia page.
<shevy>
lol
<shevy>
I have put compilable programs into standalone yaml files. for this ruby version, I have to change only the url, then I can download and compile it via ruby scripts
tpelletier has quit [Quit: tpelletier]
lenovodroid has quit [Ping timeout: 246 seconds]
<shevy>
what I have seen in some games, like a perl browser game, is that the wiki information is often outdated quickly
arya has joined #ruby
jblack has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
maetthew has quit [Changing host]
maetthew has joined #ruby
jgrevich_ has joined #ruby
<reppard>
merry christmas everyone
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich_ is now known as jgrevich
apeiros_ has joined #ruby
Hanmac1 has joined #ruby
wargasm has joined #ruby
niklasb has quit [Quit: WeeChat 0.3.9.2]
<reppard>
what are some of the more difficult thinks to match using regexp? i am working on a prototype regex game and all mine are too easy
Hanmac has quit [Ping timeout: 260 seconds]
<reppard>
i need some difficult ones to add to the problem set
<Iszak>
reppard email, ip addresses, CSS selectors.
apeiros_ has quit [Ping timeout: 252 seconds]
<Iszak>
ip addresses v4 and v6
<reppard>
Iszak: got email addressa and a few IP addies but i hadn't thought to add css selectors
<reppard>
very good
<reppard>
thank you =)
havenn has quit [Remote host closed the connection]
toekutr has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<Iszak>
reppard domain names are also good, note email addresses are near impossible.
havenn has joined #ruby
<reppard>
Iszak: i've used a few domain name stubs too
<shevy>
reppard everything with lookbehind in it
kaen has joined #ruby
<reppard>
that one was really useful to me personally
<Iszak>
regular expression pro level: HTML parser :P
<reppard>
match it whether or not it includes http|https, if it has www and alpha numeric domain names
<shevy>
file.c: In function 'rb_stat_inspect':
<shevy>
file.c:795:46: error: expected ')' before 'PRI_LL_PREFIX'
<shevy>
file.c:795:46: warning: spurious trailing '%' in format [-Wformat]
<reppard>
kind of fun
rakl has quit [Quit: sleeping]
<shevy>
gah
<reppard>
haha
elico has quit [Remote host closed the connection]
assurbanipal has joined #ruby
<shevy>
I am trying the earlier ruby 1.9.3
Takehiro has joined #ruby
<shevy>
let's see if that has the error too
pyr0commie has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 256 seconds]
fred909 has joined #ruby
<reppard>
shevy: what exactly is throwing that error?
Takehiro has quit [Remote host closed the connection]
<powerplay>
Hey everyone, quick question I noted that there is a "super" invoked inside a "self.included(base)" method inside a module". Anyone know what gets called when super is invoked in this situation?
havenn has quit [Ping timeout: 244 seconds]
<Hanmac>
powerplay, per default it does nothing, but super is used so you can chain it together
love_color_text has quit [Remote host closed the connection]
<powerplay>
so u r impllying nothing will happen in this case?
love_color_text has joined #ruby
<Hanmac>
it depends ... if DescendantAppends does define the included method, this one will be called
<heftig>
if DescendantAppends has a "def included"
friskd has joined #ruby
xpen_ has joined #ruby
felipe_Brz has quit [Remote host closed the connection]
xpen__ has joined #ruby
<powerplay>
got it thanks everybody!
xpen__ has quit [Remote host closed the connection]
xpen_ has quit [Read error: Connection reset by peer]
katze_t4 has quit [Remote host closed the connection]
xpen has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Slivka has joined #ruby
kiyoura has quit [Quit: Leaving]
<aedorn>
shevy: now I'm confused.
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
jenrzzz has joined #ruby
rippa has joined #ruby
iamjarvo has quit [Quit: Leaving.]
Gooder has joined #ruby
nari has joined #ruby
ddd has quit [Quit: Leaving.]
havenn has joined #ruby
<aedorn>
shevy: being that it seems to be working ... this is like that terminal reset issue you had! A circle of strangeness must encompass your machine
kil0byte has quit [Remote host closed the connection]
adkron has joined #ruby
kmurph has quit [Quit: kmurph]
akram has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
havenn has quit [Ping timeout: 252 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
friskd has quit [Quit: friskd]
v0n has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby
Asher has quit [Quit: Leaving.]
eldariof has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
nomenkun has quit [Remote host closed the connection]
shemerey has quit [Read error: Connection reset by peer]
<AxonetBE>
I must be able to sort products on specific order, dashboard position, favorites position and newest position. There must be a solution to modify this sorting manually, do I have to create for each ordering a field in the database?
Paradox has joined #ruby
<thufir_>
where uri is a string, how do I use the variable correctly in: value = %x(lynx -dump -display_charset=utf8 uri) having syntax trouble.
virtuose has joined #ruby
yshh has joined #ruby
mhi^ has joined #ruby
Spaceghostc2c has quit [Excess Flood]
jgrevich has quit [Remote host closed the connection]
mpfundstein has joined #ruby
virtuose has quit [Max SendQ exceeded]
tommyvyo has joined #ruby
Spaceghostc2c has joined #ruby
akemrir has joined #ruby
xAndy is now known as xandy
virtuose has joined #ruby
mhi^ has left #ruby [#ruby]
krz has quit [Quit: krz]
<Hanmac>
jlebrech line 15 there must be include
<jlebrech>
Hanmac yeah, sorry just pseudo-ruby I'm not fuly awake :D
elico has quit [Remote host closed the connection]
kjellski has joined #ruby
<jlebrech>
how would I make line 17 work?
luckyruby has joined #ruby
<jlebrech>
should i put this in the initializer?
<jlebrech>
i'd rather it be outside, then it would be similar to what cucumber does.
filipe has quit [Read error: Operation timed out]
krz has joined #ruby
filipe has joined #ruby
Takehiro has quit [Remote host closed the connection]
<becom33>
Hi guys Im kinda stuck in here http://pastie.org/5579980 . the logic I want to be done is to check if there a variable which starts with $ inside the "include" function . help ?
<lemonsparrow>
Hanmac: I tried it puts list.include? item ? "A" : "B" instead of "A" and "B" it was function call with different args but somehow it worked reversely..
atmosx has quit [Quit: And so the story goes…]
vlad_starkov has joined #ruby
<lemonsparrow>
Hanmac: how can I do the same if instead of puts it's function(arg1, arg2) where arg2 is o/p of condition
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
nomenkun has quit [Read error: Connection reset by peer]
<Hanmac>
becom33 /include\($(.*)\)/
Shrink has joined #ruby
_64k has quit [Quit: _64k]
<becom33>
ok thats a one line right ? for both of the regex ?
<shevy>
still the GNU autoconfigure tools + helpers are so... fragile if you try to do things in another way
pen has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 252 seconds]
<shevy>
alone that I get spammed with stuff like: libtool: link: warning: `/usr/lib/libxcb.la' seems to be moved
arturaz has quit [Remote host closed the connection]
moshee has joined #ruby
nick_h has joined #ruby
lenovodroid has quit [Ping timeout: 252 seconds]
JohnBat26 has joined #ruby
nick_h has quit [Remote host closed the connection]
koshii has joined #ruby
BBonifield has quit [Client Quit]
BBonifield has joined #ruby
nick_h has joined #ruby
sayan has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
nemesit has quit [Quit: Leaving...]
tommyvyo has joined #ruby
cousine has joined #ruby
blaxter has joined #ruby
<shevy>
hmm
EhyehAsherEhyeh has quit [Ping timeout: 252 seconds]
<shevy>
I wonder if it takes longer to write equivalent ruby code in python, or in less time
s33k has quit [Ping timeout: 252 seconds]
<canton7>
I'm betting less
<canton7>
(for someone who knows the stdlib well)
banisterfiend has joined #ruby
<shevy>
yeah hmm
<canton7>
python has its "one obvious way to do it", which means lots of common operations are done using a few lines. ruby has "there's a method for that", which means less typing for someone who knows the method exists
<canton7>
plus, you don't need to type "self" all the damn time :P
pesnk has joined #ruby
love_color_text has quit [Remote host closed the connection]
Takehiro has joined #ruby
pen has joined #ruby
lkba has quit [Read error: Operation timed out]
darthdeus has joined #ruby
love_color_text has joined #ruby
pcarrier has quit [Ping timeout: 252 seconds]
pcarrier has joined #ruby
<shevy>
what gets to me in ruby is that sometimes the other ways just totally suck
tk__ has joined #ruby
<Hanmac>
ruby has sometimes everything you need in core, like maskquarding chars: "<>".encode(:xml => :text) #=> "<>"
breakingthings has joined #ruby
joofsh has joined #ruby
<becom33>
http://pastie.org/5580251 it gets into if condition at line 11 only ones but I get true returns at everytime for line 22
<becom33>
once *
mengu has joined #ruby
* becom33
anyone ?
<Hanmac>
becom if nothing is found it returns the array wich is true
razibog1 has joined #ruby
<becom33>
no no it finds a match and it returns true
<becom33>
but still I get others true as well
<Hanmac>
becom33 read about that each itself returns
jrajav has joined #ruby
EhyehAsherEhyeh has joined #ruby
<becom33>
aww each returns true ?
banisterfiend has quit [Ping timeout: 250 seconds]
<Hanmac>
no but something that is evaluated from if into true
<shevy>
becom33 you should use pp to debug
<shevy>
require 'pp'
Morkel has quit [Quit: Morkel]
<jrajav>
Hehe
<jrajav>
pp
<canton7>
"pretty-print", not "pee-pee" :P
thatguycraig has joined #ruby
s33k has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<Hanmac>
becom33 what about: "function_one"[/function_(\w+)/,1] => "one" or about @list_of_functions.find { |func| line =~ /#{func}(.+)/ }
skcin7 has joined #ruby
<shevy>
also some stylistic
<shevy>
if(variable_check) is ugly
<shevy>
why not
<shevy>
if variable_check
nomenkun has quit [Read error: Connection reset by peer]
<breakingthings>
the real ugly thing is "variable_check".
nomenkun has joined #ruby
tk__ has quit [Ping timeout: 265 seconds]
<shevy>
hehehehe
<shevy>
poor becom33
jonahR has joined #ruby
<becom33>
Hanmac, i used to scan for this but maybe you could help . I need to check there is a functcion() in the line . then inside that function if there are any $variables
iamjarvo has joined #ruby
mpfundstein has quit [Read error: Connection reset by peer]
<canton7>
given that I've got no idea how rails does its routing, can you give an example input/output?
larissa has quit [Quit: Leaving]
<tommyvyo>
apeiros_ thank you…!
<tommyvyo>
canton7: example in the link :)
<canton7>
example input, but not output :P Plus there were no backslashes in your input
<tommyvyo>
output in the one from apeiros :P
<tommyvyo>
regexs make me feel bad :(
krz has quit [Quit: krz]
krz has joined #ruby
koshii has joined #ruby
cj3kim has joined #ruby
<canton7>
alternative: http://rubular.com/r/lgd7Ar2oDm (has different behaviour when there's no slash terminating the thing)
zwevans has joined #ruby
skcin7 has joined #ruby
lolmaus has joined #ruby
kjellski has joined #ruby
aces23up has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
apeiros_ has quit [Remote host closed the connection]
ABK has joined #ruby
huangjs has joined #ruby
<Hanmac>
shevy you could call the main function with super
aces1up has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Client Quit]
mercwithamouth has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<canton7>
Hanmac, yeah that works!
<huangjs>
hi, I'm using eval() to read value from a pretty printed array. If the array is very large, it reports 'stack level too deep'. It seems it won't get fixed in 1.9, Is there any other way to read the value?
skcin7 has quit [Ping timeout: 252 seconds]
miskander has joined #ruby
maesbn has quit [Remote host closed the connection]
PragCypher has quit [Quit: Leaving]
maesbn has joined #ruby
<Hanmac>
huangjs evals in 99% of the chases an bad idea
<huangjs>
Hanmac: I know, what's the read function then?
malte_ has joined #ruby
GoGoGarrett has joined #ruby
<huangjs>
Hanmac: it's really bad if to_s works find but the reverse is not.
maesbn has quit [Ping timeout: 246 seconds]
kjellski has quit [Quit: Leaving]
<shevy>
Hanmac cool that works, strange... I thought super() works only on parent class?
DaZ has quit [Ping timeout: 260 seconds]
xemu has joined #ruby
<shevy>
hmm wonder if the pickaxe ever mentioned that
<Hanmac>
methods you define in the main, are automatic defined in Object
<xemu>
is it possible to learn ruby in 3 months at a programming boot camp ?
<Hanmac>
thats why TOPLEVEL_BINDING.methods list also the main methods
<Hanmac>
xemu, it depends ... does the camp trys to learn rails too?
<anders_>
xemu, yes
<anders_>
atleast basic syntax
kil0byte has joined #ruby
DaltonUS has joined #ruby
<shevy>
Hanmac ah that makes sense
<shevy>
as Object is a parent right?
s33k has joined #ruby
<shevy>
xemu yeah, but the only real way to effectively learn ruby is by writing scripts on your own, the more the better
krz has quit [Quit: krz]
<anders_>
xemu, I think rails is 100 times harder to learn than ruby.. lots of documentation to read through.. sigh
PragCypher has joined #ruby
<hybRis>
ive been following the screencasts on tutsplus and it seems pretty simple
blazes816 has joined #ruby
<hybRis>
to get the idea of the framework at least, other than that you always have to read docs to know all the different methods
<xemu>
in the past year 15 "ruby boot camps" have opened up, claiming to teach ruby&rails in 3-6 months, with 8 hours of instruction per day, 5 days a week. i am just trying to figure out if this is realistic or just a scam. most of the schools charge $10k.
<hybRis>
jesus christ
MerryChristmsas has joined #ruby
<shevy>
xemu you are advertizing
<shevy>
:(
eldariof has quit [Ping timeout: 265 seconds]
Asher has joined #ruby
sidev has joined #ruby
<shevy>
advertizement does not have to be "specific" at all, general form of it can still benefit indirectly by "spreading the word". that's viral marketing.
friskd has joined #ruby
katherinem13 has quit [Remote host closed the connection]
<xemu>
that very cynical. i am thinking of joining, but its a lot of money. i just want to figure out if this is a scam.
katherinem13 has joined #ruby
<shevy>
lol
_nitti has joined #ruby
wermel has quit [Remote host closed the connection]
danneu has joined #ruby
katherinem13_ has joined #ruby
<hoelzro>
I wouldn't pay 10k for such a course.
<hoelzro>
</2c>
<xemu>
how much would you pay?
lenovodroid has joined #ruby
<mpfundstein2>
lol what a scam
<shevy>
it is viral marketing. "accidentally" we may soon discover that "oh look... this is soooo much cheaper over there... let's go there"
<breakingthings>
most of the schools charge $10k for what? To learn ruby?
<breakingthings>
shevy don't go all /v/ on us
<hoelzro>
xemu: I'd teach myself ;)
enroxorz-work has joined #ruby
<mpfundstein2>
learning by doing and a passion for it
<shevy>
breakingthings which role do you play? the good cop?
<breakingthings>
what hoel said.
<xemu>
lol.. ok that is beyond cynical
<breakingthings>
shevy I play the village fool most of the time
bhavesh_a_p has joined #ruby
<Hanmac>
to learn programming you have to "feel it in your code" ... imo you need the right "kink" to be a Programmer
<xemu>
hanmac: you are right... which is why i'm afraid to shell out 10k. what if i don't have the talent?
katherinem13 has quit [Ping timeout: 244 seconds]
katherinem13_ is now known as katherinem13
<Banistergalaxy>
Hanmac perverts as programmers
<hybRis>
I wouldn't pay $10k but I think that price sounds about right, that's what a friend paid for MCSE class. and you dont even get a cert, you have to go elsewhere to take the test. its stupid but i guess there is a market for it..
<hybRis>
theres so many resources to learn on your own for free
<xemu>
what is more useful, MCSE or three months of intensive ruby training?
sayan has quit [Read error: Connection reset by peer]
<hybRis>
depends what you're going to do with it i guess?
<breakingthings>
if you're into being corporate professional, MCSE is probably worth it.
sailias has joined #ruby
<hybRis>
are you going to work for hulu or cisco
<hoelzro>
with more seriousness, I'd probably not pay more than 1k for a 6-month course
<breakingthings>
but that's got nothing to do with ruby training courses.
<xemu>
i am incapable of leearning from a book inside a basement like so many hackers do. i need structure, anda someone nearby to ask questions.
<Hanmac>
thats why SAP courses are so expancive ... because someone would pay that price
thatguycraig has quit [Quit: Leaving.]
<hybRis>
xemu: can you learn from screencasts?
<hybRis>
and asking questions on IRC?
<breakingthings>
xemu: irc is the someone nearby to ask questions to :)
<shevy>
Hanmac corporations definitely
<hybRis>
that's how I learned PHP
<breakingthings>
shevy: is it viral marketing to suggest an alternative to him :p
<Hanmac>
i didnt even remember how i learned ruby ... i read the code and someday i could it ...
track7 has quit [Read error: Connection reset by peer]
<shevy>
breakingthings depends on the context, I am watching him carefully
<shevy>
"10K is reasonable"
<shevy>
"cuz I am gonna make 100K with rails soon!"
<breakingthings>
shevy a certain website that is a school of the codeses.
<shevy>
oh, will you now give the ... I don't know... URL to that school? ;)
<breakingthings>
yes, if that is in compliance with the Shevy Act, article 1.2
<hybRis>
that's where i started, still working my way through tutorials on nettuts, but its a great place to start from for free to see if you like the language and stuff
* Hanmac
has asperger that gives an double bonus boost for programming skills
<shevy>
never read so much pro "opinions" in such a short time
<shevy>
whatever became of #ruby ... :(
benlieb has quit [Quit: benlieb]
<hybRis>
was that directed at me
_nitti has quit [Remote host closed the connection]
<shevy>
noone in particular, I just miss the good old days
fire has quit [Read error: Operation timed out]
<xemu>
i don't have asbergers, do not live in a basement, and mild ADD. i think structured classroom learning is my only option. it is damn expensive though.
QKO_ has joined #ruby
samphippen has joined #ruby
<jonahR>
hybRis: are those nettuts the ones with Jose Mota?
Quintus_q has left #ruby ["Valete!"]
<hybRis>
jonahR: hmm i don't know his name, its the guy that sounds like a robot
<breakingthings>
shevy good old days of what?
<breakingthings>
opinionlessness?
<shevy>
breakingthings when _why was still around for instance
<shevy>
breakingthings we have opinions. viral marketing sucks, for instance.
<xemu>
what level of math do i need to know to learn ruby?
<jonahR>
hybRis: the one that always start with "Hiiii and welcome back to test driven development with rubyyyyy" ?
theRoUS_ has joined #ruby
<shevy>
can we read more about how awesome agile is perhaps?
<breakingthings>
xemu depends on what sort of things you want to get into :)
QKO has quit [Ping timeout: 244 seconds]
<canton7>
xemu, none. if you want to do mathsy things with ruby, though.....
jonathanwallace has joined #ruby
<hybRis>
yes jonahR i just looked it up, jose mota. im doing "riding ruby on rails" (though i torrented it)
<shevy>
xemu most is in the Math module. Math::PI <--- that is the PI constant
<breakingthings>
For general things, you can get by knowing what signs do plus, minus, multiplication and division.
<breakingthings>
:d
<hybRis>
jonahR: im pretty sure he made the tutorials by typing it into google translate and hitting the speech button
<shevy>
xemu, 2 ** 5 is 2 to the power of 5 (hmm or 5 to the power of 2? nah...), which is 2*2*2*2*2 which is 32
<jonahR>
that's mean, he was really helpful
<hybRis>
jonahR: haha yeah. the tutorials are really good
skcin7 has joined #ruby
<jonahR>
;)
<jonahR>
I was into teamtreehouse.com but they dumbed down their videos
thmzlt has joined #ruby
<shevy>
yay more links
Na_Klar has joined #ruby
v0n has joined #ruby
<hybRis>
I like the dumbed down stuff, as long as they don't spend hours going over something like getting it installed. programming such an abstract thing, it helps a lot to have visual stuff and analogies, for me
statarb3 has joined #ruby
<hybRis>
i've had a c# book for like 6 years, i've made it about 2 chapters in just because it is SO BORING
io_syl has joined #ruby
<shevy>
I found the rails books boring
<shevy>
"build a webshop, lesson 25789205"
sayan has joined #ruby
<hybRis>
yeah
<shevy>
first 30 pages "how to install rails"
cousine has joined #ruby
<shevy>
:(
<hybRis>
rails has such a barrier to entry too since installing it can be such a pain in the ass
fire has joined #ruby
<shevy>
didn't bundler solve that?
wermel has joined #ruby
<hybRis>
as in, 'bundle install' ?
<shevy>
hehe
<shevy>
I think so
_nitti_ has joined #ruby
<hybRis>
it is pretty good but you still have to google a lot, because it gives dependency errors that are meaningless if you dont know what it is
Criztian has quit [Remote host closed the connection]
bhavesh_a_p has quit [Ping timeout: 264 seconds]
<hybRis>
and the whole process of installing rvm, etc
<breakingthings>
it's pretty intimidating to a newcomer
<anders_>
why is everybody using rails as their ruby framework? Is it really that hard to make your own ruby framework?
<breakingthings>
but not all that hard, tbh...
<hybRis>
that's why something like railsforzombies is pretty cool because you dont have to worry about that crap
<hybRis>
yeah breakingthings
<breakingthings>
anders_: why reinvent the wheel if the wheel that exists does everything you need it to?
skcin7 has quit [Ping timeout: 252 seconds]
<anders_>
breakingthings, so how come php folks make their own frameworks?
<hybRis>
because they all suck
<breakingthings>
anders_: because most of the frameworks that came before them sucked really bad.
<breakingthings>
Rails is kept up and is improved on a somewhat regular basis
<breakingthings>
CodeIgniter is still bloated as all hell and is probably the most used PHP framework.
<anders_>
breakingthings, but is there any good free tutorial to learn rails then? I want to learn, but I havn't found any really useful so far
<anders_>
breakingthings, Rails is not bloated?
<hybRis>
codeigniter is the only one that even makes sense to me in php, every framework is so completely different because php is a mess
<breakingthings>
anders_ I'm not so sure about free resources
<breakingthings>
anders_ not nearly to the point of something like CodeIgniter, no, hhe
<breakingthings>
heh*
<breakingthings>
hybRis it is such a mess. they're making some strides though, Laravel looks promising.
<anders_>
breakingthings, what about kohana then?
<breakingthings>
don't know a whole lot about kohana
EhyehAsherEhyeh has quit [Ping timeout: 265 seconds]
cousine has quit [Remote host closed the connection]
dmiller has joined #ruby
cousine has joined #ruby
<hybRis>
its a codeigniter fork i believe
<hybRis>
designed to clean it up
<anders_>
not me either, just want to learn a framework.. someone told me CI isn't very object oriented and reccommended kohana. I don't know
* breakingthings
shrugs
<breakingthings>
anders_ CI is pretty poor especially for smaller and more modern projects
<breakingthings>
I don't know too much about kohana
vlad_starkov has joined #ruby
<hybRis>
CI is pretty much basic php with an MVC pattern
sayan has quit [Ping timeout: 265 seconds]
adkron has joined #ruby
MerryChristmsas has quit [K-Lined]
<breakingthings>
I've been using FuelPHP for a little while, but they've hit a barrier with many team members moving on and falling behind (and it's kinda constantly broken)
<shevy>
anders_ the problem with making a framework is, that in order to be good, you really need to invest a LOT of time, not only in the code, but in examples, documentation etc...
<breakingthings>
Laravel is starting to take PHP by storm and it seems pretty interesting, it's also moving to Composer for the 4th release.
Criztian has joined #ruby
<dsdeiz>
symfony2 seems nice as well
<breakingthings>
What shevy said. Frameworks are lots of work.
<breakingthings>
dsdeiz iirc laravel uses parts of symfony too
<breakingthings>
though I hear the symfony community is a bit snobby
jerius has quit [Ping timeout: 244 seconds]
<hybRis>
i think the problem is php wasnt an OOP language to begin with, so all the layers they've put on top of it to make it "modern" feel so hacky and inconsitent
<breakingthings>
Anyway, short of it is PHP's framework community is going crazy right now.
altamic has joined #ruby
altamic has quit [Client Quit]
<breakingthings>
hybRis definitely.
<shevy>
php is a pretty chaotic language
<anders_>
breakingthings, so Rails is good for small projects? How small until it's impractical?
<mpfundstein2>
twitter:-)
<breakingthings>
anders_ rails is good for many projects
<shevy>
damn the twitter folks for abandoning ruby :(
<oqa>
hybRis: the problem with PHP is that it's designer wasn't a pro at designing languages or even coding
<breakingthings>
It's not so bloated that it's useless on small projects and it can be built upon for larger projects
<hybRis>
shevy: what are they using now?
thecreators has joined #ruby
<breakingthings>
thing with PHP projects is they try to be all-encompassing. Composer will change that as they get dependency management similar to gems
msch is now known as msch_
<anders_>
breakingthings, what's rails advantage over php frameworks like CI?
<breakingthings>
anders_ that's a pretty large gap to compare.
thmzlt has quit [Quit: Leaving...]
<breakingthings>
PHP is still in the dark about dependencies and bundling, they're just now getting a gem-like system via composer
msch_ is now known as msch
<breakingthings>
They've been doing framework-tied bundles for quite a long time now
<anders_>
breakingthings, what php framework that is most similar to rails then?
<hybRis>
laravel looks pretty close
<breakingthings>
CodeIgniter was built by and for a corporation that utilizes it so it has many many features but they're built with legacy support and lots of extra stuff that not everyone needs
<breakingthings>
Laravel, I would say.
<dmiller>
anders_: the advantages are that you are using ruby instead of PHP. Other than that there are many frameworks in php that imitate rails functionality. I'm a fan of laravel as well
<hybRis>
worst part about php: fucking little arrows everywhere
<hybRis>
haha good old colon colon in hebrew or whatever it is
<breakingthings>
probably my favorite "WTF" error when you're trying to learn php
<anders_>
hybRis, yeah, they should use dots instead
<breakingthings>
^
<breakingthings>
dot notation is rad
<hybRis>
yup
EhyehAsherEhyeh has joined #ruby
<hybRis>
just because -> is possibly the hardest combination of characters to type
<breakingthings>
hate that PHP uses silly double colons/arrows and uses dots for concatenation
<breakingthings>
3 keys vs 1
cousine has quit [Remote host closed the connection]
havenn has joined #ruby
<breakingthings>
Even though PHP 5.4 is a great improvement over the widely used 5.2, it still feels like a bandaid over a heap of trash
zastern has joined #ruby
<breakingthings>
andthatswhyimlearningruby.jpeg
EhyehAsherEhyeh has quit [Ping timeout: 265 seconds]
mpfundstein2 has quit [Ping timeout: 260 seconds]
<anders_>
breakingthings, did you use PHP before?
<breakingthings>
Still do for work. Wading into ruby/rails as of recently
<breakingthings>
I haven't actually written anything in ruby/rails yet.
<anders_>
breakingthings, how long time did you spend learning ruby and then rails?
d2dchat has joined #ruby
<breakingthings>
anders_ I've got a pretty decent grasp on web programming concepts, so most of my learning has just been learning ruby's syntax and some special bits to how rails implements those concepts.
<breakingthings>
Just started taking a serious effort in as of a few weeks ago, only able to spend real time on it over weekends
<breakingthings>
Just a few hours here and there.
<dmiller>
anders_: A few years ago I tried to learn RoR without having learnt Ruby. Definitely dive into some vanilla Ruby projects first then rails will make a lot more sense.
jblack has joined #ruby
camonz has joined #ruby
<breakingthings>
Another gripe with php: I hate that type conversion is a global-level function instead of a method of the type
<anders_>
dmiller ok, maybe I clone some easy rail app repos on github
apeiros_ has joined #ruby
ltsstar has quit [Ping timeout: 250 seconds]
<breakingthings>
eg. php's intval('44') as opposed to ruby's '44'.to_s
<breakingthings>
err
<breakingthings>
to_i
<anders_>
breakingthings, so .toString is global.. what is the problem?
<dmiller>
anders_: I mean I would start by building a simple, OO Ruby program. A solid understanding of Ruby design principles makes understanding Rails a whole lot easier because Rails actually does some pretty funky stuff with the Ruby language, which is one reason why Ruby is awesome
<breakingthings>
anders_ .toString doesn't exist in PHP, is what I'm saying
filipe has quit [Quit: Leaving]
camonz has quit [Client Quit]
g_bleezy has quit [Remote host closed the connection]
jerius has joined #ruby
<anders_>
breakingthings, you are right, I'm surpriced
<havenn>
String(Integer('44')).to_i.to_s
<shevy>
anders_ dive into rails first, then you will come to #ruby anyway ;)
<breakingthings>
havenn oh gob wut
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
apeiros_ has quit [Ping timeout: 260 seconds]
NobbZ is now known as NobbZ|away
kirun has joined #ruby
<anders_>
havenn, strval(intval('44'));
neersighted has quit [Ping timeout: 252 seconds]
pyr0commie has joined #ruby
_nitti_ has quit [Remote host closed the connection]
neersighted has joined #ruby
_nitti has joined #ruby
kmurph has joined #ruby
<Hanmac>
information: Integer() method is FAR different from .to_i ... Integer does understand mathmatical notations but does raise an error on fail
sayan has joined #ruby
s33k has quit [Ping timeout: 255 seconds]
bhavesh_a_p has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
nwertman has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
statarb3 has quit [Ping timeout: 252 seconds]
<jrajav>
Also, to_i has an o in the name
<jrajav>
That's the most important difference
<breakingthings>
it also has an underscore
<breakingthings>
#wow #whoa
<Hanmac>
underscores are underrated :P
mpfundstein2 has joined #ruby
dsdeiz has quit [Ping timeout: 256 seconds]
cantonic has quit [Quit: cantonic]
<shevy>
overscores are overrated
<breakingthings>
shevy no way man overscores are underrated
adkron has quit [Ping timeout: 265 seconds]
pyr0commie has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
kidoz has joined #ruby
mpfundstein2 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
regedarek has quit [Ping timeout: 265 seconds]
regedarek has joined #ruby
<jrajav>
‾ > _
philcrissman has quit [Remote host closed the connection]
ABK has quit [Ping timeout: 252 seconds]
adeponte has joined #ruby
Takehiro has joined #ruby
philcrissman has joined #ruby
camonz has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
<hoelzro>
hybRis: it's like forcing a type. sort of.
<hoelzro>
Ruby needs a proc to use as a block to a method. So a Proc coercion is performed on non-Proc objects to get that proc
dangerousdave has joined #ruby
msch has quit [Excess Flood]
Noldorin has joined #ruby
<breakingthings>
type coercion is the same thing as type conversion, i believe
Neomex has joined #ruby
Neomex has quit [Client Quit]
<TTilus>
hoelzro: actually, that amp says that the particular argument is to be treater the special block argument
breakingthings has quit []
<Hanmac>
coercion is very funny with Rubys Numeric classes
<TTilus>
*treated as the
<hoelzro>
TTilus: right, but it needs to coerce a Proc out of the argument to be able to do that
jrajav has quit [Quit: I tend to be neutral about apples]
hybRis has quit [Quit: Leaving]
<TTilus>
hoelzro: it cant call a symbol, and it is a convention to try .to_proc
msch has joined #ruby
<hoelzro>
isn't the to_proc call defined by Ruby?
<hoelzro>
it's not so much a convention as it as a rule, right?
<TTilus>
it has nothing to do with the coercion convention mechanism used with arithmetic operators
<becom33>
http://pastie.org/5580968 Im kinda stuck with the same issue again , but the problem the string is dynamic there could be symbols letters numbers . I got the latters and numbers . but the sybols :/ help
<TTilus>
it works differently
v0n has quit [Ping timeout: 252 seconds]
Takehiro has quit [Remote host closed the connection]
woolite64 has joined #ruby
msch has quit [Client Quit]
<TTilus>
hoelzro: it is a convention, if you put a construct like that together yourself, you are absolugtely not required to call .to_proc on symbols found from block argument slot
chussenot has joined #ruby
<becom33>
nvm got it done
burgestrand1 has joined #ruby
cantonic has joined #ruby
burgestrand has quit [Ping timeout: 250 seconds]
wallerdev has joined #ruby
<TTilus>
hoelzro: hum, i may have been somewhat wrong
<TTilus>
hoelzro: ruby does that Symbol#to_proc automatically to all syms provided as block parameters
razibog1 has quit [Quit: Leaving.]
atmosx has joined #ruby
razibog has joined #ruby
<TTilus>
hoelzro: so ur right and it is a rule
dsdeiz has joined #ruby
razibog has quit [Client Quit]
nemesit has joined #ruby
zeade has joined #ruby
<TTilus>
hoelzro: but it works differently compared to coercion on arithmetic operators
_64k has quit [Quit: _64k]
kmurph has quit [Quit: kmurph]
<lectrick>
Is there a way to temporarily grab IO output (standard IO) within a block and then return it to its previous output device after the block?
<becom33>
Hanmac, http://pastie.org/5581004#8 Im getting $_GET as the response what if I want to get the $stuff for an example whats before the = sighn
danneu has quit [Quit: WeeChat 0.3.8]
<lectrick>
basically I want to temporarily be the recipient of STDOUT within a block and then return it
<theRoUS>
[error]: Missing 'redcarpet' gem for Markdown formatting. Install it with `gem install redcarpet`
<under>
Hi guys. Can I ask about a gem?
<TTilus>
just ask
<theRoUS>
redcarpet is a) installed, b) listed in the .gemspec as a dev dependency, and c) in the Gemfile{,.lock}. the architecture is fedora fc17 x86_64.
Morkel has joined #ruby
<theRoUS>
i haven't found any relevant stuff online yet
<TTilus>
theRoUS: something wrong with gem path?
nwertman has quit [Ping timeout: 246 seconds]
havenn has quit [Ping timeout: 252 seconds]
<TTilus>
theRoUS: done bundle install?
<theRoUS>
TTilus: bundle show <gem> for each shows them in the system path, e.g. /usr/local/share/gems/gems/redcarpet-2.2.2
jfl0wers has quit [Quit: jfl0wers]
<TTilus>
theRoUS: sounds right
<theRoUS>
TTilus: 'bundle check' shows all happiness.
<theRoUS>
and running 'yardoc' from the command line works a treat.
<TTilus>
theRoUS: rake somehow loses them still
<theRoUS>
it's just when run from rake..
malte_ has joined #ruby
tjbiddle has joined #ruby
regedarek has quit [Ping timeout: 255 seconds]
<TTilus>
theRoUS: tried putting binding.pry inside rake stuff and poke then around to see if load paths gedm paths and sorts of things are allright?
<theRoUS>
TTilus: hmm. commenting out some bundler stuff in the rakefile gets it further along..
<TTilus>
under: does cinch have own irc channel?
<TTilus>
under: tried to look for examples?
adkron has quit [Ping timeout: 252 seconds]
<under>
yes, here on freenode, but nobody seems to be online. Yes I gave a look to examples but DCC is never used
<TTilus>
theRoUS: you might have offending stuff in rakefile
Slivka has joined #ruby
<TTilus>
theRoUS: it just begs for REPLing where things go wrong
adkron has joined #ruby
<theRoUS>
yeah. i thought i had tried commenting it out before, but i must not have saved. d'oh.
Noldorin has quit [Quit: Computer has gone to sleep.]
toekutr has joined #ruby
<TTilus>
under: if api docs dont help you out, im afraid i cant either, dunno nothing about cincg
DaltonUS has quit [Quit: DaltonUS]
<TTilus>
cinch even
bhavesh_a_p has quit [Remote host closed the connection]
benlieb has joined #ruby
voodoofish430 has joined #ruby
jgrevich has joined #ruby
banisterfiend has joined #ruby
Dreamer3 has joined #ruby
<under>
TTilus: ok, dont warry, thanks anyway :)
thecreators has joined #ruby
DaltonUS has joined #ruby
_nitti has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 252 seconds]
miskander has quit [Quit: miskander]
jblack has quit [Ping timeout: 245 seconds]
<lectrick>
TTilus: Why can I not tab-complete your name? lol
<ner0x>
faker... what a useful gem. :)
<banisterfiend>
"bring more value from the base reality to other realities and to make software for that purpose"
kokainepizza has joined #ruby
<TTilus>
lepht: i can
<under>
Me too
<TTilus>
lectrick: damn, that was for u ^
<TTilus>
lepht: sorry, ment lectrick
stkowski has joined #ruby
<lectrick>
TTilus: I wrote a monkeypatch management class. Someone on our team wants to monkeypatch a method that gets fixed in a Rails version that is future to the one we are stuck on for now. My patcher class makes you write a test to see whether your patch is necessary before it will run it.
<lectrick>
TTIlus: The only change in behavior is the deprecation warning which goes to stdout.
<TTilus>
banisterfiend: where the ce is that from?
<banisterfiend>
TTilus: from yugui's linked in :)
tombar has joined #ruby
<lectrick>
TTilus: So the trick is, how do you only apply the patch if the warning is not emitted to STDOUT?
<lectrick>
TTilus: The person wanted to just check for the Rails version but I thought that was not as specific as checking the specific behavior you're trying to patch
matchaw_ has joined #ruby
<TTilus>
lectrick: yes, you really are being really, really clever O.o
<lectrick>
TTilus: It's not a deprecation. This is the warning: ~.rvm/gems/ruby-1.9.3-p327@rails3/gems/activesupport-3.0.17/lib/active_support/core_ext/string/output_safety.rb:23: warning: regexp match /.../n against to UTF-8 string
<TTilus>
lectrick: not that its not true and proper duck oo
matchaw_ has quit [Remote host closed the connection]
<TTilus>
lectrick: ah, i see
<lectrick>
TTilus: I am paranoid about unexpected side effects causing weird bugs. Our codebase is getting very big and if these get out of control we are fucked
<lectrick>
TTilus: We are also trying to keep up with newer versions of gems, Rails, etc. so I consider this very important to control
<TTilus>
lectrick: id say that kind of stdout redirections are exactly the stuff that you wanna avoid if thets your worry :)
Guest5080 has quit [Ping timeout: 250 seconds]
<lectrick>
TTilus: Well, if it's just a temporary swapout within a block I don't see the harm, but I understand your concern actually
<lectrick>
TTilus: Especially when it comes to threads etc
theRoUS has quit [Ping timeout: 265 seconds]
<TTilus>
lectrick: you _know_ the rails versions and can enumerate the ones having the bug :)
GoGoGarrett has quit [Remote host closed the connection]
emergion has joined #ruby
<lectrick>
TTilus: Yeah, I'm considering just a version check if that is reliable enough. Certainly easier to write lol
<TTilus>
lectrick: exactly
<TTilus>
simple, understandable, maintainable, etc.
cantonic has quit [Quit: cantonic]
DrShoggoth has joined #ruby
Russell^^_ has joined #ruby
zastern has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
Russell^^ has quit [Ping timeout: 252 seconds]
Russell^^_ is now known as Russell^^
llaskin has joined #ruby
<llaskin>
https://gist.github.com/4382236 i know my syntax on line 18 is incorrect. How would I force a retry if the condition in the if is not met?
jgrevich has quit [Ping timeout: 245 seconds]
jgrevich_ is now known as jgrevich
_nitti has joined #ruby
xAndy is now known as xandy
<lectrick>
TTilus: yeah, decided to just do the rails version check even though it's not as, eh, "scientific" :)
<lectrick>
for all those reasons.
tjbiddle has quit [Quit: tjbiddle]
<lectrick>
I think the Patcher class I wrote is kind of neat, it's one of the things I need to gem out at some point
<blazes816>
GlenK: because the array only has 4 elements, so 5,0 returns nil
skcin7 has quit [Quit: Computer has gone to sleep.]
Spaceghostc2c has joined #ruby
cakehero has joined #ruby
DaZ has quit [Ping timeout: 265 seconds]
freakazoid0223 has quit [Quit: Leaving]
miskander has quit [Quit: miskander]
philcrissman has quit [Remote host closed the connection]
timonv has joined #ruby
miskander has joined #ruby
ciopte7 has quit [Quit: ciopte7]
DaZ has joined #ruby
main has joined #ruby
thatguycraig has quit [Quit: Leaving.]
main has quit [Read error: Connection reset by peer]
skcin7 has joined #ruby
<GlenK>
blazes816: I was under the impression that the 4 was the start index and the 0 was the amount of elements. no?
Guest24 has joined #ruby
Criztian has quit [Remote host closed the connection]
<eph3meral>
lol wut?
<blazes816>
GlenK: you are correct. that's why 4,0 returns an empty array (starts with the 4th element, returns 0 elements). but with 5,0, since there isn't an element at that index, it simply returns nil
<eka>
GlenK: cause 5 is out of index
skcin7 has quit [Client Quit]
skcin7 has joined #ruby
<GlenK>
but shouldn't 4 be out of index as well since you start at 0? or does it index some terminator thing?
twoism has joined #ruby
ebouchut has joined #ruby
theRoUS has joined #ruby
Guest5080 has joined #ruby
<eka>
GlenK: you are right… looking
<blazes816>
very strange
<yxhuvud>
GlenK: look at it like fenceposts. index 4 is still in contact with the contents.
theRoUS is now known as RoUS
<GlenK>
yxhuvud: ah. makes sense that way, sure. thanks.
<blazes816>
yeah, it looks like it still returns an empty array if that index is == the length. seems weird
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
greenarrow has joined #ruby
Siphonblast has quit [Ping timeout: 244 seconds]
<graft>
ergh. is there a way for a mixin to know what class is mixing it?
caemir has joined #ruby
mengu has quit [Quit: Konversation terminated!]
<hoelzro>
graft: sort of; what do you need it for?
<Banistergalaxy>
Hh
love_color_text has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<graft>
hoelzro: well, i want to have like: Model::Class, Model::Config, Test::Case < Model::Class and Test::Config < Model::Config - then Test::Case.new.config should return Test::Config.new, but i want the config method to go in Model::Class
tomzx_ has joined #ruby
<hoelzro>
graft: so Model::Class is your mixin?
<graft>
yeah
<hoelzro>
why are you subclassing it in Test::Case?
<graft>
i'm not actually subclassing it, i'm including it there
dublon has joined #ruby
<hoelzro>
oh, ok =)
Guest9041 has quit [Read error: Connection reset by peer]
<hoelzro>
just checking
<graft>
yeah, unclear, sorry
<hoelzro>
so, Test::Case#config should return Test::Config.new
<hoelzro>
what are the other possible returns of this config method?
Guest9041 has joined #ruby
Virunga has joined #ruby
<graft>
well, if I had Test2::Case and Test2::Config, Test2::Case#config should return Test2::Config.new
dyrot has quit [Ping timeout: 265 seconds]
rakl has joined #ruby
<hoelzro>
graft: so it's chopping off all but the first name in the namespace, and appending Config?
<graft>
hoelzro: essentially
<graft>
hoelzro: however, if i call something like Module.nesting in Model::Class#config, I get the nesting for Model::Class
emsilva has joined #ruby
<hoelzro>
graft: why not just grab self.class.name in the config body and do your work on that?
snorkdude has joined #ruby
logabr has joined #ruby
marr has joined #ruby
<graft>
hoelzro: yeah that's probably the way to go
<hoelzro>
that's what I would do
<emsilva>
hi there. I'm building a gem to use on a rails application. Can someone point me in the right direction of the best way to retrieve the Rails.root of the application? The reason I created a gem outside of rails is because it does some minor things, and I don't want the whole environment loaded on top of it, so including rails environment on the gem is in this case not the best solution.
adkron has joined #ruby
otters has quit [Quit: WeeChat 0.3.9.2]
bean has quit [Quit: Computer has gone to sleep.]
<arturaz>
emsilva, well, if you don't want the env, there is no way to know Rails.root, don't ya think? :)
nfk has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
logabr has quit [Quit: logabr]
xAndy is now known as xandy
dsdeiz has joined #ruby
<nfk>
not sure if this is the right place for RoR questions but has something changed in rails server use? from what i remember, last year it provided helpful error messages but now when doing development it just sends me to 500.html
<arturaz>
nfk, #rubyonrails
<nfk>
thanks
dyrot has joined #ruby
<emsilva>
arturaz: I was hoping about some type of magic with bundle to retrieve the path, or something to that extent. All this gem does is receive a file as argument, and add the file data to queue_classic.
banisterfiend has quit [Ping timeout: 246 seconds]
kmurph has quit [Quit: kmurph]
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
d2dchat has joined #ruby
fris has left #ruby [#ruby]
adkron has quit [Ping timeout: 265 seconds]
C0deMaver1ck has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
d2dchat has quit [Remote host closed the connection]
banisterfiend has joined #ruby
dunpeal has joined #ruby
<dunpeal>
Hi. I keep getting the following warning with some old library: "/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead."
<dunpeal>
Is there a benign way to fix / suppress this?