baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ https://irclog.whitequark.org/ruby/
arashb has quit [Ping timeout: 240 seconds]
Nahra has joined #ruby
Rodya_ has joined #ruby
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
conah has quit [Read error: Connection reset by peer]
symm- has quit [Quit: Leaving...]
jkhl has quit [Ping timeout: 260 seconds]
s2013 has joined #ruby
flashpoint9 has joined #ruby
stamina has joined #ruby
nitric has quit [Ping timeout: 265 seconds]
dck- has quit [Ping timeout: 264 seconds]
ruby-lang888 has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
lightheaded has joined #ruby
dreamyspell has quit [Quit: Leaving]
qguv has quit [Read error: Connection reset by peer]
qguv has joined #ruby
chrisja has quit [Quit: leaving]
stamina has quit [Ping timeout: 258 seconds]
lightheaded has quit [Ping timeout: 258 seconds]
Xaitec has quit [Remote host closed the connection]
marr has quit [Ping timeout: 264 seconds]
fmcgeough has quit [Quit: fmcgeough]
pawnbox has joined #ruby
xsdg has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
xsdg has joined #ruby
vrand has joined #ruby
Ruby_Rocks_007 has joined #ruby
astrobun_ has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 276 seconds]
replay has quit []
tmtwd has joined #ruby
dminuoso has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
tvon has joined #ruby
RedNifre_ has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
arashb has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
vrand has quit [Remote host closed the connection]
vrand has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
RedNifre has quit [Ping timeout: 244 seconds]
dminuoso has quit [Ping timeout: 258 seconds]
bruce_lee has quit [Read error: Connection reset by peer]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
flashpoint9 has quit [Remote host closed the connection]
arashb has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
tectonic has joined #ruby
symm- has joined #ruby
nankyokusei has joined #ruby
cpruitt has joined #ruby
agent_white has quit [Quit: leaving]
vrand has quit [Ping timeout: 244 seconds]
etehtsea has joined #ruby
vrand has joined #ruby
mistermocha has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
CloCkWeRX has joined #ruby
nando293921 has joined #ruby
vrand has quit [Quit: Mutter: http://www.mutterirc.com]
vrand has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Renich has quit [Quit: leaving]
arescorpio has joined #ruby
vrand has quit [Client Quit]
vrand has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
Ropeney has joined #ruby
rsampaio_ has quit [Ping timeout: 240 seconds]
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
ajsharma has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vrand has quit [Remote host closed the connection]
saneax-_-|AFK is now known as saneax
ajsharma has quit [Client Quit]
Elvin has joined #ruby
lightheaded has joined #ruby
hahuang61 has joined #ruby
vdamewood has joined #ruby
swills has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
Ruby_Rocks_007 has joined #ruby
Wolland has quit [Remote host closed the connection]
Contigi has joined #ruby
rubie has quit [Ping timeout: 252 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
eljimador has joined #ruby
Spami has joined #ruby
saneax is now known as saneax-_-|AFK
shinnya has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
ta_ has joined #ruby
carltonb_ has left #ruby [#ruby]
carltonb_ has joined #ruby
carltonb_ has left #ruby [#ruby]
carltonb_ has joined #ruby
dreamyspell has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
AndrewIsHere has joined #ruby
whiteline has quit [Remote host closed the connection]
cloaked1 has joined #ruby
whiteline has joined #ruby
<drbrain> that is an mrbgem for mruby, not CRuby
hahuang61 has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
rkazak has quit [Quit: Sleep.....ing....]
dminuoso has joined #ruby
CloCkWeRX has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
dminuoso has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
whiteline has quit [Remote host closed the connection]
arashb has joined #ruby
whiteline has joined #ruby
C0D3JUNKIE has joined #ruby
C0D3JUNKIE has quit [Max SendQ exceeded]
C0D3JUNKIE has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
C0D3JUNKIE has quit [Max SendQ exceeded]
ngscheurich has quit [Ping timeout: 260 seconds]
C0D3JUNKIE has joined #ruby
arashb has quit [Ping timeout: 265 seconds]
C0D3JUNKIE has quit [Max SendQ exceeded]
C0D3JUNKIE has joined #ruby
saneax-_-|AFK is now known as saneax
hahuang61 has quit [Ping timeout: 260 seconds]
tmtwd has quit [Ping timeout: 252 seconds]
srgupta has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
harai has quit [Ping timeout: 276 seconds]
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
srgupta has quit []
ajsharma has joined #ruby
braincras has quit [Ping timeout: 276 seconds]
motivic has joined #ruby
lightstalker has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
minimalism has quit [Ping timeout: 264 seconds]
saneax is now known as saneax-_-|AFK
pwnd_nsfw has quit [Read error: Connection reset by peer]
minimalism has joined #ruby
pwnd_nsfw has joined #ruby
edgr has quit [Ping timeout: 244 seconds]
wuyin has quit [Ping timeout: 258 seconds]
symm- has quit [Ping timeout: 240 seconds]
edgr has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
lightstalker has joined #ruby
lightheaded has joined #ruby
tmtwd has joined #ruby
beawesomeinstead has quit [Ping timeout: 260 seconds]
rkazak has quit [Quit: Sleep.....ing....]
aazsdk has quit [Ping timeout: 276 seconds]
aazsdk has joined #ruby
beawesomeinstead has joined #ruby
motivic has quit [Quit: WeeChat 1.5]
lightheaded has quit [Ping timeout: 258 seconds]
craysiii has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
ggherdov has quit [Ping timeout: 260 seconds]
motivic has joined #ruby
rkazak has joined #ruby
cloaked1 has quit [Quit: leaving]
reednj_ has joined #ruby
wuyin has joined #ruby
ggherdov has joined #ruby
jazzonmym111nd has joined #ruby
jazzonmym11nd has quit [Ping timeout: 244 seconds]
<carltonb_> drbrain: ok but how do i build or install this gem? your link says how to set up a configuration file but it already has one..?
Vingador has joined #ruby
reednj_ has quit [Ping timeout: 260 seconds]
<drbrain> carltonb_: get your own checkout of mruby and add the mgem to its build_config.rb - https://github.com/mruby/mruby/blob/master/build_config.rb
<drbrain> then you'll be able to bin/mirb (or build/mruby) to try it
pwnd_nsfw` has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
<drbrain> carltonb_: here's the Rakefile I use in my mgems: https://github.com/fastly/mruby-optparse/blob/master/Rakefile
<drbrain> you can `rake mruby` to get mirb/mruby with your mgem compiled in
craysiii has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
passbe has quit [Ping timeout: 265 seconds]
dminuoso has joined #ruby
Velizar has quit [Quit: Velizar]
Elvin has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has quit [Ping timeout: 244 seconds]
tectonic has quit []
dminuoso has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
hahuang61 has joined #ruby
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
arashb has joined #ruby
ajsharma has joined #ruby
wuyin has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 265 seconds]
skweek has quit [Ping timeout: 244 seconds]
dviola has quit [Quit: WeeChat 1.5]
wuyin has joined #ruby
arashb has quit [Ping timeout: 258 seconds]
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
braincrash has quit [Quit: bye bye]
dreamyspell has quit [Quit: Leaving]
jhack has joined #ruby
Trynemjoel has quit [Quit: Quitting]
pawnbox has joined #ruby
jhill has quit [Ping timeout: 260 seconds]
craysiii has joined #ruby
passbe has joined #ruby
jhill has joined #ruby
saneax-_-|AFK is now known as saneax
Trynemjoel has joined #ruby
braincras has joined #ruby
iMadper has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
Tharbakim has quit [Ping timeout: 244 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
motivic has quit [Ping timeout: 252 seconds]
zacts has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lightheaded has joined #ruby
ta_ has joined #ruby
gix has quit [Ping timeout: 265 seconds]
rsampaio_ has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
lightheaded has quit [Ping timeout: 258 seconds]
jhack has quit [Quit: jhack]
xcGlQHdZGT has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 240 seconds]
gix has joined #ruby
sand-bird has joined #ruby
sgc2c has joined #ruby
sgc2c has left #ruby [#ruby]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
reednj_ has joined #ruby
hobodave has joined #ruby
craysiii has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapi_ has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
reednj_ has quit [Remote host closed the connection]
reednj_ has joined #ruby
tomchapi_ has quit [Client Quit]
ericsupreme has joined #ruby
Regulati_ has joined #ruby
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
C0D3JUNKIE has quit [Quit: irc client :P]
RegulationD has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
CloCkWeRX has joined #ruby
gusrub has joined #ruby
Tharbakim has joined #ruby
ajsharma has joined #ruby
Lucky_ABA has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zacts has quit [Ping timeout: 260 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
dminuoso has joined #ruby
reednj_ has quit [Read error: Connection reset by peer]
reednj_ has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
Velizar has joined #ruby
dminuoso has quit [Ping timeout: 265 seconds]
davedev24 has quit [Remote host closed the connection]
Ruby_Rocks_007 has joined #ruby
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ajsharma has joined #ruby
Rickmasta has joined #ruby
e2021 has joined #ruby
reednj_ has quit [Ping timeout: 265 seconds]
jtdoncas has joined #ruby
crystal77 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
arnonhongklay has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 244 seconds]
hqkLChMUKc has joined #ruby
e2021 has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
jtdoncas has quit [Ping timeout: 258 seconds]
Asher has quit [Quit: Leaving.]
arnonhongklay has joined #ruby
reednj_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
AnoHito has joined #ruby
saneax is now known as saneax-_-|AFK
creat has quit [Ping timeout: 264 seconds]
reednj_ has quit [Remote host closed the connection]
AnoHito_ has quit [Ping timeout: 260 seconds]
yeticry has quit [Ping timeout: 252 seconds]
astrobun_ has quit [Ping timeout: 250 seconds]
pokalyis has joined #ruby
creat has joined #ruby
craigp has quit [Ping timeout: 276 seconds]
aryaching has quit [Remote host closed the connection]
rkazak has joined #ruby
zacts has joined #ruby
yeticry has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crystal77 has joined #ruby
Guest48849 has quit [Ping timeout: 260 seconds]
vdamewood has quit [Quit: Life beckons.]
govg has quit [Ping timeout: 244 seconds]
ericsupreme has quit [Quit: Leaving]
tvon has quit [Quit: System is sleeping...]
govg has joined #ruby
lightheaded has joined #ruby
tvon has joined #ruby
beawesomeinstead has quit [Ping timeout: 264 seconds]
rkazak has quit [Quit: Sleep.....ing....]
govg has quit [Ping timeout: 244 seconds]
beawesomeinstead has joined #ruby
maloik has quit [Remote host closed the connection]
lightheaded has quit [Ping timeout: 258 seconds]
maloik has joined #ruby
govg has joined #ruby
moneylotion has quit [Quit: ZNC 1.6.3 - http://znc.in]
vuoto has joined #ruby
cpruitt has quit [Quit: cpruitt]
tdy has joined #ruby
moneylotion has joined #ruby
govg has quit [Ping timeout: 258 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
Contigi has quit [Quit: Leaving]
l4v2 has joined #ruby
hahuang61 has joined #ruby
chosen1 has joined #ruby
jarred has quit [Quit: Connection closed for inactivity]
craysiii has joined #ruby
dminuoso has joined #ruby
AnoHito_ has joined #ruby
craysiii has quit [Client Quit]
hahuang61 has quit [Ping timeout: 250 seconds]
edgr has quit [Ping timeout: 265 seconds]
astrobun_ has joined #ruby
Parko has quit [Read error: Connection reset by peer]
LoneHermit has joined #ruby
AnoHito has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
dminuoso has quit [Ping timeout: 250 seconds]
edgr has joined #ruby
moneylotion has quit [Quit: ZNC 1.6.3 - http://znc.in]
arescorpio has quit [Read error: Connection reset by peer]
moneylotion has joined #ruby
nankyokusei has joined #ruby
vuoto has quit [Quit: Lost terminal]
Rodya_ has quit [Quit: Leaving...]
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
gusrub has quit []
jeffaustin81 has joined #ruby
rkazak has joined #ruby
dminuoso has joined #ruby
lightheaded has joined #ruby
syndikate_ has joined #ruby
syndikate_ has quit [Read error: Connection reset by peer]
reednj_ has joined #ruby
johnmilton has quit [Ping timeout: 276 seconds]
reednj_ has quit [Read error: Connection reset by peer]
ngscheurich has joined #ruby
croberts has quit [Remote host closed the connection]
griffindy has joined #ruby
jeffaustin81 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
Ropeney has quit [Excess Flood]
Vingador has quit [Ping timeout: 265 seconds]
Ropeney has joined #ruby
craigp has joined #ruby
edgr has quit [Ping timeout: 260 seconds]
lele has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
howdoi has joined #ruby
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 250 seconds]
alfiemax has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
edgr has joined #ruby
dminuoso has quit [Ping timeout: 244 seconds]
reednj_ has joined #ruby
lele has joined #ruby
LoneHermit has quit [Remote host closed the connection]
braderhart has quit [Ping timeout: 264 seconds]
ngscheurich has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
braderhart has joined #ruby
craigp has quit [Quit: WeeChat 1.5]
craigp has joined #ruby
lightheaded has quit [Remote host closed the connection]
UserOO7 has joined #ruby
e2021 has joined #ruby
johnmilton has joined #ruby
tmtwd has quit [Ping timeout: 244 seconds]
Vingador has joined #ruby
Velizar has quit [Quit: Velizar]
reednj_ has quit [Ping timeout: 260 seconds]
LoneHerm_ has quit [Ping timeout: 258 seconds]
zacts has quit [Quit: WeeChat 1.5]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bocaneri has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
djbkd has joined #ruby
redpants has joined #ruby
e2021 has quit [Read error: Connection reset by peer]
craysiii has joined #ruby
tvw has joined #ruby
Guest53026 has quit [Ping timeout: 244 seconds]
craysiii has quit [Client Quit]
redpants has quit [Ping timeout: 260 seconds]
wugy has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Parko has joined #ruby
UserOO7 has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
zacts has joined #ruby
craysiii has joined #ruby
craysiii has quit [Client Quit]
dminuoso has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
apipkin__ has quit [Ping timeout: 260 seconds]
apipkin__ has joined #ruby
djbkd has quit []
arashb has joined #ruby
arashb has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
firstdayonthejob has joined #ruby
RegulationD has joined #ruby
bad_ip has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
Regulati_ has quit [Ping timeout: 240 seconds]
djbkd has quit []
phredus has quit [Remote host closed the connection]
jgnagy has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 244 seconds]
Spami has quit [Client Quit]
Spami has joined #ruby
phredus has joined #ruby
nhhc has joined #ruby
polkovnik has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
yardenbar has joined #ruby
johnmilton has quit [Ping timeout: 276 seconds]
lightheaded has joined #ruby
VladGh has quit [Ping timeout: 265 seconds]
dminuoso has quit [Ping timeout: 244 seconds]
d0nn1e has quit [Ping timeout: 250 seconds]
blaxter has joined #ruby
johnmilton has joined #ruby
aupadhye has joined #ruby
l4v2 has quit [Quit: l4v2]
d0nn1e has joined #ruby
Silthias has joined #ruby
ukk has joined #ruby
galeido has joined #ruby
VnrycepuxO has quit [Remote host closed the connection]
conta has joined #ruby
ozzloy has quit [Ping timeout: 264 seconds]
govg has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
VladGh has joined #ruby
reednj_ has joined #ruby
firstdayonthejob has quit [Ping timeout: 264 seconds]
Wolland has joined #ruby
hqkLChMUKc has quit [Remote host closed the connection]
reednj_ has quit [Ping timeout: 244 seconds]
watersoul has quit [Remote host closed the connection]
watersoul has joined #ruby
watersoul has quit [Max SendQ exceeded]
pwnd_nsfw has quit [Read error: Connection reset by peer]
mr_rich101 has quit [Ping timeout: 260 seconds]
pwnd_nsfw has joined #ruby
anisha has joined #ruby
hahuang61 has joined #ruby
Parko has quit [Ping timeout: 265 seconds]
AndrewIsHere has joined #ruby
andikr has joined #ruby
mr_rich101 has joined #ruby
symm- has joined #ruby
amclain has quit [Quit: Leaving]
aganov has joined #ruby
watersoul has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang61 has quit [Ping timeout: 260 seconds]
mindaslab has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
anisha has quit [Quit: This computer has gone to sleep]
JoshS has joined #ruby
Regulati_ has joined #ruby
blackwind_123 has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
elifoster has joined #ruby
biberu has joined #ruby
harai has joined #ruby
nankyokusei has joined #ruby
saneax-_-|AFK is now known as saneax
johnmilton has quit [Ping timeout: 244 seconds]
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
blackwind_123 has joined #ruby
bayed has joined #ruby
Bish has quit [Ping timeout: 265 seconds]
astrobu__ has joined #ruby
dminuoso has joined #ruby
last_staff has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
davic has quit [Ping timeout: 260 seconds]
Bish has joined #ruby
k3rn31 has joined #ruby
davic has joined #ruby
astrobun_ has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 265 seconds]
davedev24 has joined #ruby
CloCkWeRX has joined #ruby
toretore has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
davedev24 has quit [Ping timeout: 258 seconds]
Wolland has quit []
Burgestrand has joined #ruby
ta_ has joined #ruby
stamina has joined #ruby
astrobu__ has quit [Remote host closed the connection]
Macaveli has joined #ruby
TomyWork has joined #ruby
submitnine has joined #ruby
Ruby_Rocks_007 has joined #ruby
aufi has joined #ruby
johnmilton has joined #ruby
Madplatypus has joined #ruby
craigp has quit [Ping timeout: 264 seconds]
teclator has quit [Quit: No Ping reply in 180 seconds.]
craigp has joined #ruby
MrBusiness2 has joined #ruby
teclator has joined #ruby
mrsolo has quit [Ping timeout: 260 seconds]
MrBusiness has quit [Ping timeout: 250 seconds]
stamina has quit [Ping timeout: 244 seconds]
mrsolo has joined #ruby
davidmichaelkarr has quit [Ping timeout: 264 seconds]
Burgestrand has quit [Ping timeout: 244 seconds]
AndyWojo has quit [Ping timeout: 260 seconds]
davidmichaelkarr has joined #ruby
saneax is now known as saneax-_-|AFK
Burgestrand has joined #ruby
hipertracker has quit [Quit: hipertracker]
AndyWojo has joined #ruby
reednj_ has joined #ruby
claudiuinberlin has joined #ruby
Burgestrand has quit [Ping timeout: 250 seconds]
arashb has joined #ruby
ta__ has joined #ruby
Burgestrand has joined #ruby
phredus has quit [Read error: Connection reset by peer]
antgel has joined #ruby
k3rn31_ has joined #ruby
edwinvdgraaf has joined #ruby
k3rn31 has quit [Read error: Connection reset by peer]
reednj_ has quit []
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
phredus has joined #ruby
ta_ has quit [Remote host closed the connection]
arashb has quit [Ping timeout: 244 seconds]
mindaslab has quit [Ping timeout: 264 seconds]
edwinvdg_ has joined #ruby
mark_66 has joined #ruby
Steve_Jobs has quit [Ping timeout: 244 seconds]
edwinvdgraaf has quit [Ping timeout: 260 seconds]
ramblinpeck has quit [Ping timeout: 260 seconds]
_ceph has joined #ruby
jsrn_ has joined #ruby
ramblinpeck has joined #ruby
<_ceph> I thought that this was fairly active all day
_ceph has quit [Client Quit]
k3rn31_ has quit [Quit: Computer has gone to sleep.]
xrlabs has joined #ruby
anisha has joined #ruby
pwnd_nsfw` has joined #ruby
the_drow has joined #ruby
fivmo has joined #ruby
phredus has quit [Remote host closed the connection]
orangey has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
phredus has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
bad_ip has joined #ruby
k3rn31 has joined #ruby
ReK2 has quit [Remote host closed the connection]
Hyuk has joined #ruby
elifoster has quit [Quit: sleep]
FastJack has quit [Ping timeout: 244 seconds]
jshjsh has joined #ruby
grahamb has joined #ruby
ReK2 has joined #ruby
<atmosx> ?
astrobun_ has joined #ruby
<atmosx> !
newcomer25 has joined #ruby
aidalgol has joined #ruby
JoshS has quit [Ping timeout: 265 seconds]
<newcomer25> The whole Law is fulfilled in one statement: ‘You’ll love your neighbour as much as yourself’ - Galatians 5:14
<newcomer25> God bless you all and have fun programming!
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
<dminuoso> Bah. I really begin to need goto..
<dminuoso> Can't implement algorithms properly without it. :(
<apeiros> newcomer25: we'd prefer if you'd leave religion out of this channel. thank you.
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
FastJack has joined #ruby
jinie has joined #ruby
<dminuoso> atmosx: Well, I could simply use catch/throw.
koooge has quit [Quit: Leaving...]
rkazak has quit [Quit: Sleep.....ing....]
bad_ip has quit [Read error: Connection reset by peer]
bad_ip has joined #ruby
koooge has joined #ruby
hipertracker has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<grahamb> I'm going through combinators.info and have gotten stuck about 1/3 way in. It was totally clear until `yield` was used. Can anyone help me understand? Many thanks. http://pastebin.com/w0Rh1ycM
<ruby[bot]> grahamb: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/d06deb09a98955f68dcb3cc99d90bcbf
<ruby[bot]> grahamb: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jshjsh is now known as JoshS
<dminuoso> grahamb: yield will invoke the *block*
<dminuoso> The one passed to the method itself.
<dminuoso> The block passed to lambda_with_recursive_callback itself.
dANOKELOFF has joined #ruby
<dminuoso> grahamb: It's no different than the previous combinator. :)
Chair has joined #ruby
<grahamb> dminuoso: right, that one was totally clear.
orangey has joined #ruby
<grahamb> so the block, is that sort of just taking a function and giving it an environment/context?
<dminuoso> grahamb: blocks/procs/lambda are more or less the same thing.
sand-bird has quit [Ping timeout: 240 seconds]
manson has joined #ruby
Snickers has joined #ruby
<grahamb> dminuoso: well, the the `sum_of_nested_list` initialization happens when `lambda_with_recursive_callback` is expecting `arg`
matp has joined #ruby
<grahamb> but `arg` is not getting bound to the `...do |arg, recurse|...` bit
saneax-_-|AFK is now known as saneax
<dminuoso> grahamb: The combinator you are looking at and the previous are basically identical.
<dminuoso> grahamb: The difference between "passing a block to a function" and "passing a lambda as an argument" is non-existent for the purpose of understanding the concept of the code.
<dminuoso> Consider them to be the same (for now)
<grahamb> if i think of them the same, though, the bindings do not line up.
newcomer25 has left #ruby [#ruby]
<dminuoso> what bindings?
<dminuoso> there is only parameters used.
Bish has quit [Ping timeout: 244 seconds]
jaruga___ has joined #ruby
<grahamb> when lambda_with_recursive_callback is called, that first lambda is immediately invoked and binds x to `lambda do |myself|`, right?
Bish has joined #ruby
<dminuoso> grahamb: yes
Dimik has quit [Ping timeout: 244 seconds]
<grahamb> so the recursive "trick" is set up. the way it looks to me, it's now expecting "arg", is that still correct?
<dminuoso> no
<grahamb> ok. maybe that's where my misunderstanding is.
<grahamb> how do you see it?
<dminuoso> grahamb: It would be easier to discuss the previous snippet.
<dminuoso> The one using only lambdas.
harai has quit [Ping timeout: 264 seconds]
jazzonmym1nd has joined #ruby
al2o3-cr has joined #ruby
<grahamb> ok, sure.
hahuang61 has joined #ruby
<grahamb> previous one. immediately invokes, passing in the "guts" if you will (lambda do |arg, recurse|...).
<grahamb> so that is bound to "fn"
workmad3 has joined #ruby
fivmo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndrewIsHere has joined #ruby
<grahamb> inner lambda invokes, binds "x" to "lambda do |myself| ..."
<grahamb> returns a lambda expecting "arg". done at this point.
jazzonmym111nd has quit [Ping timeout: 240 seconds]
<grahamb> all correct?
axl_ has quit [Ping timeout: 244 seconds]
ukk has quit [Read error: Connection reset by peer]
ukk has joined #ruby
rsampaio_ has quit [Ping timeout: 258 seconds]
<dminuoso> grahamb: https://eval.in/628517
hahuang61 has quit [Ping timeout: 250 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
<dminuoso> grahamb: I think that variant is tons more readable.
<dminuoso> All your example does, is provide some wrapper function that prepares the entirety, so that you only have to provide the recursive lambda in line 6.
AndrewIsHere has quit [Ping timeout: 250 seconds]
Ishido has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
jinie has joined #ruby
<grahamb> dminuoso: ok, that's fine. but like i said, my understanding of that was fine (i thought). the block is still not clear.
<grahamb> and that's the part i'm concerned with atm.
giz|work has joined #ruby
<grahamb> so if it's a tangent to understand blocks, i'm ok with that.
<apeiros> if understanding blocks themselves is the issue, then a recursive-lambda might be a bit heavy as an entry point
pjanzen has joined #ruby
<grahamb> apeiros: well, i suggested what i think is happening with the blocks, because i have inklings about it.
<grahamb> i've also seen them in less hairy contexts, and i understood them there.
<dminuoso> grahamb: Let's assume a lambda and block is the same. When you call a function and pass a block, it's basically just an additional parameter containing this "lambda/block" you specified.
<dminuoso> grahamb: yield just calls that block.
<dminuoso> and when I say function I mean method of cours.e
fivmo has joined #ruby
<apeiros> given `foo do |a,b,c| a+b+c end`, then the implementation `def foo; x = yield(1,2,3); end;` is equivalent to `def foo(&block); x = block.call(1,2,3); end` - if that's of any help. former does not explicitly have a proc, latter does.
axl_ has joined #ruby
stamina has joined #ruby
giz|work|2 has joined #ruby
f4cl3y has joined #ruby
futilegames has joined #ruby
giz|work|2 has quit [Client Quit]
axl_ has quit [Ping timeout: 244 seconds]
zack6849 has quit [Ping timeout: 276 seconds]
Ishido has joined #ruby
futilegames has quit [Client Quit]
giz|work has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
ta_ has joined #ruby
axl_ has joined #ruby
<grahamb> apeiros: ok, so it is similar to supplying context/environment when thinking from a different perspective?
<apeiros> not sure what you understand by that.
<apeiros> it's similar to passing in a function.
<dminuoso> grahamb: Between those examples, nothing changed
<grahamb> dminuoso: can you rewrote your example using a block in the same way that my example did?
ta_ has quit [Ping timeout: 252 seconds]
<grahamb> apeiros: but it seems different because when you pass a block seems less important than when something is expecting a function next.
<apeiros> can you make an example of "something expecting a function next"?
<dminuoso> grahamb: https://eval.in/628550
CloCkWeRX has quit [Quit: Leaving.]
<grahamb> dminuoso: your yield is a layer different from my example.
<grahamb> there should be no lambdas inside of the yield.
<dminuoso> grahamb: You asked me to rewrite my example.
<dminuoso> So I did.
<grahamb> but in terms of my question, sorry.
<dminuoso> grahamb: Why do you want me to rewrite your example, when that's exactly what your website has done?
edwinvdg_ has quit [Ping timeout: 264 seconds]
nikivi has joined #ruby
<grahamb> dminuoso: i would have been fine sticking to the original example, but you brought yours in, so i was trying to keep you happy.
* dminuoso goes back to doing productive things
Burgestrand has joined #ruby
<grahamb> apeiros: my original example had the crux of my question: https://gist.github.com/d06deb09a98955f68dcb3cc99d90bcbf
<grahamb> the yield is the inner-most call, so i expected the block to be passed last, but it's not.
hipertracker has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
<dminuoso> grahamb: Before I head off to produce things, maybe there is a chance you get struck by enlightenment.
<dminuoso> Look at line 9
<dminuoso> Look at it real hard.
<dminuoso> Then look at line 5.
<dminuoso> Then think about it real hard.
raeoks has joined #ruby
<grahamb> dminuoso: that does not have yield. i *entirely* understand that example.
<grahamb> i even walked through it ^^
<dminuoso> grahamb: yield calls a block.
<dminuoso> grahamb: you pass it a block. fn is that block.
anisha_ has joined #ruby
<dminuoso> fn.call(...)
<dminuoso> now if you no longer pass a lambda as argument in line 9 and following
<grahamb> dminuoso: ok, in my original example. the block is not passed last, yet is the inner-most call. that is where the confusion arises.
<dminuoso> but a block
<dminuoso> grahamb: Look at line 5.
anisha has quit [Ping timeout: 244 seconds]
<grahamb> dminuoso: in that example, the arg will be passed last!
<grahamb> it makes perfect sense!
<dminuoso> what?
<dminuoso> no.
<dminuoso> grahamb: line 9 passes the lambda "ABC" to the lambda in line 1 as argument. It gets bound to "fn". That gets called in line 5.
pwnd_nsfw` has quit [Read error: Connection reset by peer]
<dminuoso> It's precisely the same thing.
<dminuoso> there I simplified.
<dminuoso> SOME_LAMBDA gets tossed into the argument "fn" of the outer lambda in line 1
ukk has quit [Read error: Connection reset by peer]
stamina has quit [Ping timeout: 252 seconds]
<dminuoso> that "SOME_LAMBDA" then gets called in line 5.
ukk has joined #ruby
aidalgol has quit [Ping timeout: 250 seconds]
<grahamb> dminuoso: and then... do you pass arg?
edwinvdgraaf has quit [Ping timeout: 250 seconds]
<dminuoso> There.
<dminuoso> That is what you need to grasp. These two are the same thing more or less.
<grahamb> that returns a lambda
<grahamb> right?
<dminuoso> What returns?
<grahamb> as in, if you eval that, it would return a lambda
pwnd_nsfw has joined #ruby
<dminuoso> Sure
<dminuoso> Look at my last example.
<grahamb> so that means it is still expecting something...
<dminuoso> Figure it out.
<grahamb> it is still expecting arg
<grahamb> see?
<dminuoso> grahamb: I recommend starting with blocks at the beginning.
<grahamb> *now* it will work!
<dminuoso> Not recursive lambdas.
<grahamb> the last thing was passed!
<grahamb> right?
astrobun_ has quit [Remote host closed the connection]
<grahamb> grahamb: here, i did it for you. don't even have to fire up irb: https://eval.in/628557
<grahamb> see how i added the *last thing it needed*? `arg`?
mikecmpbll has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
<dminuoso> grahamb: So I just wasted an hour because you can't read?
<dminuoso> If all you needed to know was "hey how do I invoke this recursive lambda", you should have said so.
fivmo has quit [Ping timeout: 244 seconds]
<grahamb> dminuoso: no, i knew how to do that from the beginning.
<grahamb> dminuoso: and i tried telling you. but you kept asserting that that was the problem.
arnonhon_ has joined #ruby
<grahamb> dminuoso: that was me finally proving that i knew that since you didn't understand when i simply said i understood.
aidalgol has joined #ruby
edwinvdgraaf has joined #ruby
Snowy has joined #ruby
_joes___ has joined #ruby
<dminuoso> grahamb: All I assert is that you demonstrate a lack of understanding of blocks.
<grahamb> dminuoso: *i know*. and yet you offered no help in that regard!
<grahamb> every time, "let's go to the last example"
<grahamb> then you rewrote it. without blocks.
<grahamb> and explain what i know to me some more.
<dminuoso> Im sorry, if you can't grasp what Ive been chanting all along, that it makes absolutely no difference whether you use a block or a lambda - then I cant help you.
<dminuoso> If you keep insisting that it needs to be explained in terms of blocks, then you need to buy a beginners book on Ruby.
astrobun_ has joined #ruby
<dminuoso> That is the last bit I will say on the subject. Good luck.
arnonhongklay has quit [Ping timeout: 276 seconds]
<grahamb> dminuoso: well, your examples didn't catch what my question was about, so it seems you never understood what i was after in the first place.
kjellpropell has joined #ruby
hk238 has joined #ruby
gypki has joined #ruby
arnonhon_ has quit [Read error: No route to host]
jeremM34 has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
arnonhongklay has joined #ruby
phredus has quit [Remote host closed the connection]
phredus has joined #ruby
kalpol has joined #ruby
<kalpol> I do a Poloniex.available_account_balances and I get this "=> "{\"exchange\":{\"BTC\":\"0.81278949\",\"XMR\":\"7.29447699\"}}"" from Poloniex's API. It is a string. When I do a .as_json, how can I grab the BTC or XMR value? Or any other way?
<apeiros> as_json is Object -> String
<apeiros> (aka "serialization")
<workmad3> kalpol: you want to JSON.parse it
Burgestrand has quit [Client Quit]
<apeiros> you want deserialization (String -> Object), and for that ^
Burgestrand has joined #ruby
<kalpol> like JSON.parse(element)?
<apeiros> assuming your string is in the variable "element", yes.
<workmad3> apeiros: well, in rails, `as_json` is Object -> Hash, as it basically 'prepares' an object for serialisation :)
<apeiros> workmad3: right. read that as to_json :D
<apeiros> don't we have a new way now even? #serializable or somesuch?
<workmad3> serializable_hash
* apeiros usually uses presenters anyway
<kalpol> workmad3: works perfectly. thank you
<workmad3> I tend towards AM:S most of the time
nikivi has quit [Quit: irc]
<workmad3> kalpol: np :)
aidalgol has quit [Ping timeout: 240 seconds]
bad_ip has quit [Read error: No route to host]
bad_ip has joined #ruby
<jeremM34> Macdonald or pizza ? Please help me !!!
<workmad3> jeremM34: pizza!
Burgestrand has quit [Ping timeout: 276 seconds]
<jeremM34> Okay pizza !! XD
kalpol has quit [Quit: Page closed]
<workmad3> jeremM34: you need pretty good burgers to contend with even a bad pizza... and mcdonalds isn't a good burger
<jeremM34> So ................................... PIZZAAAAAAA !!! =D
<hanmac> selfmade pizza or selfmade burger are the best!
<jeremM34> I agree but at work, do pizza myself ... Mmh ... Maybe one day =)
<hanmac> imo a good pizza does need to have a third dimension XD
Spami has quit [Quit: This computer has gone to sleep]
Burgestrand has joined #ruby
<jeremM34> Todo: Command Pizza : Check !
Burgestrand has quit [Read error: Connection reset by peer]
SuperTaz has quit [Ping timeout: 276 seconds]
LambdaSix has joined #ruby
daffy_duck has joined #ruby
mikhael_k33hl has joined #ruby
<mikhael_k33hl> I'm trying to create tests for a ruby script/program. How do I mock the required classes and test a particular method? I'm using MiniTest
<dminuoso> mikhael_k33hl: You just create a new mock object and tell it to expect a method
SuperTaz has joined #ruby
_joes___ has left #ruby [#ruby]
ukk has quit [Quit: WeeChat 1.5]
ukk has joined #ruby
_joes___ has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
Chair is now known as Couch
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_joes___ is now known as _joes_
_joes_ has quit []
_joes_ has joined #ruby
Burgestrand has joined #ruby
spectrum has joined #ruby
Burgestrand has quit [Client Quit]
Jonathel has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
astrobun_ has quit [Remote host closed the connection]
<Jonathel> has anyone got experience with ruby applications using AWS/SQS ?
<dminuoso> Jonathel: Just ask your question, instead of asking whether there is someone experienced around.
<Jonathel> well its more of a design question.. how do i implement background processing for sqs jobs
jaruga____ has joined #ruby
<mikhael_k33hl> dminuoso: How about if a class I'm trying to tests have a lot of require_relative classes. How do I pass the mocked objects to it?
k3rn31 has quit [Ping timeout: 264 seconds]
jaruga___ has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
<dminuoso> mikhael_k33hl: I think there may be a confusion about what mocking does.
ferr has joined #ruby
<dminuoso> mikhael_k33hl: Can you gist a small code to show what you are trying to do?
jaruga____ has quit [Remote host closed the connection]
<mikhael_k33hl> dminuoso: I'm really new to MiniTest so I haven't created any assert's as I am sitll having problems with initializing the class
jaruga____ has joined #ruby
hahuang61 has joined #ruby
k3rn31 has joined #ruby
pwnd_nsfw` has joined #ruby
ziyadb has joined #ruby
jinie has quit [Max SendQ exceeded]
AndrewIsHere has joined #ruby
jinie has joined #ruby
jinie has quit [Max SendQ exceeded]
jinie has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
jinie has quit [Max SendQ exceeded]
jinie has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdg_ has joined #ruby
nankyokusei has joined #ruby
flashpoint9 has joined #ruby
bad_ip has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
ogotai has joined #ruby
rodfersou has joined #ruby
aries_liuxueyang has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 250 seconds]
lightheaded has quit [Remote host closed the connection]
aries_liuxueyang has joined #ruby
lightheaded has joined #ruby
edwinvdg_ has quit [Ping timeout: 250 seconds]
sepp2k has joined #ruby
aries_liuxueyang has quit [Read error: Connection reset by peer]
aries_liuxueyang has joined #ruby
jinie has quit [Remote host closed the connection]
ukk has quit [Quit: WeeChat 1.5]
ukk has joined #ruby
jinie has joined #ruby
ukk has quit [Client Quit]
ukk has joined #ruby
lightheaded has quit [Ping timeout: 244 seconds]
blackgoat has joined #ruby
solocshaw has joined #ruby
c355e3b has joined #ruby
astrobun_ has joined #ruby
phredus has quit [Read error: Connection reset by peer]
phredus has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
ec0 has quit [Ping timeout: 250 seconds]
aryaching has quit [Ping timeout: 265 seconds]
edwinvdgraaf has joined #ruby
vuoto has joined #ruby
jkhl has joined #ruby
croberts has joined #ruby
vuoto has quit [Remote host closed the connection]
hanmac has joined #ruby
blaxter has quit [Quit: foo]
matp has quit [Ping timeout: 240 seconds]
gheegh has quit [Ping timeout: 265 seconds]
mikhael_k33hl has quit [Quit: Page closed]
phredus has quit [Remote host closed the connection]
tomchapi_ has joined #ruby
Snowy has quit [Remote host closed the connection]
skweek has joined #ruby
tomchapin has quit [Ping timeout: 276 seconds]
phredus has joined #ruby
lightheaded has joined #ruby
deadnull has joined #ruby
Smoht has joined #ruby
Burgestrand has joined #ruby
<Smoht> Hi guys! I have some code that looks like this
<Smoht> _("%{minimum_password_length} characters minimum") % {minimum_password_length: @minimum_password_length}
<Smoht> the _ function is provided by gettext, a library for translating programs
<Smoht> as you see there is some string interpolation going on
<dminuoso> Possibly. Does _() return a string?
<Smoht> yes dminuoso
<tobiasvl> then that code should work
<tobiasvl> interpolating into the returned string from _
<Smoht> yes yes
<apeiros> #ruby - so fast they help before the question was asked…
<apeiros> slow down you great people :D
<Smoht> the thing is, I'd like to do something like
<tobiasvl> snicker
<dminuoso> Smoht: Use public_send
* dminuoso hides from apeiros
<Smoht> _("%{@min_length} some text").convenient_interpolation
<apeiros> _("#{@min_length} some text")
crystal77 has joined #ruby
<dminuoso> Smoht: Refine String, add the method convenient_interpolation
<dminuoso> !next
<Smoht> yeah
yuki_is_bored has joined #ruby
<apeiros> no need for % there
<apeiros> the % is nice if your translation "key" is in a variable. i.e. not written at the same place as where you interpolate.
<canton7> won't that cause the value of '@min_length' at whenever the string was extracted to be baked into the localized string?
<canton7> which is NOT what you want
<apeiros> canton7: gettext works by translating a full string, not a key.
<canton7> yes indeed
<apeiros> i.e. unlike I18n in rails
<apeiros> oh
senayar has joined #ruby
<canton7> but won't '_("#{@min_length} some text")' cause the full string to be e.g. "3 some text", which will get translated into other languages like that
<yuki_is_bored> Hello, I'm having a problem here. In json["result"].each { |u| updates << Update.new(u) }. u is always nil, but in json["result"].each { |u| p u.class }. prints Hash.
<yuki_is_bored> I tried u.dup
<canton7> so there's no chance for you to insert the *actual* value of @min_length
<apeiros> I should read the code more carefully
<apeiros> yes, you're right canton7.
<apeiros> not what they want.
<canton7> you want to give your translators the string '%{min_length} some text' - that exact literal string - so they translate it with the placeholder intact
<dminuoso> yuki_is_bored: updates += json["result"].to_a
<dminuoso> yuki_is_bored: 23.4 times more elegant.
<dminuoso> Oh.
<dminuoso> Also 23.4 times less than what you want.
<dminuoso> It's like Im reading slashdot. Skip the article and go straight to the comments.
<yuki_is_bored> Updates.new can parse the hash into the object
<yuki_is_bored> but u is nil for some reason
<yuki_is_bored> I have no idea why
<dminuoso> yuki_is_bored: What makes you think that u is always nil?
<yuki_is_bored> No idea
marr has joined #ruby
<dminuoso> yuki_is_bored: No you must have an idea.
<yuki_is_bored> when I print u itself, it's not nil
<toretore> ?gist your full code yuki_is_bored
<ruby[bot]> toretore: I don't see no your, whom should I tell about gist?
<Smoht> so, I wanted to be sure there are no methods already similar to _("%{@min_length} some text").convenient_interpolation
<toretore> ?gist yuki_is_bored
<ruby[bot]> yuki_is_bored: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<dminuoso> yuki_is_bored: What makes you assume its nil in the first place
<apeiros> Smoht: no, there isn't
<dminuoso> Smoht: That's why you refine.
<yuki_is_bored> wait
<dminuoso> Smoht: If you refine, you dont care.
<canton7> Smoht, I'm not sure it would be possible to add one though
<apeiros> Smoht: the problem with that is that you'd have to somehow pass in the current binding
<apeiros> Smoht: otherwise .convenient_interpolation has no access to your current @ivars
<dminuoso> Smoht: Even if there was, with a refinement you would monkey patch it scoped to a module.
phredus has quit [Remote host closed the connection]
<Smoht> ok ok
<Smoht> don't worry guys I know how to metaprogram
<apeiros> you could do: .convenient_interpolation(binding)
<dminuoso> Smoht: refinement is not metaprogramming really. its monkey patching locally without affecting the rest of the program
<canton7> ... but then you've coupled the string given to translators so the names of your local variables
<canton7> you can't change the name of @min_value without getting all of your translators to re-translate the string
<canton7> having that separation between the placeholder in the string, and the names of your local vars, is nice and useful
<yuki_is_bored> I'm still new to Ruby btw
<dminuoso> yuki_is_bored: And why do you claim that "u" is nil?
<dminuoso> What behavior makes you suggest that?
phredus has joined #ruby
<canton7> you also can't use expressions in your strings - '"%{min_value"} % @min_value + 1'
<yuki_is_bored> dminuoso: because every time I pass it as an argument to 'Update.new' It's nil
<yuki_is_bored> I got an Exception for that
<yuki_is_bored> because Update.new only accepts Hash and String
<yuki_is_bored> and it says it's NilClass
ldnunes has joined #ruby
<yuki_is_bored> but everytime I replace it to something like `p u` it doesn't print nil
<dminuoso> yuki_is_bored: You are probably wrong.
<dminuoso> 13:55 < yuki_is_bored> I got an Exception for that
<dminuoso> That exception. Gist it with the full stack trace.
Snowy has joined #ruby
solars has quit [Ping timeout: 252 seconds]
Burgestrand has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
<toretore> json['result'].any?{|o| o.nil? }
jazzonmym11nd has joined #ruby
<yuki_is_bored> toretore: returns false
arnonhongklay has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
<dminuoso> yuki_is_bored: what is actually being passed?
arnonhongklay has joined #ruby
<yuki_is_bored> A hash
CuriousMind has joined #ruby
<yuki_is_bored> but when it's passed, it's nil
<dminuoso> yuki_is_bored: Ruby doesn't do that.
<yuki_is_bored> dminuoso: I know, but I have no idea why it did that
<CuriousMind> Is this the channel for ruby on rails?
<toretore> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dminuoso> ?rails CuriousMind
<ruby[bot]> CuriousMind: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<CuriousMind> I'm trying to do a command and it's not working. `rails create:db` or is it `rails create:db <database name>`
<CuriousMind> Ruby on rails dminuoso
<CuriousMind> And ok thanks ruby[bot]
<dminuoso> CuriousMind: that was just a command to direct the bot to tell you where to find the channel.
<CuriousMind> Oh that's a bot lol...
<CuriousMind> Yes I see
jazzonmym1nd has quit [Ping timeout: 264 seconds]
<dminuoso> yuki_is_bored: can you show us the inspect of the Hash passed?
<arup_r> I am on osx. I don't know why this command is failing -> cmd = "identify -density #{renderdpi} #{pdf}" ? Any body got this error at work? https://gist.github.com/aruprakshit/eec20057e8be2139920d24c8f957ead4#file-watermarkpdf-rb-L30 shows the full error
<dminuoso> yuki_is_bored: also the stack trace does not match the types.rb on github.
<dminuoso> yuki_is_bored: yuki_is_bored please gist the matching types.rb
<yuki_is_bored> dminuoso: wait
<toretore> the error message you're seeing is not raised in any of the files either
<toretore> something is missing
<arup_r> are u teeling me toretore
<arup_r> ?
<toretore> no
<arup_r> oh
<dminuoso> arup_r: what makes you think that cmd is failing?
<yuki_is_bored> dminuoso: I've pushed my local repo as well
<arup_r> dminuoso: that is on the error file
<arup_r> look closely
leftpad has joined #ruby
tyang has joined #ruby
Burgestrand has joined #ruby
gnufied has joined #ruby
lightheaded has quit [Read error: Connection reset by peer]
<toretore> >> 'messsage' == 'message' # yuki_is_bored
stamina has joined #ruby
<ruby[bot]> toretore: # => false (https://eval.in/628647)
<yuki_is_bored> oh wow
<dminuoso> Heh.
<dminuoso> toretore: I just spotted it too.
<dminuoso> yuki_is_bored: Next time look at the stack trace closely, and follow it by line numbers.
<dminuoso> Then you would have seen that this line caused the issue, not the super(raw) as you probably expected.
GinoManWorks has joined #ruby
<yuki_is_bored> Thanks dminuoso toretore
<yuki_is_bored> I'm pretty sleepy right now
<yuki_is_bored> so that's probably why :P
alfiemax has quit [Ping timeout: 258 seconds]
<spectrum> Sup, I'm tring to install ruby through rvm on cygwin and I've run into a bug
al2o3-cr has quit [Ping timeout: 260 seconds]
<dminuoso> That chunk is a huge code smell btw.
<yuki_is_bored> dminuoso: I'll split it later .-.
lightheaded has joined #ruby
<spectrum> I try to run gem install bundler but I get a LoadError when resolv.rb tries to require 'win32/resolv'
<spectrum> actually hold that though
iamdevnul has quit [Ping timeout: 250 seconds]
sindork_ has quit [Ping timeout: 250 seconds]
zero7 has quit [Ping timeout: 250 seconds]
habitullence has quit [Ping timeout: 250 seconds]
sindork has joined #ruby
bogdanteleaga has quit [Ping timeout: 258 seconds]
iamdevnul has joined #ruby
Lewix has quit [Ping timeout: 250 seconds]
wugy has quit []
wugy has joined #ruby
mgorbach has quit [Ping timeout: 258 seconds]
musl_ has joined #ruby
Gadgetoid has quit [Ping timeout: 258 seconds]
unreal has quit [Ping timeout: 250 seconds]
deimos has quit [Ping timeout: 250 seconds]
programmerq has quit [Ping timeout: 250 seconds]
sarbs has quit [Ping timeout: 250 seconds]
cyphase has quit [Ping timeout: 250 seconds]
kireevco has quit [Ping timeout: 250 seconds]
musl has quit [Ping timeout: 250 seconds]
discopatrick has quit [Ping timeout: 250 seconds]
blingrang has quit [Ping timeout: 250 seconds]
brucebag has quit [Ping timeout: 258 seconds]
KramerC has quit [Ping timeout: 250 seconds]
bedouin has quit [Ping timeout: 250 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 250 seconds]
zzak has quit [Ping timeout: 250 seconds]
Gadgetoid has joined #ruby
Lewix has joined #ruby
kmckelvin has quit [Ping timeout: 250 seconds]
colstrom has quit [Ping timeout: 250 seconds]
Travis-42 has quit [Ping timeout: 250 seconds]
unreal has joined #ruby
brucebag has joined #ruby
brucebag has quit [Changing host]
brucebag has joined #ruby
colstrom has joined #ruby
thomas1 has joined #ruby
kireevco has joined #ruby
ghostlight has quit [Ping timeout: 244 seconds]
zzak has joined #ruby
zero7 has joined #ruby
hahuang61 has joined #ruby
hutch34 has joined #ruby
discopatrick has joined #ruby
sarbs has joined #ruby
deimos has joined #ruby
alnewkir1 has quit [Ping timeout: 250 seconds]
Lloyd has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
Travis-42 has joined #ruby
kmckelvin has joined #ruby
bedouin has joined #ruby
Fire-Dragon-DoL has joined #ruby
alnewkirk has joined #ruby
nadir has quit [Ping timeout: 250 seconds]
russt has quit [Ping timeout: 250 seconds]
alexherbo2 has quit [Ping timeout: 250 seconds]
humd1ng3r has quit [Ping timeout: 250 seconds]
Diabolik has quit [Ping timeout: 250 seconds]
bjmllr has quit [Ping timeout: 250 seconds]
aazsdk has quit [Remote host closed the connection]
humd1ng3r has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Koshian has quit [Ping timeout: 250 seconds]
codeman777 has quit [Ping timeout: 250 seconds]
jhass has quit [Ping timeout: 250 seconds]
KramerC has joined #ruby
thomas has quit [Read error: Connection reset by peer]
cyphase has joined #ruby
bogdanteleaga has joined #ruby
nadir has joined #ruby
dipnlik has joined #ruby
alexherbo2 has joined #ruby
CuriousMind has quit [Quit: Page closed]
Koshian has joined #ruby
the_drow has quit [Quit: Leaving]
blingrang has joined #ruby
Diabolik has joined #ruby
bjmllr has joined #ruby
stamina has quit [Ping timeout: 264 seconds]
russt has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
Lloyd has joined #ruby
harfangk has joined #ruby
i- has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
ta_ has quit [Ping timeout: 264 seconds]
mgorbach has joined #ruby
programmerq has joined #ruby
Snowy has quit [Ping timeout: 250 seconds]
jhack has joined #ruby
jhass has joined #ruby
ghostlight has joined #ruby
ghostlight has quit [Max SendQ exceeded]
ghostlight has joined #ruby
symm- has quit [Quit: Leaving...]
nhhc has quit [Quit: Leaving]
plasticxme has joined #ruby
swills has quit [Ping timeout: 244 seconds]
wugy has quit [Read error: Connection reset by peer]
RedNifre_ is now known as RedNifre
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
plasticxor has quit [Ping timeout: 264 seconds]
pwnd_nsfw has joined #ruby
jhack has quit [Quit: jhack]
naftilos76 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
kjellpropell has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
etehtsea has joined #ruby
DoubleMalt has joined #ruby
matp has joined #ruby
Snowy has joined #ruby
wingwalker_ has joined #ruby
Asher has joined #ruby
<grahamb> dminuoso: resolved it. like i tried to say, it had nothing to do with the lambda version, and everything to do with blocks
mjuszczak has joined #ruby
<grahamb> the crux of the whole thing: blocks have to be passed to methods upfront, not when it looks like yield is returning something.
<grahamb> that's it. that was all i needed to hear. example: https://gist.github.com/anonymous/1a94709ece0430ad87332fed148d5961
mjuszczak has quit [Max SendQ exceeded]
<grahamb> and if you weren't'sure what i was talking about when i asked if blocks create a new environment (which they do), Ruby Under a Microscope could give you a little insight there
mjuszczak has joined #ruby
<dminuoso> grahamb: Nobody said blocks are like functions.
<dminuoso> Blocks are like lambdas.
<dminuoso> grahamb: And I have read Ruby under a Microscope enough to have hacked Ruby myself, thank you for the recommendation though.
synthroid has joined #ruby
<dminuoso> grahamb: And if you had bothered to look at my last complete recursive example, you could have seen that what you say is simply not true.
<Smoht> uhm
jeremM34 has quit [Quit: Leaving]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
<Smoht> I'm dealing with binding() now
<grahamb> ahh, functions/lambdas, my mistake.
<Smoht> I can access instance variables like this
<grahamb> dminuoso: well, chapter 8 discusses environments a bit. :)
<Smoht> @x = 1; binding.eval("@x")
<dminuoso> grahamb: I think you still do not understand blocks completely.
<grahamb> and what part is not true? i've said quite a bit. :)
<dminuoso> grahamb: "blocks must be passed *upfront* to methods"
<Smoht> but how can I access @x from binding without using eval?
<dminuoso> That statement makes absolutely no sense.
<grahamb> sure it does.
<dminuoso> Smoht: instance_variable_get
<dminuoso> grahamb: No it does not.
valkyr1e has quit [Quit: Bye.]
<grahamb> how so?
<dminuoso> There is very little difference to these two: a = proc{}; foo(a); foo {}
<Smoht> dminuoso, instance_variable_get works for self
<Smoht> I mean
jtdoncas has joined #ruby
<Smoht> @x = 1; self.instance_variable_get("@x")
<Smoht> is one thing
<dminuoso> grahamb: In fact, since you want to go into the details: Both are passing a "BLOCK" to the method foo. The only difference is, one is hidden inside a proc (or lambda) object but an explicit parameter, and the other without a ruby object in an implicit parameter.
<Smoht> @x = 1; binding.eval("@x")
<Smoht> is another
<grahamb> how do i get proc into bar there?
<apeiros> Smoht: class Binding; def bound_self; @_bound_self ||= eval("self"); end; end
<apeiros> Smoht: and then binding.bound_self.instance_variable_get
fmcgeough has joined #ruby
synthroid has quit [Ping timeout: 250 seconds]
<apeiros> binding.instance_variable_get works on the Binding instance itself
<Smoht> ok
<apeiros> it's a bit sad. I thought 2.3 had a method on binding to get 'self'. but alas, seems it still doesn't.
<Smoht> so now how I design the String#convenient_interpolation method?
<dminuoso> these two are equivalet.
<apeiros> Smoht: gsub with a block
<dminuoso> equivalent.
<Smoht> w8
<Smoht> should I pass self or a binding?
<apeiros> oh, self works too
<apeiros> if you want ivars
<apeiros> if you want lvars you need binding
nankyokusei has joined #ruby
<apeiros> up to you how you want to do it
<Smoht> I need both ivars and lvars, and I don't want to use Binding#eval
<grahamb> dminuoso: what i mean is if i do `barr.call(5)`, it says no block given
<grahamb> is there a way around that?
pokalyis has joined #ruby
<grahamb> *`bar.call(5)`
<apeiros> the gsub is basically: str.gsub(/%\{(@[A-Za-z\d_]\w*)\}/) { |match| scope.instance_variable_get(match) }
<Smoht> maybe calling "string".method(binding) is more idiomatic than method(self)
<dminuoso> grahamb: If you use yield without passing a block, then yes, it will complian about no block given.
<dminuoso> grahamb: Let's stop using yield for now, and use the other syntax.
<apeiros> Smoht: I don't think either is more idiomatic
<grahamb> dminuoso: well, that's what i meant by blocks must be passed upfront. get it?
<dminuoso> What?
pokalyis has quit [Client Quit]
<apeiros> binding is just a rarely used object. but both, accessing foreign lvars and ivars is somewhat unidiomatic.
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
<dminuoso> >> def f(a); a.call; end; f() # grahamb
<ruby[bot]> dminuoso: # => wrong number of arguments (given 0, expected 1) (ArgumentError) ...check link for more (https://eval.in/628705)
<dminuoso> grahamb: If you write code that assumes things to be existing but not passing them, you get errors
<dminuoso> what is your point?
<grahamb> dminuoso: the point is you need to pass the block upfront. :)
<grahamb> that's all.
<dminuoso> grahamb: That still makes no sense.
<dminuoso> Those two are identical.
<dminuoso> (Well almost)
ramortegui has joined #ruby
<dminuoso> grahamb: my snippet given to ruby[bot] is better still.
pokalyis has joined #ruby
synthroid has joined #ruby
<dminuoso> >> def f(a); a.call; end; f() # grahamb - not passing anything, but the code assumes an argument
<ruby[bot]> dminuoso: # => wrong number of arguments (given 0, expected 1) (ArgumentError) ...check link for more (https://eval.in/628706)
nankyokusei has quit [Ping timeout: 244 seconds]
<dminuoso> >> def f(a); a.call; end; f(lambda{ puts "hello" }) # grahamb this however works.
<ruby[bot]> dminuoso: # => hello ...check link for more (https://eval.in/628707)
etehtsea has quit [Ping timeout: 265 seconds]
<dminuoso> Stop reading books on Ruby internals if you dont understand core language features yet.
DoubleMalt has quit [Remote host closed the connection]
<grahamb> dminuoso: so you can't call a method with no args and get the block in later, right?
<dminuoso> what do you even mean with "get the block later in"
<dminuoso> Can you get a "parameter into a method after calling it" ?
<dminuoso> But sure, theres enough facilities to do this if you want.
cdg has joined #ruby
<dminuoso> Use a global variable, procify/lambdarize the block and put it in.
<grahamb> i mean a method that yields. i call the method with no args and store it in bar. can i get the proc it wants in via bar?
<Smoht> ty apeiros, dminuoso
wugy has joined #ruby
nettoweb has joined #ruby
<dminuoso> grahamb: what do you mean?
<grahamb> i think it was almost answered before
<dminuoso> grahamb: Do you even understand what yield does?
<grahamb> yes.
<grahamb> now can you get the proc into bar after having already called foo without supplying it?
imr has joined #ruby
<dminuoso> What?
<grahamb> did you look at the paste?
<dminuoso> You are just babbling.
<grahamb> no, i'm really not. you get really close to answering, then jsut go off on a tangent
<Smoht> grahamb, I didn't follow closely
<dminuoso> Yes you really are.
<Smoht> are you looking for function currying?
vondruch has quit [Ping timeout: 264 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
<grahamb> Smoht: in my paste, i have bar. it already called the method foo. foo yields, but no proc was supplied in the bar invocation. can that proc be supplied after the fact?
<grahamb> or is bar a lost cause at this point?
jphase has joined #ruby
<dminuoso> grahamb: Are you trying to modify a lambda?
<Smoht> my brain hurts
hutch34 has quit [Ping timeout: 276 seconds]
millerti has joined #ruby
<apeiros> Smoht: btw., if you want to allow escaping, you need /(?<!\\)(\\\\)*\\%)|%…/) and test for leading \ in the block. hope I remember that right, didn't test it :D
edwinvdgraaf has quit [Ping timeout: 250 seconds]
<grahamb> dminuoso: no, i'm asking if what i asked is possible.
edwinvdgraaf has joined #ruby
<dminuoso> grahamb: bar is a variable.
<grahamb> so the proc needed to be passed when i called the method, right?
johnmilton has quit [Ping timeout: 252 seconds]
<dminuoso> grahamb: what proc?
<dminuoso> grahamb: the method foo() returns a lambda.
<grahamb> *if* i were to supply one
<dminuoso> grahamb: the contents of the lambda are evaluated when foo() is called.
johnmilton has joined #ruby
mjuszczak has quit []
<grahamb> dminuoso: hold on, hold on.
<Smoht> grahamb, I think I made it work
<Smoht> let me paste the think
<Smoht> thing*
<grahamb> *if* i wanted to supply a proc, i need to do it when i called `foo`, right?
<dminuoso> grahamb: a proc is just an object.
<yuki_is_bored> is there some good linters for ruby?
<apeiros> >> "%foo \\%bar \\\\%baz".gsub(/(?<!\\)(?:\\\\)*\\%\w+|%(\w+)/) { |m| m[0] == '\\' ? m[1..-1] : $1.upcase } # example using upcase instead of substitution, just to get the idea (and with fixed regex)
<ruby[bot]> apeiros: # => "FOO %bar \\\\BAZ" (https://eval.in/628733)
<yuki_is_bored> s/is/are/
<Smoht> grahamb, http://sprunge.us/Lacc
bweston92 has quit [Read error: Connection reset by peer]
<grahamb> dminuoso: that is not a yes or no...
rails45 has joined #ruby
<Smoht> apeiros, what the hell is that
<Smoht> I'm not following you
<grahamb> Smoht: that does do something, yes, but not what i'm asking about. :)
<rails45> Can you sort the elements of an array by the time they were pushed to that array?
<dminuoso> grahamb: You are asking a question for something that you have in mind. It does not reflect on how Ruby works in the slightest.
<dminuoso> grahamb: Rephrase your question in Ruby terms.
<Smoht> grahamb, write the boilerplate and the expected result
<dminuoso> Not in grahamb terms.
<Smoht> lol dminuoso
<grahamb> i thought it was pretty general terms, but ok
<Smoht> apeiros, I want to remain compatible with normal string interpolation
<grahamb> dminuoso: when you call a method that yields, you must supply the proc when you called the method, correct?
<apeiros> Smoht: it's how you do the interpolation, allowing for escaping
<apeiros> Smoht: c.f. ordinary interpolation:
astrobun_ has quit [Remote host closed the connection]
<grahamb> is there anything non-ruby there?
<apeiros> >> foo = "hello"; "#{foo} \#foo}"
<ruby[bot]> apeiros: # => "hello #foo}" (https://eval.in/628736)
<apeiros> whoops
<apeiros> >> foo = "hello"; "#{foo} \#{foo}"
<ruby[bot]> apeiros: # => "hello \#{foo}" (https://eval.in/628737)
<apeiros> I guess I should use `puts`, so you see that the \ vanishes
<apeiros> instead of $1.upcase, you'd put the variable-lookup there.
blaxter has joined #ruby
rails45 has quit [Client Quit]
<Smoht> apeiros, k I see your point, thanks
<Smoht> now I have to go
<apeiros> cya
<dminuoso> grahamb: https://eval.in/628738
<Smoht> I will inform you with my progress
arashb has joined #ruby
<grahamb> dminuoso: you really don't want to answer my question, do you?
<dminuoso> grahamb: I would like to if I understood your question in the slightest.
bweston92 has joined #ruby
<grahamb> bar did not provide a proc, right?
<dminuoso> "bar did not provide a proc" ?
<dminuoso> Start making sense.
malconis has joined #ruby
<dminuoso> bar is a variable holding an object.
<grahamb> `bar = foo()` implies a proc was not passed to foo, correct?
<dminuoso> In this case the code wont execute, because you are yielding without passing a block.
<grahamb> the code does execute. it returns a proc.
<grahamb> `bar = foo()` implies a proc was not passed to foo, correct?
<apeiros> yes, `bar = foo()` does not pass a block to foo.
<grahamb> apeiros: correct!
<grahamb> apeiros: would you then say that if you want to use a proc, it must be passed to `foo` upfront?
hutch34 has joined #ruby
<apeiros> `foo(&bar)`, `foo { … }`, `foo do … end` <-- these 3 forms pass a block.
<dminuoso> grahamb: it does not.
<dminuoso> grahamb: https://eval.in/628738
<dminuoso> I showed you the snippet a while ago.
<apeiros> grahamb: I don't understand what you're trying to say there, for that reason: no, I wouldn't say that.
<grahamb> dminuoso: your snippet doesn't yield.
<dminuoso> grahamb: It doesnt matter.
<dminuoso> grahamb: Seriously, stop holding onto whatever you are trying to force into your editor.
<apeiros> dminuoso: are we at a point with grahamb were we consider proc =~ block for the sake of easier explanation? or should I point out the difference?
<dminuoso> grahamb: the main difference is that blocks are not procified.
jhooker has joined #ruby
<dminuoso> or objectified.
<dminuoso> thats it.
<apeiros> block -> not an object
<apeiros> proc -> an object
<grahamb> apeiros: you understood the `bar = foo()` bit. if foo yields, is there a way to make it work with `bar`?
<gregf_> grahamb: you need to pass a block to foo .. what apeiros , dminuoso are trying to say
<apeiros> blocks -> only exist as special syntax passed to methods as block argument
<dminuoso> grahamb: https://eval.in/628739
<dminuoso> grahamb: There you can do it with blocks too.
<grahamb> gregf_: that's the point i'm trying to make.
<dminuoso> grahamb: the problem with "yield" is just that it always operates on the block_given to the method.
<dminuoso> grahamb: its just a syntax thing, it has nothing to do with blocks.
<apeiros> procs -> are objects and thus can be assigned to variables, can receive method invocations, can be passed as normal arguments to methods, can be passed as blocks to methods (using &proc_var syntax)
<dminuoso> grahamb: stop using yield, and things will begin to make sense.
<apeiros> grahamb: you can't invoke foo() without a block if it yields. that'll raise an exception.
<apeiros> grahamb: yield *requires* a block having been passed.
<apeiros> you can test whether a block was passed using `block_given?`
<grahamb> apeiros: that doesn't raise.
l4v2 has joined #ruby
<grahamb> it returns a proc.
<gregf_> >> def foo x; yield x;end ; p foo(10) { |x| x+x }
<dminuoso> grahamb: once you call the lambda it does.
<ruby[bot]> gregf_: # => 20 ...check link for more (https://eval.in/628740)
<grahamb> if you call that, it will raise.
<apeiros> grahamb: because foo doesn't yield
<grahamb> dminuoso: right.
<dminuoso> grahamb: https://eval.in/628739
<dminuoso> grahamb: look at that snippet.
<dminuoso> grahamb: the issue is JUST THE YIELD.
<apeiros> grahamb: it returns a *lambda* which will yield.
<dminuoso> its not about blocks.
<dminuoso> its about the word "yield"
<apeiros> but for the lambda to yield, you have to actually execute it
<dminuoso> yield does not do what you thinkn it does.
<apeiros> >> lambda do puts "foo" end
<ruby[bot]> apeiros: # => #<Proc:0x41bf9b04@/tmp/execpad-08627c276aa9/source-08627c276aa9:2 (lambda)> (https://eval.in/628741)
<apeiros> grahamb: ^ does not print
<apeiros> it does not print because the code in the lambda is *not* executed.
<apeiros> you have to invoke .call on the lambda object for the code to be run.
<grahamb> apeiros: right!
<grahamb> that's what i just said.
<gregf_> >> (lambda do puts "foo" end).()
<apeiros> no
<ruby[bot]> gregf_: # => foo ...check link for more (https://eval.in/628742)
<apeiros> subtle but relevant differences.
<dminuoso> grahamb: Can you please stop arguing with everybody. Either you know the details, then you wouldnt be asking, or consider listening a bit and understanding.
<grahamb> dminuoso: no, it's just i keep asking a question, then everyone suggests other things.
<apeiros> I didn't follow the conversation. but what I've read looked consistent.
d0lph1n98 has joined #ruby
<grahamb> like, can we pause, one second, i'll ask the question, and someone can answer the question. not ask what i'm doing. not offer a different approach. just answer the question.
malconis has quit [Remote host closed the connection]
<dminuoso> grahamb: Your question still makes no sense.
anisha_ has quit [Quit: This computer has gone to sleep]
<apeiros> grahamb: if your question makes sense, yes.
malconis has joined #ruby
<grahamb> ok, i'm using this example (again): https://gist.github.com/anonymous/c041209ec31f4f6c13907721116c202b
<apeiros> but lets try. if neither me nor dminuoso can make sense of your question, we'll see how we proceed.
<dminuoso> grahamb: don't use yield.
<dminuoso> grahamb: look at the snippet you have repeatedly ignored: https://eval.in/628739
<dminuoso> and learn.
<grahamb> dminuoso: please just follow along
<dminuoso> grahamb: No, you follow along. Im trying to teach you the mechanics so you can apply it to your problem.
<grahamb> apeiros: ok, you see `bar`, correct?
jhooker has quit [Ping timeout: 276 seconds]
<apeiros> grahamb: yes
<grahamb> apeiros: i've not provided a block in my call to `foo`. this is troubling.
jhooker has joined #ruby
<apeiros> grahamb: ok.
<grahamb> apeiros: at this point, is there anyway to provide that block to `bar`? or do i just need to call `foo` again and provide the block?
<apeiros> grahamb: no. there isn't.
ramortegui has quit [Quit: Ex-Chat]
<grahamb> apeiros: question answered.
<apeiros> you can't provide blocks to variables. period.
quiller has quit [Ping timeout: 264 seconds]
<gregf_> >> def foo; proc { |x| x * x };end; pr = foo do |x| x * x end; p pr; p pr.call(10) # grahamb that returns a proc. but what apeiros,dminuoso were saying was, you have to call it thereafter
<ruby[bot]> gregf_: # => #<Proc:0x4071975c@/tmp/execpad-78b689af3788/source-78b689af3788:2> ...check link for more (https://eval.in/628743)
<apeiros> blocks are passed to methods, and methods only.
<apeiros> blocks are arguments. you can't pass any other argument to an object either.
<grahamb> apeiros: ok, so the block must be provided when the method is called?
<apeiros> only methods take arguments.
<dminuoso> grahamb: no it does not.
<dminuoso> grahamb: you can pass the block later.
<grahamb> apeiros: do you agree with dminuoso here?
<apeiros> dminuoso: I find that claim misleading. you can pass a block later *if* you construct the thing differently.
<apeiros> and you don't pass it to "bar" then.
<dminuoso> apeiros: Its hardly misleading as I have shown him HOW and explained WHY about 4 times alreaydin the past 15 minutes.
<apeiros> I presume you'd pass it to bar.call
<grahamb> apeiros: with the current construction.
davedev24 has joined #ruby
<apeiros> dminuoso: ok, fair.
<grahamb> dminuoso: i know, and that is not what i'm asking.
<dminuoso> grahamb: Tell me which company you work at, so I know which companies I must avoid so I don't have to clean up your code in a few years ago.
<apeiros> grahamb: lambda in line 2-4 closes over the current context. the yield is bound to the context of the `foo` method. so the yield will yield the block passed to foo at the time the lambda was constructed.
matp has quit [Ping timeout: 244 seconds]
<gregf_> grahamb: procs and lambda's are different from blocks. that i guess is your confusion
kobain has joined #ruby
<grahamb> gregf_: no, i understand that.
<grahamb> but someone said that i didn't need to provide the block when the method was called, and i'm just making sure that i do.
<grahamb> i think apeiros has confirmed that.
<gregf_> yes, yield only works with blocks
<grahamb> right.
<apeiros> grahamb: I confirmed it for the specific code you provided.
<grahamb> and the block must be provided when the method is called.
<apeiros> grahamb: I'm quite certain dminuoso showed you how you could provide the block at a later time.
<gregf_> >> def foo x; yield x;end; foo(10) {|x| x*x } # like that
<ruby[bot]> gregf_: # => 100 (https://eval.in/628747)
<dminuoso> gregf_: nope
<dminuoso> gregf_: while in itself correct it wont work in his context.
<grahamb> apeiros: but with a yield.
<dminuoso> grahamb: why do you insist on keyword_yield?
<grahamb> dminuoso: because the code i'm reading uses it.
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
<apeiros> with the yield keyword I can't currently think of a way to provide the block at another time, true.
tvw has quit [Remote host closed the connection]
arup_r has quit []
<apeiros> s/another/a later/
<apeiros> hm, no, actually "another" is appropriate.
davedev24 has quit [Ping timeout: 276 seconds]
<grahamb> apeiros: that's what i wanted answered. thank you. :)
quiller has joined #ruby
<grahamb> it was confusing, because i'm reading this code, and then dminuoso would say "but it is possible!" but that would be with different code that didn't yield.
<grahamb> and i'
<apeiros> careful
<apeiros> code can yield without using the keyword "yield"
<apeiros> programming is a pedantic thing. details matter.
<apeiros> hence "didn't yield" != "didn't use the keyword yield"
<grahamb> *didn't use yield
<grahamb> apeiros: good call.
arashb has quit [Ping timeout: 252 seconds]
jobewan has joined #ruby
jobewan is now known as jobewan_away
jobewan_away is now known as jobewan
youch has joined #ruby
jtdoncas has quit [Ping timeout: 244 seconds]
AndrewIsHere has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
cpruitt has joined #ruby
d0lph1n98 has quit [Quit: leaving]
Vingador has joined #ruby
lheaded has joined #ruby
lightheaded has quit [Read error: No route to host]
x77686d has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
AndrewIsHere has quit [Ping timeout: 252 seconds]
Immune_ has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
swills has joined #ruby
Immune has quit [Ping timeout: 252 seconds]
Snickers has quit [Ping timeout: 260 seconds]
e4xit_ has joined #ruby
x77686d has quit [Remote host closed the connection]
Immune_ has quit [Ping timeout: 252 seconds]
e4xit has quit [Ping timeout: 265 seconds]
e4xit_ is now known as e4xit
hammond is now known as affluent
vuoto has joined #ruby
moss has quit [Quit: QUITTING]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moss has joined #ruby
ChiefAlexander has joined #ruby
wugy has quit []
hacker has joined #ruby
pokalyis has joined #ruby
ta_ has joined #ruby
mjuszczak has joined #ruby
jgnagy has joined #ruby
lheaded has quit [Remote host closed the connection]
djbkd has joined #ruby
lightheaded has joined #ruby
djbkd has quit [Client Quit]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
moneylotion has quit [Quit: ZNC 1.6.3 - http://znc.in]
tyang has quit [Ping timeout: 250 seconds]
deadnull is now known as _deadnull
moneylotion has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
craigp has quit [Ping timeout: 250 seconds]
lightheaded has quit [Ping timeout: 244 seconds]
bcavileer has quit [Ping timeout: 250 seconds]
ferr has quit [Quit: WeeChat 1.5]
bcavileer has joined #ruby
mjuszczak has quit []
GodFather has joined #ruby
jhack has joined #ruby
GodFather has quit [Max SendQ exceeded]
GodFather has joined #ruby
mjuszczak has joined #ruby
tyang has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
stamina has joined #ruby
hahuang61 has joined #ruby
mjuszczak has joined #ruby
dminuoso has quit [Ping timeout: 240 seconds]
sepp2k has quit [Quit: Leaving.]
Bish has quit [Ping timeout: 252 seconds]
MrBusiness3 has joined #ruby
meth has joined #ruby
f4cl3y has quit [Ping timeout: 265 seconds]
Bish has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
MrBusiness2 has quit [Ping timeout: 250 seconds]
aganov has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 265 seconds]
ukk has quit [Read error: Connection reset by peer]
ukk has joined #ruby
domgetter has joined #ruby
f4cl3y has joined #ruby
ShummmardeNIK has joined #ruby
lightheaded has joined #ruby
tdy has quit [Ping timeout: 265 seconds]
TPwFEgmQkn has joined #ruby
TPwFEgmQkn has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
evie_hammond has quit [Quit: WeeChat 1.5]
tyang has quit [Ping timeout: 276 seconds]
f4cl3y has quit [Ping timeout: 265 seconds]
Spami has joined #ruby
davedev24 has joined #ruby
f4cl3y has joined #ruby
yardenbar has quit [Ping timeout: 264 seconds]
aufi has quit [Ping timeout: 258 seconds]
tdy has joined #ruby
Ruby_Rocks_007 has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
submitnine has quit []
Ruby_Rocks_007 has quit [Client Quit]
galeido has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
dminuoso has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lightheaded has quit [Remote host closed the connection]
mikecmpbll has quit [Read error: Connection reset by peer]
chestnutpie has joined #ruby
lightheaded has joined #ruby
mikecmpbll has joined #ruby
aufi has quit [Ping timeout: 252 seconds]
meth has quit [Quit: Bye!]
shinnya has joined #ruby
aupadhye has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
rippa has joined #ruby
rodfersou is now known as rodfersou|lunch
mattcar has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
etehtsea has joined #ruby
tyang has joined #ruby
saneax is now known as saneax-_-|AFK
<dminuoso> apeiros: ^- spam
gypki has quit [Remote host closed the connection]
agent_white has joined #ruby
vuoto has quit [Quit: Lost terminal]
antgel has quit [Ping timeout: 240 seconds]
zacts has quit [Ping timeout: 250 seconds]
wingwalker_ has quit [Ping timeout: 250 seconds]
Kruppe has quit [Ping timeout: 244 seconds]
flashpoint9 has quit [Remote host closed the connection]
griffindy has joined #ruby
flashpoint9 has joined #ruby
dminuoso has quit [Remote host closed the connection]
etehtsea has quit [Ping timeout: 264 seconds]
fluffyKat has joined #ruby
ta__ has quit [Remote host closed the connection]
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
al2o3-cr has quit [Ping timeout: 264 seconds]
<nebg> hello everyone on my debian machine i didn't install ruby on the system... but i installed rvm
stamina has quit [Ping timeout: 244 seconds]
<nebg> and various ruby versions... now i expect to have different rubies but it's not like that...
<nebg> when i execute "ruby filename.rb" it tells me that the command doesn't exist...
<nebg> i tried to do some gem install and everything works...
<nebg> i created even some gemsets and everything is ok ... it's just that i don't know how to run ruby... maybe problems with PATH ? or what ?
flashpoint9 has quit [Ping timeout: 258 seconds]
<nebg> ok solved
cpruitt has quit [Read error: Connection reset by peer]
<nebg> it was a problem with the terminal emulator not sourcing .zshrc
cpruitt has joined #ruby
etehtsea has joined #ruby
bad_ip has joined #ruby
bad_ip has quit [Changing host]
bad_ip has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
mim1k has quit [Disconnected by services]
ta_ has quit [Ping timeout: 264 seconds]
WJMUqqJZRD has joined #ruby
mim1k has joined #ruby
last_staff has joined #ruby
<havenwood> !spam hacker
hacker was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
affluent has quit [Read error: Connection reset by peer]
ngscheurich has joined #ruby
claudiuinberlin has joined #ruby
<agent_white> Mornin' folks
flashpoint9 has joined #ruby
<havenwood> g'mornin
Kruppe has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
last_staff has quit [Client Quit]
<fluffyKat> can someone help? This code isn't working: {"burger" => 2.99}­.map {|k,v­| "%s $.2f"­ % [k,v]­}
nando293921 has joined #ruby
<fluffyKat> I want it to give ["burger $2.99"] ... but it isn't?
aries_liuxueyang has quit [Remote host closed the connection]
Ruby_Rocks_007 has joined #ruby
ShummmardeNIK has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<LambdaSix> fluffyKat: .map{|k,v| "%s %.2f" % [k,v]}
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aries_liuxueyang has joined #ruby
<fluffyKat> LambdaSix, it's missing the "$". It's not saying $2.99
<LambdaSix> oh
<aeruder> .... $%.2f
<LambdaSix> fluffyKat: .map{|k,v| "%s \$%.2f" % [k,v]}
<LambdaSix> (You probably don't need the \, idk)
ta_ has joined #ruby
<fluffyKat> yeah, that's exactly the code i gave originally. it doesn't work
AndrewIsHere has joined #ruby
AzureStigma has joined #ruby
<soud> fluffyKat: no you didn't
<aeruder> your original code doesn't have the %
<soud> you're missing a %
<fluffyKat> ah..yep
<fluffyKat> my eyes O.o
hobodave has joined #ruby
<ben______> >>{"burger" => 2.99}.map {|k,v| "#{k} $#{v.round(2)}"}
<ben______> I was thinking that... but maybe I'm missing why that's a bad idea
_deadnull is now known as deadnull
edwinvdgraaf has quit [Ping timeout: 250 seconds]
deadnull has quit [Quit: Bye]
davedev24 has joined #ruby
<fluffyKat> that reads better
jaruga____ has quit [Quit: jaruga____]
SteenJobs has joined #ruby
matp has joined #ruby
ukk has quit [Quit: WeeChat 1.5]
sepp2k has joined #ruby
moneylotion has quit [Quit: ZNC 1.6.3 - http://znc.in]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
Lucky_ABA has joined #ruby
moneylotion has joined #ruby
<domgetter> >> items = {"burger" => 2.99}; display_prices = -> item, price { "#{item} #{price.round(2)}" }; items.map(&display_prices)
<ruby[bot]> domgetter: # => ["burger 2.99"] (https://eval.in/628864)
dANOKELOFF has quit [Quit: Ex-Chat]
arnonhon_ has joined #ruby
nettoweb has joined #ruby
[Butch] has joined #ruby
ShummmardeNIK has joined #ruby
arnonhongklay has quit [Ping timeout: 244 seconds]
flashpoint9 has quit [Ping timeout: 250 seconds]
k3rn31 has quit [Quit: Leaving...]
ta_ has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 264 seconds]
andikr has quit [Remote host closed the connection]
andikr has joined #ruby
mjuszczak has quit []
rodfersou|lunch is now known as rodfersou|afk
andikr has quit [Remote host closed the connection]
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rsampaio_ has joined #ruby
Mattx has joined #ruby
Edward__ has joined #ruby
<Mattx> Hey, hi!
<Mattx> Is there any gem to make it plain easy to use ActiveRecord standalone?
conta has quit [Ping timeout: 260 seconds]
Edward__ is now known as meatchicken
<Mattx> Err, I guess I should ask in #rubyonrails
jsrn_ has quit [Quit: Leaving]
synthroid has quit [Remote host closed the connection]
vuoto has joined #ruby
<gregf_> Mattx: ActiveRecord can be used standalone?
mjuszczak has joined #ruby
AzureStigma has joined #ruby
LBRapid has quit [Ping timeout: 250 seconds]
f4cl3y has quit [Ping timeout: 250 seconds]
nirix has quit [Ping timeout: 250 seconds]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
pawnbox has joined #ruby
nirix has joined #ruby
preyalone has joined #ruby
tyang has quit [Ping timeout: 276 seconds]
malconis has quit [Read error: Connection reset by peer]
malconis_ has joined #ruby
LBRapid has joined #ruby
mjuszczak has quit [Client Quit]
zacts has joined #ruby
plantfood has joined #ruby
mjuszczak has joined #ruby
amclain has joined #ruby
etehtsea has quit [Ping timeout: 265 seconds]
claudiuinberlin has quit []
<atmosx> Mattx: yes, it's an ORM. You can use AR or Sequel, another very polished ruby ORM.
AndrewIsHere has quit [Ping timeout: 250 seconds]
chee is now known as cgi-bin
AndrewIsHere has joined #ruby
plantfood has quit [Client Quit]
cgi-bin is now known as chee
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
atom_ has quit [Quit: WeeChat 1.5]
TPug has joined #ruby
galeido has joined #ruby
s2013 has joined #ruby
<Mattx> I haven't heard of Sequel, interesting..
galeido has quit [Max SendQ exceeded]
galeido has joined #ruby
mjuszczak has quit []
chestnutpie has quit [Quit: Leaving]
glcx has quit [Quit: Quitte]
<atmosx> Yes, I use it with Sinatra for small web projects
<atmosx> bbl
senayar has quit []
Todd has joined #ruby
fluffyKat has quit [Quit: Leaving]
coolboy has quit [Remote host closed the connection]
coolboy has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 244 seconds]
Bish has quit [Ping timeout: 260 seconds]
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ajsharma has joined #ruby
Bish has joined #ruby
pokalyis has joined #ruby
galeido has quit [Ping timeout: 264 seconds]
Uranio has joined #ruby
nitric has joined #ruby
Uranio has quit [Client Quit]
skweek has quit [Ping timeout: 250 seconds]
coolboy has quit [Remote host closed the connection]
pokalyis has quit [Max SendQ exceeded]
vuoto has quit [Remote host closed the connection]
coolboy has joined #ruby
vuoto has joined #ruby
pokalyis has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Ruby_Rocks_007 has joined #ruby
jtdoncas has joined #ruby
sdothum has joined #ruby
coolboy has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 260 seconds]
cschneid has quit [Ping timeout: 250 seconds]
synthroid has joined #ruby
coolboy has joined #ruby
wrkrcoop has joined #ruby
theRoUS has left #ruby ["Off to another part of the maze of twisty little passages"]
<wrkrcoop> my co-workers wrote if elseif end
hahuang61 has joined #ruby
<wrkrcoop> im telling them we need to have an else because if elsif end is not idiomatic ruby
<wrkrcoop> am i wrong?
DoubleMalt has joined #ruby
<wrkrcoop> i thought an alternative would be to use a switch statement
al2o3-cr has joined #ruby
Yzguy has joined #ruby
skweek has joined #ruby
cschneid has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
<chris2> both can make sense
<Yzguy> so I have a question. In the rails console I can do like "person.team.name" and get what I expect, but if I do it in a view it says name is an undefined method
<wrkrcoop> chris2: you think if elsif end is good?
<chris2> it means something different than if..else..end
<wrkrcoop> i never see if elsif
cschneid_ has joined #ruby
<chris2> perhaps case when; when; end is better
<wrkrcoop> i suggested raising in the else statement
<cschneid_> Is there a tool like rubular for testing ruby-flavored regexes, but on the command line?
hahuang61 has quit [Ping timeout: 250 seconds]
<cschneid_> like, I can do it in IRB, but that's not as dynamic
leftpad has quit [Ping timeout: 244 seconds]
rodfersou|afk is now known as rodfersou
mikecmpbll has quit [Quit: inabit. zz.]
<havenwood> Mattx: You might look at Sequel as well. It's quite nice. Roda+Sequel ftw!
<Mattx> I'm reading a review of the differences with AR. What do you like of Sequal?
<havenwood> wrkrcoop: There's nothing inherently wrong with `elsif`. Maybe show the code in question?
kentnl has joined #ruby
kentnl has quit [Changing host]
kentnl has joined #ruby
<havenwood> Mattx: It can be used without the ORM portion and has a nice plugin system so you don't get the kitchen sink unless you want it, then it's there.
<havenwood> Mattx: Roda's plugin system is modeled on Sequel's.
kent\n has quit [Disconnected by services]
kentnl is now known as kent\n
zacts has quit [Ping timeout: 265 seconds]
ddffg has joined #ruby
<Mattx> Oh wait, I just read there are problems with threading in AR
flashpoint9 has joined #ruby
<Mattx> Now I remember connections getting exhausted in AR
<Mattx> Was it solved in Sequel?
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
oetjenj has joined #ruby
vuoto has joined #ruby
Dimik has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
poikon_ has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
DoubleMalt has quit [Ping timeout: 240 seconds]
poikon_ is now known as poikon
jeremyhall has joined #ruby
oetjenj has quit [Quit: Textual IRC Client: www.textualapp.com]
galeido has joined #ruby
<workmad3> Mattx: sounds like your connection pool wasn't large enough in AR
SteenJobs has quit [Quit: SteenJobs]
SteenJobs has joined #ruby
hk238 has joined #ruby
<havenwood> cschneid_: Doesn't work with multiple matches, but here's a start for fun: https://gist.github.com/havenwood/718c008d525f93f8d8826b8dcf3fda40
Snowy has quit [Remote host closed the connection]
synthroi_ has joined #ruby
vuoto has quit [Remote host closed the connection]
Snowy has joined #ruby
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
jhboricua has joined #ruby
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
wrkrcoop has joined #ruby
mark_66 has quit [Remote host closed the connection]
synthroid has quit [Ping timeout: 250 seconds]
tdy has quit [Ping timeout: 244 seconds]
Snowy has quit [Ping timeout: 240 seconds]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cschneid_> havenwood: heh. I'm ok at regexes, but I always have to test them to get exactly what I want when it starts doing nested captures, and lookaheads and stuff. Was hoping for a little tool that basically does rubular, but from a console right next to my editor
<cschneid_> havenwood: what you wrote is the very core of that idea for sure :)
craigp has joined #ruby
nobitanobi has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has joined #ruby
Couch has quit [Ping timeout: 252 seconds]
dipnlik has quit [Ping timeout: 244 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: Zzz...]
TPug has joined #ruby
Velizar has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
JoshS has quit [Ping timeout: 258 seconds]
astrobun_ has joined #ruby
claudiuinberlin has joined #ruby
pokalyis has joined #ruby
dviola has joined #ruby
jtdoncas has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Remote host closed the connection]
hays has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
polishdub has joined #ruby
hays_ has quit [Ping timeout: 260 seconds]
tdy has joined #ruby
async_prince has quit [Ping timeout: 264 seconds]
tyang has joined #ruby
astrobun_ has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
flashpoint9 has quit [Remote host closed the connection]
crystal77 has joined #ruby
firstdayonthejob has joined #ruby
ta_ has joined #ruby
whathappens has joined #ruby
bad_ip has quit [Ping timeout: 240 seconds]
arnonhon_ has quit [Read error: No route to host]
SteenJobs has quit [Quit: SteenJobs]
claudiuinberlin has quit [Remote host closed the connection]
snguyen has joined #ruby
ShummmardeNIK has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arnonhongklay has joined #ruby
LBRapid has quit [Ping timeout: 250 seconds]
claudiuinberlin has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
Ruby_Rocks_007 has joined #ruby
jaruga___ has joined #ruby
LBRapid has joined #ruby
jhack has quit [Quit: jhack]
jaruga___ is now known as jaruga____
Silthias1 has quit [Quit: Leaving.]
Kruppe has quit [Quit: ZNC - http://znc.in]
SeepingN has joined #ruby
Kruppe has joined #ruby
TomyWork has quit [Ping timeout: 276 seconds]
jhack has joined #ruby
tdy has quit [Ping timeout: 252 seconds]
jhack has quit [Client Quit]
tyang has quit [Ping timeout: 244 seconds]
AnarchyAo has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
Yzguy has joined #ruby
Rodya_ has joined #ruby
mattcar has quit [Ping timeout: 264 seconds]
<Talltree> are there some dev tools out there where it runs the rb file on save?
<SeepingN> you need a tool for that?
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Talltree> i'm a noob when it comes to "vanilla" ruby deving
<Talltree> only used to rails.
<workmad3> Talltree: that's effectively what the syntactic plugin for vim does... it runs the file and looks for syntax errors in stderr in order to show you them in the editor
ben______ has quit [Remote host closed the connection]
ben_____ has joined #ruby
AzureStigma has joined #ruby
<Talltree> i'm using atom...
<SeepingN> can it not yet also run scripts?
<bjmllr> Talltree: rerun or guard gems
<Talltree> https://atom.io/packages/script seems it can
<SeepingN> why not just alt-tab to terminal, up arrow to run "ruby myfile.rb"
<Talltree> i'm using guard with rails
<SeepingN> alt-tab back to edit
<Talltree> alt tab is annoying, doing it a million times a day is annoying
<workmad3> Talltree: the question is - what exactly are you wanting out of the 'autorun' aspect?
* SeepingN shrugs. been doing it for 30 years
<Talltree> workmad3: not having to alt-tab :D
AzureStigma has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
<Talltree> i'm coming from a web background, and there are plenty of solutions to auto-refresh or even just inject new css into a site on save
<SeepingN> 1 line bash could do it
wrkrcoop has joined #ruby
<SeepingN> check every 5 seconds for file modification date change, run, loop. ugly but quick
SteenJobs has joined #ruby
<bjmllr> gem install rerun; rerun -x ruby blah.rb
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<workmad3> Talltree: right... but a plain ruby script rarely has the same sort of output, so I'm wondering what the end goal is for having it run on save... is it to check for errors? What happens if the script is writing files or something? Are you running a GUI app and want to restart/reload parts of it on save? what's the goal you're wanting?
<SeepingN> might consider RubyMine or Sublime Text. I use sublime but not sure about it running things as I have to run all my code on a remote server anyway
Velizar has quit [Ping timeout: 244 seconds]
<Talltree> i switched from sublime to atom, because i like it better... there is a script plugin for atom, wondering if it has a option to autorun
<SeepingN> oh that's something else
<Talltree> workmad3: yes i considered all of that, right now its mainly debugging... i would like to do it in rails while using the normal rb syntax i guess
<SeepingN> boom!
<Talltree> <3
<SeepingN> google ftw
<workmad3> Talltree: so you're wanting to basically run tests on save... so just stick with guard? ;)
<workmad3> Talltree: also, I'm not sure what you mean by 'normal rb syntax'... rails (other than views) is standard ruby...
<Talltree> right now i was mainly using haml and coding directly in the view to test stuff
flashpoint9 has joined #ruby
<Talltree> and people kept telling me to switch away from that :D
harai has joined #ruby
<workmad3> Talltree: right... because you're relying on manual testing for everything, rather than using minitest or rspec to write automated tests ;)
<Talltree> also linting code directly in atom
flashpoint9 has quit [Read error: Connection reset by peer]
flashpoi_ has joined #ruby
<Talltree> so thats not the issue, the code is valid most of the time, just learning a shit tons and trying around.
<Talltree> i'm working with web scraping and css pointers are not an exact science i'd say :P
sdothum has joined #ruby
<SeepingN> heh def lots of re-re-re-re-retrying
<Talltree> yeah exactly
Regulati_ has quit [Remote host closed the connection]
ricer2 has quit [Ping timeout: 250 seconds]
<Talltree> there should be a way to render a rb file in the view
<Talltree> meh
galeido has quit [Ping timeout: 265 seconds]
<Smoht> hey guys
<Smoht> I want to provide to a native function (sprintf) a pseudo hash object
quesker_ has left #ruby [#ruby]
<Smoht> I need to trick the native function into thinking that it's actually an hash object
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
Immune has joined #ruby
<Smoht> apeiros, remember me?
<Talltree> maybe using haml wasnt even that bad of an idea...
<Talltree> at least for what i'm doing
<Talltree> other then - and = its pretty much ruby :D
tyang has joined #ruby
nobitanobi has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
tdy has joined #ruby
harai has quit [Ping timeout: 252 seconds]
harai_ has joined #ruby
tvon has quit [Read error: Connection reset by peer]
tvon[laptop] has joined #ruby
C0deMaver1ck has quit [Max SendQ exceeded]
AzureStigma has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest747
Guest747 has quit [Max SendQ exceeded]
ben_____ has quit [Remote host closed the connection]
cschneid has joined #ruby
C0deMaver1ck_ has joined #ruby
C0deMaver1ck_ has quit [Max SendQ exceeded]
C0deMaver1ck_ has joined #ruby
arashb has joined #ruby
miqlas-H has joined #ruby
bumao has quit [Ping timeout: 258 seconds]
Velizar has joined #ruby
bumao has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
synthroi_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
miqlas-H has quit [Ping timeout: 265 seconds]
AndrewIsHere has quit [Remote host closed the connection]
AzureStigma has joined #ruby
<SeepingN> lulz
meth has joined #ruby
matp has quit [Ping timeout: 276 seconds]
replay has joined #ruby
jokester has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
tvon[laptop] has quit [Ping timeout: 265 seconds]
Tele has quit [Ping timeout: 258 seconds]
AndrewIsHere has joined #ruby
Nanuq has quit [Ping timeout: 264 seconds]
miqlas-H has joined #ruby
Tele has joined #ruby
Nanuq has joined #ruby
flashpoi_ has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
workmad3 has quit [Ping timeout: 240 seconds]
AzureStigma has quit [Client Quit]
sdothum has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
TPug has joined #ruby
AndrewIsHere has joined #ruby
craysiii has joined #ruby
marxarelli has joined #ruby
nobitanobi has joined #ruby
craysiii has quit [Client Quit]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MrBusiness3 has quit [Read error: Connection reset by peer]
MrBusiness3 has joined #ruby
ec0 has joined #ruby
AzureStigma has joined #ruby
kbni has quit [Ping timeout: 260 seconds]
pokalyis has joined #ruby
WJMUqqJZRD has quit [Quit: Bye, cruel world!]
nando294021 has joined #ruby
AzureStigma has quit [Client Quit]
tdy has quit [Ping timeout: 276 seconds]
Uranio has joined #ruby
bumao has quit [Ping timeout: 258 seconds]
arashb has quit [Ping timeout: 276 seconds]
theery has joined #ruby
NomNKDJIvx has joined #ruby
galeido has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
AzureStigma has joined #ruby
flashpoint9 has joined #ruby
bumao has joined #ruby
wingwalker_ has joined #ruby
Rodya_ has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
AzureStigma has quit [Client Quit]
mrgrieves has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
mrgrieves has joined #ruby
MrBusiness3 has quit [Read error: Connection reset by peer]
MrBusiness3 has joined #ruby
zeroDi has joined #ruby
Spami has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
synthroid has quit []
jokester has joined #ruby
galeido has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
jhack has joined #ruby
bad_ip has joined #ruby
bad_ip has quit [Client Quit]
bad_ip has joined #ruby
nobitanobi has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 276 seconds]
nobitanobi has joined #ruby
ramfjord has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nirix has quit [Ping timeout: 258 seconds]
nobitanobi has quit [Ping timeout: 244 seconds]
bad_ip has quit [Ping timeout: 252 seconds]
nirix has joined #ruby
theery has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
shinnya has joined #ruby
jenrzzz has joined #ruby
jeffaustin81 has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
AndyBotwin has quit [Ping timeout: 244 seconds]
AzureStigma has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
AndyBotwin has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
claudiuinberlin has quit [Remote host closed the connection]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
claudiuinberlin has joined #ruby
AndyBotwin has quit [Read error: Connection reset by peer]
YqwHkAMaYX has joined #ruby
mikecmpbll has joined #ruby
vF3hNGxc47h8 has joined #ruby
harai has joined #ruby
nando294021 has quit [Ping timeout: 240 seconds]
harai_ has quit [Ping timeout: 258 seconds]
Snickers has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nando293921 has joined #ruby
JoshS has joined #ruby
claudiuinberlin has quit [Read error: Connection reset by peer]
miqlas-H has quit [Ping timeout: 258 seconds]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
theery has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
SimplySeth has joined #ruby
nettoweb has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
meth has quit [Quit: Bye!]
claudiuinberlin has joined #ruby
<SimplySeth> greetings ... can one simply do ChildClassName < Module::ParentClassName for inheritance ?
Yzguy has quit [Quit: Zzz...]
Spami has quit [Quit: This computer has gone to sleep]
nankyokusei has joined #ruby
<matthewd> SimplySeth: Try it and see?
<SimplySeth> schweet
AndrewIsHere has quit []
jhack has quit [Quit: jhack]
jenrzzz has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
nando293921 has quit [Quit: Lost terminal]
ta_ has joined #ruby
arashb has joined #ruby
matp has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
bayed has quit [Quit: Connection closed for inactivity]
arashb_ has joined #ruby
nando293921 has joined #ruby
allcentury has joined #ruby
Uranio has quit [Quit: while you read this, a kitty dies]
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
arashb has quit [Ping timeout: 258 seconds]
tdy has joined #ruby
RegulationD has joined #ruby
AzureStigma has joined #ruby
nando293921 has quit [Read error: Connection reset by peer]
nando293921 has joined #ruby
da3mon has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
tyang has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
AzureStigma has quit [Client Quit]
Spami has joined #ruby
arashb_ has quit [Remote host closed the connection]
astrobun_ has quit [Ping timeout: 276 seconds]
jeffaustin81 has quit [Read error: Connection reset by peer]
arnonhongklay has quit [Remote host closed the connection]
YqwHkAMaYX has quit [Remote host closed the connection]
tyang has joined #ruby
nando293921 has quit [Quit: Lost terminal]
nando293921 has joined #ruby
TPug has joined #ruby
nando293921 has quit [Client Quit]
nando293921 has joined #ruby
Rodya_ has joined #ruby
ben_____ has joined #ruby
jhooker has quit [Quit: Leaving]
miqlas-H has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
jhack has joined #ruby
ben_____ has quit [Ping timeout: 260 seconds]
ShummmardeNIK has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
Rodya_ has quit [Ping timeout: 250 seconds]
Ruby_Rocks_007 has joined #ruby
vikaton has joined #ruby
lightheaded has joined #ruby
johnmilton has quit [Ping timeout: 264 seconds]
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
replay has quit [Ping timeout: 244 seconds]
JoshS has quit [Ping timeout: 265 seconds]
Coldblackice has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
smathy has joined #ruby
jaruga____ has quit [Quit: jaruga____]
binaryplease1 has joined #ruby
jhack has quit [Quit: jhack]
ramortegui has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
symm-_ has joined #ruby
travisxcode has joined #ruby
pawnbox has quit [Remote host closed the connection]
travisxcode has quit [Client Quit]
pawnbox has joined #ruby
travisxcode has joined #ruby
ramfjord_ has joined #ruby
symm-_ is now known as symm-
postmodern has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
anisha has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
coolboy has quit [Ping timeout: 265 seconds]
binaryplease1 is now known as binaryplease
tomchapin has joined #ruby
sepp2k has quit [Quit: Leaving.]
johnmilton has joined #ruby
jphase has joined #ruby
Vingador has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 265 seconds]
johnmilton has quit [Ping timeout: 276 seconds]
k3rn31 has joined #ruby
whathappens has quit [Remote host closed the connection]
Yzguy has joined #ruby
Coldblackice has joined #ruby
MrBusiness2 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<apeiros> Smoht: yes
MrBusiness3 has quit [Ping timeout: 250 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
MrBusiness has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
hobodave_ has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvon has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
elifoster has joined #ruby
MrBusiness2 has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
theery has quit [Remote host closed the connection]
hobodave has quit [Ping timeout: 250 seconds]
MrBusiness2 has joined #ruby
jhboricua has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
lxsameer has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
<Smoht> apeiros, String#% essentially uses sprintf, so I had this idea of feeding into sprintf the string and an adapter hash-like object that wraps `self`
AzureStigma has joined #ruby
<Smoht> but apparently native methods ignore virtual methods
<Smoht> so I had to discard this idea
stamina has joined #ruby
AzureStigma has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
MrBusiness has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
<apeiros> Smoht: I don't follow
tomaz_b has joined #ruby
johnmilton has joined #ruby
matp has quit [Ping timeout: 250 seconds]
tyang has quit [Ping timeout: 244 seconds]
<hightower> Hey folks, how about some expert advice here -- I have: module XYZ def self.some_method() end end. Is there a way to later have some_method() become a method on a class in which this module is included, but without using the "def self.included( cls)"?
ben_____ has joined #ruby
<apeiros> hightower: module_function def some_method
<apeiros> instead of def self.some_method
<Smoht> @x = 1; y = 2; "%{x} %{y}".interpolate(HashAdapter.new(self))
<apeiros> or you want it as a class method?
<hightower> apeiros, I'd want some_method() to become a method on the class, later when this module XYZ finally gets included into some class
jenrzzz has quit [Ping timeout: 244 seconds]
<toretore> klass.extend XYZ
<Smoht> @x = 1; y = 2; "%{x} %{y}" % HashAdapter.new(self)
<Smoht> easier now
astrobun_ has joined #ruby
<apeiros> hightower: "a method on the class" is ambiguous
<Smoht> but it can't possibly work so whatever I will use gsub
<apeiros> a *class* method on the class, or an *instance* method?
<hightower> toretore, yes, yes, without using extend manually. I'm looking for some way to define something on module XYZ which then becomes a method on a class, when module XYZ is included in it
<hightower> apeiros, yes, a class method on the class
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tyang has joined #ruby
<apeiros> in that case - no. extend is the way to go.
<hightower> Ok, thanks
<apeiros> Smoht: and you expected String#% to treat HashAdapter like a hash?
cdg has joined #ruby
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Smoht> if it looks like a duck...
<apeiros> Smoht: why not make it ivar_hash(self) and return an actual hash?
johnmilton has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
kobain has quit [Read error: Connection reset by peer]
tvw has joined #ruby
edwinvdg_ has joined #ruby
<toretore> Smoht: what is this for?
rodfersou is now known as rodfersou|afk
gurix has joined #ruby
gurix has quit [Client Quit]
mrx88 has joined #ruby
astrobun_ has quit [Ping timeout: 276 seconds]
<Smoht> toretore, mostly to overcome the holiday boredom
Spami has quit [Read error: Connection reset by peer]
<Smoht> and to make string interpolation a bit more cool with gettext, an internationalization library
Spami has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
<Smoht> cuz you cant' do
claudiuinberlin has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
<Smoht> _("translate my interpolate text #{some_expr}") and expect the _() function to find a translation
tdy has joined #ruby
<Smoht> so you do _("%{some_var} text") % {some_var: some_expr}
thomas1 is now known as thomas
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
<Smoht> but it's cucumbersome
galeido has joined #ruby
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang61 has joined #ruby
tyang has quit [Quit: Leaving]
skweek has joined #ruby
coolboy has joined #ruby
lightheaded has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
lightheaded has joined #ruby
vuoto has joined #ruby
johnmilton has joined #ruby
elastix has joined #ruby
gnufied has quit [Quit: Leaving]
hahuang61 has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
Yzguy has quit [Quit: Zzz...]
theery has joined #ruby
galeido has quit [Ping timeout: 276 seconds]
lightheaded has quit [Ping timeout: 258 seconds]
kobain has joined #ruby
SimplySeth has quit [Quit: Page closed]
solars has joined #ruby
umdstu has quit [Quit: umdstu]
Yzguy has joined #ruby
theery has quit [Client Quit]
tjohnson has joined #ruby
flashpoint9 has joined #ruby
wrkrcoop has joined #ruby
Yzguy has quit [Client Quit]
mtkd has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
moos3 has joined #ruby
mtkd has joined #ruby
jenrzzz has joined #ruby
jpike has joined #ruby
jpike has quit [Client Quit]
ledestin has joined #ruby
stamina has quit [Quit: WeeChat 1.5]
ben_____ has quit [Remote host closed the connection]
Yzguy has quit [Client Quit]
Mattx has quit [Ping timeout: 264 seconds]
jhack has joined #ruby
hutch34 has joined #ruby
Yzguy has joined #ruby
travisxcode has quit [Quit: Leaving]
blackgoat has joined #ruby
No_One has quit [Changing host]
No_One has joined #ruby
No_One is now known as kspencer
Yzguy has quit [Quit: Zzz...]
djbkd has joined #ruby
wingwalker_ has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
davedev24 has quit [Remote host closed the connection]
OTORelic has joined #ruby
Yzguy has joined #ruby
Rodya_ has joined #ruby
davedev24 has joined #ruby
Parko has joined #ruby
<wrkrcoop> i have this string “blah blah blah \”blah\”” and when i send it to an endpoint it complains because of the double quoets
Yzguy has quit [Client Quit]
<wrkrcoop> should i just gsub!(“\””, ‘)
<apeiros> try it?
ta_ has quit [Ping timeout: 244 seconds]
<wrkrcoop> seems to work ....
Mon_Ouie has quit [Ping timeout: 250 seconds]
<apeiros> funny
whathappens has joined #ruby
k3rn31 has quit [Ping timeout: 244 seconds]
<wrkrcoop> idk maybe its a bad way to do it idk
edwinvdgraaf has joined #ruby
<apeiros> well, we don't know your webservice, its actual complaint, your actual data or *any other actually useful thing*
<apeiros> so… no idea. but chances are high it's a bad way to do it.
Rodya_ has quit [Ping timeout: 258 seconds]
<wrkrcoop> apeiros: why
<apeiros> because arbitrarily deleting data rarely is a good idea.
<wrkrcoop> yeah …
<wrkrcoop> hmmm
nankyokusei has joined #ruby
<wrkrcoop> what to do?
<apeiros> well, we don't know your webservice, its actual complaint, your actual data or *any other actually useful thing*
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> so… no idea.
<wrkrcoop> mmm im just sending error messages …
<wrkrcoop> nvm
edwinvdg_ has quit [Ping timeout: 244 seconds]
pjanzen has quit [Quit: Leaving]
<apeiros> you want useful help - provide useful info. but hey, you know that game. it's just like the 1000 time we tell you.
k3rn31 has joined #ruby
Yzguy has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vuoto has quit [Remote host closed the connection]
<wrkrcoop> i feel like it cant be that bad
<wrkrcoop> im just replacing double quotes with single quotes ...
nankyokusei has quit [Ping timeout: 276 seconds]
<apeiros> *shrug* it's not my problem.
<wrkrcoop> i need to send an error messaage to some service that logs it
GodFather has joined #ruby
nobitanobi has joined #ruby
crystal77 has quit [Quit: Textual IRC Client: www.textualapp.com]
fmcgeough has quit [Quit: fmcgeough]
allcentury has quit [Ping timeout: 276 seconds]
yardenbar has joined #ruby
kith has quit [Quit: kith]
d0nn1e has quit [Ping timeout: 265 seconds]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
ldnunes has quit [Quit: Leaving]
d0nn1e has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
ngscheurich has quit [Ping timeout: 265 seconds]
bougyman has quit [Ping timeout: 250 seconds]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
<zenspider> wow
l4v2 has quit [Quit: l4v2]
Smoht has quit [Quit: Ex-Chat]
nhhc has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
davedev24 has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Ping timeout: 240 seconds]
bougyman has joined #ruby
bougyman is now known as Guest45077
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
apipkin__ has quit [Quit: Connection closed for inactivity]
whathappens has quit [Read error: Connection reset by peer]
tomaz_b has quit [Ping timeout: 252 seconds]
axl_ has quit [Quit: axl_]
whathappens has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
ddffg has quit [Ping timeout: 265 seconds]
vF3hNGxc47h8 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
dcope_ is now known as dcope
dcope has quit [Changing host]
dcope has joined #ruby
SteenJobs has joined #ruby
hutch34 has joined #ruby
claudiuinberlin has quit []
dcope has left #ruby [#ruby]
elastix has quit [Quit: elastix]
ramortegui has quit [Remote host closed the connection]
JoshS has joined #ruby
nobitanobi has joined #ruby
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Ping timeout: 258 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
hutch34 has quit [Ping timeout: 244 seconds]
tvw has quit []
jshjsh has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
teclator has quit [Ping timeout: 244 seconds]
harai has quit [Ping timeout: 244 seconds]
sdothum has joined #ruby
teclator has joined #ruby
rsampaio has joined #ruby
Bish has quit [Ping timeout: 265 seconds]
l4v2 has joined #ruby
j0n3 has joined #ruby
Bish has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
elastix has joined #ruby
OTORelic has quit [Ping timeout: 252 seconds]
smathy has joined #ruby
mrx88 has quit [Ping timeout: 240 seconds]
MrBusiness2 has quit [Ping timeout: 250 seconds]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
flying has joined #ruby
mostlybadfly has joined #ruby
rsampaio has quit [Ping timeout: 250 seconds]
firstdayonthejob has quit [Quit: WeeChat 1.5]
nobitanobi has quit [Remote host closed the connection]
whathappens has quit [Read error: Connection reset by peer]
moos3 has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
monoprotic has quit [Ping timeout: 240 seconds]
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
firstdayonthejob has joined #ruby
swills has quit [Ping timeout: 244 seconds]
SteenJobs has quit [Read error: Connection reset by peer]
monoprotic has joined #ruby
monoprotic has quit [Changing host]
monoprotic has joined #ruby
solars has quit [Ping timeout: 258 seconds]
[Butch] has quit [Quit: I'm out . . .]
Azure has joined #ruby
SteenJobs has joined #ruby
astrobun_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
biberu has quit []
okdas_ has quit [Ping timeout: 260 seconds]
youch has quit [Ping timeout: 240 seconds]
yardenbar has quit [Ping timeout: 244 seconds]
queequeg1 has quit [Ping timeout: 276 seconds]
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
ben_____ has joined #ruby
queequeg1 has joined #ruby
<havenwood> hmm, seems a bit odd to me to not support installing RubyGems from the released tarball: https://github.com/rubygems/rubygems/issues/1679
* havenwood mutters something about submodules
hahuang61 has joined #ruby
Yzguy has quit [Quit: Zzz...]
ben_____ has quit [Ping timeout: 264 seconds]
dRbiG has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
jackjackdripper has joined #ruby
wrkrcoop has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
Guest45077 has quit [Changing host]
Guest45077 has joined #ruby
Guest45077 is now known as bougyman
Yzguy has joined #ruby
imr is now known as i-
dRbiG has joined #ruby
ben_____ has joined #ruby
Wolland has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
s1kx has joined #ruby
tdy has joined #ruby
rkazak has joined #ruby
jeremyhall has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
hobodave_ has quit [Quit: Computer has gone to sleep.]
RegulationD has quit [Remote host closed the connection]
<zenspider> havenwood: you mean the github auto-generated tarballs, right?
<zenspider> that's a whole different story and has NEVER been a rubygems usecase
SteenJobs has quit [Quit: peaceee]
davedev24 has joined #ruby
rkazak has quit [Ping timeout: 244 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
cibs has quit [Ping timeout: 240 seconds]
da3mon has quit [Quit: cya...]
<havenwood> zenspider: ahh, okay - so it wasn't ever intended to be installable from the auto-tarball?
blackmesa has quit [Ping timeout: 244 seconds]
cibs has joined #ruby
elastix has quit [Quit: elastix]
* havenwood looks at what RVM is doing
<zenspider> they build their own tarballs for manual installation... but mostly you use `gem update --system [version]` which installs the rubygems-update gem
allcentury has joined #ruby
darthvorik has joined #ruby
tmtwd has joined #ruby
flying has quit [Read error: Connection reset by peer]
Mattx has joined #ruby
spudowiar has joined #ruby
blackmesa has joined #ruby
<havenwood> okay, and it's the github tarball that RVM is using
flying has joined #ruby
<havenwood> zenspider: odd thing is how long RVM has been doing it like that with it actually seemingly working
polishdub has quit [Quit: Leaving]
motivic has joined #ruby
byteflame has joined #ruby
ta_ has joined #ruby
<havenwood> i guess it began in the days of Ruby 1.8
hutch34 has joined #ruby
<zenspider> havenwood: couldn't have. weren't using git back then
byteflame has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 276 seconds]
<zenspider> and rvm does bad/wrong things ALL THE TIME... don't assume it is correct
<havenwood> zenspider: in a different form, looks like a long history: https://github.com/rvm/rvm/commit/1d02ddac4abb9e1d6e9a0c904dbb3ba6edc919d7
hutch34 has quit [Ping timeout: 240 seconds]
<havenwood> zenspider: i'm assuming it's madness :-)
edwinvdg_ has joined #ruby
<zenspider> I can't (read: won't) read all that crap. sorry.
<zenspider> please switch to something more sensible than rvm. it just does too much
* mikecmpbll <3s rvm
whathappens has quit [Remote host closed the connection]
Bish has quit [Ping timeout: 244 seconds]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
Lord_of_Life has quit [Excess Flood]
TheCog has joined #ruby
mikecmpbll has quit [Quit: inabit.]
<havenwood> zenspider: I don't use RVM but so many folk do...
meth has joined #ruby
<zenspider> and?
Bish has joined #ruby
Lord_of_Life has joined #ruby
<TheCog> ok, I have a super dumb question. In ruby when you use the = operator on two variables, you're just pointing the first variable at the second variable, which means any operations on the first variab;e cascade into the second, right?
<Antiarc> It's the same object, you're just giving it a new name
<zenspider> variables don't point at variables, ever... they point at objects. but that also depends on the type of the objects
<havenwood> zenspider: I want Ruby to work for them! I don't know if I have the energy to fix this one though.
<zenspider> eg, fixnums are always separate values
toretore has quit [Ping timeout: 240 seconds]
<Antiarc> a = Object.new; b = a; a.object_id == b.object_id => true
<TheCog> ok, here's the question then, how do you get around that, I would like to bring a fixnum from one variable, put it into a second variable, and alter the fixnum on the second variable while preserving the value on the first
<TheCog> .dup works for strings
<TheCog> but not fixnums
<Antiarc> fixnums are immutable
<zenspider> again, fixnums are always separate values
ajsharma has joined #ruby
<Antiarc> The fixnum 5 is always the same object throughout the entire VM
<zenspider> TheCog: these aren't dumb questions... but they're easily experimented with in irb
<zenspider> very easy to experiment with such things
davedev24 has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 260 seconds]
<zenspider> >> a = 5; b = a; b += 1; [a, b]
<zenspider> wtf bot?
zenspider has quit [Changing host]
zenspider has joined #ruby
<havenwood> >> a = 5; b = a; b += 1; [a, b]
<ruby[bot]> havenwood: # => [5, 6] (https://eval.in/629447)
edwinvdgraaf has joined #ruby
<zenspider> >> a = 5; b = a; b += 1; [a, b]
<ruby[bot]> zenspider: # => [5, 6] (https://eval.in/629448)
<zenspider> I wasn't identified
davedev24 has joined #ruby
teclator has quit [Ping timeout: 258 seconds]
<zenspider> TheCog: make sense?
hutch34 has joined #ruby
cschneid_ has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
<TheCog> ok, yes
edwinvdg_ has quit [Ping timeout: 244 seconds]
<TheCog> thanks, sorry, I gogoled a bunch
<TheCog> but I guess i wasnt explicit enough
flashpoint9 has joined #ruby
<TheCog> should have fooled around on irb instead
yuki_is_bored has quit [Quit: Lost terminal]
nankyokusei has joined #ruby
<havenwood> zenspider: Though it seem rbenv just does too much these days as well! (Granted not near so much.) When I heard rbenv was overriding the realpath shell builtin with a C extension I thought it was trolling, yet there it is...: https://github.com/rbenv/rbenv/blob/master/src/realpath.c
flying has quit []
<havenwood> chruby ftw ;-)
flashpoint9 has quit [Ping timeout: 244 seconds]
<havenwood> zenspider: Thanks for the feedback on the Github tarball! I didn't know it was not intended to be able to install RubyGems. (Though I'm having deja vu so maybe I should have known.)
nankyokusei has quit [Ping timeout: 276 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
jhack has quit [Quit: jhack]
Snickers has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> _MY_ shell doesn't have realpath... so maybe that's why
allcentury has quit [Ping timeout: 260 seconds]
hazelux has joined #ruby
hazelux has quit [Client Quit]
monoprotic has quit [Remote host closed the connection]
monoprotic has joined #ruby
jhack has joined #ruby
jobewan has quit [Ping timeout: 252 seconds]
harai has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
monoprotic has quit [Ping timeout: 252 seconds]
Gasher has joined #ruby
jtdoncas has joined #ruby
Bish has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
Bish has joined #ruby
harai has quit [Ping timeout: 240 seconds]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
ShummmardeNIK has quit [Quit: Textual IRC Client: www.textualapp.com]
spudowiar has quit [Quit: Leaving.]
Madplatypus has joined #ruby
harai_ has joined #ruby
RegulationD has joined #ruby
Ruby_Rocks_007 has joined #ruby
<wrkrcoop> im getting this error when sending a post request “no method 'setHeader' for arguments"
<wrkrcoop> any idea what that would that means?
harai has joined #ruby
<zenspider> wrkrcoop: I bet it doesn't actually say that...
jhack has quit [Quit: jhack]
spudowiar has joined #ruby
solocshaw has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
harai_ has quit [Ping timeout: 264 seconds]
<wrkrcoop> hmmm i called .to_s on my timestamp and that seemed to get past that error
<zenspider> it's a org.jruby.RubyString,org.jruby.RubyFixnum
jphase has joined #ruby
<wrkrcoop> oh … so thats probably complaining about the timestamp not beging a string?
Lord_of_Life has quit [Excess Flood]
JoshS has quit [Ping timeout: 240 seconds]
<zenspider> assuming your timestamp is actually a number... sure.
<zenspider> but this isn't a ruby question anymore... it's a java library question? or jruby at the least. I think java library
EDT is now known as MAJORIER-CODE
Lord_of_Life has joined #ruby
SeepingN_ has quit [Excess Flood]
GodFather has quit [Ping timeout: 244 seconds]
nhhc has quit [Quit: Leaving]
MAJORIER-CODE is now known as EDT
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EDT is now known as v-a-p-o-r--e-d-t
dionysus69 has joined #ruby
postmodern has quit [Ping timeout: 250 seconds]
hahuang61 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jphase has quit [Remote host closed the connection]
AnarchyAo has quit [Ping timeout: 244 seconds]
harai_ has joined #ruby
postmodern has joined #ruby
harai has quit [Ping timeout: 260 seconds]
jkhl has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
mikeliss has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Remote host closed the connection]
Lucky_ABA has joined #ruby
mikeliss has quit [Client Quit]
flashpoi_ has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
mikeliss has joined #ruby
hutch34 has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
mikeliss has quit [Remote host closed the connection]
meth has quit [Quit: Bye!]
blackgoat has quit [Ping timeout: 252 seconds]
agent_white has quit [Quit: goin home]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
<hightower> apeiros, toretore: regarding my question from earlier today, I've managed to do it: http://pastebin.ca/3705213
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hightower> apeiros, you might notice that the solution is a bit different than what I asked about (I only asked about a specific bit of the complete problem), but you might find it interesting
nitric has quit [Ping timeout: 258 seconds]
chestnutpie has joined #ruby
chestnutpie has quit [Max SendQ exceeded]
harai has joined #ruby
chestnutpie has joined #ruby
harai_ has quit [Ping timeout: 260 seconds]
davedev24 has quit [Remote host closed the connection]
harai_ has joined #ruby