narcan has quit [Remote host closed the connection]
jamto11 has joined #ruby
kitak has joined #ruby
dukz has joined #ruby
chris_thomson has quit [Quit: Zzz...]
sputnik13 has joined #ruby
Rylee has quit [Remote host closed the connection]
audiodude has left #ruby [#ruby]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has quit [Ping timeout: 240 seconds]
Rylee has joined #ruby
dukz has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
supermarin has quit [Quit: Computer has gone to sleep.]
lukec has joined #ruby
supermarin has joined #ruby
tobago has joined #ruby
Akuma has quit [Read error: Operation timed out]
brunops has joined #ruby
peret has quit [Read error: Connection reset by peer]
Jon30 has quit [Ping timeout: 240 seconds]
Morkel has joined #ruby
Akuma has joined #ruby
supermarin has quit [Ping timeout: 240 seconds]
michael_lee has joined #ruby
timonv has quit [Remote host closed the connection]
davidz_ has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
mengu has joined #ruby
mengu has joined #ruby
karmatr0_ has joined #ruby
zachallett has quit [Remote host closed the connection]
jason_ has joined #ruby
fluve has joined #ruby
supermarin has joined #ruby
Akuma has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Ping timeout: 246 seconds]
aagdbl has quit [Quit: Leaving]
davedev24 has quit [Remote host closed the connection]
selina345 has left #ruby [#ruby]
Hobogrammer has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
jason_ has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
decoponio has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
phansch has quit [Quit: WeeChat 0.4.2]
jxf has quit [Ping timeout: 240 seconds]
caveat- has quit [Ping timeout: 252 seconds]
markisonfire has joined #ruby
charliesome has quit [Ping timeout: 250 seconds]
caveat- has joined #ruby
aagdbl has joined #ruby
carif has joined #ruby
charliesome has joined #ruby
kayloos has joined #ruby
dayepa has joined #ruby
linojon has quit [Quit: linojon]
caveat- has quit [Ping timeout: 246 seconds]
deric_skibotn has joined #ruby
heftig has quit [Quit: Quitting]
linojon has joined #ruby
alyi has joined #ruby
davedev24 has joined #ruby
caveat- has joined #ruby
thrillagorilla has quit []
diegovio1 has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 240 seconds]
carif has quit [Quit: Ex-Chat]
nfk has joined #ruby
diegovio1 is now known as diegoviola
_5kg has quit [Ping timeout: 240 seconds]
tjr9898_ has joined #ruby
alyi has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
caveat- has quit [Ping timeout: 246 seconds]
supermarin has quit [Quit: Computer has gone to sleep.]
tjr9898 has quit [Ping timeout: 250 seconds]
supermarin has joined #ruby
Morkel has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
diegovio1 has joined #ruby
caveat- has joined #ruby
diegoviola is now known as Guest28903
diegovio1 is now known as diegoviola
kayloos has quit [Remote host closed the connection]
Guest28903 has quit [Ping timeout: 250 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
supermarin has quit [Ping timeout: 246 seconds]
Bumptious has quit [Remote host closed the connection]
karmatr0n has joined #ruby
robbyoconnor has joined #ruby
Bumptious has joined #ruby
jaimef has quit [Excess Flood]
Morkel has joined #ruby
cj3kim has quit [Remote host closed the connection]
diegovio1 has joined #ruby
diegoviola is now known as Guest77543
diegovio1 is now known as diegoviola
Guest77543 has quit [Ping timeout: 240 seconds]
evenix has quit [Remote host closed the connection]
karmatr0_ has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
Celm has joined #ruby
Bumptious has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
fabrice31 has joined #ruby
jaimef has joined #ruby
cpruitt has quit [Quit: cpruitt]
Celm has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
Atrumx has quit [Quit: quitting]
diegoviola has quit [Ping timeout: 246 seconds]
arturaz has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
slawrence00 has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
matcouto has joined #ruby
cj3kim has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mr_snowf1ake has quit [Quit: Leaving]
mr_snowf1ake has joined #ruby
Macaveli has joined #ruby
apeiros has joined #ruby
carif has joined #ruby
Burgestrand has joined #ruby
Emmanuel_Chanel has joined #ruby
mrjensen has joined #ruby
lukec has quit [Quit: lukec]
tvw has joined #ruby
amclain_ has quit [Quit: Leaving]
george2 has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
flughafen has joined #ruby
Atrumx has joined #ruby
davy has quit [Remote host closed the connection]
yfeldblum has joined #ruby
centrx has joined #ruby
freerobby has quit [Quit: Leaving.]
aag1091 has joined #ruby
ocke has left #ruby [#ruby]
Geniack_ has quit [Ping timeout: 250 seconds]
yfeldblu_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
Geniack has joined #ruby
diegoviola has joined #ruby
keeguon has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
ak5 has joined #ruby
deric_skibotn has quit [Ping timeout: 240 seconds]
<ak5>
hi everyone, I am trying to figure out whether to use middleman or jekyll for static sites
yfeldblum has quit [Ping timeout: 250 seconds]
<ak5>
but I can't find any writeups with pros and cons
<ak5>
I have only ever used jekyll, and it has more stars on github... but not sure. Any opinions?
yfeldblu_ has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
SCommette has joined #ruby
yfeldblum has joined #ruby
_justin has joined #ruby
Bumptious has joined #ruby
SCommette has quit [Client Quit]
sigurding has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
brunops has quit [Quit: leaving]
codenapper has joined #ruby
bal has joined #ruby
_5kg has joined #ruby
alexju has quit [Remote host closed the connection]
bal1 has joined #ruby
keen__ has joined #ruby
<Burgestrand>
ak5: I much prefer middleman.
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 9 Hours 33 Minutes and 24 Seconds Online.]
bal has quit [Ping timeout: 246 seconds]
<Burgestrand>
ak5: jekyll is nice, but I felt middleman had more extensibility, and I prefer the workflow.
keen_ has quit [Ping timeout: 264 seconds]
<Burgestrand>
ak5: I run my blog using jekyll (granted, I made it 3 years ago), and I find it slightly painful to incorporate CSS, image, or javascript preprocessors (e.g. SCSS, CoffeeScript, smushing images) into Jekyll
mengu has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
toastynerd has joined #ruby
malcolmva has quit [Read error: Operation timed out]
noop has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
alyi has quit [Ping timeout: 240 seconds]
carif has quit [Ping timeout: 240 seconds]
cj3kim_ has joined #ruby
oo_ has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 240 seconds]
dagobah has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
oo_ has joined #ruby
markisonfire has quit [Quit: markisonfire]
sputnik13 has joined #ruby
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
winux has joined #ruby
carif has joined #ruby
<winux>
is using a lamda overkill for generating hashes that whose values depend on some changing counter?
sski has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby
anarang has joined #ruby
nomenkun has joined #ruby
Shidash has joined #ruby
Celm has joined #ruby
nateberkopec has joined #ruby
dayepa has quit [Quit: dayepa]
malcolmva has joined #ruby
toastynerd has quit [Remote host closed the connection]
klaut has joined #ruby
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
jenrzzz has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
nateberkopec has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
diegoviola has joined #ruby
mary5030 has joined #ruby
hooper has joined #ruby
hooper has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
earth has quit [Quit: earth]
Kneferilis has joined #ruby
mr_snowf1ake has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
froy has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
claymore has joined #ruby
reset has quit [Quit: Leaving...]
luriv has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
jenrzzz has joined #ruby
aganov has joined #ruby
bambuka has joined #ruby
ndrei has joined #ruby
jamto11 has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jprovazn has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
Aquilo has joined #ruby
davy has joined #ruby
keeguon has quit [Quit: keeguon]
winux has quit [Quit: leaving]
iliketurtles has quit [Quit: zzzzz…..]
adam12 is now known as adam
havenwood has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
adam is now known as Guest32866
iliketurtles has joined #ruby
andikr has joined #ruby
davy has quit [Ping timeout: 246 seconds]
zigomir has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
browndawg has joined #ruby
s3ri0us has joined #ruby
xjiujiu has quit [Ping timeout: 246 seconds]
marcdel_ has quit []
rjk808 has joined #ruby
kinginky has quit [Read error: Operation timed out]
cj3kim has joined #ruby
PhaSe16 has quit []
Xeago has joined #ruby
<s3ri0us>
I don't get it, I installed wagon for locomotive cms, followed the guidelines and created a new rails app to house locomotive fired it up, logged in saw a place for content types, pages etc but after creating them I didn't see them anywhere in my rails app. Following the docs I created another app with wagon init ants_cms --template=bootstrap3 outside of the other app I created and I don't see how these two are linked... are they seperate or what am I missi
sski has joined #ruby
<s3ri0us>
sorry wrong chanel
Shidash has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
sski has quit [Ping timeout: 240 seconds]
Asher has quit [Ping timeout: 255 seconds]
kinginky has joined #ruby
greenarrow has joined #ruby
rm__ has quit [Remote host closed the connection]
skaflem has joined #ruby
rm_ has joined #ruby
CaptainJet has quit [Ping timeout: 250 seconds]
apeiros has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
havenwood has quit [Ping timeout: 246 seconds]
kate_r has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
Asher has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
Emmanuel_Chanel has joined #ruby
fella5s has quit [Ping timeout: 240 seconds]
CaptainJet has quit [Ping timeout: 240 seconds]
linojon has quit [Quit: linojon]
linojon has joined #ruby
sski has joined #ruby
DrCode has quit [Write error: Connection reset by peer]
rylev has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
rjk808 has quit [Read error: Connection reset by peer]
rylev has quit [Remote host closed the connection]
reset has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
rjk808 has joined #ruby
kinginky has quit [Ping timeout: 240 seconds]
ahawkins has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
DrCode has joined #ruby
newbie|3 has joined #ruby
dumdedum has joined #ruby
DrCode has quit [Excess Flood]
newbie|3 has quit [Client Quit]
kinginky has joined #ruby
newbie|3 has joined #ruby
DrCode has joined #ruby
werdnativ has quit [Quit: werdnativ]
chipotle has quit [Quit: cya]
fella5s has joined #ruby
ljharb has joined #ruby
sk87 has joined #ruby
apeiros has joined #ruby
<ljharb>
i've got an array of numbers, mostly zeroes - like [0, 0, 0, 1, 0, 0, 2, 0] - what would be the most rubyish way to get an array from the beginning, up til and including the first nonzero item?
dyoko has joined #ruby
ggherdov_ has quit [Changing host]
ggherdov_ has joined #ruby
ggherdov_ has quit [Changing host]
ggherdov_ has joined #ruby
<ljharb>
in other words [0, 0, 0, 1, 0, 0, 2, 0] should give me [0, 0, 0, 1]
oo_ has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
<ljharb>
interesting
sdouglas has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
davy has joined #ruby
oo_ has joined #ruby
<ljharb>
altho i think the original algorithm (now that i reread it) would result in [0, 0, 0, 1, 0, 0, 2]
ghr has joined #ruby
<dagobah>
I don't think it does, unless I'm missing something.
<ljharb>
it says "while foo has anything greater than zero, keep grabbing the first item on the array and prepend it to result"
<ljharb>
which means it shouldn't stop until there's nothing left in "foo" but zeroes
kitak has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
karmatr0n has joined #ruby
andrewlio has joined #ruby
FakeNetRoY has joined #ruby
<dagobah>
Oh, you're talking about your while foo.any? { |x| x > 0 } ; result.push(foo.unshift) solution?
roolo has joined #ruby
FakeNetRoY has left #ruby [#ruby]
<ljharb>
yeah
<ljharb>
i'd initially misread it
<dagobah>
I was claiming that [0, 0, 0, 1, 0, 0, 2, 0].unshift(0).each_cons(2).take_while{|a,_| a.zero?}.map(&:last) would work :)
davy has quit [Ping timeout: 246 seconds]
<ljharb>
ah
shadoi has quit [Ping timeout: 252 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
shadoi has joined #ruby
Xeago has quit [Remote host closed the connection]
<dagobah>
Take each pair, keeping only the pairs that have their first item as a zero (second is non-zero), and then take the last of each of the pairs.
Xeago has joined #ruby
CaptainJet has joined #ruby
joonty_ has quit [Quit: WeeChat 0.4.2]
joonty has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
<dagobah>
We unshift(0) to stop the take_while stopping short.
wallerdev has joined #ruby
ljharb has quit [Ping timeout: 250 seconds]
<olivier_bK>
i need some advice about a development for socket API
<j416>
I'm looking for a nice way to combine documentation and specs; I like the approach that relishapp.com has taken. I want something similar but that is offline. Ideas?
<j416>
we're currently using rspec and rdoc, the optimal thing would be to be able to combine those two
cj3kim has quit [Remote host closed the connection]
qba73 has joined #ruby
arietis has quit [Ping timeout: 240 seconds]
thomasxie has left #ruby [#ruby]
reset has quit [Ping timeout: 240 seconds]
davy has joined #ruby
Azzurrio has joined #ruby
Azzurrio has quit [Client Quit]
northfurr has quit [Quit: northfurr]
moshee has quit [Quit: 囧]
aag1091 has joined #ruby
thomasxie has joined #ruby
Hanmac1 has joined #ruby
nateberkopec has joined #ruby
moshee has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
hiall has quit [Quit: hiall]
Celm has joined #ruby
arietis has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
davy has quit [Ping timeout: 246 seconds]
ikaros has joined #ruby
dyoko has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
greenarrow has joined #ruby
fluve has quit [Remote host closed the connection]
Celm has quit [Ping timeout: 240 seconds]
rasputin1 has joined #ruby
rasputin has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
ljharb has joined #ruby
ljharb has left #ruby [#ruby]
aaronmcadam has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
W1LF has joined #ruby
<W1LF>
hi
heftig has joined #ruby
zoraj has joined #ruby
aagdbl0 has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
francisfish has joined #ruby
Aquilo_ has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
JasmeetQA1 has joined #ruby
jamto11 has joined #ruby
Aquilo has quit [Ping timeout: 250 seconds]
<W1LF>
any rails guy here?
<Hanmac1>
W1LF #RubyOnRails
Hanmac1 is now known as Hanmac
JasmeetQA has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 240 seconds]
cina has quit [Read error: No route to host]
cina has joined #ruby
Melpaws has joined #ruby
sski has quit [Ping timeout: 240 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
Heskie has joined #ruby
JohnBat26 has joined #ruby
ndrei has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister_ has quit [Read error: Connection reset by peer]
banister has joined #ruby
rvraghav93 has joined #ruby
glanzi has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
vpereira has joined #ruby
coderhs has joined #ruby
eka has joined #ruby
jonno11 has joined #ruby
dukz has joined #ruby
hiall has joined #ruby
relix has joined #ruby
rjk808 has joined #ruby
cj3kim has joined #ruby
cina has quit [Quit: leaving]
dukz has quit [Remote host closed the connection]
<W1LF>
any ruby guy here?
Stalkr_ has quit [Quit: Leaving...]
<Tuxified>
about 800 I guess, why?
coder_neo has quit [Quit: Leaving]
<W1LF>
i'm searching for interesting gems
fsdldl has quit [Quit: WeeChat 0.4.3]
<W1LF>
in webdevelopment
<shevy>
W1LF there are a million interesting gems
<shevy>
some of them only on github though
<W1LF>
hmm.. let's be specific though
<W1LF>
i need pagination in my web.. there are?
cj3kim has quit [Read error: Connection reset by peer]
himsin has joined #ruby
cj3kim has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
canton7-mac has joined #ruby
<W1LF>
welcome
deadlock has quit [Read error: Connection reset by peer]
<shevy>
no idea
<W1LF>
any learning resource website?
fgo has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
Seich is now known as seich
RaptorJesus has quit [Ping timeout: 240 seconds]
* W1LF
sigh
ndrei has joined #ruby
Slavox is now known as Slavox|AFK
timonv has quit [Ping timeout: 250 seconds]
lanalyst has joined #ruby
mrjensen has quit [Remote host closed the connection]
<apeiros>
W1LF: ruby-toolbox.com
mrjensen has joined #ruby
aspiers has joined #ruby
reset has joined #ruby
JasmeetQA1 has quit [Quit: Leaving.]
mengu has quit [Remote host closed the connection]
Guest87057 has quit [Read error: Operation timed out]
deepy has quit [Read error: Operation timed out]
alyx has joined #ruby
wallerdev has quit [Quit: wallerdev]
alyx is now known as Guest16085
rjk808 has quit [Remote host closed the connection]
deepy has joined #ruby
deepy is now known as Guest59300
reset has quit [Ping timeout: 240 seconds]
rjk808 has joined #ruby
Slavox|AFK is now known as Slavox
jack_rabbit has quit [Quit: Leaving]
sk87 has joined #ruby
karupanerura is now known as zz_karupanerura
atmosx has quit [Remote host closed the connection]
luriv has joined #ruby
dyoko has quit [Quit: Leaving.]
atmosx has joined #ruby
deens has quit [Remote host closed the connection]
rjk808 has quit [Ping timeout: 240 seconds]
ixti has quit [Ping timeout: 240 seconds]
sigurding has quit [Ping timeout: 240 seconds]
W1LF has left #ruby ["Leaving"]
greenarrow has quit [Quit: 500]
sigurding has joined #ruby
davy has joined #ruby
nateberkopec has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
Speed has joined #ruby
davy has quit [Ping timeout: 240 seconds]
jfelchner_ has joined #ruby
jfelchner_ has quit [Client Quit]
nateberkopec has quit [Ping timeout: 240 seconds]
Macaveli has quit [Quit: Leaving]
jfelchner has joined #ruby
jfelchner has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gaussblurinc has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfelchner has joined #ruby
francisfish has quit [Remote host closed the connection]
Xeago__ has quit [Remote host closed the connection]
DaniG2k has joined #ruby
maoko has joined #ruby
<gaussblurinc>
hi! I have several classes that I want to include to my script. they stored in module, but module folder differ from script folder. how to add module with classes to script?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phansch has joined #ruby
francisfish has joined #ruby
kennym has joined #ruby
chrisseaton has joined #ruby
fgo has joined #ruby
maoko has quit [Client Quit]
fella5s has joined #ruby
coderhs has quit [Ping timeout: 250 seconds]
mrjensen has quit [Remote host closed the connection]
sdouglas has joined #ruby
kennym has quit [Ping timeout: 240 seconds]
<shevy>
gaussblurinc your question is sort of incoherent
<shevy>
In general, the best way to structure your project is to have it be structured in a gem-fit layout.
fgo has quit [Ping timeout: 240 seconds]
<shevy>
such as, if the name is 'foobar', have it lib/foobar/ and lib/foobar.rb where foobar.rb is the first file run when you do a: require 'foobar'
<shevy>
once you have it, if you wish to use this in any other .rb file, you only have to do a require 'foobar' on top of that file, and that shall pull in all the files of that project
jfelchner has quit [Quit: .]
fabrice31 has quit [Remote host closed the connection]
zoraj has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
<gaussblurinc>
shevy: so, I don't have simple mechanism to input my classes to simple script except copypaste?
sigurding has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
karmatr0n has joined #ruby
makara has joined #ruby
rjk808 has joined #ruby
mostlybadfly has joined #ruby
lkba has joined #ruby
rjk808 has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
cover has joined #ruby
rjk808 has joined #ruby
yfeldblum has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
mercwithamouth has joined #ruby
ak5 has quit [Ping timeout: 240 seconds]
<Tuxified>
gaussblurinc: what shevy is trying to say "if you structure your project well, just use require 'class' and it works" :)
maoko has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
<shevy>
gaussblurinc you have require() and load()
<shevy>
gaussblurinc I dont know how that means copy paste ;)
Doppp has joined #ruby
<gaussblurinc>
Tuxified: uh, this is not a project, just another standalone script :(
coderhs has joined #ruby
bigkevmcd has quit [Ping timeout: 252 seconds]
<gaussblurinc>
gaussblurinc: yeah, require is good enough:)
mengu has quit [Ping timeout: 240 seconds]
hiall_ has joined #ruby
RaptorJesus has joined #ruby
hiall has quit [Ping timeout: 246 seconds]
hiall_ is now known as hiall
yfeldblum has quit [Ping timeout: 240 seconds]
<gaussblurinc>
shevy: yeah, require is good enough :)
Speed has quit [Ping timeout: 250 seconds]
relix has joined #ruby
<shevy>
hehe
<shevy>
did you talk to yourself just now :D
greenarrow has joined #ruby
hiall has quit [Client Quit]
cj3kim has quit [Read error: Connection reset by peer]
mclee has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
cj3kim has joined #ruby
sputnik13 has joined #ruby
francisfish has quit [Remote host closed the connection]
sputnik13 has quit [Client Quit]
matchaw_ has joined #ruby
mehlah has joined #ruby
matchaw has quit [Ping timeout: 255 seconds]
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
<bhaak>
if string.encode("UTF-8") doesn't work then the string hasn't been correctly read in. encoding() would show #<Encoding:ASCII-8BIT> instead of #<Encoding:ISO-8859-1>
Tuxified has quit [Ping timeout: 240 seconds]
thomasxie has quit [Quit: Leaving.]
nuck has joined #ruby
<txdv>
bhaak: yeah the string hasn't been correctly read in
rjk808 has joined #ruby
<txdv>
o
<txdv>
i have to force encode it, i see
<txdv>
thank you very much
ghr has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
jzigmund has joined #ruby
Xeago has joined #ruby
rjk808 has quit [Ping timeout: 240 seconds]
mrjensen has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
mrjensen has joined #ruby
r_rios has joined #ruby
robustus has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
klaut has quit [Remote host closed the connection]
chrisseaton has quit []
jenrzzz has joined #ruby
diegoviola has joined #ruby
davy_ has joined #ruby
jenrzzz has quit [Client Quit]
vt102 has joined #ruby
ktun has joined #ruby
Celm has joined #ruby
thomasxie has joined #ruby
jrhe has joined #ruby
reset has joined #ruby
SirFunk has quit [Remote host closed the connection]
davy_ has quit [Ping timeout: 240 seconds]
SirFunk has joined #ruby
Celm has quit [Ping timeout: 246 seconds]
TheNumb_ is now known as TheNumb
TheNumb has quit [Changing host]
TheNumb has joined #ruby
aag1091 has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
reset has quit [Ping timeout: 246 seconds]
simono has joined #ruby
francisfish has quit [Remote host closed the connection]
sailias has joined #ruby
nbouscal has joined #ruby
alekst has joined #ruby
canton7-mac has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
canton7-mac has joined #ruby
kiri has joined #ruby
diegoviola has quit [Ping timeout: 250 seconds]
sski has quit [Remote host closed the connection]
sski has joined #ruby
himsin has quit [Quit: himsin]
aspiers has quit [Ping timeout: 240 seconds]
aag1091 has joined #ruby
phoo1234567 has joined #ruby
nvrch has joined #ruby
wald0 has quit [Quit: Lost terminal]
jonno11 has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
kennym has joined #ruby
Tuxified1 has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
nateberkopec has joined #ruby
sski has quit [Ping timeout: 246 seconds]
soulcake has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
sputnik13 has joined #ruby
sambao21 has joined #ruby
soulcake has joined #ruby
compleatang has joined #ruby
sputnik13 has quit [Client Quit]
djbender has joined #ruby
francisfish has quit [Remote host closed the connection]
havenwood has joined #ruby
oo_ has quit [Remote host closed the connection]
karmatr0n has joined #ruby
oo_ has joined #ruby
rylev_ has joined #ruby
yalue has joined #ruby
jenrzzz has joined #ruby
kitak has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
mrjensen has quit [Remote host closed the connection]
Macaveli has joined #ruby
jenrzzz has quit [Client Quit]
havenwood has quit [Ping timeout: 250 seconds]
mrjensen has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
mclee has joined #ruby
ce_afk is now known as cescalante
mercwithamouth has quit [Ping timeout: 246 seconds]
jprovazn has quit [Quit: Leaving]
nomenkun has quit [Quit: Leaving...]
ndngvr has joined #ruby
obscured has joined #ruby
bluenemo has joined #ruby
Kneferilis has quit [Ping timeout: 246 seconds]
chrisseaton has joined #ruby
sk87 has joined #ruby
jxf has joined #ruby
mehlah has joined #ruby
sk87 has quit [Client Quit]
moritzs has quit [Ping timeout: 250 seconds]
maximski has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Client Quit]
benzrf|offline is now known as benzrf
sailias has quit [Ping timeout: 246 seconds]
obscured has quit [Quit: leaving]
sputnik13 has joined #ruby
_justin has quit [Quit: _justin]
ghr has joined #ruby
mjs2600 has joined #ruby
sputnik13 has quit [Client Quit]
obscured has joined #ruby
emergion has joined #ruby
sputnik13 has joined #ruby
mvangala has quit []
mark_locklear has joined #ruby
sputnik13 has quit [Client Quit]
DaniG2k has quit [Quit: leaving]
thomasxie has quit [Quit: Leaving.]
sputnik13 has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Client Quit]
_tpavel has joined #ruby
cescalante is now known as ce_afk
shashank_rs has quit [Ping timeout: 246 seconds]
rvraghav93_ has joined #ruby
rvraghav93 has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
northfurr has joined #ruby
sputnik13 has joined #ruby
northfurr has quit [Client Quit]
sputnik13 has quit [Client Quit]
sputnik13 has joined #ruby
pedda has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
sputnik13 has quit [Client Quit]
francisfish has joined #ruby
dblessing has joined #ruby
elaptics is now known as elaptics`away
ayaz has joined #ruby
yfeldblum has joined #ruby
sk87 has joined #ruby
popl has quit [Ping timeout: 250 seconds]
pu22l3r has joined #ruby
sputnik13 has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
jackneill has joined #ruby
djbender has quit [Quit: djbender]
bambuka has quit [Quit: Saliendo]
elaptics`away is now known as elaptics
sputnik13 has quit [Read error: Connection reset by peer]
sputnik1_ has joined #ruby
DouweM has joined #ruby
dseitz has joined #ruby
sputnik1_ has quit [Client Quit]
karmatr0n has joined #ruby
davy has joined #ruby
sputnik13 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
sputnik13 has quit [Client Quit]
endash_ has joined #ruby
rankine has joined #ruby
reset has joined #ruby
sputnik13 has joined #ruby
browndawg has joined #ruby
nifty__ is now known as nifty
davy has quit [Ping timeout: 246 seconds]
djbender has joined #ruby
nifty is now known as niftyn8
niftyn8 is now known as nifty
sputnik13 has quit [Client Quit]
fbernier has joined #ruby
tacos1de_ has joined #ruby
heftig has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 246 seconds]
tacos1de has quit [Remote host closed the connection]
akemrir has joined #ruby
heftig has joined #ruby
kitak has joined #ruby
sputnik13 has joined #ruby
<jlebrech>
hi
sputnik13 has quit [Client Quit]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
Guest59300 has quit [Changing host]
Guest59300 has joined #ruby
Guest59300 is now known as deepy
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
compleatang has quit [Remote host closed the connection]
sputnik13 has joined #ruby
northfurr has joined #ruby
danshultz has joined #ruby
_justin has joined #ruby
rmorello has joined #ruby
mrmargolis has joined #ruby
ce_afk is now known as cescalante
sputnik13 has quit [Client Quit]
enebo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sputnik13 has joined #ruby
crystal77 has joined #ruby
sk87 has joined #ruby
jamto11 has joined #ruby
sputnik13 has quit [Client Quit]
tkuchiki has joined #ruby
<olivier_bK>
i need some explication because i try to do something and i get much better but i dont know why ??
<olivier_bK>
i use self.send in my method hash_converter but why he try to find a methode with the same name as k ?
IceDragon has joined #ruby
<canton7-mac>
do you know what 'send' does?
sputnik13 has joined #ruby
jcarouth has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has joined #ruby
jamto11 has quit [Ping timeout: 250 seconds]
MattStratton has joined #ruby
sputnik13 has quit [Client Quit]
hanikazmi has joined #ruby
northfurr has quit [Ping timeout: 240 seconds]
sputnik13 has joined #ruby
tjr9898 has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
MattStratton has quit [Client Quit]
sputnik13 has quit [Client Quit]
sailias has joined #ruby
MattStratton has joined #ruby
sputnik13 has joined #ruby
<jlebrech>
If other people find it hard to understand your code, could that be considered technical debt?
maximski_ has joined #ruby
maximski has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Client Quit]
_maes_ has joined #ruby
Kricir has joined #ruby
marcux has joined #ruby
dkamioka has joined #ruby
dyoko has quit [Quit: Leaving.]
sputnik13 has joined #ruby
dyoko has joined #ruby
andrewlio has quit [Quit: Leaving.]
benzrf is now known as benzrf|offline
sputnik13 has quit [Client Quit]
<ghr>
jlebrech to some extent, yes, but that obviously depends on the domain knowledge, experience and ability of the other people :)
sputnik13 has joined #ruby
grzywacz has joined #ruby
rm_ has joined #ruby
francisfish has quit [Remote host closed the connection]
noob101 has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
siwica has joined #ruby
Megtastique has joined #ruby
<olivier_bK>
canton7, send is equivalent to
<olivier_bK>
self.name = "John Smith"
sputnik13 has quit [Client Quit]
francisfish has joined #ruby
sputnik13 has joined #ruby
lxsameer has quit [Quit: Leaving]
karmatr0n has quit [Remote host closed the connection]
<canton7-mac>
olivier_bK, you asked: "i use self.send in my method hash_converter but why he try to find a methode with the same name as k ?". that's because 'send' tries to find a method with the same name as k, and calls that metho
afreidah1 has joined #ruby
<canton7-mac>
that's what is does. by definition
sski has joined #ruby
timonv has quit [Remote host closed the connection]
<olivier_bK>
thanks for the explication
timonv has joined #ruby
sputnik13 has quit [Client Quit]
cescalante is now known as ce_afk
hl has quit [Quit: Quit]
sputnik13 has joined #ruby
jamto11 has joined #ruby
luriv has quit [Ping timeout: 246 seconds]
sputnik13 has quit [Client Quit]
hl has joined #ruby
Chronocity has quit [Read error: Connection reset by peer]
jonno11 has joined #ruby
spstarr_work has joined #ruby
<spstarr_work>
wow :)
<spstarr_work>
ruby loves bacon
chipotle has joined #ruby
<spstarr_work>
#!/bin/env ruby # -*- coding: utf-8 -*- class FooBar @≋ = 'BACON' attr_reader :≋ def initialize @≋ = 'MOAR BACON' end end puts "#{FooBar.instance_variable_get(:@≋)} LIVES!!!!!!!!!!!!!!!!!!!!" puts "I really love #{FooBar.new.≋}!!!!!!!"
osvico has joined #ruby
sputnik13 has joined #ruby
<spstarr_work>
I didn't expect it to allow unicode variables :)
afreidah1 has quit [Ping timeout: 250 seconds]
timonv has quit [Ping timeout: 240 seconds]
CaptainKnots has quit [Quit: bazinga!]
moritzs has joined #ruby
sputnik13 has quit [Client Quit]
poikon has quit [Remote host closed the connection]
FxK has joined #ruby
sputnik13 has joined #ruby
mvangala has joined #ruby
osvico has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
osvico has joined #ruby
alexju has joined #ruby
oo_ has quit [Remote host closed the connection]
_justin has quit [Ping timeout: 250 seconds]
dyoko has quit [Quit: Leaving.]
sputnik13 has quit [Client Quit]
dyoko has joined #ruby
sputnik13 has joined #ruby
flowerhack has joined #ruby
CaptainKnots has joined #ruby
aag1091 has quit [Quit: Leaving]
Kricir has quit [Remote host closed the connection]
sputnik13 has quit [Client Quit]
momomomomo has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
cj3kim has joined #ruby
maximski_ has quit []
ferr has joined #ruby
shashank_rs has joined #ruby
afreidah1 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
sputnik13 has joined #ruby
jenrzzz has joined #ruby
treehug88 has joined #ruby
sputnik1_ has joined #ruby
chipotle has quit [Quit: cya]
s3ri0us has joined #ruby
arturaz has quit [Ping timeout: 250 seconds]
rvraghav93_ has quit [Read error: No route to host]
ndrei has joined #ruby
chipotle has joined #ruby
sputnik1_ has quit [Client Quit]
jenrzzz has quit [Client Quit]
lmickh has joined #ruby
chipotle has quit [Client Quit]
jlast has joined #ruby
sputnik1_ has joined #ruby
Nukepuppy has joined #ruby
rvraghav93 has joined #ruby
sputnik13 has quit [Ping timeout: 240 seconds]
sputnik1_ has quit [Client Quit]
zchrykng-work has joined #ruby
jlast has quit [Remote host closed the connection]
sputnik13 has joined #ruby
francisfish has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sputnik13 has quit [Client Quit]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
francisfish has joined #ruby
sputnik13 has joined #ruby
meatherly has joined #ruby
davispuh has joined #ruby
jlast has joined #ruby
Nilium has quit [Ping timeout: 240 seconds]
obscured has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
davy has joined #ruby
endash has quit [Read error: Connection reset by peer]
endash_ is now known as endash
sputnik13 has quit [Client Quit]
endash_ has joined #ruby
siwica has quit [Write error: Broken pipe]
sputnik13 has joined #ruby
freezey has joined #ruby
Celm has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
chipotle has quit [Client Quit]
Liru has quit [Ping timeout: 240 seconds]
yeltzooo has quit [Ping timeout: 240 seconds]
dmead has quit [Ping timeout: 240 seconds]
Liru has joined #ruby
thoraxe has quit [Ping timeout: 240 seconds]
kennym has quit [Ping timeout: 246 seconds]
yeltzooo has joined #ruby
northfurr has quit [Quit: northfurr]
dmead has joined #ruby
reset has joined #ruby
Nilium has joined #ruby
alyi has quit [Ping timeout: 250 seconds]
thoraxe has joined #ruby
chipotle has joined #ruby
Seventoes has joined #ruby
Seventoes has left #ruby [#ruby]
paulfm has joined #ruby
davy has quit [Ping timeout: 246 seconds]
Celm has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
alyi has joined #ruby
bruno- has quit [Quit: leaving]
chipotle has quit [Client Quit]
chipotle has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
reset has quit [Ping timeout: 240 seconds]
obscured has joined #ruby
karmatr0n has joined #ruby
chipotle has quit [Client Quit]
atno has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
sski has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
aagdbl has quit [Quit: This computer has gone to sleep]
poikon has joined #ruby
lucasmartins has joined #ruby
arubincloud has joined #ruby
lucasmartins has quit [Quit: Leaving]
jokke has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
chipotle has joined #ruby
mjs2600 has quit [Remote host closed the connection]
havenwood has joined #ruby
agarie has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
jbzt has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
dik_dak has joined #ruby
shashank_rs has quit [Ping timeout: 240 seconds]
<jbzt>
I want to create a bunch of boiler plate ruby classes all based on a template, then edit them from there. I’ve already encapulsated based functionality in a common ancestor, this is just a kick starter for new classes. Is there preferred way to do this? Rails has generators, but is there a standard Ruby pattern to do something similar? I was thinking Rake and something like ERB.
<jbzt>
banister: thanks, I’ll take a look. Hopefully it can be used on a smaller scale and not just generating projects
robbyoconnor has quit [Ping timeout: 240 seconds]
manyrus has joined #ruby
mjs2600 has joined #ruby
supermarin has joined #ruby
<apeiros>
jbzt: IMO if you need code generators, you're doing something wrong
benzrf|offline is now known as benzrf
obscured has quit [Quit: Changing server]
akemrir has quit [Quit: WeeChat 0.4.3]
sk87 has joined #ruby
cescalante is now known as ce_afk
danijoo has joined #ruby
_justin has quit [Quit: _justin]
ce_afk is now known as cescalante
<jbzt>
apeiros: I struggled (and I guess still stuggling) with that. Basically I have a factory method and this code kicks off creating new implementations of those factory classes
chipotle has joined #ruby
benzrf is now known as benzrf|offline
chipotle has quit [Client Quit]
snath has quit [Ping timeout: 240 seconds]
kevind has joined #ruby
zachallett has joined #ruby
Solnse has joined #ruby
cjuehring has joined #ruby
jonno11 has joined #ruby
zz_jrhorn424 is now known as jrhorn424
obscured has joined #ruby
<cjuehring>
has anyone else out there had trouble with the sqlite3 gem building on osx 10.9?
<Takumo>
Hi all, I'm trying to secure my Grape API with Warden, I'm wondering what the best way is to supply the access token is
<Takumo>
should I use a X-ACCESS-TOKEN HTTP header, or just have an access_token parameter, and in either case, how would I read that from the request?
dukz has joined #ruby
SatansDeer has joined #ruby
zchrykng-work has joined #ruby
toastynerd has quit [Remote host closed the connection]
noop has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
UserNameInvalid has quit [Ping timeout: 246 seconds]
mway has joined #ruby
hamakn has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
dik_dak has joined #ruby
_5kg has joined #ruby
kevind_ has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
andrewlio has joined #ruby
rylev_ has joined #ruby
arietis has joined #ruby
brisbin has joined #ruby
kevind has quit [Ping timeout: 246 seconds]
kevind_ is now known as kevind
apeiros has joined #ruby
ktun has quit [Ping timeout: 240 seconds]
r_rios has quit [Ping timeout: 240 seconds]
rylev has quit [Ping timeout: 240 seconds]
rainmanjam has joined #ruby
mr_snowf1ake has joined #ruby
koderok has quit [Ping timeout: 250 seconds]
olivier_bK has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
rippa has joined #ruby
Rickmasta has quit [Quit: Leaving]
hooper has joined #ruby
ktun has joined #ruby
roolo has quit [Quit: Leaving...]
Kricir has joined #ruby
UserNameInvalid has joined #ruby
phansch has joined #ruby
aniM has joined #ruby
cl4ptr4p0 has quit [Quit: BitchX: it isn't only my script, it's also my client]
cescalante is now known as ce_afk
jamto11 has joined #ruby
SatansDeer has quit [Quit: Leaving.]
Rickmasta has joined #ruby
Celm has joined #ruby
roolo has joined #ruby
yfeldblum has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
jenrzzz has joined #ruby
contradictioned has joined #ruby
shashank_rs has joined #ruby
jenrzzz has quit [Client Quit]
renier has quit [Ping timeout: 255 seconds]
ahawkins has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 240 seconds]
bluenemo has quit [Remote host closed the connection]
vpretzel has quit [Quit: Adios!]
graft has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
reset has joined #ruby
vpretzel has joined #ruby
jobewan has joined #ruby
michaeldeol has joined #ruby
UserNameInvalid has quit [Quit: Leaving]
agarie has joined #ruby
hooper has quit [Quit: BitchX: the ONLY bug-free client]
hooper has joined #ruby
jvdp has joined #ruby
agarie_ has joined #ruby
agarie has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
dagobah has quit [Quit: Leaving...]
evenix has joined #ruby
kiri has quit [Quit: Leaving]
pietr0 has joined #ruby
reset has quit [Ping timeout: 240 seconds]
<jvdp>
i am new to ruby, i have a .each do function to show a price from items in a hash, that works fine, and it prints a line per item, now i also want to have the sum of all items. How can I do this/
<hoelzro>
jvdp: you can sum up the values by hand
supermarin has joined #ruby
<hoelzro>
but there's a shorter way too
<hoelzro>
you can use inject/reduce
* hoelzro
.oO( There might even be a sum method... )
brisbin has quit [Ping timeout: 240 seconds]
<jvdp>
for each iteration it should save the total value and adds it to the grandtotal
sambao21 has joined #ruby
brisbin has joined #ruby
alexherbo2 has joined #ruby
<benzrf>
inject is fun
<benzrf>
jvdp: if you have any knowledge of haskell or lisp or other FP u may know inject as fold or reduce
hamakn has joined #ruby
<jvdp>
ok let me see
alexherbo2 has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sailias has quit [Quit: Leaving.]
marcdel has joined #ruby
heftig has quit [Quit: Quitting]
Rollabunna has quit [Remote host closed the connection]
<workmad3>
benzrf: you can even use .reduce instead of .inject
TheLarkInn has left #ruby [#ruby]
<benzrf>
nonsense
seemant has quit [Changing host]
seemant has joined #ruby
jhass|off is now known as jhass
marcdel_ has joined #ruby
cptdwarf has quit [Remote host closed the connection]
sailias has joined #ruby
tobago has quit [Remote host closed the connection]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
benzrf: I find it kinda weird that many people use .map/.inject rather than .map/.reduce, seeing as ruby has .collect/.inject for smalltalkers and .map/.reduce for FPers :)
<benzrf>
:I
sk87 has joined #ruby
paulfm has quit []
marcdel has quit [Ping timeout: 246 seconds]
davy_ has joined #ruby
segv is now known as xorl
andikr has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
timonv has joined #ruby
dblessing_ has joined #ruby
renier has joined #ruby
cj3kim has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
froy has joined #ruby
cj3kim has joined #ruby
Morkel has quit [Quit: Morkel]
ikaros has quit [Quit: Ex-Chat]
marcdel_ has quit [Ping timeout: 240 seconds]
afreidah1 has quit [Ping timeout: 240 seconds]
dblessing has quit [Ping timeout: 240 seconds]
dblessing_ is now known as dblessing
lsmola has quit [Ping timeout: 255 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
supermarin_ has joined #ruby
zchrykng-work has quit [Ping timeout: 246 seconds]
flowerhack has quit [Quit: Connection closed for inactivity]
<lethjakman>
apeiros: can't you edit blah inside of the tap?
<apeiros>
lethjakman: yes
saarinen has quit [Quit: saarinen]
<lethjakman>
then why would you use begin/end enstead of tap in what I just posted?
coderhs has quit [Ping timeout: 240 seconds]
<lethjakman>
they're returning the last object to set it equal.
oo_ has joined #ruby
supermarin_ has quit [Quit: Computer has gone to sleep.]
<DouweM>
lethjakman: performance, probably
<DouweM>
lethjakman: in that case, they could indeed have used tap
<apeiros>
doubt it
<DouweM>
doubt what?
<apeiros>
that its for performance reasons
meowtism has quit [Ping timeout: 240 seconds]
supermarin_ has joined #ruby
<lethjakman>
apeiros: what do you think the reason is?
<DouweM>
I mean it's probably not a conscious decision
<apeiros>
lethjakman: I don't think there's a specific reason
<lethjakman>
they act the same in that situation though?
<apeiros>
whoever wrote that probably didn't even consider tap
x77686d has joined #ruby
<elektronaut>
holdover from 1.8.x maybe? tap was introduced in ruby 1.9
Heskie has quit []
<lethjakman>
hmmm
<lethjakman>
perhaps.
deric_skibotn has joined #ruby
<lethjakman>
very interesting.
<apeiros>
lethjakman: you could use tap there, yes. the two are still unrelated.
<havenwood>
lethjakman: there is often not a why for Rails code
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
stonecolddevin is now known as dhoss
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<benzrf>
fuck yea
obscured has quit [Quit: leaving]
saarinen has joined #ruby
<lethjakman>
havenwood: very fair lol.
<lethjakman>
thank you
<lethjakman>
that answers my question, I appreciate it.
<benzrf>
i just made a hacky prototype of a vim plugin that would let you press a keybind and select some code, then a pry on the result of evalling it pops up in a new term window
<benzrf>
B)
<benzrf>
quick woo
<lethjakman>
benzrf: ooooo
<benzrf>
we smalltalk now
<DouweM>
benzrf: hehe nice
<lethjakman>
benzrf: get it up on github!
<benzrf>
lethjakman: have i mentioned my current project to you yet o3o
<benzrf>
it's part of that
<lethjakman>
benzrf: I don't think so?
lukec has quit [Quit: lukec]
<benzrf>
lethjakman: Quick
<benzrf>
1 sec
<benzrf>
lethjakman: are you familiar with typescripts as produced by quick(1)
toastynerd has quit [Remote host closed the connection]
reset has joined #ruby
failshell has joined #ruby
terrellt_ has joined #ruby
Kricir has joined #ruby
Fretta has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rmorello has joined #ruby
wallerdev has joined #ruby
iliketurtles has joined #ruby
mikecmpbll has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
camilasan has joined #ruby
Spami has joined #ruby
supermarin_ has joined #ruby
jonno11 has joined #ruby
sigurding has quit [Ping timeout: 240 seconds]
subbyyy_ has joined #ruby
reset has quit [Ping timeout: 240 seconds]
<benzrf>
lethjakman: quick is currently in omegahm
<benzrf>
*omega
<benzrf>
lethjakman: it's like alpha but further back, so it loops around to the end
supermarin_ has quit [Client Quit]
<benzrf>
>tfw underflow
<f0ster`>
anyone know a jetbrains coupon ? :D
sambao21 has quit [Quit: Computer has gone to sleep.]
ianco has left #ruby [#ruby]
mjs2600 has joined #ruby
supermarin_ has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
dukz has quit []
benzrf is now known as benzrf|offline
andy___ has joined #ruby
benzrf|offline is now known as benzrf
sambao21 has joined #ruby
afreidah1 has quit [Ping timeout: 240 seconds]
ferr has quit [Quit: Lost terminal]
coderhs has joined #ruby
<benzrf>
lethjakman: is it playin correctly
<wallerdev>
morning :)
agarie_ has quit [Ping timeout: 240 seconds]
thrillagorilla has joined #ruby
andy____ has joined #ruby
toastynerd has joined #ruby
supermarin_ has quit [Ping timeout: 250 seconds]
andy____ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
andy__ has quit [Ping timeout: 240 seconds]
fjfish has quit [Remote host closed the connection]
cj3kim has joined #ruby
andy__ has joined #ruby
andy___ has quit [Ping timeout: 240 seconds]
<lethjakman>
benzrf: very interesting! sounds nice!
francisfish has joined #ruby
nari has quit [Ping timeout: 250 seconds]
ori has joined #ruby
<benzrf>
lethjakman: :3
axl_ has joined #ruby
RowdyChildren is now known as RowdyChild|Away
zachallett has joined #ruby
xiella has left #ruby ["Leaving"]
fabrice31 has quit [Ping timeout: 240 seconds]
CreativeEmbassy has quit [Quit: FO SHO]
zeropx has joined #ruby
<ori>
hey, i remember ruby having some syntactic sugar for calling a method on each item in enumerable, like collection.map(:@foo) or something, but now i can't remember what it was exactly
RowdyChild|Away is now known as RowdyChildren
<ori>
anyone know what i am thinking of?
gigetoo has quit [Read error: Connection reset by peer]
<benzrf>
ori: you can use &foo to pass a block arg from a value
<havenwood>
ori: ampersand for to_proc
<apeiros>
ori: e.g. ary.map(&:to_i)
<benzrf>
ori: and symbols' to_proc makes a Proc that calls the symbols' method on the arg
<lethjakman>
DouweM: if you can make one that would find a song by guitar riffs I'd like it :)
<lethjakman>
do doo do do dooooo
<DouweM>
lethjakman: hehe
<lethjakman>
what song is taht?
binaryhat has joined #ruby
moritzs has joined #ruby
<workmad3>
lethjakman: heh, reminds me of a lyric... "oh son, won't you play us a melody, I'm not really sure how it goes, but it's short and it's sweet'
<f0ster`>
lethjakman, benzrf macvim and janus? i've used vim for a long tikme but i usually use IDES for things like jumping to declarations etc
zigomir has joined #ruby
<lethjakman>
f0ster`: fuzzy searching.
<DouweM>
workmad3: how did that reming you of piano man?
<DouweM>
*remind
<lethjakman>
workmad3: who doesn't love billy joel :)
<workmad3>
DouweM: 'do doo do do dooo - what song is that'?
<DouweM>
aah, like that :)
rakm has joined #ruby
vasilakisFiL has joined #ruby
<workmad3>
lethjakman: members of the 'I hate billy joel' fan club?
<lethjakman>
workmad3: they're not real people.
<lethjakman>
they don't count.
iceden has quit [Read error: Connection reset by peer]
jason__ has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 240 seconds]
<workmad3>
lethjakman: heh
IceDragon has quit [Ping timeout: 250 seconds]
ace_striker has quit [Ping timeout: 240 seconds]
<vasilakisFiL>
hi.. I am building a warden plugin for rails that authenticates the user based on its ip.. how can I test that? I was thinking to build another warden middleware, insert it before the first one and through that inject any data I want..
Seldan has joined #ruby
mrjensen has joined #ruby
hakunin has quit [Remote host closed the connection]
roolo has joined #ruby
agarie has joined #ruby
hakunin has joined #ruby
<DouweM>
you sure that's a good idea?
danijoo has joined #ruby
yacks has joined #ruby
<vasilakisFiL>
DouweM I don't know.. do you have any better solution ?
cj3kim has quit [Read error: Connection reset by peer]
sigurding has quit [Ping timeout: 240 seconds]
<jhass>
I'm sure it's not a good idea
<DouweM>
yeah, that.
<DouweM>
why do you wanna auth on IP?
<vasilakisFiL>
ok good to know that
<wallerdev>
sounds fine to me
<lethjakman>
vasilakisFiL: using your session?
kirun has joined #ruby
cj3kim has joined #ruby
ce_afk is now known as cescalante
Es0teric has joined #ruby
<lethjakman>
vasilakisFiL: I've actually run into software that does that. humblebundle did for a while
Es0teric has quit [Max SendQ exceeded]
<lethjakman>
logged into my VPN and was logged into someone elses account.
<vasilakisFiL>
DouweM it is for multiple users that belong to a certain company that has one or more static ips
<lethjakman>
actually. it wasn't humble bundle, it was that big crowd funding software.
<wallerdev>
yeah i wouldnt do it for anything public
Es0teric has joined #ruby
<vasilakisFiL>
lethjakman what do you mean using my session? I get the ip from the rack
<lethjakman>
vasilakisFiL: use session logins rather than IP
<jhass>
ip spoofing is easy, if don't trust the people that have network level access they can just trigger actions. They won't get the reply but still very dangerous
<lethjakman>
I'd recommend some sort of distributed keys.
benzrf is now known as benzrf|offline
TripTastic has joined #ruby
hakunin has quit [Ping timeout: 246 seconds]
<vasilakisFiL>
the thing is that I have to use IPs because I was told so.. so do you have any better idea on how to test it ?
einarj has joined #ruby
JBreit has quit [Ping timeout: 240 seconds]
nomenkun has quit [Remote host closed the connection]
<mostlybadfly>
i know the example is poor and doesn't account for all, wasn't too sure how to even start
nomenkun has quit [Ping timeout: 246 seconds]
_root has joined #ruby
<mostlybadfly>
fwiw this is the output apple_pie:sugar1cbutter1tblapples1c1. Combine ingredients2. Mix ingredients
kevinykchan has quit [Quit: Computer has gone to sleep.]
<jhass>
mostlybadfly: that datastructure doesn't make a lot of sense for the data you're modeling. Better would be {name: name, ingredients: ingredients, instructions: instructions}
<vasilakisFiL>
lethjakman it is dangerous but it won't be the end of the world.. I think other problems will make the transition to a proper authentication such as you can't do any data analysis about the user preferences and in essence you have very little meta-data about the users
andy__ has quit [Remote host closed the connection]
<jhass>
mostlybadfly: that be one recipe and for a collection of recipes you just make an array of those
freerobby has joined #ruby
<mostlybadfly>
jhass: ok that makes perfect sense, the more i look at it the more i was wondering why i made it like that haha
_justin has joined #ruby
simono has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
RowdyChildren is now known as RowdyChild|Away
nanoyak has joined #ruby
yfeldblum has joined #ruby
<mostlybadfly>
so it would be more like cookbook = [ recipe1 , recipe2, etc. ] ?
<jhass>
yep
mark_locklear has joined #ruby
<mostlybadfly>
ok, let me rework this, makes a lot more sense for printing too
<mostlybadfly>
thanks jhass :)
<Veejay>
You could also have a Recipe class
einarj has quit [Remote host closed the connection]
<Veejay>
And go nuts
sigurding has quit [Ping timeout: 240 seconds]
iceden has joined #ruby
<mostlybadfly>
yeah i'm actually trying to figure out to which extent I want to do that. right now i'm just working with asking for recipe input and putting it into a hash
alekst has joined #ruby
<Veejay>
Yeah hashes will do fine for the time being
tijmencc has joined #ruby
<mostlybadfly>
basically using a case statement of when "New" prompt for title, ingredients, instructions, then push that to a hash/array
danijoo has quit [Remote host closed the connection]
<mostlybadfly>
i'd imagine for displaying or modification purposes a class would be great
kitak_ has joined #ruby
tijmencc has quit [Client Quit]
nanoyak has quit [Client Quit]
tijmencc has joined #ruby
_root has quit [Ping timeout: 240 seconds]
reset has joined #ruby
<mostlybadfly>
i'm having a hard time properly writing an initialize method and where everything would go
nanoyak has joined #ruby
<mostlybadfly>
i'm thinking reworking the data structur will help
blackavr has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
<mostlybadfly>
oh i remember jhass my initial thought would be to have just a list of ingredients so that they can be later referenced, i wanted to avoid combining quantities with ingredients. my primary confusion was how to structure ingredients and quantity. i'll have to rethink my approach
kitak has quit [Ping timeout: 240 seconds]
<dorei>
any idea how can I specify user/pass/database at a sequel migration file?
rkazak has quit [Quit: rkazak]
hrs has joined #ruby
momomomomo has joined #ruby
hrs has quit [Client Quit]
r_rios has joined #ruby
afreidah1 has joined #ruby
toastynerd has quit [Remote host closed the connection]
tijmencc has quit [Client Quit]
andy__ has joined #ruby
RowdyChild|Away is now known as RowdyChildren
chiel has joined #ruby
cescalante is now known as ce_afk
andy__ has quit [Remote host closed the connection]
zcreative has joined #ruby
freerobby has quit [Quit: Leaving.]
Angelous has quit [Excess Flood]
andy__ has joined #ruby
Angelous- has joined #ruby
Angelous- has quit [Excess Flood]
<alekst>
Module::InnerModule.method = !!object[:symbol]. Any idea on how to refactor this to avoid the double negation?
Angelous has joined #ruby
Angelous has quit [Excess Flood]
<jhass>
alekst: what's the purpose of it?
<jhass>
what does object[:symbol] return?
Angelous has joined #ruby
Angelous has quit [Excess Flood]
obs has quit [Quit: Konversation terminated!]
Angelous has joined #ruby
Angelous has quit [Excess Flood]
deadlock has quit [Ping timeout: 240 seconds]
<Hanmac1>
alekst: you can do (object[:symbol] && true) but that doesnt make more or less sense
Angelous has joined #ruby
Angelous has quit [Excess Flood]
renier has quit [Ping timeout: 240 seconds]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davy_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
poikon has quit []
failshel_ has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
derek_c has quit [Ping timeout: 240 seconds]
ccham has joined #ruby
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
contradictioned has quit [Remote host closed the connection]
contradictioned has joined #ruby
RowdyChildren is now known as RowdyChild|Away
basmoura has quit [Read error: Connection timed out]
karmatr0n has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
karmatr0n has joined #ruby
jenrzzz has joined #ruby
iamjarvo has joined #ruby
organmeat has left #ruby [#ruby]
b1nd has quit [Ping timeout: 240 seconds]
terrellt_ is now known as terrellt
sailias has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SHyx0rmZ has joined #ruby
toastynerd has joined #ruby
BalkM has joined #ruby
pwh has quit []
TripTastic has quit [Read error: Connection reset by peer]
Solnse has joined #ruby
noop has joined #ruby
danijoo has joined #ruby
shashank_rs has joined #ruby
n88 has quit [Changing host]
n88 has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
timonv has quit [Remote host closed the connection]
nbouscal has quit [Read error: Connection reset by peer]
timonv has joined #ruby
elaptics is now known as elaptics`away
nbouscal has joined #ruby
jonno11 has joined #ruby
not_satoshi_3141 has joined #ruby
x77686d has quit [Quit: x77686d]
carraroj has joined #ruby
SHyx0rmZ has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
shashank_rs has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]
davy_ has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
arietis has quit [Quit: Computer has gone to sleep.]
cj3kim_ has joined #ruby
arietis has joined #ruby
blackmesa has joined #ruby
wjlafrance has joined #ruby
skaflem has quit [Quit: Leaving]
b1nd has joined #ruby
dql has joined #ruby
dql has left #ruby [#ruby]
x77686d has joined #ruby
renier has quit [Ping timeout: 250 seconds]
CaptainJet has joined #ruby
renier has joined #ruby
toastynerd has quit [Remote host closed the connection]
<sdelmore>
I have a random naming question not at all related to ruby, hoping for some input though. What would you call a class that segments a binary data stream into chunks that can be parsed. It doesn't actually parse the rows, just knows to grab the next n bytes and pass them to another class to parse.
nicoulaj has joined #ruby
r_rios has quit [Ping timeout: 240 seconds]
rezzack1 has joined #ruby
<wallerdev>
StreamSlicer
axl_ has left #ruby [#ruby]
<wallerdev>
since it's basically like each_slice
<v0n>
hi
<wallerdev>
hi
Hobogrammer has joined #ruby
Angelous has joined #ruby
Angelous has quit [Excess Flood]
<ccham>
I'd probably just name it WhateverStream and implement e.g. each_chunk
ndrei has quit [Ping timeout: 240 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
iliketurtles has quit [Quit: zzzzz…..]
robert_ has quit [Read error: Connection reset by peer]
davy__ has joined #ruby
<v0n>
is there a way to apply a sed substitute expression to a string? e.g. "foobar".sed("s/ob/uu/g") # => "fouuar"
razrunelord has joined #ruby
<v0n>
something like that
<jhass>
v0n: sub/gsub
ndrei has joined #ruby
b1nd has quit [Ping timeout: 240 seconds]
<v0n>
jhass: yeah but it takes 2 arguments, and you have to check for a "/g" suffix to know if you'll call sub() or gsub()
sepp2k has quit [Ping timeout: 250 seconds]
<jhass>
well, what are you really doing here?
davy___ has joined #ruby
chipotle has quit [Quit: cya]
<v0n>
As I said, I was wondering if there was a substitute method which takes a complete expression instead of several arguments
iliketurtles has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
<apeiros>
v0n: no, there isn't
roolo has quit [Quit: Leaving...]
<v0n>
ok
<jhass>
that's the solution you'd like, not the problem you're solving
zigomir has quit [Remote host closed the connection]
robert_ has joined #ruby
<v0n>
jhass: built-in* if it makes the question clearer ^^ but apeiros answered
keeguon has joined #ruby
zigomir has joined #ruby
jlebrech_ has joined #ruby
<jhass>
still
mark_locklear has quit [Ping timeout: 246 seconds]
MrL0ngbowman has joined #ruby
jlebrech_ has quit [Max SendQ exceeded]
<v0n>
jhass: ok got it, => I need to apply a substitution of text with a expression (sed-like) given by the user)
davy__ has quit [Ping timeout: 250 seconds]
lethjakman has quit [Ping timeout: 250 seconds]
<jhass>
is that the user have to give it as a sed like expression your own requirement or are you just supposed to implement it?
<wallerdev>
just shell it out to sed haha
<jhass>
isn't sed touring complete? :P
jenrzzz has quit [Quit: I haven't slept for ten days, 'cause that would be too long.]
brugidou has joined #ruby
<jhass>
I've seen tetris in it
havenwood has quit []
MrL0ngbowman has quit [Read error: Connection reset by peer]
<wallerdev>
it's tetris-complete then
<jhass>
dangerous enough for me
<v0n>
jhass: 2nd, because s/foo/bar/g is quite usual, I wanted to shell it out, but what about giving something like "s/foo/bar ; rm -rf ~"
arietis has quit [Quit: Computer has gone to sleep.]
<v0n>
idealy, I'd like to avoid that ^^
<ccham>
if you don't really care about full sed (just s/old/new(/g)), i'd just parse it and use sub/gsub.
<wallerdev>
escape your input
mway has quit [Quit: mway]
<v0n>
then the expression will be escaped and will certainly not work, right?
<jhass>
system('/usr/bin/sed', user_input), don't even invoke a shell
jprovazn_bbl has quit [Quit: Odcházím]
<jhass>
but I mean it's fairly easy to parse
zigomir has quit [Ping timeout: 240 seconds]
<v0n>
ccham: yeah, I'm about to write a String#sed(exp) which does the switch
wjlafrance has quit [Quit: Leaving]
cjuehring has quit [Quit: WeeChat 0.4.3]
<wallerdev>
seems like it'd be a pain to parse with escaped slashes
<v0n>
jhass: ho, a shell isn't forked with system() ?
<jhass>
not in all forms iirc
ixti has quit [Ping timeout: 250 seconds]
afex has quit [Ping timeout: 240 seconds]
<v0n>
jhass: ok then there's no issue with that
<banister>
apeiros ping
<jhass>
I think I'd still parse it
CreativeEmbassy has quit [Quit: FO SHO]
CreativeEmbassy has joined #ruby
<v0n>
something like String#sed exp ; system('sed', exp) or raise "bad expression"; end
<v0n>
jhass: why/.
<v0n>
?*
mway has joined #ruby
<jhass>
something like command, regex, substitute, flags = input.split(%r{(?<!\\)/|\\\\/})
Zespre has quit [Quit: leaving]
<jhass>
because I consider sed to powerful for user input
<v0n>
hum.
Zespre has joined #ruby
keen_ has left #ruby [#ruby]
<jhass>
%r{(?<!\\)/|(?<=\\\\)/} actually
FxK has joined #ruby
<v0n>
and anyway, I have to parse the input to know if it's a sed-like expression :)
coderhs has quit [Ping timeout: 240 seconds]
Zespre has quit [Client Quit]
fabrice31 has joined #ruby
Zespre has joined #ruby
treehug88 has quit []
jrhorn424 is now known as zz_jrhorn424
<Nowaker>
how do I count a number of method calls when unit testing? I need to make sure :method method on the instance is called n times.
<jhass>
Nowaker: what framework?
<Nowaker>
jhass: test::unit or rspec, I use both in my project
<jhass>
in rspec: expect(foo).to receive(:bar).exactly(n).times iirc
<Nowaker>
thanks, I will check that
mark_locklear has joined #ruby
Doppp has joined #ruby
<Nowaker>
you are right, thanks.
mehlah has joined #ruby
b1nd has joined #ruby
cpruitt has quit [Quit: cpruitt]
sailias has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
fabrice31 has quit [Ping timeout: 250 seconds]
derek_c has joined #ruby
not_satoshi_3141 has left #ruby [#ruby]
earth has joined #ruby
BalkM has quit [Quit: Computer has gone to sleep.]
<v0n>
jhass: what kind of regex is that? perl,ruby posix?
<jhass>
uh, I'm no expert into the differences here
KillerFox has quit [Ping timeout: 252 seconds]
<jhass>
it uses a negative and a positive lookbehind
<jhass>
perl and ruby do that, not sure about posix
cjuehring has joined #ruby
hakunin has joined #ruby
<v0n>
didn't know the ?<! syntax
<apeiros>
banister: pong
<jhass>
google lookaround expressions
aaronmcadam has joined #ruby
<v0n>
haha I look at the expression and I understand nothing
<banister>
apeiros can i PM u?
<apeiros>
banister: sure
KillerFox has joined #ruby
<apeiros>
jhass: (?<!\\) won't attribute for escaped backslashes
<jhass>
(?<!\\)/ say match a / unless it is preceded by a \, (?<=\\\\)/ says match a / if it is preceded by \\. The escaping makes it harder to read
<jhass>
apeiros: not?
vasilakisFiL has quit [Remote host closed the connection]
grzywacz has quit [Ping timeout: 240 seconds]
<jhass>
hm, okay probably I didn't think about the \\\\\/ case
<apeiros>
I'd have to look into what you suggested, but I think not
cj3kim_ has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
cj3kim_ has joined #ruby
coderhs has joined #ruby
rvraghav93 has quit [Ping timeout: 250 seconds]
ndrei has quit [Quit: Lost terminal]
mengu has joined #ruby
<Nowaker>
jhass: btw, I found no real gain from using rspec compared to test-unit. having receive.exactly.times is a strong reason for rspec. thank you very much for opening my eyes! :)
mark_locklear has quit [Ping timeout: 240 seconds]
rayners has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
Xeago_ is now known as Xeago
marcdel has quit []
jenrzzz has joined #ruby
centrx has joined #ruby
luckyruby has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
subbyyy has joined #ruby
cj3kim_ has joined #ruby
treehug88 has joined #ruby
decoponio has quit [Quit: Leaving...]
subbyyy_ has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Terminus- has quit [Ping timeout: 264 seconds]
cj3kim_ has quit [Read error: Connection reset by peer]
cj3kim_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
marcdel has joined #ruby
mjs2600 has joined #ruby
yfeldblum has joined #ruby
phutchins has joined #ruby
marr123 has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
marr123 has quit [Remote host closed the connection]
rakm has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
skulker has quit [Remote host closed the connection]
havenwood has joined #ruby
chipotle has joined #ruby
heftig has joined #ruby
nanoyak has joined #ruby
AlexRussia has quit [Remote host closed the connection]
jorts_ has joined #ruby
AlexRussia has joined #ruby
freezey has quit [Remote host closed the connection]
maletor has joined #ruby
<atmosx>
shevy: you here?
jxf has quit [Ping timeout: 246 seconds]
jorts has quit [Ping timeout: 240 seconds]
jorts_ is now known as jorts
<sdelmore>
wallerdev: Sorry for the delayed response, I got pulled into a meeting. StreamSlicer is perfect, thanks.
lethjakman has joined #ruby
<shevy>
atmosx yeah, had a nap, just woke up, still dizzy in the head
nanoyak_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
nanoyak has quit [Read error: Connection reset by peer]
<atmosx>
I mean all my problems should be already solved by this gem, it's like I'm doing anything new
Angelous has joined #ruby
axl_ has joined #ruby
cpruitt has joined #ruby
pwh has joined #ruby
<shevy>
hey
<shevy>
I find it hard to figure out what ANYTHING of it does ;)
<atmosx>
hah
benzrf|offline is now known as benzrf
<atmosx>
okay, I'll see if I can work out with the classes the it has... otherwise I'll roll mine
<benzrf>
hello ruby losers
<benzrf>
er i mean rubyists
hooper has quit [Ping timeout: 240 seconds]
axl_ has quit [Client Quit]
JBreit has joined #ruby
nanoyak_ has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
Marfi has joined #ruby
<Marfi>
hello
<Marfi>
(how embeding mruby in C program?)
toastynerd has quit [Remote host closed the connection]
noop has quit [Ping timeout: 240 seconds]
shashank_rs has joined #ruby
Solnse has quit [Ping timeout: 240 seconds]
<momomomomo>
Quick q - In CSV.read(r+) I’m having a difficult time finding a method to overwrite the current csv::row’s value - is it even possible (2.0)?
<momomomomo>
I see IO::open has lineno=
nanoyak has joined #ruby
<momomomomo>
ah pos=
<momomomomo>
der
<momomomomo>
nope :x
binaryhat has quit [Quit: Leaving]
werdnativ has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
thrillagorilla has quit [Remote host closed the connection]
toastynerd has joined #ruby
p8952 has quit [Remote host closed the connection]
paulfm has joined #ruby
mikecmpbll has joined #ruby
FxK has quit [Read error: Connection reset by peer]
Bumptious has quit [Remote host closed the connection]
FxK has joined #ruby
jorts has quit [Quit: jorts]
Bumptious has joined #ruby
p8952 has joined #ruby
cl4ptr4p0 has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
ukd1 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
JBreit has left #ruby ["Leaving"]
jorts has joined #ruby
coderhs has quit [Ping timeout: 250 seconds]
francisfish has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
Bumptious has quit [Ping timeout: 264 seconds]
francisfish has quit [Remote host closed the connection]
<havenwood>
Marfi: compile your mruby into C byecode array to embed and compile
<momomomomo>
csv.open*
spyderman4g63 has quit []
spyderman4g63 has joined #ruby
<Marfi>
havenwood, is possible to not compile my code? normaly, run normal text / script
<havenwood>
Marfi: yes
<havenwood>
Marfi: there's a REPL too
<Marfi>
havenwood, documentation is to old
<havenwood>
mirb
<Marfi>
havenwood, can You show me any working example?
pkrnj has joined #ruby
<Marfi>
havenwood, I'm trying 2 days
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
but mruby seems to be progressing rapidly :D
toothe has joined #ruby
sambao21 has joined #ruby
<toothe>
I'm attempting to run a program but it says I need to install nokogirl. I did gem install nokogirl, but it still says I need to install nokogiri.
erikruthven has joined #ruby
<havenwood>
toothe: what do you get for `which gem` and `which ruby`?
<bricker>
toothe: nokogirl/nokogiri ?
cl4ptr4p0 has quit [Quit: BitchX: take the red pill]
<toothe>
i did gem intsall nokogiri.
Bumptious has joined #ruby
<bricker>
toothe: how are you running the program? Did you require 'nokogiri' at the top?
<toothe>
I did ./cewl.rb.
<Marfi>
havenwood, Your first code have no MAKEFILE, I can compile it
<bricker>
toothe: Are you using rvm/gemsets, or bundler, or neither?
<toothe>
honestly, I don't know.
<Marfi>
havenwood, second no have Makefile too
<toothe>
I'm a Ubuntu user, if that helps.
phutchins has quit [Ping timeout: 240 seconds]
<havenwood>
Marfi: i'll fix it soon, i manually ran commands
<bricker>
toothe: type 'gem which nokogiri' to confirm it's installed. What's the source of the program?
Hamburglr has joined #ruby
coderhs has joined #ruby
<Marfi>
havenwood, how fix this depreciated code? mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_nil_value());
<bricker>
toothe: or 'gem list nokogiri' is probably better
zigomir has joined #ruby
Cork has quit [Quit: .]
<havenwood>
toothe: Gist results for: gem env
<havenwood>
toothe: telling us what you get for `which gem` and `which ruby` might help.
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
Cork has joined #ruby
Cork is now known as Guest46478
lewis__ has joined #ruby
afex has joined #ruby
moritzs has joined #ruby
davy_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
Guest46478 has quit [Changing host]
Guest46478 has joined #ruby
havenwood has joined #ruby
Guest46478 is now known as Cork
havenwood has quit [Read error: Connection reset by peer]
einarj has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
mway has quit [Quit: mway]
havenwood has joined #ruby
lewis__ is now known as Lewix
Lewix has quit [Changing host]
Lewix has joined #ruby
x77686d has quit [Quit: x77686d]
Xeago has quit [Remote host closed the connection]
unholycrab has quit [Changing host]
unholycrab has joined #ruby
Doppp has quit [Ping timeout: 250 seconds]
<havenwood>
toothe: check that you get what you expect for `update-alternatives --config ruby` and `update-alternatives --config gem`.
<havenwood>
(assuming you're not using a Ruby version manager.)
phansch has quit [Quit: WeeChat 0.4.2]
x1337807x has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
spider-mario has quit [Read error: Connection reset by peer]
carraroj has quit [Quit: Konversation terminated!]
teddyp1cker has quit [Remote host closed the connection]
combusean has quit [Ping timeout: 250 seconds]
jhass is now known as jhass|off
yalue has quit [Quit: Leaving]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
flagg0204 has quit [Ping timeout: 240 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
marcdel has quit [Read error: Connection reset by peer]
ukd1 has quit [Quit: Leaving...]
chrisseaton has joined #ruby
combusean has joined #ruby
Bumptious has quit [Remote host closed the connection]
<benzrf>
sup combusean
flagg0204 has joined #ruby
Sawbones has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
skulker has joined #ruby
thrillagorilla has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
moritzs has joined #ruby
marcdel has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
marcdel has joined #ruby
pu22l3r_ has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
jlee has joined #ruby
jlee is now known as jeffleeismyhero
afreidah1 has joined #ruby
marcdel has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
marcdel has quit [Read error: Connection reset by peer]
<jeffleeismyhero>
I'm trying to replace occurrences of "\N" in a file. I can't seem to find a way to do it that doesn't interpret it.
MattStratton has joined #ruby
<centrx>
Escape the backslash with another backslash
<jeffleeismyhero>
I've tried that but it still chokes
davedev2_ has joined #ruby
mckain has quit [Ping timeout: 264 seconds]
nso95 has joined #ruby
nso95 has quit [Changing host]
nso95 has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby
rm-rf-etc has joined #ruby
rezzack1 has quit [Quit: Leaving.]
gajon has joined #ruby
<ccham>
You could also '\N' instead of "\\N"
nanoyak has joined #ruby
rezzack has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rm-rf-etc>
I'm having trouble navigating the docs for our outdated rails version. Does anyone happen to know if rails 1.2.3 had a globally accessible config object which contains the hash from database.yml?
<jeffleeismyhero>
The string is not something I'm creating
<jeffleeismyhero>
It's being read in from a file
fabrice31 has joined #ruby
<ccham>
That's fine, the test strings are though.
<ccham>
When you make the string like "foo \N" it interprets the backslash as an escape, whereas from a file, it won't
davy__ has joined #ruby
<havenwood>
rm-rf-etc: try #rubyonrails
crystal77 has joined #ruby
<rm-rf-etc>
thnx
davy_ has quit [Ping timeout: 252 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
<jeffleeismyhero>
ccham: Thanks,
s3ri0us has joined #ruby
<jeffleeismyhero>
I'll try that out
marcdel has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 252 seconds]
paulfm has quit []
karmatr0n has joined #ruby
chipotle has quit [Quit: cya]
maximski has quit []
oetjenj has quit [Ping timeout: 240 seconds]
gajon has quit []
marcdel has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
cocotton has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
mckain has joined #ruby
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cocotton_ has joined #ruby
oetjenj has joined #ruby
jeffleeismyhero has quit [Quit: jeffleeismyhero]
karmatr0n has quit [Ping timeout: 252 seconds]
<shevy>
I hate that rubygems.org allows only one name for a gem
<shevy>
on github people can have all the same names
sambao21 has joined #ruby
<shevy>
so now I wanna write a class called Percentage
<shevy>
and there is a gem called percentage but it does not do what I want
<shevy>
so I can't name it percentage
karmatr0n has joined #ruby
Kricir has quit [Remote host closed the connection]
kevind has quit [Read error: Connection reset by peer]
Slavox is now known as Slavox|AFK
marcdel has joined #ruby
kevind has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
mjs2600 has quit [Remote host closed the connection]
pel_daniel1 has joined #ruby
dblessing has quit [Quit: dblessing]
rylev has joined #ruby
<atmosx>
shevy: name it percentage-shevy
<atmosx>
or ShevyPercentage
popl has quit [Quit: Touch the frog.]
pel_daniel has quit [Ping timeout: 240 seconds]
Solnse has joined #ruby
<arubincloud>
FractionOfOneHundred
<ccham>
percentRAGE
<shevy>
atmosx problem is I dont want to pick any other name, I think everyone else should use other names but me :>
mrjensen has quit [Remote host closed the connection]
dkamioka_ has joined #ruby
<atmosx>
hahaha
Es0teric has quit [Remote host closed the connection]
<arubincloud>
shevy: Issue a DMCA take-down request for the current gem.
<shevy>
impossible, I don't believe in the DMCA dictatorship
cocotton has joined #ruby
<centrx>
<shevy> atmosx problem is I dont want to pick any other name, I think everyone else should use other names but me :>
marcdel has joined #ruby
<arubincloud>
Do not like others cutting in on your action?
x77686d has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
<shevy>
centrx yeah I want that!
freerobby has quit [Quit: Leaving.]
blackavr has quit [Quit: blackavr]
Slavox|AFK is now known as Slavox
blackavr has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
<ccham>
heartbleed rubygems and hijack the owner's login
treehug88 has quit []
mehlah has quit [Quit: Leaving...]
cocotton_ has quit [Ping timeout: 240 seconds]
rtlong has quit [Ping timeout: 252 seconds]
freezey has joined #ruby
<shevy>
haha
apeiros has quit [Remote host closed the connection]
cocotton has quit [Ping timeout: 276 seconds]
apeiros has joined #ruby
marcdel has joined #ruby
treehug88 has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
ktun has quit [Ping timeout: 246 seconds]
mengu has quit [Remote host closed the connection]
<shevy>
atmosx I am playing around with gruff right now
<benzrf>
shevy you disgust me
<shevy>
benzrf but you like it
nanoyak has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
MattStratton has quit [Ping timeout: 250 seconds]
endash has quit [Quit: endash]
endash_ is now known as endash
aaronmcadam has quit [Quit: Leaving...]
yubrew_ has quit [Remote host closed the connection]
nanoyak has joined #ruby
<shevy>
benzrf now noone else may create a gem called quick
<combusean>
working with salt and capistrano and custom deployers today
sdouglas has joined #ruby
skulker has quit [Remote host closed the connection]
<lagweezle>
salt?
<jokke>
there's a gem that's really good for building json apis with sinatra. Whachamacallit?
<benzrf>
why salt?
<benzrf>
arent you a ruby dev?
<benzrf>
=p
<havenwood>
jokke: grape
<jokke>
havenwood: exactly!
<jokke>
thanks
<lagweezle>
What is 'salt'?
<havenwood>
lagweezle: think chef or puppet
<lagweezle>
ooooh
<lagweezle>
A lot of these names are damned near impossible to search for without more info.
apeiros has joined #ruby
<lagweezle>
'salt' and 'grape' are going to be painful web searches I'd think.
marcdel has quit [Ping timeout: 276 seconds]
<combusean>
salt stack usually
nanoyak_ has quit [Quit: Computer has gone to sleep.]
kobain has joined #ruby
kobain has quit [Excess Flood]
jlast has quit [Remote host closed the connection]
<combusean>
and after a while google is smart enough to recognize, esp with additional terms
skulker has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
<arubincloud>
Grape is the first result for "grape gem".
kobain has joined #ruby
marcdel has joined #ruby
<combusean>
benzrf, I'm a devops guy for a while
marcdel has quit [Read error: Connection reset by peer]
<benzrf>
kk
<combusean>
they keep threatening to put me on more actual ruby code (what i was hired for) but they need me in ops more
<benzrf>
ive heard ansible is good btw
<benzrf>
it works over ssh, it doesnt need a client on the controlled comps
<combusean>
yeah
sailias has quit [Quit: Leaving.]
<combusean>
me too
<combusean>
esp in mixed environments
<combusean>
we use salt here
<arubincloud>
ansible is under the GPLv3, if that matters to you.
danshultz has quit [Remote host closed the connection]
<combusean>
one of these days the deployer here is going to be opensourced
<combusean>
because it's a fledgling project that really deploys across multiple servers.
danshultz has joined #ruby
<arubincloud>
The GPL, especially version 3, is verboten by many employers.
nicoulaj has quit [Remote host closed the connection]
<benzrf>
>tfw no freedumbs
postmodern has joined #ruby
<greenride>
Is there an easy way to insert multiple key, value pairs into a Ruby hash?
<DouweM>
what?
* lagweezle
goes and hutns for those.
moritzs has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
<lagweezle>
I apparently haven't learned that 'stack' is a good word to add.
kirun has quit [Quit: Client exiting]
<greenride>
DouweM: Was that addressed to me?
<DouweM>
greenride: yeah. I'm not sure what you're asking
marcdel has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<shevy>
greenride I think you can not; you can do hash['key'] = 'value'
albedoa has joined #ruby
<shevy>
greenride best way is to write a method, then pass in any amount of values to that method to populate your hash in question
<DouweM>
or hash.merge(a: "a", b: "b"), but otherwise I'm not sure what you're looking for
dkamioka_ has quit [Ping timeout: 276 seconds]
<greenride>
shevy: That is cumbersome if one has to add 5 or 6 key value pairs, right?
glide has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
<shevy>
greenride yeah but you can always do .each_pair too on a collection
<greenride>
DouweM: You answered my question if that works.
<DouweM>
Hash#merge certainly exists :)
albedoa has quit [Client Quit]
camilasan has quit [Ping timeout: 246 seconds]
zchrykng-work has left #ruby ["Leaving"]
<greenride>
DouweM: Is there a version of Hash#merge that transforms the hash that calls it?
<DouweM>
#merge!
moted has quit [Quit: moted]
<DouweM>
where the bang is part of the method name
<greenride>
DouweM: That's what I wanted! Thanks.
derek_c has quit [Ping timeout: 250 seconds]
shashank_rs has quit [Ping timeout: 252 seconds]
marcdel has joined #ruby
earth has quit [Quit: earth]
dkamioka has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
zxq9 has quit [Quit: Konversation terminated!]
ktosiek has joined #ruby
zxq9 has joined #ruby
AlexRussia has quit [Remote host closed the connection]
Prometheian has joined #ruby
<Prometheian>
I'm trying to tell if there's an object on a page. It's a "select" object and I know its name attribute ends with the variable, input, that I'm giving it. I'm forced to use capybara/cucumber but I can't get it to work properly, but I'm not sure if it's my css selector that is the issue. I'm trying "select[name*=#{input}]" the #{} is so ruby parses it as a variable and not text
jottr has quit [Quit: WeeChat 0.4.2]
AlexRussia has joined #ruby
Bumptious has joined #ruby
andrewlio has quit [Read error: Connection reset by peer]
brisbin has quit [Ping timeout: 240 seconds]
Prometheian has quit [Remote host closed the connection]
havenwood has quit []
dkamioka has quit [Remote host closed the connection]
dtcrshr has quit [Remote host closed the connection]
marcdel has joined #ruby
axl_ has joined #ruby
<wallerdev>
might need quotes
<wallerdev>
depending what input is
Nukepuppy has quit [Ping timeout: 240 seconds]
davy has joined #ruby
<wallerdev>
try it by hand instead of with interpolation?
einarj has quit [Remote host closed the connection]
karmatr0_ has joined #ruby
yubrew has joined #ruby
momomomomo has quit [Quit: momomomomo]
karmatr0n has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
arubincloud has quit []
descala has quit [Ping timeout: 264 seconds]
dkamioka has quit [Remote host closed the connection]
djbender has quit [Quit: djbender]
afreidah1 has quit [Ping timeout: 252 seconds]
marcdel has quit [Ping timeout: 240 seconds]
descala has joined #ruby
davy__ has quit [Ping timeout: 276 seconds]
derek_c has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 252 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
djbender has joined #ruby
mary5030 has joined #ruby
inversesquarelaw has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
inverses1uarelaw has joined #ruby
marcdel has joined #ruby
gamera has joined #ruby
northfurr has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
klaut has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
northfurr has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 240 seconds]
derek_c has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
chipotle has joined #ruby
northfurr has quit [Client Quit]
jobewan has quit [Remote host closed the connection]
gamera has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
tacos1de_ has quit [Ping timeout: 272 seconds]
zcreative has joined #ruby
zcreative has quit [Client Quit]
Nukepuppy has joined #ruby
atno has joined #ruby
zcreative has joined #ruby
tacos1de has joined #ruby
danman_ has quit [Quit: danman_]
nanoyak has joined #ruby
sdouglas has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Read error: Connection reset by peer]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
doodlehaus has joined #ruby
cocotton has joined #ruby
alexju has quit [Remote host closed the connection]
phutchins has joined #ruby
djbender has quit [Quit: djbender]
nateberkopec has quit [Quit: Leaving...]
freezey has joined #ruby
momomomomo has joined #ruby
nanoyak has quit [Client Quit]
doodlehaus has quit [Ping timeout: 252 seconds]
jxf has joined #ruby
DrShoggoth has quit [Quit: Leaving]
rudisimo has quit []
brisbin has joined #ruby
sdouglas has joined #ruby
jjbohn has joined #ruby
phoo1234567 has quit [Quit: Leaving]
mrmargolis has quit [Remote host closed the connection]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy>
hmm in english
<shevy>
if you got 12 apples, and you grab 3 of them, and you calculate the percentages - how do you call 3, and 12, respectively in this context?
zigomir has quit [Remote host closed the connection]
<DouweM>
numerator/denominator ?
<shevy>
ah that's it
pwh has quit []
<DouweM>
as we're pretty much talking fractions here
zigomir has joined #ruby
chipotle has quit [Quit: cya]
<shevy>
did not know the upper part was called numerator, thanks DouweM
<wallerdev>
quotient and divisor
<wallerdev>
hah
<DouweM>
shevy: what gem are you building?
<Senjai>
shevy: Elementary school man :P
danman_ has joined #ruby
<shevy>
DouweM right now no gem, I am just tired of always doing stuff like: "We found 135 questions in our quiz, 24 are already answered. This is x %." where x is just 2400.0/135
claymore has quit [Quit: Leaving]
Zackio has quit [Ping timeout: 246 seconds]
Guest79765 is now known as JZTech101
JZTech101 has quit [Changing host]
JZTech101 has joined #ruby
<RubyPanther>
receiver/argument
treehug88 has quit []
<shevy>
the suggestions are getting progressively worse
<DouweM>
haha
hiall has joined #ruby
phoo1234567 has joined #ruby
<blackavr>
foo/bar, of course.
<blackavr>
(to continue the trend)
saarinen has quit [Quit: saarinen]
dseitz has quit [Ping timeout: 264 seconds]
SCommette has quit [Quit: SCommette]
<shevy>
percentage 75,100
<shevy>
Infinity
<shevy>
hmm I think my calculation is slightly wrong
sdouglas has quit [Remote host closed the connection]
fflush has quit [Quit: fflush]
<DouweM>
crucify_me: because you're puts'ing i ?
ckinni has joined #ruby
senayar_ has joined #ruby
ckinni has quit [Excess Flood]
ori has left #ruby ["Leaving..."]
ktun has joined #ruby
grzywacz has quit [Ping timeout: 252 seconds]
<crucify_me>
DouweM: but there is a condition unless i.zero?
<DouweM>
Proc#[] always makes me do a double take
<ccham>
crucify_me: do you mean puts i unless i.zero?
wallerdev has joined #ruby
<DouweM>
crucify_me: you're only puts'ing a newline when its non-zero, you're still always puts'ing the rest. ccham is probably right
nfk has quit [Quit: yawn]
<crucify_me>
I added puts i to the example to see if it would exclude it DouweM ccham
<crucify_me>
^line 14
teddyp1cker has quit [Ping timeout: 276 seconds]
fabrice31 has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
moted has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
<crucify_me>
oh DouweM so line 8 is just to add a newline?
zigomir has quit [Remote host closed the connection]
<DouweM>
crucify_me: `puts "x"` prints "x\n" to stdout, `puts` just prints "\n"
<DouweM>
so yeah
senayar has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
<crucify_me>
I was wondering why line 8 included a puts. thanks got it DouweM
spyderman4g63 has quit [Remote host closed the connection]
Avahey_ has joined #ruby
cover has quit [Remote host closed the connection]
yubrew has joined #ruby
toastynerd has quit [Remote host closed the connection]
danshultz has joined #ruby
axl_ has quit [Quit: axl_]
fabrice31 has quit [Ping timeout: 252 seconds]
keeguon has quit [Quit: keeguon]
sputnik13 has quit [Ping timeout: 240 seconds]
zigomir has joined #ruby
derek_c has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
chris_thomson has joined #ruby
sski has joined #ruby
arubin has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
ner0x has joined #ruby
zigomir has joined #ruby
evenix_ has joined #ruby
Kricir has joined #ruby
brisbin has quit [Ping timeout: 252 seconds]
dik_dak has quit [Quit: Leaving]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
phoo1234567 has quit [Quit: Leaving]
SilkFox has joined #ruby
pwh has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
zachallett has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
evenix_ has quit [Ping timeout: 276 seconds]
wallerdev has quit [Quit: wallerdev]
phoo1234567 has joined #ruby
sailias has joined #ruby
wallerdev has joined #ruby
hakunin has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
Kricir has quit [Ping timeout: 252 seconds]
RowdyChild|Away is now known as RowdyChildren
Marfi has quit [Quit: Wychodzi]
VTLob has quit [Quit: VTLob]
<combusean>
wtf does resque take environment variables and command line options?
werdnativ has quit [Quit: FAMOUS_LAST_WORDS is nil]
cpruitt has quit [Quit: cpruitt]
SCommette has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
zigomir_ has joined #ruby
ffranz has quit [Quit: Leaving]
rylev has quit [Remote host closed the connection]
toastynerd has joined #ruby
zigomir_ has quit [Read error: Connection reset by peer]
toastynerd has quit [Remote host closed the connection]
SCommette has quit [Client Quit]
<bricker>
what?
<kinginky>
anyone know of a decent ruby-base webmail app? found mailr but it's too old for me. im really surprised by the seeming lack of ruby-based webmail apps.
<DouweM>
kinginky: I looked for that a while back as well, wasn't able to find anything recent
mehlah has joined #ruby
<kinginky>
odd... might be time to start a project :P
<kinginky>
i found "Mailman" which looks pretty sweet
mr_red has quit [Ping timeout: 246 seconds]
freezey has quit [Ping timeout: 240 seconds]
rjk808 has joined #ruby
glide has quit [Ping timeout: 252 seconds]
crucify_me has quit [Remote host closed the connection]
<BraddPitt>
what would be an instance where someone is using both rails and sinatra?
crucify_me has joined #ruby
<shevy>
is that the gem that gets hooked into the "YourWife" gem