apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
lucyinthesky has left #ruby ["Leaving"]
timonv_ has joined #ruby
<banisterfiend> havenwood this code isn't really well factored, it's pretty hard to make sense of it imo https://github.com/ruby-concurrency/concurrent-ruby/blob/master/lib/concurrent/tvar.rb
<banisterfiend> havenwood he has 3 classes splatted out into a single file, top-level-ish methods scattered through there too
<banisterfiend> and big fat loops that are hard to grok
<banisterfiend> is there some sophisticated thread-safety reason why he's got this on 2 lines instead of 1? https://github.com/ruby-concurrency/concurrent-ruby/blob/master/lib/concurrent/tvar.rb#L105-L106
<havenwood> chrisseaton: any idea? ^
jonr2219 has joined #ruby
<banisterfiend> i don't think it would make any difference if it was just 1 line
<banisterfiend> havenwood have you messed much with condition variables?
<banisterfiend> those things are cool
<havenwood> i don't like calling methods with :: but concurrent-ruby does it all over
<banisterfiend> they're built in
<havenwood> banisterfiend: just played with them, never used in production code
nfk has quit [Quit: yawn]
<banisterfiend> havenwood they're pretty hard to get right, there's a big glaring edge-case related to them "spurious wakeups" http://en.wikipedia.org/wiki/Spurious_wakeup
<havenwood> it *might* just wake up >.>
<banisterfiend> also: "Practical reasons exist for checking the invariant after a return from a wait other than spurious wakeups. For example, a woken-up thread may not be scheduled immediately after the wake up, but be at the mercy of the system scheduler. A scheduler may preempt a process abruptly or schedule other threads. It may be the case that, in the meantime, an external entity (another process or hardware) has invalidated the invariant
<banisterfiend> assumption. As with spurious wakeup, wrapping the wait with a loop avoids such cases."
<banisterfiend> in other words, if your thread wakes up as a result of waiting on a condition variable, yo ustill have to check the condition
zorak8 has quit [Ping timeout: 272 seconds]
<banisterfiend> 90% of ruby threading tutorials i've seen get that wrong :) (they don't re-check the condition after being woken up)
<havenwood> ahh, interesting
kith has quit [Ping timeout: 250 seconds]
jonr2219 has quit [Ping timeout: 264 seconds]
<havenwood> back in a few
havenwood has quit [Remote host closed the connection]
ekinmur has joined #ruby
kirun has quit [Quit: Client exiting]
cleopatra has quit [Remote host closed the connection]
thsig has quit [Remote host closed the connection]
Pupeno has joined #ruby
supersym has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 245 seconds]
ekinmur has quit [Quit: no longer available]
Cache_Money has quit [Quit: Cache_Money]
renderful has joined #ruby
Cache_Money has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
cleopatra has joined #ruby
Xeago has quit [Remote host closed the connection]
Scripore has joined #ruby
mkaesz has joined #ruby
kith has joined #ruby
havenwood has joined #ruby
Pupeno has quit [Remote host closed the connection]
lampd1 has quit [Remote host closed the connection]
<weaksauce> I can't seem to figure out how to make a function that is able to be called without the parentheses and takes a block that it yields to... It's just a quick thing for an import script and it works fine if I call it with the parens but I am curious how to get that to work correctly.
Pupeno has joined #ruby
<ericwood> weaksauce: what you posted looks fine
mkaesz has quit [Ping timeout: 272 seconds]
<apeiros> weaksauce: let me guess - you call it like this: `ary.each_with_index_starting_at 12 { …`
<weaksauce> yeah that's what I did... I just tried it with do end and it worked
<weaksauce> what's the difference?
DLSteve has quit [Quit: Leaving]
<weaksauce> apeiros you nailed it
<apeiros> precedence
<apeiros> with `foo 12 {`, the block is associated to 12, not foo
<apeiros> and 12 - obviously - does not accept a block
commmmodo has quit [Quit: commmmodo]
<weaksauce> very interesting... I thought { and do were basically synonymous
<apeiros> other than precedence they are
<weaksauce> any idea why they have different precedence?
<weaksauce> what's the use case for it
<apeiros> because that's how they've been designed
chipotle has joined #ruby
commmmodo has joined #ruby
<apeiros> IME it lends itself for using do/end for side effect, {} for return value.
<weaksauce> I see... thanks for the help
SCHAAP137 has quit [Quit: Leaving]
jimbach has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
SCHAAP137 has joined #ruby
ghr has joined #ruby
fabrice31 has joined #ruby
jottr has joined #ruby
<benzrf> i generally use {} for 1 liners, do..end for multi line
sdwrage has joined #ruby
lucyinthesky has joined #ruby
<banisterfiend> benzrf i thought you only id haskell these days
josephndenton has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
lampd1 has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
fabrice31 has quit [Ping timeout: 258 seconds]
<benzrf> tbh i dont write much code at all these days :v(
Cache_Money has quit [Quit: Cache_Money]
josephndenton has quit [Ping timeout: 258 seconds]
<banisterfiend> benzrf what're you doing with yourself then?
Arnie25 has joined #ruby
<benzrf> learning to use coq & stuff
<benzrf> teaching other ppl about math & haskell
mary5030 has joined #ruby
KLVTZ has joined #ruby
marr has quit [Ping timeout: 252 seconds]
spastorino has joined #ruby
StephenA1 has joined #ruby
<StephenA1> How do you sign a oauth request?
klmlfl has quit [Remote host closed the connection]
<StephenA1> using oauth-ruby. The docs are a little light on the detail
<StephenA1> any examples would be appreacited
<StephenA1> oauth1.0a
chipotle_ has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
kiyote23 has joined #ruby
iamninja has joined #ruby
phutchins has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
chipotle has quit [Ping timeout: 252 seconds]
cleopatra has quit [Remote host closed the connection]
charlenopires has joined #ruby
robustus has joined #ruby
kiyote23 has quit [Ping timeout: 240 seconds]
phutchins has quit [Ping timeout: 240 seconds]
<quazimodo> i have a class that creates pipes/ttys and spawns a new process with stdin/out redirected. All good. But in my test i want to assert that the spawned processes stdout is a tty. In my original class though, I've called close on that file descriptor of course. So how do you go about asking if it *was* a tty
<quazimodo> ?
charlenopires has quit [Client Quit]
SOLDIERz_ has quit [Quit: Be back later ...]
<quazimodo> oh i can stub out the .close method can't I
<quazimodo> :D
kiyote23 has joined #ruby
StephenA1 has quit [Quit: StephenA1]
goodenough has joined #ruby
charlenopires has joined #ruby
iaj has quit [Ping timeout: 240 seconds]
androidbruce has joined #ruby
androidbruce has quit [Changing host]
androidbruce has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
Dopagod has quit [Read error: Connection reset by peer]
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
charlenopires has quit [Ping timeout: 264 seconds]
kiyote23 has quit [Read error: Connection reset by peer]
kiyote23 has joined #ruby
jonr22 has quit [Remote host closed the connection]
<quazimodo> here we go
robertt_dex has quit [Ping timeout: 244 seconds]
<quazimodo> how do you tell if an IO endpoint is a pipe endpoint?
mary5030 has quit [Remote host closed the connection]
klmlfl has joined #ruby
mary5030 has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
nkumari has joined #ruby
quimrstorres has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
iaj has joined #ruby
charliesome has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
VBlizzard has quit [Ping timeout: 258 seconds]
Blizzy has quit [Ping timeout: 258 seconds]
VBlizzard has joined #ruby
Blizzy has joined #ruby
Pupeno has quit [Remote host closed the connection]
tastycode has joined #ruby
iamjarvo has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
mary5030 has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
jimbach has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
Takle has joined #ruby
kiyote23 has quit [Remote host closed the connection]
apeiros has joined #ruby
marahin has quit [Ping timeout: 258 seconds]
sailias has joined #ruby
ghr has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
<rpag> quazimodo, FileTest.pipe?
<rpag> if i understood you
<rpag> >> FileTest.pipe?($stdout)
<eval-in__> rpag => false (https://eval.in/228379)
quimrstorres has joined #ruby
vieq has quit [Ping timeout: 264 seconds]
Takle has quit [Ping timeout: 258 seconds]
ghr has quit [Ping timeout: 244 seconds]
charlenopires has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
supersym has joined #ruby
jonr22 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
vieq has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
davedev24_ has quit []
lucyinthesky has joined #ruby
reinaldob has quit [Ping timeout: 250 seconds]
kiyote23 has joined #ruby
jimbach has joined #ruby
Spami has joined #ruby
chris613 has joined #ruby
josephndenton has joined #ruby
charlenopires has quit [Ping timeout: 258 seconds]
diegoviola has joined #ruby
jimbach has quit [Ping timeout: 258 seconds]
wasamasa has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
wasamasa has joined #ruby
darkswordchris has joined #ruby
nkumari has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<darkswordchris> Hello. I am using Win32API to use a dll to send marshal'ed objects to a server so that they can be retrieved on a later run. The problem is, my DLL only gets the first part of the marshal'ed data. Why is only part of it received and how do I fix it, or is there a better way to do this?
timonv_ has quit [Ping timeout: 265 seconds]
chipotle_ has quit [Ping timeout: 265 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
byprdct has joined #ruby
KLVTZ has quit [Ping timeout: 240 seconds]
quimrstorres has quit [Remote host closed the connection]
claptor has quit [Quit: this channel is bakas]
<quazimodo> in general
<quazimodo> are wusing rvm or rbenv these days?
<ericwood> darkswordchris: (I most likely can't help you) but that question will need some more details! It's very complex and requires some background
<ericwood> quazimodo: lots of love for rbenv and chruby
<ericwood> I'm really digging chruby
<quazimodo> what's wrong with rvm?
quimrstorres has joined #ruby
<quazimodo> why did rbenv get created?
<ericwood> stuff
Joufflu has quit [Read error: Connection reset by peer]
<ericwood> quazimodo: this popped up on google: http://jonathan-jackson.net/rvm-and-rbenv
<ericwood> eh just kidding that thing isn't completely right
<ericwood> quazimodo: this is better, altbeit from the rbenv side of things: https://github.com/sstephenson/rbenv/wiki/Why-rbenv%3F
renderful has joined #ruby
<ericwood> tl;dr they work differently, and lots of people felt the way rvm worked was too much of a shim
<darkswordchris> ericwood: Well, I've got an object that I am trying to send to a server so that it can be loaded back on a later run. I am sending it to a dll using Win32API.new("Game_Client.dll", "send_data", "P", "").call(Marshal.dump($var)). This doesn't give me an error, but the dll only receives the first part of the marshal'ed data.
lucyinthesky has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
chipotle has joined #ruby
<darkswordchris> oh, and send_data looks like "void send_data(char* object)"
godd2 has joined #ruby
<ericwood> darkswordchris: hmmm...not sure, I know very little about win32 :(
<ericwood> keep in mind Marshal.dump isn't crazy reliable between versions, etc.
<godd2> What's the win32 question?
<darkswordchris> ericwood: alright :/ thanks anyway.
<darkswordchris> godd2: [18:15] <darkswordchris> Hello. I am using Win32API to use a dll to send marshal'ed objects to a server so that they can be retrieved on a later run. The problem is, my DLL only gets the first part of the marshal'ed data. Why is only part of it received and how do I fix it, or is there a better way to do this?
<darkswordchris> and [18:21] <darkswordchris> Well, I've got an object that I am trying to send to a server so that it can be loaded back on a later run. I am sending it to a dll using Win32API.new("Game_Client.dll", "send_data", "P", "").call(Marshal.dump($var)). This doesn't give me an error, but the dll only receives the first part of the marshal'ed data.
thsig_ has joined #ruby
<godd2> darkswordchris do you ahve a github with the code?
<darkswordchris> not with the code, no
arup_r has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
<darkswordchris> making a pastebin really quick
<darkswordchris> godd2: these are the relevant parts: http://pastebin.com/CcMTfeNK
charlenopires has joined #ruby
goodenough has quit [Remote host closed the connection]
<godd2> darkswordchris what version of Ruby are you using?
<darkswordchris> I think it's 1.8.something. It's embedded in a program, so I can't update it.
lampd1 has quit []
supersym has quit [Ping timeout: 244 seconds]
<ericwood> that rules out weirdness with Marshal
StephenA1 has joined #ruby
<darkswordchris> does Marshal have some issues?
phutchins has joined #ruby
<ericwood> I've noticed weirdness with it between ruby versions
<darkswordchris> and p Marshal.dump dumps it all
<ericwood> yeah no you're fine, the problem would be the server and client not seeing things in the right format
fabrice31 has joined #ruby
cleopatra has joined #ruby
<quazimodo> cheers
moritzs has quit [Ping timeout: 240 seconds]
<quazimodo> rpag: didn't know we had FileTest
quimrstorres has quit [Remote host closed the connection]
<darkswordchris> ericwood: godd2: just test by immediately returning and printing the data sent the dll, the dll does not recieve all the data, so it is not a problem between my server and client.
fabrice31 has quit [Ping timeout: 240 seconds]
<darkswordchris> tested*
ptrrr has joined #ruby
iaj has quit [Ping timeout: 250 seconds]
ptrrr has quit [Client Quit]
<darkswordchris> Am I going to have to just resort to marshaling to a file and sending the file? I didn't want to do that because I'm pretty sure it's going to take more room than putting it in a sql database.
<quazimodo> ericwood: rbenv does make more sense
<quazimodo> dno if chruby is an upgrade on it though :)
StephenA1 has quit [Quit: StephenA1]
ender3rd has joined #ruby
<ericwood> quazimodo: it's not really an "upgrade" as much as just a really simple tool that does only one thing
claptor has joined #ruby
<ericwood> quazimodo: ruby-install to install a ruby version to ~/.rubies (or wherever) and then chruby to decide which one is used
<godd2> darkswordchris I'm confused. What is in $var in the script you linked?
tastycode has quit [Quit: tastycode]
ender3rd is now known as Prometheus
<darkswordchris> godd2: A bunch of variables and stuff
<ericwood> darkswordchris: have you considered using a data format like JSON instead?
<godd2> What do you mean "a bunch of variables". is it an array?
<ericwood> not that it would fix anything, it just makes more sense for data interchange
Prometheus has left #ruby [#ruby]
<quazimodo> i dno
<quazimodo> rvm's working
<quazimodo> dont fix what ain broke
<ericwood> fair enough
<quazimodo> maybe ill go to rbenv on my new machine
<quazimodo> but i can see it's merit
<ericwood> tbh that's what I'd do, don't bother unless it's not doing the job right
kiyote23 has quit [Remote host closed the connection]
<darkswordchris> godd2: No, I'm not sure what to call it in Ruby. In c++ I would call it an object.
jimbach has joined #ruby
<darkswordchris> ericwood: I haven't looked at JSON before. I'm quiet new to ruby
<ericwood> darkswordchris: JSON isn't a ruby thing, it's just a data markup format of sorts, somewhat (but not really) like XML
<godd2> darkswordchris JSON is something from Javascript. It stands for JavaScript Object Notation.
<darkswordchris> oh, still haven't looked at it
<ericwood> JSON, YAML, XML, etc.
<ericwood> anything that isn't sending marshalled ruby objects around
<ericwood> makes more sense to have an intermediate data type, ya kno?
<godd2> darkswordchris but JSON is just plaintext string, so it's useful for sending data around, especially objects in any language which is OOP
ghr has joined #ruby
goodenough has joined #ruby
<darkswordchris> Alright, I'll take a look at it. Thanks
iaj has joined #ruby
<ericwood> the idea is for communication you use a format that any number of languages can understand rather than a marshalled version of some language implementation's data structure
<ericwood> keep in mind Marshal isn't really a ruby spec thing...
<ericwood> JRuby, for example, doesn't do it the same
<ericwood> the only requirement is the same version of ruby can read and write it...not very useful ya kno?
<darkswordchris> Ah
<darkswordchris> Ya, I see
j_mcnally has joined #ruby
<darkswordchris> But I still don't think that will fix my problem, due to the length.
<ericwood> I can't say that it won't, but it's a better approach to what you're doing
jimbach has quit [Ping timeout: 252 seconds]
<darkswordchris> Alright, thanks guys. I appreciate it. I'm off
MattB2 has quit []
<ericwood> peace
darkswordchris has quit [Quit: Page closed]
tejas-manohar has joined #ruby
MattB2 has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
cleopatra has quit [Remote host closed the connection]
razieliyo has joined #ruby
bmichelsen has joined #ruby
<quazimodo> killing a process necessarily kills it's children right
Scripore has quit [Read error: Connection reset by peer]
<ericwood> quazimodo: were they started via fork?
Scripore has joined #ruby
<ericwood> if so, no, that is not the case
cleopatra has joined #ruby
<quazimodo> hrm
<quazimodo> i thught that was the default behaviour
razieliyo has quit [Remote host closed the connection]
<godd2> quazimodo the fact that it doesn't is how daemon processes are made with Ruby
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 258 seconds]
<ericwood> or like, anything, for that matter
<ericwood> all processes spawn from some process :o
x1337807x has joined #ruby
elusion has quit [Ping timeout: 258 seconds]
thsig_ has quit [Remote host closed the connection]
tyll_ has joined #ruby
thsig has joined #ruby
wsmoak has quit [Quit: wsmoak]
thsig_ has joined #ruby
charlenopires has quit [Quit: Be back later ...]
tyll has quit [Ping timeout: 264 seconds]
thsig has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
Megtastique has quit []
rfi_ is now known as koyoteinclude
koyoteinclude is now known as rfi
jimbach has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
<quazimodo> freaking race conditions :(
<quazimodo> oh, i know you can separate processes from each other that way
<quazimodo> i thought the *default* behaviour is that killing parents kills child processes
perturbation has quit [Quit: Leaving]
<quazimodo> unless specified otherwise, but yeah thanks for the tip :)
<quazimodo> now I have to solve this race condition where I've sent a kill signal but the process aint dead yet and my spec has to wait for it to die
jimbach has quit [Ping timeout: 264 seconds]
nkumari has joined #ruby
tejas-manohar has left #ruby [#ruby]
startupality has joined #ruby
chu has joined #ruby
nkumari has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
ekinmur has joined #ruby
tejas-manohar has joined #ruby
cleopatra has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 264 seconds]
chipotle_ has joined #ruby
iaj has quit [Ping timeout: 252 seconds]
ekinmur has quit [Client Quit]
chipotle_ has quit [Read error: Connection reset by peer]
chipotle has quit [Ping timeout: 250 seconds]
boombadaroomba has joined #ruby
freerobby has quit [Quit: Leaving.]
chipotle has joined #ruby
Takle has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
boombadaroomba has quit [Ping timeout: 264 seconds]
geggam has joined #ruby
thsig_ has quit [Remote host closed the connection]
thsig has joined #ruby
tomeara has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
startupality has quit [Quit: startupality]
startupality has joined #ruby
startupality has quit [Client Quit]
Musashi007 has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
hakunin_ is now known as hakunin
Megtastique has joined #ruby
x1337807x has joined #ruby
xenomorph is now known as {xenomorph}
phutchins has quit [Ping timeout: 264 seconds]
iaj has joined #ruby
{xenomorph} is now known as xenomorph
kiyote23 has joined #ruby
fedexo has joined #ruby
radic has quit [Ping timeout: 272 seconds]
radic has joined #ruby
ghr has joined #ruby
charlenopires has joined #ruby
AlexRussia has joined #ruby
lemur has joined #ruby
ekinmur has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
kiyote23 has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 245 seconds]
josephndenton has joined #ruby
x1337807x has joined #ruby
Spami has joined #ruby
sski has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
cleopatra has joined #ruby
mloveless has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
KLVTZ has joined #ruby
timonv_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has joined #ruby
ekinmur has quit [Quit: no longer available]
timonv_ has quit [Ping timeout: 250 seconds]
braincrash has quit [Quit: bye bye]
Cache_Money has joined #ruby
chrishough has joined #ruby
Spami has quit [Ping timeout: 258 seconds]
braincrash has joined #ruby
ekinmur has joined #ruby
Beoran__ has quit [Ping timeout: 250 seconds]
arescorpio has quit [Excess Flood]
beef-wellington has quit [Ping timeout: 258 seconds]
lkba has joined #ruby
Kricir has joined #ruby
gcganley has joined #ruby
Takle has joined #ruby
oleo__ has joined #ruby
zorak8 has quit [Ping timeout: 240 seconds]
<gcganley> so my gf's brother is interested in learning ruby. he has experience with java and visual basic but is interested in ruby. I personally use haskell and have 0 experience with ruby. i was curious what you would recommend for him to read/watch and what i should read/watch to help him learn
<tejas-manohar> https://github.com/tejas-manohar/omnistrate -- here are the errors: http://imgur.com/fC4YQzN,U4HNkDx (click "first image" and 'second image" links to toggle) -- i've run `bundle` and `bundle update`, no errors in that step
<tejas-manohar> that require isnt functioning
<tejas-manohar> im using sinatra contrib
sevenseacat has joined #ruby
<gcganley> basically are there any defacto ruby books that i should know about
oleo is now known as Guest25969
<tejas-manohar> nevermind that ! resolved
SOLDIERz_ has joined #ruby
Guest25969 has quit [Ping timeout: 258 seconds]
fabrice31 has joined #ruby
renderful has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby
AlexRussia has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
Joufflu has joined #ruby
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
emmesswhy has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SOLDIERz_ has quit [Ping timeout: 252 seconds]
<KLVTZ> gcganley: I didn't realize the new well grounded rubyist is out. Check that out!
renderful has quit [Ping timeout: 250 seconds]
Beoran__ has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
Kricir has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
emmesswhy has quit [Ping timeout: 252 seconds]
KLVTZ has quit [Read error: Connection reset by peer]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
KLVTZ has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
Spami has joined #ruby
adriancb has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
henesy has quit [Ping timeout: 258 seconds]
commmmodo has joined #ruby
adriancb has joined #ruby
NoNMaDDeN has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
Kricir has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
KLVTZ has quit [Read error: Connection reset by peer]
kiyote23 has joined #ruby
KLVTZ has joined #ruby
henesy has joined #ruby
adriancb has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
charlenopires has quit [Quit: Be back later ...]
Jamo_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 272 seconds]
kiyote23 has quit [Ping timeout: 264 seconds]
ekinmur has quit [Quit: no longer available]
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
razieliyo has quit [Quit: Saliendo]
diegoviola has quit [Quit: WeeChat 1.0.1]
gcganley has quit [Remote host closed the connection]
SCHAAP137 has quit [Quit: Leaving]
Cache_Money has quit [Quit: Cache_Money]
lemur has joined #ruby
mloveless has joined #ruby
Musashi007 has quit [Ping timeout: 240 seconds]
tomeara has quit [Ping timeout: 272 seconds]
Musashi007 has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Spami has quit [Quit: This computer has gone to sleep]
rcs has quit [Excess Flood]
bwilson has quit [Quit: +++CARRIER LOST+++]
rcs has joined #ruby
Musashi007 has quit [Ping timeout: 240 seconds]
<tejas-manohar> hey!
<tejas-manohar> anyone here familiar with omniauth
Soda has joined #ruby
<lbrf> just a little bit
<tejas-manohar> i've posted in #sinatra
<tejas-manohar> really struggling
Takle has joined #ruby
<tejas-manohar> lbrf: don't wanna cross-post. would you like to look in #sinatra ? or for me to post here
<lbrf> create a gist...
razieliyo has joined #ruby
razieliyo has joined #ruby
fedexo has quit [Ping timeout: 256 seconds]
arup_r has quit [Ping timeout: 240 seconds]
<tejas-manohar> i did lbrf?
<tejas-manohar> in #sinatra
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
fandi has quit [Ping timeout: 240 seconds]
<lbrf> there's no past log when I join a channel ;)
<tejas-manohar> lbrf: if you can't see previous msgs in #sinatra channel, here's a gist of what i said - https://gist.github.com/tejas-manohar/7226ab80331fcbb87737
<tejas-manohar> lbrf: prob best to respond there
Takle has quit [Ping timeout: 255 seconds]
s00pcan has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
charliesome has quit [Ping timeout: 256 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
charliesome has joined #ruby
uber_hulk has joined #ruby
fandi has joined #ruby
geggam has quit [Ping timeout: 245 seconds]
commmmodo has joined #ruby
jonr22 has joined #ruby
jtreminio has joined #ruby
<jtreminio> Evening all. I am not familiar with Ruby, and simply need to include a specific version of a gem in a ruby file. The issue is explained here: https://github.com/mitchellh/vagrant-google/issues/25 , however, attempting to require the specific version returns this error: http://pastie.org/9751602
giuseppesolinas has joined #ruby
prometheus6 has joined #ruby
<prometheus6> .
prometheus6 has quit [Client Quit]
<sevenseacat> where did you put `gem 'fog', '=1.22'` ?
<sevenseacat> and what did you run to get the error
apoorvparijat has joined #ruby
<jtreminio> sevenseacat: at the top of my file. This is in a Vagrantfile - which Vagrant runs
<jtreminio> I'm guessing the gem is included somewhere above where I can access the flow
jonr22 has quit [Ping timeout: 250 seconds]
<sevenseacat> interesting, i didnt even know what was valid
<sevenseacat> only ever seen gems specified like that in Gemfiles
comma8 has quit [Ping timeout: 265 seconds]
emmesswhy has joined #ruby
<jtreminio> The issue is that there is an undefined constant, Fog::VERSION
<jtreminio> if I manually replace that with '1.2.5', works great. So, another solution would be to define Fog::VERSION myself. Is it possible to do this in my code, outside of the Fog class?
Megtastique has quit []
<havenwood> jtreminio: does it work if you?: require 'fog/version'
<jtreminio> require 'fog/1.2.2' ?
<jtreminio> Will check in a second, the vm is still spinning up
<havenwood> the 'fog/version'
<havenwood> actually the word, version
josephndenton has joined #ruby
<havenwood> jtreminio: there's often a `fog/version.rb` that defines the `Fog::VERSION` constant
<jtreminio> gotcha, testing
<jtreminio> oh nice, yeah that worke
<jtreminio> *worked
emmesswhy has quit [Ping timeout: 264 seconds]
<jtreminio> Thanks a bunch, havenwood
<havenwood> jtreminio: you're welcome
josephndenton has quit [Ping timeout: 256 seconds]
JoshGlzBrk has joined #ruby
ghr has joined #ruby
timonv_ has joined #ruby
<tejas-manohar> hey guys
ghr has quit [Ping timeout: 272 seconds]
<tejas-manohar> whats the fastest way to write if phrases[:tejasmanohar] is nil, then @phrase = '', else @phrase = phrases[:tejasmanohar]['phrase']
<tejas-manohar> i feel like there must be a shorter/sweeter way than the entire if/else block and checking === nil
timonv_ has quit [Ping timeout: 264 seconds]
<tejas-manohar> havenwood: maybe you have a thought on this one? ternary operator?
<tejas-manohar> havenwood: or that'll end up bad with ternary since nil? use if?
<tejas-manohar> rephrase that as well - if phrases[:tejasmanohar] is nil, then @phrase = '', else @phrase = phrases[:tejasmanohar][:phrase]
lxsameer has joined #ruby
<tejas-manohar> also is it more cusotmary to use the . syntax when going thru phrases or [:...] syntax
<havenwood> @phrase = phrases[:tejasmanohar] ? '' : phrases[:tejasmanohar]['phrase']
<havenwood> tejas-manohar: is there a case when it's false, or can you just use nil's falsyness?
<tejas-manohar> havenwood: it's never boolean false, it's nil instead so nil's falsyness/falsiness
<lbrf> @phrase = phrases[:tejasmanohar]['phrase'] unless phrases[:tejasmanohar].nil?
<havenwood> tejas-manohar: hard to say out of context
t7y9r has quit [Ping timeout: 240 seconds]
comma8 has joined #ruby
jtreminio has left #ruby ["Linkinus - http://linkinus.com"]
t3h_j4n170r has quit [Ping timeout: 240 seconds]
<tejas-manohar> lbrf: well i think your solution runs the risk of @phrases being undefined when its called in the view
<tejas-manohar> havenwood: yeah yours seems right
<tejas-manohar> messing with this
t3h_j4n170r has joined #ruby
<havenwood> >> "#{nil}"
<eval-in__> havenwood => "" (https://eval.in/228588)
t7y9r has joined #ruby
ridethekline has joined #ruby
<tejas-manohar> havenwood: watttt this is failing when phrases[:tejasmanohar] is nil (tested w/ p phrases[:tejasmanohar]) - @phrase = phrases[:tejasmanohar] ? '' : phrases[:tejasmanohar][:phrase]
<ridethekline> hi
<ridethekline> anyone on?
<havenwood> hi
<lbrf> :-)
<ridethekline> this is a really stupid question but why are there different programming languages?
<ridethekline> i'm learning ruby and i'm getting the hang of the syntax as well as memorizing a lot of cool stuff!
<ridethekline> but what i am not getting is why can't we do everything in ruby?
<havenwood> ridethekline: there are tradeoffs in languages, so there are niches where important tradeoffs have been made
<tejas-manohar> some have niches, some ppl like certain ways of doing things
<havenwood> ridethekline: ruby is a turing complete language, so anything that can be computed...
<tejas-manohar> havenwood: do you have any idea on my follow-up?
<ridethekline> you can also make gui apps in ruby
<havenwood> tejas-manohar: i can't tell from your code example
<ridethekline> so why not use ruby tk to make websites?
<tejas-manohar> its strange since the >> "#{nil}"
jimmyy has quit [Ping timeout: 256 seconds]
<havenwood> ridethekline: ruby doesn't have the best graphics bindings around, but does via jruby have access to swig, etc
<havenwood> ridethekline: that's another thing, the libraries that are available
Wolland has joined #ruby
<ridethekline> wow i have no idea what you just said
<jidar> having one hell of a time getting the windows gem to install on windows, get the following error: http://pastebin.com/tKCM0QAu I've done the required DevKit stuff via `ruby dk.rb init` `ruby dk.rb install` any ideas?
<tejas-manohar> fk windows
<tejas-manohar> lol
<havenwood> ridethekline: so not only are there different languages, there are different implementations of the same language
<jidar> tejas-manohar: tell me about it
<jidar> tejas-manohar: but customers want stuff and it pays ;)
<ridethekline> tejas-manohar: it's nothing to worry about :)
<havenwood> ridethekline: one very nice implementation of Ruby is JRuby, which is the JVM and has access to all its libraries
<ridethekline> yay i know something :{
<lbrf> ridethekline: there's other languages than english too :p
<ridethekline> :}
<ridethekline> lbrf: english is the only language that matters
<ridethekline> it's the
<ridethekline> "international" language
<tejas-manohar> lol i have no clue about windows man
<tejas-manohar> thats ttroll tho
<ridethekline> more countries speak English than any other language in the world
<tejas-manohar> havenwood: phrases = app[:phrases]
<lbrf> ridethekline: well, there's more people speaking mandarin than english in the world...
<havenwood> ridethekline: Shoes4 is an example of easily using SWIG through JRuby: https://github.com/shoes/shoes4#readme
<havenwood> tejas-manohar: oh, yeah, that ternary is the opposite of intended. do use an if statement.
ridetheklines has joined #ruby
<tejas-manohar> havenwood: oh
<ridetheklines> i hate my internet
fabrice31 has joined #ruby
<tejas-manohar> let me try to understand why then ask if still confused
dseitz has joined #ruby
ridethekline has quit [Ping timeout: 246 seconds]
samsquanch has joined #ruby
queequeg2 has quit [Quit: leaving]
mark06 has joined #ruby
<mark06> hi, trying to use modules, does this look good? http://pastie.org/9751623
<mark06> usage sample: http://pastie.org/9751624
commmmodo has quit [Quit: commmmodo]
bmichelsen has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
<Areessell> Line 130 in the first one is no bueno
<Areessell> I mean, I'm sure it works. But it's throwing all kinds of red flags for how I program
<Areessell> For example, That kind of stuff should be in a class itself.
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
<mark06> can you be more specific?
<Areessell> session = EasyOptions::Session.new; session.bash_output?
<Areessell> session.documentation
<Areessell> Something like that
<mark06> session???????????????????????
<Areessell> Just an example???????????????
bronak has quit [Quit: Be back later ...]
<Areessell> ffs...
<havenwood> mark06: it's nice to replace things like `def EasyOptions.` with `def self.` do the module name can change without needing to be messed with everywhere
<mark06> thanks havenwood
<tejas-manohar> how to implement a secret
bronak has joined #ruby
TheLastExile has quit [Quit: Leaving]
<Areessell> Implement a secret?
<tejas-manohar> im getting a warning about not using secret and cookies doing omniauth btw
<havenwood> mark06: though you can just drop the `self.` and put a `module_function` before the first method definition
<Areessell> I like to use `class << self` for some reason. Dunno why
<Areessell> If theres one class method, I use `def self.method_name` though
<havenwood> mark06: a `module_function` before the methods will make them all available as module functions
<mark06> so I make the function a module function only if I plan to make the function public?
<havenwood> mark06: here's a little writeup about module_funciton: http://dev.af83.com/2013/06/13/ruby-and-module-function.html
<havenwood> mark06: yeah, you can't have one be private
<mark06> if there's no self. then it can't be used within the module, why?
<havenwood> mark06: because there's no method on self to call if you don't define one
diegoviola has joined #ruby
<havenwood> mark06: self being EasyOptions in this case
<ridetheklines> what's the point of self?
<ridetheklines> i don't really get it
<ridetheklines> why not call it the name of the object?
<mark06> neither do I, for modules
<mark06> I thought defining a method within a module would naturally make it part of the module and not require the use of 'self.'
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
<havenwood> mark06: there are a variety of options depending on how you want to use the module and expose methods
<Areessell> D< havenwood> mark06: it's nice to replace things like `def EasyOptions.` with `def self.` do the module name can change without needing to be messed with everywhere
<mark06> I think the code would be better organized if I encapsulated private stuff within a class and made puiblic only finish method, Options and Arguments... but this is not too important, I wanted to know if I'm doing something bizarre for now
jdj_dk has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<mark06> I want to know if even this new code would be better than setting the global variables $options and such
<mark06> for now, that's what I want to solve, the use of global variables
benzrf is now known as benzrf|offline
<tejas-manohar> hey guys having some trouble w/ secret + cookies
<tejas-manohar> not sure what to do
<tejas-manohar> thats the trace from my convo in #sintara really a conversation w/ myself
<tejas-manohar> if someone knows here ill cancel question there, just ping me pls
lbrf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chrisseaton> banisterfiend still there?
spupuser has joined #ruby
josephndenton has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
Mia has joined #ruby
timonv_ has joined #ruby
Takle has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
JoshGlzBrk has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
bigmac is now known as i8igmac
Takle has quit [Ping timeout: 250 seconds]
ridetheklines has quit [Quit: Page closed]
uber_hulk has quit [Ping timeout: 240 seconds]
sski has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
sski has joined #ruby
jimbach has joined #ruby
<godd2> Anyone participating in the upcoming Ludum Dare?
Takle has joined #ruby
sski has quit [Ping timeout: 245 seconds]
jimmyy has joined #ruby
thsig has quit [Remote host closed the connection]
MattB2 has quit [Remote host closed the connection]
jonr22 has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
parduse has quit [Ping timeout: 240 seconds]
jimbach has quit [Ping timeout: 272 seconds]
jimmyy has quit [Max SendQ exceeded]
spupuser has quit [Remote host closed the connection]
jimmyy has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jimmyy has quit [Max SendQ exceeded]
jonr22 has joined #ruby
jdj_dk has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
parduse has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jonr22 has quit [Remote host closed the connection]
arup_r has joined #ruby
jonr22 has joined #ruby
<tejas-manohar> i saw there's an if in ERB, but no else? is that true? if there's no else, how do i imitate its behavior?
<tejas-manohar> oh there is an else
nkumari has joined #ruby
Mia has quit [Read error: Connection reset by peer]
chrishough has quit [Max SendQ exceeded]
Mia has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
chrishough has joined #ruby
nkumari has quit [Ping timeout: 244 seconds]
<tejas-manohar> nvm
<tejas-manohar> moved to #sinatra
<tejas-manohar> if u become interested here's the question https://gist.github.com/tejas-manohar/c24acc0f0291f695503a
Scripore has quit []
Pupeno_ has joined #ruby
Arnie25 has quit [Ping timeout: 240 seconds]
Pupeno has quit [Ping timeout: 265 seconds]
razieliyo has quit [Quit: Saliendo]
parduse has quit [Ping timeout: 245 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
claptor has quit [Quit: this channel is bakas]
jonr2219 has joined #ruby
boombadaroomba has joined #ruby
chabier has joined #ruby
apoorvparijat has quit [Ping timeout: 240 seconds]
maksalra has joined #ruby
<maksalra> anyone heard of typing.io?
Photism has joined #ruby
jrvlima has joined #ruby
chipotle has quit [Quit: cya]
parduse has joined #ruby
cleopatra has quit [Quit: Saliendo]
boombadaroomba has quit [Ping timeout: 240 seconds]
jonr2219 has quit [Remote host closed the connection]
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
jonr22 has joined #ruby
apoorvparijat has joined #ruby
<mark06> how about this now? http://pastie.org/9751676
Channel6 has quit [Remote host closed the connection]
chabier has quit [Remote host closed the connection]
suy|BNC has quit [Remote host closed the connection]
testcore has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
chabier has joined #ruby
uber_hulk has joined #ruby
cleopatra has joined #ruby
Darryl_ has joined #ruby
terlar has joined #ruby
coderhs has joined #ruby
jonr22 has quit [Remote host closed the connection]
coderhs has quit [Read error: Connection reset by peer]
KLVTZ has quit [Ping timeout: 255 seconds]
testcore has joined #ruby
jonr22 has joined #ruby
ghr has joined #ruby
adriancb has joined #ruby
jonr22 has quit [Remote host closed the connection]
<mark06> ok fixed the finish method: http://pastie.org/9751694, using: http://pastie.org/9751693
jonr22 has joined #ruby
timonv_ has joined #ruby
_ixti_ has joined #ruby
mary5030 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
ixti has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 250 seconds]
adriancb has quit [Ping timeout: 255 seconds]
<tejas-manohar> mark06: have u used sinatra?
jonr22 has quit [Remote host closed the connection]
<mark06> no
jonr22 has joined #ruby
<Hanmac> mark06: the shebang in the first line is wrong, you will get problems with that some day
newbie89 has joined #ruby
Cache_Money has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
Kricir has quit [Remote host closed the connection]
<mark06> expand it
kiyote23 has joined #ruby
newbie89 has quit [Client Quit]
lemur has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
lemur has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<Hanmac> huch i did read wrong ... i should put on my glasses
jonr22 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<tejas-manohar> hey guys! https://github.com/tejas-manohar/omnistrate/blob/master/app.rb#L41 is my ruby file with the line in mind highlighted, here's the view https://github.com/tejas-manohar/omnistrate/blob/master/views/all.erb#L2 - line highlighted --> so i've defined logged_in as a helper method in ruby but why am i erroring http://i.imgur.com/csI5OUM.png saying that method cannot be accessed???
jonr22 has joined #ruby
<tejas-manohar> even here http://www.sinatrarb.com/faq.html#helpview , it clearly says if theyre defined there, its accessible! what's going on O.o
Spami has joined #ruby
chabier has quit [Remote host closed the connection]
<tejas-manohar> (ok sleeping for some time, just ping me w/ "tejas-manohar:" at beginning of response if you know answer, i'll scroll up when I wake up)
fabrice31 has joined #ruby
<tejas-manohar> feel free to do so in #sinatra or #ruby
<tejas-manohar> adios
<tejas-manohar> (been facing issue for couple hrs)
<sevenseacat> lol
<sevenseacat> 'gonna go to bed now, do my work for me and give me the answer for when i wake up'
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
kiyote23 has quit [Ping timeout: 245 seconds]
jrvlima has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
samsquanch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 272 seconds]
<pontiki> cool. that's the way it always works for me, too!
maksalra has quit [Ping timeout: 246 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr2219 has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 265 seconds]
jonr22 has joined #ruby
antgel has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
chipotle has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
apoorvparijat has quit [Read error: No route to host]
apoorvparijat has joined #ruby
chabier has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr2219 has joined #ruby
posixpascal has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
Wolland has quit []
bmichelsen has quit [Quit: ZZZzzz…]
ned__ has left #ruby [#ruby]
tekk has quit [Ping timeout: 256 seconds]
Jackneill has joined #ruby
apoorvparijat has quit [Remote host closed the connection]
zumbi_ has quit [Ping timeout: 245 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
lemur has joined #ruby
jonr2219 has joined #ruby
josephndenton has joined #ruby
BlackGear has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
apoorvparijat has joined #ruby
NoNMaDDeN has quit [Ping timeout: 255 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
josephndenton has quit [Ping timeout: 244 seconds]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby
jonr2219 has quit [Remote host closed the connection]
jonr22 has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
agjacome has quit [Quit: leaving]
mkaesz has joined #ruby
bmichelsen has joined #ruby
dseitz has joined #ruby
jonr22 has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
BlackGear has quit [Quit: ZZZzzz…]
jenrzzz has quit [Ping timeout: 256 seconds]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
jenrzzz has joined #ruby
webus has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
jimbach has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr2219 has joined #ruby
ghr has joined #ruby
chrishough has joined #ruby
rippa has joined #ruby
chrishough has quit [Client Quit]
jimbach has quit [Ping timeout: 258 seconds]
jonr2219 has quit [Remote host closed the connection]
jonr22 has joined #ruby
sdwrage has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 265 seconds]
jonr22 has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 258 seconds]
jonr22 has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
kapil__ has joined #ruby
antgel has joined #ruby
kiyote23 has joined #ruby
Spami has quit [Read error: Connection reset by peer]
apoorvparijat has quit [Remote host closed the connection]
Spami has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
arup_r has quit [Quit: Leaving.]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kiyote23 has quit [Ping timeout: 272 seconds]
mikepack has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 272 seconds]
kireevco has joined #ruby
AlexRussia has joined #ruby
mary5030 has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
havenwood has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
mloveless has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
reinaldob has quit [Ping timeout: 240 seconds]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr2219 has quit [Remote host closed the connection]
jonr22 has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
duncannz has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
chabier has quit [Remote host closed the connection]
chabier has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
BraddPitt has quit [Ping timeout: 244 seconds]
jdj_dk has quit [Remote host closed the connection]
rbrs has joined #ruby
timonv_ has joined #ruby
ptcek has joined #ruby
jheg has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
chabier has quit [Remote host closed the connection]
fabrice31 has joined #ruby
jheg has quit [Quit: jheg]
ghr has joined #ruby
Takle has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
kaspertidemann has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Mia has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 258 seconds]
coderhut has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Axy has quit [Read error: Connection reset by peer]
pushpak has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
kiyote23 has joined #ruby
cibs has quit [Ping timeout: 272 seconds]
cibs has joined #ruby
chabier has joined #ruby
Rampages has quit [Quit: Oh... where my internets?]
dts is now known as usandenemies
usandenemies is now known as dts
mloveless has joined #ruby
kiyote23 has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
Spami has joined #ruby
suy|BNC has joined #ruby
cibs has quit [Ping timeout: 272 seconds]
Rampages has joined #ruby
nkumari has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
chu has joined #ruby
anaeem1 has joined #ruby
nkumari has quit [Ping timeout: 255 seconds]
cibs has joined #ruby
josephndenton has joined #ruby
goodenough has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 265 seconds]
chabier has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
chabier has joined #ruby
Rampages has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
chabier has quit [Remote host closed the connection]
Rampages has joined #ruby
webus has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
SOLDIERz_ has joined #ruby
chabier has joined #ruby
antgel has quit [Ping timeout: 245 seconds]
jimbach has joined #ruby
antgel has joined #ruby
timonv_ has joined #ruby
jimbach has quit [Ping timeout: 258 seconds]
chu has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 250 seconds]
chabier has quit [Remote host closed the connection]
maia has joined #ruby
arup_r has joined #ruby
kireevco has quit [Quit: Leaving.]
<maia> hello. can someone help me with a regex? What I’m trying: if last letter is ’s’ remove it, but only if previous letter is in a set of letters.
<maia> what I thought should work is: some_string.gsub!(/(b|d|f|g|h|k|l|m|n|r|t)(s)$/, $1)
<maia> but I end up with: TypeError: no implicit conversion of nil into String
<maia> what am I doing wrong? Thanks in advance.
spider-mario has joined #ruby
beilabs_________ has quit [Ping timeout: 272 seconds]
beilabs_________ has joined #ruby
<maia> oh, I guess I should use '\1' instead of $1.
emmesswhy has joined #ruby
emmesswhy has quit [Read error: Connection reset by peer]
fertapric has joined #ruby
coderhut has quit [Ping timeout: 246 seconds]
marcdel has quit [Ping timeout: 244 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
oo_ has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
emmesswhy has joined #ruby
kiyote23 has joined #ruby
arup_r has quit [Quit: Leaving.]
<apeiros_> maia: note, you can simplify (b|d|f|g|h|k|l|m|n|r|t) to ([bdfghklmnrt])
reinaldob has joined #ruby
<maia> apeiros_: thanks for the note. any simplification helps! :)
startupality has joined #ruby
commmmodo has joined #ruby
Takle has joined #ruby
ringarin has joined #ruby
kiyote23 has quit [Ping timeout: 250 seconds]
panga has joined #ruby
ponga has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 264 seconds]
terlar has quit [Ping timeout: 258 seconds]
fertapric has quit [Quit: Textual IRC Client: www.textualapp.com]
fertapric has joined #ruby
timonv_ has joined #ruby
maia has quit [Quit: maia]
Jamo_ has joined #ruby
jonr22 has joined #ruby
giuseppesolinas has joined #ruby
timonv_ has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 240 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
iaj has quit [Ping timeout: 264 seconds]
toretore has joined #ruby
boombadaroomba has joined #ruby
boombadaroomba has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
jdj_dk has joined #ruby
Darryl_ has quit [Quit: Connection closed for inactivity]
Soda has quit [Remote host closed the connection]
fertapric has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goshdarnyou has quit [Quit: Connection closed for inactivity]
jidar has quit [Ping timeout: 240 seconds]
SOLDIERz_ has quit [Quit: Be back later ...]
fertapric has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
zumbi has joined #ruby
reinaldob has quit [Remote host closed the connection]
codecop has joined #ruby
codecop_ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
wald0 has joined #ruby
<wald0> require "rspec-expectations"
<wald0> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- rspec-expectations (LoadError)
<wald0> why??
<wald0> i have gem install --user-install rspec and rspec-expectations
<wald0> but stills showing me this
<godd2> where is the require?
codecop_ has quit [Client Quit]
<godd2> is it in irb?
<godd2> or in spec_helper.rb?
oo_ has quit [Remote host closed the connection]
iaj has joined #ruby
zumbi has quit [Ping timeout: 240 seconds]
commmmodo has quit [Quit: commmmodo]
sarlalia1 has quit [Ping timeout: 240 seconds]
<wald0> just in my test.rb file
<wald0> im testing a small new code
<godd2> and how are you running test.rb
<godd2> with ruby or with rspec?
echooo has joined #ruby
<wald0> ruby file.rb
<godd2> can you Gist the contents of file.rb ?
arup_r has joined #ruby
<godd2> try `rspec file.rb` instead of `ruby file.rb`
<wald0> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require': cannot load such file -- rspec-expectations (LoadError)
Takle has joined #ruby
<godd2> what version of rspec is it?
<shevy> wald0!!!
<shevy> there was something I had to tell you but I forgot what it was :(
SCHAAP137 has joined #ruby
<wald0> shevy: !
<wald0> lol
giuseppesolinas has joined #ruby
<wald0> godd2: maybe 3.1.0
<godd2> rspec -v
kyoshero has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
CustosLimen has quit [Ping timeout: 255 seconds]
chu has joined #ruby
ptrrr has joined #ruby
<godd2> wald0 if you run the file with `rspec file.rb` you don't need to require rspec stuff
ctp has joined #ruby
apeiros__ has joined #ruby
apeiros___ has joined #ruby
luriv has joined #ruby
<wald0> 3.1.7, but the dirs shows differnet version like: ./ruby/1.9.1/gems/rspec-3.1.0
<wald0> godd2: i know almost nothing about rspec :) was just trying a demo snippet of code
zumbi has joined #ruby
Areessell has quit [Ping timeout: 256 seconds]
kiyote23 has joined #ruby
Darryl_ has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
Hobogrammer has quit [Ping timeout: 272 seconds]
apeiros has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
fandi has quit [Read error: Connection reset by peer]
josephndenton has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
sarlalia1 has joined #ruby
kiyote23 has quit [Ping timeout: 244 seconds]
<pontiki> all you should need to require is rspec
<wald0> updating gems now.. lets see if changes anything
jdj_dk has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 258 seconds]
Pupeno has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
Pupeno_ has quit [Ping timeout: 265 seconds]
jdj_dk has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
<pontiki> but even if you do want to, you should be doing: require "rspec/expectations"
Spami has joined #ruby
lemur has quit [Remote host closed the connection]
<pontiki> at least if you're using rspec >= 3
lemur has joined #ruby
<wald0> "There was a change in rspec starting with release 3.0. You simply need to replace require 'rspec-expectations' with require 'rspec' in the env.rb file...
<wald0> duh!
<pontiki> yah
<wald0> seems like i have followed and old chunk of demo code
<wald0> big spanks to the api breakages!
Joufflu has quit [Quit: Leaving]
<shevy> free spanking for everyone
lemur has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
<wald0> what is the command equivalent to apt-cache search in gems?
adamski2600 has joined #ruby
<apeiros__> gem search?
apeiros__ is now known as apeiros_
jimbach has joined #ruby
ringaring has joined #ruby
jottr has joined #ruby
despai has joined #ruby
exadeci has joined #ruby
ringarin has quit [Ping timeout: 240 seconds]
jimbach has quit [Ping timeout: 258 seconds]
ponga has joined #ruby
panga has quit [Read error: Connection reset by peer]
olivier_bK has joined #ruby
neoxquick has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
timonv_ has quit [Ping timeout: 264 seconds]
<wald0> arf! stupid rspec
* wald0 rm -rf --purge
ponga has quit [Client Quit]
Deele has joined #ruby
fantazo has joined #ruby
oleo__ is now known as oleo
<wald0> apeiros_: this only shows local gems? i want to know the online available gems
<apeiros_> wald0: are you using an ancient version of rubygems?
<apeiros_> because that behavior was changed like 5y back…
<godd2> wald0 just go to rubygems.org
<apeiros_> `gem search -r` for ancient rubygems
<apeiros_> modern ones default to -r
<apeiros_> pro tip: if you use ancient stuff, say so. people generally assume you're not stuck in the last decade.
lkba has joined #ruby
Takle_ has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
bmichelsen has joined #ruby
dangerousdave has joined #ruby
reinaldob has joined #ruby
last_staff has joined #ruby
neoxquick has joined #ruby
jdj_dk has quit [Remote host closed the connection]
reinaldob has quit [Ping timeout: 256 seconds]
jdj_dk has joined #ruby
haroldwu has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
haroldwu has joined #ruby
dcarmich has joined #ruby
<shevy> I use Linux
<dangerousdave> How can i convert a dattime representation of the form "19970126045828" please?
jdj_dk has quit [Ping timeout: 240 seconds]
<shevy> 1992 - "just a hobby, won't be big and professional like gnu"
<shevy> :)
<shevy> dangerousdave you can try to parse it probably
godd2 has quit [Ping timeout: 258 seconds]
wsmoak has joined #ruby
wsmoak has joined #ruby
<shevy> Date.parse("19970126045828") # => #<Date: 1997-01-26 ((2450475j,0s,0n),+0s,2299161j)>
<shevy> is this right?
kaspertidemann has quit []
<shevy> it always confuses me when the year comes first, I am used to the dd.mm.yyyy order
Pupeno_ has joined #ruby
Jake232 has joined #ruby
claymore has joined #ruby
spider-mario has quit [Ping timeout: 264 seconds]
Pupeno has quit [Ping timeout: 272 seconds]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
chabier has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
rbrs has quit [Remote host closed the connection]
Spami has quit [Remote host closed the connection]
<dangerousdave> shevy, thank you very much indeed!
antgel has quit [Ping timeout: 256 seconds]
sarlalia1 has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> \o/
charliesome has quit [Quit: zzz]
kiyote23 has joined #ruby
Spami has joined #ruby
antgel has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
josephndenton has joined #ruby
AlexRussia has joined #ruby
<wald0> ah, i did this the other day
<wald0> dangerousdave:
jottr has quit [Ping timeout: 258 seconds]
<wald0> oh well, the inverse
<wald0> driver.save_screenshot 'example2.png'
<wald0> duh, not this... stupid copypaste
<shevy> hahaha
* wald0 happy that is not a pr0n link
<wald0> datetime_epoch = DateTime.strptime( datetime, "[%d/%b/%Y:%H:%M:%S %Z]").to_time.to_i
<shevy> there is pr0n on the internet?
<wald0> aparently I needed to pass it to to_time before to_i in order to have it working
<shevy> that will yield back n seconds?
<wald0> shevy: its only a rumour imho
<shevy> hehehe
<mostlybadfly> hola
mloveless has quit [Remote host closed the connection]
mloveless has joined #ruby
josephndenton has quit [Ping timeout: 252 seconds]
claudiuinberlin has joined #ruby
spider-mario has joined #ruby
moritzs has joined #ruby
chabier has quit [Quit: Leaving...]
mkaesz has quit [Ping timeout: 240 seconds]
mloveless has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
emmesswhy has joined #ruby
oleo has quit [Quit: Verlassend]
davidhq has joined #ruby
fertapric has quit [Quit: Textual IRC Client: www.textualapp.com]
bonhoeffer has joined #ruby
moritzs has quit [Ping timeout: 265 seconds]
emmesswhy has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby
jdj_dk has joined #ruby
antgel has quit [Ping timeout: 258 seconds]
m8 has joined #ruby
emmesswhy has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby
<shevy> hey flybad
fabrice31 has joined #ruby
moritzs has joined #ruby
jimms has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bauruine has quit [Quit: ZNC - http://znc.in]
fabrice31 has quit [Ping timeout: 244 seconds]
bauruine has joined #ruby
<mostlybadfly> hello :)
<mostlybadfly> how is your weekend shevy ?
<wald0> im trying to use selenium for check if my website works correctly (unit-testing a website)
<wald0> hte most important thing is to know if the downloads works, but these downloads are huge
<wald0> i can do a download in selenium, but how i can make it to download only the 1% of the file ? or hte first MB's?
<shevy> mostlybadfly: dunno, have to prepare a presentation about large (biological) viruses and then meetup with the supervisor. two exams this week as well, and some more bickering with bureaucracy. In regards to programming, I'd like to finish my rewrite of pipe handling in ruby... I want to get something like Avisynth for ruby -> http://avisynth.nl/index.php/First_script
max96at|off is now known as max96at
keen____ has joined #ruby
rocknrollmarc has joined #ruby
keen___ has quit [Ping timeout: 258 seconds]
rkalfane has joined #ruby
<mostlybadfly> oh nice interesting
<mostlybadfly> that sounds like a fun project, how far along are you?
byprdct has joined #ruby
Soda has joined #ruby
cnj has quit [Ping timeout: 258 seconds]
kiyote23 has quit [Ping timeout: 265 seconds]
Seich has quit [Ping timeout: 258 seconds]
mkaesz has joined #ruby
RTG` has quit [Ping timeout: 272 seconds]
apoorvparijat has joined #ruby
C0deMaver1ck_ has quit [Ping timeout: 258 seconds]
RTG` has joined #ruby
cnj has joined #ruby
timonv_ has quit [Remote host closed the connection]
dangerousdave has joined #ruby
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest51424
<dangerousdave> wald0, perhaps I am undoing what you did
Seich has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
charlenopires has joined #ruby
Takle_ has quit [Remote host closed the connection]
freerobby has joined #ruby
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirun has joined #ruby
jottr has joined #ruby
byprdct has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarlalia1 has joined #ruby
chu has joined #ruby
Blaze_Boy has joined #ruby
tomeara has joined #ruby
<shevy> mostlybadfly hahaha ... not far at all... I should have finished reading all papers and then present the overview and presentation "tactic" but I haven't finished at all
nastri has joined #ruby
mkaesz has quit [Ping timeout: 265 seconds]
fertapric has joined #ruby
antgel has joined #ruby
mhi^ has joined #ruby
MrIlyas has joined #ruby
Unknown2 has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
despai has quit [Quit: This computer has gone to sleep]
mkaesz has joined #ruby
jottr has joined #ruby
etqqkoiflwhb has joined #ruby
sarlalia1 has quit [Ping timeout: 264 seconds]
jimbach has joined #ruby
despai has joined #ruby
tlarevo has joined #ruby
mkaesz has quit [Ping timeout: 264 seconds]
mhi^ has quit [Quit: Lost terminal]
ptcek has quit [Remote host closed the connection]
jimbach has quit [Ping timeout: 258 seconds]
despai has quit [Client Quit]
arup_r has quit [Quit: Leaving.]
benzrf|offline is now known as benzrf
yeticry has quit [Ping timeout: 272 seconds]
thiagofm has joined #ruby
last_staff has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
havenwood has joined #ruby
thiagofm has quit [Remote host closed the connection]
jottr_ has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
samsquanch has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
samsquanch has quit [Client Quit]
mkaesz has joined #ruby
dangerousdave has joined #ruby
mjuszczak has joined #ruby
anaeem1_ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
claymore has joined #ruby
claptor has joined #ruby
elastik has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<elastik> hello
lolmaus has joined #ruby
Unknown2 has quit [Quit: Leaving]
chinmay_dd has joined #ruby
mkaesz has quit [Ping timeout: 252 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> do you guys like the ternary operator and use it a lot?
SOLDIERz_ has joined #ruby
<havenwood> i use it more for one liner examples
<shevy> quazimodo I thought canadians have a french accent!
<shevy> so it should be eeee' ... the last h must be silent
Mia has joined #ruby
<shevy> havenwood I see. I am staring at some code here where a dude has literally about 4 lines each with ?'s like
<shevy> octave = match[3].empty? ? assumed_octave : match[3]
<shevy> [match[1].upcase, match[2] == '' ? nil : match[2], octave.to_i]
apoorvparijat has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> and on top of that three one-lined raise ArgumentError before that
<shevy> raise ArgumentError if match[3].to_i > 8 || (assumed_octave && !(0..8).include?(assumed_octave))
MrIlyas has quit [Read error: Connection reset by peer]
jheg has joined #ruby
postmodern has quit [Quit: Leaving]
ptrrr has quit [Quit: ptrrr]
lxsameer has quit [Quit: Leaving]
SOLDIERz_ has quit [Ping timeout: 245 seconds]
Arnie25 has joined #ruby
ptrrr has joined #ruby
beilabs_________ has quit [Quit: Be back later ...]
jheg has quit [Client Quit]
oleo has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
beilabs_________ has joined #ruby
chinmay_dd has quit [Quit: Leaving]
chinmay_dd has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
diamonds has joined #ruby
fertapric has quit [Quit: Textual IRC Client: www.textualapp.com]
lkba has quit [Ping timeout: 264 seconds]
_5kg has quit [Ping timeout: 255 seconds]
rkalfane has joined #ruby
jonr22 has joined #ruby
bMalum has joined #ruby
Takle has joined #ruby
<quazimodo> hrm
<quazimodo> my process is dying before I even speak to it :/
Trieste has quit [Ping timeout: 258 seconds]
ptrrr has quit [Quit: ptrrr]
phutchins has joined #ruby
<shevy> turn it into a zombie
krz has joined #ruby
jonr22 has quit [Ping timeout: 258 seconds]
Takle has quit [Ping timeout: 258 seconds]
jottr_ has quit [Ping timeout: 256 seconds]
apoorvparijat has joined #ruby
jottr_ has joined #ruby
mkaesz has joined #ruby
arup_r has joined #ruby
giuseppesolinas has joined #ruby
Trieste has joined #ruby
thsig has joined #ruby
<quazimodo> shevy: lol
<quazimodo> weird though
inkblots has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
<quazimodo> the process is just a loop do; gets "you said #{puts}"; end
inkblots has left #ruby [#ruby]
<quazimodo> dno why it's dying with status 1
Takle_ has joined #ruby
<apeiros___> because your code raises?
apeiros___ is now known as apeiros
<apeiros> silly tail
<shevy> it was growing too!
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<quazimodo> apeiros: maybe?
fabrice31 has joined #ruby
<apeiros> yeah, had to reboot the time capsule. I think it's dying. gotta find a replacement :-|
<apeiros> quazimodo: easy enough to test, you know? :-p
<quazimodo> I need to direct it's stderr somewher i can look at it
<quazimodo> apeiros: lol well it's dying in my rspec test
<apeiros> or you just call it directly…
tlarevo_ has joined #ruby
razieliyo has joined #ruby
razieliyo has joined #ruby
<quazimodo> works fine directly. Half the time it's fine in my specs
tlarevo has quit [Ping timeout: 265 seconds]
<apeiros> then I guess the above was not a verbatim copy
mrgrieves has quit [Ping timeout: 258 seconds]
SOLDIERz_ has joined #ruby
<pontiki> couldn't hardly be. "you said " doesn't seem a likely input line separator for gets
<apeiros> also `puts` without arg
<pontiki> well, that'd just eval out to ""
<apeiros> I know
<apeiros> but unlikely too
arup_r has quit [Quit: Leaving.]
<pontiki> yes, highly suspicious
mrgrieves has joined #ruby
benzrf is now known as benzrf|offline
<apeiros> reason enough for me to assume that the whole thing just breaks apart when running it :-)
<apeiros> quazimodo: and did you try it with the input it receives from rspec too?
havenwood has quit [Remote host closed the connection]
<quazimodo> sure :)
anaeem1_ has quit [Remote host closed the connection]
havenwood has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
<quazimodo> I'm sure i've done something
<quazimodo> just not certain what
<quazimodo> (and yes i know a robot shouldn't have execute, I'm just playing
banister has joined #ruby
sevenseacat has quit [Remote host closed the connection]
unshadow has joined #ruby
anaeem1_ has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
<unshadow> My first shot at getting ruby an SSHSocket to work with (using ffi) https://github.com/bararchy/SSHSocket its not fully finished and needs allot more work, what you guys think ?
<unshadow> this is a server side btw
<unshadow> as the client side is fully implamented uner net-ssh
tlarevo_ has quit []
nfk has joined #ruby
kenichi has quit [Ping timeout: 245 seconds]
startupality has quit [Quit: startupality]
emmesswhy has quit [Quit: This computer has gone to sleep]
philwantsfish has quit [Read error: Connection reset by peer]
philwantsfish has joined #ruby
boombadaroomba has joined #ruby
Kilo`byte has quit [Ping timeout: 265 seconds]
unshadow has quit [Quit: leaving]
Photism has quit [Quit: Leaving]
<wald0> I have an array of hashes, one of their elements is :request which points to the address of a file (webserver logs access)
<wald0> how i can count the amount of the same request that I have ?
Trieste has quit [Ping timeout: 258 seconds]
<rpag> wald0, .count {} can probably do it
<spider-mario> probably using .group_by
<spider-mario> oh, didn’t know about that one
chinmay_dd has quit [Ping timeout: 240 seconds]
beilabs_________ has quit [Ping timeout: 245 seconds]
<wald0> $entries.each { |entry| $requests.push(entry[:request]) }
boombadaroomba has quit [Ping timeout: 272 seconds]
bMalum has quit [Quit: bMalum]
<spider-mario> this is equivalent to $entries.map {|entry| entry[:request]}, is it not?
<spider-mario> (well, $requests = …)
<wald0> so $requests is a list of all the requests (even duplicates) found
Kilo`byte has joined #ruby
<spider-mario> you could write $entries.group_by {|entry| entry[:request]} and get a hash of (unique_request ⇒ list_of_entries_with_that_request)
<spider-mario> so the keys of that hash would be your unique requests
dangerousdave has joined #ruby
_5kg has joined #ruby
<wald0> mmh
* wald0 reading docs
DLSteve has joined #ruby
charlenopires has quit [Quit: Be back later ...]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
beilabs_________ has joined #ruby
jdj_dk has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 240 seconds]
bMalum has joined #ruby
chu has joined #ruby
jimms has quit [Remote host closed the connection]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
giuseppesolinas has joined #ruby
<dangerousdave> Anyone know why this times out please? "require 'net/telnet'; Net::Telnet::new("Host" => "gmail-smtp-in.l.google.com", "port" => 25, "Timeout" => 30)"
<dangerousdave> works fine from the command line
anaeem1_ has quit [Remote host closed the connection]
Azure has quit [Quit: Blue Sky Fish]
anaeem1 has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
Azure has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
bhaak has quit [Ping timeout: 272 seconds]
davedev24_ has joined #ruby
chinmay_dd has joined #ruby
etqqkoiflwhb has quit [Read error: Connection reset by peer]
cnj has quit [Ping timeout: 258 seconds]
<dangerousdave> disregard last question, asked on #ruby
<pontiki> this is #ruby
<dangerousdave> #ruby-lang*
crazydiamond has quit [Ping timeout: 265 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
cnj has joined #ruby
bhaak has joined #ruby
<shevy> this is #sparta !
arup_r has joined #ruby
klmlfl has quit [Remote host closed the connection]
<quazimodo> apeiros: i figured out what it was :)
<quazimodo> bundle exec <- takes 3 seconds to actually turn on
<quazimodo> no point checking stdout for output if bundle's still messing about'
<quazimodo> so I need a way to spawn my process, then do my interactions with it once it's ready
<quazimodo> so I need to signal that the process is ready. No idea how
rocknrollmarc has quit [Ping timeout: 250 seconds]
kaspertidemann has joined #ruby
bmorearty has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beilabs_________ has quit [Ping timeout: 258 seconds]
Trieste has joined #ruby
beilabs_________ has joined #ruby
jrdnull has quit [Quit: ZNC - http://znc.in]
Jake232 has joined #ruby
Arnie25 has quit []
AlexRussia has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
AlexRussia has joined #ruby
AlexRussia has quit [Client Quit]
AlexRussia has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
nicoulaj has joined #ruby
kyoshero has quit [Ping timeout: 272 seconds]
kyoshero has joined #ruby
kyoshero has quit [Max SendQ exceeded]
claymore has quit [Ping timeout: 264 seconds]
kyoshero has joined #ruby
geggam has joined #ruby
charlenopires has joined #ruby
__future__ has left #ruby [#ruby]
jrd0 has joined #ruby
Blaze_Boy has quit [Quit: Blaze_Boy]
ctooley has joined #ruby
charlenopires has quit [Read error: Connection reset by peer]
claymore has joined #ruby
charlenopires has joined #ruby
<ctooley> I’m using ruby’s Net::HTTP to make reqeusts. Is there a clean way to get back where the site is redirecting to or to tell Net::HTTP to follow the redirect?
beilabs_________ has quit [Ping timeout: 272 seconds]
<jhass> I think the docs actually have an example for that
despai has joined #ruby
<jhass> that said, maybe you want something that abstracts net/http (and provides such functionality), for example faraday
beilabs_________ has joined #ruby
charliesome has quit [Quit: zzz]
AlexRussia has quit [Ping timeout: 250 seconds]
hamakn has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: Leaving.]
hamakn has joined #ruby
Megtastique has joined #ruby
SCHAAP137 has quit [Ping timeout: 250 seconds]
snath has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
<wald0> how i can sort by keys this? a.each { |key, hash| puts key }
davedev24_ has joined #ruby
SCHAAP137 has joined #ruby
workmad3 has joined #ruby
<wald0> sorting them as alphabetical/numerical order before to enter in the block, so to run the block in an ordered way
<rpag> h.keys.sort { |k| h[k] } ?
<jhass> sort_by ^
thsig has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
mjuszczak has quit []
diamonds has quit [Remote host closed the connection]
<apeiros> a.sort.each
freerobby has joined #ruby
nrsk has joined #ruby
<apeiros> you did say "sort by key", right? not by the value associated with the key?
jenrzzz has quit [Ping timeout: 258 seconds]
nrsk has quit [Client Quit]
despai has quit [Quit: This computer has gone to sleep]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AlexRussia has joined #ruby
<pontiki> i think for that to work, don't all the keys need to be the same class?
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Takle_ has quit [Remote host closed the connection]
<pontiki> >> {:z => "hi", 2 => "you"}.sort
<eval-in__> pontiki => comparison of Array with Array failed (ArgumentError) ... (https://eval.in/228625)
bmorearty has quit [Quit: bmorearty]
<apeiros> sure
<pontiki> >> {:z => "hi", 2 => "you"}.keys.sort
<eval-in__> pontiki => comparison of Symbol with 2 failed (ArgumentError) ... (https://eval.in/228626)
Linuus has joined #ruby
<pontiki> >> [:z, 2].sort
<eval-in__> pontiki => comparison of Symbol with 2 failed (ArgumentError) ... (https://eval.in/228627)
<pontiki> yeah
<apeiros> but is this a realistic concern?
<pontiki> beats me
<pontiki> it wasn't my problem :)
<shevy> :)
<apeiros> see. neither mine. if he runs into this problem - follow up question.
<apeiros> s/he runs/they run/
AlexRussia has quit [Ping timeout: 240 seconds]
chrishough has joined #ruby
vyorkin has joined #ruby
chrishough has quit [Client Quit]
timonv_ has joined #ruby
geggam has quit [Remote host closed the connection]
Linuus has quit [Ping timeout: 272 seconds]
<wald0> $entries.push(hash) unless $entries.include?({ :ip => ip, :request => request })
<jhass> $entries :(
<wald0> this is meant to create an array of hashes WITHOUT duplicates (for same ip + request), but actually i got duplicates
Linuus has joined #ruby
<jhass> why do you use a global? :(
felltir has joined #ruby
<jhass> use a set
<jhass> require 'set'; entries = Set.new
<wald0> jhass: i need to do a refactoring later, actally i have a bit hard to write in ruby, im not so familiarized with it
<wald0> what is set?
chinmay_dd has quit [Ping timeout: 258 seconds]
<jhass> a collection that contains an item only a single time, no matter how many times you add it
<jhass> much like the mathematical definition of it
alex88 has joined #ruby
sailias has joined #ruby
<wald0> confirmed, this doesn't make me a list of unique entries, it add duplicates, mmh... why ?
<wald0> ah, let me see
<jhass> because you only think they're the same
<wald0> well, thats not totally correct
<jhass> what's request? your class?
<wald0> the $entries.push(hash) includes more elements than just the :ip and :request
bracky has joined #ruby
<wald0> but i only need to verify if these ones exists (others like timestamps will be of course always different)
charlenopires has quit [Quit: Be back later ...]
<jhass> so you want Enumerable#any?
<jhass> ?
<wald0> mmmh, idk :)
* wald0 confused
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
commmmodo has joined #ruby
anarang has joined #ruby
<jhass> entries.any? {|entry| entry[:ip] == ip && entry[:request] == request }
<wald0> let me try
<wald0> mmh, how i should use this with the push ?
<wald0> if entries.any?... ?
<wald0> well, if !
<tejas-manohar> sevenseacat: i'd looked at that issue for a long time and it was 1 am lol so i was like ok going to come back in the morning but if anyone knows pls say
<jhass> you already know unless!
<wald0> damn, is hard to think on ruby way
<wald0> oh, i see
reinaldob has joined #ruby
<wald0> yay! it worked now :)
<wald0> i wonder what was wrong in my previous unless... maybe it was simply wrongly coded
<jhass> >> {a: 1, b: 2} == {a: 1, b: 2, c: 3}
<eval-in__> jhass => false (https://eval.in/228636)
<jhass> they're just not equal
claymore has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
rkalfane has joined #ruby
<wald0> ah, i see
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkalfane has quit [Client Quit]
<tejas-manohar> hey guys, i;'ve defined logged_in? as a helper method here - https://github.com/tejas-manohar/omnistrate/blob/master/app.rb#L41
<wald0> mmh, in a block, each variables are always cleaned up when restarting the loop or they are re-used ?
<jhass> wald0: those defined in the block are local to it
<tejas-manohar> (in view template)
<jhass> and so are gone when it returns
beef-wellington has joined #ruby
reinaldob has quit [Ping timeout: 250 seconds]
<tejas-manohar> for some reason, that method is not being accessible in my templating - http://i.imgur.com/aYqvzpZ.png
<tejas-manohar> (as the error describes)
<rpag> tejas-manohar, you have a typo
<wald0> good, so how i can re-use a variable ?
<tejas-manohar> rpag: o hmm
<rpag> logged_in isn't the same as logged_in?
Spami has quit [Quit: This computer has gone to sleep]
<havenwood> tejas-manohar: logged_in != logged_in?
<wald0> i want to calculate a percentage according the previous (previous loop) amount
<tejas-manohar> shit
Spami has joined #ruby
<jhass> wald0: by defining it outside of the block. But usually there's a better way in ruby
<jhass> this one sounds like a case for #inject
Spami has quit [Remote host closed the connection]
alex88 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Guest51424 has quit [Ping timeout: 258 seconds]
alex88 has joined #ruby
Soda has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
moritzs has quit [Ping timeout: 258 seconds]
charlenopires has joined #ruby
geggam has joined #ruby
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest84036
Rampages has quit [Read error: Connection reset by peer]
SOLDIERz_ has quit [Quit: Be back later ...]
Rampages has joined #ruby
<rpag> i drove my shevy to the levy but shevy was dry
<shevy> :\
atta has quit [Remote host closed the connection]
atta_ has joined #ruby
<tejas-manohar> hey i got all my code working!
<shevy> just because I have a drunk past
<tejas-manohar> but im not sure if there are better ways to do things
<Hanmac> jhass: your last sentence does sound right out of a supehero movie ;P
<tejas-manohar> stylisticallly, etc.
chinmay_dd has joined #ruby
<rpag> shevy, i have a drunk future
<tejas-manohar> its really my first full ruby app but its a really short siantra app mostly comments lol
<shevy> hahaha
<tejas-manohar> anyone wanna code review me of some sort?
Darryl_ has quit [Quit: Connection closed for inactivity]
<rpag> tejas-manohar, where's the code?
fabrice31 has quit [Ping timeout: 240 seconds]
wang has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 245 seconds]
<tejas-manohar> rpag: probably the stuff that can be simplified most if any is on line 71 under post
<rpag> tejas-manohar, for your requires, you could use configure :development do; end
<tejas-manohar> post '/me'
<tejas-manohar> oh ok
<jhass> too many comments IMO
<tejas-manohar> jhass: yeah way too many
oleo__ has joined #ruby
<tejas-manohar> but
<tejas-manohar> im gonna write a blog post besides it
<tejas-manohar> gonna be like a tutorial
<rpag> yeah, comments are throwing me off :)
<tejas-manohar> :)
<tejas-manohar> oh
Ulrike_Rayne has quit [Quit: asche zu asche und staub zu staub.]
despai has joined #ruby
<jhass> https://github.com/tejas-manohar/omnistrate/blob/master/app.rb#L66 we don't have ruby 2.2 yet, so don't create symbols from user input
chrishough has joined #ruby
<shevy> who is the sinner here who comments his code
<shevy> is it tejas-manohar
<tejas-manohar> me
<shevy> you must document in spanish
<tejas-manohar> lol
_5kg has quit [Ping timeout: 245 seconds]
<rpag> jhass, good catch
<rpag> tejas-manohar, you definitely want to fix that
<tejas-manohar> fixing
Takle has joined #ruby
<tejas-manohar> rpag: i mean i'll remove all the comments in the blog post but don't you think they're valuable for the example app ?
oleo is now known as Guest49800
<shevy> I think he meant the user input tejas-manohar
<rpag> tejas-manohar, i find them distracting
<shevy> oh :)
<tejas-manohar> yeah ik looking at that
mloveless has joined #ruby
josephndenton has joined #ruby
<tejas-manohar> wait what do you expect me to do there jhass https://github.com/tejas-manohar/omnistrate/blob/master/app.rb#L66
<tejas-manohar> that line doesnt take user input
Guest49800 has quit [Ping timeout: 250 seconds]
<tejas-manohar> thats referring to orchestrate's client
timonv_ has quit [Remote host closed the connection]
<jhass> session is user input
<tejas-manohar> it is now?
<tejas-manohar> session comes from auth but ok
<tejas-manohar> so what's explicitly wrong with this?
wang has joined #ruby
razieliyo has quit [Read error: Connection reset by peer]
<rpag> for every user you collect in session you create a symbol that you can't reclaim from memory
<tejas-manohar> so whats an alternative when using session
<havenwood> 2.2 ftw!
alex88 has quit [Remote host closed the connection]
* havenwood bides his time till Christmas
<tejas-manohar> * testing this cool irc thing
<tejas-manohar> fail
<havenwood> rpag: GC ALL THE THINGS \o/
<tejas-manohar> gc?
<jhass> use strings, not symbols
<tejas-manohar> oh
<shevy> what comes in 2.2?
<jhass> even after 2.2, :"#{anything}" is a strong smell
<shevy> jhass hates symbols :(
<tejas-manohar> so i guess this guide nedes to change? http://www.sitepoint.com/twitter-authentication-in-sinatra/
<havenwood> shevy: user-created Symbols can be GCed
<tejas-manohar> *needs
<jhass> symbols are identifiers, not data
<shevy> havenwood aaaah ok
tjbiddle has joined #ruby
<shevy> down with them! onto the GC with them
Rampages has quit [Read error: Connection reset by peer]
josephndenton has quit [Ping timeout: 258 seconds]
<jhass> tejas-manohar: where does that guide say :"#{foo}" ?
alex88 has joined #ruby
<havenwood> the grey stuff just repeats what the code already says
bonhoeffer has joined #ruby
<jhass> that's fine
<rpag> thats fine, its patterns like :"#{foo}", and foo.to_sym you want to avoid.
Rampages has joined #ruby
bmichelsen has joined #ruby
Rampages has quit [Read error: Connection reset by peer]
<tejas-manohar> jhass: well its not doing that but its storing session[:username]
Rampages has joined #ruby
<jhass> yes, that's not the point
Rampages has quit [Client Quit]
<jhass> dynamically creating symbols is bad
<tejas-manohar> ohhh
<havenwood> give to String what is s
xaitec has joined #ruby
<tejas-manohar> jhass: i need to make an @stringvariable
<jhass> no
olivier_bK has quit [Ping timeout: 258 seconds]
<jhass> again, I wonder if you even read the stuff
<havenwood> i swear my left shift key being dead is driving me nuts
<havenwood> trying to right shift i keep hitting early returns
<jhass> or if you just read it but don't pay any attention to trying to actually understand what you read
<shevy> lol
dangerousdave has joined #ruby
<shevy> havenwood you are doomed to write downcase-only!
<havenwood> def doomed 8args, 7block [ \gah\ puts gah ]
<havenwood> end
<havenwood> shevy: ^ doesn't work
<tejas-manohar> jhass: maybe im misunderstanding what the line w/ symbols is doing
St_Marx has quit [Remote host closed the connection]
alex88 has quit [Ping timeout: 240 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
nkumari has joined #ruby
<jhass> rpag │ thats fine, its patterns like :"#{foo}", and foo.to_sym you want to avoid.
<jhass> that's all there's to say
<tejas-manohar> oh
St_Marx has joined #ruby
<tejas-manohar> lemme think one sec
olivier_bK has joined #ruby
beilabs_________ has quit [Ping timeout: 272 seconds]
Allaman_ has joined #ruby
<tejas-manohar> jhass: the thing is i dont get how to do it with a string when the username of that user needs to be put there
<jhass> offtopic, but hey: anyone here wants a oneplus one invite?
sjohnsen has quit [Ping timeout: 260 seconds]
<jhass> tejas-manohar: remove the colons?
klmlfl has joined #ruby
<shevy> tejas-manohar you can convert stuff freely from a string, or add to it
<shevy> >> my_string = ''; my_string << 'hey_this_shall_become_a_symbol'; my_string[0,0] = ':'; my_string
<eval-in__> shevy => ":hey_this_shall_become_a_symbol" (https://eval.in/228638)
sdwrage has joined #ruby
<tejas-manohar> shevy: wait so literally like - @phrase = users["#{session[:username]}"][:phrase]
<shevy> well this example is not good
<tejas-manohar> shevy: whats the advantage of a symbol then
<shevy> because do you really need "#{session[:username]}" there?
<jhass> you can differentiate data and identifiers
<tejas-manohar> yes? to pull up the phrase from the db
beilabs_________ has joined #ruby
<tejas-manohar> oh
<jhass> also session[:username] probably is already a string, so no need for the "#{}"
<jhass> ducked typed to #to_s
nkumari has quit [Ping timeout: 265 seconds]
<shevy> ok it's true - .to_s is not shorter than "#{}" :D
<tejas-manohar> jhass: ah
krevels has joined #ruby
krevels has left #ruby [#ruby]
<tejas-manohar> jhass: so i can straight out do session[:username][:phrase] ?
<jhass> no
<jhass> users[session[:username]][:phrase]
kobain has joined #ruby
timonv_ has joined #ruby
despai has quit [Quit: Leaving]
kobain has quit [Max SendQ exceeded]
<ericwood> I much prefer .to_s over "#{}
<ericwood> "
<jhass> ^ me to
<apeiros> same
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ericwood> I never even considered #{} as a replacement...
beilabs_________ has quit [Ping timeout: 240 seconds]
<apeiros> it's implicit vs explicit
FlowState_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beilabs_________ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tejas-manohar> jhass: so https://gist.github.com/tejas-manohar/08952afe60a22343633f would make more sense?
<jhass> yes, that's better
<shevy> ericwood yeah, I find it simpler to read too
<tejas-manohar> ah
<tejas-manohar> do you guys have any more critique?
beef-wellington has quit [Ping timeout: 258 seconds]
<shevy> tejas-manohar what about your hair style
FlowState_ has quit [Client Quit]
<tejas-manohar> jhass: sry already removed it, that was for me when working thru some stuff
totimkopf has quit [Ping timeout: 255 seconds]
<tejas-manohar> any other critique?
<jhass> looks pretty fine to me
<jhass> leaving the too many comments aside
<wald0> entries.each { |a| puts a }.sort
<wald0> how i can do that ?
<tejas-manohar> okok
<tejas-manohar> any way to simplify that big if else thing under post /me block i was thinking thatd be the point of attack at first
<ericwood> >> [1,2,3].each { |a| puts a }.sort
kaspertidemann has quit []
<eval-in__> ericwood => 1 ... (https://eval.in/228639)
<ericwood> >> [1,2,3].tap { |a| puts a }.sort
<eval-in__> ericwood => 1 ... (https://eval.in/228640)
<ericwood> idk what the problem is
Wolfram74 has joined #ruby
giuseppesolinas has joined #ruby
beilabs_________ has quit [Ping timeout: 264 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
<ericwood> wald0: what's your question?
oleo__ has quit [Quit: Verlassend]
<jhass> tejas-manohar: it's so big because that route is doing so many things
<wald0> oh...
<tejas-manohar> yeah
m8 has quit [Ping timeout: 252 seconds]
<wald0> `sort': comparison of Hash with Hash failed (ArgumentError)
<jhass> it creates a user, creates a phrase, updates a phrase and deletes a phrase
<ericwood> wald0: hashes are by definition an unsorted data structure
<wald0> $entries.each { |entry| puts "#{entry[:ip]}::#{entry[:request]}" }.sort
<tejas-manohar> jhass: is it worth dividing that into methods?
<wald0> i have hte problem here ^
<jhass> I'd consider splitting that up into multiple routes
sjohnsen has joined #ruby
<tejas-manohar> jhass: why not methods?
<ericwood> wald0: why are you sorting them
<ericwood> you're printing them out, then sorting them?
<jhass> why would /me, which sounds like a route that shows data, do all that stuff?
<wald0> ericwood: yes, i want to sort the final output
<Wolfram74> I'm having a weird error message I'm having trouble parsing
oleo__ has joined #ruby
<Wolfram74> I'm trying to store a boolean as the opposite of what it evaluates to
<ericwood> wald0: you're outputting it, THEN calling sort on the original data! puts prints it out immediately
<ericwood> wald0: try this:
<jhass> ericwood: actually since 1.9 hashes are ordered by insertion order. But I don't like to rely on that too
oleo__ has quit [Read error: Connection reset by peer]
banister has joined #ruby
<Wolfram74> but it keeps giving me "unexpected (, expecting ("
<ericwood> jhass: well, they're certainly not meant to be sorted :o
<jhass> yeah
<Wolfram74> if i'm reading that right, it's complaining that I used the right syntax
<jhass> Wolfram74: Please share your code on https://gist.github.com
<Wolfram74> error is on 52 and 53 http://dpaste.com/2RTDXTY
beilabs_________ has joined #ruby
<jhass> ah, too fast :P
oleo__ has joined #ruby
AlexRussia has joined #ruby
josephndenton has joined #ruby
<ericwood> wald0: $entries.to_a.sort_by { |a,b| b.first <=> a.first }.each { |a| puts a }
diegoviola has joined #ruby
Channel6 has joined #ruby
<ericwood> I'm assuming you wanted it sorted based on the IP address or something?
oleo__ has quit [Client Quit]
<tejas-manohar> jhass: it wont let me do users.search() because of missing arguments
<apeiros> superfluous .to_a
<jhass> Wolfram74: try using !
<tejas-manohar> jhass: im trying to find a way to show all usernames + their corresponding phrase on one page https://github.com/orchestrate-io/orchestrate-ruby
<Wolfram74> jhass: as in !=, or replacing the not?
<tejas-manohar> jhass: would i need to use users.map and then build up an @array to iterate through in erb?
<jhass> tejas-manohar: sounds like a plan
<Wolfram74> jhass: did !( and that got the errors to stop
<tejas-manohar> ah ok thanks!
<Wolfram74> thanks
<jhass> Wolfram74: replacing the not
<jhass> Wolfram74: personally I would just inline it into the if
<jhass> and use unless
oleo has joined #ruby
<Wolfram74> I was doing that, but it was making it too cumbersome during debugging
<Wolfram74> since I got it to work as variables, I'll do that now
Spleeze has quit [Ping timeout: 264 seconds]
<jhass> unless scale_mag.include?(root) || [0, 1, 2].include?(space)
benzrf|offline is now known as benzrf
arup_r has quit [Quit: Leaving.]
<jhass> Wolfram74: a few style notes if you don't mind
<Wolfram74> sure
<jhass> your @@class_vars want to be CONSTANTs
<Wolfram74> for context, python is my first language
<jhass> yes, the python is strong in there :P
beilabs_________ has quit [Ping timeout: 240 seconds]
<Wolfram74> yeah, they are constants, the western 12 tone scale is not changing anytime soon
<jhass> in ruby most people leave off empty parens ()
<havenwood> i've never seen an accomplished Rubyist who doesn't
<tejas-manohar> jhass: how do i find available properties of users (like users.****) - users.map {|user| [user.key, user.ref]} is the example code for iterating thru all users in orchestrate ruby api docs
danoo_ has quit [Ping timeout: 258 seconds]
<tejas-manohar> jhass: basically im trying to find out how to grab the user's "phrase
<jhass> Wolfram74: clean, strip the @, I think you wanted to call initialize there
<shevy> Wolfram74 why do you abandon python!!!
<jhass> @ always denotes an instance variable
<ericwood> I like putting params on things that aren't DSL-ified
<Wolfram74> because I'm doing dev bootcamp, shevy
<ericwood> Wolfram74: which one?
<Wolfram74> DevBootcamp, the first, i think
<Wolfram74> in san fransisco
<ericwood> coolcool
<Wolfram74> and they work in ruby
Spleeze has joined #ruby
<Wolfram74> so I'm transitioning from physics work to mercenary work
<ericwood> I was hoping you'd be one of my MakerSquare friends without even knowing it
<wald0> ericwood: yes, hum... this is complex, in my shell i can just do | something | something | something to concatenate results, i was thikning that in ruby is the same using dot
beilabs_________ has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
<jhass> then I disagree about your spacing around operators, but meh ;)
<Wolfram74> true, thanks for catching my goof on the clean method jhass
<ericwood> wald0: it's a similar concept but different enough to get you in trouble if you think about them the same way :\
<havenwood> Wolfram74: instead of `print "\n"` just `puts`
<Wolfram74> just an adorned puts?
<havenwood> yup
<havenwood> unadorned
<ericwood> puts is the same as print "\n"
<jhass> puts "\n" still is too though
<apeiros> ooooh how fun :D after ~14y I'll finally write a log parser again
<Wolfram74> I've- that's dumb...
* apeiros does the happy dance
<shevy> shuffle dance!
<shevy> I'll get worried the moment you'll write a new IRC bot
<Wolfram74> ok, time to drop out of the conversation while I ponder the scale method some more
<jhass> tejas-manohar: grab pry & pry-doc
commmmodo has quit [Quit: commmmodo]
<shevy> Wolfram74 how long have you been writing in python by the way?
<apeiros> shevy: I'd not write a new one. I'd dedust butler
<shevy> hehe
<tejas-manohar> jhass: https://gist.github.com/tejas-manohar/40c32194caddceb9c2cf is printed here - https://gist.github.com/tejas-manohar/07c1865cefe10e6b8e30#file-gistfile1-rb-L59 - but when i change line 59 highlighted there to p test[:phrase] it doesnt work O.o
<shevy> dusty but still classy butler was!
<apeiros> but I assume you knew I'd say that ;-)
<jhass> tejas-manohar: "doesn't work" in your question from now on will make me ignore it
<apeiros> yeah. butler was a nice piece of work.
<tejas-manohar> jhass: sorry it errors no implicit conversion of symb. to integer
<tejas-manohar> jhass: but im not trying to convert to an integer
<jhass> what's the first character in your output?
<tejas-manohar> jhass: [ ?
<felltir> test isn't a hash, it's probably an array
<jhass> exactly
<jhass> what do you know that starts with a [ ?
<apeiros> there isn't an escape sequence for base64 digits? I mean like \h for hex or \d for numbers?
<tejas-manohar> i tried test[0][:phrase]
jimms has joined #ruby
<apeiros> (in regex)
beilabs_________ has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
<apeiros> hrm, doesn't seem like…
nrsk has joined #ruby
beilabs_________ has joined #ruby
<jhass> apeiros: http://ruby-doc.org/core-2.1.5/Regexp.html I'd expect that to list everything there is
<apeiros> well, should be [\x00-\x3f]
jimms has quit [Client Quit]
<tejas-manohar> jhass: tried test[0][:phrase] same error
nrsk has quit [Client Quit]
<tejas-manohar> how do i enumerate thru that obj being printed
<apeiros> jhass: yeah, searched that one. in my shell, though
<Wolfram74> shevy: probably off and on for 3 or 4 years
charlenopires has quit [Read error: Connection reset by peer]
<apeiros> eh, actually I'm mistaken. that's not what base64 is. lol. silly me :-)
<Wolfram74> just playing around with it for physics problems when I was in undergrad
benzrf is now known as benzrf|offline
<Wolfram74> simulations and heat maps and stuff
mary5030 has joined #ruby
benzrf|offline is now known as benzrf
<jhass> tejas-manohar: so what does p test[0] print
<apeiros> [A-Za-z0-9+\/]
<apeiros> why didn't they use _? would have allowed me to use \w :)
<jhass> tejas-manohar: as said, pry
mary5030_ has joined #ruby
<tejas-manohar> ok prying
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdwrage has quit [Quit: This computer has gone to sleep]
<tejas-manohar> jhass: how can this be nil? http://i.imgur.com/Ob98cAs.png
beef-wellington has joined #ruby
<havenwood> tejas-manohar: 'phrase' != :phrase
<tejas-manohar> wow
commmmodo has joined #ruby
<benzrf> tejas-manohar: they are different types
<benzrf> tejas-manohar: do you expect 3 == '3'?
mary5030 has quit [Ping timeout: 258 seconds]
beilabs_________ has quit [Ping timeout: 256 seconds]
_5kg has joined #ruby
<tejas-manohar> no ur right
kaspertidemann has joined #ruby
<felltir> benzrf 1 == 1.0 tho :p
<havenwood> >> 1.eql? 1.0
<eval-in__> havenwood => false (https://eval.in/228644)
<benzrf> felltir: that's because they shouldn't be different types in the first place
beilabs_________ has joined #ruby
<benzrf> havenwood: eql? is used in hashes right
totimkopf has joined #ruby
<benzrf> >> {1.0 => 'wat'}[1]
<eval-in__> benzrf => nil (https://eval.in/228645)
<felltir> I think hashes use equal? actually
<felltir> actually no, they can't. never mind, it probably is eql?
<havenwood> benzrf: aye
<tejas-manohar> havenwood: how does this work? i want to get phrases "testing" and "lel" out of there as you can see they exist and its an array of arrays of some sorts but some reason my debugging isnt working the way i'd expect and pulling those vals out - http://i.imgur.com/xY8ffbT.png (pry_
<tejas-manohar> ** (pry)
<jhass> use obj.class and ls obj to find out what they really are
beilabs_________ has quit [Ping timeout: 272 seconds]
yfeldblu_ has quit [Remote host closed the connection]
<felltir> benzrf: it's not eql?, because if you override that hashes still work
<felltir> don't know what it is though
<tejas-manohar> so weird
<felltir> it can't be object id, because strings
<tejas-manohar> its iterating thru the string's chars
<tejas-manohar> but it wont get rid of the usernames...
<jhass> oh, well
kaspertidemann has quit []
<jhass> strings do respond to []
<jhass> >> "foo"[0]
<eval-in__> jhass => "f" (https://eval.in/228646)
giuseppesolinas has quit [Quit: This computer has gone to sleep]
echooo has quit [Remote host closed the connection]
<benzrf> felltir: i think what it is, is
<benzrf> felltir: no wait nvm
jonr22 has joined #ruby
<jhass> tejas-manohar: I'm not sure what your problem is, it's actually behaving as expected
<tejas-manohar> jhass: uh then my brain is messed up -- how do i get "testing" and "lel" out of there, i want to strip the phrases not the usernames
<tejas-manohar> oh shoot
<tejas-manohar> nvm
<tejas-manohar> your right
<tejas-manohar> this is what i wanted
<jhass> then don't return the usernames
<tejas-manohar> jhass: no i wanted usernames sry man my bad
<felltir> Ah, so you need to change both hash and eql?. Thanks, havenwood
beilabs_________ has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
goodenough has joined #ruby
banister has joined #ruby
thsig has joined #ruby
alex88 has joined #ruby
danoo_ has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
Linuus has quit [Ping timeout: 240 seconds]
thsig has quit [Ping timeout: 240 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
beilabs_________ has quit [Ping timeout: 240 seconds]
bMalum has quit [Quit: bMalum]
thsig has joined #ruby
apoorvparijat has quit [Remote host closed the connection]
<apeiros> damn, *of course* Time.iso8601 does not parse %z
beilabs_________ has joined #ruby
fedexo has joined #ruby
jottr_ has joined #ruby
jottr_ has quit [Client Quit]
Linuus has joined #ruby
fantazo has quit [Ping timeout: 264 seconds]
bonhoeffer has joined #ruby
<apeiros> I wish there was a sane way to format massive parallel assignment :-/
Photism has joined #ruby
<ericwood> how massive we talkin
<apeiros> ~12 variables
<ericwood> :o
<apeiros> time1, time2, status, duration, bytes_received, bytes_sent, request_id, session_id, user_id, remote_ip, request, referrer, user_agent = LogLine.match(line).captures
<apeiros> ^this
<shevy> hmm
<shevy> >> Object.const_defined? :String
<eval-in__> shevy => true (https://eval.in/228647)
<shevy> >> Object.const_defined? 'String'
<eval-in__> shevy => true (https://eval.in/228648)
<shevy> which one to use?
<apeiros> former
alex88 has quit [Remote host closed the connection]
<ericwood> apeiros: you could break it up across lines with shift :)
<shevy> k
<apeiros> since ruby internally uses :String to identify it anyway
<apeiros> and will convert your string to it
<apeiros> ericwood: I use individual variables for performance to begin with
<apeiros> using shift, I'd sacrifice that. then I could use an array too.
giuseppesolinas has joined #ruby
<ericwood> ugh yeah sorry screwed up the captures part
Linuus has quit [Ping timeout: 272 seconds]
Raedeus has joined #ruby
felltir has quit []
beilabs_________ has quit [Ping timeout: 240 seconds]
<tejas-manohar> << '' == nil
thsig has quit [Remote host closed the connection]
<tejas-manohar> >> '' === nil
<eval-in__> tejas-manohar => false (https://eval.in/228649)
<tejas-manohar> oh
jonr22 has quit [Remote host closed the connection]
<ericwood> you probably want String#empty?
<apeiros> tejas-manohar: none of ruby's comparison methods considers nil to be equal to an empty string
samsquanch has joined #ruby
<tejas-manohar> ahh yes ericwood
alex88 has joined #ruby
<tejas-manohar> ericwood: http://i.imgur.com/ldU2TDu.png --> if params[:phrase].empty
kaspertidemann has joined #ruby
ringaring has quit [Quit: Leaving]
<ericwood> add a question mark
<ericwood> and check the docs out
beilabs_________ has joined #ruby
<tejas-manohar> oh
<tejas-manohar> okok thanks man
<rpag> tejas-manohar, this might be useful for you - https://github.com/yuki24/did_you_mean
<tejas-manohar> rpag: dude yes
startupality has joined #ruby
Mongey_ has quit [Ping timeout: 265 seconds]
fantazo has joined #ruby
<ctooley> What’s the currently most common “debug” gem install for 2.1.2?
<tejas-manohar> prob pry
anarang has quit [Ping timeout: 245 seconds]
<tejas-manohar> jhass: any idea on this one? https://gist.github.com/tejas-manohar/3ba8105b62bc0ce1d546#file-gistfile1-rb-L83 -- im getting a no method error undefined method 'get' on client BUT this is copied from the example here https://github.com/orchestrate-io/orchestrate-ruby#query-collections-keys-and-values
<jhass> ctooley: I'd say byebug
beilabs_________ has quit [Ping timeout: 272 seconds]
<jhass> ctooley: combine with pry, pry-byebug, pry-stack_explorer
mjuszczak has joined #ruby
<jhass> tejas-manohar: full error
uber_hulk has quit [Quit: leaving]
jimbach has joined #ruby
sptx00 has quit [Ping timeout: 250 seconds]
<jhass> tejas-manohar: what's the full error?
<tejas-manohar> jhass: yeah http://i.imgur.com/SzQIyYV.png
<tejas-manohar> i think i described it pretty accurately tho
<jhass> no, which object you have is important
<tejas-manohar> oh
Miron has quit [Quit: Penstubal freenode]
alex88_ has joined #ruby
<shevy> huh
<shevy> you can actually download from github based projects directly in non .zip format?
<jhass> click methods
<jhass> search for get
<jhass> which classes provide that method?
Miron has joined #ruby
<jhass> which class do you have?
beilabs_________ has joined #ruby
Mongey has joined #ruby
alex88_ has quit [Remote host closed the connection]
<tejas-manohar> jhass: i dont see specification of which class has that instance method in http://www.rubydoc.info/gems/orchestrate/Orchestrate/Client#get-instance_method
alex88 has quit [Ping timeout: 240 seconds]
<tejas-manohar> jhass: Orchestrate::API i suppose
<jhass> seriously? it's in the search result, at the top of the page as the first heading and even in the URL!
<tejas-manohar> jhass: Client?
<jhass> okay, first part answered
<jhass> now the second part of the question
<tejas-manohar> jhass: oh ok
<jhass> what do you have?
goodenough has quit [Remote host closed the connection]
<tejas-manohar> jhass: Orchestrate::Application?
<jhass> yes
<jhass> so that's why you get the error
<tejas-manohar> jhass: oh silluy
<jhass> now figure out how to create an Orchestrate::Client
<tejas-manohar> *silly
<tejas-manohar> yeah
<tejas-manohar> got it
<tejas-manohar> this documentation rubydoc thing is nice
<shevy> \o/
<shevy> don't listen to folks who hate documentation!
<shevy> 3 lines of comment per line of code!!!
<tejas-manohar> lolol
hakunin has quit []
Morkel has joined #ruby
<jhass> just adding a comment doesn't make it documentation
mjuszczak has quit []
P1RATEZ has joined #ruby
beilabs_________ has quit [Ping timeout: 265 seconds]
<tejas-manohar> yeah
<tejas-manohar> ok i added houndci to my app
<tejas-manohar> hopefully that does some code review!
nkumari has joined #ruby
<tejas-manohar> jhass: do ppl usually tab the html under templating <% if ... %> and such like i've done? https://github.com/tejas-manohar/omnistrate/blob/master/views/all.erb
<tejas-manohar> i wanna stick to convention as much as possible
anarang has joined #ruby
Ulrike_Rayne has joined #ruby
<shevy> which one
<shevy> :>
moritzs has joined #ruby
<shevy> there is only one true way!
<jhass> I tend to do that, yeah. Can't really comment on what the majority does
<tejas-manohar> yeah sure
<tejas-manohar> it looks nicer in my eyes
<tejas-manohar> lol
<tejas-manohar> have you guys used houndci?
<jhass> but then I'm also more of a slim instead of irb guy
<shevy> Hanmac here always says this:
<jhass> *erb
<shevy> there is the right way. then there is the wrong way. and then there is the Hanmac way
<tejas-manohar> or another PR-based github ruby style checker
alex88 has joined #ruby
xiq_ has joined #ruby
beilabs_________ has joined #ruby
bret has joined #ruby
alex88 has quit [Remote host closed the connection]
i8igmac has quit [Ping timeout: 255 seconds]
hakunin has joined #ruby
xiq has quit [Ping timeout: 240 seconds]
cool has joined #ruby
mjuszczak has joined #ruby
fabrice31 has joined #ruby
kireevco has joined #ruby
<tejas-manohar> jhass: do you see anything here that could make my server hang indefinitely on shutdown? https://github.com/tejas-manohar/omnistrate/blob/master/app.rb -- or should i just file a bug w. sinatra and try to reinstall the gem first? i just had to kill the server with kill -9 after using lsof to find its pid
<tejas-manohar> jhass: done this a couple times already
<jhass> "shutdown" ?
alex88 has joined #ruby
<tejas-manohar> jhass: ctrl c the webserver
Guest19 has joined #ruby
<jhass> did you try SIGTERM before SIGKILL?
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Morkel has quit [Quit: Morkel]
jdj_dk has joined #ruby
DANtheBEASTman has joined #ruby
Guest19 is now known as lbrf
Jake232 has quit [Ping timeout: 244 seconds]
<tejas-manohar> jhass: nope, how to execute that?
<jhass> don't pass -9
<tejas-manohar> jhass: o ok
<DANtheBEASTman> how can I change this line https://github.com/tmuxinator/tmuxinator/blob/master/lib/tmuxinator/config.rb#L5 to allow '~/.tmuxinator' to be a symlink ?
<tejas-manohar> jhass: ill try in a second
fabrice31 has quit [Ping timeout: 244 seconds]
beilabs_________ has quit [Ping timeout: 244 seconds]
agent_white has joined #ruby
<jhass> DANtheBEASTman: File.realpath I think
<DANtheBEASTman> I'm assuming File.directory? checks to make sure the given argument is a dir, but it should be either a dir or a symlink to a dir..
vyorkin has quit [Quit: WeeChat 1.0.1]
<DANtheBEASTman> I have never tried Ruby until now
<jhass> I'd try File.directory?(File.realpath(File.expand_path("~/.tmuxinator")))
vyorkin has joined #ruby
beilabs_________ has joined #ruby
<DANtheBEASTman> `realpath': No such file or directory
<tejas-manohar> jhass: how do i add a version to gem 'pry', :group => [:development] -- do i needa use the do end syntax or can i just do gem 'pry', '...', :group ...
<jhass> tejas-manohar: I think the later works
hamakn has quit [Remote host closed the connection]
<tejas-manohar> okok
<tejas-manohar> wow pry is < 1.0
<jhass> (you could've tried)
elastik has quit [Ping timeout: 258 seconds]
hamakn has joined #ruby
<jhass> DANtheBEASTman: ah, needs a File.exist? guard I guess
<jhass> File.exist?(...) && File.directory?(File.realpath(File.expand_path(...)))
spider-mario has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
fantazo has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
quimrstorres has joined #ruby
beilabs_________ has quit [Ping timeout: 264 seconds]
danijoo has quit [Quit: Leaving...]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
chinmay_dd has quit [Quit: Leaving]
klmlfl has quit [Remote host closed the connection]
<DANtheBEASTman> neep. `mkdir': File exists @ dir_s_mkdir
dts has quit [Ping timeout: 250 seconds]
beilabs_________ has joined #ruby
bMalum has joined #ruby
jonr22 has joined #ruby
bonhoeffer has joined #ruby
Takle has joined #ruby
<jhass> DANtheBEASTman: I guess you want to add a check that raises if it's there but not a directory nor a symlink to a directory
alex88 has quit [Remote host closed the connection]
rylev has joined #ruby
beilabs_________ has quit [Ping timeout: 264 seconds]
it0a has joined #ruby
jheg has joined #ruby
Megtastique has quit []
<DANtheBEASTman> hmm.. ok so I did ....unless File.directory?(File.expand_path("~/.tmuxinator")) or File.ftype(File.expand_path("~/.tmuxinator")) == 'link'
mloveless has quit [Remote host closed the connection]
<jhass> now I could link to a file and that check would pass
<jhass> and there's a File.symlink?
<DANtheBEASTman> I'm really surprised that moving a dir and symlinking it is causing such a problem
<jhass> that code is making several bad assumptions, yes
ZaRDaK has joined #ruby
<jhass> (another one being that ~ == ENV['HOME'])
mjuszczak has quit []
mjuszczak has joined #ruby
<DANtheBEASTman> ignoring the fact my change isn't really good enough, there's another error in a different file..
<DANtheBEASTman> I suppose it should be File.directory?(File.expand_path("#{ENV["HOME"]}/.tmuxinator")) ?
beilabs_________ has joined #ruby
jonr22 has quit [Remote host closed the connection]
<jhass> untested but something like http://paste.mrzyx.de/pwdt3sz6o should be more robust
Takle_ has joined #ruby
tejas-manohar has quit [Quit: Page closed]
karmatr0n has joined #ruby
havenwood has quit [Remote host closed the connection]
rylev_ has joined #ruby
beilabs_________ has quit [Ping timeout: 272 seconds]
<jhass> er, mkdir_p was FileUtils stuff
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<shevy> DANtheBEASTman in such a case, I am a bit surprised you use File.expand_path("~/.tmuxinator") and File.expand_path("~/.tmuxinator") twice
BraddPitt has joined #ruby
BraddPitt has quit [Client Quit]
<DANtheBEASTman> I have no idea what I'm doing.
<DANtheBEASTman> first time inside a Ruby codebase
Takle has quit [Ping timeout: 272 seconds]
<DANtheBEASTman> and I'm really only an novice programmer
rylev has quit [Ping timeout: 256 seconds]
<shevy> no, I mean regardless of the language, that you use the same code twice in general. In such a scenario I would assign to a local variable and work on that instead
<DANtheBEASTman> ohh. yeah I might've refactored that if it worked
agjacome has joined #ruby
thsig has joined #ruby
Allaman_ has quit [Remote host closed the connection]
beilabs_________ has joined #ruby
<shevy> by the way I think you can replace YAML.load(File.read(config_path)) with YAML.load_file(config_path) (if config_path is a real path)
Lilian has quit [Ping timeout: 250 seconds]
<shevy> you can also possibly replace "#{ENV["HOME"]}/.tmuxinator" with a constant near the top of the file?
yfeldblum has joined #ruby
jheg has quit [Quit: jheg]
AndChat| has joined #ruby
nkumari has quit [Remote host closed the connection]
spastorino has joined #ruby
jimbach has quit [Remote host closed the connection]
<DANtheBEASTman> that would make sense..
lkba has quit [Read error: Connection reset by peer]
AndChat- has joined #ruby
bdamos has joined #ruby
doki-worry has joined #ruby
bdamos has quit [Client Quit]
bdamos has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
phutchins has joined #ruby
AndChat| has quit [Ping timeout: 265 seconds]
boombadaroomba has joined #ruby
beilabs_________ has quit [Ping timeout: 250 seconds]
xaitec has left #ruby [#ruby]
quimrstorres has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
bdamos has quit [Client Quit]
nastri has quit [Remote host closed the connection]
bdamos has joined #ruby
timonv_ has joined #ruby
anarang has quit [Ping timeout: 252 seconds]
beilabs_________ has joined #ruby
synergyz has joined #ruby
boombadaroomba has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
Takle_ has quit [Ping timeout: 258 seconds]
bdamos has quit [Client Quit]
bdamos has joined #ruby
rkalfane has joined #ruby
bdamos has quit [Client Quit]
bdamos has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
thsig has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 265 seconds]
beilabs_________ has quit [Ping timeout: 244 seconds]
beilabs_________ has joined #ruby
BraddPitt has joined #ruby
nyarlshub has joined #ruby
karmatr0n has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
perturbation has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
rkalfane has quit [Client Quit]
nkumari has joined #ruby
nkumari has quit [Remote host closed the connection]
goodenough has joined #ruby
havenwood has joined #ruby
nkumari has joined #ruby
quimrstorres has joined #ruby
goshdarnyou has joined #ruby
sea_local has quit []
beilabs_________ has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
beilabs_________ has joined #ruby
nyarlshub has left #ruby ["Leaving"]
Vile` has quit [Ping timeout: 240 seconds]
jheg has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
KLVTZ has joined #ruby
anaeem1_ has joined #ruby
Vile` has joined #ruby
beilabs_________ has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
JBreit has joined #ruby
anaeem1_ has quit [Ping timeout: 244 seconds]
JBreit has left #ruby [#ruby]
beilabs_________ has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
jheg has quit [Quit: jheg]
beef-wellington has quit [Ping timeout: 272 seconds]
rylev_ has quit [Remote host closed the connection]
marr has joined #ruby
rylev has joined #ruby
beilabs_________ has quit [Ping timeout: 240 seconds]
bluenemo has joined #ruby
tastycode has joined #ruby
ekinmur has joined #ruby
giuseppesolinas has joined #ruby
wldcordeiro has quit [Ping timeout: 265 seconds]
ekinmur has quit [Client Quit]
ekinmur has joined #ruby
jheg has joined #ruby
max96at is now known as max96at|off
ekinmur has quit [Client Quit]
tyll_ is now known as tyll
dts has joined #ruby
SOLDIERz_ has joined #ruby
mjuszcza_ has joined #ruby
ekinmur_ has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
beilabs_________ has joined #ruby
ekinmur_ has quit [Remote host closed the connection]
bdamos has quit [Quit: leaving]
bMalum has quit [Quit: bMalum]
jimbach has joined #ruby
bluenemo has quit [Quit: Verlassend]
tjbiddle has quit [Quit: tjbiddle]
DLSteve has joined #ruby
SOLDIERz_ has quit [Ping timeout: 264 seconds]
St_Marx has quit [Quit: WeeChat 1.0.1]
beilabs_________ has quit [Ping timeout: 244 seconds]
beilabs_________ has joined #ruby
St_Marx has joined #ruby
jrvlima has joined #ruby
kireevco has quit [Ping timeout: 250 seconds]
emmesswhy has joined #ruby
kireevco has joined #ruby
mloveless has joined #ruby
beilabs_________ has quit [Ping timeout: 250 seconds]
noaon has joined #ruby
sea_local has joined #ruby
beilabs_________ has joined #ruby
mjuszcza_ has quit []
dorei has joined #ruby
Soda has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
Hobogrammer has joined #ruby
bluenemo has joined #ruby
jdj_dk has quit [Remote host closed the connection]
beef-wellington has joined #ruby
yfeldblum has joined #ruby
jdj_dk has joined #ruby
jimbach has quit [Remote host closed the connection]
ohaibbq has joined #ruby
cleopatra has quit [Ping timeout: 265 seconds]
kireevco has quit [Quit: Leaving.]
lukevinc has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
quimrstorres has quit [Remote host closed the connection]
rkalfane has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
renderful has joined #ruby
nkumari has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving...]
<shevy> dumdedum
beilabs_________ has quit [Ping timeout: 250 seconds]
bdamos_ has joined #ruby
renderful has quit [Ping timeout: 255 seconds]
bdamos_ has quit [Client Quit]
doki-worry has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
<rpag> shevy, twidling your thumbs?
josephndenton has quit [Ping timeout: 244 seconds]
danijoo has joined #ruby
<shevy> kinda bored
<shevy> porting old code is so awfully boring
timonv_ has joined #ruby
fabrice31 has joined #ruby
<rpag> indeed
jrvlima has quit [Max SendQ exceeded]
voltage_ has joined #ruby
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbiddle has joined #ruby
thsig has joined #ruby
tastycode has quit [Quit: tastycode]
byteoverfl0w has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
posixpascal has quit [Read error: Connection reset by peer]
nkumari has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
byteoverfl0w has quit [Remote host closed the connection]
posixpascal has joined #ruby
St_Marx has quit [Quit: WeeChat 1.0.1]
<shevy> I think I started writing ruby-projects conforming to a proper gem-layout and pushing these onto rubygems.org perhaps 3 years ago; but I also have some code in projects that is as old as perhaps ~8 years
St_Marx has joined #ruby
<shevy> over the years change have accrued or been added that was added left or right, partially no longer works either and is messy
tejas-manohar has joined #ruby
jonr22 has joined #ruby
<tejas-manohar> would you guys consider sinatra a web framework?
<tejas-manohar> "Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort"
<tejas-manohar> or just a lightweight domain specific lang
beilabs_________ has joined #ruby
bdamos has joined #ruby
mikepack has joined #ruby
rylev has quit [Remote host closed the connection]
jdj_dk has joined #ruby
fedexo has quit [Ping timeout: 258 seconds]
beilabs_________ has quit [Ping timeout: 272 seconds]
claudiuinberlin has quit [Quit: Leaving.]
jonr22 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
jonr22 has joined #ruby
kireevco has quit [Client Quit]
beilabs_________ has joined #ruby
quimrstorres has joined #ruby
decoponio has quit [Quit: Leaving...]
Jake232 has joined #ruby
dagorret has joined #ruby
kireevco has joined #ruby
dagorret has quit [Max SendQ exceeded]
St_Marx has quit [Remote host closed the connection]
beef-wellington has quit [Read error: Connection reset by peer]
beilabs_________ has quit [Ping timeout: 265 seconds]
Soda has quit [Read error: Connection reset by peer]
quimrstorres has quit [Ping timeout: 240 seconds]
beilabs_________ has joined #ruby
beef-wellington has joined #ruby
<ericwood> sure, I guess you could call it that'
jimbach has joined #ruby
Cache_Money has joined #ruby
mary5030 has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
timonv_ has quit [Ping timeout: 264 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwardloveall has joined #ruby
rkalfane has joined #ruby
drkyro has joined #ruby
<edwardloveall> I'm looking to make a rotate method for the String class which moves the first N characters to the end
<edwardloveall> but inside of a method, I can't assign anything to "self"
<edwardloveall> how might I mutate the string?
Azure has quit [Ping timeout: 250 seconds]
beilabs_________ has quit [Ping timeout: 252 seconds]
beilabs_________ has joined #ruby
<waxjar> String#replace might work
tejas-manohar has quit [Quit: Page closed]
commmmodo has quit [Quit: commmmodo]
mary5030 has quit [Ping timeout: 258 seconds]
<edwardloveall> mmm i'll try that
<edwardloveall> thanks
Azure has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
St_Marx has joined #ruby
<edwardloveall> waxjar: perfect, thanks!
posixpascal has quit [Read error: Connection reset by peer]
<yxhuvud> self[]= should work as well
posixpascal has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
<edwardloveall> here's what i ended up with: http://pastie.org/9752667
beilabs_________ has quit [Ping timeout: 252 seconds]
sud0x has joined #ruby
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
<edwardloveall> yxhuvud: yeah replacing that last line with self[0..-1] = remainder + rotated worked too
<sud0x> hey guys, trying to print out some variables im passing to a function. I'm passing name and doing a print statement within the new function as "Hello #{name}", but it shows hello #{name} instead of the name in passing it
<edwardloveall> you're using double quotes?
<sud0x> yes
<edwardloveall> around the "Hello #{name}"
<sud0x> yep
<edwardloveall> hmmmm
<ericwood> >> def hello(name); puts "hello, #{name}"; end; hello('sud0x')
<eval-in__> ericwood => hello, sud0x ... (https://eval.in/228674)
nkumari has quit [Remote host closed the connection]
<waxjar> are you sure you're not using single quotes?
<SHyx0rmZ> edwardloveall: http://pastie.org/9752671
<edwardloveall> can you paste the whole method?
Akuma has quit [Quit: So long sukkas!]
thsig has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sdlfjldsjfldsjf has joined #ruby
<Hanmac> edwardloveall:
<Hanmac> >> class String; def rotate(n); chars.rotate(n).join; end; def rotate!(n); replace(rotate(n)); end; end; a="abcde"; a.rotate!(2)
<eval-in__> Hanmac => "cdeab" (https://eval.in/228675)
<havenwood> >> 'hiya'.chars.rotate(2).join
<eval-in__> havenwood => "yahi" (https://eval.in/228676)
<sud0x> thanks ericwood , ill just do some more troubleshooting
sdlfjldsjfldsjf has left #ruby [#ruby]
<sud0x> what's the rails channel? thought it was #rails
<havenwood> sud0x: #rubyonrails
<ericwood> I guarantee the problem is you doing single quotes instead of double quotes
<havenwood> sud0x: nick reg req
godd2 has joined #ruby
beilabs_________ has joined #ruby
ctooley has quit [Quit: ctooley]
lemur has joined #ruby
KLVTZ has left #ruby [#ruby]
<edwardloveall> Hanmac: I like that a lot
KLVTZ has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
havenwood has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
DANtheBEASTman has left #ruby [#ruby]
kireevco has quit [Quit: Leaving.]
<sud0x> thanks haven
sud0x has quit [Quit: Page closed]
beilabs_________ has quit [Ping timeout: 252 seconds]
beilabs_________ has joined #ruby
Pupeno_ has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
ozzloy has joined #ruby
Narzew has joined #ruby
razieliyo has joined #ruby
moritzs has quit [Ping timeout: 264 seconds]
t0rc has joined #ruby
beilabs_________ has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Quit: tjbiddle]
lukevinc has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 264 seconds]
diego_ar has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
<edwardloveall> this is what I've been playing around with: https://gist.github.com/edwardloveall/57f332f03fe10fe18c3d
commmmodo has joined #ruby
St_Marx has quit [Quit: WeeChat 1.0.1]
tastycode has joined #ruby
t0rc has quit [Ping timeout: 265 seconds]
St_Marx has joined #ruby
prasselpikachu has quit [Ping timeout: 240 seconds]
t0rc has joined #ruby
moritzs has joined #ruby
jonr22 has joined #ruby
bigmac has joined #ruby
bigmac is now known as i8igmac
last_staff has joined #ruby
tastycode has quit [Quit: tastycode]
sevvie has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
jonr2219 has quit [Ping timeout: 240 seconds]
voltage_ has left #ruby ["Leaving"]
beilabs_________ has joined #ruby
eguneys has joined #ruby
<eguneys> when I pass an instance variable like @base_url to Wombat.crawl do base_url it fails why?
prasselpikachu has joined #ruby
wallerdev has joined #ruby
<jhass> context context context
<diego_ar> gist gist gist
<godd2> eguneys can you give an example of failing code in a gist? https://gist.github.com/
davasaurous has joined #ruby
wallerdev has quit [Client Quit]
nkumari has joined #ruby
<jhass> eguneys: that looks like .crawl instance_eval's its block
beilabs_________ has quit [Ping timeout: 240 seconds]
<eguneys> so normal and my solution is fine?
<jhass> which changes the scope where ivars are looked up
<godd2> in other words, .crawl doesn't have @base_url in its scope
<jhass> yah
<eguneys> ok thanks.
eguneys has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
t0rc has left #ruby ["WeeChat 1.0.1"]
<godd2> yeesh, Wombat needs to figure out a code formatting scheme
tokik has joined #ruby
claymore has quit [Quit: Leaving]
beef-wellington has joined #ruby
<jhass> ugh, what the hell
<jhass> that looks like somebody doesn't know instance_eval
nicoulaj has quit [Ping timeout: 240 seconds]
quimrstorres has joined #ruby
olivier_bK has quit [Ping timeout: 258 seconds]
prasselpikachu has quit [Ping timeout: 272 seconds]
beilabs_________ has joined #ruby
nkumari has quit [Ping timeout: 250 seconds]
rylev has joined #ruby
jimbach has quit [Remote host closed the connection]
YourKicks has joined #ruby
mkaesz has quit [Remote host closed the connection]
dseitz has joined #ruby
beilabs_________ has quit [Ping timeout: 264 seconds]
edwardloveall has quit [Quit: Leaving.]
beilabs_________ has joined #ruby
spider-mario has quit [Remote host closed the connection]
rylev has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
Axy has quit [Read error: Connection reset by peer]
tjbiddle has quit [Client Quit]
beilabs_________ has quit [Ping timeout: 265 seconds]
<shevy> yes yes!
<shevy> let's explain it to him!
kaspertidemann has quit []
byprdct has joined #ruby
reinaldob has joined #ruby
edwardloveall has joined #ruby
brendenb has quit [Excess Flood]
nkumari has joined #ruby
brendenb has joined #ruby
mloveless has quit [Remote host closed the connection]
chipotle has joined #ruby
last_staff has quit [Quit: last_staff]
agjacome has quit [Ping timeout: 240 seconds]
jonr22 has quit [Remote host closed the connection]
<waxjar> oh my, there are very weird things going on in that crawler module
byprdct has quit [Client Quit]
jonr22 has joined #ruby
<waxjar> #method_missing sends messages to it's class o.O
byprdct has joined #ruby
<waxjar> and the classes method_missing sends messages to yet another object 0.o
reinaldob has quit [Ping timeout: 265 seconds]
beilabs_________ has joined #ruby
<shevy> I tell you
<shevy> method_missing can be dangerous to handle
tjbiddle has joined #ruby
<shevy> I used it in one game project to keep on sending method calls to other classes (other objects instantiated from different classes)
<shevy> half a year later I came back and could no longer understand what was going on
alex88 has joined #ruby
tjbiddle has quit [Client Quit]
jonr22 has quit [Ping timeout: 256 seconds]
feow has joined #ruby
<shevy> there is one instance where I use it though, in my incomplete ruby MUD where I simulate false by default for all objects, such as you get 0 in LPC for non-existing method calls
<shevy> methods will always exist!
<waxjar> no more NoMethodErrors! :D
<shevy> yeah, you only get 0 back when it does not work in LPC, and any other value if it works... they then use custom error codes for what happens to objects that are moved around, like ->move() # 1 if it is moved successfully, return value of like 2 to "indicate failure because target inventory object could not handle incoming object due to it being too large/big a volume"
MattB2 has joined #ruby
<shevy> erm, any other value to ... mean anything else... but 1 usually was a success. might be they also used negative values as return values in case it did not work, I forgot. been like 15 years or so
Mateon1 has quit [Ping timeout: 240 seconds]
adamski2600 has quit []
triple_b has joined #ruby
Earthnail has joined #ruby
alex88 has quit [Ping timeout: 250 seconds]
eguneys has joined #ruby
tejas-manohar has joined #ruby
<tejas-manohar> is there an alternative to bundler?
<Earthnail> 1) is there a way to make Nokogiri's css selector case insensitive? 2) are there other XML parsing libraries other than Nokogiri that can handle tags and attributes case insensitively? Performance is not an issue.
<tejas-manohar> i love bundler, but just wondering
<tejas-manohar> do some ppl use something else?
<eguneys> I can't parse a specific url using Wombat, it gives a weird error eg: http://www.sabah.com.tr/yazarlar/barlas/2014/11/30/zenginin-mali-gercekten-zugurdun-cenesini-yorar-mi
<rpag> isolate is only alternative i heard of
pwh has joined #ruby
<waxjar> tejas-manohar: i use dep and gs
Wolfram74 has quit [Remote host closed the connection]
dts has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
beilabs_________ has quit [Ping timeout: 264 seconds]
Mateon1 has joined #ruby
<tejas-manohar> waxjar: dep?
feow has quit [Quit: Lost terminal]
<tejas-manohar> oh got it
<eguneys> Can somebody parse this link with Wombat and tell me why it fails plzz: http://www.sabah.com.tr/yazarlar/barlas/2014/11/28/sadece-sporda-degil-siyasette-de-fair-play-gerekiyor
it0a has quit [Ping timeout: 244 seconds]
<eguneys> no no this link not above:
beilabs_________ has joined #ruby
<tejas-manohar> waxjar: are there any other alternatives to dep and bundle taht you are aware of?
yfeldblum has joined #ruby
edwardloveall has quit [Quit: Leaving.]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
Areessell has joined #ruby
Pupeno_ has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
adriancb has joined #ruby
fabrice31 has joined #ruby
<tejas-manohar> what all is supposed to go inside a configure do block?
Pupeno has quit [Ping timeout: 265 seconds]
beilabs_________ has quit [Ping timeout: 244 seconds]
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
<tejas-manohar> can i put lines 32 - 50 in a configure do? https://github.com/tejas-manohar/twomnistrate/blob/master/app.rb#L32
nfk has quit [Quit: yawn]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
fabrice31 has quit [Ping timeout: 258 seconds]
beilabs_________ has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
reactor has joined #ruby
cool has quit [Quit: Connection closed for inactivity]
sevvie_ has joined #ruby
mary5030_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
St_Marx has quit [Quit: WeeChat 1.0.1]
<eguneys> Ok I found the problem, I can't parse a page with a missing header `Content-Type` using Wombat why?
St_Marx has joined #ruby
FrankenDaemon has joined #ruby
ZaRDaK has quit [Quit: Leaving]
tokik has quit [Ping timeout: 264 seconds]
beilabs_________ has quit [Ping timeout: 252 seconds]
beilabs_________ has joined #ruby
xenomorph is now known as {xenomorph}
mloveless has joined #ruby
<eguneys> Say I want to alter the behaviour of a gem and test it in my app what do I do?
it0a has joined #ruby
WonderDave has joined #ruby
<shevy> eguneys overwrite it - it is ruby code all the way
sevvie_ has quit [Read error: Connection reset by peer]
<eguneys> shevy: like how, download source code/ edit / build a gem/ publish/ use your own gem ?
<shevy> eguneys of course you must have the code available somewhere. ruby can not magically know what you wanna modify if you do not have the code
<shevy> when you have the code, then of course, overwrite implies an "edit" action right?
beilabs_________ has quit [Ping timeout: 258 seconds]
<eguneys> where is it in the bundler case
<shevy> as for publish - why do you need to publish? In your question you only wrote you want to alter the behaviour of a gem, I don't understand why you ask to publish it
<shevy> I have no idea, I do not use bundler. But bundler will work on a specific set of gems, so your gem must be there
<shevy> so let me ask you: WHICH behaviour do you want to modify
beilabs_________ has joined #ruby
claudiuinberlin has joined #ruby
<eguneys> what do you mean I want to fix a bug
<jhass> eguneys: bundle show wombat
<eguneys> ko thanks
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
<eguneys> so it's ok I just open that path and just edit
<jhass> sure, it's your system
claudiuinberlin has quit [Client Quit]
<jhass> just keep in mind that it won't sustain updates
<waxjar> if it's a bug it'd be good to open an issue or create a pull request
<eguneys> oh ok, so what's the proper way to fix a bug in a gem
<waxjar> and fix it for everyone :)
<rpag> you could probably just monkey patch it
<eguneys> ok thanks
eguneys has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
WonderDave has quit [Quit: Textual IRC Client: www.textualapp.com]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
sevvie has joined #ruby
snath has joined #ruby
mloveless has quit [Remote host closed the connection]
mloveless has joined #ruby
mjuszczak has joined #ruby
bluenemo has quit [Quit: Verlassend]
<mjuszczak> I have this ruby code: node['resolver']['search'].split('.').map { |s| "dc=#{s}" }.join .... my goal was to replace "example.com" with "dc=example,dc=com". It's making it "dc=exampledc=com". How can I make sure the comma is in there?
mloveless has quit [Remote host closed the connection]
rylev has joined #ruby
aspires has joined #ruby
mloveless has joined #ruby
beilabs_________ has quit [Ping timeout: 250 seconds]
<apeiros> >> ["a", "b"].join(',')
<eval-in__> apeiros => "a,b" (https://eval.in/228696)
jimmyy has joined #ruby
<mjuszczak> thank you!
edwardloveall has joined #ruby
rylev has quit [Ping timeout: 272 seconds]
mloveless has quit [Remote host closed the connection]
dangerousdave has joined #ruby
wald0 has quit [Quit: Lost terminal]
dangerousdave has quit [Client Quit]
CpuID has quit [Quit: This computer has gone to sleep]
mikepack has quit [Remote host closed the connection]
renier has joined #ruby
beilabs_________ has joined #ruby
thsig has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jheg has quit [Quit: jheg]
it0a has quit [Quit: WeeChat 1.0.1]
it0a has joined #ruby
miah has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 245 seconds]
miah has quit [Client Quit]
miah has joined #ruby
miah has quit [Changing host]
miah has joined #ruby
CpuID has joined #ruby
Channel6 has quit [Quit: Leaving]
YourKicks has quit [Quit: Leaving]
Channel6 has joined #ruby
timonv_ has joined #ruby
adriancb has quit [Remote host closed the connection]
mloveless has joined #ruby
mloveless has quit [Remote host closed the connection]
emmesswhy has joined #ruby
St_Marx has quit [Quit: WeeChat 1.0.1]
timonv_ has quit [Ping timeout: 265 seconds]
MattB2 has quit [Remote host closed the connection]
mloveless has joined #ruby
miah has quit [Quit: DevOps? DerpOps maybe!]
St_Marx has joined #ruby
miah has joined #ruby
miah has quit [Client Quit]
miah has joined #ruby
chipotle has quit [Quit: cya]
miah has quit [Client Quit]
jdj_dk has quit [Read error: Connection reset by peer]
triple_b has joined #ruby
miah has joined #ruby
Azure has joined #ruby
miah has quit [Client Quit]
<tejas-manohar> can i put lines 32 - 50 in a configure do? https://github.com/tejas-manohar/twomnistrate/blob/master/app.rb#L32
tejas-manohar has quit [Quit: Page closed]
miah has joined #ruby
Jake232 has joined #ruby
sevvie has quit [Quit: leaving]
ctp has joined #ruby
codecop has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
havenwood has joined #ruby
j_mcnally has joined #ruby
beilabs_________ has quit [Ping timeout: 245 seconds]
nkumari has quit [Remote host closed the connection]
Xeago has joined #ruby
bronak has quit [Quit: Bye]
<ericwood> I don't see any reason to do that
mikepack has joined #ruby
Spami has joined #ruby
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
diegoviola has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
aspires has quit []
jonr22 has joined #ruby
reactor has quit [Remote host closed the connection]
edwardloveall has quit [Quit: Leaving.]
jonr22 has quit [Ping timeout: 272 seconds]
edwardloveall has joined #ruby
mikepack has quit [Remote host closed the connection]
jdj_dk has joined #ruby
adriancb has joined #ruby
charliesome has joined #ruby
<totimkopf> turns out that there is a DS&A book for ruby : http://www.amazon.com/gp/product/1492141119/ I ordered it, can't wait to check it out
diego_ar is now known as diego_ar[AFK]
<totimkopf> (though, it's only 160pages)
benzrf is now known as benzrf|offline
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
geggam has joined #ruby
quimrstorres has quit [Remote host closed the connection]
luriv has quit [Ping timeout: 240 seconds]
tjbiddle has joined #ruby
oso|away is now known as oso96_2000
benzrf|offline is now known as benzrf
lemur has quit [Ping timeout: 258 seconds]
reactor has joined #ruby
gsd has joined #ruby
Joufflu has joined #ruby
beef-wellington has quit [Ping timeout: 272 seconds]