apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
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
<kvda> r0bglees0n, thanks :) i'll look up nanoc
Tricon has quit [Quit: Linkinus - http://linkinus.com]
<r0bglees0n> http://nanoc.ws/
<r0bglees0n> if you need to sell that might help
<r0bglees0n> but that web service i talked about doesn't exist, you'd need to write your own
<r0bglees0n> its not hard
<r0bglees0n> if you wanted to learn ruby it'd be a good task
<kvda> got it, thanks r0bglees0n
<kvda> and pontiki_
cpruitt has quit [Ping timeout: 245 seconds]
<kvda> no replies in #python, popl can sleep tonight
czchen has joined #ruby
dhruvasagar has joined #ruby
mary5030 has joined #ruby
<r0bglees0n> yeah you'd just POST a JSON payload
<kvda> sounds like a good module for nanoc
<r0bglees0n> {"path": "/home/sites/site1/documents/index.md", content: "Hello, world"}
<r0bglees0n> so you dont even need the initial read
<r0bglees0n> if you dont mind overwriting :P
jacktrick has quit [Quit: Leaving]
<r0bglees0n> there's security concerns there too
<r0bglees0n> you'd need to sanitize the path
narcan has quit [Quit: Linkinus - http://linkinus.com]
<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]
sayan has joined #ruby
smathieu_ has joined #ruby
hanmac has quit [Ping timeout: 276 seconds]
rodrigo has quit [Quit: Leaving...]
tobyo1 has quit [Ping timeout: 268 seconds]
robustus has quit [Ping timeout: 248 seconds]
smathieu has quit [Ping timeout: 268 seconds]
Levin_22 has quit [Quit: Levin_22]
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]
Boohbah_ is now known as Boohbah
burlyscudd has joined #ruby
adeponte has joined #ruby
<denysonique> tricky module question: https://gist.github.com/denysonique/5ef95b6de70f7649d84a
<denysonique> How do I make this work
haxrbyte has joined #ruby
<denysonique> Is there a way to tell in which module a class has been defined?
Arya_ has quit [Ping timeout: 256 seconds]
Lewix has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
v0n has quit [Ping timeout: 264 seconds]
anay has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
v0n has joined #ruby
graydot has joined #ruby
anay has joined #ruby
GeissT has joined #ruby
renderful has joined #ruby
Kruppe has joined #ruby
wsterling has joined #ruby
GeissT has quit [Read error: Connection reset by peer]
Arya_ has joined #ruby
GeissT has joined #ruby
burlyscudd has quit [Ping timeout: 246 seconds]
renderful has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 240 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
wmoxam has quit [Ping timeout: 264 seconds]
Shirakawasuna has joined #ruby
Arya_ has quit [Ping timeout: 248 seconds]
kofno has quit [Remote host closed the connection]
anay has quit [Remote host closed the connection]
renderful has joined #ruby
<louism2wash> what is this syntax __method__ ?
Arya_ has joined #ruby
cj3kim has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
kofno has joined #ruby
DeanH has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> >> def foo; p __method__; end; foo
<eval-in> bnagy => :foo ... (https://eval.in/38841)
cj3kim has quit [Ping timeout: 264 seconds]
haxrbyte_ has joined #ruby
Arya_ has quit [Ping timeout: 260 seconds]
hanmac1 has joined #ruby
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.
Mattix has joined #ruby
mansi has joined #ruby
<r0bglees0n> MyModel.select(:created_at).where({…}).each_slice(2).map { |(x,y)| x.created_at - y.created_at }
rfizzle has quit [Quit: Leaving]
<r0bglees0n> there you have an array of distance
<r0bglees0n> s
krainboltgreene has quit [Ping timeout: 264 seconds]
kevinykchan has joined #ruby
ilyam has joined #ruby
anonymuse has quit [Remote host closed the connection]
gazarsgo has joined #ruby
<DocEternal> Ok, I'll give that a try. Thanks much!
krainboltgreene has joined #ruby
<r0bglees0n> yeah you might need to modify it
<r0bglees0n> but it'll be close to what you want
brennanMKE has joined #ruby
graydot has quit [Quit: graydot]
<tehTinMan> so... is rubinius better than plain ol' ruby?
<r0bglees0n> tehTinMan: to develop a language, i'd say so
<DocEternal> Yeah, I can see where I might already. I'm just really new to ruby.
<DocEternal> It's a good start though. Thanks a lot.
<r0bglees0n> sure np
<tehTinMan> r0bglees0n: I understand it's a LOT faster... but just in general is it better (not related to what i'm working on, random question)
mansi has quit [Ping timeout: 264 seconds]
<r0bglees0n> for some things it is faster
<r0bglees0n> for some things it is not
<r0bglees0n> generally, MRI 1.9 is faster
emergion has joined #ruby
<r0bglees0n> and for some things, rubinius outperforms MRI
narcan has quit [Quit: Textual IRC Client: www.textualapp.com]
cantonic has quit [Quit: cantonic]
<tehTinMan> I guess math heavy things go faster?
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.]
<bnagy> >> a=[1,3,6,9,14]; a.zip( a.each_cons(2).map {|a,b| b-a}.unshift(0))
<eval-in> bnagy => [[1, 0], [3, 2], [6, 3], [9, 3], [14, 5]] (https://eval.in/38843)
<bnagy> then you can sort that by the distance ( second vaue )
burlyscudd has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
<r0bglees0n> >> [1,2,3,4,5].each_cons(2).to_a
<eval-in> r0bglees0n => [[1, 2], [2, 3], [3, 4], [4, 5]] (https://eval.in/38844)
<r0bglees0n> as bnagy said, DocEternal
nignaztic has quit [Read error: Connection reset by peer]
<r0bglees0n> replace each_slice with that
nignaztic has joined #ruby
<DocEternal> Thanks bnagy, thanks r0b!
vlad_sta_ has joined #ruby
johnnyfuchs has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
johnnyfuchs has quit [Remote host closed the connection]
rh1n0 has quit [Quit: -- I'm out --]
moos3 has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has quit [Ping timeout: 268 seconds]
hamakn has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
narcan has joined #ruby
bigmac_ has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
Arya_ has quit [Ping timeout: 246 seconds]
hamakn has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
bigmac has quit [Read error: Operation timed out]
nathancahill has quit [Quit: nathancahill]
yfeldblum has joined #ruby
Arya_ has joined #ruby
hanmac1 has joined #ruby
cj3kim_ has joined #ruby
anay has joined #ruby
Kruppe has quit [Remote host closed the connection]
nathancahill has joined #ruby
hanmac1 has quit [Read error: Operation timed out]
DanKnox is now known as DanKnox_away
cj3kim has quit [Ping timeout: 264 seconds]
gazarsgo has quit [Quit: gazarsgo]
Fire-Dragon-DoL has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
thams has joined #ruby
butblack has joined #ruby
bobtheuser has joined #ruby
narcan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chihhsin has quit [Quit: leaving]
hamakn_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Quit: later!]
bobtheuser has quit [Client Quit]
chihhsin has joined #ruby
hamakn has joined #ruby
dclist has joined #ruby
dclist has quit [Remote host closed the connection]
chihhsin has quit [Client Quit]
chihhsin has joined #ruby
fbernier has joined #ruby
chihhsin has quit [Client Quit]
chihhsin has joined #ruby
chihhsin has quit [Client Quit]
chihhsin has joined #ruby
kofno has quit [Remote host closed the connection]
butblack has left #ruby [#ruby]
krz has joined #ruby
kofno has joined #ruby
ssvo has joined #ruby
Deele has joined #ruby
dhruvasagar has joined #ruby
smathieu_ has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 276 seconds]
chihhsin has quit [Quit: leaving]
chihhsin has joined #ruby
vlad_starkov has joined #ruby
ssvo has quit [Ping timeout: 264 seconds]
cj3kim_ has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
Kar- has joined #ruby
xavier23 has quit [Quit: xavier23]
graydot has joined #ruby
Astral__ has quit [Read error: Connection reset by peer]
inomataj has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
sayan has quit [Ping timeout: 240 seconds]
Astral__ has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
chihhsin has quit [Quit: leaving]
mansi has joined #ruby
chihhsin has joined #ruby
tonini has joined #ruby
xjunior has quit [Ping timeout: 240 seconds]
cyong has joined #ruby
inomataj has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
nathancahill has quit [Quit: nathancahill]
mansi has quit [Ping timeout: 264 seconds]
jblack has quit [Ping timeout: 246 seconds]
mahmoudimus has joined #ruby
jonahR has quit [Quit: jonahR]
bluOxigen has joined #ruby
jonahR has joined #ruby
burlyscudd has joined #ruby
louism2wash has joined #ruby
tommyvyo has quit [Quit:]
chihhsin has quit [Quit: leaving]
chihhsin has joined #ruby
davedev24 has quit [Remote host closed the connection]
cj3kim has quit [Read error: Connection reset by peer]
DocEternal has left #ruby [#ruby]
cj3kim has joined #ruby
DocEternal has joined #ruby
burlyscudd has quit [Ping timeout: 248 seconds]
davedev24 has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
cha1tanya has quit [Ping timeout: 256 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
axeman- has joined #ruby
kofno has joined #ruby
Solnse has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
ayaz has joined #ruby
jalcine has joined #ruby
twoism has quit [Remote host closed the connection]
echevemaster has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
kobain has quit [Quit: El motor por excelencia http://www.europio.org/]
resure has joined #ruby
wallerdev has quit [Quit: wallerdev]
kofno has quit [Ping timeout: 264 seconds]
wsterling has quit [Remote host closed the connection]
chihhsin has quit [Quit: leaving]
chihhsin has joined #ruby
havenwood has joined #ruby
avril14th has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
fredjean has joined #ruby
k0rupted has joined #ruby
<rickruby> if I have something like a = [[1,2,3], [1,2,3]]
Domon_ has quit [Remote host closed the connection]
<rickruby> how can I do something like a.delete(2)
<rickruby> to end up with a = [[1,3],[1,3]] ?
hanmac1 has joined #ruby
<rickruby> aha! nevermind figured it out
<matti> ;)
<rickruby> a.each {|i| i.delete(2)}
<rickruby> been trying to write a sudoku solver for like 3 days now lol
<matti> Hehe
<matti> Have fun ;]
ehaliewicz has quit [Ping timeout: 248 seconds]
hanmac1 has quit [Ping timeout: 264 seconds]
tomzx_mac has quit [Ping timeout: 260 seconds]
shadoi has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
vlad_starkov has joined #ruby
thams has quit [Quit: thams]
optimusprimem has joined #ruby
anildigital_away is now known as anildigital
asteve has joined #ruby
vikhyat has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
anildigital is now known as anildigital_away
krainboltgreene has quit [Ping timeout: 248 seconds]
yankov1 has joined #ruby
Arya_ has quit [Ping timeout: 276 seconds]
echevemaster has joined #ruby
echevemaster has joined #ruby
_Andres has joined #ruby
anildigital_away is now known as anildigital
smathieu_ has joined #ruby
Domon_ has joined #ruby
ananthakumaran has joined #ruby
Arya_ has joined #ruby
io_syl has joined #ruby
krainboltgreene has joined #ruby
apeiros_ has joined #ruby
ffio has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
smathieu_ has quit [Ping timeout: 248 seconds]
mansi has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RichardBaker has quit [Ping timeout: 276 seconds]
RichardBaker has joined #ruby
burlyscudd has joined #ruby
joast has quit [Ping timeout: 256 seconds]
mansi has quit [Ping timeout: 248 seconds]
fwchld has joined #ruby
burlyscudd has quit [Ping timeout: 248 seconds]
<fwchld> howdy
apeiros_ has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
anay has quit [Remote host closed the connection]
noop has joined #ruby
yankov1 has left #ruby [#ruby]
anildigital is now known as anildigital_away
cha1tanya has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
ChristianS has quit [Excess Flood]
tatsuya__ has joined #ruby
ChristianS has joined #ruby
tatsuya_o has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
badquanta has joined #ruby
jprovazn has joined #ruby
threesome has joined #ruby
fredjean has quit [Ping timeout: 264 seconds]
Eldariof-ru has quit [Ping timeout: 268 seconds]
ebanoid has joined #ruby
aganov has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
Arya_ has quit [Ping timeout: 256 seconds]
wargasm1 has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
hanmac1 has joined #ruby
joast has joined #ruby
obs has joined #ruby
Arya_ has joined #ruby
workmad3 has joined #ruby
fwchld has quit [Quit: Textual IRC Client: www.textualapp.com]
fwchld has joined #ruby
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?
<sevenseacat> DocEternal: define the constant.
<Kelet> >> test = test.to_s + 'test'
<eval-in> Kelet => "test" (https://eval.in/38847)
burlyscudd has joined #ruby
spectre has quit [Client Quit]
<Kelet> >> test = 'lel'; test = test.to_s + 'test'
<eval-in> Kelet => "leltest" (https://eval.in/38848)
spectre| has joined #ruby
<Kelet> >> (test ||= '') << 'test'
<eval-in> Kelet => "test" (https://eval.in/38849)
<goleldar> Kelet: thanks :)
<Kelet> >> test = 'lel'; (test ||= '') << 'test'
<eval-in> Kelet => "leltest" (https://eval.in/38850)
<sevenseacat> DocEternal: please don't PM people without asking first.
<Kelet> To be completely honest I would probably just initialize it beforehand for simplicity
iFire has joined #ruby
<Kelet> Or rather readability
<goleldar> ahh ok
sleetdrop has joined #ruby
<Kelet> But up to you of course
<iFire> is there a simple way of unzipping a file from ruby
<goleldar> ya i am just trying to figure out what is best practice
<iFire> other than using system blah
sleetdrop has quit [Client Quit]
<Kelet> i don't think there is a commonly used idiom
codecop has joined #ruby
<Kelet> for initializing or appending depending on if it exists
<Kelet> sort of related to ||= as with my second example which is a common idiom
<Kelet> but meh
Alaude_ has joined #ruby
Marsthemanwithth has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
apeiros has joined #ruby
heftig has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 260 seconds]
<goleldar> this seems pretty readably (test ||='') << 'hello'
<goleldar> err readable
<sevenseacat> no, no it does not
<goleldar> dang.. ok just trying to make it easy for the next guy
AndChat| has quit [Ping timeout: 276 seconds]
<Kelet> Yeah, just initializing it to '' if needed then appending to it is the most readable or obvious
anildigital_away is now known as anildigital
timonv has joined #ruby
<goleldar> have you guys checked out exercism.io yet? pretty fun
hamakn has joined #ruby
tris has quit [Ping timeout: 266 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<apeiros> exorcism.io is more fun
tonini has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 251 seconds]
Xeago has joined #ruby
wargasm has joined #ruby
charliesome has joined #ruby
<zendeavor> apeiros: liar =[
<apeiros> :)
<apeiros> I'll admit, I haven't even visited the url
LucidDreamZzZz has joined #ruby
JohnBat26 has joined #ruby
pranny has joined #ruby
alfreddba has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
Alina-malina has joined #ruby
hamakn has quit [Ping timeout: 276 seconds]
<zendeavor> i had the same notion
hamakn has joined #ruby
tatsuya__ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
afd___ has joined #ruby
tonini has joined #ruby
hogeo has joined #ruby
<rickruby> wohoo my sudoku solver is getting closer to an answer
goodgame has joined #ruby
<zendeavor> pastebin.com suckssss
Mathieu_ has joined #ruby
<rickruby> what is better to use ?
<pontiki_> gist.github.com
<sevenseacat> +1
<zendeavor> sprunge, ix, gist
afd__ has quit [Ping timeout: 264 seconds]
<zendeavor> i prefer code dumps on sprunge or ix, personally
hogeo_ has quit [Ping timeout: 268 seconds]
<pontiki_> fair
<zendeavor> gist is nice if you're editing the code and showing it frequently as every gist is really a git repo
<rickruby> cool will check those out
<louism2wash> what happens if you 'load' a file twice( ie load 'example_library.rb')
<pontiki_> but i like multiple files on gist
<pontiki_> and, yeah, gist => git repo
<zendeavor> indeed, multiple files work well on gist also because of the repo mechanic
<pontiki_> louism2wash: it loads it again
i_s has quit [Remote host closed the connection]
ffio has joined #ruby
mansi has joined #ruby
Alaude_ has quit []
filipe has joined #ruby
senayar has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
Alina-malina has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Read error: Connection timed out]
Soliah has joined #ruby
ananthakumaran has joined #ruby
fridim_ has quit [Read error: Operation timed out]
seriously_random has joined #ruby
seriously_random has quit [Changing host]
seriously_random has joined #ruby
Jalada has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
cads has quit [Ping timeout: 268 seconds]
<seriously_random> How do I check if self is iterator, but not an array?
intuxicated has quit [Ping timeout: 256 seconds]
hanmac has joined #ruby
afd__ has joined #ruby
afd___ has quit [Ping timeout: 260 seconds]
intuxicated has joined #ruby
Xeago has quit [Remote host closed the connection]
Al_ has joined #ruby
GeissT has quit [Ping timeout: 276 seconds]
<pontiki_> by iterator, do you mean Enumerable?
banghouse has quit [Ping timeout: 276 seconds]
<pontiki_> >> h={};h.class.ancestors.include?(Enumerable) && !(h.class === Array)
<eval-in> pontiki_ => true (https://eval.in/38851)
<pontiki_> i bet there's an easier way
io_syl has quit [Quit: io_syl]
<pontiki_> >> h={};h.methods.include?(each) && !(h.class===Array)
<eval-in> pontiki_ => undefined local variable or method `each' for main:Object (NameError) ... (https://eval.in/38852)
<pontiki_> >> h={};h.methods.include?(:each) && !(h.class===Array)
<eval-in> pontiki_ => true (https://eval.in/38853)
<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]
Arya_ has joined #ruby
axeman- has joined #ruby
jalcine has joined #ruby
darkc0met has joined #ruby
mansi has joined #ruby
niceguyjames has joined #ruby
deeepblue_ has left #ruby [#ruby]
Al_ has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
axeman- has quit [Ping timeout: 256 seconds]
axeman- has joined #ruby
joonty has quit [Quit: WeeChat 0.4.1]
mansi has quit [Ping timeout: 246 seconds]
Al_ has quit [Client Quit]
Solnse has quit [Ping timeout: 240 seconds]
hamakn has quit [Read error: Connection reset by peer]
fredjean has joined #ruby
blackmesa has joined #ruby
Marsthemanwithth has quit [Ping timeout: 260 seconds]
tomaw has quit [Quit: Quitting]
mercwithamouth has joined #ruby
luckyruby has joined #ruby
joonty has joined #ruby
tomaw has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
<dawkirst> Hi, in the context of unit testing, what would be in test/test_helper.rb?
joonty has quit [Client Quit]
joonty has joined #ruby
fgo has quit [Remote host closed the connection]
zz_michael_mbp is now known as michael_mbp
Marsthemanwithth has joined #ruby
jlebrech has quit [Read error: Connection reset by peer]
ewnd9 has joined #ruby
hamakn has joined #ruby
fgo has joined #ruby
tonini has quit [Remote host closed the connection]
tonini_ has joined #ruby
juo100_ has joined #ruby
heftig has quit [Quit: Quitting]
elaptics`away is now known as elaptics
<zendeavor> for your tests to require?
hanmac1 has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
heftig has joined #ruby
<zendeavor> some global Test methods?
Xeago has joined #ruby
troessner has joined #ruby
hanmac has quit [Ping timeout: 248 seconds]
adeponte has quit [Remote host closed the connection]
ffio has quit [Ping timeout: 276 seconds]
krainbol_ has joined #ruby
<dawkirst> zendeavor, and what would typically be in test_helper.rb? The testing framework and my classes?
<dawkirst> If I say "in" I mean required in.
<sevenseacat> the setup for your test environment.
<sevenseacat> ie. configuring your test framework
cool has left #ruby [#ruby]
bamdad has joined #ruby
krainboltgreene has quit [Ping timeout: 276 seconds]
Mon_Ouie has joined #ruby
<zendeavor> there are plenty of examples you could go by
goleldar has quit [Ping timeout: 268 seconds]
elaptics is now known as elaptics`away
nomenkun has joined #ruby
tatsuya_o has joined #ruby
burlyscudd has joined #ruby
sam113101 is now known as sam113101_afk
sam113101_afk is now known as sam113101
lkba has quit [Ping timeout: 248 seconds]
elaptics`away is now known as elaptics
niceguyjames has quit [Quit: Computer has gone to sleep.]
Marsthemanwithth has quit [Ping timeout: 240 seconds]
kid_icarus has quit [Ping timeout: 264 seconds]
intuxicated has quit [Ping timeout: 256 seconds]
i_s has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
jonahR has quit [Quit: jonahR]
ephemerian has joined #ruby
ffio has joined #ruby
Skaflem has joined #ruby
ndrei has joined #ruby
swordsmanz has joined #ruby
intuxicated has joined #ruby
<dawkirst> thanks
krainbol_ has quit [Ping timeout: 240 seconds]
tonini_ has quit [Quit: Lost terminal]
rh1n0 has joined #ruby
tonini has joined #ruby
i_s has quit [Ping timeout: 268 seconds]
cj3kim has joined #ruby
shaunbaker has joined #ruby
cj3kim has quit [Ping timeout: 260 seconds]
shaunbak_ has joined #ruby
jmimi has joined #ruby
Arya_ has quit [Ping timeout: 264 seconds]
eaWPq4nU has joined #ruby
jlebrech has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
mklappstuhl has joined #ruby
Arya_ has joined #ruby
LucidDreamZzZz has quit [Ping timeout: 240 seconds]
zomgbie has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
<jlebrech> why can't my spec find the method in the module? https://gist.github.com/jlebrech/fa7249fb205934fb4ff6
himsin has quit [Quit: himsin]
trepidaciousMBR has joined #ruby
<r0bglees0n> jlebrech: because it's not a module function/singleton method/class method.
TMM has quit [Quit: Bye]
<r0bglees0n> it's an instance method that's been mixed into your tests scope
<r0bglees0n> so its available as google_auth_request_link
TMM has joined #ruby
blaxter_ has joined #ruby
LucidDreamZzZz has joined #ruby
<r0bglees0n> add def self.google_auth_request_link if you want it to work like that
<jlebrech> r0bglees0n, do i still include it?
mansi has joined #ruby
<r0bglees0n> yes, you dont understand what i said if you think you dont
<jlebrech> how do you test helpers?
<r0bglees0n> by including it, its in your scope
<e-dard> Is there any difference in doing each on an Array versus doing map?
<r0bglees0n> e-dard: there is.
<e-dard> I imagine that map would be slightly more expensive
<sevenseacat> e-dard: look at the return values of the two methods.
<e-dard> Sorry, to clarify — I know what obvious differences are (return value etc), I mean in terms of performance :)
<jlebrech> r0bglees0n, this still doesn't work https://gist.github.com/jlebrech/fa7249fb205934fb4ff6
<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
<r0bglees0n> depends if you mutate or not
<denysonique> How do I make this work? https://gist.github.com/denysonique/5ef95b6de70f7649d84a
<r0bglees0n> if you mutate the objects are the same
<denysonique> Simple or tricky module question ↑
Spami has joined #ruby
<r0bglees0n> denysonique: i answered your question hours ago
<sevenseacat> haha
<denysonique> need to 'refresh' my irc client
supki has quit [Ping timeout: 260 seconds]
obs has quit [Quit: Konversation terminated!]
<r0bglees0n> denysonique: the answer is constant lookup is finding A::Bar, you need to fully qualify it with B::Bar.first_name.
<e-dard> r0bglees0n: ah never mind, I re-read what I did and realised something.
<e-dard> I can use map safely after all
<denysonique> r0bglees0n: yes this is obvious. but I cannot do it this way as B will be named randomly
supki has joined #ruby
<r0bglees0n> denysonique: you'll need to describe your problem more.
<r0bglees0n> you never said that
<r0bglees0n> you said whats wrong with this code
<r0bglees0n> i told you the error
chee has quit [Ping timeout: 248 seconds]
Desert_eagle has quit [Remote host closed the connection]
chee has joined #ruby
luckyruby has quit [Remote host closed the connection]
cj3kim has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
adambeynon has joined #ruby
mengu has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
himsin has joined #ruby
<r0bglees0n> denysonique: oh sorry
<r0bglees0n> denysonique: its solveable
rdark has joined #ruby
<r0bglees0n> denysonique: but you'd need to include B into A, or A::Foo.
<denysonique> I just woke up and figuring it out how to explain, but if you have already figured it out, tell me
<r0bglees0n> ah nvm
<r0bglees0n> too tired
<denysonique> figuring out how to explain*
<r0bglees0n> Bar is a class
<denysonique> r0bglees0n: please fork my gist
<denysonique> I am trying to solve it this way for now:
<denysonique> send("#{module_name}::#{class_name}")
<denysonique> module_name, class_name = self.class.to_s.split('::')
<r0bglees0n> i dont really have a solution without understanding where 'B' comes from and why it has a random name.
<r0bglees0n> that wont work
<r0bglees0n> send() is for method calls
<r0bglees0n> you want const_get
<denysonique> r0bglees0n: ok, I will gist you the full code
<r0bglees0n> >> class Foo; class Bar; $x = self.class.to_s.split('::').inject { |mod| const_get(mod) }; end; end; $x
<eval-in> r0bglees0n => "Class" (https://eval.in/38864)
<r0bglees0n> oops
<r0bglees0n> >> class Foo; class Bar; $x = self.to_s.split('::').inject { |mod| const_get(mod) }; end; end; $x
<eval-in> r0bglees0n => Foo (https://eval.in/38865)
blackmesa has quit [Ping timeout: 240 seconds]
matthewford has joined #ruby
<matthewford> Hi
<matthewford> anyone know the reason for this error?
<matthewford> [FATAL] Failed to create timer thread (errno: 11)
<matthewford> seeing my rake task die
<r0bglees0n> >> class Foo; class Bar; end; end; "Foo::Bar".split('::').inject { |mod| Object.const_get(mod) };
<eval-in> r0bglees0n => Foo (https://eval.in/38866)
<matthewford> hrm.. is it a process limit
blueOxigen has joined #ruby
<r0bglees0n> weird
<hoelzro> errno 11?
<r0bglees0n> too tired
<hoelzro> matthewford: what OS?
<r0bglees0n> >> class Foo; class Bar; end; end; "Foo::Bar".split('::').inject(Object) { |mem, mod| mem.const_get(mod) };
<eval-in> r0bglees0n => Foo::Bar (https://eval.in/38868)
<r0bglees0n> ok
<matthewford> linux
<r0bglees0n> so there you go
<r0bglees0n> i think i will go to sleep now
obs has joined #ruby
<hoelzro> for me 11 is EAGAIN
ffio has quit [Ping timeout: 268 seconds]
<hoelzro> matthewford: do you have some code to go with the error?
rohit has joined #ruby
canton7 has quit [Ping timeout: 248 seconds]
nari has quit [Ping timeout: 245 seconds]
<r0bglees0n> >> RUBY_VERSION
<eval-in> r0bglees0n => "2.0.0" (https://eval.in/38870)
bluOxigen has quit [Ping timeout: 264 seconds]
<r0bglees0n> >> class Foo; class Bar; end; end; Object.const_get("Foo::Bar")
<eval-in> r0bglees0n => Foo::Bar (https://eval.in/38871)
emergion has joined #ruby
<r0bglees0n> yay ruby 2
<matthewford> ruby 1.9.3p392
cosss has joined #ruby
<matthewford> I do, however it's a bit hairy.. The method is being called in a rake task which loops through a bunch of models can does a system call: https://github.com/alphagov/whitehall/blob/3f8ca442d3f57df6f654bc6813d63a88e2153d14/app/models/attachment_data.rb#L35
schickung has joined #ruby
<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
rohit has quit [Client Quit]
sevenseacat has quit [Quit: Leaving.]
ilyam has quit [Quit: ilyam]
Arya_ has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
adeponte has joined #ruby
<epitron> >> ObjectSpace
<eval-in> epitron => ObjectSpace (https://eval.in/38875)
<epitron> oh ho!
bamdad has quit [Quit: bamdad]
r0bglees0n has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Ping timeout: 256 seconds]
chihhsin has quit [Quit: leaving]
chihhsin has joined #ruby
<denysonique> In Ruby I remember that you can do the following:
<denysonique> foo, rest_of_array* = ['foo', 'hax', 1 ,2]
<denysonique> Or something in that manner
emergion has quit [Quit: Computer has gone to sleep.]
<hoelzro> I think it's *rest
adeponte has quit [Ping timeout: 264 seconds]
tonini has quit [Quit: Lost terminal]
<denysonique> >> foo, *bar = [1,2,3];
<eval-in> denysonique => [1, 2, 3] (https://eval.in/38876)
viszu has joined #ruby
tonini has joined #ruby
<denysonique> >> foo
<eval-in> denysonique => undefined local variable or method `foo' for main:Object (NameError) ... (https://eval.in/38877)
<denysonique> >> foo, *bar = [1,2,3]; foo; bar
<eval-in> denysonique => [2, 3] (https://eval.in/38878)
krish has joined #ruby
tomsthumb has joined #ruby
<denysonique> hoelzro: thanks
krish is now known as Guest59077
tonini has quit [Client Quit]
tonini has joined #ruby
Zolo has joined #ruby
Catbuntu has joined #ruby
tonini has quit [Client Quit]
tonini has joined #ruby
mklappst_ has joined #ruby
tonini has quit [Client Quit]
tonini has joined #ruby
zmike123 has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
niklasb has joined #ruby
<Guest59077> i need to load my site fastly
pii3 has joined #ruby
Myrth has quit [Ping timeout: 268 seconds]
<pii3> i did gem install icalendar but it installed latest version of icalendar ,How can i install 1.1.6 ?
<Guest59077> what i need to i have database and many forms
Discordian93 has quit [Ping timeout: 250 seconds]
Zolo has quit [Remote host closed the connection]
<Guest59077> gem install icalendar 1.1.6
emergion has joined #ruby
BizarreCake has joined #ruby
khismetix has joined #ruby
noname001 has joined #ruby
<Guest59077> pii3:gem install icalendar 1.1.6
<pii3> thansk
pii3 has left #ruby ["Leaving"]
emergion has quit [Client Quit]
gsvolt has quit [Ping timeout: 264 seconds]
ebanoid has quit [Quit: brbomgwtfbbq]
mansi has joined #ruby
gsvolt has joined #ruby
<Guest59077> i need to load my appln faster,what should i do??
zomgbie has joined #ruby
rh1n0 has quit [Quit: -- I'm out --]
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Xeago> Guest59077: pre-load it?
<Xeago> don't knwo what you want without more information
Liothen has quit [Quit: I Sleep!]
tonini has quit [Ping timeout: 248 seconds]
Liothen has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
<Guest59077> xeago: how to pre-load is there any gems
<Xeago> Guest59077: again, I don't know what you want
zomgbie has quit [Ping timeout: 260 seconds]
anildigital_away is now known as anildigital
<Guest59077> Xeago: i have site which is having complex database i will take time to load the pages,so i need to make them loaded fast.
tvw has joined #ruby
amacgregor has quit [Ping timeout: 240 seconds]
maxmanders has quit [Ping timeout: 246 seconds]
zomgbie has joined #ruby
Spooner has joined #ruby
bamdad has joined #ruby
sebastianb has quit [Ping timeout: 246 seconds]
maxmanders has joined #ruby
obs_ has joined #ruby
Kelet has quit [Read error: Connection reset by peer]
zmike123 has quit [Ping timeout: 264 seconds]
<Xeago> Guest59077: depends on your data
Villadelfia has joined #ruby
banister`sleepy has quit [Read error: Connection reset by peer]
obs has quit [Ping timeout: 246 seconds]
dagobah has joined #ruby
lkba has joined #ruby
zomgbie has quit [Ping timeout: 256 seconds]
ebanoid has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
blaxter_ is now known as blaxter
<seriously_random> Why is `attr_accessor` needed here: http://pastebin.com/t2vGC9LM
yshh has quit [Remote host closed the connection]
maxmanders has quit [Max SendQ exceeded]
<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]
burlyscudd has joined #ruby
xcv has joined #ruby
kofno has joined #ruby
ffio has joined #ruby
maxmanders has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
burlyscudd has quit [Ping timeout: 240 seconds]
ZuzzleBuzzer has joined #ruby
<whowantstolivefo> does it good good make practise with this guys ? http://testfirst.org/learn_ruby#install
zmike123 has joined #ruby
<whowantstolivefo> i've read basics and fundamentals of ruby and also started basic apps in ruby on rails
kaspergrubbe has quit [Remote host closed the connection]
blenheim15 has quit [Quit: blenheim15]
leto1 has joined #ruby
varfoo has quit [Read error: Connection reset by peer]
Spami has joined #ruby
Spami has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
pyritical11 has joined #ruby
osvico has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
Shirakawasuna has quit [Quit: Leaving]
timonv has quit [Remote host closed the connection]
kevinykchan has joined #ruby
banister`sleepy has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fryguy has quit [Read error: Connection reset by peer]
mansi has joined #ruby
fryguy has joined #ruby
mansi has quit [Remote host closed the connection]
maxmanders has joined #ruby
Aaron has joined #ruby
NealJ has quit [Quit: :c]
Aaron is now known as Guest42352
maxmanders has quit [Client Quit]
tealmage has joined #ruby
maxmanders has joined #ruby
jalcine has quit [Excess Flood]
postmodern has quit [Quit: Leaving]
noname001 has quit [Ping timeout: 256 seconds]
leto1 has quit [Quit: WeeChat 0.4.2-dev]
thinkinginy has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zzz has joined #ruby
hanmac1 has quit [Quit: Leaving.]
adkron has quit [Ping timeout: 264 seconds]
guiocavalcanti has joined #ruby
francky has joined #ruby
blackmesa has joined #ruby
Villadelfia_ has quit [Quit: Leaving.]
cj3kim has joined #ruby
machuga|away is now known as machuga
Zai00 has joined #ruby
codecop has joined #ruby
tonini has joined #ruby
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?
s00pcan has joined #ruby
<banister`sleepy> claymore: doesnt do that for me
<claymore> oh, so it doesn't... hmm
<claymore> I have a very similar bit of code that is
<hanmac> then you did something wrong without ()
jibi has joined #ruby
<claymore> what about puts "foo".is_a?(String) and false
Alina-malina has quit [Quit: Leaving]
<claymore> oh
failshell has joined #ruby
<claymore> yes, you're right
ananthakumaran has quit [Read error: Connection timed out]
* hanmac gets "you're right" points
tonini has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
ananthakumaran has joined #ruby
<claymore> thanks, I knew it was something stupid like that
vikhyat has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Neomex has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
kaspergrubbe has joined #ruby
Neomex has quit [Client Quit]
jibi_ has joined #ruby
mikecmpbll has joined #ruby
jibi has quit [Ping timeout: 246 seconds]
renderfu_ has joined #ruby
BRMatt has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
renderful has quit [Ping timeout: 268 seconds]
bluOxigen has joined #ruby
amacgregor has joined #ruby
zzz has quit [Quit: My damn controlling terminal disappeared!]
blueOxigen has quit [Ping timeout: 248 seconds]
fermion has joined #ruby
tonini has joined #ruby
Zeeraw has joined #ruby
claymore has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
niceguyjames has joined #ruby
tealmage has quit [Remote host closed the connection]
zomgbie has joined #ruby
Guest59077 has left #ruby [#ruby]
alfreddba has quit [Ping timeout: 264 seconds]
goodgame_ has joined #ruby
himsin has quit [Quit: himsin]
Lewix has quit [Remote host closed the connection]
zomgbie has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
moos3 has joined #ruby
goodgame has quit [Ping timeout: 256 seconds]
khismetix has joined #ruby
mklappst_ has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
burlyscudd has joined #ruby
freeayu__ has joined #ruby
yshh has joined #ruby
intuxicated has quit [Remote host closed the connection]
atyz has quit [Quit: Leaving...]
guiocavalcanti has quit [Remote host closed the connection]
renderful has joined #ruby
amacgregor has quit [Ping timeout: 276 seconds]
freeayu has quit [Ping timeout: 263 seconds]
k610 has joined #ruby
renderfu_ has quit [Ping timeout: 256 seconds]
gildo has joined #ruby
Mattix has quit [Quit: Leaving]
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
TheRealPygo is now known as pygospa
yshh has quit [Ping timeout: 276 seconds]
burlyscudd has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Read error: Operation timed out]
alfreddba has joined #ruby
platzhirsch has joined #ruby
alfreddba has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
s00pcan has quit [Read error: Operation timed out]
teddyp1cker has joined #ruby
tonini has quit [Quit: Lost terminal]
tonini has joined #ruby
lady_lancer has joined #ruby
tonini has quit [Client Quit]
Mathieu_ has quit [Quit: Mathieu_]
Xuerian has quit [Quit: No Ping reply in 180 seconds.]
vlad_starkov has joined #ruby
Xuerian has joined #ruby
schickung has left #ruby [#ruby]
tonini has joined #ruby
<lady_lancer> Can anyone tell me why Net::FTPConnectionError
<lady_lancer> occurs
<lady_lancer> on using Net.FTP.login()
amacgregor has joined #ruby
<lady_lancer> Thanks a lot
renderfu_ has joined #ruby
<lady_lancer> my login password are correct
renderful has quit [Ping timeout: 260 seconds]
chinkung has quit [Quit: Bye!]
vlad_starkov has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
bamdad has quit [Quit: bamdad]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
mneorr has joined #ruby
kaspergrubbe has joined #ruby
nari has joined #ruby
<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]
tkuchiki has joined #ruby
dash_ has joined #ruby
rlb3 has joined #ruby
alfreddba has joined #ruby
alfreddba has quit [Max SendQ exceeded]
dash_ is now known as d45h
d45h is now known as d45h2
d45h2 is now known as d45h
alfreddba has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
alfreddba has quit [Max SendQ exceeded]
xcthulhu has quit [Quit: xcthulhu]
nathancahill has quit [Quit: nathancahill]
_droid has joined #ruby
pranny has quit [Quit: Leaving.]
io_syl has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tricon_ has quit [Ping timeout: 248 seconds]
breakingthings has joined #ruby
<_droid> hi, I wanted to know if there is some kind of api that can interact with youtube links that can pick out the videos of that links.
thatRD has joined #ruby
Banistergalaxy has joined #ruby
<_droid> or at least some kinf of api that can interact with youtube
<_droid> would be great if someone could point them out to me
<zendeavor> sigh
xcthulhu has joined #ruby
mmitchell has joined #ruby
sambao21 has joined #ruby
JZTech101 has joined #ruby
maycon_ has joined #ruby
maycon_ has joined #ruby
maycon_ has quit [Changing host]
kiri_ has quit [Quit: Leaving]
kiri has joined #ruby
andrew565 has joined #ruby
enebo has quit [Quit: enebo]
tommyvyo has joined #ruby
cHarNe2 has joined #ruby
wallerdev has joined #ruby
codesoda has joined #ruby
maycon has quit [Ping timeout: 248 seconds]
diegoviola has joined #ruby
tommyvyo has quit [Excess Flood]
blackmesa has joined #ruby
xcv has joined #ruby
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
<_droid> ??
<hanmac> _droid: #rubyonrails ?
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ehc has quit [Quit: ehc]
<havenwood> _droid: config/database.yml, but yeah #RubyOnRails channel is for Rails
<zendeavor> sounds like a superfluous thing to know for the purposes of learning
<_droid> havenwood: ok but I'am I in the wrong place with this question?
bamdad has joined #ruby
_droid has quit [Remote host closed the connection]
_droid has joined #ruby
kpshek has quit []
<havenwood> _droid: #ruby is for Ruby and #rubyonrails is for Rails
blackmesa has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
_maes_ has joined #ruby
kpshek has joined #ruby
kpshek has quit [Client Quit]
<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
claymore has quit [Ping timeout: 276 seconds]
<andrew565> ghr: good question. This has worked well for me before, but it's pretty old: http://rio4ruby.com/rio/README.html
tricon_ has joined #ruby
spike|spiegel has joined #ruby
Al_ has quit [Quit: Al_]
JZTech101 has joined #ruby
jalcine has joined #ruby
_droid has quit [Quit: _droid]
kham has quit [Quit: WeeChat 0.4.1]
noname001 has joined #ruby
codecop_ has quit [Remote host closed the connection]
<andrew565> ghr: nvm, just noticed they last updated it September 2012, not that old after all. ;)
ehc has joined #ruby
<ghr> Looking at it now, thanks :)
Tricon has quit [Ping timeout: 260 seconds]
tomzx_mac has quit [Ping timeout: 246 seconds]
vindictive27 has joined #ruby
cpruitt has joined #ruby
sambao21 has joined #ruby
theRoUS has joined #ruby
jlebrech has quit [Quit: Ex-Chat]
jlebrech has joined #ruby
<rickruby> if I have [2] how can I get just 2 out of it ?
Arya_ has joined #ruby
<rickruby> my .to_s.to_i idea didn't work :/
niklasb has quit [Ping timeout: 240 seconds]
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> [2][0]
<andrew565> havenwood: clever. ;)
freezey has joined #ruby
ebanoid has quit [Quit: brbomgwtfbbq]
<rickruby> sweet that did it
<rickruby> thanks :)
tricon_ has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<ghr> andrew565 suppose you could make all the arguments optional and use setters to build up the object to return? http://pastie.org/8174509
Kabaka has quit [Remote host closed the connection]
<ghr> (made a mistake in collect, but you get the idea)
Arya_ has quit [Ping timeout: 250 seconds]
ChristianS has quit [Excess Flood]
BillCriswell has joined #ruby
noname001 has quit [Ping timeout: 240 seconds]
ChristianS has joined #ruby
TheBlackMan is now known as masterasia
Kabaka has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
<andrew565> ghr: at first glance that looks like it should work.
LnL7 has quit [Ping timeout: 240 seconds]
<dawkirst> Does Enumerable::find have an opposite?
amanmangal has joined #ruby
bamdad has quit [Quit: bamdad]
Banistergalaxy has quit [Ping timeout: 246 seconds]
<hoelzro> Enumerable::lose? =P
amanmangal has left #ruby [#ruby]
AndChat| has joined #ruby
masterasia has left #ruby [#ruby]
<hanmac> ghr you can let the initialize take an hash
vindictive27 has quit [Quit: vindictive27]
<ghr> hanmac yeah, similar principle I guess
davedev24 has joined #ruby
zachrab_ has joined #ruby
realDAB has joined #ruby
<dawkirst> Thanks
vindictive27 has joined #ruby
d45h has quit [Ping timeout: 240 seconds]
blackmesa has quit [Quit: WeeChat 0.4.1]
dawkirst has quit [Quit: dawkirst]
dawkirst has joined #ruby
<ghr> Suppose I'm used to defining `initialize` to mean new record, as opposed to a new instance, which may or may not be persisted somewhere
kid_icarus has joined #ruby
jonjo has joined #ruby
dhruvasagar has joined #ruby
alienaut has quit [Quit: Leaving.]
<jonjo> You have already activated rake 10.1.0, but your Gemfile requires rake 10.0.4. Using bundle exec may solve this
<jonjo> anyone help me with this
<rickruby> yes!!!!! finally!!!! my sudoku solver works
jbpros has quit [Quit: jbpros]
<ghr> jonjo `gem list rake` will show 10.1.0
burlyscudd has joined #ruby
<ghr> your Gemfile.lock will show it needs rake 10.0.4
Arya_ has joined #ruby
dash_ has joined #ruby
<ghr> but as rake 10.1.0 is the rake you're executing `rake blah`, it's getting a dependency mismatch
<ghr> bundle exec rake will invoke the version of rake specified in your Gemfile.lock
sayan has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
<rickruby> https://github.com/rickarubio/sudoku_solver now need to work on making my code presentable and more input options...
rhys has joined #ruby
<jonjo> rake (10.1.0, 10.0.4, 0.9.2.2)
tkuchiki has joined #ruby
bamdad has joined #ruby
<jonjo> bundler: exec needs a command to run
<jonjo> ?
<ghr> yep, but when you just run `rake` it uses 10.10.0
burlyscudd1 has joined #ruby
<ghr> yeah, `bundle exec rake`
blackmesa has joined #ruby
xcv has joined #ruby
<jonjo> Errors running test:units, test:functionals, and test:integration!
burlyscudd1 has quit [Client Quit]
<ghr> that's probably a #rubyonrails issue
v0n has joined #ruby
<zendeavor> rickruby: looks like a bunch of duplicated code
burlyscudd has quit [Ping timeout: 240 seconds]
MrThePlague has joined #ruby
cha1tanya has joined #ruby
mary5030 has joined #ruby
<jonjo> so many rooms lol
cortexman has joined #ruby
mneorr has quit [Remote host closed the connection]
<jonjo> they need to make computers more simeple :)
<ghr> :)
<rickruby> yeah a lot of that I need to figure out how to tidy up
<rickruby> and reduce the lines
mary5030 has quit [Remote host closed the connection]
noname001 has joined #ruby
niklasb has joined #ruby
gazarsgo has quit [Quit: gazarsgo]
<fryguy> rickruby: considering people have created sudoku solvers in 2 lines of ruby, you have a long ways to go
blackmesa has quit [Client Quit]
maycon_ has quit [Quit: Saindo]
<rickruby> 2 lines ??? oh man...
mary5030 has joined #ruby
ssvo has joined #ruby
storme has joined #ruby
blackmesa has joined #ruby
storme has left #ruby [#ruby]
kid_icarus has quit [Ping timeout: 256 seconds]
<hanmac> fryguy build an sudoku solver that search the internet for the correct answer instead of trying to solve it itself
<zendeavor> i'd like to see a 2 line solver
jmimi has left #ruby [#ruby]
<fryguy> obviously that is golfed, but it exists nonetheless
miskander has joined #ruby
storme has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
asteve has joined #ruby
<rickruby> cool
greenleaf108 has quit [Read error: Operation timed out]
alex__c2022 has joined #ruby
enebo has joined #ruby
cha1tanya has quit [Quit: cha1tanya]
storme has left #ruby ["Auf Wiedersehen."]
ananthakumaran has joined #ruby
Coolhand_ has quit [Remote host closed the connection]
Soopaman has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.1]
cortexman has quit [Quit: Leaving.]
nikeita has joined #ruby
Coolhand has joined #ruby
<nikeita> better way to do this:
<nikeita> self.city.capitalize! unless city.nil?
yfeldblum has joined #ruby
tbrock has joined #ruby
storme has joined #ruby
mansi has joined #ruby
<fryguy> nikeita: self.city.try(:capitalize!) might work there (forget how try returns things)
<DefV> city.try(:capitalize!)
<r0bglees0n> that only works in Rail
<r0bglees0n> s
<nikeita> yep i'm in rials
<DefV> city && city.capitalize!
brbcoding has joined #ruby
<havenwood> nikeita: `if city` instead of `unless city.nil`
<nikeita> i have to use self.
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
atyz has quit [Quit: Linkinus - http://linkinus.com]
ssvo has quit [Ping timeout: 246 seconds]
<nikeita> for assign in attrib model
burlyscudd has joined #ruby
arturaz has quit [Ping timeout: 248 seconds]
<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
amacgregor has quit [Ping timeout: 246 seconds]
<jonjo> can someone help me with this error http://pastebin.com/pXzARWrG
AndChat| has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
<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.
<jonjo> source :"https://rubygems.org" like so?
Banistergalaxy has joined #ruby
<havenwood> source 'https://rubygems.org'
<jonjo> rake aborted!
<jonjo> can't activate tzinfo (~> 0.3.12), already activated tzinfo-1.0.1. Make sure all dependencies are added to Gemfile
<jonjo> same problem
<kaspergrubbe> do you use bundle exec?
mneorr has joined #ruby
maz-dev has quit [Remote host closed the connection]
voodoofish has joined #ruby
<jonjo> yes
<jonjo> I am new to ruby
aganov has quit [Quit: aganov]
<kaspergrubbe> have you bundled?
<jonjo> bundle install?
<kaspergrubbe> No, just type: bundle
<jonjo> yes
<havenwood> jonjo: `bundle install` and just `bundle` are the same thing
<jonjo> i just noticed that :P
wsterling has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
wsterling has joined #ruby
pitzips has joined #ruby
sailias has joined #ruby
<jonjo> can't activate tzinfo (~> 0.3.12), already activated tzinfo-1.0.1. what do I do about this?
ffranz has joined #ruby
kobain has joined #ruby
geggam_ has joined #ruby
zachrab_ has quit []
Mattix has quit [Ping timeout: 246 seconds]
io_syl has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
ndrei has quit [Ping timeout: 268 seconds]
<BlakeRG> Can someone look at this snippet and tell if me i am doing my error handling correctly? http://pastebin.com/50zd8UzF
i_s has joined #ruby
sayan has joined #ruby
<bnagy> BlakeRG: no
Appineer has left #ruby [#ruby]
wsterling has quit [Ping timeout: 240 seconds]
<bnagy> never rescue Exception
renderful has joined #ruby
nathancahill has quit [Quit: nathancahill]
yxhuvud has joined #ruby
<bnagy> also I have never seen begin rescue else in my life
<BlakeRG> other than that, based on the code comments i put there, that logic flow is correct though?
<waxjar> it's valid
<waxjar> just not used very often
<bnagy> just do begin stuff more_stuff resue ...
<bnagy> yeah I know it's valid it's just bad
<BlakeRG> so without using the else, how do i know there was *no* exception thrown then?
<waxjar> rescue StandardError instead and you're good :)
<bnagy> but not rescuing Exception is a big deal
<BlakeRG> i got the code based on this: http://stackoverflow.com/a/2192010
<bnagy> just rescue
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
kham has quit [Client Quit]
<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?
io_syl has quit [Quit: io_syl]
Myconix has joined #ruby
<BlakeRG> most everything i can find recommends using it: http://stackoverflow.com/a/6280005
emergion has joined #ruby
<bnagy> ffs
ffio has quit [Quit: WeeChat 0.4.1]
S0da has quit [Ping timeout: 240 seconds]
<momomomomo> BlakeRG: If an exception isn't thrown, then everything was successful
graydot has quit [Ping timeout: 264 seconds]
<bnagy> begin; do_the_thing; log( " YES DID THE THING!! " ); rescue; log(" SHIT DID NOT DO THE THING " )
graydot has joined #ruby
<momomomomo> bnagy: you're worse than the C channel :p
mneorr has quit [Remote host closed the connection]
<BlakeRG> ah! i'm so stupid ok - makes sense now bnagy
<realDAB> bnagy: end :-)
RichardBaker has joined #ruby
<BlakeRG> because execution STOPS within the begin block if there was an exception right?
<bnagy> right
<BlakeRG> OK
mneorr has joined #ruby
<BlakeRG> now it makes sense
<BlakeRG> thank you waxjar bnagy momomomomo
<bnagy> soon as there's an exception you jump right to rescue
bigoldrock has quit [Ping timeout: 264 seconds]
<BlakeRG> ok, that is what i was not understanding
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
<hanmac> begin … else … is fine too if you want to part if from the real code
<bnagy> btw useful globals in rescue are $! ( last exception ) and $@ ( exception stack )
<waxjar> if you need to do something even though an exception was raised, you put it in the ensure block
<BlakeRG> bnagy: ah - i was wondering if that was possible as well, awesome :)
<waxjar> closing a db connection for example
<bnagy> I wish they were less cryptic, but I also want a pony
<momomomomo> or a CSV, or file, or anything :p
emergion has quit [Client Quit]
<BlakeRG> waxjar: right, i understand the ensure block - it's for cleanup; it is *always* ran
platzhirsch1 has joined #ruby
<havenwood> bnagy: ponies are awful and they bite
mediko has quit [Remote host closed the connection]
<bnagy> ponies are dreamy
<bnagy> if I had one I would brush its mane every day
<havenwood> never met one i've liked, horrid creatures!
<waxjar> you can do require "english" i believe and use sane variable names
<havenwood> :P
mneorr_ has joined #ruby
randomautomator has quit [Remote host closed the connection]
platzhirsch has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
rodacato has joined #ruby
randomautomator has joined #ruby
S0da has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
burlyscudd has quit [Ping timeout: 268 seconds]
mneorr has quit [Read error: Connection reset by peer]
randomautomator has joined #ruby
<bnagy> havenwood: uh.. um.. how did you have that link?
miskander has quit [Quit: miskander]
nkts has quit [Quit: -]
<BlakeRG> Thanks bnagy waxjar havenwood momomomomo
<BlakeRG> makes total sense now, guess i had a brain fart
dhruvasagar has joined #ruby
<momomomomo> BlakeRG: everyone has them :)
spectre| has quit [Quit: Leaving.]
rodacato has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 246 seconds]
gazarsgo has joined #ruby
<BlakeRG> and reading over this stackoverflow post, yes rescuing Exception looks very; very bad
spectre| has joined #ruby
monkegjinni has quit [Remote host closed the connection]
storme has quit [Remote host closed the connection]
mediko has joined #ruby
cortexman has joined #ruby
nbouscal has joined #ruby
cj3kim has joined #ruby
wsterling has joined #ruby
billy_ran_away_ has quit [Read error: Operation timed out]
cj3kim has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Ping timeout: 268 seconds]
TheNotary has joined #ruby
<TheNotary> does anyone know off hand why the windows ruby-installer doesn't just install TK by default, instead it prompts for that in a checkbox?
S0da has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
burlyscudd has joined #ruby
chihhsin_ has joined #ruby
ebanoid has quit [Quit: brbomgwtfbbq]
fbernier has quit [Ping timeout: 248 seconds]
chihhsin_ has quit [Client Quit]
dtcrshr has joined #ruby
theKingLizard has quit [Quit: Leaving.]
filipe has quit [Remote host closed the connection]
mediko has quit [Ping timeout: 256 seconds]
chihhsin_ has joined #ruby
Xeago has quit [Remote host closed the connection]
chihhsin_ has left #ruby [#ruby]
billy_ran_away has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<Myconix> TheNotary: because TK is huge
rodacato has joined #ruby
chihhsin_ has joined #ruby
obs_ has quit [Quit: Konversation terminated!]
chihhsin_ has quit [Client Quit]
bigoldrock has joined #ruby
<Myconix> also, if you use RVM, it's not installed by default anyway
chihhsin_ has joined #ruby
<TheNotary> oh yeah, that's a good point, it is a separate package after all
Lewix has joined #ruby
sambao21 has joined #ruby
<TheNotary> I guess I should consider myself lucky it's even a checkbox, ha
Nanuq has quit [Ping timeout: 245 seconds]
Czupa has joined #ruby
fgo has quit [Remote host closed the connection]
Notte has joined #ruby
kpshek has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chihhsin_ has quit [Client Quit]
joshmyers has joined #ruby
chihhsin_ has joined #ruby
zomgbie has quit [Ping timeout: 240 seconds]
chihhsin_ has quit [Client Quit]
<joshmyers> hey guys, is there a nicer way of doing this? https://gist.github.com/joshmyers/5b1f863d10acf5301668
joshmyers is now known as bubu
TheKurgan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 22.0/20130618035212]]
saarinen has joined #ruby
realDAB has quit [Quit: realDAB]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
<r0bgleeson> bubu: that code isnt valid
threesome has joined #ruby
<bubu> why
<hanmac> bnagy: http://eprint.iacr.org/2013/448 "side channel attacks" attacking L3Cache so its beyond VM borders ;D
dagobah has quit [Remote host closed the connection]
Skelz0r has quit [Ping timeout: 276 seconds]
<bubu> r0bgleeson: ?
ffio has joined #ruby
HAPPYFUNBALL has joined #ruby
apeiros has joined #ruby
<HAPPYFUNBALL> how would I use String.match() to match the string hatrav but not hatravdb?
mneorr_ has quit [Remote host closed the connection]
ffio has quit [Client Quit]
timonv has quit [Remote host closed the connection]
<zendeavor> learn regex
<hanmac> HAPPYFUNBALL: add \Z to your regex
<HAPPYFUNBALL> zendeavor you are very helpful. I hope you fucking die.
<HAPPYFUNBALL> thansk hanmac
dhruvasagar has quit [Ping timeout: 264 seconds]
<zendeavor> that's unnecessary.
rodacato has quit [Remote host closed the connection]
<HAPPYFUNBALL> so was your comment
<zendeavor> i'm sorry that documentation is out of your reach
bluOxigen has joined #ruby
<HAPPYFUNBALL> this almost works, right? /hatrav[^db]/
<ghr> HAPPYFUNBALL have you used http://rubular.com/ to tinker with the regex you're using?
gkunno has left #ruby ["Quit"]
<HAPPYFUNBALL> that's cool
<HAPPYFUNBALL> Imhave not
Czupa has quit [Remote host closed the connection]
kpshek has quit []
chihhsin_ has joined #ruby
<ghr> Very useful :)
spectre| has quit [Quit: Leaving.]
cads has joined #ruby
nomenkun has quit [Remote host closed the connection]
Skelz0r has joined #ruby
chihhsin_ has quit [Client Quit]
tbrock has quit [Quit: Computer has gone to sleep.]
rodacato has joined #ruby
<HAPPYFUNBALL> hatrav[^db]*
chihhsin_ has joined #ruby
chihhsin_ has quit [Client Quit]
<HAPPYFUNBALL> I bet zendeavor is a neckbeard and/or bronie
<ghr> now now…
<HAPPYFUNBALL> anyway, thansk for the assist
chihhsin_ has joined #ruby
HAPPYFUNBALL has left #ruby [#ruby]
chihhsin_ has quit [Client Quit]
javiferrer has joined #ruby
timonv has joined #ruby
ehc has quit [Quit: ehc]
chihhsin_ has joined #ruby
chihhsin_ has quit [Client Quit]
tbrock has joined #ruby
ffio has joined #ruby
<momomomomo> wow, zendeavor You weren't quite helpful, but that guy was over the top - anyone around to just ban him?
chihhsin_ has joined #ruby
zeade has joined #ruby
zomgbie has joined #ruby
mediko has joined #ruby
anonymuse has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
chihhsin_ has quit [Client Quit]
tacos1de has quit [Remote host closed the connection]
cj3kim has joined #ruby
<zendeavor> huh
tacos1de has joined #ruby
ehc has joined #ruby
<zendeavor> oh
chihhsin_ has joined #ruby
anonymus_ has joined #ruby
<zendeavor> i shouldn't need to be helpful when the definition of helpful is giving him the solution on a silver platter.
<zendeavor> i am a neckbeard though, totez.
chihhsin_ has quit [Client Quit]
<zendeavor> next time i'll go with 'try rubular'
ndrei has joined #ruby
freerobby1 has quit [Quit: Leaving.]
chihhsin_ has joined #ruby
<Veejay> hash.each {|k,v| something.send("#{k=}", v) } is a fairly common idiom in Ruby, is there a way to make that shorter somehow?
cj3kim has quit [Read error: Connection reset by peer]
chihhsin_ has quit [Client Quit]
rdark has quit [Quit: leaving]
chihhsin_ has joined #ruby
<bubu> can anyone help me with this really simple problem? https://gist.github.com/anonymous/a109311bfd1520224657#file--L5
Voodoofish430 has joined #ruby
chihhsin_ has quit [Client Quit]
<bubu> if d is 'demo' I need to set 'n' to something else, otherwise I want n to be the same as d ...
<bubu> there must be a better way to do this
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
chihhsin_ has joined #ruby
senayar has quit [Remote host closed the connection]
<matti> bubu: Use ternary.
r0bgleeson has quit [Quit: WeeChat 0.3.8]
<hanmac> Veejay: i dont think so, this is the shortest possible i think
chihhsin_ has quit [Client Quit]
<goleldar> join /#docker
<goleldar> oops
<bubu> matti: ternary? :)
kham has joined #ruby
DonRichie has joined #ruby
i_s has joined #ruby
<bubu> ah excellent
chihhsin_ has joined #ruby
<bubu> thank you! :)
kham has quit [Client Quit]
adeponte has joined #ruby
<matti> :>
chihhsin_ has quit [Client Quit]
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]
stuartrexking has joined #ruby
amacgregor has joined #ruby
troessner has quit [Quit: Leaving]
superscott[8] has joined #ruby
<BlakeRG> which of these is the "preferred" way if checking the condition? http://pastebin.com/TQY6Z48q
shadoi has quit [Ping timeout: 264 seconds]
Eldariof-ru has joined #ruby
chihhsin_ has joined #ruby
<bubu> matti: how the f*ck do I use a ternary?!
<bubu> lol
ffio has quit [Quit: WeeChat 0.4.1]
gazarsgo has quit [Quit: gazarsgo]
chihhsin_ has quit [Client Quit]
keen__ has joined #ruby
chihhsin_ has joined #ruby
smathieu has joined #ruby
<havenwood> BlakeRG: unless
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
ghr has quit [Quit: Computer has gone to sleep.]
cj3kim has joined #ruby
<Mon_Ouie> Or that
fernandoaleman has joined #ruby
<Trudko> >> (5/2).round(2)
<eval-in> Trudko => 2.0 (https://eval.in/39005)
<Trudko> ^^
maxmanders has quit [Quit: Computer has gone to sleep.]
<Trudko> i need result 2.50 havenwood
burlyscudd has quit [Read error: Connection reset by peer]
<havenwood> oh, a 0 on the end?
chihhsin_ has joined #ruby
burlyscudd has joined #ruby
asteve has joined #ruby
<havenwood> it'd have to be a string
ffio has joined #ruby
renderful has quit [Remote host closed the connection]
CalebMingle has joined #ruby
chihhsin_ has quit [Client Quit]
ChristianS has quit [Excess Flood]
<hanmac> >> require "mathm"; (5/2).round(2)
<eval-in> hanmac => (https://eval.in/39007)
dhruvasagar has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
ChristianS has joined #ruby
madumo has joined #ruby
Discordian93 has joined #ruby
<BlakeRG> Is there an "authoritative" ruby style guide? in PHP land we've got the PSR standards which are catching on
byprdct has joined #ruby
<Trudko> >> (5/2).to_s
<eval-in> Trudko => "2" (https://eval.in/39010)
<Trudko> havenwood: so how exactly would I do it?
<havenwood> BlakeRG: Github's Ruby style guide ain't bad: https://github.com/styleguide/ruby
<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)
hamakn has quit [Ping timeout: 248 seconds]
nari has joined #ruby
<hanmac> >> require "mathn"; (5/2).round(2)
<eval-in> hanmac => /tmp/execpad-3c81709da002/source-3c81709da002:2: [BUG] Segmentation fault ... (https://eval.in/39012)
<hanmac> Löl?
<Trudko> >> 5.fdiv(2).round(2)
<eval-in> Trudko => 2.5 (https://eval.in/39013)
<havenwood> :O
<Trudko> >> 5.fdiv(2).round(2).to_s
<eval-in> Trudko => "2.5" (https://eval.in/39014)
TheNotary has joined #ruby
<Trudko> well still no 2.5
<spike|spiegel> nice
chihhsin_ has quit [Client Quit]
<Trudko> *2.50
Nilium has quit [Ping timeout: 276 seconds]
<havenwood> Trudko: #ljust
<Mon_Ouie> >> "%2.f" % 2.5
<eval-in> Mon_Ouie => " 2" (https://eval.in/39015)
Zespre has joined #ruby
<Mon_Ouie> >> "%.2f" % 2.5
<eval-in> Mon_Ouie => "2.50" (https://eval.in/39016)
<havenwood> ooh
<Trudko> >> %.2f%(5/2)
<eval-in> Trudko => /tmp/execpad-f733a66ad11f/source-f733a66ad11f:5: syntax error, unexpected tIDENTIFIER, expecting keyword_end (https://eval.in/39017)
<Trudko> >> "%.2f%"(5/2)
<eval-in> Trudko => /tmp/execpad-13b5a3acd4ed/source-13b5a3acd4ed:2: syntax error, unexpected '(', expecting keyword_end ... (https://eval.in/39018)
Zespre has quit [Client Quit]
<Trudko> >> "%.2f%"(5)
<eval-in> Trudko => /tmp/execpad-a26ba0215fae/source-a26ba0215fae:2: syntax error, unexpected '(', expecting keyword_end ... (https://eval.in/39019)
<Trudko> >> "%.2f%"5
<eval-in> Trudko => /tmp/execpad-d140e735a82f/source-d140e735a82f:2: syntax error, unexpected tINTEGER, expecting keyword_end (https://eval.in/39020)
<Trudko> >> %.2f%5
<eval-in> Trudko => /tmp/execpad-b308c39c6b2c/source-b308c39c6b2c:5: syntax error, unexpected tIDENTIFIER, expecting keyword_end (https://eval.in/39021)
<Mon_Ouie> You do see there's an example above?
r0bgleeson has joined #ruby
<madumo> >> (5.to_f/2).to_s
<eval-in> madumo => "2.5" (https://eval.in/39022)
Zespre has joined #ruby
<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]
bamdad has quit [Quit: bamdad]
ffranz has joined #ruby
realDAB has joined #ruby
madumo has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has quit [Client Quit]
bamdad has joined #ruby
madumo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
atyz has joined #ruby
rodacato has joined #ruby
mikeg has joined #ruby
nari has quit [Ping timeout: 240 seconds]
fridim_ has joined #ruby
marcdel has joined #ruby
geekbri has quit [Remote host closed the connection]
<mattias1> madumo: you can convert a lambda into a block param with &
geekbri has joined #ruby
<madumo> can i do &-> { } ?
Zespre has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
goodgame_ has quit [Ping timeout: 246 seconds]
<mattias1> e.g. foo &mylambda <-- calls foo with mylambda as block
mneorr has joined #ruby
<spike|spiegel> hanmac: are you going to report the crash?
<mattias1> foo mylambda <-- passes mylambda as regular arg
<hanmac> spike|spiegel: i allready did
TheKurgan has joined #ruby
<spike|spiegel> k
TheKurgan is now known as ArchBeOS
Nilium has joined #ruby
<madumo> mattias: thanks, i just tried &-> and it worked too
* hanmac finding segfaults since '88
interactionjaxsn has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
ndrei has joined #ruby
interactionjaxsn has joined #ruby
amacgregor has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Remote host closed the connection]
ehc has quit [Quit: ehc]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
geggam has quit [Disconnected by services]
lscott3 has joined #ruby
geggam_ is now known as geggam
geggam_ has joined #ruby
geekbri has quit [Ping timeout: 276 seconds]
mneorr has quit [Ping timeout: 256 seconds]
Trudko has quit [Ping timeout: 240 seconds]
ybart has quit [Quit: ybart]
cha1tanya has quit [Quit: cha1tanya]
the_mentat has joined #ruby
ilyam has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 246 seconds]
Zespre has quit [Quit: leaving]
Zespre has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
renderful has joined #ruby
emergion has joined #ruby
nemesit|znc has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmarques has quit [Ping timeout: 264 seconds]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kpshek has joined #ruby
ehc has joined #ruby
<havenwood> hanmac: wonder when that one was introduced
Zespre has quit [Client Quit]
rodacato has quit [Ping timeout: 240 seconds]
amacgregor has joined #ruby
chihhsin_ has joined #ruby
rodacato has joined #ruby
ehc has quit [Client Quit]
guest147 has joined #ruby
bamdad has quit [Quit: bamdad]
Guest1731 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
momomomomo has joined #ruby
keepguessing has quit [Ping timeout: 250 seconds]
kid_icarus has quit [Ping timeout: 248 seconds]
TheNotary has quit [Quit: Leaving]
gazarsgo has joined #ruby
javiferrer has quit [Read error: Connection reset by peer]
kid_icarus has joined #ruby
anonymus_ has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
Skaflem has quit [Quit: Leaving]
<havenwood> hanmac: segfaults in 1.9.3, 2.0.0, and 2.1.0
amacgregor has quit [Ping timeout: 248 seconds]
<hanmac> löööl?
<hanmac> i blame pinkiepie for that … ;P
momomomomo has joined #ruby
anonymuse has joined #ruby
ephemerian has left #ruby [#ruby]
momomomomo has quit [Client Quit]
Zai00 has quit [Quit: Zai00]
smathieu has joined #ruby
jztech101_ has joined #ruby
noop has joined #ruby
sambao21 has joined #ruby
bamdad has joined #ruby
chihhsin_ has quit [Quit: leaving]
krainboltgreene has joined #ruby
JZTech101 has quit [Disconnected by services]
jztech101_ has quit [Read error: Connection reset by peer]
JZTech101 has joined #ruby
tatsuya__ has joined #ruby
chihhsin has joined #ruby
<spike|spiegel> the ** method in mathn.rb replacing Rational's builin is ridiculous at best
CalebMingle has quit [Quit: CalebMingle]
krz has joined #ruby
nathancahill has quit [Ping timeout: 240 seconds]
<chihhsin> cowboy bebop
nathancahill has joined #ruby
<spike|spiegel> you bet
blitz has joined #ruby
geekbri has joined #ruby
Marsthemanwithth has joined #ruby
tatsuya_o has quit [Ping timeout: 268 seconds]
jnix has joined #ruby
tatsuya__ has quit [Ping timeout: 246 seconds]
bamdad has quit [Quit: bamdad]
trepidaciousMBR_ has quit [Read error: Connection reset by peer]
BRMatt has quit [Ping timeout: 276 seconds]
orionstein has joined #ruby
<asteve> how do you run a ruby file that inherits from another class not in the file?
<asteve> http://pastie.org/8175020 for example
cmarques has joined #ruby
ffio has joined #ruby
momomomomo has joined #ruby
mengu has quit [Quit: Leaving]
<canton7> in child_of_do_something.rb, require "something"
<asteve> doh!
<hanmac> canton7 wrong it needs to be require_relative
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<canton7> true
k610 has quit [Ping timeout: 240 seconds]
joelteon has left #ruby ["bye"]
workmad3 has joined #ruby
ndrei has joined #ruby
leonardo_ has joined #ruby
mvangala_ has quit [Remote host closed the connection]
optimusprimem has quit [Ping timeout: 245 seconds]
cHarNe2 has joined #ruby
<asteve> inheritance is pretty
guest147 has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
guest34 has joined #ruby
S0da has joined #ruby
alex__c2022 has joined #ruby
Kricir_ has joined #ruby
CalebMingle has joined #ruby
x1337807x has joined #ruby
d3 has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
bamdad has joined #ruby
CalebMingle has quit [Client Quit]
S0da has quit [Ping timeout: 246 seconds]
Shayan has joined #ruby
graydot has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
tacos1de has quit [Remote host closed the connection]
sayan has quit [Quit: Leaving]
tacos1de has joined #ruby
Kricir_ has quit [Remote host closed the connection]
mvangala has joined #ruby
p0wn3d_ has joined #ruby
<asteve> can a parent set instance variables for a child class?
axeman- has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
p0wn3d has quit [Ping timeout: 240 seconds]
breakingthings has quit [Quit: breakingthings]
platzhirsch1 has left #ruby [#ruby]
<fryguy> asteve: not without breaking the liskov substitution principle
dangerousdave has joined #ruby
realDAB has quit [Quit: realDAB]
<workmad3> asteve,fryguy: it really depends what you mean with the phrase 'parent set instance variables for a child class'
codezombie has quit [Quit: Linkinus - http://linkinus.com]
cmarques has quit [Ping timeout: 240 seconds]
fmcgeough has joined #ruby
cmarques has joined #ruby
<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.]
DanKnox_away is now known as DanKnox
the_mentat has quit [Quit: ZNC - http://znc.in]
the_mentat has joined #ruby
mneorr has joined #ruby
axeman- has joined #ruby
tkuchiki has quit [Ping timeout: 276 seconds]
twoism has joined #ruby
sheerun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KarlHungus has quit [Changing host]
KarlHungus has joined #ruby
marcdel has joined #ruby
cj3kim has joined #ruby
blackmesa has joined #ruby
interactionjaxsn has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
cj3kim has quit [Remote host closed the connection]
chrisja has joined #ruby
AkashicLegend has joined #ruby
burlyscudd has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
axl_ has quit [Quit: axl_]
elaptics is now known as elaptics`away
kaspergrubbe has joined #ruby
sayan has joined #ruby
rodacato has quit [Remote host closed the connection]
k610 has joined #ruby
goshakkk has quit [Ping timeout: 276 seconds]
mikeg has quit [Remote host closed the connection]
mikeg has joined #ruby
maniacal has joined #ruby
axl_ has joined #ruby
maniacal has quit [Remote host closed the connection]
mikeg has quit [Remote host closed the connection]
maniacal has joined #ruby
predator217 has quit [Ping timeout: 268 seconds]
greenleaf108 is now known as scarolan
tatsuya_o has joined #ruby
razi has quit [Quit: Leaving.]
haxrbyte has joined #ruby
haxrbyte_ has quit [Ping timeout: 240 seconds]
rismoney has joined #ruby
pkrnj has joined #ruby
fernandoaleman has left #ruby [#ruby]
rodacato has joined #ruby
<havenwood> aces1up: As a one-liner: { :tier1 => 4, :tier2 => 5, :tier3 => 6, :somother_key => :random_val, :blah => :random_val }.each_with_object({tier: []}) { |(k, v), h| k.to_s =~ /^tier(\d+)$/ ? h[:tier] << {$1.to_i => v} : h[k] = v }
jprovazn has joined #ruby
peta_ has joined #ruby
dash_ has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
predator117 has joined #ruby
peta_ has quit [Client Quit]
<hanmac> hm i likes this result more:
<hanmac> >> { :tier1 => 4, :tier2 => 5, :tier3 => 6, :somother_key => :random_val, :blah => :random_val }.each_with_object(tier: {}) { |(k, v), h| k.to_s =~ /^tier(\d+)$/ ? h[:tier][$1.to_i] = v : h[k] = v }
<eval-in> hanmac => {:tier=>{1=>4, 2=>5, 3=>6}, :somother_key=>:random_val, :blah=>:random_val} (https://eval.in/39032)
stuartrexking has quit [Quit: Leaving...]
jonathanwallace has joined #ruby
<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]
<havenwood> bricker: Guess an option would be to use EPEL for Fedora's ruby-2.0.0 yum package: http://fedoraproject.org/wiki/EPEL
chrishough has joined #ruby
tatsuya_o has joined #ruby
nkts has quit [Quit: -]
alvaro_o has joined #ruby
nikeita has quit [Quit: sleep]
zz_pinage404 is now known as pinage404
predator117 has quit [Ping timeout: 248 seconds]
burlyscudd has quit [Quit: Leaving.]
<havenwood> bricker: though i'm not sure if ruby-2.0.0 is in EPEL yet?
<bricker> havenwood: I just installed it from source, nbd, just found it odd that 1.8.7 is still floating around out there
Eldariof-ru has quit []
<havenwood> bricker: aye :(
levente has quit [Quit: leaving]
<havenwood> CentOS is sooo slow on adoption in particular. Scientific Linux seems to be a bit more on the ball as far as community RHELs go.
atyz has quit [Quit: Linkinus - http://linkinus.com]
pinage404 is now known as zz_pinage404
<hanmac> didnt CentOS still use StonePlates?
<havenwood> dunno
bamdad has quit [Quit: bamdad]
rickruby has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
mahmoudimus has joined #ruby
axl_ has joined #ruby
Squarepy has joined #ruby
niklasb has quit [Quit: WeeChat 0.4.1]
bamdad has joined #ruby
amacgregor has joined #ruby
ffio_ has joined #ruby
<aces1up> thanks guys, whats the diff between each with object and inject?
ffio has quit [Ping timeout: 240 seconds]
<aces1up> using inject now to get the job done.
<Eiam> aces1up: inject requires you return the sum
<Eiam> each with object does not
<Eiam> s/sum/object
<hanmac> each_with_object always returns that object … if you want it or not
<Eiam> right
<Eiam> I still use inject because its quicker to write
<Eiam> as reduce or inject
<Eiam> than each_with_object
momomomomo has quit [Quit: momomomomo]
<aces1up> how you guys like this solution for that?
<Eiam> and returning it isn't a big deal to me.
m8 has joined #ruby
<aces1up> that will limit i know though to only single digit.
<aces1up> keys.
<aces1up> which is ok for now.
fmcgeough has quit [Quit: fmcgeough]
kirun has joined #ruby
predator117 has joined #ruby
blaxter has quit [Quit: foo]
nitrodex has quit [Read error: Connection reset by peer]
Marsthemanwithth is now known as Mars`
DocEternal has joined #ruby
rodacato has quit [Remote host closed the connection]
AkashicLegend has quit [Quit: AkashicLegend]
colonolGron has joined #ruby
<Mars`> what's the name of the method that converts a string to an escaped string? i.e. "blah <newline blah" to "blah \n blah"?
rodacato has joined #ruby
nomenkun has joined #ruby
<hanmac> Mars` do you want #inspect ?
sambao21 has quit [Quit: Computer has gone to sleep.]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sheerun has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
jbpros has joined #ruby
<Sp4rKy> .W 1
Myconix has quit [Quit: TEAM DEATHMATCH]
axeman- has quit [Remote host closed the connection]
jlast_ has joined #ruby
lebek has joined #ruby
k0rupted has quit [Disconnected by services]
sambao21 has joined #ruby
k0rupted has joined #ruby
babykosh has joined #ruby
atyz has joined #ruby
chihhsin has quit [Quit: leaving]
andrew565 has quit [Quit: andrew565]
<babykosh> has anyone used this gem?…..https://github.com/michael-harrison/data_active/
niklasb has joined #ruby
xcv has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 248 seconds]
saarinen has quit [Quit: saarinen]
jlast has quit [Ping timeout: 240 seconds]
failshell has quit [Ping timeout: 268 seconds]
k0rupted is now known as Guest78798
Guest78798 has quit [Killed (morgan.freenode.net (Nickname regained by services))]
Guest78798 has joined #ruby
<babykosh> I have an xml file I want to use to create my database with…I'd like to use this gem…but I'm not clear on how to do so...
burlyscudd has joined #ruby
chrishough has quit [Ping timeout: 246 seconds]
AkashicLegend has joined #ruby
chihhsin has joined #ruby
nitrodex has joined #ruby
nitrodex is now known as Guest88661
marcgg has quit [Read error: No route to host]
i_s has quit [Remote host closed the connection]
spectre| has joined #ruby
<hanmac> babykosh: i like nokogiri with xml
<Eiam> ^
<zachrab> does anyone know how I can convert Time.now to miliseconds since Epoch
marcgg has joined #ruby
freerobby has quit [Quit: Leaving.]
mattias1 has joined #ruby
<Eiam> I also use nokogiri but I've run into some problems with it crashing if I repeatedly have it reloading the same xml file over & over =0
<Eiam> but I still use it anyway
wallerdev has quit [Quit: wallerdev]
<Eiam> (cause I stopped doing that..)
cortexman has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
denver has quit [Remote host closed the connection]
<hanmac> zachrab: Time.to_f returns seconds as float
anildigital is now known as anildigital_away
<onewheelskyward> Yeah. Time.to_f * 1000
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]
xcv has quit [Remote host closed the connection]
PhatBaja has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
rodacato has joined #ruby
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
jbpros has quit [Quit: jbpros]
<mercwithamouth> DylanJ: ok...and good to have options
stormbytes has quit [Quit: Linkinus - http://linkinus.com]
Zai00 has joined #ruby
<jblack> DylanJ: That looks kind of nice, but I kinda did this outside of rails. Something I'm starting to regret...
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
burlyscudd has joined #ruby
ehc has quit [Quit: ehc]
nfk has quit [Quit: yawn]
<jblack> oh, wait.
jonahR has joined #ruby
optimusprimem has quit [Max SendQ exceeded]
m00dy has quit [Ping timeout: 268 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
m00dy has joined #ruby
Fuzai has joined #ruby
atyz has quit [Quit: Linkinus - http://linkinus.com]
bradhe has joined #ruby
Bio has joined #ruby
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> path relative to the test file?
ehc has joined #ruby
<apeiros> require always uses $LOAD_PATH (plus installed gems)
chimkan has joined #ruby
jacktrick has joined #ruby
<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
<dankest> Would you mind? That would be awesome
<Kelet> duper, Something like this?
<Kelet> >> '192.168.1.1'.split('.').map { |x| sprintf('%b', x) }
<eval-in> Kelet => ["11000000", "10101000", "1", "1"] (https://eval.in/39042)
amacgregor has joined #ruby
Kricir_ has joined #ruby
<apeiros> you'd run tests with `ruby test/runner.rb`, you can optionally pass a glob or single file as first arg
<apeiros> e.g. `ruby test/runner.rb test/some/testfile.rb`
jerius has quit [Ping timeout: 240 seconds]
<apeiros> Kelet: unpack, seriously :)
DocEternal has quit [Quit: Page closed]
kirun has quit [Quit: Client exiting]
chimkan_ has joined #ruby
<apeiros> duper: hm, seems I was wrong about the name. ipaddr maybe? http://www.ruby-doc.org/stdlib-1.9.3/libdoc/ipaddr/rdoc/IPAddr.html
chimkan has quit [Ping timeout: 248 seconds]
chimkan_ is now known as chimkan
r0bgleeson has joined #ruby
xavier23 has left #ruby [#ruby]
<yxhuvud> apeiros: maybe you thought of https://github.com/bluemonk/ipaddress ?
<apeiros> might be
<apeiros> I've never used it myself
burlyscudd has joined #ruby
<apeiros> only seen people talk about it
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has joined #ruby
m00dy has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
BillCriswell has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
Astralum has joined #ruby
ntus1017 has quit [Remote host closed the connection]
lebek has joined #ruby
<Kelet> >> '192.168.1.1'.split('.').map(&:to_i).pack('C*').unpack('B8B8B8B8')
<eval-in> Kelet => ["11000000", "10101000", "00000001", "00000001"] (https://eval.in/39043)
<Kelet> Mehh
ixti has joined #ruby
<Kelet> >> '192.168.1.1'.split('.').map { |o| sprintf('%08b', o) }
<eval-in> Kelet => ["11000000", "10101000", "00000001", "00000001"] (https://eval.in/39044)
<apeiros> unpack('B8'*4)
alex__c2022 has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti!]
interactionjaxsn has joined #ruby
pipework has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 248 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
theRoUS has quit [Ping timeout: 264 seconds]
babykosh has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
nanoxd_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m00dy has quit [Ping timeout: 268 seconds]
nanoxd has joined #ruby
Kar-_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
marcdel has joined #ruby
Bio has quit [Ping timeout: 268 seconds]
interactionjaxsn has quit [Ping timeout: 268 seconds]
Mars` has quit [Read error: Connection reset by peer]
asobrasil has left #ruby [#ruby]
Kricir_ has quit [Remote host closed the connection]
saarinen has joined #ruby
cj3kim has joined #ruby
Mars` has joined #ruby
arya__ has joined #ruby
interactionjaxsn has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
Kruppe has joined #ruby
m00dy has joined #ruby
Arya_ has quit [Ping timeout: 240 seconds]
lewis has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
m8 has quit [Quit: Sto andando via]
realDAB has quit [Quit: realDAB]
realDAB has joined #ruby
madumo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
madumo has joined #ruby
realDAB has quit [Client Quit]
RORgasm has quit [Read error: No route to host]
RORgasm has joined #ruby
Al_ has joined #ruby
louism2wash has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
baordog has quit [Read error: Connection reset by peer]
Zeeraw has quit [Quit: Computer has gone to sleep.]
lewis is now known as Lewix
devoldmx has quit [Ping timeout: 264 seconds]
enebo has quit [Quit: enebo]
kid_icarus has quit [Ping timeout: 256 seconds]
bradhe has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
bradhe has joined #ruby
gazarsgo has quit [Quit: gazarsgo]
devoldmx has joined #ruby
cjs226 has joined #ruby
sontek has joined #ruby
<sontek> In Ruby, is there a way to get a env variable and give it a default if one doesn't exist?
nisstyre has quit [Quit: Leaving]
<havenwood> sontek: ENV['VAR_HERE'] ||= 'default'
cmarques has quit [Ping timeout: 240 seconds]
orionstein is now known as orionstein_away
Pandee has quit [Ping timeout: 264 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pandee has joined #ruby
AMcP has joined #ruby
dpritchett has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 256 seconds]
<apeiros> if you only want to get with a default: ENV.fetch
nadirvardar has joined #ruby
<apeiros> where you can either use 2nd arg for default, or a block
<apeiros> @ sontek/havenwood
nadirvardar has quit [Client Quit]
Guest30040 is now known as mksm
mksm has quit [Changing host]
mksm has joined #ruby
madumo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kpshek has joined #ruby
Kruppe has quit [Remote host closed the connection]
nadirvardar has joined #ruby
Kruppe has joined #ruby
ianfleeton has quit [Quit: ianfleeton]
cantonic has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
sambao21 has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
nwertman has quit [Quit: nwertman]
headshot has quit [Remote host closed the connection]
tbrock has quit [Quit: Computer has gone to sleep.]
saarinen has quit [Quit: saarinen]
sambao21 has joined #ruby
Fuzai has quit [Read error: Connection reset by peer]
mneorr has quit [Ping timeout: 264 seconds]
m00dy has quit [Ping timeout: 268 seconds]
apeiros has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
apeiros has joined #ruby
marcgg has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
pentameter has quit [Read error: Connection reset by peer]
deadalus has quit [Ping timeout: 276 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
hakunin_ has joined #ruby
spacebug_ has joined #ruby
FDj_ has joined #ruby
hasrb has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
fuleo2 has joined #ruby
m00dy has joined #ruby
moos3 has joined #ruby
hadees has joined #ruby
jaredrhine has joined #ruby
musl_ has joined #ruby
Killerkeksdose_ has joined #ruby
KRF has joined #ruby
Guest78798 has quit [Ping timeout: 268 seconds]
MrRacoon_ has joined #ruby
matti_ has joined #ruby
epochwolf|2 has joined #ruby
DandyPandy_ has joined #ruby
drago777- has joined #ruby
yasu_ has joined #ruby
slash_ni1k has joined #ruby
Some-body_ has joined #ruby
daaaan_ has joined #ruby
zzak_ has joined #ruby
MrZYX- has joined #ruby
kpshek has quit []
klip has joined #ruby
Alasdairr has joined #ruby
ravster has quit [Quit: Leaving.]
krnflake_ has joined #ruby
destruct1re has joined #ruby
asuka_ has joined #ruby
bigkevmcd_ has joined #ruby
beingjohnm_ has joined #ruby
jpun_ has joined #ruby
parus_ has joined #ruby
MrZYX- is now known as MrZYX
petru_ has joined #ruby
ddd has joined #ruby
plantigrade has joined #ruby
mburns_ has joined #ruby
homelinen_ has joined #ruby
krnflake has quit [Ping timeout: 248 seconds]
metallisto has quit [Ping timeout: 248 seconds]
MrZYX|off has quit [Ping timeout: 248 seconds]
beingjohnm has quit [Ping timeout: 248 seconds]
felipe has quit [Ping timeout: 248 seconds]
DandyPandy has quit [Ping timeout: 248 seconds]
fuleo has quit [Ping timeout: 248 seconds]
drago777 has quit [Ping timeout: 248 seconds]
Jedi_SCT1 has quit [Ping timeout: 248 seconds]
zz_pinage404 has quit [Ping timeout: 248 seconds]
asuka has quit [Ping timeout: 248 seconds]
Guest85414__ has quit [Ping timeout: 248 seconds]
daaaan has quit [Ping timeout: 248 seconds]
slash_nick has quit [Ping timeout: 248 seconds]
yasu has quit [Ping timeout: 248 seconds]
Alasdairrr has quit [Ping timeout: 248 seconds]
mame3 has quit [Ping timeout: 248 seconds]
robustus has quit [Ping timeout: 248 seconds]
shaileshg has quit [Ping timeout: 248 seconds]
kiela has quit [Ping timeout: 248 seconds]
destructure has quit [Ping timeout: 248 seconds]
hakunin has quit [Ping timeout: 248 seconds]
epochwolf has quit [Ping timeout: 248 seconds]
musl has quit [Ping timeout: 248 seconds]
zzak has quit [Ping timeout: 248 seconds]
mburns has quit [Ping timeout: 248 seconds]
guilleiguaran_ has quit [Ping timeout: 248 seconds]
spacebug has quit [Ping timeout: 248 seconds]
undert has quit [Ping timeout: 248 seconds]
DarthGandalf has quit [Ping timeout: 248 seconds]
jeekl has quit [Ping timeout: 248 seconds]
avelldiroll has quit [Ping timeout: 248 seconds]
thomas` has quit [Ping timeout: 248 seconds]
jpun has quit [Ping timeout: 248 seconds]
wting has quit [Ping timeout: 248 seconds]
Blue_Ice has quit [Ping timeout: 248 seconds]
iBot_23 has quit [Ping timeout: 248 seconds]
parus has quit [Ping timeout: 248 seconds]
klipeto has quit [Ping timeout: 248 seconds]
MrRacoon has quit [Read error: Connection reset by peer]
KillerFox has quit [Ping timeout: 248 seconds]
bigkevmcd has quit [Ping timeout: 248 seconds]
matti has quit [Ping timeout: 248 seconds]
homelinen has quit [Ping timeout: 248 seconds]
petru has quit [Ping timeout: 248 seconds]
invsblduck has quit [Ping timeout: 248 seconds]
bier has quit [Ping timeout: 248 seconds]
FDj has quit [Ping timeout: 248 seconds]
jaredrhine_ has quit [Ping timeout: 248 seconds]
kfunk has quit [Ping timeout: 248 seconds]
Killerkeksdose has quit [Ping timeout: 248 seconds]
jtperreault has quit [Ping timeout: 248 seconds]
ddd__ has quit [Ping timeout: 248 seconds]
KillerFox has joined #ruby
Jedi_SCT1 has joined #ruby
mame3 has joined #ruby
robustus has joined #ruby
metallisto has joined #ruby
kiela_ has joined #ruby
beingjohnm_ is now known as beingjohnm
wting_ has joined #ruby
Boohbah has quit [Remote host closed the connection]
iBot_23 has joined #ruby
homelinen_ is now known as homelinen
Blue_Ice_ has joined #ruby
james has joined #ruby
Boohbah_ has joined #ruby
undert_ has joined #ruby
Some-body_ is now known as DarthGandalf
matti_ is now known as matti
Blue_Ice_ has quit [Changing host]
Blue_Ice_ has joined #ruby
noname001 has quit [Excess Flood]
ddd is now known as Guest44466
homelinen has quit [Changing host]
homelinen has joined #ruby
kham has quit [Quit: WeeChat 0.4.1]
invsblduck has joined #ruby
james is now known as Guest17266
thomas` has joined #ruby
Boohbah_ is now known as Guest85546
JZTech102 has joined #ruby
JZTech101 has quit [Write error: Connection reset by peer]
plantigrade is now known as avelldiroll
terrellt has quit [Write error: Connection reset by peer]
jeekl has joined #ruby
JZTech102 has quit [Read error: Connection reset by peer]
epochwolf|2 is now known as epochwolf
pinage404 has joined #ruby
bier has joined #ruby
JZTech101 has joined #ruby
iBot_23 has quit [*.net *.split]
metallisto has quit [*.net *.split]
robustus has quit [*.net *.split]
mame3 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
Jedi_SCT1 has quit [*.net *.split]
<dankest> IN minitest, what's the difference between a spec and a unit test?
bradhe has joined #ruby
noname001 has joined #ruby
bradhe has quit [Remote host closed the connection]
hasrb has joined #ruby
Zeeraw has joined #ruby
bradhe has joined #ruby
hasrb has quit [Remote host closed the connection]
spectre| has quit [Quit: Leaving.]
smathieu has quit [Remote host closed the connection]
mburns_ is now known as mburns
<davidcelis> a spec is a specification test
<davidcelis> which is a type of unit test with different syntax
PCChris has joined #ruby
dukedave has quit [Ping timeout: 240 seconds]
Zai00 has quit [Quit: Zai00]
bradhe has quit [Ping timeout: 256 seconds]
renderful has joined #ruby
mary5030 has quit [Ping timeout: 276 seconds]
rhys has quit [Quit: Leaving]
smathieu has joined #ruby
OffTheRails has joined #ruby
Khazix has left #ruby ["Ping timeout: 1 seconds"]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: Leaving...]
postmodern has joined #ruby
m00dy has quit [Ping timeout: 268 seconds]
arya__ has quit [Ping timeout: 256 seconds]
renderful has quit [Ping timeout: 268 seconds]
bigmac_ has quit [Quit: Leaving]
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]
Arya_ has joined #ruby
JZTech101 has joined #ruby
redgetan has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
JZTech101 has joined #ruby
beingjohnm has quit [Changing host]
beingjohnm has joined #ruby
mansi has quit [Read error: Connection reset by peer]
CalebMingle has joined #ruby
ccooke has quit [Read error: Connection reset by peer]
nezumi has joined #ruby
mansi has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
<dankest> davidcelis: got it, thanks
<dankest> When should I use one versus the other?
mansi has quit [Read error: Connection reset by peer]
sam113101 is now known as sam113101_afk
<davidcelis> you should use whichever you prefer
<davidcelis> the difference is just syntactic, really
ccooke has joined #ruby
Woodsman has joined #ruby
Notte has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
ndrei has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
sam113101_afk is now known as sam113101
amacgregor has joined #ruby
ravster has joined #ruby
sambao21 has joined #ruby
momomomomo has quit [Quit: momomomomo]
gstamp has joined #ruby
havenwood has joined #ruby
Xeago has joined #ruby
mroth has joined #ruby
St_Marx has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
ccooke has quit [Ping timeout: 264 seconds]
ccooke has joined #ruby
mroth has joined #ruby
mroth has quit [Changing host]
cj3kim has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 264 seconds]
AMcP has quit [Remote host closed the connection]
metallisto has joined #ruby
dukedave has joined #ruby
robustus has joined #ruby
KillerFox has joined #ruby
Jedi_SCT1 has joined #ruby
v0n has quit [Ping timeout: 276 seconds]
renderful has joined #ruby
tatsuya_o has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Kricir has joined #ruby
anonymuse has quit [Remote host closed the connection]
burlyscudd has joined #ruby
tbrock has joined #ruby
mame3 has joined #ruby
Bry8Star{T2 has joined #ruby
choobie has quit [Ping timeout: 268 seconds]
cj3kim has joined #ruby
iBot_23 has joined #ruby
noname001 has quit [Ping timeout: 240 seconds]
St_Marx has joined #ruby
kpshek has joined #ruby
staafl has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 256 seconds]
sarkis has joined #ruby
<dankest> davidcelis: cool, tahnks
St_Marx has quit [Remote host closed the connection]
thibauts has quit [Ping timeout: 256 seconds]
twoism has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
optimusprimem has joined #ruby
osvico has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
twoism has joined #ruby
St_Marx has joined #ruby
rodacato has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Soopaman has quit [Quit: Leaving.]
Guest85546 has joined #ruby
Guest85546 has quit [Changing host]
Guest85546 has quit [Changing host]
Guest85546 has joined #ruby
Guest85546 is now known as Boohbah
chimkan has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
nari has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
sambao21 has joined #ruby
Woodsman has quit [Ping timeout: 240 seconds]
kid_icarus has joined #ruby
Al_ has quit [Quit: Al_]
mneorr has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
wsterling has quit [Remote host closed the connection]
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
intuxicated has quit [Ping timeout: 248 seconds]
devoldmx has quit [Ping timeout: 268 seconds]
nadirvardar has joined #ruby
Xeago has quit [Remote host closed the connection]
randomautomator has quit [Ping timeout: 246 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
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]
devoldmx has joined #ruby
JZTech101 has joined #ruby
intuxicated has joined #ruby
xcv has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
mneorr has quit [Ping timeout: 276 seconds]
iliketurtles has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has joined #ruby
burlyscudd has quit [Quit: Leaving.]
rodacato has joined #ruby
BrianJ has joined #ruby
asteve has joined #ruby
Lewix has quit []
devoldmx3 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
axl_ has quit [Quit: axl_]
marcdel has joined #ruby
fwchld has joined #ruby
lebek has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
babykosh has quit [Quit: babykosh]
thibauts has joined #ruby
dubz has joined #ruby
sambao21 has joined #ruby
dtcrshr has quit [Ping timeout: 276 seconds]
Vivekananda has quit [Ping timeout: 248 seconds]
PhatBaja has quit [Quit: Leaving.]
thibauts has quit [Remote host closed the connection]
rodacato has quit [Remote host closed the connection]
freerobby has joined #ruby
dEPy has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodacato has joined #ruby
jacktrick has quit [Quit: Leaving]
kaspergrubbe has quit [Remote host closed the connection]
greenlea1108 has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
L8D has joined #ruby
brunoro__ has joined #ruby
Lewix has joined #ruby
Vivekananda has joined #ruby
Cyrus has joined #ruby
splittingred has quit [Quit: splittingred]
moos3 has joined #ruby
gildo has quit [Ping timeout: 246 seconds]
predator217 has joined #ruby
dtcrshr has joined #ruby
thibauts has joined #ruby
rodacato has quit [Remote host closed the connection]
devoldmx has joined #ruby
Pandee has quit [Ping timeout: 256 seconds]
Pandee has joined #ruby
f0ster has quit [Read error: Operation timed out]
rodacato has joined #ruby
cads has quit [Quit: Leaving]
intuxicated has quit [Ping timeout: 256 seconds]
predator117 has quit [Ping timeout: 268 seconds]
S0da has quit [Quit: S0da]
cads has joined #ruby
kid_icarus has quit [Ping timeout: 264 seconds]
devoldmx3 has quit [Ping timeout: 248 seconds]
neal__ has joined #ruby
mansi has joined #ruby
felipe has joined #ruby
freerobby has quit [Quit: Leaving.]
thibauts has quit [Ping timeout: 264 seconds]
intuxicated has joined #ruby
bigoldrock has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
<neal__> Is anyone familiar with Ruby websockets servers?
brunoro__ has quit [Ping timeout: 264 seconds]