krainboltgreene has quit [Ping timeout: 264 seconds]
freerobby has quit [Ping timeout: 240 seconds]
pyrac has joined #ruby
mahmoudimus has quit [Ping timeout: 255 seconds]
dmiller has quit [Ping timeout: 264 seconds]
mityaz has joined #ruby
roadt_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
RORgasm has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
roadt has quit [Ping timeout: 246 seconds]
arya has joined #ruby
mityaz has quit [Quit: See ya!]
jalcine has joined #ruby
poga has quit [Remote host closed the connection]
RORgasm has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
blaxter_ has joined #ruby
jalcine has quit [Remote host closed the connection]
tonini has joined #ruby
pyrac has quit [Quit: pyrac]
Cache_Money has quit [Ping timeout: 268 seconds]
zigomir has joined #ruby
andikr has joined #ruby
timkohrumel has quit [Remote host closed the connection]
blaxter_ is now known as blaxter
timkohrumel has joined #ruby
nomenkun has quit [Remote host closed the connection]
maycon has quit [Ping timeout: 276 seconds]
nbe has quit [Remote host closed the connection]
keanehsiao has joined #ruby
keanehsiao has quit [Client Quit]
bradhe has quit [Remote host closed the connection]
adambeynon has joined #ruby
bradhe has joined #ruby
dodosan has joined #ruby
statarb3 has joined #ruby
timkohrumel has quit [Ping timeout: 268 seconds]
ffio has joined #ruby
dodosan has quit [Read error: No route to host]
icole has joined #ruby
cads has quit [Ping timeout: 256 seconds]
bigkevmcd has joined #ruby
Judge has joined #ruby
<Judge>
moin :)
sayan has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
ntus1017 has quit [Remote host closed the connection]
sgupta is now known as Shrink
kil0byte has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.1]
Shrink has quit [Changing host]
Shrink has joined #ruby
aganov has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
jinie_ is now known as jinie
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
slash_nick has joined #ruby
cads has joined #ruby
coderhut has joined #ruby
rrecio has joined #ruby
paissad_ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
coderhut has quit [Quit: Page closed]
MrZYX is now known as MrZYX|off
rrecio has quit [Ping timeout: 255 seconds]
paissad has quit [Ping timeout: 256 seconds]
kasper has joined #ruby
slash_nick has left #ruby [#ruby]
ntus1017 has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
richiebkr has joined #ruby
richiebkr has quit [Client Quit]
arya has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
kil0byte has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
shevy has quit [Ping timeout: 255 seconds]
banister`sleep has quit [Read error: Connection reset by peer]
weldan has quit [Quit: Ex-Chat]
Shrink has quit [Read error: Connection reset by peer]
wsterling has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
arya has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
Shrink has joined #ruby
coderhut has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
wsterling has quit [Read error: Operation timed out]
wargasm has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
tonini has joined #ruby
sayan has joined #ruby
browndawg has joined #ruby
bradhe has quit [Remote host closed the connection]
noop has joined #ruby
kil0byte has joined #ruby
dash_ has quit [Quit: Time to beer :)]
railsbros_dirk has joined #ruby
fridim_ has quit [Ping timeout: 255 seconds]
<Kelet>
I'm sure this has been asked a million times but:
ellipse has joined #ruby
<Kelet>
Do I really have to install a development environment for ruby and compile something native to use sqlite3?
<Kelet>
What exactly does 'gem install sqlite3' do, when I do 'require sqlite3' it gives me LoadError: cannot load such file -- sqlite3/sqlite3_native despite having sqlite3.exe, sqlite3.dll, sqlite3.def in my PATH
emergion has quit [Ping timeout: 260 seconds]
kil0byte has quit [Ping timeout: 256 seconds]
persand has joined #ruby
<bnagy>
Kelet: for windows, possibly the easiest option is jst to use RailsInstaller
<bnagy>
having said that I have never used it and I don't know anything about rails or sqlite on windows
Markvilla has joined #ruby
<Kelet>
Unfortunately RailsInstaller doesn't yet have a Ruby 2.0 option (which I'm interested in), and I have no interest in Rails. Just kind of surprising that to use a common db in Ruby you have to step through so many hoops, unless I'm missing something.
camilasan has joined #ruby
<sevenseacat>
i wouldnt call sqlite a common db.
<bnagy>
unless by common you mean lower class
<sevenseacat>
and isnt that the nature of windows, everything is jumping through hoops?
poga has joined #ruby
Hobogrammer has joined #ruby
kil0byte has joined #ruby
ybart has joined #ruby
poseid has joined #ruby
DrShoggoth has joined #ruby
<Kelet>
sevenseacat, Shrug, I would assume it isn't the fault of Windows when many other language implementations don't need a development environment to compile a library to use a library.
<Kelet>
But maybe it is and the other languages have spent the effort to avoid such things, either way
Hobogrammer_ has quit [Ping timeout: 255 seconds]
ffio has joined #ruby
<bnagy>
every language needs a dev environment to compile a librarry
jefflyne has joined #ruby
pyrac has joined #ruby
senayar has joined #ruby
<bnagy>
but if there's a sqlite dll you could see if someone has done an FFI binding, that is usually a hell of a lot less fiddly imho
Zeeraw has joined #ruby
mityaz has joined #ruby
threesome has joined #ruby
monkegjinni has joined #ruby
dagobah has joined #ruby
<Kelet>
sqlite3 is described as an FFI binding
freerobby has joined #ruby
Rizzle has quit [Read error: Connection reset by peer]
<Kelet>
Oh well I appreciate the help, I guess I'll just need to install the dev environment and compile it up if I want to use it. Thanks.
jalcine has joined #ruby
Kelet has left #ruby ["Leaving"]
tvw has joined #ruby
mbinder has quit [Quit: Leaving...]
<bnagy>
if it's an FFI binding you don't need to compile anything
s__e has quit [Quit: Buffer underflow]
<bnagy>
so if it's no working it's probably just path mania of some kind
<bnagy>
basically FFI allows you to call into exportts from binary libs ( dll here ) from native ruby
Rizzle has joined #ruby
<bnagy>
man I am really typing like crap today
obs has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Ping timeout: 264 seconds]
timkohrumel has joined #ruby
nomenkun has joined #ruby
lsmola has joined #ruby
pen has joined #ruby
boblu has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
cads has quit [Quit: Leaving]
Xeago has joined #ruby
rippa has joined #ruby
brennanMKE has quit [Remote host closed the connection]
timkohrumel has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
elaptics`away is now known as elaptics
arya_ has joined #ruby
iamjbecker has joined #ruby
monkegji_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
rickmasta has quit [Quit: Leaving...]
danslo has joined #ruby
Coffers has joined #ruby
blaxter has quit [Read error: Operation timed out]
pyrac has quit [Quit: pyrac]
monkegjinni has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 256 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
rrecio has joined #ruby
iamjbecker has quit [Remote host closed the connection]
ericmathison has quit [Ping timeout: 255 seconds]
zavier has quit [Quit: WeeChat 0.4.0]
asellus has joined #ruby
jastix has joined #ruby
relix has joined #ruby
troessner has joined #ruby
rrecio has quit [Ping timeout: 256 seconds]
jgoss has quit [Ping timeout: 255 seconds]
DaniG2k has joined #ruby
pyrac has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
flak has joined #ruby
flak is now known as Guest9442
evelyette has left #ruby ["Leaving"]
binaryplease has joined #ruby
teclator has joined #ruby
Iszak has joined #ruby
pen has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 256 seconds]
Iszak has quit [Max SendQ exceeded]
pen has joined #ruby
ntus1017 has quit [Remote host closed the connection]
arya has joined #ruby
zigomir has quit [Quit: zigomir]
zacts has joined #ruby
slainer68 has joined #ruby
blaxter has joined #ruby
apod has joined #ruby
arya has quit [Ping timeout: 256 seconds]
poga has quit [Read error: Connection reset by peer]
Markvilla has quit [Quit: Computer has gone to sleep.]
poga has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
williamherry has joined #ruby
poga has quit [Read error: Connection reset by peer]
poga has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
bionoid has joined #ruby
gstamp has joined #ruby
brennanMKE has joined #ruby
camilasan has quit [Remote host closed the connection]
danslo has quit [Ping timeout: 240 seconds]
RORgasm has joined #ruby
danslo has joined #ruby
zai has joined #ruby
zai is now known as Guest92893
Guest92893 is now known as zai
camilasan has joined #ruby
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
RORgasm has quit [Ping timeout: 248 seconds]
blaxter has quit [Ping timeout: 248 seconds]
arturaz has joined #ruby
tatsuya_o has joined #ruby
brennanMKE has quit [Ping timeout: 276 seconds]
arturaz has quit [Remote host closed the connection]
arturaz has joined #ruby
marr has joined #ruby
arturaz has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
Retistic has joined #ruby
weldan has joined #ruby
arturaz has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Zai00 has joined #ruby
elaptics is now known as elaptics`away
noname001 has joined #ruby
arya has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Xeago>
Anyone any experience with railskits?
cj3kim has quit [Remote host closed the connection]
freerobby has joined #ruby
blaxter has joined #ruby
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
Iszak has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
Iszak has quit [Max SendQ exceeded]
Squarepy has joined #ruby
boblu has quit [Ping timeout: 256 seconds]
freerobby has quit [Ping timeout: 240 seconds]
Criztian has joined #ruby
arya has quit [Ping timeout: 248 seconds]
darth_chatri has joined #ruby
Phobos has joined #ruby
dash_ has joined #ruby
mikecmpbll has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
monkegji_ has quit [Ping timeout: 268 seconds]
bradhe has joined #ruby
boblu has joined #ruby
tonini has joined #ruby
DaniG2k has quit [Quit: Leaving.]
Retistic has quit [Quit: Retistic]
dawkirst has quit [Quit: Leaving]
MrZYX|off is now known as MrZYX
nari has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 268 seconds]
hogeo has quit [Remote host closed the connection]
niceguyjames has joined #ruby
graydot has joined #ruby
rrecio has joined #ruby
nomenkun has joined #ruby
zigomir has joined #ruby
ferdev has joined #ruby
camilasan has quit [Remote host closed the connection]
ghr has joined #ruby
DrShoggoth has quit [Quit: Leaving]
elaptics`away is now known as elaptics
DaniG2k has joined #ruby
rrecio has quit [Ping timeout: 246 seconds]
poga has quit [Read error: Connection reset by peer]
sevenseacat has quit [Quit: Leaving.]
daniel_- has joined #ruby
poga has joined #ruby
pen has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
camilasan has joined #ruby
pen has joined #ruby
freerobby has joined #ruby
DaniG2k has quit [Read error: Connection reset by peer]
DaniG2k1 has joined #ruby
YaNakilon has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
rdark has joined #ruby
pyrac has quit [Quit: pyrac]
Jalada has joined #ruby
Jalada has quit [Changing host]
Jalada has joined #ruby
blaxter has quit [Ping timeout: 264 seconds]
freerobby has quit [Ping timeout: 246 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
himsin has joined #ruby
darth_chatri has quit [Ping timeout: 246 seconds]
roadt_ has quit [Ping timeout: 256 seconds]
jalcine has quit [Remote host closed the connection]
dagobah_ has joined #ruby
dagobah has quit [Read error: Connection reset by peer]
browndawg has quit [Ping timeout: 256 seconds]
boblu has quit [Ping timeout: 240 seconds]
darth_chatri has joined #ruby
Guest9442 has quit [Ping timeout: 248 seconds]
Criztian has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 246 seconds]
akemrir has joined #ruby
preller has quit [Ping timeout: 276 seconds]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
kil0byte has quit [Ping timeout: 248 seconds]
blaxter has joined #ruby
spider-mario has joined #ruby
Wilt has joined #ruby
s0ber has quit [Remote host closed the connection]
mneorr has joined #ruby
Squarepy has quit [Remote host closed the connection]
s0ber has joined #ruby
poga has quit [Ping timeout: 246 seconds]
JoseClimaco has joined #ruby
fixl has joined #ruby
guiocavalcanti has quit [Ping timeout: 268 seconds]
kil0byte has joined #ruby
redgirl has joined #ruby
Wilt has quit [Quit: Page closed]
BizarreCake has joined #ruby
echevemaster has quit [Quit: Leaving]
lkba has joined #ruby
Elico has quit [Quit: Elico]
greenarrow has joined #ruby
monkegjinni has joined #ruby
freerobby has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
blaxter has quit [Ping timeout: 255 seconds]
williamherry has quit [Quit: WeeChat 0.3.9.2]
tonini has quit [Ping timeout: 248 seconds]
freerobby has quit [Ping timeout: 276 seconds]
Shirakawasuna has quit [Quit: Leaving]
bradhe has joined #ruby
Al__ has joined #ruby
anderson has quit [Quit: Leaving]
sayan has quit [Read error: Connection reset by peer]
JuPaname has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
SparkyFlary has joined #ruby
<SparkyFlary>
hey what's the difference between ruby and nimrod?
JoseClimaco has quit [Read error: Connection reset by peer]
josec has joined #ruby
rrecio has joined #ruby
josec has quit [Read error: Connection reset by peer]
JoseClimaco has joined #ruby
blaxter_ has joined #ruby
JuPaname has quit [Excess Flood]
JuPaname has joined #ruby
statarb3 is now known as Proshot-desktop
JuPaname has quit [Max SendQ exceeded]
<Mon_Ouie>
They're entirely different programming languages?
ellipse has quit [Remote host closed the connection]
ellipse has joined #ruby
nari has joined #ruby
BeLucid_ has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Al__ has quit [Quit: Al__]
rrecio has quit [Ping timeout: 248 seconds]
BeLucid has quit [Read error: Operation timed out]
browndawg has joined #ruby
camilasan has quit [Ping timeout: 276 seconds]
ellipse has quit [Remote host closed the connection]
ellipse has joined #ruby
Bry8Star{T2 has joined #ruby
pen has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
pen has joined #ruby
guiocavalcanti has joined #ruby
ellipse has quit [Remote host closed the connection]
poga has joined #ruby
ellipse has joined #ruby
camilasan has quit [Remote host closed the connection]
sayan has joined #ruby
camilasan has joined #ruby
rosy has joined #ruby
sixteneighty has joined #ruby
rosy has quit [Client Quit]
yshh has quit [Remote host closed the connection]
freerobby has joined #ruby
SparkyFlary has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<ChristianS>
what's nimrod?
ananthakumaran1 has joined #ruby
niceguyjames has joined #ruby
<popl>
great-grandson of Noah
<popl>
human
falood has joined #ruby
camilasan has quit [Ping timeout: 268 seconds]
ananthakumaran has quit [Ping timeout: 256 seconds]
freerobby has quit [Ping timeout: 268 seconds]
zigomir has quit [Quit: zigomir]
rickmasta has joined #ruby
zigomir_ has joined #ruby
RORgasm has joined #ruby
boblu has joined #ruby
charliesome has joined #ruby
denver has joined #ruby
Hanmac1 has joined #ruby
<Hanmac1>
hm does someone have an newer Mac? and if yes what is the system version of GCC ?
<popl>
Hanmac1: Do you have a ruby question?
DaniG2k1 has left #ruby [#ruby]
<Hanmac1>
popl i am often in this channel, but no that is not an ruby question
RORgasm has quit [Ping timeout: 240 seconds]
dash_ has quit [Ping timeout: 264 seconds]
Deele has joined #ruby
joonty has quit [Quit: WeeChat 0.3.7]
joonty has joined #ruby
Elhu has joined #ruby
<pontiki>
one minute, Hanmac1; i need to go dig it out of my satchell
hogeo has joined #ruby
<popl>
can you even get gcc apart from xcode with os x?
<Xeago>
popl: yes several ways
tonini has joined #ruby
<Hanmac1>
i dont know, but my boss wants to force me to use Mac ..
<popl>
my understanding was that apple patched gcc too
<pontiki>
Hanmac1: i'm assuming you do mean the xcode version?
<Xeago>
either commandline tools, binary packaged
<popl>
os x ships with shitty bash
rickmasta has quit [Quit: Leaving...]
<MrZYX>
Hanmac1: he said "a Mac" not "Mac OS X"..? :P
<oceanbreeze>
Guys hello, i need a script that is checking multiple directories for a file or a folder existense, and then if files/folders exist delete/move them. Can you give me an idea please.
freerobby has quit [Quit: Leaving.]
<apeiros>
Hanmac1: news at 11?
monkegjinni has quit [Ping timeout: 268 seconds]
<bnagy>
oceanbreeze: read the docs on Dir and FileUtils
havenwood has quit [Ping timeout: 276 seconds]
<bnagy>
I don't normally leak work life into here, but this current US / HK snowden detente is HIL A RIOUS
<bnagy>
scmp being basically a mouthpiece for PRC
bradhe has quit [Ping timeout: 248 seconds]
<Dekade>
PRC?
jefflyne has joined #ruby
<bnagy>
...
<bnagy>
don't get out much?
carloslopes has joined #ruby
<Dekade>
lol can you just answer me maybe
<Treeson>
call me maybe
r0bgleeson has quit [Read error: Connection reset by peer]
<bnagy>
Dekade: People's Republic of China
r0bgleeson has joined #ruby
Zeeo has joined #ruby
boblu has quit [Ping timeout: 246 seconds]
<Dekade>
ahh could of just said that, I can't remember every synonym but I should of known this one lol *facepalm*
<bnagy>
acronym
rrecio has joined #ruby
<bnagy>
... sorry I seem to have taken my asshole pills tonight
hogeo has quit [Remote host closed the connection]
ctooley has joined #ruby
DomKM has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
mark_locklear has joined #ruby
ntus1017 has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
jinie is now known as jinie_
ffio has joined #ruby
Jackneill has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
rrecio has joined #ruby
ffranz has joined #ruby
Kruppe has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
devoldmx has joined #ruby
browndawg has joined #ruby
jtharris has joined #ruby
pen has joined #ruby
rrecio has quit [Ping timeout: 240 seconds]
niceguyjames has joined #ruby
pipework has joined #ruby
mary5030 has joined #ruby
mcpierce has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
<mcpierce>
Hey, all.
<mcpierce>
Working on something and looking for some feedback or advice.
cjs226 has joined #ruby
<mcpierce>
I have, for Ruby < 2.0, some code to add an attribute to Fixnum to track a specific property for it in our library.
interactionjaxsn has joined #ruby
<mcpierce>
But I see that, with Ruby 2.0, doing such a thing with Fixnum is forbidden, that there are frozen classes.
<lupine>
heh
<mcpierce>
ANy suggestions on another way to carry with an object like that such an attribute?
<MrZYX>
just use your own one?
<lupine>
class FixnumExtensions ; end or something
<lupine>
monkey-patching, eh
<mcpierce>
Can a frozen class be extended?
<lupine>
I hope not
<mcpierce>
lupine: What we did previously was the monkey patch Fixnum, but you can't do that now since it's frozen.
<pontiki>
that's an interesting idea..
<MrZYX>
why do you need to monkey patch fixnum?
maetthew has quit [Quit: Computer has gone to sleep.]
<mcpierce>
MrZYX: In our project (Proton, an implementation of AMQP messaging) we have multiple integer types that can be sent in a message (8-bit through 128-bit, signed and unsigned) that, in Ruby, are represented by either Fixnum or Bignum.
<pontiki>
can you patch Integer?
<MrZYX>
then do a subclass of Fixnum for each one
<mcpierce>
MrZYX: What we want to do is, when getting a value out of a message, mark up the Fixnum by adding an attribute that says what type is was when it was retrieved. That way, if we put it into another message we can keep that type value.
Nisstyre-laptop has joined #ruby
<lupine>
mcpierce, so the attribute is on an instance of Fixnum?
<mcpierce>
lupine: Yes. I have a simple test that does precisely that. But testing it with Ruby 2.0 it fails due to Fixnum being frozen.
jinie_ is now known as jinie
<Hanmac1>
... hm for me class Fixnum is not frozen, but the instances are
<lupine>
mm, we're talking instance attributes
DomKM has quit [Quit: Leaving.]
<lupine>
just wrap the instance inside another class. value class pattern or whatever it's called
tonini has quit [Ping timeout: 248 seconds]
<mcpierce>
The one thing I'm trying to avoid is having to have developers use non-standard primitive types in their app.
_Renegade has left #ruby [#ruby]
Nisstyre-laptop is now known as Nisstyre
DomKM has joined #ruby
<lupine>
well, it's perfectly acceptable in this kind of parser situation. look at how yaml does it - you have a parse that generates a tree of nodes, and transform to turn it into native types
<lupine>
(maybe, "did". I'm not familiar with the yaml parser for 2.0)
greenarrow|2 has joined #ruby
<waxjar>
could you pass a tuple/Struct around instead?
mmitchell has joined #ruby
mary5030 has quit [Remote host closed the connection]
greenarrow|2 has quit [Read error: Connection reset by peer]
<lupine>
mcpierce, , monkey-patching Fixnum is exactly the same as having a non-standard primitive type
mary5030 has joined #ruby
<mcpierce>
waxjar: My end goal would be for whatever gets returned to be indistinguishable from a Fixnum. That's why the meta-programming trick looked so good.
<lupine>
it's just more obscure
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
<mcpierce>
lupine: True, but with the benefit of not having to have developers know that they're not using a pure Fixnum.
<waxjar>
mcpierce, i see. perhaps 2.0 allows you to refine it, but i wouldn't know
<waxjar>
instead of a full monkey patch
<mcpierce>
waxjar: kk
RORgasm has joined #ruby
<lupine>
I was just thinking about an object_id registry of some sort, but all instances of e.g., 42, will have the same object_id anyway
<lupine>
mcpierce, will a given fixnum ever have a different markup to other usages of the same fixnum?
<mcpierce>
lupine: Also, how would you know when it's safe to dispose of an object if the registry is holding a reference?
devoldmx has quit [Ping timeout: 255 seconds]
<lupine>
you're not holding a reference to the object in such a registry
Mattix has joined #ruby
<mcpierce>
lupine: Potentially, yes. 17 could, in one case, be a UINT and in another be a LONG.
<lupine>
just a fixnum which == the object_id
<lupine>
ahhh
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<mcpierce>
lupine: Ah, kk.
diegoviola has joined #ruby
greenarrow has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
generalissimo has quit [Remote host closed the connection]
elepfontius has joined #ruby
kpshek has quit []
<lupine>
I really think you're going to need a wrapper
jlast has joined #ruby
pen has quit [Ping timeout: 246 seconds]
<mcpierce>
lupine: I think you're right. I was hoping otherwise, but...
senayar_ has joined #ruby
yacks has quit [Quit: Leaving]
<Hanmac1>
lupine on 64bit versions, all 42.0 will also have the same object_id ... same for -42.0 and for 0.0 but not for -0.0 ;D
<mcpierce>
Negative zero's? Ruby doesn't use one's compliment internal does it?
senayar_ has quit [Remote host closed the connection]
senayar has quit [Read error: Connection reset by peer]
tagrudev has quit [Remote host closed the connection]
banister`sleep has joined #ruby
pithagorians has joined #ruby
havenwood has joined #ruby
trautwein has joined #ruby
tkuchiki has joined #ruby
havenwood has quit [Remote host closed the connection]
guiocavalcanti has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
carlyle has joined #ruby
ellipse has quit [Quit: Bye]
thams has quit [Quit: thams]
codenapper has quit [Ping timeout: 252 seconds]
Proshot-desktop has quit [Read error: Connection reset by peer]
obs has quit [Quit: Konversation terminated!]
sambao21 has quit [Quit: Computer has gone to sleep.]
diegoviola has quit [Ping timeout: 255 seconds]
tkuchiki_ has joined #ruby
pen has joined #ruby
rhys has joined #ruby
tehKitten has joined #ruby
burlyscudd has joined #ruby
guiocavalcanti has quit [Ping timeout: 276 seconds]
pootler_ has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
<tehKitten>
While browsing in a project I found a line of ruby of which I do not understand why the writer of it resorted to this specific solution. I am no developer myself and only know a couple lines of perl, but perhaps someone can explain it to me. The line is:
mahmoudimus has quit [Quit: Computer has gone to sleep.]
kayloos has quit [Remote host closed the connection]
MrThePla_ has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
trautwein has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
codenapper has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
cantonic has joined #ruby
apeiros has joined #ruby
hattusili_III has quit [Ping timeout: 264 seconds]
obs has quit [Quit: Konversation terminated!]
<ghr>
Hmm interesting. Cheers. hometime now :)
<WhereIsMySpoon>
Why am I getting undefined method `empty?' for #<URI::HTTP:0x8281b78> (NoMethodError) that's this line: Net::HTTP.start(uri.host, uri.port) do |http|
ghr has quit [Quit: Computer has gone to sleep.]
radic has joined #ruby
samuelj has joined #ruby
MrThePla_ has quit [Ping timeout: 264 seconds]
Appineer has joined #ruby
<MrZYX>
are you sure that's the line?
rickmasta has joined #ruby
devoldmx has joined #ruby
<WhereIsMySpoon>
MrZYX: yes
<fridim_>
Hi. I'm in a intensive dev phase (making a lot of small changes). I would like to send my code into my instance of ruby so it's refreshed. I thought maybe something like trap('SIGHUP') { reload_code }. Guys, do you know some ressources about best practices, how would you do ?
devoldmx3 has quit [Ping timeout: 248 seconds]
<r0bgleeson>
WhereIsMySpoon: that's not the line, come back when you know wtf youre doing
apeiros has quit [Ping timeout: 276 seconds]
havenn_ has joined #ruby
<WhereIsMySpoon>
r0bgleeson: Oh I see. I guess the cmd line is lying
redgirl has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
<MrZYX>
or at least post some context
<WhereIsMySpoon>
r0bgleeson: or you could not be a douche about it and just ask nicely for more info if you need it
havenwood has quit [Read error: Connection reset by peer]
hattusili_III has joined #ruby
sahoal has joined #ruby
<havenn_>
WhereIsMySpoon: Well, that escalated quickly.
<r0bgleeson>
look, you're the person asking for free help, if YOU want help YOU provide me with the details
<WhereIsMySpoon>
r0bgleeson: sure, I can do that for you
<r0bgleeson>
im not going out of my way to help someone who has no idea what theyre doing and hopes someone can fix it for them
<MrZYX>
fridim_: don't, it's not fun
angusiguess has quit [Ping timeout: 248 seconds]
<MrZYX>
you'd need to track where a constant is defined (all occurences, in the right load order), remove the constants from Object and load the files
<MrZYX>
fridim_: it's a total pain in the ass, I tried it already in a very defined environment (known constant/file path mappings, known instances, ability to reinitialize them from that place) and I can't say it's working good
<WhereIsMySpoon>
MrZYX: cause that just puts Net::HTTP::Get
apeiros has quit [Remote host closed the connection]
mikewintermute has quit [Remote host closed the connection]
<MrZYX>
hmm, guess the method description is inaccurate
moted has quit [Quit: moted]
DestinyAwaits has quit [Quit: Leaving]
maroloccio has joined #ruby
zeade has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
<WhereIsMySpoon>
MrZYX: "P request class. This class wraps together the request header and the request path. You cannot use this class directly. Instead, you should use one of its subclasses: Net::HTTP::Get, Net::HTTP::Post, Net::HTTP::Head."
<MrZYX>
actually your example doesn't reproduce for me
<WhereIsMySpoon>
O.o
<WhereIsMySpoon>
=/
moted has joined #ruby
<WhereIsMySpoon>
MrZYX: what can I do then?
zeade has joined #ruby
kraljev1 has quit [Ping timeout: 268 seconds]
<MrZYX>
ah
<ramblex>
WhereIsMySpoon: I don't get that error on 2.0.0 but I see it on 1.9.3
<WhereIsMySpoon>
im uising 1.9.3
<MrZYX>
WhereIsMySpoon: use the docs for the version you're actually using
cj3kim has quit [Ping timeout: 246 seconds]
<MrZYX>
or in this case use the version your docs are describing :P
mark_locklear has quit [Ping timeout: 246 seconds]
zeade has quit [Quit: Leaving.]
moted has quit [Quit: moted]
dagobah_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<fridim_>
I don't think that gem is magic...
<MrZYX>
I didn't say it can't be done, I said it's not fun ;)
hattusili_III has quit [Remote host closed the connection]
banjara has joined #ruby
moted has joined #ruby
rrecio has quit [Ping timeout: 256 seconds]
MrThePla_ has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
<fridim_>
MrZYX, yep I know and the more I look at doc/blog posts, the more I think you're right :)
<MrZYX>
if I got that right that gem will break if you use super
poppingtonic has joined #ruby
* fridim_
is a bit sad and disillusioned
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DanKnox_away is now known as DanKnox
Mattix has quit [Quit: Leaving]
Zeeraw has joined #ruby
momomomomo has joined #ruby
banjara1 has joined #ruby
elepfontius has quit [Quit: Leaving]
niceguyjames has joined #ruby
troessner has quit [Ping timeout: 255 seconds]
banjara has quit [Ping timeout: 246 seconds]
MrThePla_ has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
<fridim_>
or maybe, simply pry
<fridim_>
Pry also aims to be more than an IRB replacement; it is an attempt to bring REPL driven programming to the Ruby language. It is currently not as powerful as tools like SLIME for lisp, but that is the general direction Pry is heading.
rickmasta has quit [Quit: Leaving...]
guiocavalcanti has quit [Read error: Connection reset by peer]
PatJ has left #ruby [#ruby]
guiocavalcanti has joined #ruby
noname001 has joined #ruby
brbcoding has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
Al__ has quit [Quit: Al__]
dhruvasagar has joined #ruby
kayloos has quit [Remote host closed the connection]
hattusili_III has joined #ruby
pskosinski has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
guiocavalcanti has quit [Read error: No route to host]
guiocava_ has joined #ruby
browndawg has joined #ruby
c0rn has joined #ruby
pskosinski has joined #ruby
terrellt has joined #ruby
huoxito has quit [Read error: Connection reset by peer]
cmarques has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
usercheck_ has joined #ruby
popl has joined #ruby
cmarques has joined #ruby
cj3kim has joined #ruby
tomzx_mac has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
momomomomo has quit [Quit: momomomomo]
yashshah_ has quit [Remote host closed the connection]
yashshah_ has joined #ruby
huoxito has joined #ruby
mocfive has quit [Remote host closed the connection]
cj3kim has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
teclator has quit [Ping timeout: 268 seconds]
brbcoding has joined #ruby
niceguyjames has quit [Ping timeout: 248 seconds]
Spooner has quit [Remote host closed the connection]
jbueza has joined #ruby
rrecio has joined #ruby
akashj87_ has quit [Quit: Leaving]
burlyscudd has quit [Quit: Leaving.]
rrecio has quit [Read error: Connection reset by peer]
rrecio has joined #ruby
poga_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
Zai00 has quit [Quit: Zai00]
<usercheck_>
how to compile ruby script to standalone app?
mocfive has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
burlyscudd has joined #ruby
beiter has joined #ruby
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
MrThePla_ has joined #ruby
<popl>
fridim_--
c0rn has joined #ruby
niceguyjames has joined #ruby
harrymoreno has joined #ruby
<fridim_>
apologies
marr has quit [Read error: Connection reset by peer]
zeade has joined #ruby
* matti
gives fridim_ teh look
<matti>
;d
elaptics is now known as elaptics`away
poseid1 has joined #ruby
<Eiam>
what happened to the title
JZTech101 has joined #ruby
<Eiam>
matz is nice as so are we or something
<matti>
?
<Eiam>
Rubyists have a saying, or at least, we used to. "Matz is nice so we are nice." This has sort of been lost over the years... some people who have been around Ruby for a long time still say this, but it's something that's gone in and out of popularity.
<popl>
Eiam: is that the topic for #ruby-lang
<popl>
?
<popl>
*in the topic
<Eiam>
it was in the topic for here too, because I don't visit #ruby-lang
<popl>
hm
<popl>
ok
sahoal has quit [Quit: sahoal]
MrThePla_ has quit [Ping timeout: 276 seconds]
<Eiam>
fridim_: be nice =)
niceguyjames has quit [Ping timeout: 255 seconds]
maroloccio has quit [Quit: WeeChat 0.4.0]
zz_pinage404 is now known as pinage404
<Eiam>
the internet has enough languages with people trying to "teach people to fish" in that manner
cek has joined #ruby
<cek>
i'm trying to use a proc in 1.9 to issue a "next" for up-level iterator
<cek>
and it doens't work
ebobby has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
<cek>
Proc.new{ next }.call doesn't actually issue any warning
toquonce has joined #ruby
<kenichi>
where does rubinius put my gem bins?
<MrZYX>
cek: what about returning true/false from it and doing next if proc.call ?
mrsolo has joined #ruby
burlyscudd has quit [Client Quit]
Hanmac1 has joined #ruby
fmcgeough has joined #ruby
dp has joined #ruby
havenn_ has quit [Ping timeout: 268 seconds]
Zeeraw has quit [Quit: Computer has gone to sleep.]
<dp>
I see a piece of code in a project I'm looking at like "file = File.join(jekyll_site.source, *%w[_posts], post_file)". Can someone explain to me what the "*%w[_posts]" is?
pskosinski has quit [Remote host closed the connection]
<MrZYX>
%w[_posts] => ["_posts"], * passes the array elements as individual parameters (it's called splat operator)
diegoviola has quit [Ping timeout: 256 seconds]
cha1tanya has quit [Quit: Leaving]
pskosinski has joined #ruby
<dp>
is that just something to make sure that there's no string escaping done or something?
<MrZYX>
I'm not sure why it's done this way in this case
Coolhand has quit [Remote host closed the connection]
<MrZYX>
it might be handy if you have a ton of string parameters since it allows to omit the " and ,
<dp>
so %w is an associative array, with a _posts key. is that correct?
<MrZYX>
foo(*%w{first second third fourth fifth}) instead of foo("first", "second", "third", "fourth")
<MrZYX>
no, it's just an array of strings
<dp>
ah. ok
camilasan has quit [Remote host closed the connection]
ffio has quit [Ping timeout: 246 seconds]
<dp>
it's odd that it's done that way here then, since there's only one parameter being passed
<MrZYX>
yup
<usercheck_>
fridim_ thx
Coolhand has joined #ruby
DanKnox is now known as DanKnox_away
burlyscudd has joined #ruby
niceguyjames has joined #ruby
roadt has quit [Ping timeout: 256 seconds]
<linduxed>
if i was to name a gem, should i call it "red_pears" och "redpears"?
danbeck has joined #ruby
belak has joined #ruby
brennanMKE has quit [Ping timeout: 268 seconds]
poppingtonic has quit [Ping timeout: 248 seconds]
niceguyjames has quit [Ping timeout: 240 seconds]
dumdedum has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
nikeita has joined #ruby
freestyl3r has joined #ruby
Zeeraw has joined #ruby
ramblex has quit [Remote host closed the connection]
<freestyl3r>
hi. i have a string "hello\nthere" how do i print it up to newline char? i only want "hello"
burlyscudd has quit [Read error: Operation timed out]
eldariof has joined #ruby
DonRichie has quit [Read error: Connection reset by peer]
codecop has joined #ruby
<Hanmac1>
dp did you try STDERR.puts "test" too?
danbeck has joined #ruby
daniel_hinojosa has joined #ruby
havenwood has quit [Remote host closed the connection]
KhalilC has quit [Ping timeout: 248 seconds]
bradhe has quit [Read error: Connection reset by peer]
<wgosling>
I have a question about CGI.escape(). I have need to generate a URL that has one (of several) ampersands excaped as %26. If I manually replace the & in the url with %26, CGI.escape will escape that again, and provide %2526.
cj3kim has quit [Ping timeout: 255 seconds]
<dp>
that also doesn't seem to work. I'm not sure if it matters, but this is all wrapped up in a Sinatra app. I'm fairly unfamiliar with Sinatra, so it may be doing something I don't expect
sideshowcoder has joined #ruby
bradhe has joined #ruby
<wgosling>
Anybody know how I can get CGI.espace to produce %26
<fryguy>
wgosling: just don't escape it twice
blitz has joined #ruby
<MrZYX>
wgosling: do not replace & by hand, and run it for each value, not on the whole url
asteve has joined #ruby
stonevil has joined #ruby
<asteve>
is it possible to raise an exception and return a string from the same method?
havenwood has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
<MrZYX>
no
<wgosling>
fryguy: I can get it to escape it 0 times or twice.
<asteve>
hmm, is it kosher to attempt to extract the a string variable from a raise?
altamic has joined #ruby
<MrZYX>
don't use exceptions for control flow
<fryguy>
wgosling: time to rethink that part of your app
interactionjaxsn has quit [Remote host closed the connection]
sayan has joined #ruby
interactionjaxsn has joined #ruby
altamic has left #ruby [#ruby]
c0rn has quit [Quit: Computer has gone to sleep.]
danslo has quit [Quit: danslo]
sayan has quit [Read error: Connection reset by peer]
juhoh has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
sirwan has left #ruby [#ruby]
timmow_ has joined #ruby
obs has quit [Quit: Konversation terminated!]
usercheck_ has left #ruby ["Leaving"]
rouss has quit [Quit: Computer has gone to sleep.]
interactionjaxsn has quit [Ping timeout: 255 seconds]
<juhoh>
Oye! I use rest-client with couchdb. When I try to get a doc with a key, which has to be quoted for it to be valid json, rest-client complains the uri is invalid. How can I get this to pass? My uri looks something like this: uri = 'http://couch:5984/blog/_design/posts/_view/published?key="slug-here"'; any thoughts??
<juhoh>
this doesn't work with curl either only with my browser :/
<juhoh>
yes, so why does it complain when I feed the escaped value to RestClient.get?
<wgosling>
Ok. I figured out my issue. Someone had monkey-patched CGI.escape to be URI.escape which explains my & problems. However, that was done to work around ' ' problems, since one of the rest servers I'm using is terrible and tries to interpret a + in a query as a + and not space...
Hanmac1 has quit [Remote host closed the connection]
henk has joined #ruby
<MrZYX>
juhoh: example.com/?foo=bar&baz vs example.com/?foo=bar%26baz, if you do CGI.escape("example.com/?foo=bar&baz") how should it know which version you meant?
Spooner has joined #ruby
richiebkr has joined #ruby
chrishough has joined #ruby
richiebkr is now known as RichardBaker
Retistic has joined #ruby
Elhu has joined #ruby
<henk>
hi, I want to pass all arrays in an array of arrays as arguments to Array.product. Is there any sane way of doing this?
rrecio has joined #ruby
<MrZYX>
juhoh: so you do "example.com/foo=#{CGI.escape("bar&baz")}" to make it clear
<henk>
Without knowing how many arrays are in that array, I should mention.
<canton7>
that's a lot of arrays...
<juhoh>
but I got a NoMethodError from restclient
mary5030 has quit [Remote host closed the connection]
danbeck has quit [Quit: danbeck]
<henk>
canton7: hehe, yeah :)
tkuchiki has joined #ruby
cj3kim has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
jcromartie has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<MrZYX>
juhoh: of course you need to wrap the whole thing into URI.parse again if restclient expects a URI object
mary5030_ has joined #ruby
cj3kim has joined #ruby
burlyscudd has joined #ruby
Kruppe has quit [Ping timeout: 240 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
<juhoh>
ok, thanks guys ;) I got it now
<juhoh>
you really had to bend it to me :D
sumark has quit [Remote host closed the connection]
<popl>
it expectas a raw url apparently
pinage404 is now known as zz_pinage404
<popl>
*expects
brennanMKE has quit [Remote host closed the connection]
sumark has joined #ruby
<juhoh>
yeah, I couldn't escape the whole uri only the query string
timonv has quit [Remote host closed the connection]
kevinykchan has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
<popl>
ugh, the documentation isn't too clear
mary5030 has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Ping timeout: 256 seconds]
axl_ has joined #ruby
wgosling has left #ruby ["Konversation terminated!"]
Banistergalaxy has quit [Ping timeout: 240 seconds]
io_syl has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
danbeck has joined #ruby
Banistergalaxy has joined #ruby
danbeck has quit [Client Quit]
DrCode has joined #ruby
<diegoviola>
best way to learn TDD/BDD, etc?
<Xeago>
diegoviola: do it
<ddv>
doing
<diegoviola>
ok
<diegoviola>
do i just have to make it an haibt?
<diegoviola>
habit
<Xeago>
lifestyle
<Xeago>
codestyle
<diegoviola>
ah ok
monkegjinni has quit [Remote host closed the connection]
<diegoviola>
ty
kayloos has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 276 seconds]
kayloos has joined #ruby
milardovich has quit [Quit: Leaving]
henk has left #ruby ["WeeChat 0.4.1"]
bradhe has joined #ruby
<juhoh>
diegoviola: read on it/watch some videos then _commit_ to a project and take it to the end. every time you encounter a problem you have to solve it. this is how I learned and it almost always pays off...
<diegoviola>
ok ty
blandflakes has quit [Quit: Leaving]
lusory has quit [Ping timeout: 256 seconds]
guiocava_ has joined #ruby
pithagorians has joined #ruby
kpshek has joined #ruby
Jackneill has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
kayloos has quit [Remote host closed the connection]
maroloccio has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
guiocavalcanti has quit [Ping timeout: 268 seconds]
dp has left #ruby [#ruby]
johnmilton has quit [Ping timeout: 276 seconds]
norm has left #ruby [#ruby]
c0rn has joined #ruby
guiocavalcanti has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JZTech101 has joined #ruby
MrThePla_ has joined #ruby
guiocava_ has quit [Ping timeout: 256 seconds]
cozby has joined #ruby
MrThePla_ has quit [Ping timeout: 240 seconds]
<cozby>
Hi, reading through some ruby code I came across the following and am not sure how to interpret this.. (I'm new to Ruby)