<zenspider>
hell... since you're already patching... why not make them no-ops?
<zenspider>
I'm surprised some of those are in there...
<matthewd>
We monkey with core classes more than most, but even we don't like to change behaviour of existing methods when we can avoid it
keyjoo_ has quit [Ping timeout: 246 seconds]
<zenspider>
meh? I doubt you'd break anything in the case of :sym.dup => :sym
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<matthewd>
I guess the [very theoretical] risk would be on something like Method -- not dup-able, but mutable. So if someone thinks they've got a copy and starts changing it, ...
poloych has quit [Remote host closed the connection]
nesoi has quit [Quit: Leaving.]
<zenspider>
... Method is entirely opaque, no?
<matthewd>
Hey, I didn't say it was a *good* example ;)
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
keekcoin is now known as kekcoinn
def_jam has joined #ruby
keekcoin has joined #ruby
<matthewd>
Particularly with upstream moving towards making [almost] everything support dup, it does seem more justifiable for us to backport that behaviour
drcode has joined #ruby
eblip has joined #ruby
<matthewd>
Apparently Method is literally the only thing left in trunk.. and I wonder whether that's deliberate or just an oversight
catphish has joined #ruby
duderonomy has joined #ruby
eightlimbed has joined #ruby
<zenspider>
*finally* got all my projects working with my sexp_processor overhaul... damn
brendan- has quit [Ping timeout: 260 seconds]
DoubleMalt has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
polysics has joined #ruby
chouhoulis has joined #ruby
vincent_ has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 255 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
vincent_ has joined #ruby
haraoka has joined #ruby
ascarter_ has joined #ruby
vincent_ has quit [Remote host closed the connection]
vincent_ has joined #ruby
arescorpio has joined #ruby
marr has quit [Ping timeout: 255 seconds]
polysics has quit [Ping timeout: 255 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub_ has quit [Remote host closed the connection]
gusrub has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
d^sh has quit [Ping timeout: 255 seconds]
ascarter_ has quit [Ping timeout: 255 seconds]
d^sh has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
username_ has joined #ruby
oliv_____ has quit [Ping timeout: 246 seconds]
blackwind_123 has quit [Read error: No route to host]
uZiel has joined #ruby
blackwind_123 has joined #ruby
nertzy has quit [Ping timeout: 268 seconds]
nertzy has joined #ruby
Dimik has quit [Ping timeout: 246 seconds]
speakingcode has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
kekcoinn has quit [Quit: Page closed]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
quobo has quit [Quit: Connection closed for inactivity]
amclain has quit [Quit: Leaving]
ascarter has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
<catphish>
does eventmachine do nasty thing that break ruby's normal thread behaviour?
mim1k has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
arkinor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has quit [Ping timeout: 268 seconds]
speakingcode has quit [Ping timeout: 240 seconds]
gothicsouth has joined #ruby
<zenspider>
catphish: are you trying to use both EM and threads?
mim1k has quit [Ping timeout: 240 seconds]
ol_______ has joined #ruby
<catphish>
well not by choice, but i'm debugging some code that does
tvw has quit [Ping timeout: 255 seconds]
<catphish>
it seems that the other thereads aren't executing during certain EM selects
__Yiota has joined #ruby
<catphish>
i am trying to rewrite it to use pure EM, the alternative of dropping EM is less pleasant
uZiel has joined #ruby
<catphish>
whoever wrote this code was naive to the fact that 2 libraries they used were thread driven and EM driven :(
mikecmpbll has joined #ruby
bsamorim has joined #ruby
PresidentBiscuit has joined #ruby
jane_booty_doe has joined #ruby
<bsamorim>
Hi guys! I've been trying to mess around a bit with ruby's bnf grammar. From the grammar file, it seems to me that the parsing is preceded by a tokenizing stage
<bsamorim>
Does anyone know about this tokenizer?
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bsamorim>
Does it use lex? Where is the file that defines it?
bkxd has joined #ruby
bkxd_ has joined #ruby
djbkd has joined #ruby
<zenspider>
bsamorim: ruby's bnf?
<bsamorim>
zenspider: Yes... actually, not exactly its bnf, but rather the yacc code defined in 'parse.y'
<zenspider>
good... because there is no bnf.
<bsamorim>
zenspider: :D
<zenspider>
parser_yylex is in parse.y
<bsamorim>
do you anything about the lexer tho?
<zenspider>
it's "only" 670 lines long. good luck :P
<zenspider>
(and there's a LOT more to the lexer than just parser_yylex...)
<bsamorim>
zenspider: you know, that's the amazing thing about computers: they save you a lot of trouble, if you know how to use them :)
<zenspider>
you're only saying that because you haven't read the code yet
bkxd has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 248 seconds]
djbkd has quit [Remote host closed the connection]
bsamorim has quit [Remote host closed the connection]
bkxd has joined #ruby
<zenspider>
haha
gizmore|2 has joined #ruby
gusrub has joined #ruby
lycaonkotw has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
bkxd_ has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jane_booty_doe has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 255 seconds]
polysics has joined #ruby
gusrub has quit [Ping timeout: 255 seconds]
ol_______ has quit [Remote host closed the connection]
jcao219 has quit [Ping timeout: 240 seconds]
polysics has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
Rodya_ has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
mjuszczak has joined #ruby
uZiel has joined #ruby
foo_bar_bat_baz has joined #ruby
enterprisey has joined #ruby
keekcoin has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
jameser has joined #ruby
axyjo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grymmjack has quit [Remote host closed the connection]
foo_bar_bat_baz has quit [Quit: Page closed]
gusrub has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
genpaku has quit [Remote host closed the connection]
genpaku has joined #ruby
catphish has quit [Quit: Leaving]
charliesome has joined #ruby
__Yiota has joined #ruby
ascarter has joined #ruby
shakes has joined #ruby
Rodya_ has joined #ruby
mjuszczak has quit []
axyjo has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
ascarter has quit [Ping timeout: 240 seconds]
tentacle has joined #ruby
ascarter has joined #ruby
charliesome has joined #ruby
sleetdrop has joined #ruby
hosttor has quit [Ping timeout: 255 seconds]
roshanavand has quit [Quit: roshanavand]
nesoi has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest24 has joined #ruby
Guest24 has quit [Client Quit]
polysics has joined #ruby
kies has quit [Ping timeout: 240 seconds]
polysics has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HoierM has quit [Ping timeout: 260 seconds]
PresidentBiscuit is now known as ResidentBiscuit_
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
charliesome has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jcao219 has joined #ruby
Rodya_ has joined #ruby
wqzsscc has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
gix- has quit [Ping timeout: 246 seconds]
ascarter has quit [Client Quit]
gusrub has quit [Remote host closed the connection]
uZiel has joined #ruby
gix has joined #ruby
ResidentBiscuit_ has quit []
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
tentacle has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
johnny56 has quit [Ping timeout: 264 seconds]
ascarter has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
knight33 has joined #ruby
ascarter has joined #ruby
igniting has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
benlieb has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
polysics has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
nertzy has joined #ruby
polysics has quit [Ping timeout: 268 seconds]
jcao219 has quit [Ping timeout: 260 seconds]
millerti has quit [Read error: Connection reset by peer]
tentacle has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
ska has quit [Ping timeout: 246 seconds]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
birdyondrugs has quit [Ping timeout: 240 seconds]
A124 has quit [Ping timeout: 255 seconds]
A124 has joined #ruby
renchan has joined #ruby
Rodya_ has quit [Remote host closed the connection]
haraoka has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
ska has joined #ruby
brent__ has joined #ruby
mjuszczak has joined #ruby
arescorpio has quit [Quit: Leaving.]
perniciouscaffei has joined #ruby
oded has quit [Quit: Konversation terminated!]
Rodya_ has quit [Remote host closed the connection]
Kug3lis_off is now known as Kug3lis
tentacle has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
Kug3lis is now known as Kug3lis_off
Kug3lis_off is now known as Kug3lis
Kug3lis is now known as Kug3lis_off
tentacle has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
tentacle has quit [Client Quit]
eightlimbed has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
igniting has joined #ruby
ascarter_ has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
birdyondrugs has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 248 seconds]
jane_booty_doe has joined #ruby
jcao219 has joined #ruby
bkxd_ has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 260 seconds]
mjuszczak has quit []
ascarter_ has quit [Ping timeout: 240 seconds]
lycaonkotw has quit [Quit: WeeChat 1.0.1]
roshanavand has joined #ruby
polysics has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
texasmynsted has quit [Ping timeout: 255 seconds]
polysics has quit [Ping timeout: 255 seconds]
texasmynsted has joined #ruby
keyjoo_ has joined #ruby
igniting has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
DeeJayh_ has joined #ruby
DeeJayh has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
tvw has quit [Client Quit]
uZiel has joined #ruby
dviola has quit [Quit: WeeChat 1.8]
cfec0b8d has quit [Quit: Leaving]
harfangk has joined #ruby
DeeJayh has joined #ruby
ascarter_ has joined #ruby
lpaste has quit [Quit: Quit]
cfec0b8d has joined #ruby
charliesome has joined #ruby
DeeJayh_ has quit [Ping timeout: 246 seconds]
DeeJayh_ has joined #ruby
brent__ has joined #ruby
rohitpaulk has joined #ruby
ur5us has quit [Remote host closed the connection]
DeeJayh has quit [Ping timeout: 240 seconds]
cjhowe7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
DeeJayh_ has quit [Ping timeout: 240 seconds]
aupadhye has joined #ruby
kent\n has quit [Ping timeout: 246 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nertzy has quit [Ping timeout: 246 seconds]
NightMonkey has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
kent\n has joined #ruby
NightMonkey has joined #ruby
NightMonkey has quit [Max SendQ exceeded]
cfec0b8d has joined #ruby
brent__ has quit [Remote host closed the connection]
NightMonkey has joined #ruby
DeeJayh has joined #ruby
blackwind_123 has quit [Quit: Few women admit their age. Few men act theirs.]
DeeJayh_ has joined #ruby
iloveitaly has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
igniting has joined #ruby
DeeJayh has quit [Ping timeout: 258 seconds]
gothicsouth has joined #ruby
ryzokuken has joined #ruby
ryzokuken has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 258 seconds]
ryzokuken has joined #ruby
patarr has joined #ruby
oleo has quit [Quit: irc client terminated!]
<dminuoso>
zenspider: Such truth.. the Ruby lexer is one of the most strange things I have ever read.
ryzokuken has quit [Quit: Leaving]
patarr has quit [Ping timeout: 260 seconds]
polysics has joined #ruby
polysics has quit [Ping timeout: 246 seconds]
jcao219 has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
Mortomes|Work has quit [Ping timeout: 260 seconds]
Kug3lis has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
pandaant has quit [Remote host closed the connection]
nertzy has joined #ruby
LukyCZ has quit [Quit: Connection closed for inactivity]
nowhereman_ has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
nertzy has joined #ruby
howdoi has joined #ruby
<ddffg>
hi , i use capybara/poltergeist , i want to dump http req headers? is it possible&
<ddffg>
?
<ddffg>
hi , i use capybara/poltergeist , i want to dump http req headers, is it possible?
<dminuoso>
ddffg: HTTPS?
<ddffg>
any
<dminuoso>
ddffg: Well if its just plain HTTP I'd just fire up wireshark. ;-)
<ddffg>
without wireshark
<ddffg>
visit 'blablasite.com' and dump headers
<dminuoso>
ddffg: What happens if you put capybara into debug mode?
drcode has joined #ruby
vincent_ has joined #ruby
vincent_ has quit [Remote host closed the connection]
vincent_ has joined #ruby
<ddffg>
what purpose of this question?
devilsadvocate has quit [Quit: Page closed]
rohitpaulk has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
cschneid_ has joined #ruby
ascarter_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 246 seconds]
joonty has quit [Quit: This computer has gone to sleep]
xall has quit [Ping timeout: 240 seconds]
PatrikasZvaigzde has quit [Ping timeout: 255 seconds]
govg has quit [Quit: leaving]
Mortomes|Work has joined #ruby
ascarter_ has quit [Ping timeout: 255 seconds]
jameser has quit [Ping timeout: 255 seconds]
ledestin has joined #ruby
keyjoo_ has joined #ruby
ryzokuken has quit [Ping timeout: 255 seconds]
herbmillerjr has quit [Remote host closed the connection]
nadir has joined #ruby
patarr has joined #ruby
joonty has joined #ruby
futilegames has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
igniting has quit [Ping timeout: 240 seconds]
futilegames has quit [Client Quit]
nanoz has joined #ruby
nanoz has quit [Changing host]
nanoz has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
<KrzaQ>
I want to install ruby on a Windows machine that cannot connect to the internet, but the new rubyinstaller requires 'ridk install' that attempts to download msys2. How can I install this offline?
djbkd has joined #ruby
loechel has joined #ruby
ecuanaso has joined #ruby
<ddffg>
install ubuntu its easier
<KrzaQ>
I cannot
Pumukel has quit [Ping timeout: 255 seconds]
vali has joined #ruby
ur5us has quit [Remote host closed the connection]
<KrzaQ>
it's a machine connected to production plotter that doesn't seem to have non-windows drivers and I am hoping to use ruby to generate documents to be plotted
<KrzaQ>
the machine isn't connected to the internet due to company policy, I can only RDP to it
ur5us has joined #ruby
Fernando-Basso has joined #ruby
<universa1>
KrzaQ: install ruby on a similar machine and copy the folder?
<KrzaQ>
that's it?
<KrzaQ>
well, I can do that
<KrzaQ>
thx
<universa1>
haven't tried that one, but it might work
<universa1>
you mgiht need to set some path variable, but shouldn't be too complicated
<KrzaQ>
right
ChilledOut has joined #ruby
<KrzaQ>
if it works, it works
<KrzaQ>
it's unlikely to be touched for years once set up
ryzokuken has joined #ruby
<ChilledOut>
Hi all ...I am new to Ruby..got PowerShell background.Is Ruby a good language to start with programming?Mainly wanna learn it for Chef
<universa1>
ChilledOut: ruby is a nice language to learn
DoubleMalt has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 240 seconds]
<ChilledOut>
@universal :thanks..please suggest me a book I can read to start from scratch ? I know nothing about classes,objects etc...
<universa1>
ChilledOut: "Learn to Program" by Chris Pine
vincent_ has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
govg has joined #ruby
<ChilledOut>
universal: Thank you.The name itself sounds so good.Just reading the preface.Thanks again universal
uZiel has quit [Remote host closed the connection]
Fernando-Basso has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
HoierM has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
VgpC has joined #ruby
mim1k has joined #ruby
Fernando-Basso has joined #ruby
polysics_ has joined #ruby
polysics has quit [Ping timeout: 240 seconds]
ascarter_ has joined #ruby
ldnunes has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
morfin has joined #ruby
<morfin>
can i somehow parse Range from Yaml?
<morfin>
*YAML
vincent_ has joined #ruby
<zenspider>
morfin: what have you tried?
sleetdrop has quit [Quit: Computer has gone to sleep.]
ascarter_ has quit [Ping timeout: 255 seconds]
<morfin>
i just parse YAML with psych
<zenspider>
... uh huh
<zenspider>
and?
<morfin>
and want something like foo: 10..100 become "foo" => 10..100
<havenwood>
"Note: Dashing is no longer being actively maintained."
tvw has quit [Client Quit]
ascarter_ has quit [Ping timeout: 240 seconds]
<SeepingN>
doh!
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 240 seconds]
iloveitaly has quit [Ping timeout: 246 seconds]
biberu has quit []
jrafanie has joined #ruby
ur5us has quit [Remote host closed the connection]
<Xyvir>
Yeah, I'm using the older version
cjhowe7 has joined #ruby
speakingcode has quit [Quit: Lost terminal]
<Xyvir>
Anyways, all that I'm trying to do is add a newline inside a text widget. This should be relatively simple right? I tried adding data-text="foo \n bar" in home.erb but this didn't seem to work. Am I missing something?
<havenwood>
<br />
<havenwood>
Xyvir: HTML swallows newlines whole and spits out not even the bones.
<anotherpi>
or why `String === String` returns fals
patarr_ has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
<ytti>
String's class isn't String
<ytti>
String's class is Class
<anotherpi>
i don't understand :(
<anotherpi>
String is a constant, if it check the reference, it should be true, nop?
<ytti>
[1] pry(main)> String === ""
<ytti>
[2] pry(main)> Class === String
<ytti>
=> true
<ytti>
=> true
<ytti>
"" is an instance of class String
<ytti>
String is an instance of class Class
<ytti>
or maybe instnce is not apt word for class?
<matthewd>
anotherpi: === is not equality
<anotherpi>
it's identity if i understand well
<anotherpi>
but for me, ''.class reference the class String
<matthewd>
This isn't JavaScript
<anotherpi>
and String reference String
<ytti>
[4] pry(main)> String.class
<ytti>
=> Class
TinkerTyper has joined #ruby
<matthewd>
and === is not equality (identity or otherwise)
<ytti>
[5] pry(main)> "".class.class
<ytti>
=> Class
TinkerTyper_ has quit [Ping timeout: 246 seconds]
SteenJobs_ has quit [Quit: peaceee]
<anotherpi>
obj === other → true or false
<anotherpi>
Case Equality – For class Object, effectively the same as calling #==, but typically overridden by descendants to provide meaningful semantics in case statements.
<anotherpi>
<matthewd>
anotherpi: Right.
<matthewd>
(okay, it's called a type of equality because it uses equals signs.. but it's not equality by your intuitive definition)
<darix>
so really confusing for javascript user :)
nesoi has quit [Quit: Leaving.]
dviola has quit [Quit: WeeChat 1.8]
<anotherpi>
i miss something so hard
shinnya has joined #ruby
<anotherpi>
`Class === String` is true, but `String === Class` is false, omg
<matthewd>
anotherpi: Because it's not equality.
andrzejk_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<matthewd>
String is a Class, but Class is not a String (it's also a Class)
<havenwood>
anotherpi: Twoquals is the generic, sane equality in Ruby.
mjuszczak has quit []
<havenwood>
anotherpi: Class == String #=> false; String == Class #=> false
<zenspider>
haylon: "when I print the lines of a file" ... "it erases the file" does not compute
ska has left #ruby ["Leaving"]
ziyangtian has quit [Ping timeout: 240 seconds]
<zenspider>
first off, there is no eof! that I know of
moei has joined #ruby
<haylon>
give me a sec, asking someone near me to make sure I'm doing this correctly. but yes, for some reason when I comment out the .eof! part, its doesn't wipe the file its reading. Hold on
enterprisey has joined #ruby
__Yiota has joined #ruby
cats has joined #ruby
KillerFox has quit [Write error: Broken pipe]
forgot has quit [Write error: Broken pipe]
FastJack has quit [Remote host closed the connection]
KillerFox has joined #ruby
forgot has joined #ruby
FastJack has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
dmin7b5_ has joined #ruby
DeeJayh has quit [Remote host closed the connection]
DeeJayh has joined #ruby
gnufied has quit [Quit: Leaving]
vincent_ has quit [Remote host closed the connection]
jooni has joined #ruby
Pierreb|home has quit []
enterprisey has quit [Remote host closed the connection]
<haylon>
yeah, for whatever reason, when I was printing the lines that were .eof? of a file, my file was being wiped out. I just changed my method to be #gsub!(/\s+$/, '') now its not happening.
<haylon>
w/e.
duderonomy has quit [Ping timeout: 258 seconds]
<zenspider>
obviously you're *not* doing it correctly
Danny_ has quit [Remote host closed the connection]
Danny_ has joined #ruby
<SeepingN>
that wil nuke all blank lines, not just at end of file
<haylon>
it shoudln't have nuked anything, it was just a puts statement, it should've just printed the line
<SeepingN>
ah
<haylon>
I'm taking off though
<haylon>
later guys/gals
<SeepingN>
yeah .eof doesn't belong int he equation then. later
haylon has quit [Remote host closed the connection]
<ruby[bot]>
zenspider: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<zenspider>
oh go fuck yourself ruby[bot]
haylon has joined #ruby
vincent_ has joined #ruby
vincent_ has quit [Remote host closed the connection]
vincent_ has joined #ruby
<SeepingN>
what the
<zenspider>
why has this thing been so bad of late?
<SeepingN>
ppl touching it
<SeepingN>
also need a %
<SeepingN>
er, ^
<SeepingN>
unless you're also clearing extra whitespace on purpose
<zenspider>
that's what he called for, I thought. I dunno. no real example of his code so I have no idea how he thought he'd get help or why he shared anything at all for that matter
* zenspider
shrugs
<zenspider>
I should work on nand2tetris homework...
haylon has quit [Ping timeout: 246 seconds]
johnzorn has quit [Ping timeout: 260 seconds]
mjuszczak has joined #ruby
cats has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 240 seconds]
mjuszczak has quit [Client Quit]
nitric has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
cats has joined #ruby
catphish has quit [Quit: Leaving]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]