havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby
hightower2 has quit [Ping timeout: 258 seconds]
Rodya_ has quit [Remote host closed the connection]
bronson has joined #ruby
enilsen16 has quit [Quit: enilsen16]
bronson has quit [Ping timeout: 246 seconds]
coetry has quit [Ping timeout: 250 seconds]
hightower2 has joined #ruby
meadmoon has joined #ruby
meadmoon has quit [Client Quit]
alan_w has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
Lord_of_Life has quit [Excess Flood]
hightower3 has quit [Ping timeout: 260 seconds]
Lord_of_Life has joined #ruby
h1fuelcell has joined #ruby
astrobunny has quit [Remote host closed the connection]
coetry has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
h1fuelcell has quit [Remote host closed the connection]
dunpeal has joined #ruby
FastJack has joined #ruby
frozengeek has quit [Read error: Connection reset by peer]
frozengeek has joined #ruby
naprimer_2 has quit [Remote host closed the connection]
Azure|dc has joined #ruby
naprimer has joined #ruby
millerti has quit [Max SendQ exceeded]
Azure has quit [Ping timeout: 265 seconds]
nuck has quit [Ping timeout: 265 seconds]
postmodern has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
nuck has joined #ruby
Rodya_ has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanda has quit [Ping timeout: 248 seconds]
nadir|mobile has quit [Quit: Connection closed for inactivity]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jshjsh has quit [Ping timeout: 258 seconds]
nadir|mobile has joined #ruby
ur5us has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
LuckyABA has joined #ruby
hays_ has joined #ruby
nahra` has joined #ruby
dminuoso has quit [Ping timeout: 260 seconds]
dling` has joined #ruby
LuckyABA has quit [Client Quit]
dling has quit [Ping timeout: 260 seconds]
nahra has quit [Remote host closed the connection]
enilsen16 has joined #ruby
sniffer has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
hays has quit [Ping timeout: 260 seconds]
enilsen16 has quit [Client Quit]
dminuoso has joined #ruby
nettoweb has joined #ruby
sniff has joined #ruby
dunpeal has quit [Ping timeout: 256 seconds]
saneax is now known as saneax-_-|AFK
nankyokusei has quit [Ping timeout: 258 seconds]
LuckyABA has joined #ruby
astrobunny has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
saneax-_-|AFK is now known as saneax
enilsen16 has joined #ruby
xrlk has quit [Ping timeout: 256 seconds]
enilsen16 has quit [Client Quit]
saneax is now known as saneax-_-|AFK
Gasher has quit [Ping timeout: 260 seconds]
FooMunki has joined #ruby
dunpeal has joined #ruby
Devalo has joined #ruby
pytuger has joined #ruby
mrwn has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
rwb has joined #ruby
jenrzzz has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Remote host closed the connection]
moei has joined #ruby
Pumukel has joined #ruby
arescorpio has joined #ruby
LoneHermit has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
enyo has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
LoneHermit has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
arescorpio has quit [Ping timeout: 258 seconds]
h1fuelcell has joined #ruby
ascarter has quit [Ping timeout: 258 seconds]
enyo has quit [Ping timeout: 250 seconds]
ascarter has joined #ruby
agent_white has joined #ruby
Rodya_ has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
testuser1 has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
dar123 has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
hutch34 has joined #ruby
roshanavand has joined #ruby
ddffg has quit [Quit: Leaving]
frozengeek has quit [Read error: Connection reset by peer]
stevednd has quit [Remote host closed the connection]
frozengeek has joined #ruby
coetry has quit [Ping timeout: 260 seconds]
moted has joined #ruby
coetry has joined #ruby
h1fuelcell has joined #ruby
arescorpio has joined #ruby
hightower3 has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
xrlk has joined #ruby
h1fuelcell has joined #ruby
hightower2 has quit [Ping timeout: 248 seconds]
hightower2 has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
blackbom1 has joined #ruby
gusrub has quit [Remote host closed the connection]
hightower3 has quit [Ping timeout: 252 seconds]
sneakerhax has joined #ruby
aremaref has quit [Ping timeout: 268 seconds]
zipace has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
coetry has quit [Ping timeout: 258 seconds]
amclain has quit [Quit: Leaving]
bronson has quit [Ping timeout: 260 seconds]
unreal_ has joined #ruby
h1fuelcell has joined #ruby
charliesome has joined #ruby
jeyraof has joined #ruby
jhack has joined #ruby
unreal has quit [Ping timeout: 258 seconds]
Pumukel has joined #ruby
blackbom1 has quit [Ping timeout: 246 seconds]
ishigoya has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
Rodya__ has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Ping timeout: 258 seconds]
alan_w has joined #ruby
blackbom1 has joined #ruby
pwnd_nsfw has joined #ruby
kus has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
pwnd_nsfw` has quit [Ping timeout: 248 seconds]
ishigoya has joined #ruby
tvw has quit []
sdothum has joined #ruby
tubuliferous has joined #ruby
muuse has joined #ruby
blackbombay has joined #ruby
gusrub has joined #ruby
foption has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
d^sh_ has quit [Ping timeout: 258 seconds]
juanda has joined #ruby
d^sh has joined #ruby
Channel6 has joined #ruby
coetry has joined #ruby
blackbom1 has quit [Ping timeout: 260 seconds]
frozengeek has quit [Quit: frozengeek]
tubbo has quit [Ping timeout: 260 seconds]
lszhu has quit [Ping timeout: 260 seconds]
BubonicPestilenc has joined #ruby
lszhu has joined #ruby
gusrub has quit [Ping timeout: 265 seconds]
skweek has quit [Ping timeout: 252 seconds]
tubuliferous has quit [Ping timeout: 250 seconds]
cyphase has joined #ruby
pwnd_nsfw` has joined #ruby
jonjoe has joined #ruby
tubbo has joined #ruby
pwnd_nsfw has quit [Ping timeout: 265 seconds]
jonjoe has quit [Client Quit]
pawnbox has joined #ruby
coetry has quit [Ping timeout: 256 seconds]
hutch34 has quit [Quit: WeeChat 1.5]
Madper|Penniless is now known as Madper|AAFFKKK
tubuliferous has joined #ruby
dunpeal has quit [Quit: leaving]
dn` has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
coetry has joined #ruby
dn` has joined #ruby
pilne has quit [Quit: Quitting!]
jhack has quit [Quit: jhack]
jenrzzz has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
skweek has joined #ruby
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Remote host closed the connection]
ascarter has joined #ruby
BubonicPestilenc has quit [Quit: Textual IRC Client: www.textualapp.com]
oaklndr1 has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
optiz0r has quit [Ping timeout: 256 seconds]
LoneHermit has joined #ruby
FooMunki has quit [Quit: FooMunki]
enyo has joined #ruby
skweek has quit [Ping timeout: 248 seconds]
libastral has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
libastral has joined #ruby
h1fuelce_ has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
enyo has quit [Ping timeout: 250 seconds]
newbie1 has quit [Ping timeout: 256 seconds]
h1fuelcell has joined #ruby
aremaref has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
koooge has quit [Quit: Leaving...]
hanmac has quit [Ping timeout: 258 seconds]
h1fuelce_ has quit [Ping timeout: 256 seconds]
coetry has quit [Ping timeout: 246 seconds]
ascarter has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
gizmore|2 has joined #ruby
koooge has joined #ruby
gizmore has quit [Ping timeout: 264 seconds]
aremaref has quit [Ping timeout: 246 seconds]
hanmac has joined #ruby
ur5us has quit [Remote host closed the connection]
unreal has joined #ruby
tau is now known as iogf
coetry has joined #ruby
aremaref has joined #ruby
unreal_ has quit [Ping timeout: 264 seconds]
kies has quit [Ping timeout: 268 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
iogf has quit [Remote host closed the connection]
iogf has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
oaklndr1 has joined #ruby
SeepingN has joined #ruby
ur5us has joined #ruby
tubuliferous has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
machinewar has joined #ruby
<machinewar> what's preferred approach for testing an api client
<machinewar> webmock?
h1fuelcell has quit [Remote host closed the connection]
gusrub has joined #ruby
tdy has quit [Read error: Connection reset by peer]
Rodya__ has quit [Remote host closed the connection]
Azure|dc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> preferred? heh
bronson has joined #ruby
coetry has quit [Ping timeout: 268 seconds]
dtzu has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
h1fuelcell has joined #ruby
pwnd_nsfw has joined #ruby
Pumukel has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
Azure has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
xall has joined #ruby
tubuliferous has joined #ruby
johnzorn has quit [Ping timeout: 250 seconds]
h1fuelcell has quit [Ping timeout: 248 seconds]
tdy has joined #ruby
cyphase has quit [Ping timeout: 250 seconds]
gusrub has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 260 seconds]
d34th4ck3r has joined #ruby
optiz0r has joined #ruby
gusrub has joined #ruby
tubuliferous has joined #ruby
nowhere_man has joined #ruby
cyphase has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
juanda has quit [Quit: WeeChat 1.5]
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX1 has joined #ruby
coetry has joined #ruby
braincrash has joined #ruby
gix has quit [Ping timeout: 250 seconds]
roshanavand_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roshanavand has quit [Read error: Connection reset by peer]
roshanavand_ has quit [Read error: Connection reset by peer]
roshanavand__ has joined #ruby
gix has joined #ruby
tubuliferous has quit [Ping timeout: 268 seconds]
nankyokusei has joined #ruby
LoneHermit has joined #ruby
roshanavand__ has quit [Remote host closed the connection]
roshanavand__ has joined #ruby
tubuliferous has joined #ruby
coetry has quit [Ping timeout: 265 seconds]
enyo has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
GodFather has quit [Ping timeout: 246 seconds]
astrobunny has joined #ruby
jimwhiteman has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
JoshS has joined #ruby
astrobunny has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
enyo has quit [Ping timeout: 264 seconds]
ruby-lang735 has joined #ruby
roshanavand__ has quit [Ping timeout: 258 seconds]
gusrub has quit [Remote host closed the connection]
harfangk has joined #ruby
hightower3 has joined #ruby
jimwhiteman has quit [Quit: leaving]
coetry has joined #ruby
hightower2 has quit [Ping timeout: 256 seconds]
ruby-lang735 has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
chouhoulis has quit [Remote host closed the connection]
hightower2 has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
hightower3 has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
hightower3 has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
aremaref has quit [Ping timeout: 265 seconds]
gusrub has quit []
hightower2 has quit [Ping timeout: 246 seconds]
hightower2 has joined #ruby
Asher has quit [Quit: Leaving.]
testuser1 has quit [Quit: Leaving.]
Asher has joined #ruby
Madper|AAFFKKK is now known as Madper|Home
hightower3 has quit [Ping timeout: 268 seconds]
hightower3 has joined #ruby
blackbom1 has joined #ruby
hightower2 has quit [Ping timeout: 264 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackbombay has quit [Ping timeout: 248 seconds]
alan_w has quit [Quit: WeeChat 1.4]
duderonomy has joined #ruby
coetry has quit [Ping timeout: 250 seconds]
nowhere_man has quit [Remote host closed the connection]
hightower2 has joined #ruby
nowhere_man has joined #ruby
coetry has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
hightower3 has quit [Ping timeout: 248 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
armyriad has quit [Quit: Leaving]
LoneHermit has quit [Remote host closed the connection]
canteen4 has joined #ruby
Channel6 has quit [Quit: Leaving]
bocaneri has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
GodFather has joined #ruby
creat has joined #ruby
kus has quit [Ping timeout: 252 seconds]
blackbom1 has quit [Ping timeout: 260 seconds]
roshanavand__ has joined #ruby
blackbom1 has joined #ruby
d34th4ck3r has quit [Quit: d34th4ck3r]
pawnbox has joined #ruby
roshanavand__ has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d34th4ck3r has joined #ruby
roshanavand__ has joined #ruby
aremaref has joined #ruby
eggshke has joined #ruby
mattp_ has quit [Ping timeout: 258 seconds]
nowhere_man has quit [Ping timeout: 258 seconds]
astrobunny has joined #ruby
alan_w has joined #ruby
LoneHermit has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
alan_w has quit [Client Quit]
oaklndr1 has quit [Remote host closed the connection]
oaklndr1 has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
bronson has joined #ruby
polts has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
LoneHermit has quit [Remote host closed the connection]
blackbom1 has quit [Ping timeout: 245 seconds]
arescorpio has quit [Quit: Leaving.]
duderonomy has joined #ruby
Pumukel has joined #ruby
saneax-_-|AFK is now known as saneax
BrianJ has joined #ruby
coetry has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
pwnd_nsfw` has joined #ruby
aremaref has quit [Ping timeout: 256 seconds]
MrBismuth has joined #ruby
pwnd_nsfw has quit [Ping timeout: 268 seconds]
jshjsh has joined #ruby
coetry has joined #ruby
coetry has quit [Client Quit]
JoshS has quit [Ping timeout: 268 seconds]
pytuger has quit [Ping timeout: 245 seconds]
astrobunny has joined #ruby
Element119 has joined #ruby
Ikzi has quit [Remote host closed the connection]
enyo has joined #ruby
enyo has quit [Ping timeout: 248 seconds]
xall has quit [Ping timeout: 248 seconds]
nankyokusei has joined #ruby
rippa has joined #ruby
Element119 has left #ruby ["Leaving..."]
CloCkWeRX1 has quit [Quit: Leaving.]
nankyokusei has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
vedu has joined #ruby
iogf has quit [Remote host closed the connection]
dminuoso has quit [Changing host]
dminuoso has joined #ruby
bronson has joined #ruby
iwmrby has quit [Quit: WeeChat 1.6]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Ping timeout: 256 seconds]
Pumukel has joined #ruby
dardaysx1 has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
kassav has joined #ruby
dardaysx1 has left #ruby [#ruby]
JoshS has joined #ruby
Madper|Home is now known as Madper|hearse
jshjsh has quit [Ping timeout: 265 seconds]
lacour has quit [Quit: Leaving]
kassav has quit [Quit: kassav]
kassav_ has joined #ruby
kassav_ is now known as kassav
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowz has joined #ruby
LoneHerm_ has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
blaxter has joined #ruby
kies has joined #ruby
dionysus69 has joined #ruby
Robtop__ has joined #ruby
duderonomy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
aremaref has joined #ruby
koooge has quit [Quit: Leaving...]
xall has joined #ruby
yfeldblum has joined #ruby
<al2o3-cr> is this the only way to get subclasses of a given class
<al2o3-cr> ObjectSpace.each_object(Module).select { |mod| mod < Foo }
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> or am i missing some magic method somewhere?
chg_ is now known as chg
dionysus69 has quit [Remote host closed the connection]
pytuger has joined #ruby
dar123 has quit [Read error: Network is unreachable]
pawnbox has joined #ruby
<woodruffw> al2o3-cr: you can map over Class.constants with const_get and Array#grep that for Class
dionysus69 has joined #ruby
blaxter has quit [Quit: foo]
djbkd has joined #ruby
<woodruffw> oh, you wanted subclasses. hmm.
<woodruffw> yeah, the way you said seems to be the best way to do that
<woodruffw> what i linked is getting all classes under a namespace, which is definitely not going to always be what you want
spectrum has joined #ruby
<al2o3-cr> yeah, i can't see another way, but thanks anyway
<woodruffw> no problem, sorry for the initial misread
<al2o3-cr> no worries :)
LoneHermit has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
SesMan has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
iogf has joined #ruby
SpiffTR has joined #ruby
emilkarl has joined #ruby
Azure has quit [Quit: Oops.]
xen0fon has quit [Quit: xen0fon]
bronson has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
beilabs has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
beilabs has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
Pumukel has joined #ruby
SpiffTR has quit [Quit: Leaving.]
loechel has joined #ruby
sarbs has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
iwmrby has joined #ruby
loechel has quit [Ping timeout: 246 seconds]
sarbs has joined #ruby
aidalgol has joined #ruby
aremaref has quit [Ping timeout: 264 seconds]
emilkarl has quit [Quit: emilkarl]
SpiffTR has joined #ruby
enyo has joined #ruby
iwmrby has quit [Quit: WeeChat 1.6]
walterheck has joined #ruby
xen0fon has joined #ruby
mattp_ has joined #ruby
nhhc has joined #ruby
aremaref has joined #ruby
Pumukel has joined #ruby
SpiffTR has quit [Quit: Leaving.]
flying has joined #ruby
oaklndr1 has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
aidalgol has quit [Remote host closed the connection]
Pumukel has joined #ruby
agent_white has quit [Ping timeout: 258 seconds]
jgt has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
Pumukel has joined #ruby
aupadhye has joined #ruby
Silox| has joined #ruby
tvw has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
pawnbox has quit [Remote host closed the connection]
xall has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
lenwood has joined #ruby
Murgle has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
chouhoulis has joined #ruby
Couch has joined #ruby
<al2o3-cr> cheers, matthewd i'll take a ganders at that now
FooMunki has joined #ruby
* al2o3-cr wonders why weechat notifications have totally stopped working :/
lenwood has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 260 seconds]
matp has joined #ruby
Pumukel has joined #ruby
SpiffTR has joined #ruby
Ishido has joined #ruby
aremaref has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
jgt has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 252 seconds]
aupadhye has quit [Read error: Connection reset by peer]
<al2o3-cr> why didn't i think of using singleton_class, dur
<al2o3-cr> i am a numpty sometimes
Pumukel has quit [Ping timeout: 260 seconds]
x00r__ has joined #ruby
jshjsh has joined #ruby
Pumukel has joined #ruby
<zenspider> al2o3-cr: install the inherited hook and record them as they get created
<zenspider> al2o3-cr: look at minitest Runnable for an example
SpiffTR has quit [Quit: Leaving.]
<al2o3-cr> zenspider: roger that. taking a look now
JoshS has quit [Ping timeout: 268 seconds]
<matthewd> (but minitest's is probably a closer fit for an actual real-world use case)
Pumukel has quit [Ping timeout: 246 seconds]
Murgle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
minimalism has quit [Read error: Connection reset by peer]
hightower3 has joined #ruby
xall has joined #ruby
Macaveli has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
xall has quit [Ping timeout: 256 seconds]
hightower3 has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
GBrawl has joined #ruby
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
ferr1 has joined #ruby
LoneHerm_ has joined #ruby
minimalism has joined #ruby
bayed has joined #ruby
xall has joined #ruby
LoneHerm_ has quit [Ping timeout: 265 seconds]
perniciouscaffei has joined #ruby
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
CloCkWeRX has joined #ruby
xall has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
Devalo has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower3 has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeyraof has quit [Quit: This computer has gone to sleep]
hightower2 has quit [Ping timeout: 265 seconds]
pandaant has joined #ruby
d34th4ck3r has quit [Quit: d34th4ck3r]
TvL2386 has joined #ruby
hightower2 has joined #ruby
bronson has joined #ruby
b00tcat has joined #ruby
xall has joined #ruby
hightower3 has quit [Ping timeout: 260 seconds]
<b00tcat> Hi, I have a big Gemfile in a project, and if I try to execute `bundle install` on that directory Bundler will complain saying that the latest version of the Nokogiri gem requires Ruby >=2.1.0
<b00tcat> is there any way to know which gem has nokogiri as a dependency?
<b00tcat> so I can downgrade it? I really can't upgrade Ruby on this server
bronson has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 256 seconds]
aupadhye has joined #ruby
<jhass> I usually read the Gemfile.lock
yfeldblum has quit [Remote host closed the connection]
<dminuoso> b00tcat: "gem dependency"
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<dminuoso> b00tcat: And the latest version of nokogiri has that requirement indeed.
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<b00tcat> dminuoso: `gem dependency` will only give me output of the currently installed gems no? if it's not installed (only on the Gemfile) does this apply?
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kassav has quit [Quit: kassav]
kassav has joined #ruby
<zenspider> b00tcat: run `gem dep --help`
Ben_1 has joined #ruby
<zenspider> b00tcat: in your case tho you can do `bundle lock` (I think?) to generate the Gemfile.lock w/o installing. then you can find it. I think it is newer rails
<Ben_1> hi, I'm using rvm to install ruby. It want sudo permissions to update some stuff. When I disable autolibs it works without sudo but then openssl is not working in ruby and I can't install any gem. Someone an idea how to solve that without granting sudo permissions?
muuse has quit [Ping timeout: 250 seconds]
GBrawl has quit [Remote host closed the connection]
<zenspider> Ben_1: did you google rvm sudo ?
Macaveli has quit [Read error: Connection reset by peer]
<zenspider> first hit I get is https://rvm.io/integration/sudo
xall has joined #ruby
<zenspider> https://rvm.io/support/troubleshooting might also help
Macaveli has joined #ruby
<b00tcat> thanks a lot zenspider, dminuoso and jhass by generating the lockfile I can hack things around a little bit :)
<zenspider> b00tcat: n/p
rgiscard has joined #ruby
<zenspider> Ben_1: also looks like you can just do the autolibs step separately with sudo and the rest w/o
<zenspider> wow rvm does WAAAY too much
<zenspider> no wonder it is 20k lines of bash
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 265 seconds]
<matthewd> b00tcat: You should be able to just specify `gem 'nokogiri', '< 1.7'` in your Gemfile, and bundler will figure out what else it has to downgrade to implement that
<Ben_1> zenspider: how can I do the autolibs stuff seperately?
<b00tcat> matthewd: huh I didn't think of that, thanks!
<matthewd> I thought latest bundler had learned to do that automatically when a gem needed a newer version of ruby, but I seem to have imagined it :/
skweek has joined #ruby
jgt has joined #ruby
prestorium has joined #ruby
<zenspider> Ben_1: https://rvm.io/rvm/autolibs
lolmaus_ has quit [Quit: Connection closed for inactivity]
nankyokusei has joined #ruby
Jackneill has joined #ruby
charliesome has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
<Ben_1> zenspider: thx, the read-fail mode is what I'm searching for
xall has joined #ruby
<Ben_1> it says which libs are missing and I can install them manually
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
xall has quit [Ping timeout: 245 seconds]
d0nn1e has quit [Ping timeout: 246 seconds]
* zenspider nods
Ben_1 has left #ruby [#ruby]
d0nn1e has joined #ruby
mrwn has joined #ruby
charliesome has joined #ruby
jgt has quit [Read error: No route to host]
bronson has joined #ruby
<Yxhuvud> zenpider: there are reasons people prefer chruby..
<Yxhuvud> (or ruby-install in this case as it was about installing other versions)
TvL2386 has quit [Remote host closed the connection]
xall has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby
xall has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
charliesome has quit [Client Quit]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
a143753 has joined #ruby
Pumukel has joined #ruby
SpiffTR has joined #ruby
loechel has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
a143753 has quit [Read error: Connection reset by peer]
mrwn has quit [Remote host closed the connection]
mrwn has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
a143753 has joined #ruby
ddv has left #ruby ["Textual IRC Client: www.textualapp.com"]
ur5us has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
xall has joined #ruby
dionysus69 has joined #ruby
postmodern has quit [Quit: Leaving]
LoneHerm_ has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 248 seconds]
dubing has joined #ruby
enyo has quit [Ping timeout: 268 seconds]
FastJack has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
UserJosh has joined #ruby
benlieb has quit [Client Quit]
charliesome has joined #ruby
charliesome has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
jshjsh has quit [Ping timeout: 265 seconds]
SpiffTR has quit [Quit: Leaving.]
FastJack has joined #ruby
a143753 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jshjsh has joined #ruby
asdfqwer has joined #ruby
asdfqwer has quit [Client Quit]
djbkd has quit [Ping timeout: 264 seconds]
asdfqwer has joined #ruby
UserJosh has quit [Ping timeout: 250 seconds]
beilabs_ has joined #ruby
beilabs has quit [Ping timeout: 258 seconds]
xall has joined #ruby
a143753 has joined #ruby
xall has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 258 seconds]
pandaant has quit [Remote host closed the connection]
svkurowski has quit [Read error: Connection reset by peer]
JeanCarloMachado has joined #ruby
svkurowski has joined #ruby
hightower3 has joined #ruby
Fernando-Basso has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
bronson has joined #ruby
Jackneill has quit [Ping timeout: 265 seconds]
Jackneill_ has joined #ruby
icbm has joined #ruby
hightower3 has quit [Ping timeout: 252 seconds]
SpiffTR has joined #ruby
frozengeek has joined #ruby
spectrum has quit [Ping timeout: 250 seconds]
iogf has quit [Remote host closed the connection]
pandaant has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
xall has joined #ruby
hightower2 has quit [Ping timeout: 256 seconds]
Gasher has joined #ruby
juanda has joined #ruby
Dimik has quit []
xall has quit [Ping timeout: 258 seconds]
juanda has quit [Client Quit]
juanda has joined #ruby
juanda has quit [Client Quit]
juanda has joined #ruby
marr has joined #ruby
eggshke has quit []
zipace has joined #ruby
juanda has quit [Client Quit]
skweek has quit [Ping timeout: 265 seconds]
hightower2 has joined #ruby
mrwn has quit [Remote host closed the connection]
Jackneill_ has quit [Ping timeout: 246 seconds]
skydiver has joined #ruby
sepp2k has joined #ruby
astrobunny has quit [Remote host closed the connection]
hightower3 has joined #ruby
xall has joined #ruby
charliesome has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 258 seconds]
charliesome has quit [Client Quit]
hightower3 has joined #ruby
xall has quit [Ping timeout: 258 seconds]
hightower2 has quit [Ping timeout: 248 seconds]
nankyokusei has joined #ruby
pawnbox has quit [Remote host closed the connection]
nowz has quit [Remote host closed the connection]
saneax is now known as saneax-_-|AFK
nankyokusei has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
tvw has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
enyo has joined #ruby
xall has joined #ruby
ruid_ has joined #ruby
synthroid has joined #ruby
rwb has quit [Ping timeout: 256 seconds]
rgiscard has quit [Quit: Gone fishing]
aef has quit [Remote host closed the connection]
skweek has joined #ruby
xall has quit [Ping timeout: 248 seconds]
Jackneill has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
tyang has joined #ruby
LoneHerm_ has joined #ruby
tobiasvl has quit [Quit: Migrate to new desktop]
jenrzzz has quit [Ping timeout: 265 seconds]
stamina has joined #ruby
asdfqwer has quit []
ytti has quit [Ping timeout: 260 seconds]
Sugar_Data_ has joined #ruby
bronson has joined #ruby
LoneHerm_ has quit [Ping timeout: 264 seconds]
e1z0_ has joined #ruby
* manveru prefers nix/nix-shell :)
bronson has quit [Ping timeout: 268 seconds]
xall has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.6]
h1fuelcell has joined #ruby
xall has quit [Ping timeout: 260 seconds]
UserJosh has joined #ruby
Pumukel has joined #ruby
sdothum has joined #ruby
SpiffTR has quit [Quit: Leaving.]
roshanavand__ has quit [Ping timeout: 250 seconds]
jshjsh has quit [Ping timeout: 265 seconds]
ruid_ has quit [Ping timeout: 265 seconds]
ytti has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
kus has joined #ruby
Madper|hearse has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
skweek has quit [Ping timeout: 260 seconds]
troulouliou_div2 has joined #ruby
Fernando-Basso has joined #ruby
xall has joined #ruby
dionysus69 has joined #ruby
Devalo has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 250 seconds]
Jackneill_ has joined #ruby
Jackneill has quit [Ping timeout: 268 seconds]
symm- has quit [Ping timeout: 248 seconds]
symm has joined #ruby
machinewar has quit []
xall has quit [Ping timeout: 268 seconds]
nadir|mobile has quit [Quit: Connection closed for inactivity]
Devalo has joined #ruby
kus has quit [Ping timeout: 258 seconds]
SpiffTR has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
csk has joined #ruby
pandaant has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
rwb has joined #ruby
Devalo has joined #ruby
sepp2k1 has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has quit [Ping timeout: 260 seconds]
h1fuelcell has joined #ruby
synthroi_ has joined #ruby
dubing has left #ruby [#ruby]
shinnya has joined #ruby
synthroid has quit [Ping timeout: 268 seconds]
xall has joined #ruby
yeticry has quit [Ping timeout: 258 seconds]
ramortegui has joined #ruby
xen0fon has quit [Quit: xen0fon]
sdwrage has joined #ruby
beilabs_ has quit [Remote host closed the connection]
iMadper has joined #ruby
iMadper has quit [Changing host]
iMadper has joined #ruby
Devalo has quit [Remote host closed the connection]
jenrzzz has joined #ruby
xall has quit [Ping timeout: 256 seconds]
Jackneill_ has quit [Ping timeout: 246 seconds]
yeticry has joined #ruby
beilabs has joined #ruby
LoneHermit has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SpiffTR has quit [Quit: Leaving.]
Jackneill_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
SpiffTR has joined #ruby
e1z0_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nadir|mobile has joined #ruby
bronson has joined #ruby
synthroid has joined #ruby
kus has joined #ruby
LoneHermit has quit [Ping timeout: 256 seconds]
Jackneill_ has quit [Ping timeout: 260 seconds]
synthroi_ has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 258 seconds]
zerun0 has joined #ruby
frozengeek has quit [Quit: frozengeek]
colegatron has quit [Read error: Connection reset by peer]
xall has joined #ruby
xen0fon has joined #ruby
xall has quit [Ping timeout: 258 seconds]
roshanavand__ has joined #ruby
Jackneill_ has joined #ruby
Pumukel has joined #ruby
SpiffTR has quit [Quit: Leaving.]
cdg has quit [Remote host closed the connection]
<DefV> I often have the case that I want to extend collections with some functionality. for example adding a `default` method to an array of hashes that checks some hash value and returns one. What's best practice to do this, create a MyCustomArray subclass of array for this (which I often think is a bit much work / finding a relevant name is hard), create an array of which I extend the eigenklass inline (which feels hacky), create a convencience method that does that f
DigitalNomad has joined #ruby
<Papierkorb> DefV: I like refinements
cyphase has quit [Ping timeout: 250 seconds]
<dminuoso> Everybody likes refinements, but nobody sues them.
saslam has joined #ruby
<DefV> I'll sue refinements if they drive me over.
<dminuoso> That's the consensus on every single talk about refinements that I heard on every RubyCon video I watched.
<Papierkorb> I do. If everyone else wants to miss out on them that's their problem dminuoso
<dminuoso> "Great, but they are not usable enough"
<dminuoso> Papierkorb: They are too tricky to use sadly.
<dminuoso> :|
<Papierkorb> They're a bit finicky, I wish you could inject them into a eigenclass if you wanted to, so that sucks
xall has joined #ruby
<dminuoso> DefV: But yeah, I would mixin custom features into the singleton class of the array like Papierkorb suggested.
<Papierkorb> But it still beats monkey patching, fearing that the next gem I use blows up a month later cause it also chose to monkey patch a vital class (Gosh, please DONT monkey patch ruby classes in your gem!)
<dminuoso> Its not intrusive and gets the job done
Pumukel has quit [Ping timeout: 260 seconds]
<dminuoso> Papierkorb: It's a language design issue rather.
<dminuoso> If we had a way to seal classes it would be fine.
<dminuoso> It would let you reason about them.
<dminuoso> But right now even if you are the author of a module, you can't reason about your own code, because any foreign code can monkey patch yours.
<Papierkorb> dminuoso, DefV: You can have both btw. Put those methods into a module. You can extend that module into the eigenclass and include it into a refinement's refine(T){} block, so you can use both with minimal boilerplate
<Papierkorb> It's trivial to make that into a full blown monkey patch if you really have to
cyphase has joined #ruby
nowhere_man has joined #ruby
atmosx has quit [Quit: WeeChat 1.4]
marr has quit [Ping timeout: 264 seconds]
saslam has quit [Ping timeout: 252 seconds]
d34th4ck3r has joined #ruby
Devalo has joined #ruby
DLSteve has joined #ruby
pragmaticus has joined #ruby
a143753 has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
jgt has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
SpiffTR has joined #ruby
icbm has quit [Quit: Leaving]
blackbom1 has joined #ruby
jhack has joined #ruby
Devalo has quit [Remote host closed the connection]
harfangk has joined #ruby
ruby-lang755 has joined #ruby
csk has quit [Quit: ZZZzzz…]
newbie1 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dionysus70 has joined #ruby
csk has joined #ruby
ruby-lang755 has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 is now known as dionysus69
jenrzzz has quit [Ping timeout: 258 seconds]
ferr1 has quit [Quit: WeeChat 1.6]
dionysus69 has quit [Ping timeout: 248 seconds]
rgiscard has joined #ruby
rgiscard has quit [Client Quit]
bronson has joined #ruby
agent_white has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
lmc has joined #ruby
Guest88 has joined #ruby
synthroi_ has joined #ruby
milardovich has joined #ruby
JeanCarloMachado has joined #ruby
doubleemms has joined #ruby
synthroid has quit [Ping timeout: 258 seconds]
walterheck has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
Jackneill_ has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
kus has quit [Quit: Konversation terminated!]
dionysus69 has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 246 seconds]
SpiffTR has quit [Quit: Leaving.]
dionysus69 has joined #ruby
nettoweb has joined #ruby
_sfiguser has joined #ruby
e1z0_ has joined #ruby
nettoweb has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
Jackneill_ has joined #ruby
dviola has joined #ruby
stamina has quit [Quit: WeeChat 1.6]
emilkarl has joined #ruby
nettoweb has quit [Ping timeout: 248 seconds]
nettoweb1 has joined #ruby
pytuger has quit [Ping timeout: 268 seconds]
brendan- has joined #ruby
cratchet311 has quit [Remote host closed the connection]
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
haylon has joined #ruby
synthroi_ has quit [Remote host closed the connection]
nettoweb1 has quit [Ping timeout: 248 seconds]
m1911 has joined #ruby
tvon has joined #ruby
nettoweb has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
m1911 has quit [Quit: Mutter: www.mutterirc.com]
nettoweb1 has joined #ruby
nowhere_man has quit [Ping timeout: 258 seconds]
nettoweb has quit [Ping timeout: 256 seconds]
lenwood has joined #ruby
adbjesus has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nettoweb1 has quit [Ping timeout: 256 seconds]
zipace has quit [Quit: Leaving]
montanonic has quit [Ping timeout: 252 seconds]
emilkarl has quit [Quit: emilkarl]
nettoweb1 has joined #ruby
nettoweb1 has quit [Client Quit]
help_me has joined #ruby
<help_me> Hey looking for some help with turning a text file into a hash
<help_me> grouping by first letter
<centrx> ?
<help_me> @centrx what?
SpiffTR has joined #ruby
<centrx> exactly, what?
<help_me> sorry yeah didn't read what I was saying
bronson has joined #ruby
<help_me> I have a dictionary in a text file and I want to convert it into a hash alphabetically
<help_me> using the first letter as a key
<havenwood> help_me: File.readlines(FILE_PATH_HERE).group_by(&:chr)
<help_me> havenwood: thanks a lot
synthroid has joined #ruby
polishdub has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
sniff is now known as sniffer
DylanJ has joined #ruby
username_ has joined #ruby
kassav has quit [Quit: kassav]
ruid_ has joined #ruby
nhhc has quit [Ping timeout: 260 seconds]
<help_me> havenwood: is there anyway to remove the the \n that each value has due to the line breaks?
<havenwood> help_me: In Ruby 2.4 that'd be `File.readlines(path, chomp: true)` or you could `File.readlines(path).map(&:chomp)` or `File.read(path).split("\n")`
<elomatreb> help_me: String#chomp removes trailing newlines and Hash#transform_values may be useful too
cyberarm has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Remote host closed the connection]
Rr4sT has joined #ruby
ndrei has joined #ruby
SpiffTR has quit [Quit: Leaving.]
h1fuelcell has quit [Remote host closed the connection]
dar123 has joined #ruby
h1fuelcell has joined #ruby
<help_me> thanks guys
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
bilal80 has joined #ruby
csk has quit [Quit: ZZZzzz…]
ruid_ has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Ping timeout: 248 seconds]
username_ has quit [Quit: Lost terminal]
nankyokusei has joined #ruby
username_ has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
fullstack has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
dar123 has quit [Ping timeout: 258 seconds]
<kspencer> trying to write an a gem for an API, and I know it hasn't been made yet, because the API itself just came into being. I was wondering if anyone knew of another API that was quite simple and had a package, so i could try and 'whip' one up for the API I'm working with, considering I've never really dwelled this deep
nowhere_man has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
fullstack has joined #ruby
ndrei has quit [Quit: Lost terminal]
symm has quit [Quit: Leaving...]
troys has joined #ruby
symm- has joined #ruby
Devalo has joined #ruby
<haylon> What kind of API are you looking to do kspencer?
xall has quit [Ping timeout: 258 seconds]
DigitalNomad has quit [Ping timeout: 260 seconds]
<haylon> REST, SOAP, RPC, just a regular RubyGem?
<kspencer> haylon, its a POST API with JSON output, I honestly don't know what you'd call it
<haylon> Is it sometyhing you expect to use over the web?
<kspencer> yes
<kspencer> its grabbing from a website I moderate and have developer access of
xall has joined #ruby
<kspencer> if web meaning browser no, but just through 'curl' like requests using httparty or similar yes
<elomatreb> I'd think if I really needed a gem for that. Is the effort of maintaining it worth the (not guaranteed) easier use you get from it compared to just using it directly?
<haylon> You'll be using REST most likely. What I would suggest doign is reading into the RPC, REST, SOAP API methodolgies
<elomatreb> (Directly as in speaking HTTP manually in your code=
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kspencer> so you would rather I just run httparty requests through my functions and return that, correct?
<kspencer> s/functions/methods/
synthroi_ has joined #ruby
kang0 has joined #ruby
symm- has quit [Quit: Leaving...]
<haylon> kspencer if you're just interacting with something, yes, unless if you're buidling your own API do serve some purpose
<elomatreb> kspencer: I'm not saying this is true in all scenarios, but for simple to medium-complexity APIs it's just as much work looking up how to use a gem as just looking up how to use net/http (or w/e) to call it directly
centrx has quit []
<kspencer> well, haylon or elomatreb, do you mind if I pm so I can get more in depth without giving out more private information about the API (source and such that I want to keep under wraps)
<haylon> I see no problem
<haylon> I will be in and out as it is lunch time here
<elomatreb> Not really, but I can't guarantee I'll be here for too long
synthroid has quit [Ping timeout: 258 seconds]
duderonomy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
polysics_ has joined #ruby
catphish has joined #ruby
marr has joined #ruby
duderonomy has quit [Client Quit]
polysic__ has joined #ruby
polysics has quit [Read error: Connection reset by peer]
oaklndr1 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jgt has quit [Ping timeout: 260 seconds]
Tempesta_ has joined #ruby
amclain has joined #ruby
nettoweb has joined #ruby
polysics_ has quit [Ping timeout: 268 seconds]
nettoweb has quit [Client Quit]
symm- has joined #ruby
jgt has joined #ruby
bronson has joined #ruby
Tempesta has quit [Ping timeout: 265 seconds]
triangles has joined #ruby
Couch has quit [Ping timeout: 265 seconds]
Devalo has quit [Remote host closed the connection]
polysic__ has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 248 seconds]
duderonomy has joined #ruby
xall has quit [Ping timeout: 245 seconds]
Helheim has quit [K-Lined]
yfeldblum has joined #ruby
Macaveli has joined #ruby
beilabs_ has joined #ruby
xall has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
beilabs has quit [Ping timeout: 258 seconds]
Pumukel has joined #ruby
enyo has quit [Ping timeout: 258 seconds]
Macaveli_ has joined #ruby
synthroid has joined #ruby
lenwood has quit [Ping timeout: 265 seconds]
b00tcat has quit [Quit: WeeChat 1.6]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has quit [Ping timeout: 260 seconds]
Macaveli has quit [Ping timeout: 256 seconds]
synthroi_ has quit [Ping timeout: 258 seconds]
Macaveli_ has quit [Client Quit]
enilsen16 has joined #ruby
adbjesus has quit [Quit: adbjesus]
neoncortex has joined #ruby
enilsen16 has quit [Client Quit]
ResidentBiscuit has quit [Remote host closed the connection]
csk has joined #ruby
<neoncortex> just a quick question: there is some requeriment for grab output of shell commands? for example if i do val = %x[ls], then puts val, it's ok, but it does not work with xgamma and i don't see why
h1fuelcell has joined #ruby
blackbom1 has quit [Ping timeout: 264 seconds]
<elomatreb> neoncortex: It appears xgamma outputs to stderr, read up on how to redirect stderr to stdout in your shell
synthroid has quit []
<neoncortex> elomatreb: oh i see
<neoncortex> i totally forgot about stderr, thanks
<elomatreb> In bash (and bash-likes) it's "2>&1"
dionysus69 has joined #ruby
matp has quit [Read error: Connection reset by peer]
<neoncortex> elomatreb: yes, that's it
h1fuelcell has quit [Ping timeout: 248 seconds]
Fernando-Basso has quit [Remote host closed the connection]
matp has joined #ruby
triangles has quit [Quit: Leaving]
enilsen16 has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Cavallari has joined #ruby
<Cavallari> Hi, I am new to ruby, and rails too... I've configured passenger with apache on a rails app, but when I try to execute the passenger gives me this error:
<Cavallari> *** ERROR ***: Cannot execute /usr/bin/ruby: No such file or directory (2)
<Cavallari> How can I fix it?
testuser1 has joined #ruby
csk has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Remote host closed the connection]
tvl has joined #ruby
tvl is now known as tobiasvl
bluOxigen has joined #ruby
reverberations has joined #ruby
blackbom1 has joined #ruby
pilne has joined #ruby
SpiffTR has joined #ruby
csk has joined #ruby
polysics has joined #ruby
chouhoulis has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
tdy has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 258 seconds]
aremaref has joined #ruby
perniciouscaffei has joined #ruby
ruby780 has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
testuser1 has quit [Quit: Leaving.]
bocaneri has quit [Remote host closed the connection]
cratchet311 has joined #ruby
cyberarm has joined #ruby
SpiffTR has quit [Quit: Leaving.]
[Butch] has joined #ruby
milardovich has quit [Ping timeout: 252 seconds]
aupadhye has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
lenwood has joined #ruby
duderonomy has joined #ruby
skydiver has quit [Ping timeout: 268 seconds]
Lord_of_Life has quit [Excess Flood]
d34th4ck3r has quit [Quit: d34th4ck3r]
nettoweb has quit [Ping timeout: 258 seconds]
Lord_of_Life has joined #ruby
saslam has joined #ruby
milardovich has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
saslam has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<neoncortex> also i have a curiosity: did someone tried already to write a window manager in Ruby?
pawnbox has quit [Remote host closed the connection]
Devalo has joined #ruby
nanoz has joined #ruby
nanoz has joined #ruby
nanoz has quit [Changing host]
tubuliferous has joined #ruby
Pumukel has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
jshjsh has joined #ruby
JoshS has joined #ruby
UserJosh has quit [Ping timeout: 250 seconds]
loechel has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
<catphish> neoncortex: i think i did it once, but i totally forget the API :)
Pumukel has quit [Ping timeout: 260 seconds]
jshjsh has quit [Ping timeout: 268 seconds]
<neoncortex> catphish: oh =(
djbkd has joined #ruby
<neoncortex> but nice anyway, i'm thinking in try, just for the trip
<help_me> hey, I'm trying to create permutations of a string and push the permutations to an array
<help_me> since the amount of permutations is n! it can be really slow
<help_me> is there anyway I can make ruby do this faster?
<catphish> neoncortex: go for it, ruby has X11 bindings, so it should be possible
lenwood has joined #ruby
<catphish> neoncortex: you'll run into the usual problem of all the documentation and examples assuming you use C++ :)
<neoncortex> catphish: i'm getting used to poor documentation xD
benlieb has joined #ruby
loechel has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
<help_me> how would I use chunking for what I'm trying to do
<help_me> I find the documentation hard to apply to what I wanna do
<catphish> help_me: i think you need to be more specific, do you have an example if your code?
<help_me> catphish: so I have this to generate the permutations
<help_me> array = self.chars.permutation.map(&:join).uniq
<help_me> and I'm just trying to figure it how to use .chunk or something similar to get it to run quicker
benlieb has quit [Client Quit]
xall has joined #ruby
cyberarm has quit []
<elomatreb> help_me: If I'm not mistaken, you could multithread this quite easily, generating all permutations of a certain length on their own
SpiffTR has joined #ruby
ponga has quit []
<help_me> thanks elomatreb I'll have a look
<catphish> multthreading is never easy :)
<catphish> i can't think of any obvious way to speed this up :(
prestorium has quit [Ping timeout: 260 seconds]
ixti has joined #ruby
<manveru> neoncortex: wmii was mostly in ruby if i remember right
<manveru> or at least the config was in ruby
<neoncortex> manveru: i remember wmii as C, but i can be totally wrong
kang0 has left #ruby ["Quit"]
xall has quit [Ping timeout: 258 seconds]
<elomatreb> catphish: I was thinking to generate all arrays of permutations of length n in their own thread, with n from 0 to the amount of chars in the array. Then join them and perform the unique
<elomatreb> I don't actually know if Array#permutations will be faster if passed a parameter
<manveru> i have wmii and subtle in mind... but there's probably no pure ruby wm that only uses FFI or the like...
<catphish> elomatreb: there's no symmetric execution of threads in MRI, so making threads is usually pointless from a performance standpoint
<catphish> *simultaneous execution
jhack has quit [Quit: jhack]
<elomatreb> Ugh, you're right
<elomatreb> "It's easy! Just write a native extension!"
<catphish> well, threads execute simultaneously, but almost all operations require a global lock :(
<catphish> lol yeah
nankyokusei has joined #ruby
milardovich has joined #ruby
enyo has joined #ruby
<catphish> a nice simple multithreaded extension ;)
<elomatreb> If C wasn't such a hostile language I'd actually be somewhat willing to do that :(
<manveru> elomatreb: you can use BEAM :)
<elomatreb> BEAM? Googling "ruby beam" only yields laser products :(
ResidentBiscuit has joined #ruby
<manveru> the erlang vm
<manveru> or rubinius or jruby
LuckyABA has joined #ruby
milardovich has quit [Remote host closed the connection]
tildes has joined #ruby
milardovich has joined #ruby
jhack has joined #ruby
LuckyABA has quit [Client Quit]
enyo has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
ruby780 has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
ResidentBiscuit has quit [Ping timeout: 245 seconds]
frozengeek has joined #ruby
prestorium has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
LuckyABA has joined #ruby
<manveru> though that one i haven't tried myself
<neoncortex> i actually tried to write some gtk apps in C, but it's tedious because you need to set every bit of detail of every widget
Pumukel has quit [Ping timeout: 246 seconds]
<neoncortex> so i doing it in ruby, i do not need it super fast anyway
<manveru> i'm spending some time updating ffi-tk these holidays :)
<manveru> still my favorite toolkit
Pumukel has joined #ruby
tyang_ has joined #ruby
xall has joined #ruby
<chrisseaton> I recommend people just write a web-fronted these days, even if it's a single-user local app
tubuliferous has quit [Ping timeout: 246 seconds]
<chrisseaton> It's probably sufficient unless it's CAD or video editing
milardovich has joined #ruby
tyang has quit [Ping timeout: 248 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
<elomatreb> I just tried that permutation thing with a large Array (10k elements) and instantly deadlocked my device :facepalm:
<neoncortex> need to go, see ya
neoncortex has quit [Quit: WeeChat 1.0.1]
xall has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Rr4sT has quit [Quit: Connection closed for inactivity]
futilegames has joined #ruby
futilegames has left #ruby [#ruby]
enilsen16 has quit [Quit: enilsen16]
milardovich has quit [Remote host closed the connection]
jgt has joined #ruby
milardovich has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
tyang_ has quit [Ping timeout: 248 seconds]
jgt has quit [Read error: Connection reset by peer]
jgt has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Lord_of_Life has quit [Excess Flood]
bronson has joined #ruby
tildes has quit [Ping timeout: 268 seconds]
emilkarl has joined #ruby
Lord_of_Life has joined #ruby
Pumukel has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
xall has joined #ruby
hahuang65 has joined #ruby
polysics has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 246 seconds]
Sugar_Data_ has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
xall has quit [Ping timeout: 248 seconds]
emilkarl has quit [Quit: emilkarl]
duderonomy has joined #ruby
al2o3-cr has quit [Remote host closed the connection]
duderonomy has quit [Client Quit]
al2o3-cr has joined #ruby
SpiffTR has quit [Quit: Leaving.]
cratchet311 has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 265 seconds]
lenwood has quit [Ping timeout: 246 seconds]
SpiffTR has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
tildes has joined #ruby
tubuliferous has joined #ruby
enilsen16 has joined #ruby
roshanavand__ has quit [Ping timeout: 258 seconds]
milardovich has quit [Ping timeout: 245 seconds]
milardovich has joined #ruby
braincrash has quit [Ping timeout: 258 seconds]
tildes has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
SpiffTR has quit [Quit: Leaving.]
jgt has quit [Read error: Connection reset by peer]
xall has joined #ruby
minimalism has quit [Quit: minimalism]
braincrash has joined #ruby
xall has quit [Ping timeout: 246 seconds]
prestorium has quit [Quit: Leaving]
csk has quit [Quit: Bye]
skweek has joined #ruby
ruid_ has joined #ruby
ResidentBiscuit has joined #ruby
koldbrutality has quit [Read error: Connection reset by peer]
futilegames has joined #ruby
ResidentBiscuit has quit [Ping timeout: 258 seconds]
braincrash has quit [Ping timeout: 258 seconds]
gusrub has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
symm- has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
Cavallari has quit [Quit: Cavallari]
djbkd has joined #ruby
symm- has joined #ruby
Guest88 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 252 seconds]
xall has joined #ruby
tyang has joined #ruby
Devalo has quit [Remote host closed the connection]
tyang has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 248 seconds]
JoshS has quit [Quit: Leaving]
xall has quit [Ping timeout: 268 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Devalo has joined #ruby
ineb has joined #ruby
tyang has joined #ruby
flying has quit [Read error: Connection reset by peer]
flying has joined #ruby
jgt has joined #ruby
hightower3 has quit [Ping timeout: 258 seconds]
tyang_ has joined #ruby
bronson has joined #ruby
ruid_ has quit [Ping timeout: 246 seconds]
tyang has quit [Ping timeout: 258 seconds]
bronson has quit [Ping timeout: 268 seconds]
maloik97 has joined #ruby
saslam has joined #ruby
maloik has quit [Remote host closed the connection]
BrianJ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
shayan_ has joined #ruby
enilsen16 has quit [Quit: enilsen16]
hightower3 has joined #ruby
jhack has quit [Quit: jhack]
enyo has joined #ruby
jhack has joined #ruby
jmignault has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
e1z0_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has joined #ruby
enyo has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
millerti has joined #ruby
symm- has quit [Quit: Leaving...]
polysics has joined #ruby
jmignault has quit [Ping timeout: 260 seconds]
shayan_ has quit [Quit: shayan_]
xall has joined #ruby
shayan_ has joined #ruby
lenwood has joined #ruby
nankyokusei has joined #ruby
xall has quit [Ping timeout: 258 seconds]
mdw has joined #ruby
koldbrutality has joined #ruby
shayan_ has quit [Quit: shayan_]
BrianJ has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
charliesome has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
nadir|mobile has quit [Quit: Connection closed for inactivity]
polysics_ has joined #ruby
jgt has quit [Read error: No route to host]
jottr has joined #ruby
emilkarl has joined #ruby
dionysus70 has joined #ruby
polysic__ has joined #ruby
machinewar has joined #ruby
polysics has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
Gasher has quit [Ping timeout: 248 seconds]
polysics_ has quit [Ping timeout: 256 seconds]
tvon has quit [Remote host closed the connection]
pragmaticus has quit [Remote host closed the connection]
cgibsonmm has joined #ruby
naprimer_2 has joined #ruby
nowhere_man has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naprimer has quit [Ping timeout: 258 seconds]
cyphase has quit [Ping timeout: 258 seconds]
<cgibsonmm> hello, I have a question about passing an unknown amount of arguments to a method.
troys is now known as troys_
<machinewar> you can use *args_name
<machinewar> def my_method(*args)
<machinewar> and you can access them as an array
<apeiros> and you can always have an array arg directly (sometimes that makes more sense than splatting)
mscs has quit [Quit: rebooting]
<cgibsonmm> I understand that my issue is they are being passed into the method like this_method((1).(2).(3))
Gasher has joined #ruby
<machinewar> hm I'm not sure I understand, are those chained method calls?
cyphase has joined #ruby
<apeiros> cgibsonmm: you realize that . is not separating arguments, yes?
<cgibsonmm> and there is no way for me to change the way the items are passed
<machinewar> cgibsonmm: linking a gist might help get a better understanding of what you're experiencing
<cgibsonmm> okay than k you i will try that
saslam has quit [Ping timeout: 260 seconds]
<apeiros> yes, real code please. not broken fake code.
gusrub has quit [Remote host closed the connection]
bronson has joined #ruby
Lord_of_Life has quit [Excess Flood]
synaps3 has joined #ruby
Lord_of_Life has joined #ruby
x00r__ has quit [Quit: Leaving]
koldbrutality has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
JeanCarloMachado has joined #ruby
jhack has quit [Quit: jhack]
Azure has joined #ruby
xall has joined #ruby
blackbom1 has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 246 seconds]
gusrub has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
jottr has joined #ruby
charliesome has joined #ruby
jhack has joined #ruby
BrianJ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvon has joined #ruby
ResidentBiscuit has joined #ruby
emilkarl has quit [Quit: emilkarl]
mdw has quit [Quit: Sleeping Zzzzz]
xall has quit [Ping timeout: 248 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
Azure has quit [Ping timeout: 245 seconds]
<Radar> ^
jgt has joined #ruby
flying has quit []
JeanCarloMachado has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 258 seconds]
lmc has quit [Read error: Connection reset by peer]
<al2o3-cr> how to get bit rep of a float?
rwb has quit [Ping timeout: 252 seconds]
cyphase has quit [Ping timeout: 248 seconds]
<al2o3-cr> ah, nvm
lmc has joined #ruby
Azure has joined #ruby
emilkarl has joined #ruby
koldbrutality has joined #ruby
Azure has quit [Client Quit]
jgt has quit [Ping timeout: 248 seconds]
troys_ is now known as troys
cyphase has joined #ruby
mdw has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
jgt has joined #ruby
<al2o3-cr> how did i never know about SymbolHash
rgiscard has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
rgiscard has quit [Remote host closed the connection]
symm- has joined #ruby
h1fuelcell has joined #ruby
machinewar has quit []
skweek has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Ping timeout: 252 seconds]
Lord_of_Life has quit [Excess Flood]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
zapata has quit [Ping timeout: 240 seconds]
splud has joined #ruby
blackbom1 has joined #ruby
Lord_of_Life has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has joined #ruby
BrianJ has joined #ruby
jhack has quit [Quit: jhack]
gusrub has quit [Ping timeout: 258 seconds]
jhack has joined #ruby
<apeiros> al2o3-cr: by it not being core/stdlib?
<al2o3-cr> apeiros: yard
<apeiros> that's where it showed up for me too, yes
xall has quit [Ping timeout: 245 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
shayan_ has joined #ruby
SpiffTR has joined #ruby
Foow has joined #ruby
ResidentBiscuit has joined #ruby
polysic__ has quit [Remote host closed the connection]
polysics has joined #ruby
<al2o3-cr> i'd just never come across it before while rifling through yard :)
<al2o3-cr> i should of said
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
rgiscard has joined #ruby
polysics has quit [Read error: Connection reset by peer]
aidalgol has joined #ruby
polysics has joined #ruby
polysics_ has joined #ruby
polysics has quit [Read error: Connection reset by peer]
rgiscard has quit [Quit: Gone fishing]
Foow has quit [Quit: Page closed]
polysics_ has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
shayan_ has quit [Quit: shayan_]
SpiffTR1 has joined #ruby
pwnd_nsfw` has joined #ruby
cgibsonmm has quit []
SpiffTR has quit [Ping timeout: 258 seconds]
cgibsonmm has joined #ruby
bronson has joined #ruby
cgibsonmm has quit [Client Quit]
Robtop__ has quit [Ping timeout: 268 seconds]
zapata has joined #ruby
rgiscard has joined #ruby
Pumukel has joined #ruby
charliesome has joined #ruby
Azure has joined #ruby
polishdub has quit [Quit: Leaving]
bronson has quit [Ping timeout: 268 seconds]
ramortegui has quit [Quit: Ex-Chat]
enyo has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
kobain has joined #ruby
enyo has quit [Ping timeout: 264 seconds]
rgiscard has quit [Quit: Gone fishing]
jottr has joined #ruby
xall has joined #ruby
rgiscard has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
ruid_ has joined #ruby
xall has quit [Ping timeout: 258 seconds]
Guest88 has joined #ruby
Kero has quit [Quit: leaving]
jhack has quit [Quit: jhack]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
synaps3 has quit [Ping timeout: 258 seconds]
montanonic has joined #ruby
enilsen16 has joined #ruby
yfeldblum has quit [Quit: Leaving...]
jgt has quit [Ping timeout: 256 seconds]
Jackneill_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
jgt has joined #ruby
montanonic has quit [Ping timeout: 264 seconds]
h1fuelcell has joined #ruby
Kero has joined #ruby
stick has joined #ruby
nankyokusei has joined #ruby
qwertrandom has joined #ruby
qwertrandom has left #ruby [#ruby]
vaxxon has joined #ruby
h1fuelcell has quit [Ping timeout: 260 seconds]
<vaxxon> Hi! I have an array of integers. What would be the most efficient way to increase the first n elements by 1?
nankyokusei has quit [Ping timeout: 258 seconds]
symm- has quit [Quit: Leaving...]
<apeiros> vaxxon: what have you tried so far?
jgt has quit [Ping timeout: 268 seconds]
<vaxxon> I tried creating an array of 1s of length n, then zipping it against the original array. That got me, say, [[5,1], [5,1], [5,1], [5,nil], [5,nil]] and left me to figure out how to sum each element. I can probably make that work, but this seems really stupid.
<apeiros> map
<vaxxon> Not a student, btw. Just teaching myself the language, and these are the kinds of judo exercises that force me to learn how to think in the language. So far... not getting it.
<apeiros> "most efficient" != "thinking in the language"
<apeiros> "most idiomatic" is more like it
<vaxxon> I can't disagree with you.
<apeiros> not sure what would be the most idiomatic. I'd probably go with `n.times do |i| ary[i] += 1 end`
<vaxxon> A language like python, I'd approach this by trying to find the fastest way to do it, the shortest (keystroke) way to do it, and then the most pythonic way to do it. Then try to do it the pythonic way.
anjen has joined #ruby
<vaxxon> Right now I'm at the 'can you make it work at all?' milestone. ;) I see.
montanonic has joined #ruby
<vaxxon> I take it that zipping and mapping isn't really 'thinking ruby', then. I'll screw with what you just gave me.
gusrub has joined #ruby
<Radar> For bonus points: come up with a solution that does not mutate the original array.
ledestin has joined #ruby
<vaxxon> Radar: Good idea.
<apeiros> Radar: is dup considered cheating? :D
<Radar> apeiros: There was only one rule ;)
<vaxxon> I'll play with that. I don't really see what makes your solution more idiomatic yet. So far I'm just not 'getting' ruby. Actually if you don't mind, I've got a potentially volatile question. ;)
<Radar> We like volatile questions.
<vaxxon> But I promise I mean it with 100% intellectual curiosity. I used perl 'back in the day'. Then I switched to python and found it works really well for most of what I used perl for. So... ruby. I'm learning it because it's useful for ruby on rails, and for puppet, and what's one more language? But I am having trouble understanding what it excels at, linguistically.
<apeiros> vaxxon: there are "clever" solutions. but those aren't necessarily better or more idiomatic
ruid_ has quit [Ping timeout: 252 seconds]
<apeiros> ruby is pretty close to python and perl. shouldn't be difficult to pick it up.
<vaxxon> So far, I feel like it has the confusing syntax of perl, but some of the ideas from python. I'm trying to understand where it shines.
<vaxxon> So... that's not a loaded question, and I'm not asking with some kind of an agenda or anything. Figure I may as well ask the experts: OK. Why ruby?
<apeiros> I'd say ruby's syntax is a vast improvement over python wrt readability :)
<apeiros> errr, over perl
last_staff has joined #ruby
xall has joined #ruby
<apeiros> Radar: oooh, that's a nice site. marked.
<vaxxon> Very nice site, yeah.
<manveru> >> a = [*1..10]; a.take(5).map{|n| n + 1 } + a[5..-1]
<ruby[bot]> manveru: # => [2, 3, 4, 5, 6, 6, 7, 8, 9, 10] (https://eval.in/705699)
crowd42 has quit [Quit: tdct.org]
emilkarl has quit [Quit: emilkarl]
<Radar> manveru: hey that's my solution too ;)
<zenspider> vaxxon: you can also start by deciding how you'd do it in python and then try to port that straight over
<apeiros> ary[0,n] = ary.first(n).map { |e| e+1 }
<apeiros> for i in 0...n; ary[i] += 1 end
<apeiros> n.times do |i| ary[i] += 1 end
<apeiros> those are my three (as per the question, mutating solutions)
<vaxxon> That's how I started on this particular exercise, zen. I'm porting something I wrote while learning python to ruby.
<apeiros> I'd probably use the first one as the basis for nonmutating.
<zenspider> vaxxon: kk. how do you do it in python?
<apeiros> ary.first(n).map { |e| e+1 } + ary[n..-1]
<Radar> TIL: "[1].[] 0" is valid Ruby.
<zenspider> >> 10.times.map.with_index { |x, i| i < 5 ? x+1 : x }
<ruby[bot]> zenspider: # => [1, 2, 3, 4, 5, 5, 6, 7, 8, 9] (https://eval.in/705700)
emilkarl has joined #ruby
<apeiros> Radar: heh, yes. that's the "standard" method invocation.
agent_white has quit [Quit: bbl]
saslam has joined #ruby
emilkarl has quit [Client Quit]
<apeiros> same applies to about all symbolic methods
<apeiros> 1.+ 2
<manveru> >> [*10..20].map.with_index{|e,i| i < 6 ? e + 1 : e }
<Radar> apeiros: yup, I just didn't consider it for [] too
<ruby[bot]> manveru: # => [11, 12, 13, 14, 15, 16, 16, 17, 18, 19, 20] (https://eval.in/705701)
<manveru> oh damn
<apeiros> you can even use :: if you want to confuse readers
<manveru> too late :)
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
<vaxxon> zenspider: I used list comprehensions, created my two arrays, and then added them together.
<zenspider> 10.times.map.with_index { |x, i| next x if i > 4; x+1 }
milardovich has quit [Remote host closed the connection]
<zenspider> vaxxon: you could do that in ruby too, you should just generate 0's for the tail
milardovich has joined #ruby
<vaxxon> This led me to learning how to make arrays in ruby with new. Array.new(5) {5} is how I'm making my source array.
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
xall has quit [Ping timeout: 252 seconds]
<apeiros> note: Array.new(5,5) is faster for static, immutable values
<apeiros> block form should be used for mutable or dynamic values
<apeiros> >> x = Array.new(5,"word"); x[0].upcase!; x # this being the reason
<ruby[bot]> apeiros: # => ["WORD", "WORD", "WORD", "WORD", "WORD"] (https://eval.in/705704)
<zenspider> >> 10.times.zip(Array.new(5, 1)).map { |a, b| a + (b||0) }
<ruby[bot]> zenspider: # => [1, 2, 3, 4, 5, 5, 6, 7, 8, 9] (https://eval.in/705705)
Devalo has quit [Remote host closed the connection]
<vaxxon> Didn't know that. I lucked out, then. I'm trying to screw around with the array I just made.
<apeiros> block form works fine for immutable values. it's just slow. you invoke a callback for each element.
<zenspider> so many ways to do this functionally
<manveru> >> Array.new(5, 5).zip(Array.new(2, 1) + Array.new(3, 0)).map(&:sum)
<ruby[bot]> manveru: # => undefined method `sum' for [5, 1]:Array (NoMethodError) ...check link for more (https://eval.in/705706)
<manveru> >> RUBY_VERSION
<ruby[bot]> manveru: # => "2.3.0" (https://eval.in/705707)
<zenspider> you want &:+
milardovich has quit [Remote host closed the connection]
milardov_ has joined #ruby
<zenspider> oh... no... wrong arity
<manveru> am i too cutting edge again?
<manveru> i thought sum was before 2.4
<apeiros> only in rails
<vaxxon> I'll play with all this stuff. Thanks, guys. Appreciated!
<apeiros> vaxxon: re why ruby: nice syntax. blocks. everything is an object. comparably sane stdlib. and block. did I mention blocks? also blocks.
bronson has joined #ruby
CloCkWeRX has joined #ruby
lenwood has quit [Ping timeout: 252 seconds]
<zenspider> vaxxon: google the ruby quickref while you're at it
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
<zenspider> and by blocks he really means Enumerable.
SpiffTR1 has quit [Read error: Connection reset by peer]
<Radar> hehehe
tyang_ has quit [Quit: Leaving]
bronson has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 258 seconds]
<apeiros> no. but enumerable should probably be mentioned separately.
mdw has quit [Quit: Sleeping Zzzzz]
rgiscard has quit [Quit: Gone fishing]
saslam has quit [Ping timeout: 265 seconds]
<zenspider> that the thing I hook newbs with time and again. so good
<apeiros> it was what hooked me up too.
<apeiros> a .map expression.
<apeiros> plus the information that every method can take an argument of that kind.
help_me has quit [Quit: Page closed]
feynman has joined #ruby
milardov_ has quit []
Rodya_ has quit [Remote host closed the connection]
TomyLobo has quit [Ping timeout: 250 seconds]
polysics has joined #ruby
CloCkWeRX has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ur5us has quit [Remote host closed the connection]
harai_ has quit [Ping timeout: 258 seconds]
jackjackdripper has joined #ruby
last_staff has quit [Quit: last_staff]
xall has joined #ruby
polysics has quit [Ping timeout: 252 seconds]
rwb has joined #ruby
alan_w has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 264 seconds]
h1fuelcell has joined #ruby
rgiscard has joined #ruby
bilal80 has quit [Ping timeout: 248 seconds]
troys is now known as troys_
h1fuelcell has quit [Ping timeout: 248 seconds]
_defk0n_ has joined #ruby