johnnyfuchs has quit [Remote host closed the connection]
nathancahill has joined #ruby
fenicks has quit [Read error: Connection reset by peer]
Wearos has quit [Ping timeout: 256 seconds]
s_e has quit [Read error: Operation timed out]
mediko_ has quit [Read error: Operation timed out]
benweint has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
ravster has left #ruby [#ruby]
bklang has quit [Read error: Operation timed out]
bklang has joined #ruby
s_e has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
jlast has quit [Remote host closed the connection]
Schmidt has quit [Ping timeout: 264 seconds]
mediko has joined #ruby
blackmesa has joined #ruby
mercwithamouth has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 264 seconds]
Schmidt has joined #ruby
<charliesome>
joonty: no it's closed source
louism2wash has quit [Quit: This computer has gone to sleep]
Banistergalaxy has joined #ruby
niklasb has joined #ruby
realDAB has quit [Quit: realDAB]
Astral__ has joined #ruby
Wearos has joined #ruby
barraponto has left #ruby ["Gone."]
kofno has joined #ruby
hanmac2 has joined #ruby
flae has joined #ruby
dayepa has quit [Quit: dayepa]
Astral_ has quit [Ping timeout: 260 seconds]
<flae>
hey guys. anybody got time for a ruby beginner for some ubuntu-specific questions?
<onewheelskyward>
I can try.
emergion has joined #ruby
jonkri has quit [Max SendQ exceeded]
dayepa has joined #ruby
jonkri has joined #ruby
devoldmx has joined #ruby
hanmac2 has quit [Ping timeout: 248 seconds]
xcthulhu has quit [Quit: xcthulhu]
banister`sleepy has joined #ruby
burlyscudd has quit [Quit: Leaving.]
DanKnox is now known as DanKnox_away
PhatBaja has quit [Quit: Leaving.]
emergion has quit [Ping timeout: 260 seconds]
greenleaf108 has joined #ruby
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* Nilium
pats onewheelskyward
<Nilium>
It's okay, trying wasn't good enough, apparently.
<onewheelskyward>
nah flae pm'd instead of asking in the channel. :)
nanoxd has joined #ruby
AndChat| has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rickruby has joined #ruby
flae has quit [Quit: Leaving]
guiocavalcanti has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 276 seconds]
RichardBaker has quit [Quit: RichardBaker]
guiocavalcanti has joined #ruby
<goleldar>
how do i have a class execute a method when initializing?
<onewheelskyward>
put it in the constructor?
ravster has joined #ruby
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guiocavalcanti has quit [Ping timeout: 248 seconds]
benweint has quit [Ping timeout: 264 seconds]
renderful has quit [Remote host closed the connection]
n_blownapart has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
thatRD has joined #ruby
bigoldrock has quit [Ping timeout: 246 seconds]
ntzrmtthihu777 has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
jonkri has quit [Quit: jonkri]
Tricon has joined #ruby
randomautomator has joined #ruby
wmoxam has joined #ruby
xcthulhu has joined #ruby
felixjet has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 240 seconds]
neonlex has joined #ruby
randomau_ has quit [Ping timeout: 264 seconds]
neonlex has quit [Client Quit]
randomautomator has quit [Ping timeout: 268 seconds]
<Lewix>
goleldar: Object.new.methods
amacgregor has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
mushky has joined #ruby
greenleaf108 has quit [Quit: leaving]
tealmage has quit [Remote host closed the connection]
renderful has joined #ruby
greenleaf108 has joined #ruby
tkuchiki has joined #ruby
reactormonk has joined #ruby
mushky has quit [Client Quit]
amacgregor has joined #ruby
mrsolo has quit [Quit: Leaving]
rodrigo has joined #ruby
therod has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
nari has quit [Ping timeout: 264 seconds]
mushky has joined #ruby
fcatojo has joined #ruby
greenleaf108 has quit [Quit: leaving]
teddyp1cker has joined #ruby
greenleaf108 has joined #ruby
Dekade has quit [Remote host closed the connection]
AlSquire has quit [Read error: Operation timed out]
wallerdev has quit [Quit: wallerdev]
mantle has quit [Quit: Connection closed for inactivity]
gstamp has joined #ruby
AlSquire has joined #ruby
teddyp1cker has quit [Ping timeout: 246 seconds]
atyz has joined #ruby
dagnachew has quit [Quit: Leaving]
tjbiddle has quit [Quit: tjbiddle]
cj3kim has quit [Remote host closed the connection]
malkomalko has quit [Ping timeout: 276 seconds]
superscott[8] has quit [Quit: superscott[8]]
i_s has quit [Read error: Connection reset by peer]
Tricon has quit [Quit: Leaving...]
wallerdev has joined #ruby
i_s has joined #ruby
hogeo has joined #ruby
niklasb has quit [Ping timeout: 256 seconds]
chxane has joined #ruby
malkomalko has joined #ruby
Tricon has joined #ruby
Astral__ has quit [Read error: Connection reset by peer]
Astral__ has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
yshh has joined #ruby
vlad_starkov has joined #ruby
<pontiki_>
that executes after the new, i.e. after initialize is done
Bry8Star{T2 has joined #ruby
<pontiki_>
just put whatever code you want to run during initialization in the initialize method for the class
ilyam has quit [Quit: ilyam]
twoism has joined #ruby
sepp2k has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 256 seconds]
hanmac2 has joined #ruby
wallerdev has quit [Quit: wallerdev]
Lewix has quit [Remote host closed the connection]
hanmac2 has quit [Read error: Operation timed out]
pkrnj has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
ssvo has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 268 seconds]
Davey has joined #ruby
chxan3 has joined #ruby
ravster has quit [Quit: Leaving.]
Xiti has quit [Quit: Leaving]
pkrnj has joined #ruby
Xiti has joined #ruby
chxane has quit [Ping timeout: 276 seconds]
chxan3 has quit [Client Quit]
chxane has joined #ruby
malkomalko has quit [Remote host closed the connection]
blitz has quit [Quit: This computer has gone to sleep]
Anarch has joined #ruby
ilyam has joined #ruby
Solnse has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
joast has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
atyz has quit [Quit: Leaving...]
chrisja has quit [Quit: leaving]
guiocavalcanti has joined #ruby
guiocavalcanti has quit [Client Quit]
nfk has quit [Quit: yawn]
Kruppe has quit [Remote host closed the connection]
goleldar has quit [Ping timeout: 256 seconds]
eka has quit [Quit: Computer has gone to sleep.]
narcan has quit [Quit: Leaving...]
goleldar has joined #ruby
choobie has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
ilyam has quit [Quit: ilyam]
anonymuse has joined #ruby
splittingred has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
Davey has quit [Ping timeout: 264 seconds]
splittingred has quit [Client Quit]
cj3kim has joined #ruby
hogeo_ has joined #ruby
mushky has quit [Quit: mushky]
sevenseacat has joined #ruby
dmiller has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
greenleaf108 has quit [Quit: leaving]
atyz has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
greenleaf108 has joined #ruby
RichardBaker has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
RichardBaker has quit [Client Quit]
smathieu_ has quit [Remote host closed the connection]
RichardBaker has joined #ruby
narcan has joined #ruby
intuxicated has quit [Ping timeout: 264 seconds]
thinkiny has joined #ruby
intuxicated has joined #ruby
cj3kim has quit [Ping timeout: 268 seconds]
nari has joined #ruby
Voodoofish4301 has quit [Quit: Leaving.]
narcan is now known as narcan_
v0n has quit [Ping timeout: 276 seconds]
narcan_ is now known as narcan
hasrb has joined #ruby
xybre has quit [Ping timeout: 240 seconds]
Davey has joined #ruby
Marsthemanwithth has quit [Ping timeout: 264 seconds]
amacgregor has quit [Ping timeout: 240 seconds]
xybre has joined #ruby
xybre has joined #ruby
xybre has quit [Changing host]
amacgregor has joined #ruby
thinkiny has quit [Quit: Leaving]
kvda has joined #ruby
heftig has quit [Quit: Quitting]
<kvda>
is there a good static site generator with GUI editing support?
<kvda>
or a minimalist wiki?
thinkinginy has joined #ruby
<popl>
kvda: crossposter
smathieu has joined #ruby
<kvda>
popl, haha, are you referring to me asking the same question in #python?
<kvda>
are you insecure or something?
<popl>
huh?
adeponte has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
<pontiki_>
kvda: do you care what language it's implemented in?
<r0bglees0n>
kvda: no youre just paranoid
<popl>
what would that have to do with anything?
<kvda>
ah right, pardon me
<popl>
nope
<popl>
well ok
viszu has quit [Quit: Leaving.]
<sevenseacat>
lol
<kvda>
i do apologise
<popl>
only because other people said something
tealmage_ has joined #ruby
<kvda>
you're saying there's a 'crossposter' ruby wiki/ssg?
burlyscudd has joined #ruby
<pontiki_>
something like that wouldn't be all that hard to whip up, would it?
<pontiki_>
say using markdown as the page language
<kvda>
pontiki_, i don't care what's it written in no
ssvo has joined #ruby
Domon_ has joined #ruby
<pontiki_>
there's likely something that can plug in to jekyll
cantonic has quit [Ping timeout: 264 seconds]
cantonic has joined #ruby
<r0bglees0n>
what do you mean by GUI
<kvda>
pontiki_ ah that sounds good. it'll be easier to sell. at the moment the management is talking about drupal
<pontiki_>
kvda, was thinking of a few php-based wiki things
<pontiki_>
but theyy aren't actually static
<r0bglees0n>
because static site generators generally are edited in a text file and compiled when you're finished.
<pontiki_>
run!!
<kvda>
we don't use php anywhere, almost everything else we do
tkuchiki has quit [Remote host closed the connection]
Arya_ has joined #ruby
<kvda>
pontiki_ yes exactly!
<r0bglees0n>
you could easily stick a web editor on a web page that talked to a small ruby web service that'd update the jekyll files on disk, recompile, and maybe redeploy
<kvda>
so yes i could make my own, but it won't look so good when they start calculating time/budget
<kvda>
r0bglees0n, yes but i have to convince other engineers of this too.
<kvda>
it's not just me, in which case yes i you're suggestion sounds good.
tkuchiki has joined #ruby
<r0bglees0n>
the page would request a file, send it to the browser, edit, POST/PUT back(it doesnt really matter for this), and do the deploy
<kvda>
*your
<r0bglees0n>
it would be a sweet setup
<kvda>
r0bglees0n, i agree
<r0bglees0n>
but i guess.. i dont know, for a ruby programmer that is cool
<r0bglees0n>
i would also recommend nanoc over jekyll
burlyscudd has quit [Ping timeout: 248 seconds]
<r0bglees0n>
jekyll is more like for blogs, nanoc is general purpose
<kvda>
r0bglees0n, if this thing exists as software i'd jump on it, but selling this custom solution will not fare well with other people on the team
<r0bglees0n>
that should be "content": to parse as JSON.
<kvda>
you don't need to psuedo-code it for me, but thanks.
Astral__ has quit [Read error: Connection reset by peer]
<r0bglees0n>
it doesnt even need to know about nanoc
narcan has joined #ruby
<r0bglees0n>
ideally it wouldn't at all
<r0bglees0n>
so i wouldnt write it as a nanoc module
Astral__ has joined #ruby
<r0bglees0n>
i might write a nanoc compiler as a module to the service or something, if that was needed
<kvda>
and he's off...
<popl>
kvda: what side of the bed do you sleep on?
<popl>
kvda: let's spoon
<kvda>
that's the joke?
nanoxd has joined #ruby
<kvda>
pop your 2nd collar higher bro
<pontiki_>
kvda: how would your coworkers/boss feel if you did this on your own time?
<kvda>
pontiki_ I'd have to justify it. For this project I don't see many good justification that I could present.
mary5030 has quit [Remote host closed the connection]
<r0bglees0n>
um
<r0bglees0n>
good technology?
<r0bglees0n>
does that matter anymore
<pontiki_>
justify how you spend your time?
<popl>
kvda: spooning is serious business
mary5030 has joined #ruby
<r0bglees0n>
i think theyd be impressed, if anything
<kvda>
popl, your jokes are not funny
<popl>
who is making jokes?
<kvda>
r0bglees0n, you might be a little unexperienced here?
<r0bglees0n>
why?
<pontiki_>
where is "here"?
henn has quit [Ping timeout: 264 seconds]
<kvda>
managers are not impressed by technology at all
<r0bglees0n>
it really depends how the company is built
nanoxd has quit [Client Quit]
<kvda>
in a startup this might work
<r0bglees0n>
at some companies managers are developers
<kvda>
r0bglees0n, but they still have balance 'managing' and 'developing', so they'll push for good tech of course, but not a complete in house solution to every problem.
nanoxd has joined #ruby
radic__ has joined #ruby
<pontiki_>
how strong is the requirement for "static"?
<kvda>
pontiki_ here in my case is a large tech corporation
<pontiki_>
i've worked (many years) in one large tech corp, and managers varied all over the place
<r0bglees0n>
kvda: its funny, because the large tech corporation will probably roll out a PHP solution
<pontiki_>
but in your particular chain, obviously not at all
<kvda>
pontiki_ not very, i like the model because it doesn't require a db
<r0bglees0n>
it seems weird/wrong :/
wmoxam has quit [Ping timeout: 246 seconds]
tommyvyo has quit [Ping timeout: 268 seconds]
KillerFox has joined #ruby
<kvda>
r0bglees0n, not true, they role out many different things, depending on the company
<pontiki_>
kvda: how about a wiki that uses flat files? yes, written in php! \o/
<popl>
kvda: three points of contact
<kvda>
facebook is the only one that does PHP seriously as far as im aware
<popl>
kvda: how about it?
zeropx has quit [Quit: zeropx]
DanKnox_away is now known as DanKnox
<r0bglees0n>
kvda: yeah, there's not complete truth to what i said, but i think it probably happens.
<pontiki_>
how about one written mostly in backbone.js that also uses flat files, in this case stored on Dropbox?
<r0bglees0n>
you'd expect a tech company with any pride to try not use something that's a pile of crap, but if you're just outsourcing a problem i guess it doesnt matter
smathieu_ has joined #ruby
<kvda>
r0bglees0n, again this is just not how things work
smathieu_ has quit [Remote host closed the connection]
tommyvyo has joined #ruby
<kvda>
corporations are multi-dimensional, they don't have one view on anything
radic_ has quit [Ping timeout: 268 seconds]
asteve has joined #ruby
<r0bglees0n>
yeah, i dont know
<kvda>
apple 'appeared' to have one for a while, that's completely due to jobs though
haxrbyte has quit [Ping timeout: 248 seconds]
smathieu_ has joined #ruby
<kvda>
there's a difference between 10 and 10,000 people that's not hard to discern :)
<r0bglees0n>
i guess i'm thinking of companies who solve problems with stuff like magneto, there's no appreciation of the underlying technology but just that it solves the problem
<r0bglees0n>
usually small companies
<kvda>
r0bglees0n, with that you're right, but they're running their business on very tight margin, desperately trying to make a profit
smathieu has quit [Ping timeout: 240 seconds]
atyz has quit [Quit: Leaving...]
nanoxd has quit [Ping timeout: 256 seconds]
<kvda>
they can't allow people to implement custom solutions because they're flop, they need to sell whatever works… quickly
<kvda>
*they will flop
hanmac has joined #ruby
Gooder has joined #ruby
<r0bglees0n>
yeah, true
<r0bglees0n>
its kind of a con though
<r0bglees0n>
you're selling crap
wmoxam has joined #ruby
sqd has joined #ruby
smathieu_ has quit [Remote host closed the connection]
<kvda>
you'd wouldn't be interested in how the finance/banking world works then…
ffio has joined #ruby
smathieu has joined #ruby
<popl>
why?
Spami has quit [Quit: This computer has gone to sleep]
smathieu_ has quit [Remote host closed the connection]
robustus has joined #ruby
smathieu has joined #ruby
<kvda>
thanks all, bye
kvda has left #ruby ["x___x"]
nanoxd has joined #ruby
codesoda has joined #ruby
smathieu_ has joined #ruby
<popl>
nobody likes spooning with strangers from the internet. :(
<pontiki_>
nobody likes spooning with strangers from the internet. ***\o/***
ffranz has quit [Quit: Leaving]
Tricon has joined #ruby
sqd has quit [Quit: sqd]
Lewix has joined #ruby
<popl>
pontiki_: what's that emoticon mean?
joast has joined #ruby
<pontiki_>
cheering
gildo has quit [Ping timeout: 240 seconds]
gchristensen has left #ruby ["WeeChat 0.4.0"]
rickruby has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
varfoo has joined #ruby
<popl>
pontiki_: I guess that's how you get pink eye.
<pontiki_>
that or sharing eye brushes
<popl>
who brushes their eyes?
<popl>
weirdo
<pontiki_>
>.>
<pontiki_>
ta :)
v0n has joined #ruby
atyz has joined #ruby
Lewix has quit [Ping timeout: 268 seconds]
malkomalko has joined #ruby
sleetdrop has joined #ruby
Myrth has joined #ruby
jenrzzz has joined #ruby
Vivekananda has quit [Ping timeout: 260 seconds]
hasrb has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
louism2wash has joined #ruby
DeanH has joined #ruby
malkomalko has quit [Ping timeout: 264 seconds]
<louism2wash>
How does Ruby keep a reference to the various modules and classes defined in an application? When you say 'include SomeModule' is there some sort of directory for where each module/class is kept in memory? Thanks.
bondo| has quit [Read error: Connection reset by peer]
malkomalko has joined #ruby
<pontiki_>
i think you want to start reading the ruby source code, louism2wash
cj3kim has joined #ruby
<louism2wash>
pontiki_: I'm sure that would help
<pontiki_>
someone here *might* know that
<louism2wash>
pontiki_: Any chance you can give high-level summary?
cj3kim has quit [Read error: Connection reset by peer]
<pontiki_>
but jeepers that is way internals
<pontiki_>
i have not a clue
<pontiki_>
what do you need such information for?
havenwood has quit [Remote host closed the connection]
<louism2wash>
pontiki_: I'm just trying understand what is going on with require/include statements. It seems like require just loads the file at runtime and then the various classes and modules get included in the application stack somehow.
henn has joined #ruby
dayepa has quit [Ping timeout: 256 seconds]
<pontiki_>
ah
<pontiki_>
require loads the code
<pontiki_>
include maps the module's methods and such into the class it's included in
<pontiki_>
what more do you need to know than that?
<pontiki_>
if you're coming from php, include does something completely different than require
<pontiki_>
as opposed to in php they're basically the same thing, modulo guarding re-includes
Davey has quit [Quit: Computer has gone to sleep.]
anay has joined #ruby
<sevenseacat>
only diff in php is that require will give you a fatal error if the file isnt found
<pontiki_>
if that is where you're coming from, break that association
<sevenseacat>
include will just shrug and move on
ewnd9 has joined #ruby
<pontiki_>
that's what i meant about the guarding
cads has joined #ruby
Boohbah_ is now known as Boohbah
<pontiki_>
in ruby, require has nothing to do with include
<pontiki_>
however, you may have to require a module's source code to include it, they are completely separate things
Boohbah is now known as Guest75533
rfizzle has joined #ruby
QKO has quit [Read error: Operation timed out]
Guest75533 has quit [Changing host]
Guest75533 has joined #ruby
Guest75533 has quit [Changing host]
Guest75533 has joined #ruby
<louism2wash>
pontiki_: thanks for the clarification. I'm just trying to get a little deeper with Ruby. Trying to understand the internals a bit more
LucidDreamZzZ has joined #ruby
<rfizzle>
Anyone know how to fix the issue with passenger and rufus. Passenger kills rufus scheduled tasks in my sinatra application.
cha1tanya has joined #ruby
cha1tanya has joined #ruby
Guest75533 is now known as Boohbah_
<rfizzle>
Running nginx
dayepa has joined #ruby
tealmage_ has quit [Remote host closed the connection]
QKO has joined #ruby
LucidDreamZzZz has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Remote host closed the connection]
bigmac has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
Arya_ has joined #ruby
hanmac1 has quit [Ping timeout: 264 seconds]
machuga is now known as machuga|away
codesoda has joined #ruby
nisstyre has quit [Quit: Leaving]
thecodethinker has joined #ruby
sleetdrop has quit [Read error: Connection reset by peer]
<thecodethinker>
What is the '@' symbol before variables in a class? What does it do?
<popl>
thecodethinker: look up 'instance variable'
felixjet has joined #ruby
<thecodethinker>
popl: Is there any reason to use them rather than normal vars... other than memory things
platforms has joined #ruby
<sevenseacat>
many
xcthulhu has quit [Quit: xcthulhu]
<popl>
thecodethinker: did you look them up?
Wearos has quit [Quit: Leaving]
<popl>
s/them/it/
<thecodethinker>
Should I always use them rather than normal vars in a class?
Pandee has quit [Ping timeout: 260 seconds]
<sevenseacat>
take that as a no
<popl>
oh well
<thecodethinker>
popl: I did.... I don't really understand though they are created when they are defined
<thecodethinker>
I did -_-
<popl>
try reading it until you understand it
xcthulhu has joined #ruby
<sam113101>
use them whenever you want your object to change its own state
<popl>
because that's how you learn
<popl>
or at least one way you learn
kevinykchan has joined #ruby
thatRD has quit [Quit: thatRD]
louism2wash has quit [Quit: This computer has gone to sleep]
<sam113101>
read a book
<thecodethinker>
-_- I am reading the book of ruby... came across it.. I don't really understand the use of them. What do they do that normal vars don't?
<sevenseacat>
thecodethinker: persist outside a method.
xcthulhu has quit [Client Quit]
<thecodethinker>
sevenseacat: why not just declare a var before defining the method in the class?
optimusprimem has quit [Ping timeout: 245 seconds]
<sevenseacat>
because you cant just declare vars in classexsd
<sevenseacat>
classes
<thecodethinker>
oh
sleetdrop has joined #ruby
<thecodethinker>
okay... that makes sense then
malkomalko has quit [Remote host closed the connection]
<sam113101>
wouldn't it create variables on the class object?
<sam113101>
nah
thecodethinker has left #ruby [#ruby]
tehTinMan has joined #ruby
<tehTinMan>
So I heard this ruby was a thing...
mansi has joined #ruby
<sevenseacat>
tis indeed a thing.
<r0bglees0n>
not really
<r0bglees0n>
its virtual
<tehTinMan>
a virtual thing?
<r0bglees0n>
denysonique: B::Bar.first_name
<r0bglees0n>
constant lookup is finding A::Bar
cortexman has quit [Quit: Leaving.]
<r0bglees0n>
you need to fully qualify it
<tehTinMan>
anyone here ever try lolcode?
x1337807x has joined #ruby
DocEternal has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<sevenseacat>
haha lolcode
<tehTinMan>
HAI
louism2wash has joined #ruby
<sevenseacat>
KTHXBYE
<DocEternal>
Hi, I'm trying to work out a database query I have, and can't get it working. Can anyone point out a good place I can ask questions about my rails code?
alvaro_o has quit [Quit: Ex-Chat]
<sevenseacat>
in #rubyonrails ? :)
<r0bglees0n>
#rubyonrails
<tehTinMan>
best language ever
<DocEternal>
thanks
<tehTinMan>
other than ruby ofcourse
kid_icarus has joined #ruby
<tehTinMan>
I HAZ A KITTEH ITS 12
<r0bglees0n>
tehTinMan: i hope i dont have to /ignore you
<tehTinMan>
r0bglees0n: I have a point to this.... I'm making a lolcode interpreter in ruby :D
<DocEternal>
Ok, well I'll try here first. xD
cj3kim has joined #ruby
<r0bglees0n>
tehTinMan: ah nice
<r0bglees0n>
how is it?
<r0bglees0n>
DocEternal: ok go ahead ask
<tehTinMan>
r0bglees0n: just started it today. Working on the internals. No parser yet :(
<r0bglees0n>
if someone knows im sure they'll answer
<DocEternal>
I am trying to query a database and get return entries that match a set of parameters. The point is to get the timestamp of each and compare it to the one before it to get the duration between them.
cj3kim has quit [Read error: Connection reset by peer]
<DocEternal>
I can't seem to get the syntax right on it.
<r0bglees0n>
distance between time: DateTime#-
mansi has quit [Remote host closed the connection]
<DocEternal>
I know the distance calc. The problem is comparing the entry to the one before it.
charliesome has quit [Read error: Connection reset by peer]
<r0bglees0n>
but it has a lot of great tooling and is very hackable
<DocEternal>
Actually, one more question. The comparison actually needs to be made from one entry to the previous entry (so the first point in the db won't have a duration value). How would that change that?
gstamp has quit [Read error: Connection reset by peer]
<r0bglees0n>
tehTinMan: never really benchmarked rubinius's perf. on computation like that
<tehTinMan>
hm... alright then... just wondering
<r0bglees0n>
DocEternal: don't understand your question, the entires should be ordered by time?
<r0bglees0n>
entries*
x1337807x has quit [Ping timeout: 248 seconds]
ehaliewicz has quit [Ping timeout: 268 seconds]
dmiller has quit [Remote host closed the connection]
<DocEternal>
the entries are ordered by time, but the duration between entry 1 and entry 2 would be the value for entry 2's duration, between 2 & 3 entry 3's duration, etc.
osvico has quit [Ping timeout: 240 seconds]
tehTinMan has quit [Quit: leaving]
gstamp has joined #ruby
burlyscudd has joined #ruby
deeepblue_ has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
emergion has quit [Ping timeout: 260 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DocEternal>
If that makes sense
ehaliewicz has joined #ruby
ssvo has quit [Ping timeout: 248 seconds]
<bnagy>
you can use each_cons(2) for that kind of stuff
ckrailo has quit [Quit: Computer has gone to sleep.]
Es0teric has quit [Quit: Computer has gone to sleep.]
hanmac1 has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
<goleldar>
is there a way to initialize a string if it has not been already and then append to it if it has in one line?
himsin has joined #ruby
ffio has quit [Ping timeout: 256 seconds]
spectre has joined #ruby
cj3kim has quit [Remote host closed the connection]
<goleldar>
or is it common to just initialize a string first and then append to it in an each block
<sevenseacat>
what are you actually trying to do
sayan has joined #ruby
<DocEternal>
Hey, I'm trying to get some code working, and any time I try to run it I am getting an error that says "Unitialized constant {mycode} (NameError)". Any idea what I can do here?
<pontiki_>
although that's not as definitive as the first
zomgbie has joined #ruby
Al_ has quit [Client Quit]
<seriously_random>
pontiki_, I am actually sure myself. I've got module Enumerable that has def function which needs to respond to has, range, array and iterator. All work except iterator. (Hope that is understandable)
gstamp has quit [Quit: Computer has gone to sleep.]
<seriously_random>
pontiki_, *not sure, lol
<seriously_random>
pontiki_, needs to respond to hash*
kaspergrubbe has joined #ruby
<Nilium>
wat
tonini has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<canton7>
"function which needs to respond to hash, range, ... ". come again? Do you mean the function has to take those as its argument\?
fwchld has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banghouse has joined #ruby
banghouse is now known as Guest90544
codesoda has quit [Remote host closed the connection]
<Nilium>
I feel like there might be a language barrier involved in this.
tatsuya_o has joined #ruby
<pontiki_>
if they're doing a mixin, i can see it
narcan has joined #ruby
alup has joined #ruby
<canton7>
Do you have to create a new method which can be called on hashes, ranges, etc...? e.g. myhash.mynewmethod
<canton7>
s/have/want
timonv has joined #ruby
intuxicated has quit [Ping timeout: 240 seconds]
<seriously_random>
never mind, is there .is_not?(Array) like there is .is_a(Array)?
<canton7>
!thing.is_a?(Array)
yacks has quit [Ping timeout: 276 seconds]
echevemaster has quit [Quit: Leaving]
i_s has joined #ruby
yacks has joined #ruby
intuxicated has joined #ruby
tatsuya_o has quit [Ping timeout: 268 seconds]
burlyscudd has joined #ruby
threesome has joined #ruby
darkc0met has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
Arya_ has quit [Ping timeout: 256 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
i_s has quit [Ping timeout: 248 seconds]
mahmoudimus has joined #ruby
maxmanders has joined #ruby
_bart has joined #ruby
anildigital is now known as anildigital_away
mklappst_ has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
tonini has joined #ruby
ntus1017 has joined #ruby
ananthakumaran has quit [Read error: Connection timed out]
ananthakumaran has joined #ruby
Arya_ has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
hamed_r has joined #ruby
ybart has joined #ruby
LnL has joined #ruby
codecop has quit [Remote host closed the connection]
Arya_ has quit [Ping timeout: 256 seconds]
jalcine has quit [Excess Flood]
Coffers has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
Soopaman has quit [Quit: Leaving.]
marr has joined #ruby
dEPy has joined #ruby
ewnd9 has quit [Ping timeout: 264 seconds]
axeman- has quit [Remote host closed the connection]
<r0bglees0n>
why would you use map if you didn't need to?
<e-dard>
r0bglees0n: well that's exactly my point
<e-dard>
I wanted to check
<r0bglees0n>
well, just use each if you're not doing anything with the return value
<e-dard>
(someone has changed my each to a map in a code-review)
<jlebrech>
i think there's a problem with my rspec setup. because stuff that should work doesn't
<r0bglees0n>
e-dard: really? and disregarded the return value?
<r0bglees0n>
are you sure it's not map!?
adkron has joined #ruby
<r0bglees0n>
jlebrech: can you define doesn't work?
eaWPq4nU has quit [Ping timeout: 240 seconds]
<r0bglees0n>
oh
<r0bglees0n>
youre not in an it() or specify()
<jlebrech>
r0bglees0n, doesn't test. all i want is a failure
mansi has quit [Read error: Operation timed out]
<r0bglees0n>
youre not inside a test
<r0bglees0n>
youre in a describe block
<r0bglees0n>
wrap it in it/specify do
<e-dard>
r0bglees0n: they didn't disregard the return. I do foo.each do /// end; foo.join(", "). They change to foo.map do /// end.join(", ")
<jlebrech>
r0bglees0n, ok
<r0bglees0n>
e-dard: those two pieces of code dont do the same thing
<e-dard>
I don't like chaining things on to end either. Seems weird
<r0bglees0n>
so, the behavior has changed
<r0bglees0n>
someone is wrong
<e-dard>
r0bglees0n: well I'm right because I wrote the damn thing in the first place.
<sevenseacat>
of course you are.
<e-dard>
but I suppose my test coverage could be short if they have changed the behaviout
adkron_ has quit [Ping timeout: 256 seconds]
axeman- has quit [Ping timeout: 259 seconds]
<e-dard>
r0bglees0n: based on that code only, why do you think the behaviour is different? I don't see it
<r0bglees0n>
i dont know if its changed or not, it depends on the content of the map block, but if the map block returns anything other than the contents of self(the array), the behavior is no longer the same.
arturaz has joined #ruby
<jlebrech>
r0bglees0n, ok it kinda fixed it. now including the module gives me: can't convert Module into String
axeman- has joined #ruby
<jlebrech>
r0bglees0n, wait
<jlebrech>
:P
<jlebrech>
r0bglees0n, thanks for the help
<r0bglees0n>
ok youre welcome
<e-dard>
r0bglees0n: ah I see. Basically the contents of the map block manipulates the contents of foo, in the same way the contents of the each block does
<r0bglees0n>
e-dard: and if the block does return the contents of self, using map doesn't make much sense.
<r0bglees0n>
you should never manipulate an array you're iterating over
<r0bglees0n>
how do you manipulate it
<e-dard>
I don't manipulate the array. It's the contents of the array
<r0bglees0n>
okay
<r0bglees0n>
and what does map return
<r0bglees0n>
do you mutate the contents instead?
<e-dard>
The array it's acting on
<r0bglees0n>
obviously it returns an array, but with what elements?
<e-dard>
r0bglees0n: as I understand it, map will be copying all the elements in foo, no?
<r0bglees0n>
no, not neccesarily
<e-dard>
r0bglees0n: one moment I will do an example
<denysonique>
r0bglees0n: I am writing a mini web scraping framework. Like 34 needs to be 'dynamic' as there will be many ExampleCom type of modules e.g. GoogleCom etc which include a Page class inherited from Scraper::Page
<Spooner>
seriously_random, Because you are not changing the object @list itself. You are reading it and altering it (you actually just want attr_reader).
<Spooner>
Sorry, I mean you are not changing the value of @list itself. You are modifying the object that is stored in @list.
Desert_eagle has joined #ruby
cj3kim has joined #ruby
vlad_starkov has joined #ruby
tk has joined #ruby
Nanuq has joined #ruby
tk is now known as Guest57104
sebastianb has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
eaWPq4nU has joined #ruby
maxmanders has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
LucidDreamZzZz has quit [Ping timeout: 240 seconds]
s00pcan has quit [Read error: Operation timed out]
<zzz>
Hi, i' ve a string ending with identical characters, like "Hellooooooo". I' d like to remove the last identical characters from it. I could use chomp in a for cycle, but is there any better why? Maybe chomp has a parameter to remove all or something similar?
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
freeayu has joined #ruby
Domon_ has quit [Remote host closed the connection]
claymore has joined #ruby
cj3kim has quit [Ping timeout: 256 seconds]
francky has quit [Quit: Leaving]
hanmac has joined #ruby
<claymore>
why does "foo".is_a?(String) and false return true?
<Catbuntu>
If in "a.rb" there's "require 'b.rb'" and in b.rb there's "require 'c.rb'", will the things of c.rb be accessible in a.rb?
s00pcan has joined #ruby
hogeo has quit [Remote host closed the connection]
Astral_ has joined #ruby
BashCoder has joined #ruby
BashCoder is now known as platforms_
xcthulhu has joined #ruby
sqd has joined #ruby
kaspergrubbe has quit [Read error: Operation timed out]
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
geekbri has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
<hanmac>
Catbuntu: yes
graydot has quit [Quit: graydot]
<Catbuntu>
hanmac, thanks :)
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
zz_michael_mbp is now known as michael_mbp
Astral__ has quit [Ping timeout: 260 seconds]
freeayu__ has quit [Ping timeout: 264 seconds]
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
jbpros has joined #ruby
alfreddba has joined #ruby
spectre| has quit [Read error: Operation timed out]
alfreddba has quit [Max SendQ exceeded]
niceguyjames has quit [Quit: Computer has gone to sleep.]
alfreddba has joined #ruby
spectre| has joined #ruby
alfreddba has quit [Max SendQ exceeded]
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
QKO has quit [Ping timeout: 268 seconds]
claymore has quit [Ping timeout: 248 seconds]
jibi_ has quit [Quit: .]
<Catbuntu>
Why can't I do something like: class Blah; @var = "String"; end and ten do Blah.var?
<Catbuntu>
Is there any way to create variables already defined inside a class and then accessing them outside
<Catbuntu>
?
QKO has joined #ruby
asobrasil has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
niceguyjames has joined #ruby
vlad_starkov has joined #ruby
mikecmpbll has joined #ruby
<hanmac>
Catbuntu because the variables are hidden from the outside, you need methods to access them
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
<Catbuntu>
And is it possible to avoid that some way?
claymore has joined #ruby
<Catbuntu>
Like making the class Balah inherit from another class with something defined to make variables accessible
tacos1de has quit [Ping timeout: 240 seconds]
chimkan has joined #ruby
<Catbuntu>
Like Rails, you can set "@var = 'blah'" and then just do @var from a view
tonini has quit [Quit: Lost terminal]
alfreddba has joined #ruby
tonini has joined #ruby
alfreddba has quit [Max SendQ exceeded]
nezumi has quit [Ping timeout: 248 seconds]
realDAB has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
tacos1de has joined #ruby
osvico has quit [Ping timeout: 248 seconds]
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
<hanmac>
CatBuntu the current problem is that you does not define @var at an Blah instance but on Blah itself (the class)
alfreddba has joined #ruby
<Catbuntu>
Yep
alfreddba has quit [Max SendQ exceeded]
Mattix has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
kaspergrubbe has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
Spami has quit [Quit: This computer has gone to sleep]
freeayu has joined #ruby
eka has joined #ruby
cj3kim has joined #ruby
amacgregor has quit [Ping timeout: 256 seconds]
huoxito has joined #ruby
chimkan has quit [Ping timeout: 256 seconds]
juo100_ has quit [Quit: juo100_]
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
chimkan has joined #ruby
codecop_ has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
codecop has quit [Read error: No route to host]
ZOGM_ has quit [Remote host closed the connection]
vikhyat has quit [Remote host closed the connection]
anildigital is now known as anildigital_away
bamdad has joined #ruby
Leonin has joined #ruby
mark_locklear has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
emergion has joined #ruby
chase-work has joined #ruby
mneorr has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 268 seconds]
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
ZOGM has joined #ruby
ldnunes has joined #ruby
matthewford has quit [Remote host closed the connection]
<Leonin>
I am uploding image in form and i put link downloadimage it in view every time,suppose i no need to upload at some point so in the view it show an error when i click downloadimage link
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
platforms_ has quit [Remote host closed the connection]
kham has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
alfreddba has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
alfreddba has quit [Max SendQ exceeded]
bamdad has quit [Ping timeout: 276 seconds]
jblack has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
niceguyjames has joined #ruby
<Leonin>
I am uploding image in form and i put link downloadimage it in view every time,suppose i no need to upload at some point so in the view it show an error when i click downloadimage link
<Leonin>
hi every on e
dangerousdave has joined #ruby
<banister`sleepy>
Leonin: #rubyonrails
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
corehook has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
dawkirst has quit [Quit: Leaving]
ananthakumaran has quit [Read error: Connection timed out]
ananthakumaran has joined #ruby
corehook has quit [Client Quit]
alfreddba has joined #ruby
yshh has joined #ruby
alfreddba has quit [Max SendQ exceeded]
timonv has quit [Remote host closed the connection]
enebo has joined #ruby
freeayu has quit [Ping timeout: 276 seconds]
burlyscudd has joined #ruby
troessner has quit [Read error: Connection reset by peer]
Beoran__ has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
alfreddba has joined #ruby
dawkirst has joined #ruby
alfreddba has quit [Max SendQ exceeded]
Leonin has quit [Quit: Page closed]
lady_lancer has quit [Quit: Page closed]
anildigital_away is now known as anildigital
vikhyat has joined #ruby
Beoran__ has joined #ruby
troessner has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
ZOGM has quit [Remote host closed the connection]
tricon_ has joined #ruby
LnL7 has joined #ruby
sailias has joined #ruby
burlyscudd has quit [Ping timeout: 268 seconds]
alfreddba has joined #ruby
timonv has joined #ruby
alfreddba has quit [Max SendQ exceeded]
Tricon has quit [Ping timeout: 264 seconds]
LnL has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
banister`sleepy has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
mneorr has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
cjs226 has quit [Ping timeout: 246 seconds]
mklappstuhl has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
AkashicLegend has joined #ruby
Drakevr has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
xcv has quit [Remote host closed the connection]
withnale has quit [Ping timeout: 252 seconds]
xavier23 has joined #ruby
alfreddba has joined #ruby
b0oh has joined #ruby
Guest42352 has quit [Quit: Leaving]
alfreddba has quit [Max SendQ exceeded]
withnale has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
nathancahill has joined #ruby
juo100_ has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
canton7 has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
anay has joined #ruby
yalue has joined #ruby
alfreddba has joined #ruby
anay has quit [Remote host closed the connection]
alfreddba has quit [Max SendQ exceeded]
realDAB has quit [Quit: realDAB]
ewnd9 has quit [Read error: Operation timed out]
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
anonymuse has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
codesoda has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
ewnd9 has joined #ruby
ntus1017 has quit [Remote host closed the connection]
wsterling has joined #ruby
cjs226 has joined #ruby
anildigital is now known as anildigital_away
sqd has quit [Quit: sqd]
yshh has joined #ruby
<_droid>
cool thx
fernandoaleman has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.1]
blackmesa has joined #ruby
rupertl has quit [Remote host closed the connection]
<Skaflem>
whois mauBot
blackmesa has quit [Client Quit]
Skelz0r has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
ananthakumaran has quit [Quit: Leaving.]
Zeeraw has quit [Quit: Computer has gone to sleep.]
tomzx_mac has joined #ruby
devoldmx has joined #ruby
renderfu_ has quit [Remote host closed the connection]
maz-dev has joined #ruby
pentameter has joined #ruby
fuhgeddaboudit has joined #ruby
tealmage has joined #ruby
chihhsin has quit [Quit: leaving]
grumpwork has joined #ruby
chihhsin has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
tealmage has quit [Remote host closed the connection]
nathancahill has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
wmoxam has joined #ruby
wsterling has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 240 seconds]
kkh has quit [Quit: Good bye!]
blackmesa has joined #ruby
burlyscudd has joined #ruby
hamed_r has quit [Quit: Ex-Chat]
burlyscudd has quit [Client Quit]
blackmesa has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 268 seconds]
fredjean has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
graydot has joined #ruby
xcv has quit [Remote host closed the connection]
freeayu has joined #ruby
Skelz0r has joined #ruby
ntus1017 has joined #ruby
burlyscudd has joined #ruby
cha1tanya has quit [Ping timeout: 248 seconds]
blackmesa has quit [Client Quit]
xcthulhu has joined #ruby
vikhyat has quit [Remote host closed the connection]
blackmesa has joined #ruby
r0bglees0n has joined #ruby
tris has joined #ruby
baordog has joined #ruby
blackmesa has quit [Client Quit]
ehc has joined #ruby
freerobby has joined #ruby
havenwood has quit [Remote host closed the connection]
tealmage has joined #ruby
fernandoaleman has left #ruby [#ruby]
d3 has joined #ruby
denver has joined #ruby
chihhsin has quit [Quit: leaving]
noname001 has joined #ruby
cj3kim has joined #ruby
devoldmx3 has joined #ruby
ravster has joined #ruby
QKO has quit [Read error: Operation timed out]
pranny has joined #ruby
pranny has quit [Remote host closed the connection]
kpshek has joined #ruby
chihhsin has joined #ruby
cmarques has joined #ruby
atyz has joined #ruby
Solnse has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
gazarsgo has joined #ruby
chihhsin has left #ruby [#ruby]
khismetix has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Ping timeout: 264 seconds]
noname001 has quit [Ping timeout: 264 seconds]
wsterling has joined #ruby
QKO has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
grumpwork is now known as pimpwork
jlast has joined #ruby
pimpwork is now known as pipework
chihhsin has joined #ruby
chihhsin has quit [Client Quit]
AkashicLegend has quit [Quit: AkashicLegend]
atyz has quit [Ping timeout: 246 seconds]
chimkan has quit [Ping timeout: 268 seconds]
havenwood has joined #ruby
chimkan has joined #ruby
trepidaciousMBR has quit [Ping timeout: 268 seconds]
trepidaciousMBR_ has joined #ruby
graydot has quit [Quit: graydot]
Al_ has joined #ruby
atyz has joined #ruby
<_droid>
and another question: I'm doing the tutorials for Rails for zombies and currently doing the model part where they are using "ActiveRecords::Base". As I remember from other programming languages that need to access databases you need a username and password in order to authenticate with mysql for instance.But in the clip, for the reason of simplicity, doesn't mention a username and password. So where is it actually where you authenticate with ruby to a databa
<ghr>
Anyone know good examples of libraries that map to the filesystem? Here's a basic use case of what I'm trying to do http://pastie.org/8174448
interactionjaxsn has joined #ruby
Solnse has quit []
splittingred has joined #ruby
tonini has quit [Remote host closed the connection]
<rickruby>
how can I do sudoku_rows[row_index][cell_index] = possible_cell_values[row_index][cell_index]
krawchyk has joined #ruby
<andrew565>
Ruby's built-in Dir and File objects (and their I/O superclass) are pretty decent.
<rickruby>
so that instead of getting an array returned
tealmage has quit [Remote host closed the connection]
<rickruby>
I get the value of that array (which is an integer)
<andrew565>
RIO used to be pretty good too, ghr.
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
jerius has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
Tricon has joined #ruby
<ghr>
andrew565 yeah, I use File/Dir under the hood (to actually save/open the files) but I'm more interested in how one instantiates objects with the correct data
burlyscudd has quit [Quit: Leaving.]
DocEternal has quit [Quit: Page closed]
spike|spiegel has quit [Quit: WeeChat 0.4.1]
<rickruby>
nevermind, figured it out! :) sudoku_rows[row_index][cell_index] = possible_cell_values[row_index][cell_index].to_s.to_i
<nikeita>
fryguy what you mean "forget how try returns things"
brennanMKE has joined #ruby
codezombie has joined #ruby
<codezombie>
when using Net::HTTP.post_form to make multiple requests to the same URL only the first request is executed. I assume this is caused by caching. Is there a way to disable this behavior? I didn't see any reference to this in the ruby docs.
<fryguy>
nikeita: nothing
<fryguy>
codezombie: you assume wrong, show code
<nikeita>
i'm thinking that self with bang operator is superflous, i'm right?
greenleaf108 has joined #ruby
benweint has joined #ruby
<codezombie>
fryguy: one line Net::HTTP.post_form(URI.parse(@url), @credentials)
kid_icarus has joined #ruby
johnnyfuchs has joined #ruby
<realDAB>
nikeita: the bang isn't an operator -- it's part of a method name
<codezombie>
if it's not caching, I can investigate further, I just assumed caching. Thanks.
WhereIsMySpoon_ has quit [Quit: No Ping reply in 180 seconds.]
cj3kim has joined #ruby
WhereIsMySpoon has joined #ruby
<nikeita>
yep, you are right
blackmesa has joined #ruby
<r0bglees0n>
nikeita: you don't need to use self unless you have a local variable with the same name. you're doing a read, so it's not the same as foo = "bar" / self.foo = "bar".
greenlea1108 has joined #ruby
ewag has quit [Remote host closed the connection]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
yxhuvud2 has quit [Ping timeout: 248 seconds]
keepguessing has joined #ruby
<nikeita>
so if i understand i do not need to use self because i'm not assigning but work on the object itself with capitalize! method
vlad_starkov has joined #ruby
<keepguessing>
Hi I keep installing gems with the command gem install x, Is there a way to install multiple gems with a gem install
io_syl has quit [Quit: io_syl]
cj3kim has quit [Ping timeout: 248 seconds]
<bnagy>
gem install x y z
<r0bglees0n>
nikeita: yes
<keepguessing>
bnargy how about form a file?
kpshek has joined #ruby
voodoofish has quit [Ping timeout: 246 seconds]
<keepguessing>
bnagy: ^^^^^^^^^^^^^^^^^^^
<bnagy>
like.. what, macarena?
<keepguessing>
i do not know macarena
<bnagy>
oh, no more like a conga line I guess
<keepguessing>
like say pip install -r req.file
<bnagy>
da da dah dah dah dah ...
<bnagy>
DAH!
sailias has quit [Ping timeout: 256 seconds]
dash_ has quit [Quit: dash_]
agjacome has joined #ruby
Zeeraw has joined #ruby
<keepguessing>
bnagy: ?
Coolhand_ has joined #ruby
<bnagy>
keepguessing: I guess you might be asking about dependencies? You can do that in your gemspec or with bundler, if you like that kind of thing
acrussell has joined #ruby
<keepguessing>
bnagy: say if I wish to install x number of files form a list of gems which are stored in a file how do I do that?
vlad_starkov has quit [Ping timeout: 240 seconds]
<zachrab_>
is there there a way to render a no method error to false?
<keepguessing>
bnagy: gemspec is a gemlist file?
<zachrab_>
i have a condition which is usual met with one class instance but sometimes may be another class in which case renders a no method error
<r0bglees0n>
zachrab_: no, fix the NoMethodError.
<r0bglees0n>
dont hide bugs like that
<r0bglees0n>
terrible idea
<zachrab_>
r0bglees0n: i am working with ruby gems
<zachrab_>
i dont want to mess with a lot of code
Coolhand has quit [Ping timeout: 268 seconds]
ybart has quit [Quit: ybart]
<r0bglees0n>
if you're trying to commit to rubygems you should probably take the long way and the good approach because they just won't accept it otherwise.
burlyscudd has quit [Read error: Connection reset by peer]
<bnagy>
a = some_operation rescue false
burlyscudd has joined #ruby
<r0bglees0n>
please dont do that
amacgregor has joined #ruby
<r0bglees0n>
thats just not a NoMethodError
<r0bglees0n>
thats anything
<r0bglees0n>
and rubygems wont accept it
<bnagy>
.. wait.. you're trying to commit to rubygems??
<bnagy>
hahaha
noop has quit [Ping timeout: 240 seconds]
agjacome has quit [Ping timeout: 268 seconds]
seriously_random has quit [Quit: Leaving]
BlakeRG has joined #ruby
rdark has quit [Ping timeout: 248 seconds]
Appineer has joined #ruby
xcv has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
kpshek has quit []
<hanmac>
zachrab_ it "raises" an exception … if it trys to "render" an error then something is very wrong …
rdark has joined #ruby
<hanmac>
also look at #method_missing … but you need to be careful with this
<havenwood>
jonjo: Open the file called 'Gemfile' and change your source to 'https://rubygems.org'.
razi has joined #ruby
<BlakeRG>
I'm using the Mail gem - when i run a Mail.deliver block how to do know the email delivery was a success? it's wrapped in a begin / rescue block so i know if there's an exception thrown just not if the delivery was a success.
benweint has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood>
BlakeRG: When you create your own errors, inherit from StandardError instead of Exception as well.
codecop has joined #ruby
Al_ has joined #ruby
<Spooner>
It is usual to just put the code you'd put in "else" after the line you think will fail. Actually, I think else makes perfect sense, to ensure that only "dangerous" code goes in the main block.
Al_ has quit [Client Quit]
<bnagy>
no.
nikeita has quit [Quit: sleep]
bitZero__ has joined #ruby
nemesit|znc has quit [Ping timeout: 264 seconds]
threesome has quit [Read error: Operation timed out]
<bnagy>
sorry, no, to the second half of the sentence :P
<BlakeRG>
bnagy: and waxjar can you link me to a code snippet that shows how to properly handle the situation where i'd want to check that there was not an exception thrown without using the else?
<bnagy>
begin stuff; more stuff; rescue; # stuff didn't stuff; end
<waxjar>
BlakeRG: just put the rescue clause at the end
<waxjar>
if an exception is raised, it won't execute the lines after it
Solnse has joined #ruby
<waxjar>
you could put those lines in an else block, if you like
<waxjar>
bnagy: what's so bad about it?
<bnagy>
it's awful
<waxjar>
you're not very convincing :P
<bnagy>
it's never used
<BlakeRG>
waxjar: would you mind posting up a quick example? sorry, i'm coming from a long background of bad curly brace languages...
hasrb has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
<bnagy>
nobody reading it will be expecting to see the control flow broken up like that
Dave has joined #ruby
cr3 has joined #ruby
<havenwood>
i think an argument against `else` is that exceptions are exceptional, and shouldn't be used for flow control
<BlakeRG>
also, you guys/gals are saying it's bad to just catch the generic Exception class right? i do understand that
<bnagy>
BlakeRG: did that twice
momomomomo has joined #ruby
Dave is now known as Guest1731
alex__c2022 has joined #ruby
<cr3>
where can I find documentation about the various %... possibilities?
<bnagy>
just put all your non-exceptional code in the first clause of the block
<havenwood>
then again, we know to look at `ensure`, just `else` being seldom used seems confusing
<bnagy>
cr3: you could be looking for either String#unpack or Array#pack?
<havenwood>
I do think `MyError = Class.new(StandardError)` is nicer than `class MyError < StandardError; end`.
noname001 has quit [Ping timeout: 240 seconds]
<havenwood>
But rarely see the former.
b0oh has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 256 seconds]
<bnagy>
well I barely see custom errors
<realDAB>
havenwood: are you a gregory brown disciple? (he recommends that form too)
bitZero__ has quit [Quit: leaving]
ebanoid has joined #ruby
fredjean has joined #ruby
kham has joined #ruby
<BlakeRG>
bnagy: sorry - i's hard for my to parse one-liners in my head right now, like i said i'm a total newbie - can you pastebin it?
bitZero__ has joined #ruby
sambao21 has joined #ruby
<havenwood>
realDAB: maybe his use is where I saw it, dunno
<bnagy>
but I honestly can't muster a shit about either of those forms.. what's the important diff, in yuor opinion?
<cr3>
bnagy: I meant the character I can put in %*{} where * is the documentation I'm looking for
<bnagy>
BlakeRG: no, you're sounding like a homeworker now
<realDAB>
havenwood: btw i agree with you (and gregory) that that's nicer
<bnagy>
cr3: oh ok, google ruby quickref
lebek has joined #ruby
lebek has quit [Client Quit]
flori has quit [Read error: Operation timed out]
lebek has joined #ruby
flori has joined #ruby
<bnagy>
that form is uncommon, though
<BlakeRG>
thanks waxjar
ehc has quit [Quit: ehc]
noyb has joined #ruby
<havenwood>
bnagy: I find it uncomfortable to have an implicit block that requires an end, with nothing in it. Just seems ugly, no practical difference.
freeayu has quit [Remote host closed the connection]
<bnagy>
k
<cr3>
bnagy: thanks, that'll also help me find documentation for next time :)
ehc has joined #ruby
<havenwood>
bnagy: Less common, but i *think* perfectly clear, or at least pretty clear.
<bnagy>
cr3: quickref is AWESOMEz
emergion has quit [Quit: Computer has gone to sleep.]
<bnagy>
havenwood: not sure I can agree? the explicit inheritance is kinda nice
_bart has quit [Remote host closed the connection]
<havenwood>
mm
<bnagy>
completely agree that the extra ; end is ugly though
nathancahill has joined #ruby
tobyo1 has joined #ruby
<bnagy>
I'm going to file it under stuff I don't have a strong opinion about :)
<havenwood>
yeah, i waffle too - a trifle
<bnagy>
mmm trifle
bamdad has quit [Quit: bamdad]
Ortuna has quit [Quit: Computer has gone to sleep.]
Ortuna has joined #ruby
Ortuna has quit [Client Quit]
acrussell has left #ruby [#ruby]
graydot has joined #ruby
tvw has quit [Read error: Connection reset by peer]
ckrailo has joined #ruby
echevemaster has joined #ruby
r0bglees0n has quit [Quit: WeeChat 0.3.8]
randomautomator has joined #ruby
anildigital_away is now known as anildigital
vikhyat has joined #ruby
ssvo has joined #ruby
alup has quit [Quit: Leaving]
Astral_ has quit [Ping timeout: 246 seconds]
zomgbie has joined #ruby
bigoldrock has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
sheerun has joined #ruby
S0da has joined #ruby
ffio has joined #ruby
theKingLizard has joined #ruby
baroquebobcat has joined #ruby
saarinen has joined #ruby
goleldar has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
apeiros has quit [Remote host closed the connection]
xcv has joined #ruby
freerobby has quit [Quit: Leaving.]
alex__c2022 has joined #ruby
Kar- has quit [Ping timeout: 264 seconds]
Kar-_ has joined #ruby
freerobby has joined #ruby
r0bgleeson has joined #ruby
Guest57104 has quit [Quit: ばいばい]
<BlakeRG>
ok, i understand now why rescuing Exception is a bad idea, and that using else within a begin is not commonly used syntax, but i am still trying to understand how i would know an exception was *not* thrown so that i can log a success message without using else. Any stackoverflow links?
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
p0wn3d has joined #ruby
tomsthumb has quit [Ping timeout: 264 seconds]
chihhsin_ has joined #ruby
<jblack>
Hello. I'm having a rough time figuring out how to handle gems right. I'm using mongoid (an ORM for mongodb), and I'd like to learn how to use action_controller. However, when I attempt to include that gem, I get "Unable to activate actionpack-4.0.0, because activesupport-3.2.14 conflicts with activesupport (= 4.0.0), builder-3.0.4 conflicts with builder (~> 3.1.0) (Gem::LoadError)".
mercwithamouth has joined #ruby
nbouscal has joined #ruby
ffranz has quit [Ping timeout: 256 seconds]
chihhsin_ has quit [Client Quit]
ghr has quit [Quit: Computer has gone to sleep.]
<jblack>
How does one deal with this normally? I tried making a Gemfile that has "Unable to activate actionpack-4.0.0, because activesupport-3.2.14 conflicts with activesupport (= 4.0.0), builder-3.0.4 conflicts with builder (~> 3.1.0) (Gem::LoadError)", because I think action_controller is within there, but I still get the error
ybart has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
Eiam has joined #ruby
<havenwood>
jblack: maybe try deleting the Gemfile.lock, dunno
<jblack>
I can try that, though I just created the Gemfile for the first time and ran bundle
ghr has joined #ruby
shaunbaker has joined #ruby
chihhsin_ has joined #ruby
<jblack>
I should note that I'm not using a full rails environment
<havenwood>
jblack: might try #RubyOnRails
<jblack>
Ok. sure. Thanks!
chihhsin_ has quit [Client Quit]
<Veejay>
hanmac: Alrighty then
chihhsin_ has joined #ruby
chihhsin_ has quit [Client Quit]
kaspergrubbe has joined #ruby
chihhsin_ has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chihhsin_ has quit [Client Quit]
shaunbaker has quit [Ping timeout: 245 seconds]
renderful has quit [Remote host closed the connection]
Neomex has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Neomex has quit [Client Quit]
terrellt has quit [Ping timeout: 276 seconds]
bamdad has joined #ruby
renderful has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
shadoi has joined #ruby
shadoi1 has joined #ruby
rshetty has joined #ruby
chihhsin_ has joined #ruby
rshetty has quit [Client Quit]
chihhsin_ has quit [Client Quit]
Astralum has joined #ruby
TheNotary has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 0.4.1]
io_syl has joined #ruby
juo100_ has quit [Quit: juo100_]
chihhsin_ has joined #ruby
ffranz has joined #ruby
freerobby has joined #ruby
chihhsin_ has quit [Client Quit]
cHarNe2 has quit [Read error: Operation timed out]
pipework has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
sepp2k has joined #ruby
chihhsin_ has quit [Client Quit]
smathieu has joined #ruby
Eiam has joined #ruby
mattias1 has joined #ruby
Trudko has joined #ruby
<hanmac>
BlakeRG there is a tiny difference in speed, the second one is a tiny bit faster than the first one (because the first is an addional method call)
hamakn has quit [Remote host closed the connection]
<Trudko>
guys I am dividing two integers and i would like the result to have two decimal places so 5/2 = 2.50 ; 4/2 = 2.00 etc
hamakn has joined #ruby
<havenwood>
Trudko: #round(2)
<BlakeRG>
the second way (as an english speaker) seems more intuitive, i just found out about "unless" yesterday - i am using to doing the !something type conditionals from curly brace languages
<Mon_Ouie>
Ruby doesn't have such numbers. You can of course use regular floats (or whatever) and only display the first two decimal places
<Discordian93>
okay, I've been with this shit for hours, I'm new to ruby and I can't figure out whyt his keeps raising a syntax error: raise SampleError unless(["a","b","c"].include? input[0] & ["a","b","b"].include? input[1])
ndrei has joined #ruby
<BlakeRG>
oh nice! thanks havenwood
<madumo>
If i have a method that take a &block parameter, am i suppose to be able to send a lambda for this block parameter?
momomomomo has quit [Quit: momomomomo]
nari has quit [Read error: Connection reset by peer]
<hanmac>
Turdko require "mathn"
chihhsin_ has joined #ruby
<hanmac>
require "mathn"; (5/2).round(2)
<havenwood>
Trudko: To start with, Integers don't divide to Floats. So #to_f one of the Integers or use #fdiv to divide: 5.fdiv(2).round(2)
<Mon_Ouie>
Use IRB for experimenting, avoid spamming the channel with it
<Trudko>
yeah sorry
Zespre has left #ruby [#ruby]
nikeita has joined #ruby
<madumo>
If i have a method that take a &block parameter, am i suppose to be able to send a lambda for this block parameter?
<havenwood>
madumo: send it a block
<havenwood>
madumo: method do; your_code_here; end
<madumo>
Yeah that is what i did but i was asking because with the legato gem (a gem to make query to the google analytics api) there is a filter method in the models
<madumo>
and in the doc, they send lambda as parameter
<madumo>
but it was not working at all even if i was pasting the examble
<madumo>
example*
bubu has quit [Remote host closed the connection]
<havenwood>
madumo: long as it responds to #call
spider-mario has joined #ruby
<havenwood>
dunno
bluOxigen has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
<madumo>
so i looked out the source code and saw the filter method was taking a block, so i sent a block instead and it worked
momomomomo has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
ndrei has quit [Ping timeout: 256 seconds]
smathieu has quit [Remote host closed the connection]
rodacato has quit [Remote host closed the connection]
<workmad3>
asteve: if you're meaning 'can I set instance variables in a parent an use them in a child' then the answer is 'yes, but you may be mis-using the variable and it might change behaviour on you without warning'
<asteve>
how would it change ?
p0wn3d_ has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
<aces1up>
can someone help me the best way to convert this hash in the way i needed? Was thinking inject, might be good for this.. http://codepad.org/NhCItZts
kpshek has quit []
<workmad3>
asteve: if you're inheriting from a class in a library, for example, a new version of the library could change the behaviour or remove the ivar entirely
<asteve>
ah, not the problem here
<asteve>
I'm writing the parent and children
Lewix has quit [Remote host closed the connection]
p0wn3d has joined #ruby
<workmad3>
asteve: you should still think in those terms
<workmad3>
asteve: it encourages the right sort of thinking about encapsulation and information hiding
<asteve>
so every child needs the same variable information set, how would you do it differently?
ehc has joined #ruby
<workmad3>
asteve: I'd personally use an attribute accessor around it
<workmad3>
asteve: which promotes the access to part of the public interface of the class
pipework has joined #ruby
<asteve>
attr accessor for the parent or the child?
<workmad3>
asteve: and as such, something that the class author (you) has explicitly said is usable
S0da has joined #ruby
nkts has joined #ruby
cj3kim has joined #ruby
p0wn3d has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 240 seconds]
<workmad3>
asteve: you should be able to figure that out yourself if you just think about which class owns (and therefore controls access to) the data
ananthakumaran has quit [Quit: Leaving.]
sam113101 is now known as sam113101_afk
sam113101_afk is now known as sam113101
locriani has joined #ruby
CalebMingle has joined #ruby
tkuchiki has joined #ruby
cr3 has left #ruby [#ruby]
breakingthings has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.1]
cj3kim has quit [Remote host closed the connection]
goshakkk has joined #ruby
Discordian93 has left #ruby [#ruby]
bronson has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
<bricker>
Is there a reason "yum install ruby" still only installs 1.8.7? I admit that I don't know much about RPM or where yum pulls from, but that seems awfully out of date
<havenwood>
hanmac: yeah, that's nicer
mattias1 has quit [Ping timeout: 245 seconds]
krz has quit [Quit: krz]
<havenwood>
bricker: because you're not on Fedora 19!
levente has joined #ruby
<havenwood>
bricker: 2.0.0-p247
Xeago has joined #ruby
<bricker>
this is CentOS 6.4
<hanmac>
pah, my ruby is daily fresh ;P
tatsuya_o has quit [Remote host closed the connection]
ndrei has quit [Read error: Connection reset by peer]
realDAB has joined #ruby
mattias1 is now known as silmawien
BizarreCake has quit [Ping timeout: 260 seconds]
dpritchett has joined #ruby
saarinen has joined #ruby
<zachrab>
hanmac: can you elaborate?
<babykosh>
Is there a simple explanation ….railscast style of how to take an XML file and use it to create you database tables and data…maybe I'm over thinking this?
ILoveYou has quit [Read error: Connection reset by peer]
Astralum has quit [Read error: Connection reset by peer]
<zachrab>
so if i say "%13" % Time.now.to_f will return miliseconds?
Astralum has joined #ruby
St_Marx has joined #ruby
nanoxd_ has joined #ruby
<DylanJ>
babykosh: maybe but i dont know of one off hand. but it shouldn't be too hard. there are gems out there for parsing xslx
ndrei has joined #ruby
ILoveYou has joined #ruby
<hanmac>
zachrab: to_f will return seconds, you need to multibly it with 1000 to get them as miliseconds
Catbuntu has quit [Quit: Leaving]
colonolGron has quit [Quit: Lost terminal]
<aces1up>
can you guys show me how to create a prepend_keys! function in this code ? http://codepad.org/vqcxP2nD
nanoxd has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
locriani has quit [Remote host closed the connection]
p0wn3d has joined #ruby
guest34 has quit [Remote host closed the connection]
lscott3 has quit [Quit: Sleep]
<hanmac>
use replace!(prepend_keys(pre_str))
<hanmac>
for sample
kiri has quit [*.net *.split]
jonkri has quit [*.net *.split]
canton7 has quit [*.net *.split]
pygospa has quit [*.net *.split]
zmike123 has quit [*.net *.split]
Guest90544 has quit [*.net *.split]
joast has quit [*.net *.split]
Gooder has quit [*.net *.split]
Schmidt has quit [*.net *.split]
henn has quit [*.net *.split]
kjeldahl has quit [*.net *.split]
soukihei has quit [*.net *.split]
jetblack has quit [*.net *.split]
dv_ has quit [*.net *.split]
flagg0205 has quit [*.net *.split]
KarlHungus has quit [*.net *.split]
eliasp has quit [*.net *.split]
yeban has quit [*.net *.split]
chiel has quit [*.net *.split]
moshee- has quit [*.net *.split]
machuga has quit [*.net *.split]
linduxed has quit [*.net *.split]
yosafbridge` has quit [*.net *.split]
Quadlex has quit [*.net *.split]
ericwood has quit [*.net *.split]
Radar has quit [*.net *.split]
finges_ has quit [*.net *.split]
wchun has quit [*.net *.split]
toddWork_ has quit [*.net *.split]
estevao has quit [*.net *.split]
zeroXten has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
crankycoder has quit [*.net *.split]
bsdbandit has quit [*.net *.split]
ahuman has quit [*.net *.split]
Daemoen has quit [*.net *.split]
Morrolan has quit [*.net *.split]
jinie has quit [*.net *.split]
fred has quit [*.net *.split]
Kudos has quit [*.net *.split]
bakedb has quit [*.net *.split]
hexbit_ has quit [*.net *.split]
jonjo has quit [*.net *.split]
phutchins has quit [*.net *.split]
sixteneighty has quit [*.net *.split]
regedare1 has quit [*.net *.split]
MetaCosm has quit [*.net *.split]
stopbit has quit [*.net *.split]
kstephens has quit [*.net *.split]
martxel has quit [*.net *.split]
epic has quit [*.net *.split]
rcs has quit [*.net *.split]
maloik has quit [*.net *.split]
Guest30040 has quit [*.net *.split]
cout has quit [*.net *.split]
udoprog has quit [*.net *.split]
kennyvb has quit [*.net *.split]
jso has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
Fraeon has quit [*.net *.split]
rodacato has quit [Remote host closed the connection]
mneorr has joined #ruby
tatsuya_o has joined #ruby
mansi has quit [Remote host closed the connection]
jonjo has joined #ruby
canton7 has joined #ruby
kiri has joined #ruby
jonkri has joined #ruby
zmike123 has joined #ruby
dv_ has joined #ruby
Guest90544 has joined #ruby
Radar has joined #ruby
moshee- has joined #ruby
machuga has joined #ruby
wchun has joined #ruby
chiel has joined #ruby
Gooder has joined #ruby
ericwood has joined #ruby
ahuman has joined #ruby
flagg0205 has joined #ruby
epic has joined #ruby
maloik has joined #ruby
Daemoen has joined #ruby
hexbit_ has joined #ruby
henn has joined #ruby
linduxed has joined #ruby
finges_ has joined #ruby
Fraeon has joined #ruby
toddWork_ has joined #ruby
Morrolan has joined #ruby
jso has joined #ruby
fred has joined #ruby
regedare1 has joined #ruby
sixteneighty has joined #ruby
estevao has joined #ruby
yosafbridge` has joined #ruby
martxel has joined #ruby
KarlHungus has joined #ruby
bakedb has joined #ruby
cout has joined #ruby
Guest30040 has joined #ruby
bsdbandit has joined #ruby
crankycoder has joined #ruby
jinie has joined #ruby
Kudos has joined #ruby
kstephens has joined #ruby
Quadlex has joined #ruby
MetaCosm has joined #ruby
cjk101010 has joined #ruby
yeban has joined #ruby
soukihei has joined #ruby
stopbit has joined #ruby
kennyvb has joined #ruby
kjeldahl has joined #ruby
joast has joined #ruby
rcs has joined #ruby
pygospa has joined #ruby
crazedpsyc has joined #ruby
phutchins has joined #ruby
eliasp has joined #ruby
udoprog has joined #ruby
jetblack has joined #ruby
Schmidt has joined #ruby
zeroXten has joined #ruby
mansi has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
sailias has quit [Ping timeout: 256 seconds]
sarkis has joined #ruby
avril14th has quit [Excess Flood]
linduxed has quit [Max SendQ exceeded]
mark_locklear has quit [Quit: Leaving]
<aces1up>
hanmac replace! is that a hash method? i only see replace on hash.
workmad3 has quit [Ping timeout: 243 seconds]
ILoveYou[ has joined #ruby
<aces1up>
hanmac or is that an enumerable?
Es0teric has joined #ruby
sarkis has quit [*.net *.split]
marcgg has quit [*.net *.split]
lebek has quit [*.net *.split]
nanoxd_ has quit [*.net *.split]
x1337807x has quit [*.net *.split]
madumo has quit [*.net *.split]
byprdct has quit [*.net *.split]
DonRichie has quit [*.net *.split]
codecop has quit [*.net *.split]
goleldar has quit [*.net *.split]
Banistergalaxy has quit [*.net *.split]
Zeeraw has quit [*.net *.split]
davedev24 has quit [*.net *.split]
jlebrech has quit [*.net *.split]
enebo has quit [*.net *.split]
theRoUS has quit [*.net *.split]
yshh has quit [*.net *.split]
swordsmanz has quit [*.net *.split]
charliesome has quit [*.net *.split]
marr has quit [*.net *.split]
zodiak has quit [*.net *.split]
Bish has quit [*.net *.split]
joschi has quit [*.net *.split]
enhance_ has quit [*.net *.split]
awarner has quit [*.net *.split]
Jb____ has quit [*.net *.split]
cam`_ has quit [*.net *.split]
jaimef has quit [*.net *.split]
Brando753 has quit [*.net *.split]
bubbajones has quit [*.net *.split]
binw_ has quit [*.net *.split]
EvilAww has quit [*.net *.split]
jharveysmith has quit [*.net *.split]
idoru has quit [*.net *.split]
BlueShark has quit [*.net *.split]
notbrent has quit [*.net *.split]
p0wn3d has quit [*.net *.split]
eaWPq4nU has quit [*.net *.split]
blackmesa has quit [*.net *.split]
Kabaka has quit [*.net *.split]
tacos1de has quit [*.net *.split]
Bry8Star{T2 has quit [*.net *.split]
St_Marx has quit [*.net *.split]
end_guy has quit [*.net *.split]
DrCode has quit [*.net *.split]
ILoveYou[ has quit [Read error: No buffer space available]
ilyam has quit [Quit: ilyam]
linduxed has joined #ruby
sarkis has joined #ruby
x1337807x has joined #ruby
marcgg has joined #ruby
blackmesa has joined #ruby
codecop has joined #ruby
Zeeraw has joined #ruby
p0wn3d has joined #ruby
madumo has joined #ruby
nanoxd_ has joined #ruby
davedev24 has joined #ruby
lebek has joined #ruby
St_Marx has joined #ruby
tacos1de has joined #ruby
enebo has joined #ruby
eaWPq4nU has joined #ruby
DonRichie has joined #ruby
yshh has joined #ruby
theRoUS has joined #ruby
Banistergalaxy has joined #ruby
swordsmanz has joined #ruby
Bry8Star{T2 has joined #ruby
charliesome has joined #ruby
jlebrech has joined #ruby
byprdct has joined #ruby
zodiak has joined #ruby
BlueShark has joined #ruby
joschi has joined #ruby
Bish has joined #ruby
goleldar has joined #ruby
Jb____ has joined #ruby
awarner has joined #ruby
enhance_ has joined #ruby
cam`_ has joined #ruby
jaimef has joined #ruby
Brando753 has joined #ruby
bubbajones has joined #ruby
marr has joined #ruby
notbrent has joined #ruby
jharveysmith has joined #ruby
binw_ has joined #ruby
end_guy has joined #ruby
idoru has joined #ruby
DrCode has joined #ruby
goshakkk has joined #ruby
<hanmac>
aces1up: right, its without !
Aww_ has joined #ruby
Brando753 has quit [Max SendQ exceeded]
jaimef has quit [Max SendQ exceeded]
BlueShark has quit [Quit: Leaving.]
BlueShark_ has joined #ruby
Brando753 has joined #ruby
<aces1up>
hanmac thanks.
ILoveYou[ has joined #ruby
DocEternal has quit [*.net *.split]
ILoveYou has quit [Ping timeout: 276 seconds]
DocEternal has joined #ruby
Aww_ is now known as EvilAww
BlueShark_ is now known as BlueShark
nikeita has joined #ruby
mansi has quit [Ping timeout: 248 seconds]
mneorr has quit [Ping timeout: 248 seconds]
jaimef has joined #ruby
freerobby has joined #ruby
Kabaka has joined #ruby
kpshek has joined #ruby
linduxed has quit [*.net *.split]
Es0teric has quit [*.net *.split]
amacgregor has quit [*.net *.split]
kirun has quit [*.net *.split]
jprovazn has quit [*.net *.split]
dash_ has quit [*.net *.split]
twoism has quit [*.net *.split]
the_mentat has quit [*.net *.split]
krainboltgreene has quit [*.net *.split]
dpritchett has quit [*.net *.split]
randomautomator has quit [*.net *.split]
RichardBaker has quit [*.net *.split]
echevemaster has quit [*.net *.split]
splittingred has quit [*.net *.split]
sebastianb has quit [*.net *.split]
braincrash has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
pontiki_ has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
wesside has quit [*.net *.split]
araujo has quit [*.net *.split]
paissad__ has quit [*.net *.split]
s0ber has quit [*.net *.split]
yano has quit [*.net *.split]
lsmola has quit [*.net *.split]
wudofyr has quit [*.net *.split]
drfreeze has quit [*.net *.split]
graft has quit [*.net *.split]
marcellu1 has quit [*.net *.split]
zai has quit [*.net *.split]
silky__ has quit [*.net *.split]
micah` has quit [*.net *.split]
jericon has quit [*.net *.split]
pietr0 has quit [*.net *.split]
aaroncm has quit [*.net *.split]
kennym has quit [*.net *.split]
awwaiid has quit [*.net *.split]
fourq_ has quit [*.net *.split]
codex has quit [*.net *.split]
Crawford has quit [*.net *.split]
rodasc has quit [*.net *.split]
sindork_ has quit [*.net *.split]
davidboy has quit [*.net *.split]
vadelius has quit [*.net *.split]
`MArceLL` has quit [*.net *.split]
Encosi has quit [*.net *.split]
Olipro has quit [*.net *.split]
kloeri has quit [*.net *.split]
defrag1 has quit [*.net *.split]
Rylai has quit [*.net *.split]
aboudreault has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
NimeshNeema has quit [*.net *.split]
Weazy_ has quit [*.net *.split]
elektronaut has quit [*.net *.split]
fcoury has quit [*.net *.split]
fumduq- has quit [*.net *.split]
sgkim126l has quit [*.net *.split]
robwilliamsuk has quit [*.net *.split]
geoffw8_ has quit [*.net *.split]
yonahw_ has quit [*.net *.split]
ShapeShifter499 has quit [*.net *.split]
epitron has quit [*.net *.split]
dubios has quit [*.net *.split]
tekacs has quit [*.net *.split]
JZTech101 has quit [Write error: Connection reset by peer]
avril14th has joined #ruby
JZTech101 has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
p0wn3d has quit [Ping timeout: 240 seconds]
m00dy has joined #ruby
zomgbie has joined #ruby
jonahR has joined #ruby
ILoveYou has joined #ruby
AkashicLegend has quit [Quit: AkashicLegend]
s0ber has joined #ruby
bamdad has quit [Quit: bamdad]
mercwithamouth has quit [Ping timeout: 248 seconds]
Pandee has joined #ruby
ILoveYou[ has quit [Ping timeout: 276 seconds]
pietr0 has joined #ruby
madumo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcellus has joined #ruby
pontiki has joined #ruby
zai has joined #ruby
micah` has joined #ruby
awwaiid has joined #ruby
sgkim126l has joined #ruby
zai is now known as Guest65856
drfreeze has joined #ruby
epitron has joined #ruby
epitron has joined #ruby
ryannielson has joined #ruby
jericon has joined #ruby
kloeri has joined #ruby
Weazy has joined #ruby
lnormous has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
kham has joined #ruby
lscott3 has joined #ruby
kpshek has quit []
mansi has joined #ruby
nikeita has quit [Quit: sleep]
sam113101 is now known as sam113101_afk
graft has joined #ruby
codex has joined #ruby
hanmac has quit [Quit: Leaving.]
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
zalmoxe has joined #ruby
Crawford has joined #ruby
araujo has joined #ruby
<zalmoxe>
hi
marcellus is now known as 36DAA4KRK
sebastianb has joined #ruby
rodasc has joined #ruby
twoism has joined #ruby
splittingred has joined #ruby
silky__ has joined #ruby
Encosi has joined #ruby
michael_mbp has joined #ruby
RichardBaker has joined #ruby
amacgregor has joined #ruby
paissad__ has joined #ruby
kirun has joined #ruby
dash_ has joined #ruby
lsmola has joined #ruby
Es0teric has joined #ruby
Rylai has joined #ruby
braincrash has joined #ruby
robwilliamsuk has joined #ruby
fourq_ has joined #ruby
`MArceLL` has joined #ruby
geoffw8_ has joined #ruby
the_mentat has joined #ruby
linduxed has joined #ruby
wudofyr has joined #ruby
yonahw_ has joined #ruby
aaroncm has joined #ruby
sindork_ has joined #ruby
vadelius has joined #ruby
dubios has joined #ruby
jprovazn has joined #ruby
fumduq- has joined #ruby
dpritchett has joined #ruby
randomautomator has joined #ruby
fcoury has joined #ruby
davidboy has joined #ruby
defrag1 has joined #ruby
elektronaut has joined #ruby
NimeshNeema has joined #ruby
tekacs has joined #ruby
wesside has joined #ruby
krainboltgreene has joined #ruby
ShapeShifter499 has joined #ruby
jmeeuwen has joined #ruby
renderful has quit [Remote host closed the connection]
aboudreault has joined #ruby
Es0teric has quit [Max SendQ exceeded]
mercwithamouth has joined #ruby
tgunr has quit [Quit: Nity nite]
<zalmoxe>
hm
cj3kim has joined #ruby
zalmoxe is now known as blanoz
kennym has joined #ruby
kennym has quit [Changing host]
kennym has joined #ruby
blanoz has left #ruby [#ruby]
Olipro has joined #ruby
blanoz has joined #ruby
ryannielson has quit [Quit: ryannielson]
RubyPanther has joined #ruby
nikeita has joined #ruby
noname001 has joined #ruby
sam113101_afk is now known as sam113101
noop has quit [Ping timeout: 276 seconds]
tgunr has joined #ruby
bubu has joined #ruby
freerobby has quit [Quit: Leaving.]
JZTech101 has joined #ruby
m8 has quit [Read error: No buffer space available]
JZTech101 has quit [Read error: Connection reset by peer]
ILoveYou has quit [Read error: Connection reset by peer]
m8 has joined #ruby
JZTech101 has joined #ruby
zmike123 has quit [Quit: ~]
ILoveYou has joined #ruby
cj3kim has quit [Remote host closed the connection]
Es0teric has joined #ruby
madumo has joined #ruby
freerobby has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Mars` has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
hasrb has quit [Remote host closed the connection]
i_s has joined #ruby
sheerun has quit [Ping timeout: 264 seconds]
nikeita has quit [Quit: sleep]
sepp2k1 has joined #ruby
p0wn3d has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
devoldmx has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
Astralum has quit [Ping timeout: 248 seconds]
chimkan has quit [Ping timeout: 240 seconds]
chimkan has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
cj3kim has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
smathieu has quit [Remote host closed the connection]
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
mikepack has joined #ruby
kham has quit [Ping timeout: 256 seconds]
yano has joined #ruby
saarinen has quit [Quit: saarinen]
sambao21 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 256 seconds]
lscott3 has quit [Quit: Quit]
smathieu has joined #ruby
vindictive27 has quit [Quit: vindictive27]
xcv has joined #ruby
cosss has quit []
yalue has quit [Quit: Leaving]
Mars` has joined #ruby
S0da has quit [Read error: Connection reset by peer]
s1n4 has joined #ruby
S0da has joined #ruby
sambao21 has joined #ruby
s1n4 is now known as Guest8911
renderful has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
kofno has quit [Remote host closed the connection]
bobbyz has joined #ruby
goodcodeguy has joined #ruby
S0da has quit [Ping timeout: 248 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
bubu has quit [Ping timeout: 246 seconds]
S0da has joined #ruby
Dave is now known as Guest86676
blackmesa has quit [Ping timeout: 240 seconds]
BlakeRG has quit [Remote host closed the connection]
Shayan has quit [Remote host closed the connection]
goodcodeguy has left #ruby [#ruby]
louism2wash has joined #ruby
rayfinkle has left #ruby [#ruby]
kham has joined #ruby
marcdel has joined #ruby
<louism2wash>
Hey everyone, when using the '&' with parameter declarations( i.e. def block_test(&block) ) what types of object are valid to pass in as &block?
S0da has quit [Read error: Connection reset by peer]
<louism2wash>
I think it's just proc, lambda and method
Squarepy has quit [Quit: Leaving]
ILoveYou has quit [Read error: Connection reset by peer]
burlyscudd has quit [Ping timeout: 264 seconds]
dash_ has quit [Ping timeout: 246 seconds]
<ChristianS>
louism2wash: anything that can be called i think -- which is basically what you say
workmad3 has joined #ruby
<fryguy>
i think it's anything that responds to the "call" message
<ChristianS>
yes
dash_ has joined #ruby
<fryguy>
which could be arbitrary objects
babykosh has quit [Quit: babykosh]
CalebMingle has quit [Quit: CalebMingle]
jprovazn has quit [Quit: Odcházím]
Banistergalaxy has quit [Ping timeout: 264 seconds]
S0da has joined #ruby
Banistergalaxy has joined #ruby
smathieu has joined #ruby
kid_icarus has quit [Ping timeout: 240 seconds]
dukedave has joined #ruby
<dukedave>
How can I get an iterator over the lines in a File, such that I can call f.next() to get each line in turn?
<dukedave>
I see readlines, but that returns the whole array in one go
SHyx0rmZ has joined #ruby
<dukedave>
And I don't want .each &block, because then the iteration is controlled by that block
Guest8911 has quit [Quit: leaving]
anildigital_away is now known as anildigital_
<fryguy>
dukedave: open.each_line
terrellt has joined #ruby
<dukedave>
fryguy, bingo! Thanks :D
Guest86676 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
anildigital_ is now known as anildigital__awa
brbcoding has quit []
nwertman has joined #ruby
S0da has quit [Ping timeout: 256 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
S0da has joined #ruby
<Mon_Ouie>
You can also just have .each without a block
<nwertman>
Is there a decent continuous-integration script I can setup on one of my machines (internally)? I need to automate the testing of my company's internal tools.
<Mon_Ouie>
(as with most methods that iterate over a collection with a block, in fact)
<nwertman>
I'm mainly looking for good experiences folks have had with setup/deploying/etc.
<dukedave>
Mon_Ouie, ah, thanks
blitz has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
kjeldahl has left #ruby ["WeeChat 0.3.7"]
saarinen has joined #ruby
geekbri has quit [Remote host closed the connection]
blackmesa has joined #ruby
alvaro_o has joined #ruby
ehc has quit [Quit: ehc]
nomenkun has quit [Remote host closed the connection]
rodacato has quit [Remote host closed the connection]
renderful has joined #ruby
fuhgeddaboudit has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
maniacal has quit [Quit: Leaving...]
mikeg has joined #ruby
kid_icarus has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
mikeg has quit [Client Quit]
<bricker>
Hello people, I'm trying to install nginx with passenger (passenger-install-nginx-module), and getting this error: https://gist.github.com/bricker/6083582 Can someone point me in the right direction?
maniacal has joined #ruby
hasrb has joined #ruby
renderful has quit [Ping timeout: 248 seconds]
rodacato has joined #ruby
tommyvyo has joined #ruby
ilyam has joined #ruby
fridim_ has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
rodacato has quit [Remote host closed the connection]
marcdel has joined #ruby
mneorr has quit [Remote host closed the connection]
<brisbin>
louism2wash: the actual answer is anything that responds to #to_proc
blitz has joined #ruby
kpshek has joined #ruby
r0bgleeson has quit [Ping timeout: 240 seconds]
<jblack>
Has anybody come across any ORM controller classes or gems outside of rails?
fuhgeddaboudit has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
intuxicated has joined #ruby
zz_pinage404 is now known as pinage404
stormbytes has joined #ruby
p0wn3d has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<havenwood>
jblack: For what type of db? Ohm and Sequel are nice.
<jblack>
Mongoid.
fuhgeddaboudit has quit [Remote host closed the connection]
<tubbo>
jblack: mongoid is the ORM, mongoDB is the database. iirc mongoid is outside of rails.
<jblack>
I'm using mongoid and sinatra outside of rails. I'm looking for something that would provide a good start as a controller to deal with the lack of integrity protection with update_attributes and relationships
<tubbo>
doesn't it just use activemodel?
<tubbo>
jblack: what do you mean by "integrity protection"?
pinage404 is now known as zz_pinage404
ehc has joined #ruby
<jblack>
If you do an update_attributes (relationship: ""), you just wiped relationships.
<jblack>
that's not such a good thing if you're pasing update_attributes (request.GET.merge request.POST)
cHarNe2 has quit [Ping timeout: 276 seconds]
leonardo_ has quit [Quit: Saindo]
optimusprimem has joined #ruby
<jblack>
attr_protect and it's cousin readonly are great for relationship_ids, but things get messy quick my tests caught on that the relationship needs protection too...
<jblack>
which breaks useful things like create!(this:"is" not:"going" to:"work")
smathieu_ has joined #ruby
breakingthings has quit [Quit: breakingthings]
<jblack>
they're whole intent is to prevent -batch- updates. not prevent ouside of ORM updates at all
kid_icarus has quit [Ping timeout: 256 seconds]
rodacato has joined #ruby
<jblack>
what I've read indicates that I should deal with sanitizing up in the controller rather than the model, but I don't have much of a controller... a thin restful pile of sinatra routes that nearly-directly point at the various ORM goodies.
chrisja has quit [Quit: leaving]
optimusprimem has quit [Excess Flood]
sambao21 has quit [Quit: Computer has gone to sleep.]
PLejeck is now known as Nuck
<jblack>
That's where I got into that actioncontroller stuff earlier, which I did figure out thanks to your help, btw.
TheHodge has quit [Ping timeout: 256 seconds]
nisstyre has joined #ruby
<jblack>
However, I can't figure out how to actually use actioncontroller outside of rails. I've got sinatra here, acontroller there, and how I hook them together, <dunno>
smathieu has quit [Ping timeout: 256 seconds]
TheHodge has joined #ruby
mroth has quit [Ping timeout: 264 seconds]
<DylanJ>
jblack: maybe check out strong_params
<DylanJ>
then you define what params you'll allow the user to pass in
sambao21 has joined #ruby
optimusprimem has joined #ruby
jlast_ has quit [Remote host closed the connection]
nkts has joined #ruby
<jblack>
That would be perfect.
<jblack>
I suppose that's within sinatra?
dash_ has quit [Quit: dash_]
jonahR has quit [Ping timeout: 268 seconds]
<DylanJ>
i dont know. it's a rails 4 thing but also a gem
freezey has quit [Remote host closed the connection]
<mercwithamouth>
i have a boggle. i'm playing with RSpec. why is it that I can have a method named 'edible?' yet in rspec i have to write "expect(blah).to_not be_edible ...excludes the '?'
Nanuq has joined #ruby
<mercwithamouth>
Is that not part of the actual method name?
<jblack>
Yeah, it looks like it works with ApplicationController, which I don't know how to use with sinatra outside of rails
<DylanJ>
mercwithamouth: rspec does magic and any method? methods are called be_method
<DylanJ>
.visible? => be_visible
<jblack>
maybe.
<DylanJ>
rspec magic
<mercwithamouth>
DylanJ: ok so if we decide to add any sort of punctuation to the methods name when it comes to respec simply ignore it?
<mercwithamouth>
alrighty...sometimes you have to 'forget' in order to learn something new. =)
<DylanJ>
you can still do
<DylanJ>
expect(blah.edible?).to be_true
<mercwithamouth>
DylanJ: ahh i see!
kid_icarus has joined #ruby
<mercwithamouth>
ok i like that more...
<DylanJ>
but rspec gives you those extra methods because rspec is like that
spider-mario has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
Kelet has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
kofno has joined #ruby
Adawerk has quit [Quit: This computer has gone to sleep]
m00dy has quit [Ping timeout: 268 seconds]
<jblack>
I'm still reading that DylanJ. That might be the missing piece for me
superscott[8] has quit [Quit: superscott[8]]
codecop has quit [Remote host closed the connection]
Vivekananda has joined #ruby
nathancahill_ has joined #ruby
nathancahill has quit [Ping timeout: 240 seconds]
nathancahill_ is now known as nathancahill
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DylanJ>
:)
sarkis has quit [Ping timeout: 264 seconds]
chee has left #ruby ["WeeChat 0.4.0"]
<Bio>
is it possible to read and write to the terminal at the same time without messing up the input?
<Bio>
i'm trying to do this in ruby, but it seems impossible
<DylanJ>
Bio: if you use ncurses, sure.
<Bio>
ah
<DylanJ>
but otherwise you're going to print where the cursor is
<Bio>
well, i'm pretty sure its possible to do that without ncurses
ilyam has quit [Quit: ilyam]
staafl has joined #ruby
henn has quit [Read error: Operation timed out]
<apeiros>
without curses, you'd deactivate echo
codezombie has joined #ruby
<Bio>
ah
<apeiros>
and write what the user typed yourself
<apeiros>
but it's rather hard
<apeiros>
since you have to emulate *everything*
<Bio>
well, i'll use curses then
<Bio>
:p
kofno has quit [Ping timeout: 276 seconds]
ianfleeton has joined #ruby
ndrei has quit [Quit: Lost terminal]
momomomomo has joined #ruby
pskosinski has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Kelet has quit [Read error: Connection reset by peer]
dankest has joined #ruby
saarinen has quit [Quit: saarinen]
superscott[8] has joined #ruby
kpshek has quit []
wmoxam has quit [Ping timeout: 246 seconds]
niklasb has quit [Ping timeout: 248 seconds]
chimkan has quit [Quit: chimkan]
<dankest>
I'm using minitest to test my Ruby application, but my test can't see my class. I have them stored in different files, how do I point the test at my class rb?
Neomex has joined #ruby
Neomex has quit [Client Quit]
<apeiros>
dankest: you load it by using `require`
Kelet has joined #ruby
tgunr has quit [Quit: Nity nite]
cjs226 has quit [Quit: cjs226]
<dankest>
Ugh, why isn't that mentioned in any of the samples
<dankest>
hmm, none of the paths in $LOAD_PATH seem to be my directory
duper has joined #ruby
<duper>
How do I print out numeric IPv4/IPv6 addresses and CIDR blocks that are stored as String's in binary with Ruby? (arbitrary base notations would be even better in order to cover octal, hex, decimal, etc.)
<apeiros>
you can amend $LOAD_PATH by using the -I (capital i) flag with ruby, or by manipulating the $LOAD_PATH global at runtime (it's an ordinary array)
<dankest>
apeiros: Is that normally done on a per-app basis?
smathieu_ has quit [Remote host closed the connection]
xcthulhu has joined #ruby
<apeiros>
dankest: depends. I use a runner which does my setup and do `ruby test/runner.rb`
ChristianS has quit [Excess Flood]
<duper>
apeiros: sounds like a good way to load trojans;)
<apeiros>
others use `ruby -Ilib test/yourtest.rb`
<apeiros>
others do whatever
smathieu has joined #ruby
ChristianS has joined #ruby
<dankest>
apeiros: Any idea you know off the top of your head where there's documetation for this kind of thing?
mmitchell has quit [Remote host closed the connection]
<apeiros>
duper: unpack for low level, adressable (I think) for higher level
<apeiros>
dankest: not really.
<apeiros>
I can point you to code of my own, if that helps you