havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.2; 2.2.6; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
SeepingN has quit [Quit: The system is going down for reboot NOW!]
SeepingN has joined #ruby
kirun has quit [Quit: Konversation terminated!]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
StoneCyp1er has quit [Ping timeout: 250 seconds]
frozengeek___ has quit [Quit: frozengeek___]
jenrzzz has quit [Ping timeout: 240 seconds]
muelleme has joined #ruby
marr has quit [Ping timeout: 250 seconds]
mattp_ has joined #ruby
harai_ has joined #ruby
douglascorrea has joined #ruby
muelleme has quit [Ping timeout: 252 seconds]
libastral_ has joined #ruby
libastral_ has quit [Client Quit]
ebbflowgo has quit [Quit: ebbflowgo]
djbkd has quit [Quit: My people need me...]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 248 seconds]
matp has quit [Remote host closed the connection]
matp has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
hahuang65 has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
brendan- has joined #ruby
tuxaddicted has joined #ruby
Snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gingray has quit [Ping timeout: 258 seconds]
benlieb has quit [Quit: benlieb]
Jackneill has quit [Remote host closed the connection]
biberu has quit []
brendan- has quit [Ping timeout: 258 seconds]
herbmillerjr has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
Yacker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fichtenstein has quit [Quit: Fichtenstein]
railssmith has joined #ruby
yfeldblum has quit [Remote host closed the connection]
whathappens has quit [Quit: Leaving...]
benlieb has joined #ruby
Yacker has joined #ruby
_pop_ebx has quit [Changing host]
_pop_ebx has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
tuxaddicted has quit [Ping timeout: 250 seconds]
nicoulaj has quit [Remote host closed the connection]
_pop_ebx has quit [Quit: Leaving]
domgetter has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
_pop_ebx has joined #ruby
nettoweb has joined #ruby
matp has quit [Remote host closed the connection]
toretore has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
matp has joined #ruby
_pop_ebx has quit [Remote host closed the connection]
_pop_ebx has joined #ruby
yfeldblum has joined #ruby
_pop_ebx has quit [Client Quit]
phwelo has quit [Quit: Leaving]
StoneCypher has joined #ruby
allcentury has joined #ruby
gusrub has quit [Remote host closed the connection]
railswebdev has joined #ruby
domgetter has joined #ruby
charliesome has joined #ruby
gusrub has joined #ruby
definity has joined #ruby
allcentu1 has joined #ruby
gusrub has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
Synthead has quit [Quit: Synthead]
blandflakes has joined #ruby
minimalism has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
gusrub has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 267 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
brendan- has joined #ruby
Immune has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
faces has quit []
sdelic has joined #ruby
face has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 256 seconds]
ur5us has quit [Read error: Connection reset by peer]
brendan- has quit [Ping timeout: 258 seconds]
ur5us has joined #ruby
face has quit [Remote host closed the connection]
chopin has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
hahuang65 has joined #ruby
face has joined #ruby
chopin has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
chopin has quit [Ping timeout: 258 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby
Rickmasta has joined #ruby
scripore has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
johnmccabe has joined #ruby
Rickmasta has quit [Ping timeout: 256 seconds]
s2013 has joined #ruby
jblack has quit [Ping timeout: 268 seconds]
sdelic has quit [Quit: ZZZzzz…]
chazu has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
jgt has joined #ruby
nankyokusei has joined #ruby
domgetter has quit [Ping timeout: 260 seconds]
tau has quit [Remote host closed the connection]
chazu has joined #ruby
sdelic has joined #ruby
harai_ has quit [Ping timeout: 252 seconds]
konsolebox has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 256 seconds]
SteenJobs has joined #ruby
ur5us has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
harai_ has joined #ruby
_sfiguser has quit [Read error: Connection reset by peer]
sdelic has quit [Ping timeout: 256 seconds]
tdy has quit [Ping timeout: 245 seconds]
definity has quit [Ping timeout: 250 seconds]
jmignault has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jmignault has quit [Ping timeout: 248 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
konsolebox has joined #ruby
lightstalker has quit [Ping timeout: 246 seconds]
brendan- has joined #ruby
d^sh has quit [Ping timeout: 265 seconds]
neanderslob has joined #ruby
montyboy has joined #ruby
d^sh has joined #ruby
brendan- has quit [Ping timeout: 258 seconds]
montyboy has quit [Client Quit]
SCHAAP137 has quit [Quit: Leaving]
sid_fules has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
sid_fules has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
mim1k|wo1k has joined #ruby
mim1k|work has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
montyboy has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 260 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Beast has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
splud has quit [Quit: splud]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
splud has joined #ruby
railswebdev has joined #ruby
jmignault has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
splud has quit [Ping timeout: 268 seconds]
jmignault has quit [Ping timeout: 246 seconds]
fullofcaffeine has quit [Ping timeout: 250 seconds]
douglascorrea has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
douglascorrea has joined #ruby
bigtawm has quit []
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
douglascorrea has quit [Ping timeout: 250 seconds]
optiz0r has quit [Ping timeout: 245 seconds]
dextertzu has quit [Read error: Connection reset by peer]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
roamingdog has joined #ruby
libastral has quit [Ping timeout: 250 seconds]
brendan- has joined #ruby
libastral has joined #ruby
dextertzu has joined #ruby
hanmac has joined #ruby
brendan- has quit [Ping timeout: 258 seconds]
millerti has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railswebdev has joined #ruby
noblehelm has joined #ruby
djbkd has joined #ruby
enterprisey has quit [Ping timeout: 256 seconds]
nanoz has joined #ruby
Channel6 has joined #ruby
allcentu1 has quit [Ping timeout: 256 seconds]
Rickmasta has joined #ruby
aryaching has quit [Ping timeout: 258 seconds]
bihi has quit [Quit: Bye!]
bihi has joined #ruby
AlecTaylor has joined #ruby
<AlecTaylor> hi
<AlecTaylor> Anyone here use Vagrant? - Can you give me your ``vagrant global-status --machine-readable` output?
Rickmasta has quit [Ping timeout: 245 seconds]
nankyokusei has joined #ruby
optiz0r has joined #ruby
aryaching has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
enterprisey has joined #ruby
dkam has quit [Quit: Lingo: www.lingoirc.com]
pfg_ has quit []
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pfg has joined #ruby
redpants has quit [Quit: leaving]
jsgrant has quit [Quit: Konversation terminated!]
mwlang has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
noblehelm has quit [Quit: noblehelm]
brendan- has joined #ruby
jmignault has joined #ruby
allcentu1 has quit [Ping timeout: 260 seconds]
brendan- has quit [Ping timeout: 258 seconds]
enterprisey has quit [Remote host closed the connection]
jmignault has quit [Ping timeout: 252 seconds]
JoshS has joined #ruby
charliesome has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
Rickmasta has joined #ruby
xall has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
brent__ has joined #ruby
gix has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
xall has quit [Quit: WeeChat 1.5]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gh has joined #ruby
Immune has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 268 seconds]
xall has joined #ruby
gix has joined #ruby
ponga has quit []
gh has quit [Quit: Leaving]
blackbombay has joined #ruby
enterprisey has joined #ruby
blackbom1 has quit [Ping timeout: 240 seconds]
jblack has joined #ruby
orangey has quit [Read error: Connection reset by peer]
jblack has quit [Ping timeout: 245 seconds]
tuxaddicted has joined #ruby
minimalism is now known as gr
nanoz has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
Immune has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
allcentu1 has joined #ruby
gr is now known as minimalism
brendan- has joined #ruby
nchambers has quit [Quit: ZNC 1.6.3 - http://znc.in]
orangey has joined #ruby
allcentu1 has quit [Ping timeout: 245 seconds]
brendan- has quit [Ping timeout: 258 seconds]
konsolebox has quit [Quit: Leaving]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fullofcaffeine has joined #ruby
yfeldblum has quit [Quit: Leaving...]
pawnbox has joined #ruby
xall has quit [Read error: Connection reset by peer]
xall has joined #ruby
JoshS has quit [Quit: Leaving]
c355e3b has quit [Quit: Connection closed for inactivity]
railswebdev has joined #ruby
shashin_ has joined #ruby
shashin_ has quit [Client Quit]
shashin has joined #ruby
fullofcaffeine has quit [Ping timeout: 244 seconds]
pilne has quit [Quit: Quitting!]
gusrub has joined #ruby
dextertzu has quit [Ping timeout: 250 seconds]
shashin has quit [Quit: Textual IRC Client: www.textualapp.com]
<c-c> Hey #ruby friends! I have a game programming related question
<c-c> suppose one has some kind of game character, with bunch of actions it can perform in a environment it can observe in some way... Like players 1 and 2, base 1 and 2 for each respectively, and the flag at location x,y. How would you model motives like "grab flag", or "win game" or "avoid player 2"?
Immune has quit [Ping timeout: 260 seconds]
shashin has joined #ruby
aidalgol has joined #ruby
Yacker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
zapata has quit [Quit: WeeChat 1.6]
lightstalker has joined #ruby
weaksauce has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
allcentu1 has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
brendan- has joined #ruby
AlecTaylor has quit [Ping timeout: 256 seconds]
allcentu1 has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
brendan- has quit [Ping timeout: 258 seconds]
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sphex has quit [Read error: Connection reset by peer]
XV8 has joined #ruby
sphex has joined #ruby
officialsandeep8 has joined #ruby
sdothum has joined #ruby
Yzguy has joined #ruby
User458764 has joined #ruby
dextertzu has joined #ruby
lxsameer has joined #ruby
buglessdr has quit [Ping timeout: 268 seconds]
JoshS has joined #ruby
djbkd has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
ramfjord_ has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 250 seconds]
shashin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
<alfiemax> hi all
<alfiemax> can anyone pls help me with this
<alfiemax> I'm getting an error `unexpected end-of-input, expecting keyword_end`
<alfiemax> why does the block get closed as soon as i create a hash ?
<alfiemax> and i believe that's causing the error
tdy has joined #ruby
fullofcaffeine has joined #ruby
<c-c> hi alfiemax
<alfiemax> hi c-c
<c-c> I've never used "begin" I think
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<alfiemax> it's a begin rescue end block
<c-c> uh, inside a block
<alfiemax> yeah
fullofca_ has joined #ruby
iamse7en has joined #ruby
<iamse7en> quick ruby question about comparing arrays if anyone has a sec. simple question, hopefully simple answer! https://gist.github.com/anonymous/6b01be4492b059c822752132735a5c2d
<c-c> alfiemax: also interesting to me is your use of instance variable, which I wonder does what in a proc
fullofcaffeine has quit [Ping timeout: 245 seconds]
<alfiemax> hmm, that was a nice catch
<alfiemax> but i don't get it
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<alfiemax> i got the issue fixed though
scripore has quit [Quit: This computer has gone to sleep]
<c-c> alfiemax: alfiemax I think its just your syntax
<alfiemax> hmmm
pawnbox has quit [Ping timeout: 260 seconds]
<c-c> >> (1..10).collect do |biʒ| biʒ*2 end
<ruby[bot]> c-c: # => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] (https://eval.in/680732)
<c-c> >> @multi = 2; (1..10).collect do |biʒ| biʒ*multi; end
<ruby[bot]> c-c: # => undefined local variable or method `multi' for main:Object ...check link for more (https://eval.in/680733)
<c-c> >> @multi = 2; (1..10).collect do |biʒ| biʒ*@multi; end
<ruby[bot]> c-c: # => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] (https://eval.in/680734)
<c-c> alfiemax: perhaps the @p1 is out of scope inside a anon block definition
jblack has joined #ruby
<alfiemax> hmm, seems to be that way
scripore has joined #ruby
Yzguy has quit [Quit: Zzz...]
jblack has quit [Ping timeout: 268 seconds]
fullofca_ has quit [Remote host closed the connection]
xall has joined #ruby
fullofcaffeine has joined #ruby
muelleme has joined #ruby
kareelee has joined #ruby
fullofcaffeine has quit [Ping timeout: 244 seconds]
allcentu1 has joined #ruby
muelleme has quit [Ping timeout: 244 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
xall has quit [Read error: Connection reset by peer]
ace05_ has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
jtd has joined #ruby
allcentu1 has quit [Ping timeout: 260 seconds]
NeverTired has joined #ruby
kareelee_ has joined #ruby
iamse7en has quit [Quit: I'm out like a black kid in a spelling bee.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has joined #ruby
kareelee has quit [Ping timeout: 256 seconds]
enterprisey has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
aurelien` has joined #ruby
User458764 has joined #ruby
aurelien has quit [Ping timeout: 268 seconds]
djbkd has quit [Ping timeout: 260 seconds]
johnny56 has quit [Ping timeout: 246 seconds]
vuoto has joined #ruby
vuoto has quit [Client Quit]
johnny56 has joined #ruby
kareelee has joined #ruby
kareelee_ has quit [Read error: Connection reset by peer]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoi has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
vuoto has joined #ruby
vuoto has quit [Client Quit]
zapata has joined #ruby
bocaneri has joined #ruby
pawnbox has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Channel6 has quit [Quit: Leaving]
jgnagy has quit [Ping timeout: 248 seconds]
vuoto has joined #ruby
vuoto has left #ruby [#ruby]
iamse7en has joined #ruby
ace05_ has quit [Remote host closed the connection]
vuoto has joined #ruby
_whitelogger has joined #ruby
jud has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 245 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nanoz has joined #ruby
nanoz has joined #ruby
nanoz has quit [Changing host]
jeanlinux has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
brendan- has joined #ruby
kang0 has joined #ruby
<kang0> Who can offer me laptop (and work)?
xall has joined #ruby
User458764 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
yuki_is_bored has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
scripore has joined #ruby
pawnbox has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
xall has quit [Quit: WeeChat 1.5]
brendan- has quit [Ping timeout: 258 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
im0b has quit []
ace05 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
kang0 has left #ruby ["AndroIRC"]
benlieb has quit [Quit: benlieb]
bhrgunatha has joined #ruby
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
DoubleMalt has joined #ruby
alexherbo2 has joined #ruby
amclain has quit [Quit: Leaving]
yardenbar has joined #ruby
gizmore has joined #ruby
gizmore|2 has quit [Ping timeout: 252 seconds]
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
aurelien` is now known as aurelien
aurelien has quit [Changing host]
aurelien has joined #ruby
tvw has joined #ruby
nofxx_ has joined #ruby
nadir has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 244 seconds]
nofxx has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
nadir has joined #ruby
iamse7en has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
harai_ has quit [Ping timeout: 258 seconds]
Snowy has joined #ruby
jblack has joined #ruby
teoric has joined #ruby
teoric has quit [Client Quit]
Macaveli has joined #ruby
bhrgunatha has quit [Quit: ChatZilla 0.9.92 [Firefox 49.0.2/20161021084537]]
jblack has quit [Ping timeout: 258 seconds]
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
firstdayonthejob has joined #ruby
TheCubeLord has quit [Quit: F*** This S*** Im out!]
ropeney has joined #ruby
Snowy has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
allcentu1 has joined #ruby
pawnbox has quit [Remote host closed the connection]
ropeney has quit [Quit: Leaving]
ropeney has joined #ruby
pawnbox has joined #ruby
caliostro has joined #ruby
brendan- has joined #ruby
ropeney has quit [Client Quit]
ropeney has joined #ruby
allcentu1 has quit [Ping timeout: 240 seconds]
aurelien has quit [Remote host closed the connection]
brendan- has quit [Ping timeout: 258 seconds]
Fichtenstein has joined #ruby
Snowy has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
jeanlinux has quit [Ping timeout: 244 seconds]
Snowy has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
Devalo has joined #ruby
Devalo_ has joined #ruby
LiquidInsect has quit [Ping timeout: 258 seconds]
LiquidInsect has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
muelleme has joined #ruby
nofxx_ has quit [Ping timeout: 244 seconds]
firstdayonthejob has quit [Ping timeout: 250 seconds]
caliostro has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
ramfjord has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
iMadper has joined #ruby
muelleme has quit [Ping timeout: 250 seconds]
poikon has quit [Ping timeout: 260 seconds]
DoubleMalt has joined #ruby
poikon has joined #ruby
officialsandeep8 has quit [Quit: Bye. Have a nice day.]
ropeney has quit [Remote host closed the connection]
blackwind_123 has quit [Ping timeout: 268 seconds]
blackwind_123 has joined #ruby
alfiemax has quit []
ropeney has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
caliostro has joined #ruby
Jackneill has joined #ruby
Immune has joined #ruby
Asher has joined #ruby
etehtsea has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
brendan- has joined #ruby
suck has joined #ruby
caliostro has quit [Quit: Bye]
brendan- has quit [Ping timeout: 258 seconds]
Fernando-Basso has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
pandaant has joined #ruby
ptierno has joined #ruby
nankyokusei has joined #ruby
<gr33n7007h> iamse7en a, b = a.zip(b).map { |a| a.all?(&:nil?) ? a.map(&:to_i) : a.fill(a.compact[0]) }.transpose
sid_fules has joined #ruby
charliesome has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
<gr33n7007h> although there might be better alternatives which i can't think of at the minute
sneakerhax has quit [Ping timeout: 260 seconds]
tvw has quit []
jcao219 has quit [Ping timeout: 250 seconds]
sid_fules has quit [Remote host closed the connection]
agent_white has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
beawesomeinstead has quit [Ping timeout: 260 seconds]
ptierno has quit [Ping timeout: 260 seconds]
Hyuk has joined #ruby
manjaro-kde5_ has joined #ruby
beawesomeinstead has joined #ruby
claudiuinberlin has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sid_fules has joined #ruby
jgt has joined #ruby
jblack has joined #ruby
govg has joined #ruby
banisterfiend has joined #ruby
last_staff has joined #ruby
jblack has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
yuki_is_bored has joined #ruby
Devalo_ has quit [Remote host closed the connection]
jcao219 has joined #ruby
Devalo has joined #ruby
pandaant has quit [Remote host closed the connection]
allcentu1 has joined #ruby
JeanCarloMachado has joined #ruby
Devalo has quit [Ping timeout: 256 seconds]
pandaant has joined #ruby
jgt has quit [Ping timeout: 245 seconds]
sid_fules has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
allcentu1 has quit [Ping timeout: 250 seconds]
nanoz has quit [Ping timeout: 245 seconds]
vuoto has quit [Remote host closed the connection]
xall has joined #ruby
brendan- has quit [Ping timeout: 258 seconds]
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
djbkd has joined #ruby
vuoto has joined #ruby
aidalgol has quit [Quit: zZzZzZzZZzzzz]
sid_fules has joined #ruby
novice has joined #ruby
kareelee has quit [Ping timeout: 268 seconds]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
Hyuk has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
aurelien has joined #ruby
gingray has joined #ruby
gusrub has quit [Remote host closed the connection]
kareelee has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
c0mrad3 has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
nettoweb has joined #ruby
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
mikecmpbll has joined #ruby
nixmaniack has quit [Client Quit]
Immune has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackbombay has quit [Ping timeout: 265 seconds]
nadir has quit [Quit: Connection closed for inactivity]
Madplatypus has joined #ruby
pragmaticus has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
allcentu1 has joined #ruby
jgnagy has joined #ruby
jgt has joined #ruby
sid_fules has quit [Remote host closed the connection]
brendan- has joined #ruby
allcentu1 has quit [Ping timeout: 260 seconds]
jgnagy has quit [Ping timeout: 260 seconds]
brendan- has quit [Ping timeout: 258 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0wn3d has quit [Ping timeout: 245 seconds]
vuoto_ has joined #ruby
vuoto_ has quit [Client Quit]
vuoto_ has joined #ruby
vuoto has quit [Ping timeout: 248 seconds]
sid_fules has joined #ruby
shinnya has joined #ruby
kimegede has joined #ruby
Immune has joined #ruby
pawnbox has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
xall has quit [Ping timeout: 244 seconds]
tens0r has joined #ruby
p0wn3d has joined #ruby
nankyokusei has joined #ruby
sid_fules has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
montyboy has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 265 seconds]
zilberstein has joined #ruby
scripore has joined #ruby
cdg has joined #ruby
jblack has joined #ruby
shashin has joined #ruby
c355e3b has joined #ruby
biberu has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
ace05_ has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
sid_fules has quit [Read error: Connection reset by peer]
jcao219 has quit [Ping timeout: 240 seconds]
sid_fules has joined #ruby
jblack has quit [Ping timeout: 246 seconds]
shashin has quit [Client Quit]
jmignault has joined #ruby
gingray has quit [Ping timeout: 248 seconds]
allcentu1 has joined #ruby
vuoto_ has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 258 seconds]
zilberstein has quit [Ping timeout: 260 seconds]
yuki_is_bored has quit [Read error: Connection reset by peer]
brendan- has joined #ruby
allcentu1 has quit [Ping timeout: 240 seconds]
manjaro-kde5_ has quit [Ping timeout: 246 seconds]
toretore has joined #ruby
ace05_ has quit [Remote host closed the connection]
brendan- has quit [Ping timeout: 258 seconds]
sepp2k has joined #ruby
ace05 has joined #ruby
SCHAAP137 has joined #ruby
jmignault has quit [Ping timeout: 260 seconds]
jmignault has joined #ruby
p0wn3d has quit [Quit: WeeChat 1.4]
pandaant has quit [Remote host closed the connection]
allcentu1 has joined #ruby
Definity has joined #ruby
Kilo`byte has quit [Quit: ZNC - 1.6.0 - http://znc.in]
synaps3 has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
synaps3 has left #ruby [#ruby]
tens0r has quit [Quit: tens0r]
yuki_is_bored has joined #ruby
xall has joined #ruby
hahuang65 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tk__ has joined #ruby
xall has quit [Ping timeout: 260 seconds]
AlecTaylor has joined #ruby
AlecTaylor has joined #ruby
AlecTaylor has quit [Changing host]
xall has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
aryaching has quit [Ping timeout: 248 seconds]
tau has joined #ruby
DoubleMalt has joined #ruby
breakaway has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
adgtl_ has joined #ruby
adgtl_ has quit [Client Quit]
jmignault has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
DoubleMalt has quit [Ping timeout: 256 seconds]
agent_white has quit [Quit: agent_white]
jmignault has joined #ruby
frozengeek___ has joined #ruby
novice has quit [Quit: Leaving]
montyboy has joined #ruby
JeanCarloMachado has quit [Ping timeout: 250 seconds]
frozengeek___ has quit [Client Quit]
brendan- has joined #ruby
not_underground has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
jmignault has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
nikivi has joined #ruby
sdothum has quit [Client Quit]
sdothum has joined #ruby
DoubleMalt has joined #ruby
nikivi has quit [Quit: irc]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
manjaro-kde5_ has joined #ruby
suck has quit [Quit: Connection closed for inactivity]
brendan- has joined #ruby
nanoz has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
Yacker has joined #ruby
User458764 has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
sid_fules has quit [Read error: Connection reset by peer]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
allcentu1 has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 252 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cloud has quit [Ping timeout: 260 seconds]
Snickers has joined #ruby
tomphp has joined #ruby
jblack has joined #ruby
montyboy has quit [Ping timeout: 248 seconds]
dhollinger has quit [Ping timeout: 250 seconds]
dhollinger has joined #ruby
gr33n7007h has quit [Quit: WeeChat 1.6]
Kilo`byte has joined #ruby
jblack has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
GodFather has quit [Remote host closed the connection]
millerti has joined #ruby
minimalism has quit [Quit: minimalism]
CloCkWeRX has quit [Ping timeout: 245 seconds]
catbusters has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
GodFather has joined #ruby
catbusters has joined #ruby
Yacker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dasher00 has quit [Ping timeout: 260 seconds]
Yacker has joined #ruby
Yacker has quit [Client Quit]
nankyokusei has quit [Ping timeout: 258 seconds]
dasher00 has joined #ruby
gener1c2 has joined #ruby
<gener1c2> Hello
<gener1c2> How do I find out what test suit is used in a specific project and how to use ot
scripore has quit [Quit: This computer has gone to sleep]
_sfiguser has joined #ruby
<gener1c2> All I see is a runner.rb and require testunit
Devalo has joined #ruby
dviola has joined #ruby
scripore has joined #ruby
CloCkWeRX has joined #ruby
Puffball_ has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
brendan- has joined #ruby
Puffball has joined #ruby
Emmanuel_Chanel has joined #ruby
Puffball_ has joined #ruby
cloud has joined #ruby
ace05 has quit [Remote host closed the connection]
Puffball has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lenwood has joined #ruby
manjaro-kde5_ has quit [Ping timeout: 252 seconds]
Anonymoose has joined #ruby
sid_fules has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Anonymoose is now known as Guest67365
kimegede has quit [Quit: Leaving...]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
Definity has quit [Read error: No route to host]
gingray has joined #ruby
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 245 seconds]
dasher00 has quit [Ping timeout: 258 seconds]
Puffball has joined #ruby
poikon has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
AlecTaylor has quit [Quit: Leaving]
Puffball_ has quit [Ping timeout: 245 seconds]
sid_fules has quit [Remote host closed the connection]
poikon has joined #ruby
banisterfiend has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
Definity has joined #ruby
hogetaro has quit [Quit: Leaving...]
lenwood has quit [Ping timeout: 250 seconds]
hogetaro has joined #ruby
sid_fules has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
dasher00 has joined #ruby
pawnbox has joined #ruby
hogetaro has quit [Quit: Leaving...]
blackbombay has joined #ruby
j416 has quit [Ping timeout: 265 seconds]
j416 has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
jhack has quit [Client Quit]
rippa has joined #ruby
hahuang65 has joined #ruby
hogetaro has joined #ruby
montyboy has joined #ruby
cloud has quit [Quit: WeeChat 1.6]
matp has quit [Remote host closed the connection]
foxxx0 has quit [Quit: WeeChat 1.6]
cloud has joined #ruby
matp has joined #ruby
kirun has joined #ruby
blackbombay has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Ping timeout: 245 seconds]
fmcgeough has joined #ruby
xall has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Ping timeout: 268 seconds]
blackwind_123 has quit [Ping timeout: 250 seconds]
otherj has joined #ruby
DLSteve has joined #ruby
<otherj> how can I determine which version of a dependency a gem is trying to install?
<otherj> "tins requires Ruby version >= 2.0" ... I have a version of tins installed, so I don't know which one it wants
Devalo has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
elastix has joined #ruby
Devalo has joined #ruby
foxxx0 has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joelwallis has joined #ruby
Derperperd has joined #ruby
<elomatreb> otherj: If I'm understanding your issue correctly, you're not having a dependency issue, but rather a Ruby version issue. Try `ruby -v`
<otherj> well, I actually have to use the old version of ruby, and I'm trying to install a super old version of passenger
<otherj> (1.8.7)
<elomatreb> Anything below 2.1 is not even security supported anymore, and there were breaking syntax changes. Some gems can't work with older Ruby versions
<otherj> I know that, but the version of passenger I need does work with 1.8.7
<otherj> I assume either it has tins as a dependency without a version, or something it installs requires tins
<otherj> it's passenger 3.0.5 if that helps
Devalo has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
<elomatreb> If you have a Gemfile, you could try to lock it to a version older than that
<otherj> yeah, I also know that
<otherj> I mean, I installed a version of tins that works with 1.8.7, just not the right one apparently
scripore has quit [Client Quit]
<otherj> it's actually to fix something in a rails 1.2.3 app, so it doesn't even have a friggin' gemfile
<otherj> crazy times, right?
JesseH has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
joelwallis has quit [Quit: Leaving]
ebash has joined #ruby
roamingdog has joined #ruby
jgnagy has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
blackbombay has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scripore has joined #ruby
tomphp has joined #ruby
blackbom1 has joined #ruby
nikivi has joined #ruby
blackbombay has quit [Ping timeout: 252 seconds]
ace05 has joined #ruby
<otherj> I guess irc isn't the right place for this kind of question. thanks anyway for your best effort.
naftilos76 has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
otherj has quit [Quit: .]
blackbom1 has quit [Ping timeout: 246 seconds]
tau has quit [Remote host closed the connection]
dionysus69 has quit [Read error: Connection reset by peer]
Flonk has quit [Quit: ZNC - http://znc.in]
dasher^0_o has joined #ruby
dionysus69 has joined #ruby
pilne has joined #ruby
blackbom1 has joined #ruby
tau has joined #ruby
dasher00 has quit [Ping timeout: 268 seconds]
tk__ has quit [Quit: ばいばい]
shashin has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
harfangk has joined #ruby
Flonk has joined #ruby
shinnya has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
xall has joined #ruby
Derperperd has quit [Quit: Derperperd]
MK2012[m] has joined #ruby
elastix has quit [Quit: Leaving]
montyboy has quit []
govg has quit [Ping timeout: 268 seconds]
matp has quit [Remote host closed the connection]
matp has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tref has joined #ruby
Fichtenstein has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
tomphp has quit [Client Quit]
Fichtenstein has joined #ruby
Guest67365 has quit [Quit: Leaving]
Anonymoose has joined #ruby
Anonymoose is now known as Guest28941
Guest28941 has quit [Remote host closed the connection]
reverberations has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
nankyokusei has joined #ruby
dasher^0_o has quit [Ping timeout: 256 seconds]
iMadper has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
dasher^0_o has joined #ruby
Derperperd has joined #ruby
Devalo has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toretore has quit [Ping timeout: 268 seconds]
zeroDi has joined #ruby
tomphp has joined #ruby
govg has joined #ruby
tomphp has quit [Client Quit]
jgnagy has quit [Remote host closed the connection]
johnny56 has quit [Ping timeout: 246 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
jgnagy has joined #ruby
tomphp has joined #ruby
MK2012[m] has left #ruby ["User left"]
tomphp has quit [Client Quit]
johnny56 has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
VladGh has quit [Remote host closed the connection]
nankyoku_ has joined #ruby
<lupine> blast from the past :D
tomphp has joined #ruby
tomphp has quit [Client Quit]
VladGh has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
jgnagy has quit [Ping timeout: 256 seconds]
JeanCarloMachado has joined #ruby
scripore has joined #ruby
benlieb has joined #ruby
buglessdr has joined #ruby
roamingdog has quit [Remote host closed the connection]
blackbombay has joined #ruby
User458764 has joined #ruby
railswebdev has joined #ruby
Devalo has quit [Remote host closed the connection]
suck has joined #ruby
Devalo has joined #ruby
blackbom1 has quit [Ping timeout: 252 seconds]
chris2 has quit [Ping timeout: 246 seconds]
nankyoku_ has quit [Ping timeout: 250 seconds]
buglessdr has quit [Ping timeout: 268 seconds]
Devalo has quit [Ping timeout: 260 seconds]
c0mrad3 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
scripore has quit [Remote host closed the connection]
jmignault has joined #ruby
bumao has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
sid_fules has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
woodruffw has quit [Ping timeout: 260 seconds]
chris2 has joined #ruby
nadir has joined #ruby
blackwind_123 has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
montyboy has joined #ruby
montyboy has quit [Client Quit]
montyboy has joined #ruby
gingray has quit [Ping timeout: 268 seconds]
bumao has joined #ruby
nikivi has quit [Quit: zzz]
buglessdr has joined #ruby
Macaveli has joined #ruby
jeanlinux has joined #ruby
Dimik has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
jeanlinu_ has joined #ruby
DoubleMalt has quit [Ping timeout: 245 seconds]
jeanlinux has quit [Ping timeout: 258 seconds]
blackwind_123 has joined #ruby
banisterfiend has joined #ruby
buglessdr has quit [Ping timeout: 268 seconds]
jeanlinux has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeanlinu_ has quit [Ping timeout: 256 seconds]
Channel6 has joined #ruby
tvw has joined #ruby
jeanlinux has quit [Ping timeout: 260 seconds]
marr has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
jmignault has quit [Ping timeout: 258 seconds]
fullofcaffeine has joined #ruby
scripore has joined #ruby
chopin has joined #ruby
firstdayonthejob has joined #ruby
scripore has quit [Client Quit]
DoubleMalt has joined #ruby
fullofca_ has joined #ruby
fullofcaffeine has quit [Ping timeout: 248 seconds]
fullofcaffeine has joined #ruby
symm- has joined #ruby
gingray has joined #ruby
Devalo has joined #ruby
fullofca_ has quit [Ping timeout: 244 seconds]
GodFather has quit [Ping timeout: 244 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
sid_fules has quit [Ping timeout: 260 seconds]
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
tvw has quit []
GodFather has joined #ruby
kbdkode is now known as sudokbdkode
roamingdog has joined #ruby
sudokbdkode is now known as sudokodekbd
vuoto has joined #ruby
shashin has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has joined #ruby
sudokodekbd is now known as kbdkode
ebash has quit [Quit: Leaving]
aryaching has joined #ruby
workmad3 has joined #ruby
roamingdog has quit [Ping timeout: 248 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Salih has joined #ruby
vikaton has joined #ruby
kimegede has joined #ruby
bumao has quit [Ping timeout: 256 seconds]
symm-_ has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
woodruffw has joined #ruby
kimegede has quit [Ping timeout: 256 seconds]
tlaxkit has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
govg has quit [Ping timeout: 250 seconds]
handicraftsman has joined #ruby
govg has joined #ruby
<handicraftsman> Hello, world!
workmad3 has quit [Ping timeout: 258 seconds]
constantinexvi has quit [Quit: Exiting]
vuoto has quit [Remote host closed the connection]
fmcgeough has quit [Read error: Connection reset by peer]
fmcgeough has joined #ruby
nofxx_ has joined #ruby
howdoi has joined #ruby
_pop_ebx has joined #ruby
chopin has quit [Remote host closed the connection]
JoshS has quit [Quit: Leaving]
chopin has joined #ruby
_pop_ebx_ has joined #ruby
_pop_ebx_ has quit [Client Quit]
_pop_ebx_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
_pop_ebx has quit [Ping timeout: 256 seconds]
jeanlinux has joined #ruby
<gener1c> hello handicraftsman
_pop_ebx_ has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
<gener1c> puts "how are u?"
_pop_ebx has joined #ruby
<handicraftsman> print "As always"; puts;
chopin has quit [Ping timeout: 265 seconds]
<gener1c> print "thats good to hear" + CRLF
nikivi has joined #ruby
<handicraftsman> gener1c, :D
<handicraftsman> gener1c, is 'generic' taken?
Channel6 has quit [Quit: Leaving]
<handicraftsman> gener1c, puts Nick("generic").taken?
cajone has quit [Ping timeout: 250 seconds]
eizua has joined #ruby
cajone has joined #ruby
jeanlinux has quit [Ping timeout: 256 seconds]
not_underground has quit [Remote host closed the connection]
<handicraftsman> @adaedra, nice nick :D
sid_fules has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
joneshf-laptop has joined #ruby
mrwn has joined #ruby
jgnagy has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
Guest48386 has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
fullofcaffeine has quit [Remote host closed the connection]
muelleme has joined #ruby
maokomioko has joined #ruby
maokomioko has quit [Client Quit]
fullofcaffeine has joined #ruby
jgnagy has quit [Ping timeout: 246 seconds]
govg has quit [Ping timeout: 256 seconds]
herbmillerjr has joined #ruby
toretore has joined #ruby
enterprisey has joined #ruby
handicraftsman has left #ruby ["Leaving"]
toretore has quit [Ping timeout: 260 seconds]
tref has quit [Quit: tref]
FastJack has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
mrwn has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 246 seconds]
mtkd has joined #ruby
dasher^0_o has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
Derperperd has quit [Read error: Connection reset by peer]
dasher^0_o has joined #ruby
Derperperd has joined #ruby
benlieb has quit [Quit: benlieb]
<hardest> .
benlieb has joined #ruby
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
cajone has left #ruby [#ruby]
muelleme has quit [Ping timeout: 252 seconds]
dasher^0_o has quit [Ping timeout: 245 seconds]
miqlas-H has joined #ruby
shashin has joined #ruby
shashin has quit [Client Quit]
fmcgeough has quit [Ping timeout: 250 seconds]
marsjaninzmarsa has joined #ruby
_pop_ebx has quit [Quit: Leaving]
careta has quit [Ping timeout: 256 seconds]
eizua has quit [Quit: Leaving]
Eiam has quit [Ping timeout: 260 seconds]
gingray has quit [Ping timeout: 256 seconds]
govg has joined #ruby
kareelee has quit []
sdelic has joined #ruby
hahuang65 has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
dasher00 has joined #ruby
cajone has joined #ruby
fullofca_ has joined #ruby
konsolebox has joined #ruby
muelleme has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
iwmrby has joined #ruby
sid_fules has quit [Remote host closed the connection]
dasher00 has quit [Ping timeout: 244 seconds]
buglessdr has joined #ruby
vuoto has joined #ruby
govg has quit [Ping timeout: 260 seconds]
jeanlinux has joined #ruby
gingray has joined #ruby
zapata has quit [Quit: WeeChat 1.6]
zapata has joined #ruby
Salih has quit [Quit: Leaving]
Asher has quit [Quit: Leaving.]
malconis has joined #ruby
jeanlinux has quit [Ping timeout: 245 seconds]
nunchuck has quit [Read error: Connection reset by peer]
fmcgeough has joined #ruby
dasher00 has joined #ruby
dextertzu has quit [Ping timeout: 250 seconds]
breakaway has quit [Ping timeout: 248 seconds]
chopin has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeanlinux has joined #ruby
nikivi has quit [Quit: zzz]
JoshS has joined #ruby
harai_ has joined #ruby
nikivi has joined #ruby
poloych has joined #ruby
poloych has quit [Remote host closed the connection]
<hightower2> Hey, is there a method that does similar effect to Array#delete but accepts an array of values to remove?
<bougyman> -
Devalo has joined #ruby
<bougyman> >> [:a, :b, :c] - [:b, :c]
<ruby[bot]> bougyman: # => [:a] (https://eval.in/680962)
jeanlinux has quit [Ping timeout: 268 seconds]
<hightower2> bougyman, right, but I want to modify the first array, not create a new object
jeanlinux has joined #ruby
<bougyman> >> a = [:a, :b, :c]; a.delete_if { |e| [:b, :c].include? t }; a
<ruby[bot]> bougyman: # => undefined local variable or method `t' for main:Object (NameError) ...check link for more (https://eval.in/680963)
<bougyman> eh
<bougyman> >> a = [:a, :b, :c]; a.delete_if { |e| [:b, :c].include? e }; a
<ruby[bot]> bougyman: # => [:a] (https://eval.in/680964)
govg has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
nikivi has quit [Quit: zzz]
`tim` has joined #ruby
codfection has quit [Ping timeout: 256 seconds]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
bluOxigen has joined #ruby
jeanlinu_ has joined #ruby
jeanlinux has quit [Ping timeout: 248 seconds]
vuoto has quit [Remote host closed the connection]
<hightower2> Cool, will try with that
<hightower2> Another question, is there a way to assign to multiple hash keys at once?
<hightower2> well, probably will do with Hash[ array1.zip array2]
jeanlinux has joined #ruby
jeanlinu_ has quit [Ping timeout: 246 seconds]
Channel6 has joined #ruby
buglessdr has quit [Ping timeout: 260 seconds]
FastJack has joined #ruby
allcentu1 has joined #ruby
jeanlinux has quit [Ping timeout: 245 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
vuoto has joined #ruby
<hightower2> Is there a better way of doing this:
<hightower2> field_names = received_keys & allowed_keys
<hightower2> my_hash = Hash[ field_names.zip data.values_at( field_names)]
handicraftsman has joined #ruby
<hightower2> ah yes, with #slice
toretore has joined #ruby
oryman has joined #ruby
oryman has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 244 seconds]
vuoto has quit [Remote host closed the connection]
nikivi has joined #ruby
TilakeTikka has joined #ruby
Devalo has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
jackjackdripper has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
TilakeTikka has quit [Remote host closed the connection]
solocshaw has joined #ruby
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
xonico has joined #ruby
OS-18137 has joined #ruby
andrzejku_ has joined #ruby
<andrzejku_> hello
<andrzejku_> :)
<handicraftsman> Hi
<handicraftsman> Go + Ruby = ??
<OS-18137> URI::encode(str) does not encode single quote, is there a better way to do this?
<andrzejku_> Perl?
`tim` is now known as justbleed
banisterfiend has joined #ruby
sid_fules has joined #ruby
davix[matrix] has quit [Ping timeout: 240 seconds]
M-shine has quit [Ping timeout: 245 seconds]
M-mistake has quit [Ping timeout: 246 seconds]
<handicraftsman> Ping!
kineticrootkit[m has quit [Ping timeout: 240 seconds]
fladson[m] has quit [Ping timeout: 240 seconds]
eliotk[m] has quit [Ping timeout: 245 seconds]
serah[m] has quit [Ping timeout: 245 seconds]
M-manveru has quit [Ping timeout: 245 seconds]
cpfeilschifter[m has quit [Ping timeout: 260 seconds]
meaggan[m] has quit [Ping timeout: 260 seconds]
laithshadeed[m] has quit [Ping timeout: 260 seconds]
bascht has quit [Ping timeout: 260 seconds]
TheGillies has quit [Ping timeout: 260 seconds]
Luca[m] has quit [Ping timeout: 258 seconds]
riotgsmport[m] has quit [Ping timeout: 256 seconds]
velu_aon[m] has quit [Ping timeout: 260 seconds]
TPug has joined #ruby
<OS-18137> ive been reading the documentation at roby-doc.org but the docs for URI::escape say nothing about modifying which chars get encdoded, anyone know how to do that / why URI::escape does not encode single quotes
nikivi has quit [Quit: zzz]
ghostlight has quit [Ping timeout: 245 seconds]
sid_fules has quit [Remote host closed the connection]
<OS-18137> perhaps i should use pack to convent ' to %27?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
byte512 has quit [Ping timeout: 265 seconds]
<gr33n7007h> OS-18137: URI.escape "foo'bar", "'"
<gr33n7007h> >> require 'uri'; URI.escape "foo'bar", "'"
<ruby[bot]> gr33n7007h: # => "foo%27bar" (https://eval.in/680974)
marsjaninzmarsa has joined #ruby
Salih has joined #ruby
<OS-18137> gr33n7007h: cool, thonks
<OS-18137> thanks
ghostlight has joined #ruby
<gr33n7007h> np
<OS-18137> looks like CGI::escape is more like what i was after
<OS-18137> but that works too
sid_fules has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
<gr33n7007h> yeah, cgi will escape all
xonico has quit [Remote host closed the connection]
zeroDi has quit [Quit: WeeChat 1.6]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
hightower3 has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
matp has quit [Quit: ZZzzzZz...]
JeanCarloMachado has quit [Ping timeout: 246 seconds]
matp has joined #ruby
fullofca_ has quit [Ping timeout: 252 seconds]
nikivi has joined #ruby
solocshaw has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
fmcgeough has quit [Quit: fmcgeough]
Guest68124 is now known as Tristan-Speccy
Salih has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
muelleme has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
d0nn1e has quit [Ping timeout: 260 seconds]
solocshaw has quit [Quit: solocshaw]
Immune has joined #ruby
Salih has joined #ruby
benlieb has quit [Quit: benlieb]
DLSteve has joined #ruby
skweek has joined #ruby
bumao has joined #ruby
Immune_ has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
tlaxkit has quit [Ping timeout: 258 seconds]
tlaxkit has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
ace05 has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
Devalo has quit []
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
workmad3 has joined #ruby
sid_fules has joined #ruby
sid_fules has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sid_fules has joined #ruby
roamingdog has joined #ruby
tomphp has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
yardenbar has quit [Ping timeout: 250 seconds]
Beast has quit [Quit: Leaving]
roamingdog has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
_sfiguser has joined #ruby
hahuang65 has joined #ruby
last_staff has quit [Quit: last_staff]
jgt has joined #ruby
dextertzu has joined #ruby
jphase has quit [Remote host closed the connection]
symm-_ has quit [Quit: Leaving...]
symm- has joined #ruby
sdelic has quit [Read error: Connection reset by peer]
claudiuinberlin has quit [Remote host closed the connection]
<gener1c> mahalo
<gener1c> does anyone know how to test ruby core?
hahuang65 has quit [Ping timeout: 250 seconds]
claudiuinberlin has joined #ruby
johnny56 has quit [Ping timeout: 246 seconds]
jgt has quit [Ping timeout: 248 seconds]
johnny56 has joined #ruby
jgt has joined #ruby
<gener1c> ruby test/runner.rb should work?
nickjj has quit [Read error: Connection reset by peer]
<gener1c> hiroshi?
MrBusiness has joined #ruby
<gener1c> shibata?
MrBusiness is now known as Mrbusiness2
Mrbusiness2 is now known as MrBusiness2
jgt has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeanlinux has joined #ruby
<gener1c> thanks
fullofcaffeine has joined #ruby
<gener1c> md is not the same as rdoc
<gener1c> was confusing
workmad3 has quit [Ping timeout: 244 seconds]
<handicraftsman> ISS-stream
jgt has joined #ruby
<gener1c> too bad its in jap
<gener1c> p
<handicraftsman> @gener1c, what's that?
<gener1c> testing ruby core
<gener1c> lol
<gener1c> handicraftsman: thats really pretty
konsolebox has quit [Quit: Leaving]
jcao219 has joined #ruby
jeanlinux has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
jgt has joined #ruby
jeanlinux has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<OS-18137> why am i getting this error? http://pastie.org/10965861
tomphp has joined #ruby
SCHAAP137 has joined #ruby
xall has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
jeanlinu_ has joined #ruby
jeanlinux has quit [Ping timeout: 258 seconds]
kimegede has joined #ruby
Salih has quit [Quit: Leaving]
kimegede has quit [Client Quit]
jeanlinu_ has quit [Ping timeout: 260 seconds]
redpants has joined #ruby
<hightower3> What's a good non-rails way to turn all hash keys to symbols?
dionysus69 has quit [Ping timeout: 250 seconds]
<c-c> splat to_sym?
brendan- has joined #ruby
<gr33n7007h> OS-18137: you didn't pass mode: 'rb'
andrzejku_ has quit [Quit: Leaving]
<gr33n7007h> OS-18137: why not use File.binread
<hightower3> c-c, I don't follow how this would work in practice?
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
<c-c> hightower3: lets see
jgt has quit [Ping timeout: 240 seconds]
<c-c> - and no, not splat, the &: -sugar...
jeanlinux has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
jgnagy has joined #ruby
<c-c> >> h = { foo: 1, bar: 0 }; h.map!(&:each.to_sym)
<ruby[bot]> c-c: # => undefined method `map!' for {:foo=>1, :bar=>0}:Hash ...check link for more (https://eval.in/680993)
<c-c> >> h = { foo: 1, bar: 0 }; h.map(&:each.to_sym)
<ruby[bot]> c-c: # => [#<Enumerator: [:foo, 1]:each>, #<Enumerator: [:bar, 0]:each>] (https://eval.in/680994)
<c-c> ah
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gener1c2 has quit [Ping timeout: 258 seconds]
tomphp has joined #ruby
jgt has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 246 seconds]
jeanlinux has quit [Ping timeout: 252 seconds]
weaksauce has joined #ruby
<gr33n7007h> >> h = {a: 1, b: 2, c: 3}; h.map { |k,v| [k.intern, v] }.to_h
<ruby[bot]> gr33n7007h: # => {:a=>1, :b=>2, :c=>3} (https://eval.in/680995)
railswebdev has joined #ruby
chouhoulis has quit [Remote host closed the connection]
mati_urunda has joined #ruby
nicoulaj has joined #ruby
<gr33n7007h> >> require 'json'; JSON.parse({a: 1, b: 2, c: 3}, symbolize_names: true)
<ruby[bot]> gr33n7007h: # => no implicit conversion of Hash into String (TypeError) ...check link for more (https://eval.in/680996)
<gr33n7007h> >> require 'json'; JSON.parse({a: 1, b: 2, c: 3}.to_json, symbolize_names: true)
<ruby[bot]> gr33n7007h: # => {:a=>1, :b=>2, :c=>3} (https://eval.in/680997)
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fmcgeough has joined #ruby
<gr33n7007h> even though i am using symbols as keys :P
ramfjord has joined #ruby
<hightower3> gr33n7007h, yeah :)
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
jeanlinux has joined #ruby
ur5us has joined #ruby
nikivi has quit [Quit: zzz]
jeanlinu_ has joined #ruby
jeanlinux has quit [Ping timeout: 256 seconds]
doublemalt_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jeanlinu_ has quit [Ping timeout: 245 seconds]
Jackneill has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 256 seconds]
ur5us has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
jeanlinux has joined #ruby
banisterfiend has joined #ruby
dionysus69 has joined #ruby
lenwood has joined #ruby
jeanlinu_ has joined #ruby
jeanlinux has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
<c-c> I was in the other room and then realized
<c-c> >> h = { foo: 1, bar: 0 }; h.each{ |k,v| h[k] = (&:each.to_sym)
<ruby[bot]> c-c: # => /tmp/execpad-fefc927f1024/source-fefc927f1024:2: syntax error, unexpected & ...check link for more (https://eval.in/681005)
SteenJobs has joined #ruby
<c-c> oops
<c-c> >> h = { foo: 1, bar: 0 }; h.each{ |k,v| h[k] = v.to_sym }
<ruby[bot]> c-c: # => undefined method `to_sym' for 1:Fixnum ...check link for more (https://eval.in/681006)
enterprisey has quit [Quit: Leaving]
<c-c> lol yes well
<c-c> but it works for strings!
vikaton has quit [Quit: Connection closed for inactivity]
<gr33n7007h> c-c: h[k] is getting the value
<c-c> maybe add unless v.class == Fixnum
<c-c> gr33n7007h: yes
jeanlinu_ has quit [Ping timeout: 250 seconds]
serard has joined #ruby
<serard> hello
<serard> How can I deep_merge an openstruct object with another openstruct object ? (my context is a Vagrantfile, so I cannot import any gem ..)
jgt has quit [Ping timeout: 256 seconds]
<serard> Got it, using .to_h then using OpenStruct.new(myvarà)
brent__ has joined #ruby
aidalgol has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Derperperd has quit [Quit: Derperperd]
gusrub has joined #ruby
gusrub has quit [Client Quit]
jeanlinux has joined #ruby
nikivi has joined #ruby
nikivi has quit [Client Quit]
jgt has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
jmcc____________ is now known as jmcc
jeanlinux has quit [Ping timeout: 256 seconds]
sphex has quit [Read error: Connection reset by peer]
sphex has joined #ruby
cdg has quit [Remote host closed the connection]
centrx has joined #ruby
nikivi has joined #ruby
cdg has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
sid_fules has quit [Read error: Connection reset by peer]
Immune_ has quit [Ping timeout: 258 seconds]
nikivi has quit [Client Quit]
dionysus69 has quit [Ping timeout: 265 seconds]
cdg has quit [Ping timeout: 240 seconds]
iwmrby has quit [Quit: WeeChat 1.6]
chouhoulis has joined #ruby
Flonk has quit [Quit: ZNC - http://znc.in]
gr33n7007h has quit [Quit: WeeChat 1.6]
skweek has quit [Ping timeout: 244 seconds]
Flonk has joined #ruby
montyboy has quit []
SCHAAP137 has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 245 seconds]
jackjackdripper has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
handicraftsman has quit [Quit: Leaving]
railswebdev has joined #ruby
breakaway has joined #ruby
jcao219 has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
dasher00 has quit [Ping timeout: 246 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
dasher00 has joined #ruby
gingray has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
jcao219 has joined #ruby
fullofcaffeine has quit [Ping timeout: 246 seconds]
firstdayonthejob has quit [Ping timeout: 258 seconds]
hahuang65 has joined #ruby
douglascorrea has joined #ruby
brendan- has joined #ruby
firstdayonthejob has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
mim1k|wo1k has quit [Read error: Connection reset by peer]
mim1k|work has joined #ruby
jgt has quit [Ping timeout: 245 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sid_fules has joined #ruby
SCHAAP137 has joined #ruby
SDr has joined #ruby
SDr has left #ruby [#ruby]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
claudiuinberlin has quit []
biberu has quit []
justbleed has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pragmaticus has quit [Ping timeout: 245 seconds]
gr33n7007h has joined #ruby
Yacker has joined #ruby
sid_fules has quit [Remote host closed the connection]
solocshaw has joined #ruby
dasher00 has quit [Read error: Connection reset by peer]
suck has quit [Quit: Connection closed for inactivity]
Bish has joined #ruby
<Bish> can i tell regex to leave the last char out of the match?
charliesome has joined #ruby
<Bish> so the string has to end with char X, but X will not be consumed?
cibs has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
cibs has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
chouhoulis has quit [Remote host closed the connection]
eladmeidar has joined #ruby
chouhoulis has joined #ruby
<Bish> well i learned what a lookahead is, always wondered what that is
solocshaw has quit [Ping timeout: 258 seconds]
firstdayonthejob has quit [Ping timeout: 258 seconds]
claw has quit [Ping timeout: 265 seconds]
claw has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
SCHAAP137 has quit [Quit: Leaving]
railswebdev has joined #ruby
eladmeidar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx> >> RUBY_VERSION
<ruby[bot]> centrx: # => "2.3.0" (https://eval.in/681020)
l33n has joined #ruby
<centrx> >> [12,34,53,78,83].map.with_index { |n, i| "The #{i}th number is #{n}" }
<ruby[bot]> centrx: # => ["The 0th number is 12", "The 1th number is 34", "The 2th number is 53", "The 3th number is 78", "Th ...check link for more (https://eval.in/681021)
tlaxkit has quit [Ping timeout: 248 seconds]
<centrx> l33n: so map returns another array, where each element from the old array is mapped to a new value in the new array
<centrx> l33n: in this case, we end up with an array of strings
<l33n> ok
<Bish> >> [1,2,3,4].map { |x| x**2 }
<Bish> easier example, isn't it?
<centrx> yeah
<Bish> >> [1,2,3,4].map { |x| x**2 }
<ruby[bot]> Bish: # => [1, 4, 9, 16] (https://eval.in/681022)
zacts has quit [Quit: WeeChat 1.6]
<l33n> so in the example, how do i reference the json
<l33n> can i just put
<l33n> numbers.map.with_index
<l33n> if ive parsed the json
* Bish didn't see the regex
aef has quit [Remote host closed the connection]
* Bish meant json
<l33n> its {"numbers":"1, 3, 6", "text":"test"}
zacts has joined #ruby
tlaxkit has joined #ruby
dasher00 has joined #ruby
jgt has joined #ruby
aef has joined #ruby
<Bish> and what do you want to do?
<Bish> and why isn't it
<Bish> >> require 'json';{numbers:[1,3,6],text:'test'}.to_json
<ruby[bot]> Bish: # => "{\"numbers\":[1,3,6],\"text\":\"test\"}" (https://eval.in/681023)
<Bish> or is that the goal you're trying to achieve?
<Bish> that numbers becomes an array?
<l33n> gist.github.com/anonymous/1687b9d75041e019884f232307816ecd
<Bish> >> "testet".gsub(/(test|tet)/,'t')
<ruby[bot]> Bish: # => "tet" (https://eval.in/681024)
jenrzzz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Bish> can i make gsub respect it's own changes?
Fernando-Basso has quit [Quit: WeeChat 1.6]
<Bish> not like in multi substitution, but kinda
firstdayonthejob has joined #ruby
<l33n> bish im trying to use the json i parse in that code and then apply the map with index
<l33n> Bish
<Bish> sorry, i don't understand
<Bish> can you give me the desired output?
<l33n> Number 1: 1
<l33n> Number 2: 6
<l33n> The text is: test
<l33n> Number 3: 3
<Bish> what is that.. do you want your program to print that?
<l33n> with the json being {"numbers":"1, 3, 6", "text":"test"}
<c-c> >> require 'json';{numbers:[1,3,6],text:'test'}.to_json.map { |k, v| p k,v }
<l33n> yeah, i want to write that to a file
<ruby[bot]> c-c: # => undefined method `map' for "{\"numbers\":[1,3,6],\"text\":\"test\"}":String ...check link for more (https://eval.in/681025)
<Bish> well, your json is not entirely correct, since "1, 3, 6" is a string
<c-c> lol thats a string
<Bish> c-c: json is always a string
<c-c> so I guess a JSON object is returned, that to hsh first
<Bish> there is no "json object" json is parsed and turned into a ruby hash
<Bish> and as soon as you call .to_json it will be serialized in string agian
<c-c> why does it say '.to_json
<Bish> because that's what json is
<Bish> data serialized into a string
<l33n> ok
<apeiros> ?jsonobject
<ruby[bot]> there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
<c-c> indeed it looks like so
tlaxkit has quit [Quit: ¡Adiós!]
<Bish> apeiros: can i do that, to? :D
<apeiros> sure
<apeiros> factoids are public
<Bish> but i think i explained it better *taps himself on the shoulder*
<c-c> ?help
<ruby[bot]> You can find an overview of my commands at http://ruby-community.com/ruboto/commands
<Bish> apeiros: can you answer my gsub question :3?
<apeiros> can you ask it again?
<l33n> so bish, i meant it to be {numbers:[1,3,6],text:'test'} my bad
<l33n> thats the json
<l33n> i parsed it, and now i want to use map with index
<Bish> apeiros: "tested".gsub(/(test|ted)/,'t')
nunchuck has joined #ruby
<Bish> is there something i can do so gsub does multi substituation
<apeiros> overlapping?
<c-c> global flag?
<Bish> >> "tested".gsub(/(test|ted)/g,'t')
<ruby[bot]> Bish: # => /tmp/execpad-cde768d98550/source-cde768d98550:2: unknown regexp option - g (https://eval.in/681026)
<Bish> global flag? dafuq how did i fall for this
<apeiros> I wouldn't know how
<Bish> c-c: you are from the devilish javascript world are you
<apeiros> c-c: no. ruby doesn't have that.
<Bish> aren't you*
<c-c> Oh, trailing /g doesn't work?
<apeiros> unlike other languages, ruby doesn't consider global/non-global to be a responsibility of the expression
<apeiros> it puts that responsibility on the method
<Bish> and that's better </opinion>
charliesome has joined #ruby
jgt has quit [Ping timeout: 258 seconds]
<apeiros> IMO yes
JeanCarl1Machado has joined #ruby
<Bish> yeah, that was i was trying to say, in some case you got that as a question
<c-c> Bish: I was looking at a scheme game earlier and rust
<Bish> .scan was the reason i tried ruby still loving it
<apeiros> Bish: yeah, got that right after I wrote my line :)
<apeiros> Bish: hm, I'm actually not quite sure how I'd tackle that issue :-/
<apeiros> what would the expected result be in your example?
FastJack has quit [Ping timeout: 264 seconds]
<Bish> well i am parsing links with regex shouldn't have doene that in the first place
<Bish> i was trying to http://example.com/?something=123&test=#{some_val} replace the ruby style placeholders
<Bish> guess the much more sane way is to split the query part by '&'
<Bish> and join it
Fichtenstein has quit [Quit: Fichtenstein]
SCHAAP137 has joined #ruby
<c-c> perhaps theres a url parser you could use
<apeiros> Bish: but that's an entirely different problem
<apeiros> and that one is very easy
centrx has quit []
<apeiros> as long as you just want variables and not expressions, that is
<Bish> thing is, i wanted to remove the placeholders, and append them later on
alan_w has joined #ruby
kingkong- has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
<apeiros> str.gsub(/\#\{(\w+)\}/) { variables[$1] }
<Bish> that made it difficult
kirun has quit [Quit: Konversation terminated!]
<apeiros> I don't know what you mean by "append them later on"
<l33n> thanks Bish and centrx, I got it, slowly but finally understood through your direction
<Bish> >> rex = /(&|\?)([^=]+)=\#{([^}&]+)}(?=&|$)/; "http:/example.com/?test=#{test}&something=val123&heppa=3".gsub(rex) {''}
<ruby[bot]> Bish: # => wrong number of arguments (given 0, expected 2..3) (ArgumentError) ...check link for more (https://eval.in/681027)
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish> >> rex = /(&|\?)([^=]+)=\#{([^}&]+)}(?=&|$)/; "http:/example.com/?test=\#{test}&something=val123&heppa=3".gsub(rex) {''}
<ruby[bot]> Bish: # => "http:/example.com/&something=val123&heppa=3" (https://eval.in/681028)
<johnzorn> How do you guys work in ruby? every error is 10000 miles away from the actual problem. Is there a trick to getting sane dev environment? So far it has been a grind.
<Bish> see, how my query starts with &, and there is even more problems with this
<c-c> johnzorn: have you looked at pry?
<Bish> johnzorn: give me an example of that 1000 miles away error
<c-c> johnzorn: look at pry
<Bish> apeiros: and if i make the regex consume the &, the next parameter will not be recongized
<apeiros> use a lookbehind
<apeiros> I don't really understand why you make it that complex, though
<johnzorn> c-c, ya i'm using pry, pry-byebug, rspec/guard to make sure nothing is inadvertently breaking
<Bish> i just tried that, than i will have ?&
<apeiros> IMO just replace it where it is
<Bish> apeiros: what should i do?
<c-c> I like to have a desktop with editor on one side, and a terminal where code or its tests run whenever I save. A popup terminal for versioning, which I do in plain git. Eliminate distractions, keep it simple.
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Bish> oh, i get it
<apeiros> Bish: /(?<=&|\?)([^=]+)=\#\{(\w+)\}/
<Bish> what i am doing is, i am shortening that link to something with a random id
<Bish> and since that still has to be dynamic, i have to remove the dynamic stuff and append it to the "shortened" link
herbmillerjr has joined #ruby
<apeiros> or rather
<apeiros> Bish: /(?<=&|\?)([^=]+)=\#\{(\w+)\}&?/
User458764 has joined #ruby
<Bish> uh, why does that work
<c-c> Bish: doesn't nokogiri parse urls?
<Bish> it does, but i am not always working on html
<c-c> ??
<Bish> sometimes in plaintext
<Bish> and # is not a valid char in a link anyways
<c-c> plaintext urls? lost me there
<Bish> it has to be encoded
<l33n> centrx, can i do #{index+1} ?
bocaneri has quit [Read error: Connection reset by peer]
<Bish> l33n: sure, you can do anything in there
<gr33n7007h> l33n: you can you .with_index(1)
<Bish> apeiros: but now the last & won't be dropped
fullofcaffeine has joined #ruby
howdoi has joined #ruby
<apeiros> Bish: you know the drill. provide an example.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<Bish> >> "http://derp.de/?test=\#{test}&dasd=120&yo=17&test2=\#{lll}&first=\#{aaaa}&afd=\#{trololo}&yupidupi=\#{heppadeppa}".gsub(/(?<=&|\?)([^=]+)=\#\{(\w+)\}&?/) { '' }
<Bish> sorry for the strings,
<apeiros> hm, I see.
charliesome has quit [Client Quit]
xonico has joined #ruby
FastJack has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
<apeiros> and I think now I see why you want an overlapping regex. because you have to special case the first argument.
<bougyman> TIL 1,000 people holding hands = 1 mile
<bougyman> it took 2,800 people holding hands to surround a lake with a circumference of 2.8 miles.
<apeiros> I think your life will be easier to just parse the arguments, process the result, and construct the url again
<l33n> can you concatenate
<apeiros> bougyman: that many bored people?
<bougyman> apeiros: probably all.
<bougyman> it was a trump protest in N seattle.
mati_urunda has quit [Ping timeout: 250 seconds]
<Bish> apeiros: what is an overlapping regex :o
<apeiros> ah
<l33n> my_local_file.write(numbers.map.with_index { |num, index| "" + "etc")
<apeiros> Bish: the thing you asked at the beginning. one which matches part of the already substituted string again.
<l33n> does that work in ruby
<apeiros> it's not a technical term, mind you.
<Bish> ah, okay
<Bish> i learned it in cs as "multiple substitution"
<apeiros> I don't think that includes applying the substitution to already substituted parts
minimalism has joined #ruby
<Bish> it did, atleast for my professor
<apeiros> ok
jenrzzz has quit [Ping timeout: 260 seconds]
serard has quit [Ping timeout: 260 seconds]
firstdayonthejob has quit [Ping timeout: 248 seconds]
<l33n> gist.github.com/anonymous/dfb4f874672e195bee790499ff145daf
jeanlinux has joined #ruby