havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
Ebok has joined #ruby
bry4n_ has quit [Ping timeout: 260 seconds]
jdm has quit [Ping timeout: 244 seconds]
Vile` has quit [Ping timeout: 264 seconds]
abyx has joined #ruby
kadoppe has joined #ruby
lemur has quit [Ping timeout: 248 seconds]
karmatr0n has quit [Ping timeout: 276 seconds]
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
madgen has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
pawnbox has joined #ruby
kadoppe has quit [Ping timeout: 276 seconds]
hinbody has joined #ruby
mkosaki has joined #ruby
baweaver has joined #ruby
stannard has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
krz has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
joaumg has quit [Quit: WeeChat 0.4.2]
ensyde__ has joined #ruby
_blizzy_ has quit [Quit: Leaving]
Xiti has joined #ruby
bry4n_ has joined #ruby
Zai00 has quit [Quit: Zai00]
joaumg has joined #ruby
edwinvdgraaf has joined #ruby
Xeago has joined #ruby
wsk has joined #ruby
chipotle has quit [Quit: cheerio]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karmatr0n has joined #ruby
yfeldblum has quit [Quit: Leaving...]
yfeldblu_ has joined #ruby
chipotle has joined #ruby
kfpratt has quit [Remote host closed the connection]
tmtwd has joined #ruby
kfpratt has joined #ruby
BSaboia has quit [Ping timeout: 268 seconds]
greg__ has joined #ruby
zeroDi has quit [Quit: WeeChat 1.4]
greg__ has quit [Client Quit]
Xeago has quit [Ping timeout: 248 seconds]
full_throttle has joined #ruby
<full_throttle> is there a problem if you can run gem install sass but not sudo gem install sass
davedev24 has quit [Remote host closed the connection]
zeroDivisible has quit [Ping timeout: 260 seconds]
dunpeal has quit [Quit: leaving]
duckpuppy has joined #ruby
krz has quit [Ping timeout: 244 seconds]
dvinciguerra_ has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
LuckyABA has joined #ruby
abyx has quit [Ping timeout: 250 seconds]
joaumg has quit [Quit: WeeChat 0.4.2]
duckpuppy has quit [Ping timeout: 276 seconds]
Suntzu has quit [Read error: Connection reset by peer]
saneax is now known as saneax_AFK
krobzaur_ has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 276 seconds]
skweek has joined #ruby
joaumg has joined #ruby
IrishGringo has quit [Remote host closed the connection]
krz has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 240 seconds]
blaxter has joined #ruby
stannard has quit [Remote host closed the connection]
kadoppe has joined #ruby
kies has joined #ruby
pawnbox has joined #ruby
kadoppe has quit [Ping timeout: 248 seconds]
ssiris has quit [Quit: End of Line]
tubuliferous has joined #ruby
workmad3 has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
dfockler has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
jottr has joined #ruby
ur5us has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
blackmesa has quit [Quit: WeeChat 1.4]
finisherr has joined #ruby
sudoubuntu has joined #ruby
jenrzzz_ has quit [Ping timeout: 248 seconds]
moeabdol1 has quit [Ping timeout: 276 seconds]
jottr_ has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 244 seconds]
Suntzu has joined #ruby
ekinmur has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
abyx has joined #ruby
jgt4 has joined #ruby
_djbkd has quit [Remote host closed the connection]
kadoppe has joined #ruby
quakephil has quit [Ping timeout: 252 seconds]
GodFather has quit [Ping timeout: 248 seconds]
hxegon has quit [Quit: BRB]
workmad3 has quit [Ping timeout: 260 seconds]
hxegon has joined #ruby
workmad3 has joined #ruby
jgt4 has quit [Ping timeout: 248 seconds]
kadoppe has quit [Ping timeout: 276 seconds]
amclain has quit [Quit: Leaving]
Seeq has left #ruby ["Leaving"]
joaumg has quit [Quit: WeeChat 0.4.2]
joaumg has joined #ruby
joaumg has quit [Changing host]
joaumg has joined #ruby
pawnbox has joined #ruby
hxegon has quit [Ping timeout: 244 seconds]
abyx has quit [Quit: This computer has gone to sleep]
nerium has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 276 seconds]
hxegon has joined #ruby
skweek has quit [Remote host closed the connection]
bkxd has joined #ruby
trinaldi has quit [Quit: thanks]
jenrzzz has joined #ruby
hxegon has quit [Ping timeout: 264 seconds]
hxegon has joined #ruby
symm- has quit [Ping timeout: 268 seconds]
ixti has quit [Quit: WeeChat 1.4]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
mtkd has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
hxegon is now known as hxegon_AFK
flopsec has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 244 seconds]
ctrlrsf has quit [Ping timeout: 268 seconds]
alxgsv has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
abyx has joined #ruby
krz has quit [Ping timeout: 248 seconds]
tmtwd has joined #ruby
Saint_Philomena has quit [Quit: Page closed]
bkxd has joined #ruby
solocshaw has joined #ruby
hxegon_AFK is now known as hxegon
Chagel has joined #ruby
hxegon is now known as hxegon_AFK
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mkosaki has quit [Ping timeout: 244 seconds]
abyx has quit [Quit: This computer has gone to sleep]
sudoubuntu has joined #ruby
duckpuppy has joined #ruby
karmatr0n has joined #ruby
davedev24 has quit [Remote host closed the connection]
hxegon_AFK is now known as hxegon
mkosaki has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
Azure has quit [Ping timeout: 248 seconds]
hxegon is now known as hxegon_AFK
yfeldblu_ has quit [Remote host closed the connection]
Azure has joined #ruby
stannard has joined #ruby
abyx has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
pawnbox has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
Kallis has quit [Read error: Connection reset by peer]
cdg has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
davedev24 has joined #ruby
mistermocha has joined #ruby
ur5us has joined #ruby
joaumg has quit [Quit: WeeChat 0.4.2]
mistermocha has quit [Ping timeout: 246 seconds]
joaumg has joined #ruby
abyx has quit [Quit: This computer has gone to sleep]
skweek has joined #ruby
goglosh has joined #ruby
shmuli has quit [Remote host closed the connection]
jorrin has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
kadoppe has joined #ruby
davedev24 has quit []
bkxd has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
kadoppe has quit [Ping timeout: 250 seconds]
kfpratt has quit [Remote host closed the connection]
<goglosh> howdy
hxegon_AFK is now known as hxegon
<goglosh> I want to get a hold on a specific function
<goglosh> er.. method
<Ox0dea> To what end?
<goglosh> wrapping it in another method
<goglosh> actually the idea is to change the method behavior, or rather, to extend it, at runtime
<Ox0dea> You can use #alias_method to store the old version under a different name and invoke it that way.
<Ox0dea> Depending on the specifics of your problem, Module#prepend might be even better.
<goglosh> I'll try that
bruno- has quit [Ping timeout: 260 seconds]
<goglosh> but anyway, I still want to know how can I get a handle on a method
<Ox0dea> You can use the #method method to get a Method instance.
<Ox0dea> There's also #instance_method to get an UnboundMethod.
kadoppe has joined #ruby
<goglosh> exactly what i meant, thanks
<Ox0dea> Sure thing.
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
kfpratt has joined #ruby
stannard has quit [Remote host closed the connection]
kies has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cheerio]
x77686d has quit [Quit: x77686d]
hxegon has quit [Quit: PEACE OUT]
kfpratt has quit [Read error: Connection reset by peer]
kadoppe has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
rubie has quit [Remote host closed the connection]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
kies has joined #ruby
bronson has joined #ruby
tubuliferous has quit [Ping timeout: 264 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
kfpratt has joined #ruby
kam270 has quit [Ping timeout: 276 seconds]
full_throttle has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 244 seconds]
BTRE has quit [Quit: Leaving]
<goglosh> agh is irb supposed to act weird
<goglosh> ?
<goglosh> I start writing a loop
<goglosh> but as soon as I send `puts x` the prompt goes back to normal (even before I print the 'end' statements
<goglosh> )
mkosaki has quit [Ping timeout: 276 seconds]
<goglosh> and it then doesn't print the value of anything
Ebok has quit [Ping timeout: 250 seconds]
mkosaki has joined #ruby
stardiviner has joined #ruby
abyx has joined #ruby
nerium has quit [Quit: nerium]
jorrin has quit [Quit: Leaving]
abyx has quit [Client Quit]
kfpratt has quit [Remote host closed the connection]
<goglosh> wait it seems to be expecting an extra end. strange
_stu_ has quit [Quit: _stu_]
SCHAAP137 has quit [Quit: Leaving]
BTRE has joined #ruby
imperator has joined #ruby
<Ox0dea> Did you accidentally say `else if`?
wolffles has joined #ruby
abyx has joined #ruby
barajasfab has quit [Ping timeout: 248 seconds]
<goglosh> mno, I had an if but it was terminated too
<goglosh> oooh wait I know what happened no I put if x do
<goglosh> :P
<goglosh> sorry I'm still learning
abyx has quit [Client Quit]
baweaver has joined #ruby
<wolffles> remember me guys?
elifoster has joined #ruby
rubie has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
wmoxam has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
rubie has joined #ruby
ensyde__ has quit [Ping timeout: 244 seconds]
<goglosh> l8r
goglosh has quit [Quit: leaving]
Outlastsheep has joined #ruby
blaxter has quit [Quit: foo]
braincras has quit [Quit: bye bye]
<baweaver> wolffles: somewhat, though that's what I have logs for :D
barajasfab has joined #ruby
pawnbox has joined #ruby
RickHull has left #ruby [#ruby]
<wolffles> :D im back
Suntzu has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
CaffeineShot has joined #ruby
yfeldblum has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
raeoks has joined #ruby
CaffeineShot has quit [Client Quit]
braincrash has joined #ruby
kadoppe has joined #ruby
zast has joined #ruby
kadoppe has quit [Ping timeout: 252 seconds]
gix has quit [Ping timeout: 252 seconds]
<ironcamel> i want a loop construct that will work from reading from a file as well as reading from STDIN. can i use IO.foreach for this? .... IO.foreach(STDIN) doesn't seem to work
_djbkd has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 250 seconds]
gix has joined #ruby
Jandre has quit [Ping timeout: 240 seconds]
<Ox0dea> ironcamel: ARGF.each { |line| ... }
solocshaw has quit [Ping timeout: 264 seconds]
<Ox0dea> That'll iterate over all file arguments, though, not just the first.
freerobby has quit [Quit: Leaving.]
imperator has quit [Quit: Leaving]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aef has quit [Remote host closed the connection]
<ironcamel> Ox0dea: thanks. that works. but i just want to know, is there a way to write a loop such that you can pass it a variable that could be a file or STDIN?
CloCkWeRX has joined #ruby
<ironcamel> x = STDIN; IO.foreach(x) .... where x might be a file or STDIN ?
nikger has joined #ruby
Jandre has joined #ruby
Jandre is now known as Guest40782
<ironcamel> hmmm, STDIN.each_line works
<Ox0dea> >> STDIN.is_a? IO # ironcamel
<ruby[bot]> Ox0dea: # => true (https://eval.in/550161)
<ironcamel> ah cool
ramfjord has quit [Ping timeout: 250 seconds]
Suntzu has joined #ruby
kadoppe has joined #ruby
qhp has quit [Quit: Leaving]
magikid has quit [Quit: Leaving.]
gizmore has joined #ruby
kies has joined #ruby
qhp has joined #ruby
qhp has quit [Max SendQ exceeded]
qhp has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
HouseMD has joined #ruby
qhp has quit [Client Quit]
qhp has joined #ruby
qhp has quit [Max SendQ exceeded]
HouseMD is now known as GitGud
gizless has quit [Ping timeout: 244 seconds]
skweek has quit [Ping timeout: 276 seconds]
Emmanuel_Chanel has quit [Ping timeout: 276 seconds]
LaT0rtue has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
krobzaur_ has joined #ruby
LaT0rtue has joined #ruby
Chagel has quit [Ping timeout: 240 seconds]
jgt4 has joined #ruby
karmatr0n has joined #ruby
chipotle has quit [Quit: cheerio]
jgt4 has quit [Ping timeout: 248 seconds]
edwinvdgraaf has joined #ruby
karmatr0n has quit [Ping timeout: 268 seconds]
_djbkd has quit [Remote host closed the connection]
freerobby has joined #ruby
edwinvdgraaf has quit [Ping timeout: 248 seconds]
kies has quit [Ping timeout: 264 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rake_db_migrate has joined #ruby
wsk has quit [Quit: Leaving]
_djbkd has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
crameth has joined #ruby
baweaver has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
nikger has quit [K-Lined]
LoneHerm_ has quit [Remote host closed the connection]
merida has joined #ruby
LaT0rtue has quit [Ping timeout: 268 seconds]
kadoppe has quit [Ping timeout: 244 seconds]
rkazak has joined #ruby
sudoubuntu has joined #ruby
queequeg1 has quit [Ping timeout: 240 seconds]
tax has joined #ruby
finisherr has quit [Quit: finisherr]
finisherr has joined #ruby
Rodya_ has joined #ruby
aqoom has joined #ruby
blackgoat has joined #ruby
krobzaur_ has quit [Ping timeout: 260 seconds]
finisherr has quit [Client Quit]
queequeg1 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
stardiviner has quit [Ping timeout: 248 seconds]
stardiviner has joined #ruby
aqoom has quit [Quit: WeeChat 1.3]
freerobby has quit [Ping timeout: 244 seconds]
rake_db_migrate has quit [Remote host closed the connection]
bronson has joined #ruby
Rodya_ has quit [Remote host closed the connection]
bkxd has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
Emmanuel_Chanel has joined #ruby
rubie has quit [Remote host closed the connection]
vdamewood has joined #ruby
rake_db_migrate has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
rake_db_migrate has quit [Remote host closed the connection]
x77686d has joined #ruby
Chagel has joined #ruby
merida has quit [Remote host closed the connection]
karmatr0n has joined #ruby
x77686d has quit [Quit: x77686d]
karmatr0n has quit [Ping timeout: 252 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Suntzu has joined #ruby
cdg has joined #ruby
pawnbox has joined #ruby
Chagel has quit [Ping timeout: 250 seconds]
Swey_Hey has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
cdg has quit [Ping timeout: 268 seconds]
<shevy> wolffles hey tasty waffles
rkazak has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
bry4n_ has quit [Ping timeout: 248 seconds]
Suntzu has quit [Quit: changing servers]
pawnbox has quit [Remote host closed the connection]
sauvin has joined #ruby
duckpuppy has joined #ruby
Eiam_ has joined #ruby
tubuliferous has joined #ruby
pawnbox has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 252 seconds]
Ropeney has quit [Remote host closed the connection]
sauvin has quit [Max SendQ exceeded]
bkxd has quit [Ping timeout: 276 seconds]
Swey_Hey has quit [Ping timeout: 260 seconds]
sauvin has joined #ruby
hk238 has joined #ruby
Chunlea has joined #ruby
merida has joined #ruby
merida has quit [Remote host closed the connection]
kadoppe has joined #ruby
solocshaw has joined #ruby
nanoz has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
Chunlea_ has quit [Ping timeout: 276 seconds]
Tempesta has quit [Ping timeout: 276 seconds]
hakunin has quit [Remote host closed the connection]
RegulationD has joined #ruby
kadoppe has quit [Ping timeout: 252 seconds]
Tempesta has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
Suntzu has joined #ruby
cdg has joined #ruby
Dimik has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackgoat has quit [Ping timeout: 248 seconds]
merida has joined #ruby
edwinvdgraaf has joined #ruby
full_throttle has joined #ruby
<full_throttle> i can't install rvm properly
<full_throttle> i did apt-get install rvm
<full_throttle> i mean apt-get install ruby
pawnbox has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 260 seconds]
<full_throttle> and then rvm broke
<full_throttle> it's saying that it's not a function'
<full_throttle> before it said it's not a function because of path
<full_throttle> i fixed path but i couldn't get sass to run
pawnbox has joined #ruby
elifoster has quit [Ping timeout: 264 seconds]
jgt4 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
<shevy> I'd follow https://rvm.io/ - are you sure the apt-get way will work?
jgt4 has quit [Ping timeout: 248 seconds]
x77686d has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
x77686d has quit [Client Quit]
x77686d has joined #ruby
x77686d has quit [Client Quit]
lxsameer has joined #ruby
kareeoleez has joined #ruby
gizless has joined #ruby
kadoppe has joined #ruby
smathy_afk has quit [Ping timeout: 240 seconds]
gizmore|2 has joined #ruby
_djbkd has quit [Quit: My people need me...]
gizmore has quit [Ping timeout: 250 seconds]
gizless has quit [Ping timeout: 244 seconds]
kadoppe has quit [Ping timeout: 240 seconds]
nando293921 has quit [Ping timeout: 240 seconds]
sp4rrow has joined #ruby
tk__ has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
Xiti has quit [Quit: Xiti]
rkazak has joined #ruby
rippa has joined #ruby
kareeoleez has quit []
tildes has joined #ruby
mkosaki has quit [Ping timeout: 244 seconds]
sauvin has quit [Read error: Connection reset by peer]
sauvin has joined #ruby
niko has quit [Ping timeout: 612 seconds]
Macaveli has joined #ruby
niko has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
rkazak_ has joined #ruby
rkazak has quit [Ping timeout: 248 seconds]
rkazak_ is now known as rkazak
infra-red has joined #ruby
dionysus69 has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
bronson has joined #ruby
czerasz_ has joined #ruby
baweaver has quit [Remote host closed the connection]
rehat has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 264 seconds]
diegoaguilar has joined #ruby
edwinvdgraaf has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Quit: Leaving.]
pawnbox_ has joined #ruby
CloCkWeRX has joined #ruby
edwinvdgraaf has quit [Ping timeout: 276 seconds]
snoobydoo has joined #ruby
djbkd has quit [Remote host closed the connection]
limon_ has joined #ruby
karmatr0n has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kadoppe has joined #ruby
vdamewood has quit [Ping timeout: 250 seconds]
Dimik has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Mia has quit [Read error: Connection reset by peer]
joconcepts has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
kadoppe has quit [Ping timeout: 252 seconds]
karmatr0n has quit [Ping timeout: 276 seconds]
futilegames has joined #ruby
mhoungbo has quit [Ping timeout: 244 seconds]
tmtwd_ has joined #ruby
Suntzu has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
armyriad has quit [Quit: Leaving]
futilegames has quit [Ping timeout: 244 seconds]
tmtwd has quit [Ping timeout: 276 seconds]
<lxsameer> is there any build process for ruby it self which makes development easier ?
sudoubuntu has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
marr has joined #ruby
minimalism has quit [Quit: minimalism]
wolffles has quit [Quit: wolffles]
duckpuppy has joined #ruby
<Ox0dea> lxsameer: What're you finding to be difficult?
<lxsameer> Ox0dea: how does ruby devs test their changes ? do they recompile ruby source code completely each time ?
<Ox0dea> lxsameer: I imagine they say `make miniruby` while prototyping, and then ensure that their changes work on a full build (`make test`).
bkxd has joined #ruby
<lxsameer> Ox0dea: thanks man, I have to look at this make task, thanks for your time
joconcepts has joined #ruby
gizmore has joined #ruby
<Ox0dea> lxsameer: No worries. If you're playing with something deep that always triggers a rebuild, consider looking into ccache.
duckpuppy has quit [Ping timeout: 250 seconds]
<lxsameer> Ox0dea: sure, thanks
kam270 has joined #ruby
gizmore|2 has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 248 seconds]
tmtwd_ has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
akkmaxon has joined #ruby
Devalo has joined #ruby
bmf has joined #ruby
jero_ has joined #ruby
cdg has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
Swey_Hey has joined #ruby
baweaver has joined #ruby
terlar has joined #ruby
djellemah_ is now known as djellemah
baweaver has quit [Ping timeout: 268 seconds]
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
x77686d has joined #ruby
ta_ has joined #ruby
Devalo has joined #ruby
crameth has quit [Quit: crameth]
tristanp has quit [Ping timeout: 250 seconds]
crameth has joined #ruby
crameth has quit [Max SendQ exceeded]
Macaveli has joined #ruby
Chagel has joined #ruby
skade has joined #ruby
karmatr0n has joined #ruby
firstdayonthejob has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
karmatr0n has quit [Ping timeout: 244 seconds]
x77686d has quit [Quit: x77686d]
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
cippaciong has joined #ruby
govg has joined #ruby
cdg has joined #ruby
Lomex has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
merida has quit [Remote host closed the connection]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
duckpuppy has joined #ruby
kadoppe has joined #ruby
futilegames has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
jt__ has joined #ruby
Snowy has joined #ruby
<cippaciong> hello, I've got a problem with the bson gem which I'm not quite sure how to solve. As you can see in this example (http://pastie.org/10790706), the bson output I get differs from the expected output because some hex code are replaced by their ascii value. Is there a way to avoid this?
colegatron has quit [Ping timeout: 268 seconds]
<full_throttle> cippaciong: i can help you
<apeiros> cippaciong: "\x31" == "1"
<apeiros> >> "\x31" == "1"
<ruby[bot]> apeiros: # => true (https://eval.in/550191)
<apeiros> there's no difference. it's only presentation.
<cippaciong> yes, but is there a way to have \x31 instead of 1?
<apeiros> you don't understand. again. \x31 *is* 1.
colegatron has joined #ruby
<apeiros> if you want to *print* that string as hexes, there's .unpack("H*")
<apeiros> but I suspect printing isn't your issue. only understanding that you already have what you want is.
<cippaciong> apeiros using unpack I would convert also BSON or awesome (for example) to hexes right?
ta_ has quit [Remote host closed the connection]
zapata has quit [Ping timeout: 260 seconds]
<apeiros> right.
<apeiros> there's also gsub. but maybe explain what problem you want to solve. because again, I'm pretty sure you don't actually have one.
<Ox0dea> cippaciong: Just to be clear, you *want* literal hexadecimal escapes knowing that you'll have to re-interpret them somewhere down the line?
<cippaciong> apeiros: I know it's correct but I need to save the output to a file and give that file to another program (a flex scanner) and this is problematic
<apeiros> unless that flex-scanner is stupid, it won't be problematic.
<apeiros> you do realize that "\\x31" is not the same as "\x31", right?
jenrzzz has quit [Ping timeout: 248 seconds]
<apeiros> >> puts "\\x31"
<ruby[bot]> apeiros: # => \x31 ...check link for more (https://eval.in/550195)
armyriad has joined #ruby
<apeiros> prints as \x31, is 4 bytes/4 chars
<apeiros> "\x31" is 1 byte/1 char
bkxd has joined #ruby
jud has quit [Ping timeout: 252 seconds]
gusrub has joined #ruby
<cippaciong> because Yes, I understand what you're saying, but yet I'm not sure how to handle that 1 instead of \x31 in the scanner then
<cippaciong> because the scanner reads strings from file after all
<apeiros> and?
bmf has quit [Remote host closed the connection]
Pisuke has joined #ruby
<apeiros> does it want the bson input? or does it want some human readable *non-bson* input?
kadoppe has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
MyMind has quit [Ping timeout: 264 seconds]
<apeiros> cippaciong: I suggest you write "1" into a text file and open it in a hex editor
<apeiros> or write the full string you get from your code to a file and open it in a hex editor.
<apeiros> maybe then you'll understand. because frankly, I think you still haven't.
Snowy has quit [Read error: Connection reset by peer]
<cippaciong> it's okay, I understood that 1 an \x31 is the same thing :)
Snowy has joined #ruby
<cippaciong> anyway you were right, I am the one writing the scanner and it's my first time I write one
<cippaciong> I think I expected it to parse human readable *non-bson* input instead of binary bson input
<apeiros> if you still want that, you can use gsub, to replace those single bytes with an escape sequence
edwinvdgraaf has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
<cippaciong> I'll think about it but probably I should just change modify my scanner
<cippaciong> thanks a lot apeiros, you have been very helpful
zapata has joined #ruby
<apeiros> yw
<full_throttle> gem command not found?
<full_throttle> wtf???
<full_throttle> =(
ur5us has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
symm- has joined #ruby
dgncn has quit [Excess Flood]
madgen has joined #ruby
marr has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 250 seconds]
govg has quit [Ping timeout: 260 seconds]
dgncn has joined #ruby
jt__ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
Begi has joined #ruby
galeido has quit [Quit: leaving]
rkazak has quit [Quit: Sleep.....ing....]
Chagel has quit [Ping timeout: 276 seconds]
vdamewood has joined #ruby
last_staff has joined #ruby
jt__ has joined #ruby
dionysus69 has joined #ruby
x0f has quit [Read error: Connection reset by peer]
x0f has joined #ruby
tubuliferous has quit [Ping timeout: 248 seconds]
<shevy> full_throttle are you interactive
ocbtec has joined #ruby
lxsameer has joined #ruby
<full_throttle> shevy?
<shevy> excellent
colegatron has quit [Ping timeout: 276 seconds]
<shevy> you have to find where "gem" has been put
moeabdol1 has joined #ruby
colegatron has joined #ruby
skade has joined #ruby
Chagel has joined #ruby
tildes has quit [Ping timeout: 252 seconds]
danand has joined #ruby
Lomex has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
agit0 has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.5-dev]
Ox0dea has joined #ruby
Lomex has joined #ruby
govg has joined #ruby
sepp2k has joined #ruby
dmr8 has joined #ruby
infra-red has quit []
bkxd has joined #ruby
RegulationD has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
rolha has joined #ruby
RegulationD has quit [Ping timeout: 268 seconds]
marr has joined #ruby
Lomex has quit [Remote host closed the connection]
baweaver has joined #ruby
tubuliferous has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
noService has quit [Ping timeout: 246 seconds]
bmf has joined #ruby
Mitaka89 has joined #ruby
tax has quit [Ping timeout: 252 seconds]
krz has joined #ruby
e4xit has joined #ruby
jgt4 has joined #ruby
govg has quit [Quit: leaving]
karmatr0n has joined #ruby
Snowy has quit [Remote host closed the connection]
sthns has joined #ruby
jt__ has quit [Remote host closed the connection]
Xeago has joined #ruby
danand has quit [Ping timeout: 276 seconds]
tildes has joined #ruby
karmatr0n has quit [Ping timeout: 252 seconds]
kam270 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
naftilos76 has joined #ruby
Chagel has quit [Ping timeout: 248 seconds]
nerium has joined #ruby
gusrub has quit [Ping timeout: 268 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
jottr_ has joined #ruby
tildes has quit [Ping timeout: 252 seconds]
tildes has joined #ruby
Ropeney has joined #ruby
duckpuppy has joined #ruby
Lomex has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
snoobydoo has quit [Ping timeout: 250 seconds]
araujo has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
myntcake has joined #ruby
Macaveli has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
pawnbox_ has quit [Remote host closed the connection]
agit0 has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 260 seconds]
SCHAAP137 has joined #ruby
nodejunkie has joined #ruby
nerium has quit [Quit: nerium]
pawnbox has joined #ruby
tvw has joined #ruby
joonty has joined #ruby
jgt4 has quit [Ping timeout: 248 seconds]
krz has quit [Ping timeout: 264 seconds]
vdamewood has quit [Ping timeout: 260 seconds]
quakephil has joined #ruby
kareeoleez has joined #ruby
kadoppe has joined #ruby
noService has joined #ruby
LaT0rtue has joined #ruby
futilegames has quit [Quit: futilegames]
noService has quit [Ping timeout: 246 seconds]
noService has joined #ruby
joonty has quit [Ping timeout: 246 seconds]
krz has joined #ruby
kadoppe has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Remote host closed the connection]
SCHAAP137 has quit [Ping timeout: 276 seconds]
akkmaxon has quit [Ping timeout: 246 seconds]
bmf has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 268 seconds]
karmatr0n has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
drptbl has joined #ruby
noService has quit [Ping timeout: 246 seconds]
colegatron has quit [Ping timeout: 248 seconds]
danand has joined #ruby
sdothum has joined #ruby
retro_ has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
danielpclark has quit [Remote host closed the connection]
Chagel has joined #ruby
stannard has joined #ruby
GodFather has joined #ruby
noService has joined #ruby
GodFather has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
Zai00 has joined #ruby
krz has quit [Ping timeout: 264 seconds]
Sembei has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
coffeecupp has joined #ruby
Pisuke has quit [Ping timeout: 250 seconds]
Chagel has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
yfeldblum has joined #ruby
jottr_ has joined #ruby
sthns has quit [Quit: as the prophecy foretold]
krz has joined #ruby
GodFather has joined #ruby
pawnbox has joined #ruby
aqoom has joined #ruby
kareeoleez has quit [Remote host closed the connection]
Beast has joined #ruby
kareeoleez has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
bkxd has joined #ruby
drptbl has joined #ruby
drptbl has quit [Client Quit]
ur5us has quit []
bkxd has quit [Ping timeout: 268 seconds]
<claw> hey channel
Jackneill has joined #ruby
<claw> i am using Rack::Protection::EscapedParams
<claw> which is fine for 99.9% percent of the params but i need to skip or undo the escaping for some params
<claw> how would i do this
<claw> i thought there might be a Rack::Protection::EscapedParams.unescape_html but no
kareeoleez has quit [Remote host closed the connection]
<claw> CGI.unescape_html seams to work ?
solocshaw has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
<claw> yes this does the trick :).
retro has joined #ruby
retro is now known as Guest8433
chipotle has quit [Quit: cheerio]
baweaver has joined #ruby
<Ox0dea> claw: You want URI.unescape.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> Or, well, never mind; depends on your particular use case.
<claw> Ox0dea: CGI seams to be the right thing for me
sdothum has joined #ruby
<Ox0dea> claw: Right, I missed that you wanted to unescape HTML.
<claw> as Escaping is done by html_safe
<Ox0dea> Yep, makes sense.
<apeiros> html_safe doesn't do any escaping
Guest8433 is now known as retro|cz
retro|cz is now known as retro-cz
Devalo has quit [Remote host closed the connection]
<apeiros> "Marks a string as trusted safe. It will be inserted into HTML with no additional escaping performed"
baweaver has quit [Ping timeout: 260 seconds]
naftilos76 has quit [Ping timeout: 268 seconds]
coffeecupp has quit [Quit: Lingo: www.lingoirc.com]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 248 seconds]
Swey_Hey has quit [Quit: Leaving]
Devalo has joined #ruby
sthns has joined #ruby
gizmore has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
Madplatypus has quit [Quit: Connection closed for inactivity]
minimalism has joined #ruby
Devalo has quit [Remote host closed the connection]
joonty has joined #ruby
krz has quit [Ping timeout: 276 seconds]
hanmac has quit [Ping timeout: 248 seconds]
Devalo has joined #ruby
Ropeney has quit [Read error: Connection reset by peer]
codecop has joined #ruby
ljames has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troulouliou_div2 has joined #ruby
Vile` has joined #ruby
<shevy> magic!
joonty has quit [Ping timeout: 260 seconds]
MyMind has joined #ruby
noService has quit [Ping timeout: 246 seconds]
Sembei has quit [Ping timeout: 244 seconds]
hinbody has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
krz has joined #ruby
Beast has quit [Quit: Leaving]
hanmac has joined #ruby
moei has quit [Quit: Leaving...]
bkxd has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Devalo has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
tildes has joined #ruby
bkxd has joined #ruby
chipotle has joined #ruby
danand has quit [Ping timeout: 252 seconds]
sandelius has joined #ruby
lxsameer has quit [Quit: WeeChat 1.4]
GitGud has quit [Quit: bye habibis]
GitGud has joined #ruby
GitGud has quit [Excess Flood]
GitGud has joined #ruby
chipotle has quit [Quit: cheerio]
chipotle has joined #ruby
chipotle has quit [Client Quit]
dionysus69 has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
futilegames has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
cpup has quit [Ping timeout: 276 seconds]
cpup has joined #ruby
nando293921 has joined #ruby
cdg has joined #ruby
chipotle has joined #ruby
tristanp has joined #ruby
cdg_ has joined #ruby
RegulationD has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
moeabdol2 has joined #ruby
jottr has joined #ruby
kadoppe has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
futilegames has quit [Quit: futilegames]
RegulationD has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 250 seconds]
moeabdol1 has quit [Ping timeout: 260 seconds]
karmatr0n has joined #ruby
kadoppe has quit [Ping timeout: 248 seconds]
kadoppe has joined #ruby
joonty has joined #ruby
jottr has quit [Quit: WeeChat 1.4]
raeoks has joined #ruby
karmatr0n has quit [Ping timeout: 248 seconds]
Xeago has quit [Ping timeout: 244 seconds]
limon_ has quit [Quit: Lost terminal]
joonty has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
kadoppe has quit [Ping timeout: 244 seconds]
madgen has quit [Ping timeout: 240 seconds]
snoobydoo has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
kadoppe has joined #ruby
darkf has quit [Quit: Leaving]
elifoster has joined #ruby
Suntzu has joined #ruby
kadoppe has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
tvw has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
CloCkWeRX has left #ruby [#ruby]
blackgoat has joined #ruby
Kerber0s has joined #ruby
jottr_ has joined #ruby
kadoppe has joined #ruby
Kerber0s_ has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
johnmilton has joined #ruby
jottr_ has quit [Client Quit]
kadoppe has quit [Ping timeout: 240 seconds]
Kerber0s has quit [Ping timeout: 268 seconds]
elifoster has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
pwnd_nsfw has quit [Ping timeout: 248 seconds]
pwnd_nsfw` has joined #ruby
snoobydoo has quit [Ping timeout: 244 seconds]
yohle has joined #ruby
pawnbox has joined #ruby
baweaver has joined #ruby
snoobydoo has joined #ruby
thoraxe has quit [Quit: reboot]
<zzak> [travis-ci, irc.freenode.net] The build is still failing. by @ktsj: See https://travis-ci.org/ruby/ruby/builds/121909486
aqoom has quit [Quit: WeeChat 1.3]
<n1colas> o/
symm- has quit [Ping timeout: 268 seconds]
djbkd has joined #ruby
imperator has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
mkl has joined #ruby
snoobydoo has quit [Ping timeout: 244 seconds]
snoobydoo has joined #ruby
yohle has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
rake_db_migrate has joined #ruby
karmatr0n has joined #ruby
yohle has joined #ruby
spider-mario has joined #ruby
Kerber0s_ has quit [Ping timeout: 246 seconds]
Kerber0s has joined #ruby
yohle has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 276 seconds]
_stu_ has joined #ruby
shinnya has joined #ruby
yohle has joined #ruby
barajasfab has quit [Quit: Leaving]
blackgoat has quit [Ping timeout: 244 seconds]
yohle has quit [Client Quit]
statelesscode has joined #ruby
yohle has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
dvinciguerra_ has joined #ruby
yohle has quit [Client Quit]
ruby-lang162 has joined #ruby
Ropeney has joined #ruby
badleaf has joined #ruby
kadoppe has joined #ruby
ruby-lang162 has quit [Ping timeout: 250 seconds]
yohle has joined #ruby
yohle has quit [Client Quit]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kadoppe has quit [Ping timeout: 248 seconds]
arup___ has joined #ruby
blaxter has joined #ruby
nerium has joined #ruby
sthns has quit [Quit: as the prophecy foretold]
Cohedrin has joined #ruby
d0nn1e has quit [Ping timeout: 248 seconds]
<arup___> I am making an CSV file by following the instructions https://gist.github.com/aruprakshit/8aa691ab5146447aebaf61015937a73a . I am confused by 'Quote Character' and 'Quote Escape'. How should I mention it?
arup___ is now known as arup_r
kareeoleez has quit [Remote host closed the connection]
rake_db_migrate has quit [Remote host closed the connection]
d0nn1e has joined #ruby
madgen has joined #ruby
kareeoleez has joined #ruby
rake_db_migrate has joined #ruby
smathy has joined #ruby
kareeoleez has quit [Ping timeout: 268 seconds]
sepp2k has quit [Read error: Connection reset by peer]
rubie has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
rake_db_migrate has quit [Ping timeout: 250 seconds]
binaryplease1 has joined #ruby
binaryplease has quit [Ping timeout: 244 seconds]
arup_r has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
rake_db__ has joined #ruby
rake_db__ has quit [Remote host closed the connection]
FooMunki has joined #ruby
fedexo has joined #ruby
KrzaQ has quit [Remote host closed the connection]
hinbody has joined #ruby
mwlang has quit [Quit: mwlang]
stannard has quit [Remote host closed the connection]
binaryplease1 is now known as binaryplease
diegoaguilar has joined #ruby
blackgoat has joined #ruby
tristanp has joined #ruby
KrzaQ has joined #ruby
troulouliou_div2 has joined #ruby
blackgoat has quit [Client Quit]
troulouliou_div2 has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 260 seconds]
^ is now known as e
krobzaur_ has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noService has joined #ruby
raeoks has joined #ruby
nanoz has joined #ruby
Chunlea has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
rubie has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
snoobydo1 has joined #ruby
snoobydoo has quit [Ping timeout: 248 seconds]
czerasz__ has joined #ruby
thin has joined #ruby
NinjaPanzer has joined #ruby
arup_r has joined #ruby
ekinmur has joined #ruby
czerasz_ has quit [Ping timeout: 248 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
Chagel has joined #ruby
kareeoleez has joined #ruby
<arup_r> any opinion ?
djbkd has quit []
mtkd has joined #ruby
Chagel has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
hakunin has joined #ruby
Xeago has joined #ruby
kareeoleez has quit [Ping timeout: 248 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
joaumg has quit [Quit: WeeChat 0.4.2]
PedramT_ has joined #ruby
joaumg has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
PedramT__ has joined #ruby
PedramT has quit [Ping timeout: 268 seconds]
PedramT_ has quit [Ping timeout: 252 seconds]
madgen has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
Chunlea has joined #ruby
pawnbox has joined #ruby
madgen has joined #ruby
<Papierkorb> arup_r: The quote char and its escape char are part of the CSV RFC, I wouldn't mention it. Neither which line ending to use, the CSV lib should work with any. If not, I'd auto-detect that.
kadoppe has joined #ruby
<arup_r> Yes, Papierkorb. Thanks.. I was reading the Ruby CSV lib. And seems the recommendations they gave to me is the standard. So need to mention explicitly.
<arup_r> *no need
PedramT__ has quit [Ping timeout: 246 seconds]
<Papierkorb> arup_r: I'll just guess that people who're putting orders into that system have no clue what a "line ending" even is, less so what line feeds are and "what's that .. 0x0A binary thing even supposed to mean? Better call helpdesk"
banister has joined #ruby
<arup_r> ok.
<Papierkorb> arup_r: regarding UTF-8, that's a tricky one. MS Excel for example still doesn't use UTF-8 by default. Users have to select it manually, and often forget to do so
rake_db_migrate has joined #ruby
<arup_r> But, I mentioned it explicitly. I hope the who ever will read the CSV from their side will be having the same instructions,.. I will just create CSV and upload them to FTP server
<arup_r> I hope whoever**
<Papierkorb> arup_r: Either insist on UTF-8 for now, or use some kind of auto detection (Not many encodings to try), or just have a checkbox the user can click on when uploading saying "MS-Excel exported file" or similar
<arup_r> Papierkorb: how to use auto detection?
kadoppe has quit [Ping timeout: 244 seconds]
<Papierkorb> arup_r: Who is the user? Someone technical? Some MS excel guy from sales or some secretary?
<arup_r> yes sales team
<Papierkorb> arup_r: I've never done encoding auto detection in Ruby yet, sorry.
rubie has joined #ruby
<arup_r> ok, np
Rodya_ has joined #ruby
jordanandree has joined #ruby
<Papierkorb> I think the easiest "fix" would be having a checkbox the user clicks when it's UTF-8. Else, expect the CSV to contain the windows-12xx encoding.
RegulationD has joined #ruby
<Papierkorb> I think that's what we did with something similar for the start
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rake_db_migrate has quit [Ping timeout: 240 seconds]
<Papierkorb> arup_r: something else, consider adding a random part to the path if you just put it into public/ without any ACL in front of it. Else, people can just enumerate over it to grab CSV files, worse, if two requests come in at the same time, they may override each other
<Papierkorb> arup_r: something like "tagg_#{Time.now.to_i}_#{rand 1..1_000_000}.csv" should be okay-ish. The real fix would be doing a permission check on download ;)
jordanandree has quit [Client Quit]
jordanandree has joined #ruby
<arup_r> Papierkorb: 1 min.
rkazak has joined #ruby
thin has quit [Quit: bye]
RegulationD has quit [Ping timeout: 250 seconds]
kadoppe has joined #ruby
sepp2k has joined #ruby
<arup_r> Idea is I will pull data from DB, then store them into a public folder. And then FTP program will upload the file to FTP server, and delete from rails. Here is the code till now. I am working on the exception handling part. https://gist.github.com/aruprakshit/8aa691ab5146447aebaf61015937a73a . But your file name genration Idea i liked. I am going to do it like that.
kareeoleez has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has quit [Client Quit]
<Papierkorb> arup_r: Then do NOT use the public/ folder if you don't want to have it accessible through HTTP
<arup_r> oh, yes if exception occurs, my slack program will notify them.
<arup_r> Ok then where to put these?
djbkd has joined #ruby
tk__ has quit [Quit: ばいばい]
<Papierkorb> Anywhere you like. Create a new directory for it if there's nothing matching. Maybe a sub-directory in tmp/
stannard has joined #ruby
madb055 has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
<arup_r> ok
<arup_r> yeah
sandelius has joined #ruby
<arup_r> then I don' need to think about permission thing. U are right
<arup_r> let me do 2 fixes.. as u said.
baweaver has joined #ruby
kadoppe has quit [Ping timeout: 268 seconds]
<Papierkorb> arup_r: Line 4, make sure you want to inherit from StandardError and not from RuntimeError. Consider naming the class just "Error", so people can rescue from it by saying "rescue NewOrdersUploader::Error" and not "rescue NewOrdersUploader::NewOrdersUploaderError"
<Papierkorb> the latter is basically java
kareeoleez has quit [Ping timeout: 276 seconds]
<arup_r> Can also review the exception handling part. I have no idea what exceptions can come there, so I am relying on StandardError
<Papierkorb> arup_r: don't use #puts, use a logger instead.
<arup_r> and catching its parent in the rake file
<arup_r> so I think that is ok
<arup_r> yeah. changing them to logger.info
<arup_r> I used them in development to debug
<arup_r> I had a bath with errors while writing them :p
jordanandree has quit [Quit: Leaving.]
Rodya_ has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 250 seconds]
<arup_r> Papierkorb: Ok fixed those 2 .. I am also thinking to delete the files from tmp/ dir using ensure block. Am I thinking correct?
<arup_r> this is the post I read to make the decision of handling errors https://robots.thoughtbot.com/rescue-standarderror-not-exception .. They wrote exactly what I was thinking.
<Papierkorb> arup_r: You're correct, yes.
dionysus69 has quit [Ping timeout: 276 seconds]
<arup_r> ok. cool
<Papierkorb> arup_r: well, rescuing from "Exception" is like catching Throwable in Java. StandardError is fine if that's what you wanted.
<arup_r> yes.. that blog is true
banister has joined #ruby
stannard has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
Rodya_ has joined #ruby
snoobydoo has joined #ruby
magikid has joined #ruby
kadoppe has joined #ruby
snoobydo1 has quit [Ping timeout: 244 seconds]
jgt4 has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
karmatr0n has joined #ruby
stannard has joined #ruby
mnrmnaugh is now known as catpoop
smathy is now known as smathy_afk
kadoppe has quit [Ping timeout: 244 seconds]
superfox_il_volp has joined #ruby
karmatr0n has quit [Ping timeout: 268 seconds]
roelof has joined #ruby
<roelof> why does this not capatilize the input s : def titleize(s) s.split.each { |value| value.capitalize } end
<apeiros> roelof: it does. you just throw away the result.
<apeiros> `obj.each` always returns `obj`
dvinciguerra_ has quit [Ping timeout: 250 seconds]
<apeiros> `value.capitalize` returns a new capitalized string, leaves `value` untouched
<roelof> oke, so I need to do capatilize! ?
sepp2k has quit [Read error: Connection reset by peer]
<apeiros> think about it, then tell me whether you have to and why it will/won't work
<roelof> it works ! is taken care that not the result is a copy of the original
rehat has joined #ruby
<apeiros> I can't parse that sentence
rubie has quit [Remote host closed the connection]
<roelof> if you not use a ! ruby is making a copied string as a result, ! is take care that not a copied one but the original is changed
<roelof> sorry that I cannot say it better, English is not my mother language
magikid has quit [Quit: Leaving.]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<apeiros> ok. in that case, yes.
<apeiros> using `s.split.map { |value| value.capitalize }` (or short: `s.split.map(&:capitalize)`) would be more idiomatic
rubie has joined #ruby
<roelof> oke, I have not learned the &: part
<apeiros> since you said english wasn't your native language - it's just "ok", not "oke".
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> (short for okay)
<roelof> ok, in Dutch it is "oke"
Kerber0s has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
duckpuppy has joined #ruby
nerium has quit [Quit: nerium]
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nerium has joined #ruby
DoubleMalt has joined #ruby
bmf has joined #ruby
tristanp has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
kareeoleez has quit [Ping timeout: 276 seconds]
nerium has quit [Client Quit]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jordanandree has joined #ruby
sandelius has joined #ruby
sandelius has quit [Client Quit]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
merida has joined #ruby
moei has joined #ruby
moei has quit [Client Quit]
moei has joined #ruby
Rodya_ has joined #ruby
alxgsv has joined #ruby
bmf has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctrlrsf has joined #ruby
chipotle has quit [Quit: cheerio]
twistedpixels has quit [Ping timeout: 246 seconds]
<shevy> apeiros will teach you some english!
bkxd has joined #ruby
Mia has joined #ruby
flopsec has joined #ruby
nanoz has quit [Write error: Connection reset by peer]
twistedpixels has joined #ruby
merida has quit [Remote host closed the connection]
kareeoleez has joined #ruby
merida has joined #ruby
<roelof> shevy: oke, when is lesson 1
Axy has quit [Ping timeout: 252 seconds]
<pwnd_nsfw`> I thought this was AMERICA
banister has joined #ruby
<apeiros> roelof: lesson one just happened and you failed the test :<
<roelof> :(
vale_tudo has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
<roelof> may I take a her-exam
kareeoleez has quit [Ping timeout: 252 seconds]
bmf has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
<roelof> another question: what is wrong here : s.split.each_with_index { |value, number| if number == 0 || little_words.include? value then value else value.capitalize! end }.join(" ") end
<roelof> Error message : syntax error, unexpected keyword_end, expecting '}'
A5101 has joined #ruby
davedev24 has joined #ruby
rubie has quit [Remote host closed the connection]
Macaveli has joined #ruby
<apeiros> what do you think "keyword_end" could mean in your code?
codecop has quit [Remote host closed the connection]
<apeiros> *refer to
<roelof> it schould refer to the end of the if then block
<apeiros> correct. so since it'd be correct if ruby associated it with the if/then/else part, we can infer ruby does not actually associate it with that
<roelof> it seems that way
<apeiros> so you can reduce your test expression to `if number == 0 || little_words.include? value then value else value.capitalize! end`
<apeiros> now where could ruby be thrown off in there?
Xiti has joined #ruby
<roelof> maybe because it's compare the 0 with the little words function ?
<apeiros> that's semantics, not syntax.
<roelof> ??
rubie has joined #ruby
<apeiros> try replacing more complex parts of your expression with simpler ones. see when it stops to complain.
rehat has quit [Remote host closed the connection]
nodejunkie has quit [Ping timeout: 252 seconds]
<shevy> roelof are you properly counting your end's ;)
<roelof> I did some try and error and if I do (number == 0) || (little_words.include? value) it stops complaining
dionysus69 has joined #ruby
<roelof> shevy: I think so , I expect to use one end for the if then block
kareeoleez has joined #ruby
<apeiros> roelof: good. personally I'd use the parens elsewhere to fix the expression.
<roelof> apeiros: so I assume the testing for the or is somewhere going wrong
<roelof> apeiros: may I know where and why ?
<apeiros> try whether you can get it to work with less parens
<apeiros> …
<apeiros> should take 2 tries and then you know
LaT0rtue has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
merida has quit [Remote host closed the connection]
LaT0rtue has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
merida has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
Xiti has quit [Quit: Xiti]
<roelof> oke, it works also with if number != 0 && (little_words.include? value)
tmtwd_ has joined #ruby
chipotle has joined #ruby
karmatr0n has joined #ruby
<apeiros> dude
<apeiros> that's a different expression
<roelof> sorry, I changed it because otherwise some test were failing
<shevy> lol
<shevy> test-driven development!
<roelof> yep, very much lol
<Zarthus> just because the tests are passing doesn't mean your code is working though.
<roelof> Zarthus: what is then the purpose of tests
<roelof> time for dinner, BRB in I think 30 minutes
<apeiros> s/working/correct/
arup_r has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 240 seconds]
skade has joined #ruby
rubie has quit [Remote host closed the connection]
firstdayonthejob has quit [Quit: WeeChat 1.4]
bry4n_ has joined #ruby
shazaum_ has joined #ruby
kareeoleez has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jordanandree has quit [Quit: Leaving.]
rehat has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
slackbotgz has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
valkyr1e has joined #ruby
xcesariox has joined #ruby
Gasher has joined #ruby
snoobydoo has quit [Ping timeout: 248 seconds]
BTRE has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
Gasher^ has joined #ruby
raeoks has joined #ruby
mistermocha has joined #ruby
djbkd2 has joined #ruby
Gasher has quit [Ping timeout: 268 seconds]
cpup has quit [Ping timeout: 244 seconds]
bry4n_ has quit [Quit: WeeChat 1.4]
cpup has joined #ruby
rubie has joined #ruby
dhinojosa has joined #ruby
baweaver has joined #ruby
kareeoleez has joined #ruby
mistermocha has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
Zai00 has quit [Quit: Zai00]
davedev2_ has joined #ruby
BTRE has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 268 seconds]
kareeoleez has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Client Quit]
sandelius has joined #ruby
Xeago has joined #ruby
chouhoulis has joined #ruby
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
davedev24 has joined #ruby
yohle has joined #ruby
tmtwd_ has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
shazaum_ has quit [Quit: Leaving]
mc_fail has quit [Ping timeout: 260 seconds]
siaw has joined #ruby
davedev2_ has quit [Ping timeout: 268 seconds]
PedramT has joined #ruby
stannard has quit [Remote host closed the connection]
yohle has quit [Quit: Textual IRC Client: www.textualapp.com]
PedramT has quit [Ping timeout: 248 seconds]
rubie has quit [Remote host closed the connection]
baweaver has joined #ruby
smathy has joined #ruby
al2o3-cr has joined #ruby
SeanM_ has joined #ruby
solars has joined #ruby
Denart_ has joined #ruby
kareeoleez has joined #ruby
Oejet has joined #ruby
symm- has joined #ruby
chipotle has quit [Quit: cheerio]
jgt4 has quit [Ping timeout: 248 seconds]
slackbotgz has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 244 seconds]
<roelof> im back, can we go back to what is the purpose of testing if you can be sure that the code is working
b|ackwolf has joined #ruby
<b|ackwolf> is there any core library for testing in Ruby 2.2.4?
djbkd2 has quit [Remote host closed the connection]
djbkd2 has joined #ruby
kareeoleez has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
djbkd2 has quit [Client Quit]
troulouliou_div2 has joined #ruby
krobzaur_ has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
akkmaxon has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
<shevy> in the old days!
spider-mario has joined #ruby
<b|ackwolf> shevy, is there a class method for assert_equal in Minitest?
<b|ackwolf> shevy, I mean, without inheriting from it.
<shevy> no clue sorry
karmatr0n has quit [Ping timeout: 260 seconds]
badleaf has quit [Quit: Leaving]
<b|ackwolf> is anyone here knows how is it possible to use assert_equal as class method without inheriting from it?
<b|ackwolf> for example; Test.assert_equal(method, return, message)
<apeiros> b|ackwolf: why'd you use it as a class method?
rubie has joined #ruby
magikid has joined #ruby
<b|ackwolf> apeiros, I just want to test one function so there's no class.
fschuindt has joined #ruby
<apeiros> you don't call assert_equal on the method you test
<A124> queues in ruby are atomic, rigth?
<apeiros> A124: they're thread-safe
<A124> Thanks.
spider-mario has quit [Read error: Connection reset by peer]
<A124> That is what I mean, yeah.
<apeiros> b|ackwolf: and with test/unit and minitest, you'll always wrap your tests in a TestCase class.
spider-mario has joined #ruby
shazaum_ has joined #ruby
kareeoleez has joined #ruby
valkyr1e has quit [Quit: Bye.]
Cohedrin has joined #ruby
gusrub has joined #ruby
<fschuindt> Any tips on screen monitoring? Detect changes of a determined pixel or a group of pixels in the user's screen. Kind lost in this one.
blackmesa has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
valkyr1e has joined #ruby
<apeiros> fschuindt: first step would be to be able to read out the pixels of your screen. ruby itself does not have/provide access to that. also that's OS dependent. you'll need a native extension.
spider-mario_ has joined #ruby
spider-mario has quit [Ping timeout: 246 seconds]
duckpuppy has joined #ruby
<fschuindt> apeiros: I'll try to do so by taking a memory screenshot, then proccess the image.
lightheaded has joined #ruby
Dimik has joined #ruby
bb010g has joined #ruby
<apeiros> well, then all you need is a library like rmagick, which allows you to read individual pixels
<apeiros> not sure where you're lost then
djbkd2 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
spider-mario_ has quit [Remote host closed the connection]
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd2 has quit [Client Quit]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gizmore has joined #ruby
djbkd2 has joined #ruby
djbkd2 has quit [Client Quit]
duckpuppy has quit [Ping timeout: 276 seconds]
devgiant has joined #ruby
<fschuindt> I just realized this possibility now
<fschuindt> apeiros: thank you bro
<A124> fschuindt Use native dll for that if its windows else it will be very slow.
<A124> Unless you are checing non frequently and/or just few pixels.
<fschuindt> A124: ty
NinjaPanzer is now known as Invisible_NinjaP
Invisible_NinjaP has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
<A124> rmagick pixels are slow as hell, but when you are checking just few and not workin on whole image its ok.
DrCode has quit [Ping timeout: 246 seconds]
<A124> For windows there is stuff that does all that. Either searches pixel color, or makes you checksum of some area, or even search picture in area.
<A124> Not sure where, did not work on it. Most stuff that monitors changes means you are monitoring some crappy software, so better solution is to ahve better software.
<A124> You should be more specific, also see XY Problem.
devgiant has quit [Client Quit]
roelof has quit [Quit: Page closed]
wolffles has joined #ruby
SeanM_ has quit [Ping timeout: 260 seconds]
merida has quit [Ping timeout: 260 seconds]
merida has joined #ruby
blackmesa has joined #ruby
spider-mario has joined #ruby
SeanM_ has joined #ruby
Begi has quit [Remote host closed the connection]
Begi has joined #ruby
bkxd has joined #ruby
mikecmpbll has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
kadoppe has joined #ruby
merida has quit [Remote host closed the connection]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
krz has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 252 seconds]
BTRE has quit [Ping timeout: 276 seconds]
Begi has quit [Remote host closed the connection]
postmodern has joined #ruby
al2o3-cr has quit [Ping timeout: 276 seconds]
snoobydoo has joined #ruby
stannard has joined #ruby
<ironcamel> if i have a function that takes 3 args, and i have an array with 3 elements, what is a nice way to pass the 3 elements of the array as arguments to the function?
kadoppe has quit [Ping timeout: 260 seconds]
<ironcamel> something better than foo(x[0], x[1], x[3])
nicoulaj has joined #ruby
<apeiros> ironcamel: s/function/method/ - and you want foo(*x)
<apeiros> it's called "splat operator"
<ironcamel> ok thanks
colegatron has joined #ruby
al2o3-cr has joined #ruby
Axy has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
exilarch has joined #ruby
stannard has quit [Ping timeout: 268 seconds]
blaxter has quit [Quit: foo]
Mia has quit [Ping timeout: 244 seconds]
andywojo has quit [Quit: leaving]
Axy has quit [Ping timeout: 244 seconds]
b|ackwolf has quit [Ping timeout: 240 seconds]
b|ackwolf has joined #ruby
exilarch has quit [Quit: Leaving]
BTRE has joined #ruby
<shevy> splat the splat
futilegames has joined #ruby
yqt has joined #ruby
Begi has joined #ruby
cpup has quit [Ping timeout: 248 seconds]
nicoulaj has quit [Quit: nicoulaj]
gizmore has quit [Ping timeout: 240 seconds]
cpup has joined #ruby
rubie has quit [Remote host closed the connection]
<wolffles> can someone explain to me why the parameter needs to be n = 1 … if you call repeter(3) isnt n = 3? so it doesnt really matter what you set the default value to right? https://eval.in/550324
rubie has joined #ruby
Madplatypus has joined #ruby
<tobiasvl> wolffles: well if you call repeater() then n will default to 1
kies has joined #ruby
<tobiasvl> that's all it means
<apeiros> wolffles: change `def repeater(n = 1)` to `def repeater(n) ` and see which test fails
stannard has joined #ruby
<wolffles> apeiros: repeater(n) was my first trial test fails
<apeiros> wolffles: and, which one was it?
<wolffles> executes the default block - failed
<apeiros> and how is `repeater` invoked there?
<wolffles> the spec just calls it doesnt it? i dont get the question
<apeiros> well, all methods are "just called"
<apeiros> what does the spec pass to `repeater`?
<wolffles> passes just a reg integer
<wolffles> it "executes the default block 3 times" do
<wolffles> n = 0
<wolffles> repeater(3) { n += 1 }
<apeiros> oh does it? which integer does it pass?
<wolffles> expect(n).to eq(3)
<wolffles> end
<apeiros> that's the wrong spec
<apeiros> that's the "executes the default block 3 times" spec, your suite didn't fail at that one.
<apeiros> and you absolutely don't have to paste the spec in here. I can see your eval.in. you can reference the lines there.
<wolffles> sorry
<apeiros> so which lines is the spec which fails?
nodejunkie has joined #ruby
stannard has quit [Remote host closed the connection]
tildes has joined #ruby
<wolffles> i guess what im confused about is what it means by default block? is it the “block_was_executed” block? or the {n += 1}
<apeiros> (btw., you can replace all "default block" with just "block" - there's nothing "default" about them in those specs)
<apeiros> wolffles: the spec tells you *precisely* which spec fails.
<apeiros> it said "executes the default block" failed. it's not that difficult to find the spec which has "executes the default block" as its description.
<tobiasvl> wolffles: well let's backtrack. you're asking why the repeater method is defined with a parameter default, when you call it with an argument anyway. but do you call it with an argument in all specs?
skade has joined #ruby
<apeiros> tobiasvl: please don't. you're making it unnecessarily complex. learning to read the spec results is important.
skade has quit [Client Quit]
<wolffles> tobiasvl: no.
<wolffles> i understand the default block failed
djbkd has quit [Remote host closed the connection]
<apeiros> wolffles: so which lines?
<wolffles> ive been thinkign this was the default block { block_was_executed = true }
<wolffles> im starting to think its {n +=1}
nando293921 has joined #ruby
imperator has quit [Quit: Leaving]
<apeiros> -.-
<apeiros> that's not what I was asking.
Chagel has joined #ruby
kadoppe has joined #ruby
<wolffles> line 10 failed
tildes has quit [Ping timeout: 246 seconds]
<wolffles> in ‘repeater'
stannard has joined #ruby
moeabdol3 has joined #ruby
rake_db_migrate has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<apeiros> wolffles: the spec in line 10-16 is named "executes the default block 3 times". is that equal to the name of which failed, which is "executes the default block"?
moeabdol2 has quit [Ping timeout: 260 seconds]
<apeiros> the name is the argument given to `it`. `it "executes the default block" do`
raeoks has joined #ruby
raeoks has quit [Client Quit]
raeoks has joined #ruby
<wolffles> okay im looking at my command line and its using a diff spec cuz i just copied and pasted to eval
<wolffles> its the first test that fails
Chagel has quit [Ping timeout: 250 seconds]
<wolffles> the one that is named "executes the default block"
<wolffles> is that right?
<apeiros> wolffles: really, for future reference - if I ask for lines, answer with lines. you're making it harder if your answer deviates from the question.
<apeiros> but yes, that's right
raeoks has quit [Client Quit]
A124 has quit [Ping timeout: 240 seconds]
<apeiros> so back to the original question - how's repeater invoked in the failing spec?
leftpad has joined #ruby
_stu_ has quit [Quit: _stu_]
<wolffles> without a parameter and the default value is 0 then right?
skade has joined #ruby
rubie has quit [Remote host closed the connection]
<wolffles> which means the block was never invoked?
<apeiros> no, there is no default value. you removed it.
A124 has joined #ruby
<apeiros> so the test fails because without a default argument, you *must* pass an argument. but none is passed.
* apeiros got called away
<apeiros> but I hope you learned to read the spec result and follow it back in order to reason about what happened/should happen
Mia has quit [Ping timeout: 240 seconds]
<Denart_> Hello guys
krobzaur_ has joined #ruby
elgatorapido has joined #ruby
chipotle has joined #ruby
kadoppe has quit [Ping timeout: 248 seconds]
futilegames has quit [Quit: futilegames]
x77686d has joined #ruby
lightheaded has quit [Remote host closed the connection]
greenride has joined #ruby
fschuindt has quit [Quit: WeeChat 1.3]
_stu_ has joined #ruby
banister has joined #ruby
<wolffles> apeiros: thanks for the help, i understand arguments much more now and how to read spec
rake_db_migrate has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
ljames has quit []
ta_ has joined #ruby
rake_db_migrate has joined #ruby
baweaver has quit [Remote host closed the connection]
davedev24 has quit [Remote host closed the connection]
jero__ has joined #ruby
PedramT has joined #ruby
jero_ has quit [Ping timeout: 244 seconds]
Es0teric has joined #ruby
jt__ has joined #ruby
gizmore has joined #ruby
stannard has quit [Remote host closed the connection]
snoobydoo has quit [Ping timeout: 248 seconds]
Oejet has left #ruby [#ruby]
snoobydoo has joined #ruby
moeabdol4 has joined #ruby
SeanM_ has quit [Ping timeout: 250 seconds]
moeabdol3 has quit [Ping timeout: 276 seconds]
SeanM_ has joined #ruby
_stu_ has quit [Quit: _stu_]
krobzaur_ has quit [Ping timeout: 248 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jero__ has quit [Ping timeout: 244 seconds]
jero__ has joined #ruby
rubie has joined #ruby
chouhoulis has quit [Remote host closed the connection]
fedexo has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
lkba has joined #ruby
fedexo has joined #ruby
sp4rrow has joined #ruby
diegoaguilar has quit [Ping timeout: 264 seconds]
madb055 has quit [Ping timeout: 244 seconds]
<Denart_> is anybody here?
Begi has quit [Read error: Connection reset by peer]
sp4rrow_ has joined #ruby
nando293921 has quit [Quit: Lost terminal]
<mozzarella> 981 users
sp4rrow has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
nando293921 has joined #ruby
ekinmur has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
codecop has joined #ruby
<Denart_> :D
tildes has joined #ruby
blackmesa has joined #ruby
<Denart_> Have somebody tried to stream their code on livecong.tv?
duckpuppy has joined #ruby
<Denart_> Do you like it? Or twitch is better?
tildes has quit [Ping timeout: 260 seconds]
diegoaguilar has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
terlar has quit [Ping timeout: 252 seconds]
elgatorapido has quit [Quit: Textual IRC Client: www.textualapp.com]
gizless has joined #ruby
GnuYawk has joined #ruby
<Rasi> hmm, total beginner here, but what is wrong here: puts("%50s %20s %50s" % json["name"], json["project"], json["tags"].join(", "))
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
<Rasi> it says too few argument
akkmaxon has quit [Ping timeout: 250 seconds]
<Rasi> but the printf requires 3 and i give it 3
<Rasi> i dont get it
jud has joined #ruby
armyriad has joined #ruby
Devalo has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 264 seconds]
gizmore has quit [Ping timeout: 240 seconds]
<mozzarella> what are you trying to do?
gizmore has joined #ruby
<Ox0dea> Rasi: You have to pass an Array.
<Ox0dea> >> '%s %d' % ['foo', 123]
<ruby[bot]> Ox0dea: # => "foo 123" (https://eval.in/550336)
<Rasi> aaaah
<Rasi> thanks, that did it
bb010g has quit [Quit: Connection closed for inactivity]
alexherbo2 has quit [Quit: WeeChat 1.4]
moeabdol4 has quit [Ping timeout: 264 seconds]
SeanM_ has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
PedramT_ has joined #ruby
gizless has quit [Ping timeout: 276 seconds]
PedramT has quit [Ping timeout: 244 seconds]
sergey_makagon has joined #ruby
lightheaded has joined #ruby
Kiwi_sherbet has joined #ruby
SeanM_ has joined #ruby
krobzaur_ has joined #ruby
Kiwi_sherbet has quit [Client Quit]
Es0teric has quit [Quit: Computer has gone to sleep.]
bkxd has joined #ruby
lightheaded has quit [Ping timeout: 248 seconds]
sauvin has quit [Remote host closed the connection]
sp4rrow_ has quit [Ping timeout: 248 seconds]
NinjaPanzer has joined #ruby
jgt4 has joined #ruby
davedev24 has joined #ruby
snoobydoo has quit [Ping timeout: 260 seconds]
Miron has joined #ruby
GnuYawk has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 260 seconds]
sergey_makagon has quit []
bronson has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
rake_db_migrate has quit [Remote host closed the connection]
Inside has joined #ruby
Inside has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
davedev2_ has joined #ruby
darkxploit has joined #ruby
Azure has quit [Ping timeout: 264 seconds]
rake_db_migrate has joined #ruby
stannard has joined #ruby
davedev24 has quit [Ping timeout: 248 seconds]
OTORelic has joined #ruby
sp4rrow has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 250 seconds]
metalic has joined #ruby
stannard has quit [Remote host closed the connection]
madgen has joined #ruby
stannard has joined #ruby
spider-mario has quit [Ping timeout: 246 seconds]
spider-mario has joined #ruby
<shevy> ruby ruby ruby
darkxploit has joined #ruby
OTORelic has quit [Quit: WeeChat 1.4]
NinjaPanzer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
Mitaka89 has quit [Quit: Leaving]
leftpad has quit [Ping timeout: 244 seconds]
skade has quit [Client Quit]
PedramT_ has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
gusrub has quit [Quit: Leaving]
Xeago has quit [Ping timeout: 260 seconds]
nerium has joined #ruby
shazaum_ has quit [Quit: Leaving]
terlar has joined #ruby
<zacts> ruby my dear
troulouliou_div2 has joined #ruby
Denart_ has quit [Remote host closed the connection]
troulouliou_div2 has quit [Client Quit]
Denart_ has joined #ruby
terlar has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
lkba has quit [Remote host closed the connection]
dmr8 has quit [Quit: Leaving]
Devalo has joined #ruby
SCHAAP137 has quit [Ping timeout: 276 seconds]
perturbation has joined #ruby
Dimik has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
<superfox_il_volp> yo, is there a way to list all modules inside a ruby file?
<Ox0dea> superfox_il_volp: Could you clarify?
Devalo has quit [Ping timeout: 248 seconds]
<superfox_il_volp> imagine a folder such as /helpers/ containing a bunch of ruby files, I wish to automatically inherit all modules defined in the files contained in the folder
valetudo has joined #ruby
valetudo has quit [Max SendQ exceeded]
valetudo has joined #ruby
stannard has joined #ruby
lightheaded has joined #ruby
<Ox0dea> superfox_il_volp: Here's a way to be made aware of new modules as they're defined: https://eval.in/550340
coffeecupp has joined #ruby
<Ox0dea> You could just #enable that tracer, require everything in helpers/, then disable it.
<Ox0dea> Better than monkey-patching, I think.
<superfox_il_volp> nice trick, thanks
<Ox0dea> Sure thing.
<adaedra> You could also list all modules, include all files, list all modules again, and see the difference.
<adaedra> But what you're looking to seems a bit fragile to me.
SeanM_ has quit [Ping timeout: 276 seconds]
weemsledeux has joined #ruby
solars has quit [Ping timeout: 260 seconds]
jt__ has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
coffeecupp has quit [Client Quit]
lightheaded has quit [Ping timeout: 248 seconds]
<Ox0dea> There's almost certainly a better way to go about $thing, but we sell rope here. :)
cj has joined #ruby
<cj> hey folks
<cj> when calling a function which expects a list (array?), and I pass it two lists (arrays?), will the receiving function get two arguments or one?
<cj> and if two, how do I join those arrays I'm passing so that the receiving function just gets one?
<cj> ooh, looks like the + binary operator works for that
<shevy> cj you can join arrays by using + as in [1,2,3] + [4,5,6] # => [1, 2, 3, 4, 5, 6]
wolffles has quit [Quit: wolffles]
<shevy> for a variable amount of args, you can use: def foo(*i) the splat operator
<shevy> if you need to simplify the resulting array, you can call .flatten! on it
jaroslav has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
futilegames has joined #ruby
davee_ has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
marr has joined #ruby
cdg_ has quit [Remote host closed the connection]
zeroDivisible has joined #ruby
<superfox_il_volp> fair enough I've added as requirement that the module should inherits from "Helper" as well, though is_a?(Helper) is not working in this case... ? https://eval.in/550345
gregf has joined #ruby
bkxd has joined #ruby
BTRE has quit [Quit: Leaving]
rake_db_migrate has quit [Remote host closed the connection]
<superfox_il_volp> k but tp.self.ancestors.include?(Helper) does work mmmh I guess I don't understand properly the inheritance mechanism
jonathanwallace_ has quit [Ping timeout: 276 seconds]
<Ox0dea> superfox_il_volp: https://eval.in/550346
<adaedra> >> module A; end; class B; include A; end; class C; extend A; end; [A, A.new, B, B.new].map { |c| c.is_a? Helper }
<ruby[bot]> adaedra: # => undefined method `new' for A:Module (NoMethodError) ...check link for more (https://eval.in/550347)
<adaedra> er.
<adaedra> >> module A; end; class B; include A; end; class C; extend A; end; [B, B.new, C, C.new].map { |c| c.is_a? Helper }
<ruby[bot]> adaedra: # => uninitialized constant Helper (NameError) ...check link for more (https://eval.in/550348)
<adaedra> err.
<Ox0dea> adaedra pls
<adaedra> it's late.
<adaedra> >> module A; end; class B; include A; end; class C; extend A; end; [B, B.new, C, C.new].map { |c| c.is_a? A }
<ruby[bot]> adaedra: # => [false, true, true, false] (https://eval.in/550349)
<Ox0dea> superfox_il_volp: In a nutshell, you want #< not #is_a?.
BTRE has joined #ruby
<b|ackwolf> is there any similar functionality like this https://github.com/elm-city-craftworks/wumpus/blob/master/test/helper.rb#L7 in rspec?
bkxd has quit [Ping timeout: 244 seconds]
jgt4 has quit [Ping timeout: 246 seconds]
<adaedra> Ox0dea: if they're using a module to tag, wouldn't be simpler to just grab all modules including them without having to put a trace point?
<Ox0dea> adaedra: Seems wasteful? It's unclear what exactly they're going for.
<adaedra> mh, this sentence looked righter in my mind.
<Ox0dea> But yeah, now that they're "tagging" with a Module, it should just have an #included hook.
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spider-mario_ has joined #ruby
<Ox0dea> superfox_il_volp: Like zees: https://eval.in/550350
spider-mario has quit [Ping timeout: 240 seconds]
Jackneill has quit [Ping timeout: 240 seconds]
futilegames has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
spider-mario_ is now known as spider-mario
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
blt has joined #ruby
postmodern has quit [Quit: Leaving]
matp has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
<superfox_il_volp> ah right =)
Jardayn has joined #ruby
sp4rrow_ has joined #ruby
nofxx has joined #ruby
sp4rrow has quit [Read error: Connection reset by peer]
<nofxx> I'm confusing or there's a trick to do something with the first item of an interaction?
<nofxx> I'm confusing with the alternate thing I think
stannard has quit [Remote host closed the connection]
Devalo has joined #ruby
matp has joined #ruby
dirpirin has joined #ruby
ekinmur has joined #ruby
SCHAAP137 has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
SeanM_ has joined #ruby
codecop has quit [Remote host closed the connection]
ocbtec has quit [Quit: leaving]
<shevy> the first item of an interaction?
statelesscode has quit [Quit: statelesscode]
<superfox_il_volp> k thanks for the help
last_staff has quit [Quit: takes off]
blaxter has joined #ruby
dvinciguerra_ has joined #ruby
banister has quit [Remote host closed the connection]
SeanM_ has quit [Read error: Connection reset by peer]
Chagel has joined #ruby
banister has joined #ruby
diegoviola has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
duckpuppy has joined #ruby
Chagel has quit [Ping timeout: 246 seconds]
rake_db_migrate has joined #ruby
barajasfab has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
SCHAAP137 has joined #ruby
nando293921 has quit [Quit: Lost terminal]
Madplatypus has quit [Quit: Connection closed for inactivity]
zeroDivisible has quit [Quit: WeeChat 1.4]
nando293921 has joined #ruby
zeroDivisible has joined #ruby
pawnbox has quit [Remote host closed the connection]
SeanM_ has joined #ruby
pawnbox has joined #ruby
<Denart_> RoR API Experiment watch live! https://www.livecoding.tv/edge_tor/
yfeldblum has quit [Ping timeout: 248 seconds]
blt has quit [Ping timeout: 246 seconds]
metalic has quit [Quit: Leaving]
lightheaded has joined #ruby
GitGud has quit [Quit: bye habibis]
yfeldblum has joined #ruby
jhack has joined #ruby
siaw_ has joined #ruby
<apeiros> Denart_: and what do we see you building there?
dirpirin has quit [Quit: Bye]
siaw has quit [Ping timeout: 260 seconds]
siaw_ is now known as siaw
dirpirin has joined #ruby
zenlot6 has quit [Ping timeout: 252 seconds]
lightheaded has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Remote host closed the connection]
zenlot6 has joined #ruby
stannard has joined #ruby
dirpirin has quit [Client Quit]
kareeoleez has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
karmatr0n has joined #ruby
icy` has joined #ruby
icy` has quit [Read error: Connection reset by peer]
rake_db_migrate has left #ruby [#ruby]
rkazak has joined #ruby
edwinvdgraaf has quit [Ping timeout: 276 seconds]
blt has joined #ruby
icy` has joined #ruby
icy` has joined #ruby
icy` has left #ruby [#ruby]
Denart_ has quit [Remote host closed the connection]
Denart_ has joined #ruby
Gasher^ has quit [Quit: Leaving]
Devalo has quit [Remote host closed the connection]
solocshaw has joined #ruby
jero__ has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 268 seconds]
firstdayonthejob has quit [Ping timeout: 248 seconds]
Es0teric has joined #ruby
Denart_ has quit [Quit: http://quassel-irc.org - ????????????? ??????. ?????.]
Denart_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
nettoweb has joined #ruby
Jardayn_two has joined #ruby
Jardayn_two has quit [Client Quit]
Jardayn_two has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
<chrisseaton> Does anyone know of a gem that lets you mmap something into a Ruby string? So you modify the string and it's changing the mapped file? Everything I've found so far models a mmapped file as an IO.
cpup has quit [Ping timeout: 244 seconds]
Jardayn has quit [Ping timeout: 268 seconds]
tristanp has joined #ruby
diegoaguilar has joined #ruby
<nofxx> shevy, yup... first item of interaction. sorry, food arrived
spider-mario has quit [Remote host closed the connection]
<nofxx> chrisseaton, class FileString, when changed, writes (that doesn't exists, I'm giving you a name for your class) heh
<chrisseaton> Yes, I suppose I could duck-type it the same as String - I was thinking before that it should actually be a String, not a subclass, but now I can't think why that would matter
GodFather has joined #ruby
cpup has joined #ruby
<chrisseaton> I guess as long as it passes is_a?(String) should be fine for core library methods to accept it
SeanM_ has quit [Ping timeout: 260 seconds]
superfox_il_volp has quit []
Zai00 has quit [Quit: Zai00]
TheGreatGudsby has joined #ruby
tristanp has quit [Remote host closed the connection]
duckpuppy has joined #ruby
bb010g has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
Xiti has joined #ruby
fschuindt has joined #ruby
<fschuindt> How can I retrieve the number of colors in a image using ruby-vips8? Any idea?
Suntzu has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
TheGreatGudsby is now known as GitGud
RegulationD has quit [Remote host closed the connection]
skweek has joined #ruby
OTORelic has joined #ruby
OTORelic has quit [Client Quit]
OTORelic has joined #ruby
nando293921 has quit [Read error: Connection reset by peer]
nando293921 has joined #ruby
dhinojosa has quit [Ping timeout: 252 seconds]
_stu_ has joined #ruby
davedev2_ has quit [Remote host closed the connection]
lightheaded has joined #ruby
davedev24 has joined #ruby
nando293921 has quit [Read error: Connection reset by peer]
nando294021 has joined #ruby
davedev2_ has joined #ruby
davedev__ has joined #ruby
karmatr0n has quit [Read error: No route to host]
kevin has joined #ruby
davedev__ has quit [Read error: Connection reset by peer]
nando294021 has quit [Client Quit]
kevin is now known as Guest25486
nando293921 has joined #ruby
davedev__ has joined #ruby
karmatr0n has joined #ruby
<Guest25486> hello
Guest25486 has quit [Client Quit]
rkazak has quit [Quit: Sleep.....ing....]
davede___ has joined #ruby
davedev24 has quit [Ping timeout: 248 seconds]
lightheaded has quit [Ping timeout: 248 seconds]
davedev2_ has quit [Ping timeout: 248 seconds]
davedev__ has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
Inside has quit [Ping timeout: 244 seconds]
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 244 seconds]
Cohedrin_ has joined #ruby
bkxd has joined #ruby
cippaciong has quit [Ping timeout: 244 seconds]
Cohedrin has quit [Ping timeout: 276 seconds]
<shevy> fschuindt guess that is too specialized for people to know the answer to
Devalo has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Suntzu has joined #ruby
Cohedrin has joined #ruby