Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
nanoyak joined #ruby
norex joined #ruby
norex joined #ruby
jetblack joined #ruby
kf8a joined #ruby
statbot2 joined #ruby
statbot2 joined #ruby
Mohan joined #ruby
Mohan joined #ruby
statbot2 joined #ruby
looopy joined #ruby
modderx joined #ruby
mengu joined #ruby
axilla joined #ruby
timonv joined #ruby
looopy_ joined #ruby
statbot2 joined #ruby
<shevy>
Taos the flexibility of ruby itself makes ruby cool
statbot2 joined #ruby
albemuth joined #ruby
<shevy>
alias, alias_method
statbot2 joined #ruby
statbot2 joined #ruby
statbot2 joined #ruby
rramsden joined #ruby
esparkma_ joined #ruby
dyer joined #ruby
tomzx joined #ruby
negaduck_ joined #ruby
dyer joined #ruby
dv310p3r joined #ruby
sorin joined #ruby
bwlang joined #ruby
jbw joined #ruby
statbot2 joined #ruby
Shamgar joined #ruby
dv310p3r joined #ruby
kennethreitz joined #ruby
moted joined #ruby
jimmy1980 joined #ruby
looopy_ joined #ruby
rubyruy joined #ruby
<bigdata>
:join rake
__sorin__ joined #ruby
perryh joined #ruby
__sorin__ joined #ruby
shevy left #ruby
yfeldblum joined #ruby
sawu joined #ruby
sorin joined #ruby
sorin joined #ruby
mxweas_ joined #ruby
Skaag joined #ruby
nari joined #ruby
wpgreenway joined #ruby
mengu_ joined #ruby
mengu_ joined #ruby
tsccof joined #ruby
<tsccof>
may ruby be used as a web development language without the aid of a framework? just pure ruby
xpot joined #ruby
ggtoo joined #ruby
<davidcelis>
tsccof: considering that Ruby on Rails and Sinatra are written entirely in Ruby... Sure
<davidcelis>
But why would you do that when there are frameworks?
mmokrysz joined #ruby
<tsccof>
davidcelis: well, I am only curious if that is possible :P
<blueadept>
all i have at the end of an ajax request is an empty results.test section
dbgster joined #ruby
jimmy1980 joined #ruby
stephenjudkins joined #ruby
quest88 joined #ruby
dnjaramba joined #ruby
Tachyx joined #ruby
WhiteHorse joined #ruby
sbanwart joined #ruby
kenperkins joined #ruby
PaciFisT joined #ruby
mxweas_ joined #ruby
Sailias joined #ruby
avandendorpe joined #ruby
Sailias joined #ruby
mickn joined #ruby
bwlang joined #ruby
excelsior joined #ruby
stephenjudkins joined #ruby
jimmy1980 joined #ruby
esparkm__ joined #ruby
esparkman joined #ruby
wyhaines joined #ruby
baroquebobcat joined #ruby
mxweas_ joined #ruby
boodle joined #ruby
stephenjudkins joined #ruby
sbanwart_ joined #ruby
Coty91 joined #ruby
vjacob joined #ruby
<vjacob>
is there a RubySOC going on sometime in the coming 6 months time?
kenperkins joined #ruby
mxweas_ joined #ruby
jimmy1980 joined #ruby
epochwolf joined #ruby
kawa_xxx joined #ruby
zodiak joined #ruby
headius joined #ruby
JakeyChan joined #ruby
bafilius joined #ruby
dasfugufish joined #ruby
guest42 joined #ruby
ryanf joined #ruby
dyer joined #ruby
stephenjudkins joined #ruby
stephenjudkins joined #ruby
igotnolegs joined #ruby
banisterfiend joined #ruby
iamjarvo joined #ruby
jimmy1980 joined #ruby
stephenjudkins joined #ruby
guest42 joined #ruby
rpowell joined #ruby
baroquebobcat joined #ruby
siksia joined #ruby
headius joined #ruby
sbanwart_ joined #ruby
guest42_ joined #ruby
dotnull joined #ruby
stephenjudkins joined #ruby
stephenjudkins joined #ruby
stephenjudkins joined #ruby
rvmeier joined #ruby
sbanwart__ joined #ruby
skinnymuch joined #ruby
chessguy joined #ruby
radic_ joined #ruby
MrCheetoDust joined #ruby
Skaag joined #ruby
namidark joined #ruby
syntaxritual joined #ruby
r0bby_ joined #ruby
wedtm joined #ruby
tomhsx joined #ruby
apok joined #ruby
yeltzooo joined #ruby
stephenjudkins joined #ruby
manizzle joined #ruby
dbruns joined #ruby
kenperkins joined #ruby
x0F__ joined #ruby
stephenjudkins joined #ruby
stephenjudkins joined #ruby
manizzle joined #ruby
yekta joined #ruby
mxweas_ joined #ruby
Targen joined #ruby
Behi joined #ruby
milkpost joined #ruby
ryanf joined #ruby
jimmy1980 joined #ruby
stephenjudkins joined #ruby
developish joined #ruby
milkpost joined #ruby
stephenjudkins joined #ruby
pen_isident joined #ruby
otakutomo joined #ruby
Wroathe joined #ruby
<Wroathe>
Anyone mind fielding a rails question?
<Wroathe>
I just upgraded to a new version of rails and I don't know if I'm missing a gem or what but my tests used to output something like Started PASS should create product Finished ...
<Wroathe>
Now it only shows Started ... Finished
<Wroathe>
I'm really new to this so any help would be appreciated.
jimmy1980 joined #ruby
Wroathe left #ruby
<dbruns>
i'm having trouble getting the mysql or mysql2 gem to work. I'm using 1.9.3 with RVM brand new OSX Lion install i installed mysql with homebrew
<dbruns>
anyone run into this? google isn't being nice
baroquebobcat joined #ruby
stephenjudkins joined #ruby
stephenjudkins joined #ruby
bratsche joined #ruby
randym_ joined #ruby
ryanf joined #ruby
zodiak joined #ruby
dbruns joined #ruby
mxweas_ joined #ruby
perryh joined #ruby
<loocorez>
Wroathe: You may have more luck in #RubyOnRails
ColinT joined #ruby
dbruns joined #ruby
looopy joined #ruby
alienvenom joined #ruby
vjacob joined #ruby
Nanuq joined #ruby
mikepack joined #ruby
vjacob joined #ruby
mxweas_ joined #ruby
manizzle joined #ruby
yfeldblum joined #ruby
media-948 joined #ruby
saschaheylik joined #ruby
media-584 joined #ruby
TheTFEF joined #ruby
saschaheylik left #ruby
ggtoo joined #ruby
wmoxam joined #ruby
wmoxam joined #ruby
wyhaines joined #ruby
jimmy1980 joined #ruby
saschaheylik joined #ruby
SegFaultAX joined #ruby
vjacob joined #ruby
PaciFisT joined #ruby
media-498 joined #ruby
vjacob joined #ruby
wayne[mobile] joined #ruby
raythecat joined #ruby
yekta left #ruby
ligan joined #ruby
brownies joined #ruby
Lord-Harlot joined #ruby
ryanf_ joined #ruby
developish joined #ruby
Shamgar joined #ruby
moshee joined #ruby
moshee joined #ruby
ryanf_ joined #ruby
mxweas_ joined #ruby
BrenoPerucchi joined #ruby
p1d joined #ruby
developish joined #ruby
rippa joined #ruby
okkez joined #ruby
okkez left #ruby
ramusara joined #ruby
LittleBill902 joined #ruby
Amirh joined #ruby
jgrimes joined #ruby
jgrimes_ joined #ruby
mxweas_ joined #ruby
mayankkohaley joined #ruby
pen_isident joined #ruby
stayarrr joined #ruby
mxweas_ joined #ruby
pen_isident_ joined #ruby
peterhil joined #ruby
eldariof joined #ruby
nonotza joined #ruby
mikepack joined #ruby
Morkel joined #ruby
bosphorus joined #ruby
fantazo_ joined #ruby
iocor joined #ruby
mikepack joined #ruby
banisterfiend joined #ruby
Cervajz joined #ruby
jorum joined #ruby
brownies joined #ruby
mikepack joined #ruby
iocor joined #ruby
yxhuvud joined #ruby
andreime joined #ruby
Boohbah left #ruby
Cervajz_ joined #ruby
enikar joined #ruby
Cervajz joined #ruby
maletor joined #ruby
Seisatsu joined #ruby
Seisatsu joined #ruby
ph^ joined #ruby
Jrz joined #ruby
michael_mbp joined #ruby
RomD`` joined #ruby
smgt joined #ruby
nari joined #ruby
SpyvsSpy joined #ruby
banisterfiend joined #ruby
otakutomo joined #ruby
enikar joined #ruby
ognevsky joined #ruby
peterwald joined #ruby
ged joined #ruby
asQuirreL joined #ruby
cafesofie joined #ruby
MissionCritical joined #ruby
<gener1c>
i am using a script that does cd <script dir>; ruby script.rb
hinogi joined #ruby
hinogi joined #ruby
<gener1c>
its in bash, is there a way to bypass that need using ruby?
<asQuirreL>
gener1c: don't keep it in that directory....? :P
workmad3 joined #ruby
fermo joined #ruby
xhx joined #ruby
Helius joined #ruby
shevy joined #ruby
_debo joined #ruby
Manhose joined #ruby
ognevsky joined #ruby
enikar joined #ruby
james_cotterill joined #ruby
timonv joined #ruby
wyhaines joined #ruby
james_cotterill joined #ruby
james_cotterill joined #ruby
ggtoo joined #ruby
fridim_ joined #ruby
Manhose joined #ruby
jimmy1980 joined #ruby
james_cotterill joined #ruby
enikar joined #ruby
mk03 joined #ruby
workmad3 joined #ruby
MrCheetoDust joined #ruby
Reikoku joined #ruby
pantsman joined #ruby
pantsman joined #ruby
eldariof joined #ruby
workmad3 joined #ruby
Manhose joined #ruby
Seisatsu joined #ruby
fixl joined #ruby
timonv joined #ruby
cek joined #ruby
<cek>
bundle outdated(1)
<cek>
Show all of the outdated gems in the current bundle
<cek>
$ bundle outdated
<cek>
Could not find task "outdated".
Telling joined #ruby
<shevy>
yeah cek
<shevy>
another bundle command failed for me
<shevy>
I have come to the conclusion that bundle is a pile of shit.
ikaros joined #ruby
jimmy1980 joined #ruby
<yxhuvud>
perhaps, but it does decently at solving a problem rubygems doesn't solve.
<yxhuvud>
you may not have that problem, or not have it yet, though.
<banisterfiend>
yxhuvud: hey there ltns
<yxhuvud>
heya
raythecat joined #ruby
adambeynon joined #ruby
<cek>
what's the stablest version of ruby?
ognevsky joined #ruby
kirun joined #ruby
jimmy1980 joined #ruby
sidqq_ joined #ruby
<rippa>
obejct.methods
workmad3 joined #ruby
<WhiteHorse>
thank you
<shevy>
cek 1.8.7*
<shevy>
yxhuvud what problem does bundler solve?
<mksm>
shevy, no, it's 1.9.2
<yxhuvud>
shevy: have you ever returned to an old installation that had a dependency on several gems, but that broke when you installed the latest versions of them?
<shevy>
yxhuvud hmm not really
<yxhuvud>
you might counter by saying 'hey don't update your gems without knowing it will wokr', but that is easier said than done when trying to setup a development environment
<shevy>
I'd never say that
<shevy>
I'd say, don't use gems at all :>
<shevy>
though ruby-evolution says use gems
<shevy>
then we find shortcomings in gems, so we add a new program, with new shortcomings
<shevy>
but I see yxhuvud, thanks
<cek>
Could not find mysql-2.8.1 in any of the sources
<burgestrand>
heoa: you did not close your input tag
<heoa>
burgestrand: ok now it runs but it does not do the intended.
<burgestrand>
heoa: … why do you still not say what it does instead?
<heoa>
burgestrand: I returns the executable file to the browser but does not execute it with Ruby
<burgestrand>
there we go :)
<burgestrand>
heoa: is your server configured to run cgi scripts?
<burgestrand>
heoa: or, actually, do you even run it on a server?
<burgestrand>
heoa: because your browser do not run these scripts; you need to serve it through a webserver that is configured to run CGI scripts
<burgestrand>
heoa: I cannot help you configuring one to do that, though, I usually use sinatra (http://sinatrarb.com) or rails to do my web development
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
<burgestrand>
(and with those I do not need to run cgi scripts at all, most often I just run a ruby web server that can run the script within itself)
<heoa>
burgestrand: but you still need to change some Apache settings?
dv310p3r [dv310p3r!~dv310p3r@adsl-74-161-100-70.mia.bellsouth.net] has joined #ruby
<heoa>
burgestrand: sounds cool, how can I do it without cgi?
<heoa>
burgestrand: do I need Sinatra or Rails (sorry no experience with them)?
<burgestrand>
heoa: if you just need to do something small (like the example you have) I would start with sinatra because it’s fast to start and you don’t need to know much about sinatra itself
<burgestrand>
heoa: after that, you can put your ruby code inside some other action, like "get '/run_my_flow_stuff'" and make the form post to that location
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
niklasb [niklasb!~codeslay0@p5B311048.dip0.t-ipconnect.de] has joined #ruby
<heoa>
burgestrand: http://pastebin.com/NveZCxTS <--- I get this with "$ ruby sinat.rb" with the first example after "$ sudo gem install sinatra"?!
<burgestrand>
heoa: don’t forget the "-rubygems" part, it is important if you use ruby 1.8
smgt [smgt!~simon@76.156.216.81.static.m-dp.siw.siwnet.net] has joined #ruby
<holybit>
how to interpolate an array? a = [ 1, 2 ] FileList.new(WORKINGDIR).exclude(a) doesn't seem to get the values in array a into the exclude
<burgestrand>
heoa: you do not need it as a CGI anymore, you can put the code from runMe.ru in sin.rb if you want, but if you still want it as a separate file I’ll see if I can make an example that runs it
nej [nej!~nej@86.58.100.99] has joined #ruby
<burgestrand>
banisterfiend: will check it out in a moment
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
<shevy>
hmm
<shevy>
why am I always losing against the chess AI :(
demian`_ [demian`_!~demian_@80.149.254.69] has joined #ruby
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
ggtoo [ggtoo!~ggtoo@122.178.2.240] has joined #ruby
<holybit>
interpolate is probably not the right term, but I am still stymied
<shevy>
what does interpolate mean
<shevy>
do you mean .reject ?
<burgestrand>
You could just do: new_array = old_array - array_of_items_to_remove
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
<burgestrand>
It’s not the safest code ever (you could potentially run *any* file), but it runs
pen_isident_ [pen_isident_!~chatzilla@58.251.87.131] has joined #ruby
<burgestrand>
banisterfiend: I recognize the point of having generated files in your gem, but I don’t think I’ve ever had a case where I did not want one of those files in the repository anyway
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
raluxgaza [raluxgaza!~raluxgaza@host-92-24-96-29.ppp.as43234.net] has joined #ruby
<burgestrand>
banisterfiend: apart from that, I do enjoy the convenience of doing everything from the gemspec because of bundlers’ ability to grab gems from git repositories
<burgestrand>
libraries that don’t have their gemspec as part of their repository, not even on the tagged release versions, are a source of pain for me
frogstarr78 [frogstarr78!~frogstarr@lan.viviotech.net] has joined #ruby
<banisterfiend>
burgestrand: the issue for me is that i often want more than one gemspec
<banisterfiend>
in the case of platform gems, windows binary gems vs gems that are built on installation
<banisterfiend>
and maintaining 2 separate gemspecs is a pain when they share a lot of content
<banisterfiend>
in fact it's more like 3 or 4 separate gemspecs
<banisterfiend>
using a Rakefile to maange everything is trivial
<banisterfiend>
maintaining 3/4 gemspecs is a pain
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<banisterfiend>
maybe someone has a solution for my problem though :)
<shevy>
ruby world has solutions to problems that work to maximum 95%
<burgestrand>
banisterfiend: I feel you, but I must say I believe the case where you actually *need* to do something like this is not for everybody (first off)
<shevy>
the remaining 5% will be to create new projects. until they reach the 95% maximum again
<burgestrand>
banisterfiend: so yes, there needs to be some way to offload this pain from the developer
<burgestrand>
but the users should not be the ones getting inconvenienced in the process
<banisterfiend>
burgestrand: well anyone doing C extensions (who cares about windows kids) will encounter this
<shevy>
I hate users
<shevy>
I am a user too and when I am a user I hate devs
<banisterfiend>
burgestrand: well the only inconvenience you're talking about are ppl who are trying to use bundler
<burgestrand>
as long as I have a convenient way of saying "I want to install this gem from this location; handle it (moar dots)" I’m fine
<shevy>
bundler sucks
<burgestrand>
banisterfiend: yeah, pretty much all people using rails
<shevy>
damn rails people are powerful
<burgestrand>
banisterfiend: and, well, an example of me today when I wanted to try the HEAD version of ruby_parser from GitHub
<burgestrand>
banisterfiend: just to see if my own code would build on it
nicoulaj [nicoulaj!~nicoulaj@pas38-5-82-244-59-208.fbx.proxad.net] has joined #ruby
<burgestrand>
perhaps bundler is at fault for this, I don’t know
<holybit>
here is my rake script, http://pastie.org/2996338, can't seem to get the FileUtils exclude piece to work as the match strings in dist_exclude don't seem to work in the exclude method
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
<burgestrand>
Not sure how up-to-date that documentation is, but there it is
Rango [Rango!~Scott@88-110-188-238.dynamic.dsl.as9105.com] has joined #ruby
<burgestrand>
Perhaps the issue is that they’re directories? Have you tried excluding a file?
<holybit>
trying out rake as a replacement to Ant which I am tired off, especially the XML syntax
<burgestrand>
Longshot, but hey.
Ilithya [Ilithya!Ilithya@2a02:1610:1:0:20c:29ff:feb3:d0ff] has joined #ruby
RomD [RomD!~Roman@nrbg-d932340b.pool.mediaWays.net] has joined #ruby
<shevy>
hehe holybit
<shevy>
well pretty everything is better than XML
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby
<dotsolo>
cool, im not the only one that finds XML annoying
<holybit>
if i change the arg syntax to exclude to be .exclude('./', './dist/', './offline/') it work perfectly
<Tachyx>
is it possible to write if as one liner ?
<shevy>
holybit no idea but
<shevy>
I'd never want to use something like FileList
<holybit>
it's as if by using .exclude(dist_exclude) doesn't not put the array into the exclude piece
<burgestrand>
Oh, duh.
<shevy>
in pure ruby the solution would be already given
<burgestrand>
holybit: exclude(*dist_exclude)
<Mon_Ouie>
holybit: You probably want a splat then
<dotsolo>
lol, love to splay
<Mon_Ouie>
which is what burgestrand used there
<heoa>
burgestrand: thanks, it works -- but it takes while I read it -- not yet fully understood the "Result: ..." -part, while it could not just be on the same page as earlier?
<burgestrand>
swedish avenger
<dotsolo>
splat :]
<holybit>
ah!!
<holybit>
sorry, total noob, been writing perl for many years and first excursion into ruby
<holybit>
i swear I googled hard, but couldn't figure it out
<shevy>
cool
<burgestrand>
heoa: what do you mean with same page as earlier?
<shevy>
perl guy coming to ruby :)
<heoa>
burgestrand: clicking the button and staying on the same page
<holybit>
i am trying to copy a directory recursively to a new location and exclude certain files and dirs, is there a gem I should look at or is this cook your own territory?
<shevy>
in pure ruby sure
<shevy>
for recursive copying you can use FileUtils like
<Harzilein>
shevy: well, i'm a perl guy as well. just started ruby for rails at work. now when i need to write scripts i do that in ruby too. i have some problems with rvm though, as it seems to only want to manage gems, not random script collections
<burgestrand>
heoa: oh, it’s not how HTML/HTTP works; you must post somewhere. You can post to the same page you are on, but it will still reload the page
<shevy>
holybit, just use a .reject on your array first and reject all matches that should not be copied
<Mon_Ouie>
In Rake FileUtils is already included
<Mon_Ouie>
i.e. you can just do cp_r from, to
<Mon_Ouie>
And it is verbose (so it prints "cp -r from to" in the terminal)
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
pantsman [pantsman!~pantsman@2.25.208.217] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
jimmy1980 [jimmy1980!~jimmy@112.224.3.42] has joined #ruby
<shevy>
cool
<shevy>
that'll help holybit even more
scr1bbles [scr1bbles!~scribbles@babel.sn0wcrash.info] has joined #ruby
<holybit>
thanks for the help all, have to split to drive the kid to the mall … peace to all
|RicharD| [|RicharD|!~|RicharD|@93-41-164-237.ip82.fastwebnet.it] has joined #ruby
<|RicharD|>
anyone can please tell me what are
<|RicharD|>
! or ?
Blacktow3x [Blacktow3x!~Blacktow3@196.217.241.18] has joined #ruby
<|RicharD|>
and end of a method ?
<|RicharD|>
where i can read more ?
<Mon_Ouie>
They're just part of the method name
<|RicharD|>
not done nothing ?
<Mon_Ouie>
? means it's a question, i.e. it will usually return either true or false
<|RicharD|>
for example
<rippa>
it's a coding convention
<|RicharD|>
def example end
<|RicharD|>
i can do example?
<Mon_Ouie>
! means it's dangerous, or that there's a slight difference with the non-bang version
<rippa>
|RicharD|: no
<rippa>
def example? end
<rippa>
now you can
<Mon_Ouie>
No, because you defined the example method, not the example? method
<|RicharD|>
ah ok
<|RicharD|>
so it's just for remember
<|RicharD|>
well
<|RicharD|>
better*
<|RicharD|>
so usualy ? return what ?and ! ?
<|RicharD|>
for conventions...
jay_zawrotny [jay_zawrotny!~Jay@c-71-205-193-222.hsd1.mi.comcast.net] has joined #ruby
raythecat [raythecat!~raythecat@cpe-76-88-24-94.san.res.rr.com] has joined #ruby
<heoa>
burgestrand: is it necessarily to do such dummy CGI -folder or can you do it without it in sinatra?
<heoa>
err necessary
<burgestrand>
heoa: I just made it so we have a certain folder to put everything inside, as you can see from the other action (get '/cgi/:file') we decide what it does when we go to /cgi/runMe.ru
<shevy>
|RicharD| the convention is that "foo?" returns a Boolean value, either true or false. Cindy.has_kids? # => false
<shevy>
|RicharD|.understood_this? # => true
<shevy>
and "foo!" would modify the reciever or however it is called.
<shevy>
array = %w( a b c ) # => ["a", "b", "c"]
<|RicharD|>
for ? ok
<shevy>
array.reject! {|x| x == 'a'}
<shevy>
array # => ["b", "c"]
<|RicharD|>
for ! i haven't know...:(
<shevy>
well, there you see a method with !
<shevy>
it modifies array, you see that?
<shevy>
the first element died
Amirh [Amirh!~amir@2.181.16.51] has joined #ruby
<heoa>
burgestrand: but why do we really need even CGI here? Is it possible do it without such dummy file?
<|RicharD|>
so ? when the method return a boolean value
<burgestrand>
heoa: yup, the sinatra action just calls any kind of file, we can do whatever we want
<heoa>
burgestrand: this is basically just running a small code
<|RicharD|>
and ! for a method that modific array ?
Tachyx [Tachyx!~tach@81.200.61.23] has joined #ruby
<Mon_Ouie>
No, they modify the receiver
<Mon_Ouie>
That is, usually, and if there's also a non-bang version of the method
<|RicharD|>
you can tell me a code example
<|RicharD|>
pls ?
<Mon_Ouie>
"foo".upcase! # not an array
quest88 [quest88!~quest88@c-98-207-205-137.hsd1.ca.comcast.net] has joined #ruby
<Mon_Ouie>
but e.g. Kernel#exit! doesn't modify anything
<|RicharD|>
umh
<|RicharD|>
but upcase!
<Mon_Ouie>
It just means it's a dangerous variant of Kernel#exit
<|RicharD|>
is declarated by me ?
<shevy>
|RicharD| it is part of ruby
<shevy>
class String
<shevy>
|RicharD| you should use IRB
<|RicharD|>
ok
<|RicharD|>
but it's already defined
<Mon_Ouie>
You should use Pry :p
<|RicharD|>
as def upcase!
<shevy>
or read through the docs to Array and String at least ONCE ;)
<|RicharD|>
right ?
<shevy>
yes
<|RicharD|>
ok
<shevy>
class String
<shevy>
def upcase!
<|RicharD|>
i read the docs about array and string
<|RicharD|>
in a book
<shevy>
# do something here, then probably use replace()
<hometurf>
hey guys, anyone know of a way to force ruby to use IPv6 when using the Net classes (such as http and ftp)
michael_mbp [michael_mbp!~Marin@112.134.199.43] has joined #ruby
<shevy>
well yeah |RicharD|
Blacktow3x [Blacktow3x!~Blacktow3@196.217.241.18] has quit ["Quitte"]
<|RicharD|>
so .upcase
<shevy>
|RicharD| with .upcase! you modify self, with .upcase you do not
<|RicharD|>
only show the var UPPERCASE
<|RicharD|>
but not change it
<shevy>
yeah
<|RicharD|>
ah ok perfect :D
<shevy>
:)
<|RicharD|>
so i can use upcase on the fly for show it as i want
<|RicharD|>
instead for change it
<|RicharD|>
only upcase!
<|RicharD|>
so for convention the ! will be used for modify a thing
<|RicharD|>
correct ?
<shevy>
yes
subsu [subsu!~daniel@c80-217-206-12.bredband.comhem.se] has joined #ruby
<|RicharD|>
very good and thx for the information
<hometurf>
anyone know a way to force ruby to use IPv6 when making a NET (HTTP, FTP...) request? such as curl's "-6" option
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
JakeyChan [JakeyChan!~JakeyChan@ec2-175-41-238-53.ap-northeast-1.compute.amazonaws.com] has joined #ruby
thone_ [thone_!~thone@g226049152.adsl.alicedsl.de] has joined #ruby
lkba [lkba!~AndChat@bos124.neoplus.adsl.tpnet.pl] has joined #ruby
RDove [RDove!~ronnie@unaffiliated/rdove] has joined #ruby
closedbook [closedbook!~christono@twdp-174-109-172-122.nc.res.rr.com] has joined #ruby
sbanwart__ [sbanwart__!~sbanwart@99.177.126.136] has joined #ruby
wmoxam [wmoxam!~wmoxam@75-119-229-148.dsl.teksavvy.com] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
<closedbook>
Question on here docs. I tried wrapping one in a function (like a prompt that I could call whenever I like instead of writing it over and over again). However, it get this error: can't find string "BLACKFOREST_PROMPT" anywhere before EOF (SyntaxError)
mattalexx [mattalexx!~mattalexx@pdpc/supporter/active/mattalexx] has joined #ruby
<mattalexx>
Is there a way to take an array of values and not only join them but enclose each in quotes?
sbanwart__ [sbanwart__!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
conor_ireland [conor_ireland!~conor_ire@89.100.121.49] has joined #ruby
<conor_ireland>
hi
<mattalexx>
turn [ 'foo', 'bar' ] into a string that looks like this: 'foo', 'bar'
<conor_ireland>
does anyone know any good examples of inheritance used internalyy in the design of ruby?
<Mon_Ouie>
closedbook: that means you didn't put the delimiter to end the string in the file
<Mon_Ouie>
e.g. foo(<<BAR)\n…\nno BAR here
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
<closedbook>
I did put the delimiter in, but it only works when it's not indented to be in line with the function name (this function is in a class)
failshell [failshell!~failshell@modemcable237.159-58-74.mc.videotron.ca] has joined #ruby
<burgestrand>
heoa: why would it no change the URL?
<heoa>
I think my err is on lines 15-20
<burgestrand>
heoa: the form action is the attribute that decides where the user ends up when she posts the form
sbanwart__ [sbanwart__!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
<burgestrand>
heoa: it always changes the page, always; even if you post to the current page, it will reload the page
<burgestrand>
this is how the web works; you can do a lot of funky stuff with javascript and post it asynchronously but I can’t help you with that it’s too much to teach
<heoa>
burgestrand: is it possible to do some -- repeat?
Knodi [Knodi!~Knodi@c-68-43-246-216.hsd1.mi.comcast.net] has joined #ruby
<KonaB1end>
ah found it. s = <<'EOF'
KonaB1end [KonaB1end!~KonaB1end@unaffiliated/konab1end] has quit [#ruby]
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<heoa>
burgestrand: I mean on line 6, is it possible to have there some repeat so that it will execute that part infinitely
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
<heoa>
?
<burgestrand>
heoa: I don’t understand, execute what part infinitely?
<heoa>
burgestrand: it is bad coding on lines 15-21, no reuse
<heoa>
burgestrand: I am trying to reuse the lines 5-12
<heoa>
so that clicking will not change the page...
<heoa>
but clicking will return the same page
<burgestrand>
heoa: make the action=""
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<heoa>
burgestrand: ?
<burgestrand>
heoa: the form action, make it empty, it will make the form post to the current URL
<heoa>
burgestrand: but then it does not do anything?
<heoa>
burgestrand: I want that clicking will return the form and execute the Ruby file
<Mon_Ouie>
closedbook: Yes, it has to be at the beginning of the line
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<failshell>
burgestrand: i knew it would be something simple :) thanks a lot
<failshell>
i like sinatra so much
<failshell>
i was a pythonista in the past. but I'm moving to ruby these days, like it a lot more
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
<heoa>
for some reason, it interprets require 'flowdock' to be a file, not a package like rubygems?!
<burgestrand>
heoa: it’s not a package, the distinction vs installed gem and file does not exist
<heoa>
burgestrand: but I cannot still understand why it started to shout err with this thing, totally unrelated to the change?!
<burgestrand>
heoa: you just require, and ruby/rubygems just tries to find it depending on very few rules, but in the end it’s always a file getting required
Indian_ [Indian_!~Indian@unaffiliated/londonmet050] has joined #ruby
<heoa>
it is like something has got broken?!
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<heoa>
with the flowdock
scr1bbles [scr1bbles!~scribbles@babel.sn0wcrash.info] has joined #ruby
<burgestrand>
heoa: have you tried ruby1.9.1 -rubygems cgi/runMe.rb
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
<conor_ireland>
does anyone know any good code examples of template methods in ruby?
<burgestrand>
conor_ireland: what’s a template method?
<Mon_Ouie>
If you mean something like C++ template, there is no such thing in Ruby
<Mon_Ouie>
Nor is there any need for it, due to duck typing
<conor_ireland>
burgestrand: like a PlayGame method that has abstract type methods inside it that are overidden in subclasses
kuber [kuber!~kuber@unaffiliated/kuber] has quit [#ruby]
<burgestrand>
conor_ireland: then what Mon_Ouie said :)
<heoa>
(perhaps my SSD hdd is getting too hot now and firing random errs)
<conor_ireland>
burgestrand: hmm ok thanks Mon_Ouie also
<burgestrand>
heoa: all I see is you interrupting the install with ^C
<heoa>
burgestrand: yes I tried that, it complains still about the flowdock
<conor_ireland>
so you dont use the template design pattern in ruby?
<heoa>
burgestrand: yes but look at the invalid things...
<heoa>
burgestrand: ok got it installed but still get the odd err with flowdock as file...
<heoa>
(I had it installed already so it cannot be that, the flowdock thing is missing)
<burgestrand>
heoa: it is installing it on ruby 1.8, but you run your code with ruby1.9.1
<burgestrand>
heoa: don’t you have some gem1.9.1 or something?
<burgestrand>
(also, ruby 1.9.1 is unstable, you should probably use 1.9.2 or 1.8.7)
cafesofie [cafesofie!~user@ool-18b97779.dyn.optonline.net] has joined #ruby
<heoa>
burgestrand: right! Now, this must be because FD has some duplicate spam filters, now I need to get some random Lorm ipsun as message that I can see that it works...
ilyam [ilyam!~ilyam@c-67-188-113-128.hsd1.ca.comcast.net] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
cdepue [cdepue!~cdepue@200.117.80.85] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
sbinetd [sbinetd!~sbinetd@94-193-244-239.zone7.bethere.co.uk] has joined #ruby
guest42_ [guest42_!natsel@72.20.53.166] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<asQuirreL>
gah fuuuuuuuuuu emacs
<asQuirreL>
every time i go to search for something using the rinari search shortcut, I have to remember the shortcut... and then I forget what I'm searching for >.>
<asQuirreL>
*every time*
<heoa>
is there similar command to LaTex's input{laytout.html} in Ruby?
<asQuirreL>
rippa: that's not what Harzilein wants. He wants the [ to be a member of the character class
scr1bbles [scr1bbles!~scribbles@babel.sn0wcrash.info] has joined #ruby
<rippa>
I know
<rippa>
I'm just sayian
<rippa>
that this regex parser works differently
<rippa>
and it may be ambiguous
<Harzilein>
asQuirreL: well, the fact that ruby gives meaning to nested classes is an argument to not support specificall having support for recognizing [ and ] as characters in them
<Harzilein>
i guess i'll have to get accustomed to escaping with \ then. which is a combined keystroke on international keyboards ;)
<Harzilein>
(well, so is [, but at least you don't need to travel a lot while typing)
<asQuirreL>
Harzilein: the simple solution there of course, (clearly) is to buy a US keyboard.... xD
<Harzilein>
nested character classes... -.-
<asQuirreL>
(I'm not from the US, by the way)
<asQuirreL>
Harzilein: As an idea, they seem quite nice, and logical
<asQuirreL>
I'm never going to use a nester character class though
<asQuirreL>
for obvious reasons
RLa [RLa!~RL@133.220.190.90.dyn.estpak.ee] has joined #ruby
Tachyon__ [Tachyon__!~tach@81.200.61.23] has joined #ruby
Tachyon__ [Tachyon__!~tach@81.200.61.23] has joined #ruby
<Harzilein>
maybe i should just write a minimal parser for my case. then i can support a whole bunch of nested [] myself %-)
<asQuirreL>
Harzilein: that would be the ruby mentality...
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
<Harzilein>
(i want to scrape a phpbb forum and the post count is in square brackets)
<asQuirreL>
oic
<asQuirreL>
Harzilein: I had to do something similar
<asQuirreL>
but it was reversing a to_s on an array
<asQuirreL>
this is probably like the millionth time I've posted this particular regex on here, but whatever: /\[([^\[\]]+)\]/
cdepue [cdepue!~cdepue@200.117.80.85] has joined #ruby
tshauck [tshauck!~tshauck@129.237.222.1] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
daniel_hinojosa1 [daniel_hinojosa1!~danno@c-68-35-182-153.hsd1.nm.comcast.net] has joined #ruby
<rippa>
asQuirreL: JSON[array.to_s]
<rippa>
works only on numbers and string, ofc
<asQuirreL>
rippa: yeah that won't help in my case
<asQuirreL>
the array contained my own data type
<asQuirreL>
it's for a computer algebra system that incorporates matrices
steph021 [steph021!~steph021@unaffiliated/steph021] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
mickn [mickn!~user@unaffiliated/mickn] has joined #ruby
kirun_ [kirun_!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
BrianJ [BrianJ!~textual@64.134.224.60] has joined #ruby
Rory_O [Rory_O!~Rory@63-152-77-195.cdrr.qwest.net] has joined #ruby
<emiltin>
hi, i'm trying to use cucumber to test a http daemon. i'm launching it using IO.popen. how can i check if/what it has written to stderr?
<burgestrand>
heoa: no, you have a problem here, when you call this tyhmAH.rb, you call it with "system", it is a completely separate process and knows *nothing* about the sinatra environment
<burgestrand>
heoa: you cannot access params or anything from sinatra in that script
saschaheylik [saschaheylik!~sascha@80-121-34-26.adsl.highway.telekom.at] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<burgestrand>
heoa: yes, it still applies, your FD script does not know about sinatra
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
<emiltin>
if i read() on the pipe returned from popen, then my code seems to blocks if there's nothing to read? is there a way to simply ask what's been written?
<burgestrand>
heoa: it looks like you want your FD script and sinatra script to be one and the same
<burgestrand>
emiltin: readpartial I believe’s what you might want
<emiltin>
burgestrand: ok, thank i'll look at that
<burgestrand>
There’s a read_nonblock too, but there’s another one…
<heoa>
burgestrand: sorry not following, is the err in System -command or?
<emiltin>
burgestrand: hm, but it says it blocks if there's no data available..
<burgestrand>
heoa: yes, when you run the FD script with system, you run it as a new process, kind of like if you started it running only “ruby fd_script.rb”
<burgestrand>
emiltin: yeah, I noticed, trying to find the one I was actually looking for :p
<emiltin>
read_nonblock sounds about right
<heoa>
burgestrand: %x[#{cgi_path}] ?
<burgestrand>
heoa: yes
<burgestrand>
emiltin: I have a vague memory of there existing an IO method that just reads data if it’s available and does nothing if not (as opposed to read_nonblock raising an error)
<burgestrand>
can’t find it though
<emiltin>
the read methods will only read from stdout by default, right?
<burgestrand>
heoa: do you really need the FD script as a separate script?
<burgestrand>
emiltin: they’re instance methods on IO, so it’ll read from the IO object that is the receiver
<asQuirreL>
I used "heroku create matric --cedar-stack"
<samuelkadolph>
You aren't if your assets aren't getting precompiled
<asQuirreL>
well motherduck.
<asQuirreL>
oops, it's --stack cedar
<asQuirreL>
not --cedar-stack
<asQuirreL>
heroku could've told me that when I was making an ass of myself >.>
<burgestrand>
;)
bosphorus [bosphorus!~bosphorus@85.102.50.124] has joined #ruby
<asQuirreL>
lol, in my repo the logs go "Precompiled assets" "Removing Precompiled assets"
<asQuirreL>
xD
<asQuirreL>
I could've gone for a sneaky amend and then no one would've known how stupid I am
Knodi [Knodi!~Knodi@c-68-43-246-216.hsd1.mi.comcast.net] has joined #ruby
davidcelis [davidcelis!~david@c-98-246-194-189.hsd1.or.comcast.net] has joined #ruby
<asQuirreL>
woooo assets precompiling
<asQuirreL>
well... it's not failing straight away
<asQuirreL>
oh wait... no... spoke to soon
<asQuirreL>
it failed eventually >.>
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
perryh [perryh!~root@unaffiliated/perry753] has joined #ruby
<emiltin>
burgestrand: oddly enough, using 2>&1 when launching my process mean i can't kill the processes again using Process.kill("KILL", @pipe.pid)
<burgestrand>
emiltin: peculiar
<asQuirreL>
guys, do you know where it is I add paths to the auto require list?
<emiltin>
yeah weird
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
josh_ [josh_!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
dbgster [dbgster!~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com] has joined #ruby
johnduhart [johnduhart!~quassel@46.105.138.12] has joined #ruby
<burgestrand>
asQuirreL: config.autoload_paths — I do recall the name might’ve changed though; put it in config/application.rb either way
<burgestrand>
asQuirreL: I do believe there’s a comment in that file about it
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
<asQuirreL>
burgestrand: I thought so, thanks
<burgestrand>
asQuirreL: that’s only for autoloading constants though; if all you want is to require a file before rails boots you can just put the require after the bundler set-up process… which might be in config/boot.rb
<asQuirreL>
burgestrand: it's a model class
<asQuirreL>
a model class in the non-rails sense
<asQuirreL>
so, not an ActiveRecord
<asQuirreL>
but a class that does all the heavy lifting and data processing while everything else looks pretty
<heoa>
burgestrand: arg...flowdock stopped working totally even with gem1.9.1, I think this is experimental. Apt-get does not have ruby1.9.2, some suggestion?
<heoa>
... cannot test your patch :(
<Rory_O>
asQuirreL: put it in models anyway, lots of non ar models get written
<asQuirreL>
Rory_O: that's where I put it
<asQuirreL>
but it doesn't seem to be getting loaded
<burgestrand>
heoa: I don’t know how to install 1.9.2 with apt; I would try ruby 1.8.7 first though
chrxn [chrxn!~chrxn@69.4.233.32] has joined #ruby
<Rory_O>
try the console to see if you can reference the class by name. i've written lots of models that don't subclass anything.
<Rory_O>
the class name has to match the file name convetions though.
looopy [looopy!~looopy@pool-141-156-48-174.washdc.btas.verizon.net] has joined #ruby
<burgestrand>
heoa: lots of information, love it :)
<burgestrand>
Ah yes, require_relative will not work on 1.8, change that to just "require" — strange… oh shit, it looks like you are using the broken rubygems from apt too, I forgot about that one
<burgestrand>
heoa: sorry, but your package manager has broken your rubygems installation, I have no idea how to fix it
<burgestrand>
heoa: this is my theory, anyway, I might be wrong
<Rory_O>
Ruby from apt has been broken for years. Try rvm or rbenv instead of using the system one.
<burgestrand>
It’s been known to work every once in a while during full moon.
<burgestrand>
But that’s rare and has never been observed.
<heoa>
Rory_O: rvm and rbenv, can I get them from apt-get?
<asQuirreL>
still no dice with these models
<Rory_O>
rvm is really easy to install, rbenv is harder but more clean.
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<burgestrand>
(if you do try the first one you might need to install the openssl development packages yourself on your system; if you know how to do that and which they are you could try the first option if you’d rather do that)
johnduhart [johnduhart!~quassel@46.105.138.12] has joined #ruby
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
mickn [mickn!~user@unaffiliated/mickn] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
wmoxam [wmoxam!~wmoxam@76-10-155-204.dsl.teksavvy.com] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
johnduhart [johnduhart!~quassel@46.105.138.12] has joined #ruby
<asQuirreL>
burgestrand: yeah it didn't work
<asQuirreL>
and now I'm getting a random error about unbalanced end keywords
<burgestrand>
asQuirreL: didn’t work because of the unbalanced end?
<asQuirreL>
burgestrand: but it's in application.rb
<asQuirreL>
and it's not unbalanced
<asQuirreL>
it's the stock application.rb
<burgestrand>
you lost me
<asQuirreL>
it's in config.application.rb
<asQuirreL>
config/application.rb
<asQuirreL>
but it's the file that rails generated
<asQuirreL>
I took everything out
<asQuirreL>
I made sure by undoing everything
<burgestrand>
sounds like you broke it, just check it out from git
<asQuirreL>
burgestrand: ...
<asQuirreL>
gah
Boohbah [Boohbah!boohbah@gateway/shell/anapnea.net/x-firrncbflrkzkcyy] has joined #ruby
<shevy>
that is understandable
<shevy>
squirrels aren't the brightest
<asQuirreL>
>.>
<asQuirreL>
I swear I didn't break it :P
jimmy1980 [jimmy1980!~jimmy@112.224.2.116] has joined #ruby
<asQuirreL>
I have a feeling rails is breaking me
<shevy>
hmm
<shevy>
I broke rails :)
<shevy>
I swear I followed the tutorial but suddenly the index page was full with JS exceptions
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
<burgestrand>
asQuirreL: if it was working before, you made some changes, you undid them, and now it does not work
<burgestrand>
asQuirreL: I’m sorry, I cannot see your code, but that does sound like you broke it :p
<asQuirreL>
>.> it does seem like that, doesn't it
<shevy>
yeah
<shevy>
there are indicators
* asQuirreL
promises he is a competent coding squirrel
<shevy>
but we can find a patsy to blame if we all agree on it
<shevy>
a fox perhaps
<asQuirreL>
I've reverted to a better time in Git now anyways
<asQuirreL>
shevy: maybe a goat
<shevy>
hmm git
<shevy>
git does not like me
<asQuirreL>
I hear they're good at scapegoating
<asQuirreL>
shevy: yeah it was a dodgy experience
<shevy>
when git breaks, my ultimate weapon of choice is rm -rf .git
<asQuirreL>
but I'm getting the same error as when I started
<shevy>
which kinda defeats the purpose of versioning history doesn't it?
<asQuirreL>
shevy: it does, yes
<asQuirreL>
I had a painful experience just now, trying to change the position of head
<asQuirreL>
I changed the position
<asQuirreL>
and then I thought that wasn't enough
<asQuirreL>
so I created a new branch
<asQuirreL>
merged the two branches
<asQuirreL>
and tried to push it
<asQuirreL>
and had a minor panic attack when it said everything was up to date
<asQuirreL>
seriously, my computer is trolling me today
<asQuirreL>
I'm on v26 on heroku >.>
<shevy>
lol
<shevy>
I thought you meant your head
<shevy>
then I read branch and thought "wtf, is he a tree"
<mfridh>
I actually read that too
<shevy>
but it makes sense, it's a squirrel after all!
<mfridh>
I imagined him fidgeting in his chair because he had too many acorns in his wallet
<shevy>
hmm
<shevy>
I should do that one day
<shevy>
go to some place and try to pay with acorns
<shevy>
and videotape the resulting look-on-their-faces
<asQuirreL>
shevy: you should have a squirrel costume for added effect
<asQuirreL>
"Heroku receiving push" you're damn straight you are >.> and if you don't work, I'mma make you receive my fist in your face
Mohan [Mohan!~nixh0st@unaffiliated/mohan] has joined #ruby
timonv [timonv!~timonv@140pc227.sshunet.nl] has joined #ruby
camilo [camilo!~camilo@wpa162063.Wireless.McGill.CA] has joined #ruby
<asQuirreL>
I hate rails as well now
<burgestrand>
:p
eugynon [eugynon!~terje@236.80-202-126.nextgentel.com] has joined #ruby
james_cotterill [james_cotterill!~james_cot@host81-135-86-165.range81-135.btcentralplus.com] has joined #ruby
<jbrokc>
i don't even know if this is the right way of going about using conditional ? : expansion in ruby, but does it look right? https://gist.github.com/ca5dd11082a22009a5cb
<asQuirreL>
jbrokc: it's meant to be used inline
<asQuirreL>
it's called the ternary operator
<jbrokc>
asQuirreL: oh yeah that's the name of it
<jbrokc>
damn, okay - thanks
<davidcelis>
asQuirreL: so how'd you fix it?
<casey>
i think that will parse ok...
<asQuirreL>
you can just use an if statement though
<asQuirreL>
davidcelis: well, a whole bunch of things
<casey>
but yes if statement is better
<asQuirreL>
but I ended up moving them to lib
<asQuirreL>
then adding lib to autoload
<asQuirreL>
then adding lib to eager load
<asQuirreL>
now the final step
<casey>
why 'simplify' by making it harder to read
<asQuirreL>
revert to the production environment
<jbrokc>
i know, but just changing one parameter value into 5 lines of code feels dirty
<asQuirreL>
and see if it all still works
<jbrokc>
(true -> false as the third argument to fabricate)
<asQuirreL>
jbrokc: oh right
casey [casey!d0362dbb@gateway/web/freenode/ip.208.54.45.187] has quit [#ruby]