sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
tris has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
whippythellama has quit [Quit: WeeChat 1.4]
ta_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
DLSteve has joined #ruby
solocshaw has joined #ruby
al2o3-cr has joined #ruby
tris has joined #ruby
charliesome_ has joined #ruby
floatingpoint has joined #ruby
shanemcd has joined #ruby
sp4rrow has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
ESpiney has quit [Ping timeout: 276 seconds]
statelesscode has joined #ruby
moos3 has joined #ruby
Contigi has joined #ruby
Wicaeed has quit [Ping timeout: 244 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
Lucky_ABA has joined #ruby
sp4rrow has quit [Quit: Textual]
moos3 has quit [Ping timeout: 240 seconds]
gbgdev has quit [Remote host closed the connection]
baweaver has joined #ruby
tenderlove has quit [Ping timeout: 268 seconds]
coyo has quit [Ping timeout: 244 seconds]
tenderlove has joined #ruby
kies has joined #ruby
biberu has quit []
malconis has joined #ruby
eregi_ has quit [Ping timeout: 276 seconds]
ivanskie_work has joined #ruby
n0xff has joined #ruby
justbleed has joined #ruby
ivanskie_work_ has quit [Ping timeout: 244 seconds]
KensoDev has joined #ruby
yuung has quit [Read error: Connection reset by peer]
yuung has joined #ruby
gbgdev has joined #ruby
malconis has quit [Ping timeout: 276 seconds]
stannard has joined #ruby
moeabdol4 has joined #ruby
ariel_17 has joined #ruby
ariel_17 has quit [Changing host]
ariel_17 has joined #ruby
stunder has quit [Quit: WeeChat 1.4]
hxegon has quit [Quit: BRB]
mistermo_ has joined #ruby
aeontech has quit [Quit: aeontech]
moeabdol4 has quit [Ping timeout: 264 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
mistermo_ has quit [Ping timeout: 276 seconds]
x77686d has quit [Quit: x77686d]
ariel_17 has quit [Quit: WeeChat 1.1.1]
kent\n has quit [Ping timeout: 276 seconds]
montyboy has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
johnmilton has joined #ruby
justbleed is now known as buildTheWall
Tricon has quit [Quit: Leaving...]
CloCkWeRX has joined #ruby
marr has quit [Ping timeout: 248 seconds]
Tricon has joined #ruby
tvw has quit []
Spami has quit [Quit: This computer has gone to sleep]
Sid05 has quit []
Tricon has quit [Remote host closed the connection]
tricon_ has joined #ruby
Guest34101 has joined #ruby
johnmilton has quit [Ping timeout: 246 seconds]
principia has joined #ruby
workmad3 has joined #ruby
kent\n has joined #ruby
kent\n has joined #ruby
<joevandyk>
hey -- so i have text in the textile format. i want to convert it over to a tiny subset of html -- basically only converting `*bold*` to <strong>bold</strong> and `* list` into html list elements. anyone have any ideas on the best way to approach that?
<joevandyk>
i don't think i can use something like RedCloth -> html as that will make html soup. i want line breaks to stay as line breaks, not get converted to <p> tags.
yuung has quit [Ping timeout: 244 seconds]
yuung has joined #ruby
tricon_ has quit [Ping timeout: 248 seconds]
idefine has joined #ruby
TomyLobo has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
DLSteve has joined #ruby
idefine has quit [Remote host closed the connection]
Rodya_ has quit [Read error: Connection reset by peer]
moos3 has joined #ruby
Rodya_ has joined #ruby
marxarelli is now known as marxarelli|afk
LoneHerm_ has joined #ruby
stannard has quit [Remote host closed the connection]
jenrzzz has joined #ruby
kent\n has quit [Ping timeout: 244 seconds]
moos3 has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
AlphaAtom has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Ping timeout: 244 seconds]
PresidentTrump is now known as Canar
Sembei has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
droptone has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
<droptone>
What would be the ruby equivalent of this JS statement?
<droptone>
while ($scope.avatarPathId.length < 3) $scope.avatarPathId = "0" + $scope.avatarPathId;
Pisuke has quit [Ping timeout: 250 seconds]
<droptone>
Basically I need to conver the avatarPathId to a string, then prefix one zero if the avatarPathId is two chars, or two zeros if one char
stardiviner has joined #ruby
<droptone>
so if the avatarPathId is "9", I would prefix 00, so the string is 009, and if it is "54", I would prefix one zero, so it the result is 054.
arescorpio has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
lemur has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
ICantCook has quit [Ping timeout: 248 seconds]
malconis has quit [Ping timeout: 260 seconds]
B1n4r10 has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
mary5030_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
CloCkWeRX has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
thor_ has joined #ruby
aeontech has joined #ruby
hahuang61 has joined #ruby
ESpiney has joined #ruby
treaki_ has joined #ruby
thor_ has quit [Ping timeout: 264 seconds]
treaki__ has quit [Ping timeout: 240 seconds]
tonyynot has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has quit [Ping timeout: 260 seconds]
statelesscode has quit [Quit: statelesscode]
pawnbox has joined #ruby
djbkd has joined #ruby
casadei has quit [Remote host closed the connection]
Dormo has joined #ruby
<Dormo>
Hi. Is this the right channel to go to for some general help with Ruby? I'm not a Ruby novice, but I've run into a strange issue that I can't fully understand
aeontech has quit [Quit: aeontech]
_whitelogger_ has joined #ruby
paatalaBhairavi has joined #ruby
ixti has quit [Ping timeout: 246 seconds]
Sucks has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
_whitelogger has quit [Remote host closed the connection]
gremax has quit [Ping timeout: 264 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dopie has joined #ruby
gremax has joined #ruby
BtcBen has joined #ruby
Moosashi has joined #ruby
krzkrzkrz has joined #ruby
zast has quit [Quit: Leaving.]
gix has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
mary5030_ has quit [Ping timeout: 246 seconds]
buildTheWall has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
ICantCook has joined #ruby
gix has joined #ruby
moeabdol4 has joined #ruby
<mozzarella>
trying to run the specs, just a second
rkazak has joined #ruby
baweaver has joined #ruby
dc1 has joined #ruby
<Dormo>
mozzarella: thank you
saneax_AFK is now known as saneax
moeabdol4 has quit [Ping timeout: 244 seconds]
dubek has quit [Ping timeout: 268 seconds]
aeontech has joined #ruby
dcunit3d has quit [Ping timeout: 264 seconds]
Xiti has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
Xiti has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
LoneHerm_ has joined #ruby
p1k has quit [Ping timeout: 276 seconds]
Synthead has quit [Disconnected by services]
Synthead has joined #ruby
Synthead has quit [Disconnected by services]
Synthbread has joined #ruby
j0bk has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ixti has joined #ruby
darkxploit has quit [Ping timeout: 260 seconds]
BadQuanta has joined #ruby
Lucky_ABA has joined #ruby
rubie has joined #ruby
Lucky_ABA has quit [Client Quit]
sbhatore has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
<mozzarella>
Dormo: I get "437 examples, 0 failures, 1 pending", is it normal?
Moosashi has quit [Quit: Moosashi]
evenix has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
anisha has joined #ruby
filterbubble has quit [Quit: leaving]
malcolmva has quit [Ping timeout: 276 seconds]
skade has joined #ruby
futilegames has joined #ruby
configged- has joined #ruby
configged has joined #ruby
rdark has joined #ruby
roshanavand has quit [Ping timeout: 248 seconds]
sandstrom has joined #ruby
y2mq37 has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
UtkarshRay has joined #ruby
moeabdol4 has joined #ruby
ropeney has joined #ruby
malcolmva has joined #ruby
eregi has joined #ruby
Noxilex has joined #ruby
roshanavand has joined #ruby
moeabdol4 has quit [Ping timeout: 260 seconds]
codecop_ has joined #ruby
mikar has quit [Quit: Connection closed for inactivity]
aufi has joined #ruby
roshanavand has quit [Client Quit]
ferr has joined #ruby
LoneHermit has joined #ruby
roshanavand has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eregi has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
eurialo has quit [Ping timeout: 244 seconds]
poerror has joined #ruby
shtirlic has joined #ruby
rmulligan has quit [Ping timeout: 240 seconds]
LoneHermit has quit [Ping timeout: 260 seconds]
devbug has quit [Ping timeout: 268 seconds]
blackgoat has joined #ruby
ruby-lang388 has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
mondok has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
symm- has quit [Ping timeout: 268 seconds]
blackgoat has quit [Quit: WeeChat 1.4]
copperb0lt has joined #ruby
ruby-lang388 has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
eurialo has joined #ruby
tungd has joined #ruby
mark2 has joined #ruby
Vile` has joined #ruby
olli has joined #ruby
ziprar has quit [Quit: Leaving]
Don_John has quit [Ping timeout: 244 seconds]
firstdayonthejob has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
terlar has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
brent_ has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
aupadhye has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
jaruga_ has joined #ruby
futilegames has quit [Quit: futilegames]
shredding has joined #ruby
shadowswalker has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
ohaibbq has quit [Quit: Leaving...]
fexilal has joined #ruby
rmulligan has joined #ruby
sandelius has joined #ruby
faelkle has quit [Quit: leaving]
skade has quit [Quit: Computer has gone to sleep.]
joonty has joined #ruby
<sandelius>
hey all. I'm fiddling with # frozen_string_literal: true and it raises an error as it should when I can the file with the ruby interpreter but does not show any error when running via minitest?
<sandelius>
The method that should raise error is run
atmosx has joined #ruby
uglybandersnatch has joined #ruby
sandelius has quit [Client Quit]
astrobun_ has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
igam has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
skade has joined #ruby
rmulligan has quit [Ping timeout: 268 seconds]
p1k has quit [Quit: WeeChat 1.4]
Eising has left #ruby [#ruby]
configged- has quit [Ping timeout: 268 seconds]
configged has quit [Ping timeout: 268 seconds]
gbgdev has joined #ruby
drptbl has joined #ruby
aufi has joined #ruby
mdw has joined #ruby
moeabdol4 has joined #ruby
gbgdev has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
sandstrom has joined #ruby
<nocontrol>
I am trying to gem install rails in openbsd 5.8 but it fails with libiconv is missing. iconv is ok and I have installed rbenv to manage the ruby versions. any ideas ?
maner has joined #ruby
Vile` has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
moeabdol4 has quit [Ping timeout: 268 seconds]
leventix has joined #ruby
leventix has left #ruby [#ruby]
<canton7>
nocontrol, you probably need whatever headers/dev package your distro provides?
Guest74340 is now known as BLuEGoD
<nocontrol>
canton7: openBSD 5.8 actually, no idea
<nocontrol>
canton7: tried to install libiconv, ruby-iconv and gem install rails --with-iconv-lib but it fails with same message
RegulationD has quit [Ping timeout: 246 seconds]
<canton7>
I'd call openbsd a bsd distro :P what message does it fail with?
last_staff has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
PedramT has joined #ruby
<jhass>
try recompiling your ruby since you installed libiconv
Ginglink has joined #ruby
bronson has quit [Remote host closed the connection]
<nocontrol>
jhass: I am using rbenv
<nocontrol>
jhass: just reinstall ?
<jhass>
I guess? I hate rbenv and avoid it
jenrzzz has quit [Ping timeout: 246 seconds]
<nocontrol>
jhass: rvm fails hard in openBSD
<nocontrol>
I am working on a hardware project actually and I have to use it
<nocontrol>
and I can see it seems really awesome
<nocontrol>
so it's a challenge to make ruby and then rails work
<nocontrol>
maybe sinatra
ramfjord has quit [Ping timeout: 276 seconds]
<jhass>
most people recommend you chruby + ruby-install these days
ocbtec has joined #ruby
PedramT has quit [Remote host closed the connection]
<hanmac>
shevy: i dont know BSD but i thought it has a different package for the dev files
<nocontrol>
shevy: clone and make ?
<shevy>
hanmac I only remember that you had to... cd to /usr/src or some subdirectory there or something? and then "make" possibly after adapting
<shevy>
nocontrol dunno, not sure if libiconv works on the BSDs
<shevy>
did not glibc have its own iconv implementation?
LoneHerm_ has quit [Ping timeout: 252 seconds]
sbhatore has quit [Read error: Connection reset by peer]
Couch has joined #ruby
epochwolf has quit [Ping timeout: 250 seconds]
PedramT has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
sbhatore has joined #ruby
epochwolf has joined #ruby
<shadowswalker>
hey guys, I am having problem on metasploit with ruby, It says "fatal: Not a git repository (or any of the parent directories): .git
<shadowswalker>
Could not find rake-10.4.2 in any of the sources
<shadowswalker>
Run `bundle install` to install missing gems.
sbhatore has quit [Read error: Connection reset by peer]
binaryplease1 has joined #ruby
<jhass>
?metasploit
* jhass
slaps ruby[bot]
jenrzzz has joined #ruby
<jhass>
shadowswalker: please join #metasploit for help with it
sbhatore has joined #ruby
<shadowswalker>
jhass: thanks.
n008f4g_ has joined #ruby
baweaver has joined #ruby
<nocontrol>
shevy: I did a ./configure - make - make install and I am recompiling ruby to see If something changes
Spami has joined #ruby
sepp2k has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
eregi has joined #ruby
binaryplease1 has quit [Quit: WeeChat 1.4]
binaryplease has joined #ruby
FooMunki has joined #ruby
f4cl3y has joined #ruby
PedramT has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 250 seconds]
rmulligan has joined #ruby
eregi has quit [Ping timeout: 244 seconds]
GinoManWorks has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
bluOxigen has joined #ruby
bluOxigen_ has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
shadowswalker has quit [Remote host closed the connection]
ICantCook has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
rmulligan has quit [Ping timeout: 250 seconds]
mikar has joined #ruby
TomyLobo has joined #ruby
sbhatore has quit [Ping timeout: 240 seconds]
ICantCook has joined #ruby
Abrin_AWAY has quit [Ping timeout: 244 seconds]
mondok has joined #ruby
marr has joined #ruby
quazimodo has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
Xeago has joined #ruby
malcolmva has quit [Ping timeout: 246 seconds]
duncannz has quit [Remote host closed the connection]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
Xeago has quit [Remote host closed the connection]
Koshian_ is now known as Koshian
malcolmva has joined #ruby
workmad3 has joined #ruby
PedramT has quit [Ping timeout: 276 seconds]
GBrawl has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
charliesome has joined #ruby
moeabdol4 has joined #ruby
moonman has joined #ruby
moonman was kicked from #ruby by ChanServ [User is banned from this channel]
trosborn has joined #ruby
moeabdol4 has quit [Ping timeout: 244 seconds]
moonman has joined #ruby
moonman was kicked from #ruby by ChanServ [User is banned from this channel]
<hanmac>
jhass: do you play with the banning tool?
<jhass>
no
infra-re_ has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
<hanmac>
because i got confusing messages with +b -b and this moonman, confusing in that way that they change each time
johnmilton has joined #ruby
mfaeh has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
infra-red has quit [Ping timeout: 260 seconds]
gbgdev has joined #ruby
dgncn has quit [Excess Flood]
dgncn has joined #ruby
drptbl has joined #ruby
johnmilton has quit [Ping timeout: 268 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
<shevy>
the end of all moonmen
terlar has joined #ruby
<flughafen>
yes!
tungd has quit [Quit: Dreaming...]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
platzhirsch has joined #ruby
siaw has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
isene has quit [Ping timeout: 246 seconds]
johnmilton has joined #ruby
arlek has joined #ruby
pawnbox has quit [Remote host closed the connection]
rodfersou has joined #ruby
pawnbox has joined #ruby
moeabdol4 has joined #ruby
johnmilton has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
tungd has joined #ruby
pawnbox has quit [Remote host closed the connection]
isene has joined #ruby
pawnbox has joined #ruby
rmulligan has joined #ruby
Noxilex has quit [Ping timeout: 260 seconds]
czerasz has joined #ruby
<nocontrol>
jhass: are you feeling comfortable with chruby ? Instead of rvm/rbenv ?
pawnbox has quit [Remote host closed the connection]
<jhass>
I use chruby for quite some time now, yes
pawnbox has joined #ruby
<jhass>
don't use ruby-install though, rather packages for my distro
rmulligan has quit [Ping timeout: 246 seconds]
aeontech has quit [Quit: aeontech]
Macaveli_ has quit [Ping timeout: 240 seconds]
trosborn has quit [Quit: trosborn]
<nocontrol>
jhass: are you happy with it? I mean does it completely replace rvm/rbenv?
aeontech has joined #ruby
<jhass>
for my usecases, yes
<yorickpeterse>
I'll start a flamewar but I don't get why people use rbenv and not chruby
<yorickpeterse>
why bother with shims? It just feels like a really weird approach
n008f4g_ has quit [Ping timeout: 260 seconds]
<yorickpeterse>
"I can either use shims, rehash them, etc, or just use chruby and be done with it"
<yorickpeterse>
¯\_(ツ)_/¯
<jhass>
my biggest grime is actually no fuzzy version matching
<adaedra>
For the time I used rbenv, it was because it was lighter than rvm, and that I didn't know about chruby
GBrawl has quit [Quit: (null)]
<jhass>
I have a lot of projects where I just want to lock to a minor version of ruby, not an exact patchlevel
<yorickpeterse>
well yeah, not knowing about chruby is a valid reason
<nocontrol>
jhass: nice information, I'll check it out - I am too tired with rbenv/rvm
trosborn has joined #ruby
trosborn has quit [Client Quit]
last_staff1 has joined #ruby
mondok has quit [Ping timeout: 268 seconds]
last_staff has quit [Ping timeout: 244 seconds]
last_staff1 is now known as last_staff
<duderonomy>
my mind needs an expansion. Hopefully someone can help. :) Presuming this is enough info... If I have this line, how can I use the value of x, in the next line of code?
pawnbox has quit [Remote host closed the connection]
ldnunes has joined #ruby
but3k4 has joined #ruby
pawnbox has joined #ruby
eregi has joined #ruby
PedramT has joined #ruby
<shevy>
flughafen better bribe for the Weltherrschaft!
configged has joined #ruby
<flughafen>
yeah!
configged- has joined #ruby
<danjack>
hey guys, is there a possible way to declare programatically variables in a block? For example i want to call an argumentless function (def test) that it will have the variable 'bla' set to 'hello world'
ropeney has joined #ruby
eregi has quit [Ping timeout: 248 seconds]
rmulligan has joined #ruby
<jhass>
doesn't sound like it should be argumentless in the first place
<jhass>
?xy
<jhass>
right, sigh
<danjack>
i guess i have to use bindings
baweaver has joined #ruby
<jhass>
to me sounds like you're on an evil path
codecop_ has quit [Remote host closed the connection]
configged- has quit [Ping timeout: 268 seconds]
configged has quit [Ping timeout: 268 seconds]
<danjack>
you always see only the evil in me
arlek has joined #ruby
<shevy>
haha
johnmilton has joined #ruby
<jhass>
maybe it's because it's all you show from yourself
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vikas027 has joined #ruby
chocoelho has joined #ruby
<danjack>
of course, im a monster
pawnbox has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 260 seconds]
<danjack>
of course, im a monster
<danjack>
o wrong window
vikas027 has left #ruby [#ruby]
<adaedra>
monstrous.
<shevy>
danjack as far as I know there are only two ways to declare local variables inside of a block; which is through || or by defining it inside the block
k13nox has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
PedramT has quit [Ping timeout: 250 seconds]
toretore has quit [Ping timeout: 250 seconds]
trosborn has quit [Quit: trosborn]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
k13nox has quit [Remote host closed the connection]
cwenner has quit [Read error: No route to host]
MyMind has quit [Ping timeout: 276 seconds]
sandstrom has joined #ruby
d0nn1e has quit [Ping timeout: 244 seconds]
arlek has quit [Ping timeout: 248 seconds]
infra-red has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.3 Beta Build (2016/03/09) 32 Bit]
d0nn1e has joined #ruby
Tempesta has joined #ruby
GBrawl has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
dc1 has quit [Ping timeout: 260 seconds]
mondok has quit [Quit: Leaving]
Snowy has quit [Remote host closed the connection]
infra-re_ has quit [Ping timeout: 260 seconds]
Vile` has joined #ruby
pwnd_nsfw` has joined #ruby
htmldrum has quit [Ping timeout: 268 seconds]
platzhirsch has quit [Quit: Leaving.]
terminal_ has joined #ruby
bry4n has joined #ruby
duckpuppy has joined #ruby
jottr_ has joined #ruby
siaw_ has joined #ruby
siaw_ has left #ruby [#ruby]
A124 has quit [Disconnected by services]
thomasfedb_ has joined #ruby
A124 has joined #ruby
deepak_ has joined #ruby
jottr has quit [Disconnected by services]
jottr_ is now known as jottr
daemonwrangler_ has joined #ruby
hahuang65 has joined #ruby
Zarthus_ has joined #ruby
stardiviner has quit [Ping timeout: 260 seconds]
dede_ has joined #ruby
jimeh_ has joined #ruby
<duderonomy>
When I call Enumerable#find on my sequence (e.g. a string) will it return the index of the beginning of my match (regex). Do I need to make this index available myself (somehow) so that I may use it in the next line of my code?
<c_nick>
432.412e-2 i have this scientific number which i want to set width to 7 excluding the '.' how should i go about it
nocontrol has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<c_nick>
eg: 432.412e-2 should become 0.043241
<c_nick>
sorry thats 4.324120
<jhass>
looks like you're confused about value and representation
<nohitall>
jhass: so I ran "rvm all do /etc/profile.d/rvm.sh" was that correct?
<jhass>
nohitall: no
<jhass>
c_nick: so do you actually want to print (that is to convert it into a string) like that?
swills has joined #ruby
<jhass>
nohitall: /etc/profile.d/rvm.sh is what loads RVM on all new login shells
<nohitall>
ok so what am I supposed to do with that
<c_nick>
jhass, trancate the number
<jhass>
nohitall: rvm do is for executing commands inside a specific environment
<jhass>
c_nick: so #round?
<nohitall>
well I still get /usr/bin/env: ruby: No such file or directory
<c_nick>
hmm. ok
malconis has joined #ruby
<nohitall>
im lost, not sure what to do here, ruby is confusing
<jhass>
don't confuse Ruby with RVM
<nohitall>
well I just need this .rb script to execute
<jhass>
RVM is sometimes confusing, especially system wide installations
<nohitall>
thats all I want
<ljarvis>
lol sometimes
<ljarvis>
heuheuheu
Kruppe has joined #ruby
<nohitall>
so I figured installing ruby would solve the issue but nope
<jhass>
whether RVM is the best way to install Ruby is highly debatable ;)
bry4n has quit [Ping timeout: 268 seconds]
<jhass>
who told you to do a system wide RVM install?
<nohitall>
i just google for a tutorial "install ruby debian wheezy"
<nohitall>
and ran that curl
ariel_17 has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
kies has quit [Ping timeout: 260 seconds]
jaroslav has joined #ruby
cpup has joined #ruby
floatingpoint has joined #ruby
<jhass>
well...
malconis has quit [Remote host closed the connection]
<jhass>
so
malconis has joined #ruby
<jhass>
do you have the rvm command as the user you want to script as?
<jhass>
if not, how do you switch to it?
mostlybadfly has quit [Quit: Connection closed for inactivity]
<jaroslav>
Hi @all. I've got a problem with OpenSSL::PKCS7. Before submitting bug, I'd like to make sure it's not just me not knowing how to use that class properly.
<nohitall>
nvm I just put /usr/local/rvm/rubies/ruby-2.2.1/bin/ruby in the script lol
<jaroslav>
disclaimer: this code used to work for me with older openssl library versions.
binaryplease has quit [Ping timeout: 264 seconds]
al2o3-cr has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby
al2o3-cr has joined #ruby
sankaber has joined #ruby
<jhass>
jaroslav: then it's probably indeed a bug
B1n4r10 has joined #ruby
<jaroslav>
jhass: yeah, I think there are two options: 1/ OpenSSL::PKCS7 on Ruby side is not in sync with openssl (and requires update), 2/ There is some new way of using it and I just can't find it ;)
<jaroslav>
jhass: wanted to make sure it's not 2/, before creating bug report :)
<nohitall>
I just replaced /usr/bin/env ruby with #!/usr/local/rvm/rubies/ruby-2.2.1/bin/ruby
<nohitall>
i only needed it for that 1 script, so it works for me
<nohitall>
postfix pipes mail tothis script
stannard has joined #ruby
Guest89 has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<darix>
nohitall: did you read the script that you downloaded before piping it into your (root) shell?
faelkle has joined #ruby
faelkle has quit [Client Quit]
Alayde has joined #ruby
sankaber has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<nohitall>
darix: na I forgot to mistrust ruby
sankaber has joined #ruby
torarne has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<darix>
you should mistrust the admin that just blindly does curl ...| sh
<darix>
ymmv
<nohitall>
its just a test system
justbleed is now known as TomPeed
<nohitall>
but I get your point
<darix>
apt-get install ruby
<darix>
would have probably done it
Guest89 has quit [Client Quit]
Vile` has joined #ruby
<torarne>
Q: I'm using method(__method__).parameters.each do |type, k| to instance_variable_set() named initialize() parameters, and it works fine in a regular class. But when I move the initialize code to a module, and call super from the class, the parameters are passed, but instance_variable_set doesn't seem to have any effect. Is there any way for the module's initialize() to affect instance variables of the class it's been included in? Thanks!
Guest89 has joined #ruby
<darix>
o.O
<torarne>
I'm seeing the same thing with send
<apeiros>
?code torarne
<ruby[bot]>
torarne: We can't help you without your code, please post it to https://gist.github.com
nohitall has left #ruby [#ruby]
<apeiros>
it doesn't matter from where a method comes. self is the object the method was called on.
Guest89 has quit [Max SendQ exceeded]
<apeiros>
so something is of, hence -> code
<apeiros>
*off even
LoneHerm_ has quit [Ping timeout: 276 seconds]
igam has joined #ruby
Guest89 has joined #ruby
c_nick has quit [Ping timeout: 260 seconds]
<darix>
in worst case you set instance variables on the module
<torarne>
apeiros: ah, i think i undeerstand. so next unless type == :key or type == :keyreq should be enough i presume?
codecop has quit [Remote host closed the connection]
<apeiros>
I think so.
<torarne>
thanks!
<apeiros>
you can actually simplify the code a lot: `def initialize(*, **kwargs); kwargs.each do |key, value| instance_variable_set(:"@#{key}", value) end; end`
eregi has joined #ruby
<apeiros>
no need to go via Method#parameters
paul98_ is now known as paul98
<torarne>
cool
<apeiros>
also don't forget to do `super if defined? super`
mary5030 has quit [Remote host closed the connection]
<torarne>
in the module?
<apeiros>
yes
<torarne>
nice, ty
mary5030 has joined #ruby
Mojo_Nixon has joined #ruby
<apeiros>
otherwise you won't be able to use it in an inherited class
Mojo_Nixon has quit [Client Quit]
<torarne>
right
<apeiros>
though
<apeiros>
might not be the right thing.
znz_jp has joined #ruby
nerium has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
openstruct has joined #ruby
<torarne>
the super call gives initialize': wrong number of arguments (2 for 0) (ArgumentError)
<torarne>
i guess i cant know how many arguments and which ones super would require
<torarne>
from the module
baweaver has joined #ruby
eregi has quit [Ping timeout: 268 seconds]
rmulligan has joined #ruby
mary5030 has quit [Ping timeout: 268 seconds]
shanemcd has quit [Remote host closed the connection]
mallu has joined #ruby
roshanavand has joined #ruby
<ruby-lang119>
is there an option to filter the list of countries when using country_select.....its not the priority list... need to display selected country in the dropdown
rmulligan has quit [Ping timeout: 240 seconds]
c_nick has joined #ruby
bry4n has joined #ruby
sarbs has quit [Max SendQ exceeded]
evidex has joined #ruby
sarbs has joined #ruby
yardenbar has quit [Ping timeout: 248 seconds]
<jhass>
#rubyonrails probably has a higher chance of people with experience with that gem
<c_nick>
jhass, round actually truncates till a point .. eg:- 432.412e-2 becomes 4.32412 but i want to set width to 7 so it should give me 4.324120
shanemcd has joined #ruby
shanemcd has quit [Remote host closed the connection]
sandstrom has quit [Read error: Connection reset by peer]
sandstro_ has joined #ruby
<c_nick>
but 432.412e-2.round(7) gives 4.32412 only
sandstrom has joined #ruby
shinnya has joined #ruby
<jhass>
c_nick: you're confusing value with representation
mwlang has joined #ruby
<jhass>
0.25 == 0.250 # => true
kaleido has quit [Remote host closed the connection]
<c_nick>
i need representation, significant digits should be 7 so it should trancate and represent in 7 digits (excluding the '.')
<jhass>
c_nick: maybe answer my still open question
pawnbox has quit [Remote host closed the connection]
<c_nick>
0.25 == 0.250 thats fine the value is correct but my code needs to represent in 4 significant bit so the o/p should be 0.250
pawnbox has joined #ruby
<jhass>
represent where? to what
<jhass>
?
dubek has quit [Ping timeout: 248 seconds]
<jhass>
o/p?
mgorbach has joined #ruby
<c_nick>
o/p - output of my function, i used to achieve that with %0.nof%number(float) but for e-2 i am stuck requirements are my function should truncate big numbers and represent them in the significant digits passed to it
<jhass>
that's so incredibly vague
<jhass>
I can't help you if you stay that vague
ferr has quit [Quit: WeeChat 1.4]
prefix has joined #ruby
TomPeed has quit [Disconnected by services]
<apeiros>
c_nick: as jhass already said - 0.25 is the same as 0.250, so if you need *the value* (i.e. you want to calculate), then there is no 0.250, only 0.25. If you want to display the value, use something like printf/sprintf
justbleed has joined #ruby
<f4cl3y>
Hey guys, what is the difference between hash['key'] and has[:key]?
justbleed is now known as tommy_p
<ljarvis>
f4cl3y: 'key' is a string, :key is a symbol
<apeiros>
but then you have a string - which is representation, and can't be used for further calculation
shanemcd has joined #ruby
pawnbox has quit [Remote host closed the connection]
tommy_p is now known as `tim`
pawnbox has joined #ruby
jas02 has quit [Quit: jas02]
f4cl3y has quit [Remote host closed the connection]
f4cl3y has joined #ruby
n008f4g_ has joined #ruby
shanemcd has quit [Remote host closed the connection]
floatingpoint has quit [Ping timeout: 276 seconds]
<jhass>
f4cl3y: 'key' is a string, :key is a symbol, they're different objects, so they are different keys
malconis_ has joined #ruby
<f4cl3y>
jhass: is one preferable than the other?
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
<apeiros>
f4cl3y: if one was universally better, don't you think only that one would exist? :)
jyaworski_ has joined #ruby
<apeiros>
symbols are good identifiers (fast comparison, small to store), but up until ruby 2.2 not suitable for any user input
malconis has quit [Ping timeout: 248 seconds]
<f4cl3y>
apeiros: haha, true!
<apeiros>
when in doubt, use strings
casadei has quit [Remote host closed the connection]
<f4cl3y>
Thanks guys, sorry for such silly question, just started learning this magnificent language!
GBrawl has joined #ruby
gnagh has joined #ruby
bronson has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
jyaworski_ is now known as jyaworski
<apeiros>
for anything which is used to identify something internal about ruby (method name, ivar name etc.), use symbols - as that's how they're natively represented anyway.
aufi has quit [Ping timeout: 260 seconds]
s00pcan_ has joined #ruby
_tc has joined #ruby
kaleido has joined #ruby
<_tc>
Hello!
<f4cl3y>
apeiros: noted, thanks for the tip!
infra-red has quit [Remote host closed the connection]
fostertheweb has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
fourq_ has left #ruby ["twip"]
Alayde has joined #ruby
<c_nick>
yes strings are fine
solars has quit [Ping timeout: 244 seconds]
anisha has quit [Quit: Leaving]
* apeiros
is amused how people are confused by numbers lacking trailing zeros but not about lacking prefixed zeros :)
aupadhye has joined #ruby
<c_nick>
So i need to now know how to represent a number like 478.2535e-2 as 4.7825350
<apeiros>
"I need 0.2500", but that it isn't "00000000.25" is fine
<apeiros>
c_nick: as said, use strings. sprintf can do that for you.
neohunter has joined #ruby
<c_nick>
i know it sounds silly but its a requirement :(
<morfin>
ah nvm, it was just irb changing behaviour
<morfin>
regular ruby gave different results for nil.hash
RegulationD has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
shanemcd has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 276 seconds]
axl__ has joined #ruby
rubie has quit [Remote host closed the connection]
<morfin>
apeiros, seems like seed generated only once when you start process, then it does not change
<morfin>
so always in one process nil.hash == nil.hash otherwise it would not be possible to have properly working "hashmap"
RegulationD has quit [Ping timeout: 244 seconds]
Uranio has joined #ruby
roshanavand has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcdel has joined #ruby
Xeago has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
<apeiros>
morfin: yes, the seeding happens when the process starts.
fostertheweb has joined #ruby
shanemcd has joined #ruby
<morfin>
but forked processes "inherit" same seed?
roshanavand has quit [Quit: This computer has gone to sleep]
k13nox has quit [Quit: Leaving...]
roshanavand has joined #ruby
marcdel has quit [Ping timeout: 264 seconds]
shanemcd has quit [Remote host closed the connection]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
probably. otherwise existing hashes would break.
Xeago has quit [Remote host closed the connection]
wilbert has joined #ruby
GBrawl has quit [Quit: (null)]
marcdel has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
statelesscode has quit [Quit: statelesscode]
rubie has joined #ruby
mistermocha has joined #ruby
[Butch] has joined #ruby
volty has joined #ruby
jmignault has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
unl0ckd has quit [Quit: Bye!]
Uranio has quit [Quit: Leaving]
Couch has quit [Ping timeout: 244 seconds]
<c_nick>
apeiros, how can i represent the e^-x numbers in a way by which i can set the width on it as required. eg:- 493.24210e^-2 and width set is 7 would give 4.932242 instead of 0.9324210
stunder has joined #ruby
nopolitica has joined #ruby
aegis3121 has quit [Ping timeout: 248 seconds]
bootstrappm has joined #ruby
nopolitica has quit [Client Quit]
<bootstrappm>
morning all! been a while since I've been in #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fostertheweb has joined #ruby
DmitryBochkarev has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 244 seconds]
DmitryBochkarev has quit [Client Quit]
rmulligan has quit [Ping timeout: 240 seconds]
eregi has quit [Ping timeout: 252 seconds]
wilbert has joined #ruby
aiRness has joined #ruby
roshanavand has joined #ruby
<aiRness>
Hello. Is it possible to create an admin panel from the command line and how I can access it from the browser afterwards. Demise is installed and I've used the console but I can't use my admin user.
DmitryBochkarev has joined #ruby
sandstrom has joined #ruby
eregi has joined #ruby
fostertheweb has quit [Client Quit]
<adaedra>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
runswithd6s has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
aiRness has left #ruby [#ruby]
bollullera has joined #ruby
pawnbox has quit [Remote host closed the connection]
dhollinger has joined #ruby
baweaver has joined #ruby
pawnbox has joined #ruby
axl__ has quit [Quit: axl__]
<CustosLimen>
hi
anisha has joined #ruby
supplication has quit [Ping timeout: 252 seconds]
saneax is now known as saneax_AFK
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
baweaver has quit [Ping timeout: 248 seconds]
jonee has quit [Ping timeout: 276 seconds]
mistermocha has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
RegulationD has joined #ruby
anisha has joined #ruby
anisha has quit [Client Quit]
htmldrum has joined #ruby
skade has joined #ruby
fostertheweb has joined #ruby
mistermocha has joined #ruby
nando293921 has joined #ruby
SCHAAP137 has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
B1n4r10 has joined #ruby
anisha has joined #ruby
platzhirsch has quit [Ping timeout: 244 seconds]
mistermocha has quit [Ping timeout: 246 seconds]
nikhil_360 has joined #ruby
infra-red has joined #ruby
nikhil_360 has quit [Client Quit]
drptbl has joined #ruby
mistermocha has joined #ruby
platzhirsch has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
shanemcd has joined #ruby
infra-re_ has quit [Ping timeout: 248 seconds]
symm- has joined #ruby
Snowy has quit [Remote host closed the connection]
mary5030_ has joined #ruby
baweaver has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
shanemcd has quit [Ping timeout: 252 seconds]
jaruga_ has quit [Quit: jaruga_]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Ping timeout: 244 seconds]
tobiasvl has quit [Ping timeout: 246 seconds]
tvl has joined #ruby
tvl is now known as tobiasvl
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
al2o3-cr has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Zarthus_ is now known as Zarthus
fourq has joined #ruby
dopie has joined #ruby
B1n4r10 has quit [Quit: Lost terminal]
michaeldeol has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dede has quit [Quit: Connection closed for inactivity]
holyGlitch has joined #ruby
michaeldeol has quit [Client Quit]
Coldblackice has joined #ruby
infra-re_ has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sneakerhax has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
marcdel has joined #ruby
Don_John has joined #ruby
DexterLB has quit [Quit: So long and thanks for all the fish]
harryh has joined #ruby
infra-red has quit [Ping timeout: 252 seconds]
DexterLB has joined #ruby
infra-red has joined #ruby
ivanskie_work__ has joined #ruby
jgpawletko has joined #ruby
last_staff has joined #ruby
ivanskie_work has quit [Ping timeout: 240 seconds]
rodfersou|lunch is now known as rodfersou
igam has quit [Ping timeout: 240 seconds]
DonOtreply has joined #ruby
rcvalle has joined #ruby
infra-r__ has joined #ruby
ivanskie_work has joined #ruby
DonOtreply is now known as moosetans
marcdel has quit [Ping timeout: 248 seconds]
infra-re_ has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
infra-re_ has joined #ruby
mark2 has quit [Remote host closed the connection]
infra-red has quit [Read error: Connection reset by peer]
sczizzo has joined #ruby
ivanskie_work__ has quit [Ping timeout: 244 seconds]
jackjackdripper has joined #ruby
bronson has joined #ruby
barajasfab has quit [Ping timeout: 268 seconds]
infra-red has joined #ruby
rmulligan has joined #ruby
infra-r__ has quit [Ping timeout: 264 seconds]
jackjackdripper has quit [Client Quit]
nanoz has joined #ruby
jackjackdripper has joined #ruby
creat has joined #ruby
sczizzo has quit [Remote host closed the connection]
infra-re_ has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 252 seconds]
Don_John has quit [Read error: Connection reset by peer]
last_staff1 has joined #ruby
Xeago_ has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
jyaworski_ has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
nocontrol has joined #ruby
rmulligan has quit [Ping timeout: 248 seconds]
czerasz has quit [Ping timeout: 248 seconds]
nocontrol has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 246 seconds]
jyaworski_ is now known as jyaworski
nocontrol has joined #ruby
fostertheweb has joined #ruby
gbgdev has quit [Remote host closed the connection]
last_staff has quit [Ping timeout: 268 seconds]
last_staff1 is now known as last_staff
aeontech has joined #ruby
fostertheweb has quit [Client Quit]
barajasfab has joined #ruby
marcdel has joined #ruby
kies has quit [Ping timeout: 268 seconds]
ivanskie_work_ has joined #ruby
skweek has joined #ruby
skade has joined #ruby
ivanskie_work has quit [Ping timeout: 252 seconds]
Xeago_ has quit [Remote host closed the connection]
shadeslayer has quit [Ping timeout: 252 seconds]
darkf has joined #ruby
fostertheweb has joined #ruby
shadeslayer has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vishwa has quit [Ping timeout: 264 seconds]
anjen has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
gbgdev has joined #ruby
ta_ has joined #ruby
anjen has quit [Quit: anjen]
axl_ has joined #ruby
rmulligan has joined #ruby
cenny has joined #ruby
Xeago has joined #ruby
arlek has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
shadoi has joined #ruby
casadei has joined #ruby
aryaching has quit []
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
B1n4r10 has joined #ruby
krzkrzkrz has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 264 seconds]
krzkrzkrz has joined #ruby
j0n3 has joined #ruby
symm- has quit [Quit: Leaving...]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
Arkon has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Arkon>
Hi, I have a strange problem with my Regex. Ruby doesn't print the right extraction : http://pastebin.com/hqa8PdfZ
<c_nick>
I didnt quite understand why a[/[aeiou](.)\1/, 2] #=> nil
chouhoul_ has joined #ruby
<c_nick>
when you run it without capture it gives ell from the string "Hello World"
DexterLB has quit [Read error: Connection reset by peer]
mahna has joined #ruby
blackmesa has joined #ruby
jaroslav has left #ruby [#ruby]
aeontech has quit [Quit: aeontech]
solars has joined #ruby
aegis3121 has quit [Ping timeout: 240 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
chouhoulis has quit [Ping timeout: 240 seconds]
colegatron has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
moeabdol has joined #ruby
DexterLB has joined #ruby
anisha has joined #ruby
<mahna>
Given a Gemfile with a git source, `bundle install`: "Using activesupport 5.0.0.beta3 from https://github.com/rails/rails.git", `ruby astest.rb` generates a LoadError: "`require': cannot load such file -- active_support."
workmad3 has quit [Ping timeout: 264 seconds]
jdawgaz has joined #ruby
<mahna>
No Rails here, just the ActiveSupport reference in one file in the same dir containing the Gemfile.
vishwa has left #ruby [#ruby]
zarubin has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
<hanmac>
c_nick: because your regexp does not have a second capture group?
firstdayonthejob has joined #ruby
<mahna>
As a GitHub source, `gem list` won't show the installed gem, but `bundle show activesupport` does.
whippythellama has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
<adaedra>
If I understand correctly what you're asking for, you're looking for @outputs.sort.each do |output, options|
<adaedra>
mahna: anyway, does your thing works better with bundle exec?
elifoster has joined #ruby
cpup has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
<acidrainfall>
adaedra: That's what I'm looking for, I just want to make sure it doesn't break the structure. This is a hash-generated configuration file.
ixti has joined #ruby
lemur has joined #ruby
tenderlove has quit [Remote host closed the connection]
<acidrainfall>
The original author wrote it with .each_pair, which keeps jumbling the file, which is annoying. I want it to be consistent.
<acidrainfall>
Sounds like I've got it now, thanks a lot.
BrunoSaboia has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
Cohedrin has joined #ruby
rmulligan has quit [Ping timeout: 268 seconds]
<adaedra>
acidrainfall: for the sake of compatibility with Enumerable, hashes can be represented under two-dimension arrays, like shown above. That's what happens with sort, which returns this form; either you need to do Hash things and can use .to_h to remake a Hash, either you can do with the array form (it's rather close)
Cohedrin has quit [Max SendQ exceeded]
cpup has joined #ruby
<adaedra>
acidrainfall: since you give two arguments to each's block, and each element of your sorted array has two elements, it is deconstructed when the block is called.
edwinvdgraaf has quit [Remote host closed the connection]
Cohedrin has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
<mahna>
adaedra: `bundle exec ruby (file.rb)` works, as does `ruby (file.rb)` with `require 'bundler'; Bundler.setup` in my Gemfile. I thought it might automagically work without some sort of explicit Bundler tie, but get it now. Thanks!
<adaedra>
mahna: ruby is not aware alone of your Gemfile, you need bundler to come play.
<adaedra>
(this is not 100% true anymore as Ruby gets some bundler features, but this is not yet at bundler's level of support, at least was last time I tested.)
<mahna>
Playing happily now, me + Bundler sitting in a tree.
<acidrainfall>
adaedra: would it be a problem if there were a third dimension?
djbkd has quit [Remote host closed the connection]
<adaedra>
acidrainfall: since you come from a hash, this should work smoothly. I'd say best way to know is to test.
djbkd has joined #ruby
<acidrainfall>
yeah it seems to be fine
<acidrainfall>
I don't think there are any 3-dimension values
lemur has quit [Ping timeout: 250 seconds]
<acidrainfall>
Thanks!
rubie has quit [Remote host closed the connection]
<acidrainfall>
I did try @outputs.sort.to_h.each_pair but it said that it couldn't find .to_h
<adaedra>
ruby version?
<acidrainfall>
I'm still on le antiquated 1.8
<acidrainfall>
Presumably not available?
<adaedra>
this belongs in a museum!
sczizzo has joined #ruby
<adaedra>
You can do Hash[...] iirc
<acidrainfall>
YOU belong in a museum!
<adaedra>
I'm only 23, calm down
<acidrainfall>
haha
<acidrainfall>
man I feel old
<acidrainfall>
And i'm only a few years older than you
<mahna>
adaedra: Interesting, thanks--I hadn't seen that mentioned before.
<adaedra>
yw
crdpink2 has quit [Quit: q term]
Wicaeed has joined #ruby
Snowy has joined #ruby
rmulligan has joined #ruby
KhanterWinters has joined #ruby
<KhanterWinters>
Hello, good afternoon, I have a question-problem
joonty has quit [Quit: Leaving]
ramortegui has quit [Quit: Ex-Chat]
<KhanterWinters>
I am learning ruby, but I am using windows, when I enter to the terminal and get into the irb, it says me undefined (I make the code in sublime text)
michael_mbp has joined #ruby
kies has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
skweek has quit [Remote host closed the connection]
crdpink has joined #ruby
mdw has joined #ruby
<mahna>
KhanterWinters: Did you use http://rubyinstaller.org/? I had to touch Windows recently, and believe I installed that.
gbgdev has quit [Remote host closed the connection]
mahna has quit []
<KhanterWinters>
yep, I use it... I install the lastest version for x64
lacedem has joined #ruby
KhanterWinters has quit [Quit: Page closed]
<adaedra>
KhanterWinters: Isn't there some kind of special shortcut to use or something to have a Ruby-enabled cmd? (Haven't used Ruby under windows for a long time tho; this was too painful.)
<adaedra>
Damn.
nocontrol has quit []
jenrzzz has joined #ruby
kent\n has quit [Ping timeout: 248 seconds]
supplication has quit [Ping timeout: 248 seconds]
platzhirsch has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
zarubin has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
aeontech has joined #ruby
ruby-lang897 has joined #ruby
stunder has quit [Ping timeout: 246 seconds]
aegis3121 has joined #ruby
[Butch]_ has joined #ruby
<ruby-lang897>
Is there an option to filter the country list while using country_select.....for example i would like to just display countries in US
drbrain has quit [Remote host closed the connection]
mdw has joined #ruby
tercenya_ has quit []
drbrain has joined #ruby
tercenya has joined #ruby
kfpratt has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 240 seconds]
__chris has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
Atrox has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
trinaldi has quit [Quit: cya]
stunder has joined #ruby
sandstrom has joined #ruby
bronson has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 264 seconds]
<__chris>
I'm building a gem. I've created a binary in which runs fine from within the root of the gem project but "require cannot load such file..." errors when I run the command outside of the gems folder.
cpup has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<__chris>
Is there a standard way of requiring files in a gem?
bootstrappm has joined #ruby
gbgdev has joined #ruby
stunder has quit [Ping timeout: 246 seconds]
SCHAAP137 has quit [Remote host closed the connection]
avenj has joined #ruby
<aegis3121>
The pattern I've seen is that you have lib/your_gem_name.rb that requires all the files your gem requires.
Sembei has joined #ruby
<aegis3121>
then that file is the only one anybody needs to require, which ends up looking like require 'your_gem_name'
<aegis3121>
(unless I've misunderstood your poblem, in which case sorry)
eregi has quit [Ping timeout: 276 seconds]
zarubin has joined #ruby
sepp2k has quit [Quit: Leaving.]
<shevy>
__chris just install the gem
LuckyABA has quit [Read error: Connection reset by peer]
suffice has quit [Quit: leaving]
beast has quit [Quit: Leaving]
kies has joined #ruby
eregi has joined #ruby
treehug88 has joined #ruby
<shevy>
for all executables in bin/* of a gem, a simple require 'name_of_your_gem_here' should suffice
<__chris>
shevy, right. I did that but calling the bin command provided by the gem produces a "require" error
<__chris>
I am require the gem name from within the bin as well
krzkrzkrz has quit [Read error: Connection reset by peer]
<shevy>
no, let it call your gem library/files
htmldrum has quit [Ping timeout: 244 seconds]
<shevy>
you must do something incorrectly when you try to require it
joonty has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
mdw_ has joined #ruby
marcdel has joined #ruby
elaptics is now known as elaptics`away
thezanke has joined #ruby
rdark has quit [Ping timeout: 260 seconds]
mdw has quit [Ping timeout: 250 seconds]
thezanke has quit [Max SendQ exceeded]
joonty has quit [Client Quit]
stunder has joined #ruby
supplication has joined #ruby
platzhirsch has joined #ruby
moeabdol2 has joined #ruby
cdg has quit [Remote host closed the connection]
moeabdol1 has quit [Ping timeout: 260 seconds]
yqt has joined #ruby
pawnbox has quit [Remote host closed the connection]
shanemcd has joined #ruby
chochesse_ has joined #ruby
stunder has quit [Ping timeout: 260 seconds]
<chochesse_>
how can I get ruby to log per thread?
lacedem has quit [Ping timeout: 252 seconds]
shanemcd has quit [Remote host closed the connection]
gbgdev has quit [Remote host closed the connection]
shanemcd_ has joined #ruby
shanemcd_ has quit [Remote host closed the connection]
shanemcd has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
uglybandersnatch has joined #ruby
paul98 has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
skweek has joined #ruby
cpup has joined #ruby
stunder has joined #ruby
BtcBen_ has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
Xeago_ has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
uglybandersnatch has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
BtcBen has quit [Ping timeout: 252 seconds]
BtcBen_ is now known as BtcBen
boontdustie has joined #ruby
_tc has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
bramswenson has joined #ruby
bramswenson has quit [Remote host closed the connection]
quazimodo has joined #ruby
siaw has joined #ruby
fantasticsid has joined #ruby
uglybandersnatch has joined #ruby
rmulligan has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
jgpawletko has joined #ruby
mdw_ has quit [Ping timeout: 248 seconds]
jgpawletko has quit [Client Quit]
rmulligan has joined #ruby
bronson has joined #ruby
siaw has left #ruby [#ruby]
<prefix>
uh
<prefix>
why does ruby's regex matcher take "" to be the same thing as "*"
mdw has joined #ruby
<havenwood>
prefix: Example of what you mean?
<prefix>
"" clearly isn't "*"
<havenwood>
prefix: What code are you running? What Regexp?
n008f4g_ has quit [Ping timeout: 248 seconds]
<eam>
prefix: do you mean how '""' is matched by /"*"/ ?
nanoz has quit [Ping timeout: 276 seconds]
elifoster has quit [Ping timeout: 276 seconds]
zarubin has quit [Ping timeout: 252 seconds]
kirun has joined #ruby
<prefix>
let's say I have the string, "a". if i run "a".match(Regexp.unon("")), it returns true
codecop has quit [Remote host closed the connection]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam>
of course it does - you're giving it a nul requirement
<prefix>
that's what the kleene star is for
<prefix>
are you kidding me?
<eam>
no, .* matches everything
zenspider has joined #ruby
<eam>
it's different
<eam>
>> "abc" =~ //; $&
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
saneax is now known as saneax_AFK
<havenwood>
#=> ""
<eam>
havenwood: thx
uglybandersnatch has quit [Ping timeout: 240 seconds]
<eam>
>> "abc" =~ /.*/; $&
<eam>
#=> "abc"
<evenix>
Hey giys
chochesse_ has quit [Quit: Leaving]
<eam>
the regex /.*/ is going to match any and every character. The // regex is going to match no characters. Both will evaluate as a match on any input string
<eam>
because all strings have a sequence of "no characters"
duckpuppy has quit [Ping timeout: 248 seconds]
<eam>
in between the start of the string and the first character (if there is a first character)
<evenix>
I'm looking for a way to automatically gzip responses.
<eam>
>> "abc".split //
<eam>
=> ["a", "b", "c"]
Snowy has quit [Remote host closed the connection]
<eam>
>> "abc".split /.*/
<eam>
=> []
futilegames has quit [Quit: futilegames]
uglybandersnatch has joined #ruby
<havenwood>
evenix: Rack::Deflater
<evenix>
havenwood: tried
moeabdol3 has joined #ruby
<evenix>
:/ didn't work
<evenix>
i'll look deeper into it
<havenwood>
evenix: Nginx or Apache for gzip'n static assets, typically.
ramfjord has quit [Ping timeout: 260 seconds]
nchambers has quit [Changing host]
nchambers has joined #ruby
<prefix>
ah
<prefix>
the empty string is contained in every string
mostlybadfly has quit [Quit: Connection closed for inactivity]
<havenwood>
evenix: rack-zippy is another, i think rails focused?
stunder has quit [Ping timeout: 250 seconds]
<evenix>
havenwood: perfect! I'll try that
<eam>
prefix: and if you change .* to be the non-greedy .*? you'll find it matches like // because it maches on the smallest (empty) string instead of the largest (entire string)
<eam>
which maybe helps frame the behavior, that // is a subset of what /.*/ can match
<prefix>
yes
elifoster has joined #ruby
<prefix>
i remember this now
zarubin has joined #ruby
<prefix>
i had nightmares about this for a while back in college
<eam>
;)
ta_ has joined #ruby
<eam>
of course /.*?/ is a hell of a lot less efficient than //
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
<evenix>
havenwood: my issue is not related to assets.. when im trying to login to gmail using omniau-google2 the response from google is gzip compressed I'm trying to set up my application to automatically decode that
solocshaw has quit [Ping timeout: 248 seconds]
<evenix>
'rack-zippy is a Rack middleware for serving static gzipped assets precompiled by the Rails asset pipeline'
<evenix>
I don't think this is what I need
colegatron has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<evenix>
I'm trying to automatically uncompress gzip http response
<evenix>
config.middleware.use Rack::Deflater might be a better option
ldnunes has quit [Quit: Leaving]
swills has quit [Ping timeout: 260 seconds]
last_staff1 has joined #ruby
stunder has joined #ruby
jenrzzz has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
last_staff has quit [Ping timeout: 240 seconds]
last_staff1 is now known as last_staff
zarubin has quit [Quit: leaving]
djbkd has joined #ruby
A124 has quit [Quit: '']
marcdel has joined #ruby
baweaver has joined #ruby
shinnya has quit [Ping timeout: 276 seconds]
stunder has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
system64 has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
A124 has joined #ruby
B1n4r10 has quit [Ping timeout: 268 seconds]
cpup has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
ruby-lang897 has quit [Ping timeout: 252 seconds]
cpup has joined #ruby
jorrin has quit [Quit: Leaving]
Xeago has joined #ruby
baweaver has joined #ruby
roshanavand has joined #ruby
kfpratt has joined #ruby
BLuEGoD has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
siaw has joined #ruby
trosborn has quit [Quit: trosborn]
BtcBen has quit [Ping timeout: 252 seconds]
vdamewood has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
symm- has joined #ruby
ocbtec has quit [Quit: leaving]
edwinvdgraaf has quit [Remote host closed the connection]
ramfjord has joined #ruby
blackmesa has joined #ruby
shadowbram has quit [Remote host closed the connection]
holyGlitch has left #ruby ["Leaving"]
zipace has joined #ruby
jottr has joined #ruby
jyaworski has quit [Quit: jyaworski]
poerror has quit [Ping timeout: 244 seconds]
machinewar has joined #ruby
pikajude has joined #ruby
<pikajude>
does GEM_PATH get added to LOAD_PATH?
poerror has joined #ruby
Xeago has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 260 seconds]
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 268 seconds]
tomphp has joined #ruby
kknight has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
mdw has quit [Ping timeout: 246 seconds]
B4daBing73 has joined #ruby
infra-red has quit [Ping timeout: 248 seconds]
e4xit has joined #ruby
steffkes has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
prefix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pikajude>
also, what is the difference between setting an environment variable before running a script and setting it in ENV in the first line of the script
floatingpoint has joined #ruby
Vile` has joined #ruby
Noxilex has joined #ruby
djbkd has quit [Remote host closed the connection]
tp_ has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
<adaedra>
pikajude: if you use pre-defined environment, it can be overrider by caller
<adaedra>
overriden
<pikajude>
ok
<adaedra>
I can't type tonight.
<pikajude>
specifically, i'm setting ENV["GEM_PATH"] in my script then require 'bundler/setup' fails
<pikajude>
but if I set it in my shell before running the script, it works fine
<pikajude>
so i'm trying to figure out why
djbkd has joined #ruby
<adaedra>
Why are you even doing this
<pikajude>
well, it's not my script
<pikajude>
i'm trying to figure out why it stopped working
<pikajude>
because i use it
solocshaw has joined #ruby
mary5030_ has quit [Remote host closed the connection]
ICantCook has quit [Quit: bye]
<adaedra>
It's surely because RubyGems reconstruct its path from env before your script even start. This sounds like the wrong solution to the problem you're having.
<pikajude>
oh, is that inbuilt functionality of ruby
B4daBing73 has quit [Quit: Leaving]
<pikajude>
i see
<pikajude>
if I --disable=gems, it works!
<adaedra>
This sounds like even wronger solution to the problem imo.
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pikajude>
doesn't it
ebbflowgo has quit [Quit: ebbflowgo]
<adaedra>
Maybe if you explain the whole issue, a better solution could be found?
<idletask>
My thoughts exactly; this looks like an XY problem