Davey_ has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 256 seconds]
slainer68 has quit [Ping timeout: 264 seconds]
<shevy>
MrZYX why hard? is the new syntax mandatory now?
<MrZYX>
no, but keyword arguments use the same one
PanPan has joined #ruby
<MrZYX>
so if you prefer the old one you need to care if the method you call uses and options hash or keyword arguments
<MrZYX>
and you need to update the call if you change that fact
<MrZYX>
which you don't need to if you just use the new hash syntax
jlast has quit [Remote host closed the connection]
jdunck has quit [Ping timeout: 264 seconds]
tspike has quit [Read error: Operation timed out]
headius has quit [Quit: headius]
realDAB has quit [Quit: realDAB]
ebobby has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
pepper_chico has joined #ruby
jjbohn has joined #ruby
jamesfung14 has quit [Quit: Leaving]
danman has quit [Quit: danman]
jpfuentes2 has quit [Read error: No route to host]
atmosx has quit [Quit: WeeChat 0.4.1-dev]
<Eiam>
and by new you mean this awful method( blah: thing)
<Eiam>
so you could do blah: :blah2
<breakingthings>
yes
dayepa has quit [Quit: dayepa]
* Eiam
sighs
<Eiam>
thats a spacebar away from Some::Scope
sepp2k1 has quit [Read error: Connection reset by peer]
<MrZYX>
I actually enjoy that syntax :P
<MrZYX>
three characters less to type
<breakingthings>
Ruby World Problems: Complaining about extremely trivial syntax changes
<breakingthings>
PHP World Problems: WE STILL DON'T KNOW WHAT OBJECTS ARE
<breakingthings>
just remember that.
<Eiam>
breakingthings: its not really that trivial, given there are many different rules behind how and what way things get treated
<Eiam>
its very frustrating to me after 1.5 years still of writing ruby
<Eiam>
whenever I come across soeone who decided to contruct hashes in yet *another* way
<breakingthings>
Maybe you should look into python. :)
<banisterfiend>
Eiam: imagine if you had to type: attr_accessor(:x, :y)
<Eiam>
or people who rely on various idioms like "last value is okay as a hash without {}" and other things
<banisterfiend>
Eiam: or: loop() { puts "do it again"! }
cableray has quit [Quit: cableray]
jbueza has quit [Quit: Leaving.]
* UberNerdGirl
really wants to try some absinthe
<Eiam>
banisterfiend: I generally have a rule for my ruby which is if I'm not chaining the method I will use ()
<banisterfiend>
Eiam: lack of parenthesis is great for building DSLs
<UberNerdGirl>
:( apologies, wrong room :(
jbueza has joined #ruby
<Eiam>
because I want to be clear that I'm callin a method
<banisterfiend>
Eiam: i dont believe you use that in attr_accessor
<Eiam>
and not accessing an attribute
danneu has quit [Quit: WeeChat 0.3.8]
<banisterfiend>
and if you do, then you write very, very unidiomatic ruby codeb
<banisterfiend>
code*
jbueza has quit [Client Quit]
cableray has joined #ruby
<Eiam>
banisterfiend: I have to actually refrain from writing :attr_accessor(:a,:b)
jbueza has joined #ruby
<banisterfiend>
?
<Eiam>
look when you declare a method, def a(yo=something,b,d) you use parans still
Artheist has quit [Remote host closed the connection]
<Eiam>
but when you call :attr_accessor its okay to eliminate them?
<Eiam>
the whole lack of consistency is maddening
skattyadz has quit [Quit: skattyadz]
<breakingthings>
lol
<breakingthings>
again
mboro has joined #ruby
<breakingthings>
maybe you need to go to python
<havenwood>
Eiam: Then be consistent; don't use parens unless it breaks the interpreter.
<mboro>
is it possible to include a Rakefile inside another?
<breakingthings>
there is consistency
<Eiam>
havenwood: or always use parens =)
<breakingthings>
it's just not one-way-to-rule-them-all
<banisterfiend>
Eiam: you dont have to use () when you define a method
<breakingthings>
Eiam: sounds like "we should always use if's because switches are too different of a syntax"
<banisterfiend>
Eiam: and maybe people dont
<Eiam>
banisterfiend: yeah cause def a yo-something,b,d
<banisterfiend>
many*
<havenwood>
Eiam: Always using parens is against convention and idiom.
<Eiam>
reads SO much better
tay1 has left #ruby [#ruby]
<julian-delphiki>
not so.
<banisterfiend>
Eiam: def my_method a, b
<julian-delphiki>
no way.
<banisterfiend>
Eiam: doesn't read too badly
<Eiam>
havenwood: I guess its a great thing ruby doesn't enforce shit so I can do whatever I want?
Banistergalaxy has quit [Ping timeout: 258 seconds]
<rking>
I hear kwargs require parens. =(
<Eiam>
if ruby wants to care about convention and idiom it should enforce it
mockra has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
<havenwood>
rking: yeah, i was kinda initially disappointed about that
wormwood has quit [Quit: WeeChat 0.4.0]
hmarr has joined #ruby
<rking>
"Foolish consistency is the hobgoblin of ..."
<Eiam>
banisterfiend: def my_method a,b=opts,c=test,d looks pretty shitty to me
peacee has joined #ruby
<rking>
havenwood: Do you know if it's ever actually ambiguous? Seems to me the trailing comma clears it up
<banisterfiend>
Eiam: because you're not used to it? it doesn't bug me that much, but nonetheless my style is to use parentheses when i define methods
<breakingthings>
Eiam: but if you get your bioform endpoint all rashed up and burning over these things, perhaps you ought to look at a language that does enforce them the way you want
<banisterfiend>
Eiam: but not to use it when i'm invoking DSL-style methods
<Eiam>
banisterfiend: I think it allows the intent to be lost more easily
<banisterfiend>
Eiam: loop() { } and attr_accessor() look ugly
<Eiam>
banisterfiend: () clearly denote intent
<Eiam>
I'm callin a method with these parameters
<breakingthings>
def my_method a, b, c=opts, d=test
<julian-delphiki>
but if you've written ruby you know that without the () its still fine
<breakingthings>
and better yet, let's slap on some syntax highlighting
fir_ed has joined #ruby
<banisterfiend>
Eiam: what's ambiguous exactly? if you pass a parameter to something you're *always* invoking a method
<banisterfiend>
otherwise it's a local
zcreative has quit [Quit: Computer has gone to sleep.]
<banisterfiend>
or a method with no parameters ;)
<Eiam>
statements don't have terminators like ;
subbyyy has joined #ruby
<julian-delphiki>
they can though
<Eiam>
is this a continuation of a statement or soething new
Faris has quit [Quit: Faris]
<breakingthings>
this guy… this guy needs to go to python
thams has quit [Quit: thams]
<breakingthings>
just go
<Eiam>
right, which makes it all the worse ?
<banisterfiend>
Eiam: neither does python?
<banisterfiend>
Eiam: or a tonne of other languages
<julian-delphiki>
mby he just needs to write some C
<breakingthings>
oh god no he'll annoy the pythonistas too
<banisterfiend>
it's not a big deal, it's clean, it's nice
<breakingthings>
send him to javascr-NO IT'S EVERYWHERE!
<Eiam>
banisterfiend: yeah, I'm not sure I ever said that I think python does something better here so..
<Eiam>
not sure where that came from
<breakingthings>
Eiam will never find peace in this colonless world!
* breakingthings
runs off in a panick
<Eiam>
banisterfiend: I never brought python into this discussion so whatever ;)
xpen_ has quit [Ping timeout: 256 seconds]
<julian-delphiki>
Eiam, have you ever used method missing?
<julian-delphiki>
just wondering
<Eiam>
julian-delphiki: I had it in some code once awhile ago but decided against using it & pulled it back out
<banisterfiend>
Eiam: i'm just saying it's more or less standard for dynamic langauges not to require the ';'
<julian-delphiki>
standarddddd
<banisterfiend>
Eiam: i dont see any confusion or ambiguity in 99.999% of cases in leaving it off, either
<Eiam>
breakingthings: omitting ; in javascript is a silly game to play so..
maletor has quit [Quit: Computer has gone to sleep.]
<breakingthings>
Eiam: it is but it's still possible
<Eiam>
browser is putting it in there for you, so clearly its required
<breakingthings>
it's not required
<Eiam>
its foolish
mattbl has joined #ruby
<breakingthings>
not from a author's standpoint
<breakingthings>
automatic colon insertion exists for a reason
Banistergalaxy has joined #ruby
<Eiam>
yeah cause JS programmers are moronic
<breakingthings>
just go look at bootstrap
<julian-delphiki>
yep
Rudd-XXX has quit [Ping timeout: 248 seconds]
<julian-delphiki>
no ; in bootstrap
<MrZYX>
so, CoffeeScript ftw? :P
<Eiam>
julian-delphiki: sure, its become a rather headed topic now days with plenty of major examples on both sides of hte fence
<breakingthings>
guy intentionally did it that way to try it out and enjoys the fruits of pissing people off with it
<banisterfiend>
Eiam: can you show me a common example where leaving off ; is confusing/ambiguous?
<Eiam>
the point still remains, there are bugs you can run into if you don't understand automatic ; insertin, and if you just put the f'ing ; in, you'll NEVER hit those bugs
Guedes0 has quit [Ping timeout: 255 seconds]
<Eiam>
so, why not just put it in?
<breakingthings>
because
<breakingthings>
it looks ugly
<Eiam>
=0
<julian-delphiki>
I like pretty code.
<banisterfiend>
Eiam: can you show me a non-contrived example in Ruby where leaving off ';' leads to confusion/ambiguity?
<Eiam>
banisterfiend: I was referring to javascript about ;
<banisterfiend>
Eiam: but you mentioned lack of ';' before you talked about javascript iirc
<Eiam>
banisterfiend: in ruby clearly ; is designed to do multiple statements per line, not to terminate statements
xpen has joined #ruby
<breakingthings>
it does terminate statements
adkron has quit [Ping timeout: 245 seconds]
<julian-delphiki>
couldnt the same be said of JS
<breakingthings>
it's the -exact- same thing.
<havenwood>
Eiam: Implicit line termination is implicit line termination.
<Eiam>
julian-delphiki: no, because ommitting it in particular cases in otherwise legit javascript will get you a bug
<Eiam>
doing the same in ruby will not
<breakingthings>
Eiam: Generally, it doesn't in longform.
<breakingthings>
The major issues with it occur when minifying.
<breakingthings>
Usually due to an error with semicolon insertion with minifierss.
<julian-delphiki>
^
<havenwood>
minifyer's problem!
<breakingthings>
Spoiler: it's all subjective shit, bud.
<breakingthings>
Do it how you want and suck it up or find a language that lets ya. Don't get pissy over it, it'll shorten your lifespan.
<julian-delphiki>
and rubyists like their idiomatic code
jrajav has joined #ruby
jpcamara has joined #ruby
<Eiam>
julian-delphiki: except when their are competing idioms that not every agrees on
<Eiam>
sure most people agree :attr_accessor :blah
<Eiam>
is fine
<julian-delphiki>
i'd say most rubyists do
<Eiam>
but not everyone is consistent with how they do hashes for example, thats fairly split
eykosioux has quit [Read error: Connection reset by peer]
<breakingthings>
A common idiom is to leave out semicolons and parenthesis
<Eiam>
and then some patterns interfering with named paramters is just another ha
<julian-delphiki>
I just use whatever feels right for making my hash
<breakingthings>
But ruby intends for this to be possible
<julian-delphiki>
to be honest
baroquebobcat has quit [Quit: baroquebobcat]
Myconix has joined #ruby
<Eiam>
julian-delphiki: ultimately, its important for the program, and reader to understand what the object is
<Eiam>
so why would you want to introduce ambiguity
<Eiam>
hmm is this a named parameter or a magic hash
<breakingthings>
Eiam: because the ambiguity often isn't truly ambiguity
<julian-delphiki>
^
jjbohn is now known as jjbohn|afk
<breakingthings>
Often, it's ambiguity of the syntax that allows for an expressive interpretation of it's purpose
<Eiam>
its purpose doesn't really matter if you are trying to isolate & fix a bug
<julian-delphiki>
often in ruby it doesn't matter if you have () or not, since you can often read ruby as a sentance
<Eiam>
what matters is what its doing
<breakingthings>
Eiam: but it doesn't matter.
<banisterfiend>
Eiam: the named parameter vs magic hash is only an issue in 2.0+
<Eiam>
and if reading the code doesn't tell you that immediately without having to mental map through various layers of magic, what good is it
<breakingthings>
Both of those are interpretations of ways to accomplish a thing
<Eiam>
banisterfiend: and? still an issue
<banisterfiend>
Eiam: and i haven't played with it enough in 2.0 to know whether it's actually a problem, my guess is it's not
<julian-delphiki>
and I doubt 2.0 is used in prod much yet
daniel_- has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
<breakingthings>
That 'thing' is generally easily deciphered
<julian-delphiki>
Eiam, how do you think people should make their hashes
<breakingthings>
but for all that's holy there's 20+ different ways to perform a for loop from 1 to 10
<Eiam>
julian-delphiki: { :blah => thing }
mattbl has quit [Quit: This computer has gone to sleep]
<breakingthings>
Eiam: why not {blah: thing}
dayepa has joined #ruby
UberNerdGirl has left #ruby [#ruby]
<Eiam>
breakingthings: because now I have to learn that :blah and blah: are the same thing, but only when inside a hash?
<banisterfiend>
Eiam: also, you would read the documentation to the method before you try to use it
Voting has quit [Ping timeout: 245 seconds]
<julian-delphiki>
i usually use => but : is one less char and is more json like
<banisterfiend>
Eiam: and it would *tell* you which to use
<havenwood>
julian-delphiki: I've seen and use 2.0.0 in production. Really a stable release. :)
<breakingthings>
Eiam: :blah and blah: are both symbols
<banisterfiend>
Eiam: i never use methods until i know how to use them, what about you?
<Eiam>
banisterfiend: not everyone has the luxory of getting documentation for all the code they work with
<breakingthings>
besides
<breakingthings>
:blah => thing only exists because backwards compat
<julian-delphiki>
havenwood, i'm just saying that most companies are slow moving ;)
<breakingthings>
{ blah: thing } was added because it is the new intended method
<havenwood>
julian-delphiki: true... some are still on 1.8 /cringe
<breakingthings>
{ :blah => thing } exists merely for your convenience
<banisterfiend>
Eiam: in the absolute worst case you view the source. If you dont have the docs or sourc,e how the heck are you going to know how to use it?
<banisterfiend>
Eiam: either way you learn how to use it, it will tell you
<Eiam>
anyway, ruby remains my favorite language thus far, despite the things about it that bother me. I do wish people would use ( ), and I do wish people would split their { braces onto different lines
Davey has joined #ruby
<Spooner>
I would argue that { :blah => thing } won't go away since it is the same syntax as { "frog" => thing }
<breakingthings>
Spooner: I don't think it ever will
<havenwood>
julian-delphiki: I've been impressed with 2.0 adoption though, having heard stories of how long it took for people to move to 1.9. I guess 1.9.0 was *not* a stable release which probably slowed down subsequent adoption considerably.
* julian-delphiki
works for a scala shop *shrug*
<breakingthings>
but I do believe { frog: thing } is the preferable way.
xpen has quit [Remote host closed the connection]
<Spooner>
I avoided it until 1.9.2. Too few gems available.
niftylettuce has quit [Read error: Operation timed out]
itman has quit [Read error: Operation timed out]
[diecast] has quit [Read error: Operation timed out]
<breakingthings>
not that it makes a huge deal, but working with symbols is faster.
itman has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
xpen has joined #ruby
niftylettuce has joined #ruby
[diecast] has joined #ruby
hmarr has quit []
tealmage has quit [Remote host closed the connection]
<julian-delphiki>
oh god, i bet Eiam would hate 1.9 lambda syntax
mercwithamouth has quit [Ping timeout: 245 seconds]
jjbohn|afk is now known as jjbohn
<Eiam>
eh, -> is sufficiently different
<Spooner>
In 2.1, the lambda syntax will be ♥some code♥. I'll stake my life on that!
<Eiam>
it does't bother me much..
pepper_chico has quit [Quit: Computer has gone to sleep.]
<julian-delphiki>
surprising
<havenwood>
Spooner: haha, i like it
<Eiam>
also I don't really use lambda's often
<Eiam>
tend to use proc.new more
<Eiam>
which is slightly different
chrishough has quit [Quit: chrishough]
<breakingthings>
Spooner: Stabby lambdas to lovey lambdas?
<breakingthings>
Pshaw
<breakingthings>
I'm gonna stick with 2.0
<breakingthings>
I like my code violent
<Eiam>
julian-delphiki: λ maybe ;)
h4mz1d has quit [Ping timeout: 252 seconds]
xpen_ has joined #ruby
* julian-delphiki
learned scheme in school, love that languagte
jbueza has left #ruby [#ruby]
<havenwood>
<Eiam>
julian-delphiki: I'd probably be happiest in a strongly typed language that was interpreted and had consistent (probably enforced) conventions, so long as those conventions relied on readily available & visible things (this does not include whitespace & tabs)
nignaztic has quit [Ping timeout: 245 seconds]
<julian-delphiki>
not interpreted, but have you ever written any Ada?
<julian-delphiki>
sounds like you'd love it
<Eiam>
I think there are quite a few languages out there I'd jive better with if they were more widely accepted/utilized
<Eiam>
it would be pretty tricky to convince the rest of the team they need to learn haskell cause hey guys I just deployed the latest tools in it
<Eiam>
sorry suckers!
<banisterfiend>
breakingthings: i wrote some evil code to allow invocation of lambdas with ()
<Eiam>
;)
xpen has quit [Ping timeout: 258 seconds]
<breakingthings>
banisterfiend: I hope you mean every single pair of parens
<banisterfiend>
breakingthings: hehe, well, my_lambda.() requires params too ;)
<breakingthings>
Eiam: time for you to come up with a business and run it with haskell then
<breakingthings>
banisterfiend: ALL THE LAMBDAS!
<Eiam>
julian-delphiki: I also don't have much against compiled languages, but not having a REPL drives me nuts
<Eiam>
breakingthings: my available language choices don't upset me that much, contrary to opinion
predator217 has joined #ruby
MrZYX is now known as MrZYX|off
<Eiam>
breakingthings: no doubt there are things about ruby that bother you, they just simply aren't the syntax idioms that bother me
<Eiam>
and they aren't enough to make you not want to use the language, much the same for me.
<breakingthings>
Eiam: even if I could think of one, it certainly doesn't bother me nearly to the extent it seems to bother you.
<breakingthings>
I'm sure I'll run into something some day that I'm like
<breakingthings>
that's stupid
<Eiam>
breakingthings: logic & consistency are things I appreciate & seek, yes
<breakingthings>
but I don't let it rile me up
<breakingthings>
if I did that I would hate ruby
<Eiam>
I'm not exactly fuming here just because I can have a discussion about the things that bother me ;)
<breakingthings>
I know you're not blowing your lid or anything
<Spooner>
Eiam, You can still get REPL for compiled languages.
<breakingthings>
but I can tell there is quite a discontentment with it
headius has joined #ruby
mattbl has joined #ruby
dfried has quit [Read error: Connection reset by peer]
<Eiam>
Spooner: yeah I've been looking at integrating Nu with Obj-c
<Eiam>
or fscript
breadtk has joined #ruby
dfried has joined #ruby
predator117 has quit [Ping timeout: 256 seconds]
<Eiam>
but then i need something to create with objc =p unfortunately everyone wants web apps and little scripts to run, which it doesn't lend itself well towards and ruby does
jonahR has joined #ruby
havenwood has quit [Remote host closed the connection]
ZachBeta has joined #ruby
crimezone20xx has quit [Quit: leaving]
jonahR has quit [Client Quit]
xpen_ has quit [Remote host closed the connection]
xpen has joined #ruby
slyv has joined #ruby
jdunck has joined #ruby
dfried has quit [Ping timeout: 256 seconds]
mattbl has quit [Quit: Leaving]
mattbl has joined #ruby
jtperreault has quit [Quit: WeeChat 0.3.7]
tish has joined #ruby
peacee has quit [Ping timeout: 245 seconds]
dannluciano has left #ruby [#ruby]
Voodoofish430 has quit [Quit: Leaving.]
Mon_Ouie has quit [Ping timeout: 264 seconds]
seejohnrun has quit [Ping timeout: 264 seconds]
Banistergalaxy has quit [Quit: Bye]
Banistergalaxy has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
lusory_ has quit [Remote host closed the connection]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
etcetera has quit []
pitzips has quit [Ping timeout: 252 seconds]
s1n4 has left #ruby ["leaving"]
phantasm66 has quit [Client Quit]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
nopolitica has joined #ruby
dfried has joined #ruby
[rupee] has quit [Quit: Leaving]
bordicon has quit [Remote host closed the connection]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
daniel_- has quit [Quit: WeeChat 0.4.0]
Ontolog has quit [Remote host closed the connection]
yashshah has quit [Read error: Connection reset by peer]
yashshah_ has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
pitzips has joined #ruby
brianpWins has joined #ruby
<fir_ed>
How does TCPserver.accept work?
chrisja has quit [Quit: leaving]
<fir_ed>
Is there a queue on accept?
xpen has quit [Remote host closed the connection]
<Spooner>
It blocks until there is a connection.
<Spooner>
You have to accept again to get another connection.
<fir_ed>
Spooner, I have a puts message right away an accept(Thread.start(server.accept)) and it is printing three times on one request
<fir_ed>
does that mean ruby is spawning 3 threads?
marr has quit [Ping timeout: 276 seconds]
tjbiddle_ has joined #ruby
<Spooner>
It creates a thread each time a connection is made.
NiteRain has joined #ruby
Inside has quit [Ping timeout: 264 seconds]
<Spooner>
It will block on server.accept until there is a connection, then it will Thread.start(that_connection) - the code will be in a loop so it keeps spawning new threads.
mercy____ has joined #ruby
lewis has quit [Remote host closed the connection]
<breadtk>
awkwords: you need to .rewind the file :)
<awkwords>
breadtk: ?
SmoothSage has quit [Ping timeout: 245 seconds]
tealmage has quit [Read error: Connection reset by peer]
jeffreybaird has quit [Quit: jeffreybaird]
<breadtk>
awkwords: filename.rewind
Koshian__ has quit [Ping timeout: 240 seconds]
<breadtk>
but that doesn't appear to be iteither
<breadtk>
awkwords: What version of ruby are you using?
<awkwords>
1.8.7
solidus-lake has joined #ruby
<awkwords>
this is core and the methods im using have been around since then.. i just want to read each line in that file and pass it to Resolv.getaddress
Koshian__ has joined #ruby
<awkwords>
not sure what im doing wrong
<bnagy>
you're using each and not doing anything with the block result
sandGorgon has quit [Ping timeout: 258 seconds]
<awkwords>
it does something, cause the last line of my pastie shows me trying to list the file again and it returns nothing.
<bnagy>
yeah that's because you're using an open filehandle, which is also a bad idea
<awkwords>
doesnt a ruby block close when its done?
<awkwords>
or since im opening it as file = File.open its open the whole time?
<bnagy>
yes, but you're not using the block form
<bnagy>
yep
<awkwords>
would you mind using a file a showing me how to do this in a example?
<bigmac>
do it in irb
<bnagy>
File.open("blah").each.map {|l| Resolv.whatever l }
trend has quit [Ping timeout: 260 seconds]
sam113101 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<bnagy>
actially with File I bet map works directly, although it's kind of "magic"
<bnagy>
... yeah it does
ZachBeta has quit [Quit: Computer has gone to sleep.]
<bnagy>
basically it's almost never right to assign an IO handle to a variable
SmoothSage_ has quit [Ping timeout: 258 seconds]
digifiv5e has joined #ruby
digifiv5e is now known as Guest73376
<bnagy>
I bet he has an outsourced content monitor assigned in Bangalore just for his account
<eval-in>
awkwords => /tmp/execpad-40a28c3d223c/source-40a28c3d223c:2:in `initialize': No such file or directory - testing2.txt (Errno::ENOENT) ... (http://eval.in/13117)
<awkwords>
=> ["98.138.253.109", "173.194.37.32"]
rkj has quit [Quit: WeeChat 0.3.8]
<awkwords>
worked..
<awkwords>
thanks
<bnagy>
VICTORYISMINE
bonhoeffer has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
<breadtk>
bnagy / awkwords it was the \n huh?
<awkwords>
yes
<breadtk>
good going gents (or lass)
chrishough has quit [Quit: chrishough]
hbpoison_ has joined #ruby
maes has quit [Ping timeout: 252 seconds]
<hemanth>
gemlist to bundler gemfile, anyone?
hbpoison has quit [Ping timeout: 264 seconds]
maes has joined #ruby
<macmartine>
awkwords: I dig your moniker.
yshh has quit [Read error: Connection reset by peer]
<macmartine>
hemanth: ?
freeayu has quit [Ping timeout: 258 seconds]
yshh has joined #ruby
JStoker has quit [Ping timeout: 252 seconds]
hasimo-t has joined #ruby
freeayu__ has joined #ruby
<awkwords>
macmartine: thanks
<hemanth>
macmartine, want to specify my dependencies in a Gemfile that bundler would use and the list of dependencies for me are from "gem list"
aapzak has quit [Ping timeout: 276 seconds]
crackfu has quit [Remote host closed the connection]
crackfu has joined #ruby
aapzak has joined #ruby
yshh has quit [Read error: Connection reset by peer]
mattbl has joined #ruby
yshh has joined #ruby
tmiller has quit [Remote host closed the connection]
subbyyy has quit [Read error: Connection reset by peer]
bonhoeffer has quit [Quit: bonhoeffer]
subbyyy has joined #ruby
himsin has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
marcdel has joined #ruby
breakingthings has quit []
verysoftoiletppr has quit []
etank has quit [Ping timeout: 245 seconds]
ZachBeta has joined #ruby
bradleyprice has joined #ruby
BizarreCake has joined #ruby
verysoftoiletppr has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
marcdel_ has joined #ruby
cearls_ has joined #ruby
hasimo-t has quit [Remote host closed the connection]
crackfu_ has joined #ruby
icole has quit [Remote host closed the connection]
X-Jester_ has joined #ruby
cearls has quit [Read error: Connection reset by peer]
elake has joined #ruby
crackfu has quit [Read error: Connection reset by peer]
X-Jester has quit [Ping timeout: 240 seconds]
elake has quit [Changing host]
elake has joined #ruby
sixteneighty has quit [Ping timeout: 240 seconds]
divout has joined #ruby
marcdel has quit [Ping timeout: 256 seconds]
marcdel_ is now known as marcdel
decoponio has joined #ruby
i_s has joined #ruby
hiroyuki has quit [Ping timeout: 258 seconds]
solidus-lake has joined #ruby
DrShoggoth has quit [Quit: Leaving]
sixteneighty has joined #ruby
freeayu__ has quit [Read error: Connection reset by peer]
pyro111 has joined #ruby
aedorn has joined #ruby
xcv has quit [Remote host closed the connection]
mockra has joined #ruby
jbueza has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
Myconix has quit [Ping timeout: 256 seconds]
kerframil has quit [Quit: Leaving]
mercy____ has quit [Quit: mercy____]
macmartine has quit [Quit: Computer has gone to sleep.]
hesco has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
solidus-lake has left #ruby [#ruby]
hadees has joined #ruby
bonhoeffer has joined #ruby
JStoker has joined #ruby
hasimo-t has joined #ruby
bigmac_ has joined #ruby
ZachBeta has quit [Ping timeout: 256 seconds]
Villadelfia_ has quit [Ping timeout: 264 seconds]
SeySayux has quit [Ping timeout: 276 seconds]
hasimo-t has quit [Remote host closed the connection]
polo has joined #ruby
bigmac has quit [Ping timeout: 252 seconds]
tommyvyo has quit [Quit:]
bonhoeffer has quit [Client Quit]
xpen has joined #ruby
baroquebobcat has joined #ruby
jpcamara has quit [Quit: jpcamara]
SeySayux has joined #ruby
roadt has quit [Ping timeout: 258 seconds]
xpen_ has quit [Ping timeout: 245 seconds]
Villadelfia has joined #ruby
cearls_ has quit [Remote host closed the connection]
Matip has quit [Remote host closed the connection]
sayan has joined #ruby
reset_ has joined #ruby
reset_ has quit [Client Quit]
<aedorn>
Tribe vs Anaconda vs Ubiquity vs my 30 line Ruby script to install Gentoo! Nope, still can't compete with GUI installers
reset has quit [Read error: Operation timed out]
Inside_ has quit [Ping timeout: 260 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
crackfu_ has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
sayan has joined #ruby
Opettaja has joined #ruby
<awkwords>
bean: thanks, how do i make it attach a line break to each one?
<bean>
put a \n on the end
jeremyb_ has left #ruby [#ruby]
vlad_starkov has joined #ruby
shock_one has joined #ruby
cableray has quit [Quit: cableray]
<awkwords>
@output+"\n" ?
<bean>
yeah
<bean>
well
aeontech has quit [Quit: aeontech]
<bean>
the resolve.get whatever +\n
<awkwords>
ah
Domon has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<awkwords>
pretty cool.. could you explain to me why i needed @output instead of output.. objects called inside of blocks have to be instance variables?
snuglepuss has joined #ruby
pyro111 has quit [Quit: Leaving]
generali_ has quit [Remote host closed the connection]
<bean>
no you dont need the @output
<bean>
it could have just been output
<bean>
if it was in a class
<bean>
and you had the @output
freerobby has quit [Quit: Leaving.]
<bean>
that would be an instance variable
snuglepuss has quit [Remote host closed the connection]
nomenkun has joined #ruby
snuglepuss has joined #ruby
Voting has left #ruby [#ruby]
ryanf has joined #ruby
finishingmove has joined #ruby
ryanf has left #ruby [#ruby]
eAlche___ has joined #ruby
icole has quit [Remote host closed the connection]
eAlchemist has quit [Ping timeout: 245 seconds]
trend has joined #ruby
io_syl has joined #ruby
otters_ has joined #ruby
sayan has quit [Ping timeout: 258 seconds]
Banistergalaxy has quit [Ping timeout: 258 seconds]
otters has quit [Quit: WeeChat 0.4.0]
otters_ is now known as otters
rickmasta has quit [Quit: Leaving...]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
Banistergalaxy has joined #ruby
wallerdev_ has joined #ruby
wallerdev has quit [Ping timeout: 264 seconds]
wallerdev_ is now known as wallerdev
shock_one has quit [Ping timeout: 240 seconds]
thinkclay has joined #ruby
thinkclay has quit [Client Quit]
thinkclay has joined #ruby
reset has joined #ruby
stkowski has quit [Quit: stkowski]
freeayu has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
headius has quit [Quit: headius]
pitzips has quit [Quit: Leaving]
artofraw has joined #ruby
artofraw has quit [Remote host closed the connection]
<bnagy>
holy crap why does gist keep murdering my indenting :(
<bnagy>
imho it would be more unixy to have it operate on ARGF so you could pipe stuff to it
tonini has joined #ruby
<bnagy>
but that's a straight port of yours
wallerdev_ has joined #ruby
angusiguess has joined #ruby
|christian| has quit [Ping timeout: 260 seconds]
wallerdev has quit [Ping timeout: 258 seconds]
wallerdev_ is now known as wallerdev
<bnagy>
awkwords: also,if you chmod it u+x you can run it like a normal command, cause of the shebang at the top
mootpointer has quit [Ping timeout: 276 seconds]
tcopp has quit [Ping timeout: 256 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
mootpointer has joined #ruby
wallerdev has quit [Ping timeout: 264 seconds]
snuglepuss has quit [Remote host closed the connection]
mengu_ has joined #ruby
thinkclay has quit [Quit: Leaving.]
yshh has quit [Remote host closed the connection]
thinkclay has joined #ruby
|christian| has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
thinkclay has quit [Quit: Leaving.]
huoxito has quit [Quit: Leaving]
mattbl has joined #ruby
samir_ has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
carraroj has quit [Client Quit]
jdunck has joined #ruby
xpen_ has joined #ruby
thufir_ has quit [Quit: Leaving.]
banjara has joined #ruby
xpen has quit [Read error: Connection reset by peer]
samir has joined #ruby
cyong has quit [Quit: Leaving.]
brianpWins has quit [Quit: brianpWins]
<Hanmac>
bnagy i found this: "Under a 2005 law, children in an anthrax-vaccine study would be prohibited from seeking damages through the legal system. "
arietis has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
dpdawson has joined #ruby
<dpdawson>
in a rails app... if ModelA has_one ModelB, does anyone know why calling modela.modelb.attribute would give me a different value (old value) than modelb.attribute in a after_update callback on modela?
lewis has quit [Remote host closed the connection]
<hemanth>
Hanmac, heh heh "Red Hatter here. We're on it. Should be fixed soon."
thufir_ has joined #ruby
nomenkun has joined #ruby
threesome has joined #ruby
<Hanmac>
thats why i do not care, when the contentmafia "pirates" content from others, why should i dont do it too?
maxmanders has joined #ruby
ferdev has quit [Quit: ferdev]
<hemanth>
Wish you luck :)
tonini has quit [Remote host closed the connection]
statarb3 has joined #ruby
io_syl has quit [Ping timeout: 256 seconds]
cha1tanya has joined #ruby
jgrevich has quit [Remote host closed the connection]
mpfundstein has joined #ruby
pseudonymous has joined #ruby
io_syl has joined #ruby
threesome has quit [Read error: Connection reset by peer]
zmanfx has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
danslo has joined #ruby
threesome has joined #ruby
Bofu2U has quit [Read error: Connection reset by peer]
awkwords has quit [Quit: Leaving.]
mattbl has joined #ruby
m8 has joined #ruby
anderse has joined #ruby
<pseudonymous>
If you have an array like so: arr=["1","2","3","4"] - then arr.map(&:to_i) applies to_i to each element which yields [1,2,3,4] - I get that part and can observe it in pry -- but what I don't get is the "&"-part -- in .map(&:to_i) - :to_i looks like a symbol of the method to apply but why the ampersand ?
beiter has joined #ruby
<pseudonymous>
On second thought - the '&:to_i' is a stand-in for a block right ?
zigomir has quit [Quit: zigomir]
xpen_ has quit [Remote host closed the connection]
emergion has joined #ruby
<apeiros_>
yes
<apeiros_>
map(&some_proc)
<apeiros_>
& tells ruby to treat the argument as a block
<apeiros_>
the argument must be a Proc or respond to to_proc (which must return a Proc in turn)
<apeiros_>
and Symbol has Symbol#to_proc
mikecmpbll has joined #ruby
<apeiros_>
@ pseudonymous
<pseudonymous>
apeiros_: I see. Wonderful explanation, btw :) thanks
<apeiros_>
so map(&:to_i) works like map { |x| x.to_i } would (map { |x| x.__send__(:to_i) })
* Hanmac
also uses &Klass.method(:symbol) .... like &File.method(:size)
blacktulip has joined #ruby
<Hanmac>
and &object.method(:symbol) can be useful for callbacks too
eykosioux has joined #ruby
haxrbyte_ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 258 seconds]
Banistergalaxy has joined #ruby
tonini has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
greenarrow has joined #ruby
hackeron has joined #ruby
razibog has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
hackeron_ has quit [Ping timeout: 240 seconds]
zigomir has joined #ruby
<hemanth>
BPL -> Blocks Procs and lambdas
zorbyte has quit [Ping timeout: 252 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
buscon has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
mattbl has quit [Quit: This computer has gone to sleep]
yashshah_ has joined #ruby
reset has quit [Quit: Leaving...]
hashmal has joined #ruby
Stelian1 has joined #ruby
<Stelian1>
hello guys
<Stelian1>
How can I read the payload for a request in ruby/rails?
samuel02 has joined #ruby
adambeynon has joined #ruby
<Nom->
#rubyonrails
Jalada has joined #ruby
<shevy>
they infiltrate us again!!!
<Stelian1>
oups, sorry
<Stelian1>
new to the entire ruby/rails world :)
<Stelian1>
will go away now
verysoftoiletppr has quit []
<shevy>
no stay
<shevy>
dont go to the railsers
<shevy>
they are evil
<hemanth>
heh heh
<Stelian1>
evil you say ...
<shevy>
yeah
<hemanth>
darkside
<Stelian1>
I shall put their name to the test!
<Stelian1>
seriously though, I imagine my question can be adapted to ruby alone
<Hanmac>
... when railsler are the dark side, what is my side? :P
<shevy>
Stelian1 if ruby alone would have that ;)
ferdev has joined #ruby
<Stelian1>
heh :) clearly have to do more reading
<Stelian1>
just playing around and I like it
banjara has quit [Ping timeout: 256 seconds]
<shevy>
rails is very very large, a huge ecosystem
Hanmac has quit [Quit: Leaving.]
<shevy>
soon it is larger than ruby in itself
tokime06 has joined #ruby
mattbl has joined #ruby
<shevy>
because it is so large, they had to design bundler :D
<marwinism>
When I install rubygems it installs ruby 1.8, even tho I have 1.9.3 installed? Is RVM best practice? Or what is the best way of using rubygems and Ruby 1.9.3?
<Sicp>
it should accept the input when the array has only '$' ; it accepts the input when it's ((((aaaa,,((((bbbb,,(((( etc.. because the multiples of each character make the array reach its destined point to be ready to accept the next character
<Sicp>
so I have to manually "empty it out" in order for it to read the next character and empty itself out for the next character and so on; I want it to do that in and of itself, using a while loop or something, while (something is something).....or something, can't figure it out
<Hanmac>
marwinism i guess you use ubuntu or debian right? ruby1.9.1 (with is 1.9.3) installs rubygems allready ... the rubygems deb package is only for 1.8 where rubygems was not part of ruby itselg
chussenot has joined #ruby
<marwinism>
Hanmac: spot on, ubuntu! Ah, so it's already bundled. that makes sense. and it works.. Thanks alot!
timmow has joined #ruby
timmow has quit [Read error: Connection reset by peer]
timmow has joined #ruby
<bookies>
Hi ladies and guys!
<bookies>
I am allowed to post a stack overflow link here for someone to checkout?
Quebert has joined #ruby
<bookies>
*am I
eAlche___ has quit [Remote host closed the connection]
<Hanmac>
bookies: so you mean a link pointing to an stackoverflow question about ruby? (or is it rails?)
<bookies>
yes
<bookies>
ruby on rails
eAlchemist has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
<Hanmac>
bookies: then this is your channel: #rubyonrails
<bookies>
ok thank you Hanmac :)
ozgura has quit [Remote host closed the connection]
<marwinism>
Hanmac: how is ruby for writing graphical applications? Does it has a framework for that like Shoes to python?
xpen has joined #ruby
dpdawson has quit [Ping timeout: 245 seconds]
banjara has joined #ruby
rocket has joined #ruby
<Hanmac>
marwinism: ruby has shoes in different colours :P ruby has gtk or QT bindings too, but i prefer something like wxwidgets as backend https://github.com/Hanmac/rwx
<Sicp>
nevermind, got it
eAlchemist has quit [Ping timeout: 245 seconds]
Quebert has quit [Ping timeout: 248 seconds]
banjara has quit [Ping timeout: 252 seconds]
chipotle_ has joined #ruby
chipotle_ has quit [Ping timeout: 258 seconds]
eka has joined #ruby
mattbl has joined #ruby
yacks has quit [Ping timeout: 276 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
<marwinism>
Hanmac: oh, sweet! Thanks. I'll have a look at your examples.
slainer6_ has joined #ruby
Derpfiend has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
<Sicp>
loving this language
<Sicp>
getting shit done while only 1st night
slainer68 has quit [Ping timeout: 258 seconds]
dhruvasagar has joined #ruby
reset has joined #ruby
samphippen has joined #ruby
codenapper has quit [Quit: Leaving...]
skattyadz has joined #ruby
statarb3 has quit [Quit: Leaving]
maxmanders has joined #ruby
aaronmcadam has joined #ruby
Nisstyre has quit [Read error: Operation timed out]
justsee has quit [Quit: Leaving...]
fjfish has quit [Remote host closed the connection]
<pseudonymous>
Sicp: thinking the same thing :) I've found that I increasingly reach for ruby to replace everything I used to do in a variety of other languages
kristofers has joined #ruby
gyre007 has joined #ruby
thufir_ has quit [Quit: Leaving.]
mattbl has quit [Quit: This computer has gone to sleep]
banjara has joined #ruby
jimeh has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
pandawarrior has joined #ruby
Bofu2U has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
zmanfx has joined #ruby
Pufferfood has joined #ruby
hasimo-t has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
yacks has joined #ruby
shock_one has joined #ruby
gyre007 has joined #ruby
pandawarrior has left #ruby [#ruby]
Sicp has quit [Ping timeout: 258 seconds]
rickmasta has joined #ruby
banjara has quit [Ping timeout: 276 seconds]
reset has quit [Quit: Leaving...]
mklappstuhl has joined #ruby
fermion has joined #ruby
chipotle_ has quit [Quit: cya]
rawler has quit [Read error: Connection reset by peer]
Nisstyre has joined #ruby
<Johbe>
I redirect stdout to a file by doing $stdout.reopen(logfile) how can I prevent it from trunkating the logfile everytime this is run?
<hoelzro>
Johbe: specify the mode
<Johbe>
I guess I should use 'a' somehow for append, but how? :)
<hoelzro>
$stdout.reopen(logfile, 'a')
<hoelzro>
that should work, I think
hmarr has joined #ruby
<Johbe>
I'll test, thanks.
rickmasta has quit [Quit: Leaving...]
dhruvasagar has joined #ruby
<Hanmac>
i for sample never used a "+" mode
JonnieCache has quit [Quit: Lost terminal]
hogeo has quit [Remote host closed the connection]
rawler has joined #ruby
hemanth is now known as hemanth_away
<lupine>
hmm. I'm looking for a one-liner - I'm taking a subset of elements from one array, based on the size of a second array. If the second array is empty, then the subset array should also be zero
<a_D>
I have a question. I have a string with a value. I want that when that value will be more than 1 integer (more than 4294967296) store in two integer the value: 1 with the 32 bits high value and another with the 32 bits low value
<a_D>
the question is how can I split the binary value ?
<lupine>
String#unpack ?
<lupine>
unpacking 64-bit numbers is a bit of a pain, but doable
<a_D>
lupine: hi
<a_D>
so I understad that the first step is convert the string recive into binary right ?
<shock_one>
How do I get all possible combinations of multipliers for a given number? So, for example, for 60 I want to get (5,12), (3, 20), (2, 30), (2,2,15), (2,2,3,5) and so on. I think I should prime factorize the number first, but what's next? How to get the combinations of a different length?
<lupine>
you could treat it as two 32-bit numbers instead, if that's the end you want
<Hanmac>
and tomorrow we get: "middle-endian" "not-so-little-endian" "bigger-than-middle-but-little-than-big-endian-endian" :P .. (Bonus point at somone who knows the book where this kind of joke is from :P)
<lupine>
we can always rename them "expensive-equipment-byte-order" and "cheap-equipment-byte-order"
eAlchemist has quit [Ping timeout: 256 seconds]
Domon has quit [Remote host closed the connection]
<Hanmac>
lupine: and is "apple-byte-order" an synoym for "expensive-equipment-byte-order" ? :P
statarb3 has joined #ruby
<Hanmac>
hm or is it more like "cheap-but-expensive-looking-equipment-byte-order" ? :D
banjara has quit [Ping timeout: 256 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
realDAB has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
JonnieCache has joined #ruby
<lupine>
eh, old apple equipment was relatively swanky
<lupine>
they're little-endian these days though
yashshah_ has joined #ruby
VinceThePrince has quit [Read error: Connection reset by peer]
PanPan has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931]]
jdunck has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
justsee has quit [Quit: Leaving...]
samphippen has quit [Quit: Computer has gone to sleep.]
robustus has quit [Ping timeout: 248 seconds]
<a_D>
lupine: finnaly I think the best option in my case is more simple
zigomir has quit [Quit: zigomir]
* lupine
gets to play with 64-bit numbers a lot in his nbd work
<lupine>
it's a proper arse.
<a_D>
first I check if the value is biggger than 4294967296 . In that case I do num.to_s(2)
<a_D>
and then split that value, and pass the first 32 bits to int
slainer6_ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 255 seconds]
slainer68 has joined #ruby
daig0ro has joined #ruby
fir_ed has quit [Ping timeout: 260 seconds]
VinceThePrince has joined #ruby
slainer68 has quit [Remote host closed the connection]
VinceThePrince has quit [Remote host closed the connection]
grayson has joined #ruby
slainer68 has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
daig0ro has quit [Client Quit]
circustic has quit [Remote host closed the connection]
elake has quit [Quit: WeeChat 0.4.0]
kofno has joined #ruby
etank has joined #ruby
jeka-91 has quit [Ping timeout: 258 seconds]
etcetera has quit []
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
justsee has quit [Quit: Leaving...]
yacks has quit [Ping timeout: 252 seconds]
elposarious has quit [Quit: WeeChat 0.3.8]
nkr has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
bluenemo has quit [Quit: Verlassend]
dawkirst has quit [Ping timeout: 260 seconds]
eka has joined #ruby
subbyyy has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Remote host closed the connection]
puppeh has quit [Read error: Connection reset by peer]
Mo0O has quit [Quit: WeeChat 0.4.0]
shtirlic has quit [Remote host closed the connection]
lessless has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
puppeh has joined #ruby
Davey has joined #ruby
<lessless>
are there situations in which the inheritance is preferred over composition?
banjara has joined #ruby
dustint has joined #ruby
kornnflake_zzz is now known as kornnflake
eykosioux has quit [Remote host closed the connection]
<Xeago>
lessless: in strict is-a situations
sonda has joined #ruby
psyprus has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
beiter has joined #ruby
divout has quit [Quit: Leaving.]
_JamieD_ has joined #ruby
dhruvasagar has joined #ruby
s1n4 has left #ruby ["leaving"]
ehlu has joined #ruby
<_JamieD_>
Hi all, anyone know if it's possible to do the following in the ruby 1.9 hash syntax? Examples are state_machine code 1) transition all => :suspended and @) transition [:unverified, :pending] => :approved. I've not come across a way to do wither of these using 1.9 style hash syntax which is rather annoying as I'd rather stick to one style or the other and not have to switch depending on the way I'm writing a hash
geekbri has joined #ruby
shevy has quit [Ping timeout: 276 seconds]
realDAB has quit [Quit: realDAB]
eykosioux has joined #ruby
<_JamieD_>
thats should be 2) rather than @)
tcstar has quit [Read error: Operation timed out]
tcstar has joined #ruby
dawkirst has joined #ruby
banjara has quit [Ping timeout: 252 seconds]
ehlu has quit [Quit: changing servers]
jeffreybaird has joined #ruby
classix has quit [Ping timeout: 258 seconds]
<lupine>
a_D, yes
theRoUS has joined #ruby
theRoUS has joined #ruby
pseudonymous has quit [Read error: Connection reset by peer]
pseudonymous has joined #ruby
<apeiros_>
_JamieD_: 1.9 hash syntax is *only* for symbol keys. so no, you can't use it with array keys.
mark_locklear has joined #ruby
swingha has joined #ruby
<_JamieD_>
apeiros_: I thought that was the case :(
NiteRain has joined #ruby
Hanmac has quit [Ping timeout: 258 seconds]
whitedawg has joined #ruby
jonahR has quit [Quit: jonahR]
classix has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
chussenot has quit [Quit: chussenot]
etcetera has joined #ruby
Hanmac has joined #ruby
shevy has joined #ruby
AndChat| has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
rmartin_ has joined #ruby
justsee has quit [Client Quit]
pseudonymous has quit [Ping timeout: 240 seconds]
Banistergalaxy has quit [Ping timeout: 264 seconds]
eykosioux has quit [Remote host closed the connection]
lolmaus has joined #ruby
etcetera has quit []
buscon has quit [Quit: Leaving]
vagmi has quit [Quit: vagmi]
fmcgeough has joined #ruby
hakunin_ has joined #ruby
bnagy has quit [Ping timeout: 256 seconds]
eykosioux has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
jeffreybaird has left #ruby [#ruby]
yshh has quit [Remote host closed the connection]
mootpointer has joined #ruby
VinceThePrince has joined #ruby
<mklappstuhl>
testing something with minitest/capybara I have two things which are 99% identic (one url param is different)... How would I write these two tests without actually copying the code?
elico has joined #ruby
wf2f has quit []
kirun has joined #ruby
skattyadz has joined #ruby
tommyvyo has joined #ruby
postmodern has quit [Quit: Leaving]
kornnflake is now known as kornnflake_zzz
finishingmove has quit [Quit: Nettalk6 - www.ntalk.de]
banjara has joined #ruby
<Spooner_>
mklappstuhl, [url1, url2] each do |url| ...your test using url... end
circustic has joined #ruby
<Spooner_>
You need to be using spec style tests rather than method tests for that to work correctly though.
cmarques has joined #ruby
<teamon>
test_url1; test_url("a"); end
<teamon>
def test_url2; test_url("b"); end
<mklappstuhl>
Spooner_: I do that. so basically [y,x].each{ it "does y" do ... end; it "does x" do ... end;} ?
<Spooner_>
mklappstuhl, no: [y,x].each do |z| it "does #{z}" do ...use z... end; end
AndChat| has quit [Ping timeout: 240 seconds]
<mklappstuhl>
teamon: I also thought more into that direction but it would'nt work with spec style syntax
<mklappstuhl>
Spooner_: doing that I only have one test case instead of two
Banistergalaxy has joined #ruby
<Spooner_>
mklappstuhl, Yes, but the each will run it twice.
<Spooner_>
The whole point is that you don't want to repeat the code...
<teamon>
spec syntax is just a syntax, seriously, don't be so affected by dsls
<teamon>
plain old method are still good
Qwak has joined #ruby
<mklappstuhl>
teamon: I think so too more recently
mikurubeam has quit [Ping timeout: 276 seconds]
chussenot has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<teamon>
explicit is always better than implicit
a_D has quit [Ping timeout: 264 seconds]
<Spooner_>
Yes, for teamon's example, you'd define test_url outside and call it from inside the #it. However, as you can see, I hope, my version gives a more meaningful message (in the #it) and is more easily extensible with more cases.
rickmasta has joined #ruby
danman has joined #ruby
a_D has joined #ruby
<Spooner_>
*more cases inside the iteration and more data being used to test.
yacks has joined #ruby
zigomir has joined #ruby
<teamon>
looping in tests like this is already a bad idea
<teamon>
like if you test
<teamon>
a = 1
<teamon>
b = a
<teamon>
b.must_equal a
<teamon>
is bad
<teamon>
it should be
<teamon>
b.must_equal 1
<Spooner_>
mklappstuhl, [a,b,c,d,e].each do |x| it "wibbles #{x}" do ...use x... end; it "wobbled #{x}" do ...use x...end; it "wiffles #{x}"; end;end
<Spooner_>
teamon, I am _not_ iterating inside any tests.
<Spooner_>
I'm iterating to generate lots of individual tests.
<teamon>
but you are generiting tests based on iteration
banjara has quit [Ping timeout: 252 seconds]
<mklappstuhl>
teamon: I think I'm doing something different then what you described
carloslopes has joined #ruby
<teamon>
tests do not have to by DRY, really
tmiller has joined #ruby
bnagy has joined #ruby
subbyyy has quit [Quit: none 0.3.9.2]
<Spooner_>
teamon, No code _has_ to be DRY. However, I generated 15 tests with that above example and writing them manually wouldn't be more correct.
<Spooner_>
You still ensure they all work in exactly the same way.
cupakromer has joined #ruby
<teamon>
well, ok, it all depends on case really
<mklappstuhl>
the actual use: I have two types of booking forms with different layouts/controllers but the form itself and the usage flow is the same. what is actually rendered depends on a url parameter...
bricker`1A has joined #ruby
<teamon>
if you have 100 of key -> value pairs
<teamon>
like input => required output
tish has quit [Quit: Leaving.]
<teamon>
then sure, just loop through them
philipd has joined #ruby
<hemanth>
my irb locale has changed :( it's looking like °:each_default,:each_normal§.flat_map
jeka-91 has joined #ruby
<Spooner_>
Or if you have 2 data items and 10 tests to run on each one. I didn't assume that the example was the full extent of the repetition that would be needed.
hasimo-t has joined #ruby
asobrasil has quit [Ping timeout: 276 seconds]
at_ has quit [Quit: leaving]
bricker`LA has quit [Ping timeout: 256 seconds]
ner0x has joined #ruby
RonScagz has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<Hanmac>
hemanth :P ... PS: if you ask: to_enum(sym) is needed because it was do dump to return an enumerator itself
<Hanmac>
mist to late
bricker`LA has joined #ruby
etcetera has joined #ruby
wmoxam has joined #ruby
hemanth has joined #ruby
bnagy has quit [Ping timeout: 260 seconds]
huoxito has joined #ruby
etcetera has quit [Client Quit]
bnagy has joined #ruby
bricker`1A has quit [Ping timeout: 276 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
<Hanmac>
hemanth :P ... PS: if you ask: to_enum(sym) is needed because it was do dump to return an enumerator itself .... and you may not need the :each_default anyway because they are always installed in ruby
cantonic has quit [Quit: cantonic]
bricker`LA has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
Banistergalaxy has joined #ruby
bricker`LA has joined #ruby
ner0x has quit [Quit: Ex-Chat]
mootpointer has quit [Quit: Computer has gone to sleep.]
<Hanmac>
amaya_the goto to #openrubyrmk ... the big boss is currently online :P
jrajav has quit [Quit: I tend to be neutral about apples]
<shevy>
cool
<shevy>
Hanmac recruited another man ;)
freeayu has quit [Read error: Connection reset by peer]
<aedorn>
neat.. I wouldn't mind doing the art assets for an RPG written in Ruby
Spooner_ has joined #ruby
<Hanmac>
aedorn we have an music & art section too in the forum ... but its totaly generic ... because neigher the game engine nor the maker is finish
<shevy>
making a RPG can be very, very hard work. the last one I worked in, http://blog.parpg.net/ faded away because we could not properly pool in the resources effectively
joofsh has joined #ruby
<shevy>
you totally need people (technically) able and (time-related) willing to push forward a game / the development
freerobby has quit [Quit: Leaving.]
<Hanmac>
yeah i also read about "first the game, than the engine" but we already know that the engine must can too, we only need more time to write it :P
<Spooner_>
Yeah, I remember being in mod teams with idiots. That didn't go well, which is why I've been a solo game dev until recently.
<aedorn>
Hanmac: Yeah, I'll wait until its finished. Easier to make that stuff when there's an actual idea for a game along with the requirements!
joofsh has quit [Remote host closed the connection]
jacktrick has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
banjara has joined #ruby
yashshah_ has joined #ruby
joofsh has joined #ruby
bricker`1A has joined #ruby
<Hanmac>
aedorn i also thought about using an 3d lib for an RPG maker ... but the resources are maybe to difficult to make ..
<shevy>
I think first-the-engine is actually better
<shevy>
it sets the framework and the pace
stevechiagozie has joined #ruby
jacktrick has quit [Client Quit]
<aedorn>
Until then, I'll just draw, do my 3d modeling for myself, and work on making my eyes bleed by staring at this pyanaconda code.
sambao21 has quit [Quit: Computer has gone to sleep.]
IrishGringo has joined #ruby
<shevy>
one problem with many people is, how do you manage them and their resources? I often heard complaints "I dont know how to contribute"
xcv has joined #ruby
<Hanmac>
aedorn do you know ogre3d? i have an (unfinished) ruby binding for it
Guest73376 has quit [Changing host]
Guest73376 has joined #ruby
Guest73376 is now known as guyz
lewis has quit [Remote host closed the connection]
<aedorn>
Hanmac: As in the actual models? Or the ability to use said models?
<shevy>
and what is HATE is constant switching of management tools... we had svn... then bazaar... then others wanted git ... we used assembla... then something else... nooobody remembered this chaos, you really need to play dictator to get them all to agree
<aedorn>
Hanmac: Yup, I looked at that once upon a time
<Hanmac>
aedorn do you mean ogre3d or my binding ? :P
sambao21 has joined #ruby
<shevy>
aedorn what software do you use for your models?
Rollabunna has joined #ruby
bricker`LA has quit [Ping timeout: 264 seconds]
chussenot has joined #ruby
i_s has joined #ruby
j^2 has joined #ruby
yshh has quit [Read error: Connection reset by peer]
<aedorn>
probably both! I definitely looked at Ruby bindings for everything. I wanted something to do more advanced protoyping and Flash just was being hateful at the time.
krawchyk has quit [Remote host closed the connection]
<aedorn>
shevy: Blender, Maya, 3ds Max, and then zBrush, Photoshop, etc..
bricker`LA has joined #ruby
* ddd
just finished taking a college course on Maya 2013
<shevy>
whoa that many
dmerrick has joined #ruby
yshh has joined #ruby
marcdel has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
<aedorn>
shevy: If you want to break into the gaming industry as an artist, you have to know the majority. So one or two things won't cut it. At least 2 modeling programs, Photoshop, and now even zBrush has become a requirement. Unless you're going indie!
<breakingthings>
create TCPSocket, loop on TCPSocket.readline
<iron_dude>
as I said, it is mostly a project to learn the language
<aedorn>
shevy: I really didn't want to be a programmer in the gaming industry, so I worked on my art skills. Then found out the sad truth of it all, and went back to programming. Things are changing now, so who knows, I may yet still end up doing nothing but art somewhere!
sambao21 has quit [Quit: Computer has gone to sleep.]
<breakingthings>
shevy: wasn't concerning myself with that bit since he's looking for a bot but there's a lot of extra fluff in your script :)
<shevy>
breakingthings hmm good point
<shevy>
it's a bot after all
<Boohbah>
shevy: are you using your irc script right now?
<shevy>
Boohbah, nope, it's a tiny bit buggy, and I want to add colour support, event actions etc... etc..
<shevy>
Boohbah I use xchat right now, I am a bit of an GUI whore :(
<breakingthings>
my very very simple connection class for an rb irc bot
bradhe has joined #ruby
<shevy>
I'd wish I could use more ruby + GUI
<Boohbah>
we need better libraries
<Boohbah>
go write one! :)
_nitti has quit [Remote host closed the connection]
<shevy>
Boohbah but that is the good thing with small projects, I dont want to invest too much time, I am happy with 80% perfection hehe
<shevy>
that is true, we need more and better libraries, and also the smaller (but useful), the better
F1skr has joined #ruby
<shevy>
ruby fpdf was not maintained in ~3 years
<shevy>
I tried to take over the code base but it's such a mess
i_s has quit [Quit: i_s]
veleno has joined #ruby
avalarion has joined #ruby
<shevy>
hmm what does rails uses to generate .pdf files?
youdontmeanmuch has joined #ruby
VinceThePrince has joined #ruby
<aedorn>
prawn or hook into wkhtmltopdf
i_s has joined #ruby
<shevy>
ah ok
i_s has quit [Client Quit]
<Xeago>
doesn wkhtmltopdf have a butload of deps?
<shevy>
aedorn I think programming is easier than being a (good) artist
<aedorn>
Xeago: Yes it does. It depends on webkit, which depends on some GUI libs
<shevy>
also being a good programmer seems easier than a good artist :-)
<aedorn>
like X... I always go with Prawn.
br4ndon_ has quit [Quit: Lorem ipsum dolor sit amet]
<hemanth_>
TIL : protected methods are now hidden from #respond_to? in 2.0
realDAB has joined #ruby
evenix has joined #ruby
markalanevans has joined #ruby
evenix has quit [Remote host closed the connection]
<aedorn>
shevy: It depends. Everyone can draw, if given enough time. Not everyone can see said path to do so. And then 3D is a bit of a different beast which is more like sculpting. I know many people who can't draw, but can do 3d modeling, and vice versa. I also know people who can't make a texture to save their lives, but others who churn them out. A lot of things go under 'art'! And programming is an art, too.
<Hanmac>
hemanth_ ask ri: "Private and protected methods are included in the search only if the optional second parameter evaluates to true."
puppeh has quit [Remote host closed the connection]
<hemanth_>
Hanmac :-)
tomzx_mac has joined #ruby
beiter has joined #ruby
sambao21 has joined #ruby
avalarion has quit [Ping timeout: 272 seconds]
<Spooner_>
shevy, A bad programmer is only obvious to good programmers. A bad artist is obvious to everyone ;)
_nitti has joined #ruby
<aedorn>
Spooner_: Nah... plenty of bad artists under the guise of "modern art."
kevinfagan is now known as 17SACLXC8
byronb has joined #ruby
realDAB has quit [Client Quit]
<iron_dude>
i am not sure being a good programmer is easier than a good artist....there is art in programming as well
<Spooner_>
aedorn, And they are obvious to everyone ;) However, I could argue that they are good artists, but terrible at painting or sculpting or whatever.
forced_request has joined #ruby
<Soulcutter>
a bad programmer can be obvious to anyone
cupakromer has left #ruby [#ruby]
<iron_dude>
what is a bad artist?...it is all a matter of preception...a bad programmer can cause real havoc if all he/she can produce is buggy code
TooTubular has joined #ruby
br4ndon has joined #ruby
[vaelen] has quit [Quit: WeeChat 0.4.1-dev]
<aedorn>
Spooner_: noooo.. think paint splatter! Whoever decided a 5 year old that raged and threw paint on a canvas was an artist should be smacked
tjbiddle has joined #ruby
chussenot has quit [Quit: chussenot]
byronb has quit [Client Quit]
<Spooner_>
aedorn, Yeah and 99.9% of humanity can see through that sort of crap.
<shevy>
iron_dude sure, it takes skills and brains, but I found the barrier for a good artist much higher than a good programmer
<aedorn>
Hanmac: Exactly!
Xeago has quit [Remote host closed the connection]
dross has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
beneggett has joined #ruby
<breakingthings>
shevy: bet you they see us the saaaame waaay.
andersbr has joined #ruby
kirun has joined #ruby
<shevy>
Hanmac, actually a lot of graffiti is indeed art
<iron_dude>
shevy I would say maybe...depending on what kind of art are we talking about. Can anyone paint the Sixteenth Chapel...No, but pretty much anyone can throw buckets of paint at a canvas and also call it art
<shevy>
there is also a lot of awful graffiti unfortunately, it really depends
<iron_dude>
but i think i see your point
<shevy>
I think the good graffiti artists should get their niche
mikepack has quit [Remote host closed the connection]
<shevy>
iron_dude, yeah, it's very subjective. with code, I think one great design principle is to stay minimal/lean/concise
<iron_dude>
although I still think both are equally difficult....again to me there is art in programming as well
<Hanmac>
iron_dude, isnt that also the way how EA makes Games?
<shevy>
in art, it often is better the higher the complexity and level of detail
<shevy>
and I cant reach that level of detail in art :(
tagrudev has quit [Ping timeout: 256 seconds]
<aedorn>
shevy: As breakingthings said, artists think programming is magic. (however, the competition to be paid *well* as an artist is much greater than that of a software developer)
<shevy>
I even have difficulty drawing a straight line with pencil + a ruler ;)
* Hanmac
thinks that perfect ruby code lines are Art too
Uranio has joined #ruby
<iron_dude>
Hanmac...yup you are right
<Hanmac>
aedorn, they are right, my programming is black magic :P
<shevy>
iron_dude what language did you use before ruby?
<shevy>
programming language
<aedorn>
Hanmac: Yes, sometimes your one-liners scare me =p
aganov has quit [Quit: aganov]
tymat has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
Giorgio has quit [Ping timeout: 245 seconds]
sandGorgon has quit [Ping timeout: 245 seconds]
banjara has joined #ruby
<iron_dude>
i come from the Microsoft world, so C++, C# has been my main background
<iron_dude>
done a bit of java too
marcdel has quit []
<Hanmac>
iron_dude, you can use your C++ skills to improf ruby with external bindings :P
<iron_dude>
and i have found myself in love with Ruby lately
chussenot has joined #ruby
braoru has quit [Quit: Leaving]
etcetera has joined #ruby
hemanth_ is now known as hemanth
<iron_dude>
Hanmac and shevy what's your opinion on JRuby vs MRI?
justsee has quit [Quit: Leaving...]
carloslopes has quit [Remote host closed the connection]
<shevy>
iron_dude I am biased. I am java free. hahahaha :D
<iron_dude>
lol
bean has joined #ruby
<shevy>
I think when you have java, the JVM is very useful
rickmasta has joined #ruby
<shevy>
but I come more from the scripting world, used perl before ruby, also php
<shevy>
ruby replaced all my shell scripts
<iron_dude>
there are some guys here in the office that all they want to see is jruby...so as a new comer i am wondering if the difference in speed is so significant as they claim
<shevy>
well jruby is still ruby right?
<Hanmac>
iron_dude, i prefer MRI or rubinius, so i can use my C++ gems
<shevy>
so as long as it is ruby, it should be fine
<aedorn>
iron_dude: depends on what you're doing with it
<aedorn>
(in terms of speed gains)
<iron_dude>
yes, it is ruby....
<shevy>
and if you have no problem using java, then that's fine too (I dont want to use java because I dont really need it for myself)
jbueza has joined #ruby
chrishough has joined #ruby
<iron_dude>
right now i dont think they support 2.0 yet
cpruitt has quit [Remote host closed the connection]
<Hanmac>
iron_dude, jruby may be faster (MRI1.93 and 2.0 are getting nearer) but with jruby you lose the C-API that MRI and RBX has
arturaz has quit [Ping timeout: 258 seconds]
realDAB has joined #ruby
youdontmeanmuch has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 245 seconds]
<iron_dude>
Hanmac that's exactly my point w/ discussing it with these guys...i guess as long as it is ruby, MRI or Jruby is a matter of preference and as shevy said depends on how much you are willing to have java in your life :)
<iron_dude>
If i understand the first chart correctly jruby might be even slower for a lot of cases vs ruby 2.0
<andersbr>
I can't figure out how to make Google tell me this one. Is there a way to decorate one of the core classes with class and instance methods, but have them only apply within a specific module? https://gist.github.com/darthschmoo/5205696
Davey has joined #ruby
<LiquidInsect>
andersbr: refinements in 2.0 kind of do what you want but it's at the file level, I think, not module.
<breakingthings>
iron_dude: seems like it
<LiquidInsect>
haven't gotten into it myself yet
<breakingthings>
the uhh...
<breakingthings>
the 'fasta' program took 132x the time
<breakingthings>
it actually timed out
motto has joined #ruby
josefrichter has joined #ruby
Nisstyre has quit [Ping timeout: 256 seconds]
<andersbr>
LiquidInsect: Unfortunately, I'm stuck back on Ruby 1.9.
mikepack has joined #ruby
m8 has quit [Ping timeout: 252 seconds]
_nitti has quit [Remote host closed the connection]
eAlchemist has joined #ruby
<breakingthings>
1.9's not so bad though
<LiquidInsect>
andersbr: don't think there's any way to do quite what you want then
johnnygoodmancpa has joined #ruby
Al_ has quit [Ping timeout: 252 seconds]
<andersbr>
Understandable. I'm sure there's another way to keep my gem from beating up everyone else's namespaces and taking their milk money. :)
<LiquidInsect>
glad to see the effort being made
stef_204 has quit [Quit: quitting]
<shevy>
I dont understand refinements
<shevy>
are refinements between a class and a module?
yshh has quit [Read error: Connection reset by peer]
<LiquidInsect>
I've worked with too many gems (meaning more than zero) that are like "Oh hey, I can just override Numeric#+? Going for it!"
<shevy>
it seems refinements are just namespaced (in a module) modifications
<Hanmac>
LiquidInsect: overwriting -@ and +@ are more evil :D
<shevy>
is "using" a new keyword?
marcdel has joined #ruby
<LiquidInsect>
shevy: yeah
<LiquidInsect>
and "refine"
<shevy>
hmm
Neomex has joined #ruby
yshh has joined #ruby
<LiquidInsect>
so using tells you to "use" the module, and the module deinfes which class it refines. Very different from extend/include/prepend because you're modifying behavior in a different class from yourself
<LiquidInsect>
a little info there... it's still an experimental feature and doesn't work quite the way it was originally intended I think
cearls has joined #ruby
lewis has quit [Remote host closed the connection]
<LiquidInsect>
AFAIK if you 'use' a module in one class in one file, then in another file reopen the class, you lose the reifnement you made to the OTHER class the first time you opened the class
* realDAB
is doing book revisions and wants to be precise about the terminology
<lectrick>
shevy: banister_ Banistergalaxy I was reading about the Github fiasco from yesterday and it turns out that it has to do with hash key format ambiguity/indeterminism. We have seen similar subtle bugs in our app stack based on the same problem
<realDAB>
it's a hard chapter to revise actually
eykosioux has joined #ruby
<realDAB>
obsolete diagrams and everything :-)
<Hanmac>
shevy be happy that ruby does not have multi-inheritance per default :P
joofsh_ has joined #ruby
<shevy>
lectrick hey man, I know nothing at all about these kind of hashes
<lectrick>
Basically I am starting to think that HashWithIndifferentAccess is extremely bad, and we should have instead gone with a HashEnforcingStringKeys and a HashEnforcingSymbolKeys instead
<shevy>
but I am glad that I have never in my life used HashWithIndifferentAccess
mengu has quit [Read error: Operation timed out]
jbueza has quit [Read error: Connection reset by peer]
<lectrick>
shevy: I'd avoid it based on my past year's experience
<banister_>
lectrick: why are u pinging me? i dont think i was involved in your conversation i have no idea what yu're talking about :)
kornnflake is now known as kornnflake_zzz
<lectrick>
banister_: well, if you're banisterfiend, then I just like your opinion lol
mikeg has quit [Ping timeout: 276 seconds]
<Hanmac>
lectrick talk to the rails guys ... they wanted to change the default Hash to HashWithIndifferentAccess, only because they no dont undersand the difference between an symbol and a string
joofsh has quit [Ping timeout: 260 seconds]
ckrailo has joined #ruby
<lectrick>
Hanmac: I am convinced that HashEnforcingStringKeys or HashEnforcingSymbolKeys (which raises when the wrong key format is supplied) would be 100% better
<interactionjaxsn>
Hanmac: whats the diff?
tommyvyo has quit [Quit:]
yogendra has joined #ruby
zeade has joined #ruby
yogendra has quit [Max SendQ exceeded]
bigoldrock has joined #ruby
brianpWins has joined #ruby
<Hanmac>
interactionjaxsn: symbols cant be deleted
gyre007 has joined #ruby
<shevy>
symbols must be destroyed
<shevy>
hmm does perl have symbols?
<interactionjaxsn>
Hanmac: how are they like strings and what do they hold?
<shevy>
interactionjaxsn symbols are like strings?
apeiros_ has quit [Remote host closed the connection]
statarb3 has quit [Quit: Leaving]
<Hanmac>
interactionsjaxsn: sample (1..10000000).map {"string" } vs (1..10000000).map {:string } ... try to quess what fills your ram more
jbueza has joined #ruby
artofraw has joined #ruby
<lectrick>
shevy: I agree that there should be a way to destroy symbols, but that would lead to... problems
tjbiddle has joined #ruby
<shevy>
hehe
andersbr has joined #ruby
mahmoudimus has joined #ruby
<Hanmac>
interactionjaxsn: symbols are used when you want some kind of C enum ... where the name is important and not the context, use String where the context is important
<shevy>
I actually meant to get rid of them... but now I really want to know if other scripting languages have them
rdk1 has joined #ruby
kornnflake_zzz is now known as kornnflake
<Spooner_>
lectrick, Not really. If they got collected based on reference counting, that would be fine. They'd just get recreated when needed again.
mmitchell has quit [Remote host closed the connection]
<wmoxam>
the submitter basically says he's ignorant about the implications, and seemed happy to learn of the reasons behind why it's implmented the way it is
chendo_ has quit [Ping timeout: 264 seconds]
<realDAB>
UberNerdGirl: hi
rupee has joined #ruby
sheerun has joined #ruby
<JonnieCache>
UberNerdGirl: is this the culmination of some epic quest?
mengu has joined #ruby
<Hanmac>
wmoxam the problem is that they do not care that they break all other projects
<realDAB>
UberNerdGirl: ah, you're romy, yes?
<UberNerdGirl>
realDAB: are you as real as purported? Or is this apocryphal?
<wmoxam>
Hanmac: why do you say they don't care?
<UberNerdGirl>
realDAB: guess who I am!?
<UberNerdGirl>
realDAB: do you remember _me_ ???!!
hemanth has quit [Quit: This computer has gone to sleep]
<wmoxam>
Hanmac: there is no indication of that in the ticket at all
<realDAB>
UberNerdGirl: i just said, you're romy :-)
<UberNerdGirl>
Hahahahahaha!
<realDAB>
UberNerdGirl: sure -- last saw you at nyc ruby women where i gave a talk, i believe
<UberNerdGirl>
Then I reckon you haven't forgotten me
<realDAB>
correct
<UberNerdGirl>
haha yes!!
alup has quit [Ping timeout: 252 seconds]
<UberNerdGirl>
realDAB: I was there with my nerdy partner in crime, Luis
thinkclay has quit [Client Quit]
<wmoxam>
Hanmac: ignorance yes, but just looking for a solution.
matti has joined #ruby
<UberNerdGirl>
we sat in the very back and gave some enthusiastic commentary. I remember, you had some interesting stuff on Ostruct
<UberNerdGirl>
realDAB: Last year I learned how `yield` works through the example in your chapter. Your creativity left a teensy bit to be desired, however, so I changed it a bit: http://cl.ly/image/0L343Q3f0C2C
headius has quit [Quit: headius]
<wmoxam>
Hanmac: "because rails users are to dump to use json currectly ... :P" ????
17SACLXC8 is now known as kevinfagan
andersbr has joined #ruby
<UberNerdGirl>
I remember I coded that while in my friend's apartment on the upper west side near Columbia university
jgrau has quit [Remote host closed the connection]
edward_ has quit [Quit: Page closed]
<Hanmac>
shevy i mean: "Ruby vulnerability reports are temporarily suspended while web.nvd.nist.gov search is being fixed."
breakingthings has quit []
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
lewis_ has quit [Remote host closed the connection]
<Hanmac>
wmoxam: for sample: in 99% of the cases they forgot to validate the userinput because without its more easier
rismoney has joined #ruby
pi3r has quit [Quit: Leaving]
<JonnieCache>
what is this, ironic bad grammar day?
<wmoxam>
Hanmac: I believe you've pulled 100% of your stats out of your ass
pcarrier_ has quit []
dr_bob has left #ruby [#ruby]
twoism has joined #ruby
m8 has joined #ruby
<wmoxam>
that's ok, because it's cool to shit on Ruby's largest user base because they're obviously all idiots anyways.
lewis has joined #ruby
philipd has quit [Quit: Computer has gone to sleep.]
jbueza has quit [Read error: Connection reset by peer]
<wmoxam>
If Ruby would only get rid of all the idiots, the other 10 people who use it would have an idyllic life
motto has quit [Ping timeout: 255 seconds]
<LiquidInsect>
Obviously, I mean nobody who's GOOD at Ruby would do something silly like use Rails in their day job.
<Hanmac>
wmoxam: like that?: ""Summary: The Active Record component in Ruby on Rails 2.3.x before 2.3.18, 3.1.x before 3.1.12, and 3.2.x before 3.2.13 processes certain queries by converting hash keys to symbols, which allows remote attackers to cause a denial of service via crafted input to a where method.""
yshh has quit [Read error: Connection reset by peer]
<wmoxam>
never, evar
robbyoconnor has joined #ruby
<wmoxam>
Hanmac: yeah, idiots. Every. One.
<thinkclay>
Sinatra question: what methods will access the three logged lines in terminal?
mockra has joined #ruby
<wmoxam>
if they weren't idiots they'd never make mistakes
<banisterfiend>
JonnieCache: we could see what python guys came up with
<banisterfiend>
my guess, something boring
<banisterfiend>
as is their style
<JonnieCache>
boringness is actually in python's IEEE spec iirc
tommyvyo has joined #ruby
xbob has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
Giorgio has joined #ruby
<JonnieCache>
ISO spec rather. damn. another comedy opportunity smashed against the rocks of my poor memory
markalanevans has quit [Quit: markalanevans]
<UberNerdGirl>
realDAB: Perhaps, the next time you visit NYC, you may want to swing by and give a talk at Hacker School. Rubyists abound in this current batch, but a lot of Pythonistas still slither insidiously. Anyway, I always wondered, did you pick the cover art for WGR ?
<realDAB>
UberNerdGirl: i can't remember -- i think the publisher chose it, but they may have given me a choice out of 2 or 3 different ones.
<JonnieCache>
Hanmac: it was the passing of a string into String#[] which confused me
<UberNerdGirl>
Spooner_: oh, it already launched in NYC. YOu are sooooo yesterday, please stop living under the rock.
<JonnieCache>
turns out its actually doing a substring check
<Hanmac>
yeah substringcheck is cool :P
Proshot has joined #ruby
kornnflake is now known as kornnflake_zzz
<ehellman>
Hi! Just started playing around in Ruby and I got this error when I tried to require a file inside my spec. All code and error is published here: https://gist.github.com/ehellman/5206568 - I have googled but I can only find people saying that they should "reinstall rvm", but that seems a bit drastic, right? I mean if I remove the require line the spec goes through without any problems at all. What am I doing wrong?
<JonnieCache>
Hanmac: tbh aliasing it to [] is a bit too much for my tastes
<JonnieCache>
Hanmac: =~ does me fine
<Spooner_>
ehellman, Use require_relative, not require.
<tiennou>
hi ! I'm having a hard time using DateTimes
Mon_Ouie has quit [Ping timeout: 245 seconds]
generalissimo has quit [Remote host closed the connection]
Goles has joined #ruby
<tiennou>
I'm trying to write a time accounter, basically I'm summing differences between DateTimes, but then I'm not sure how to convert them back into our standard time units (days, hours,...)
UberNerdGirl has quit [Ping timeout: 245 seconds]
<tiennou>
I found a post that uses day_fraction_to_time, but this doesn't work under 1.9.2
<tiennou>
and the manual code I've written doesn't give back the correct results (i'm doing a bunch of divmods for each step)
Qwakeree has joined #ruby
ryanf has joined #ruby
Goles_ has quit [Ping timeout: 252 seconds]
chendo_ has joined #ruby
itsdavem has joined #ruby
itsdavem has quit [Remote host closed the connection]
jjbohn is now known as jjbohn|afk
Qwak has quit [Ping timeout: 256 seconds]
VinceThePrince has quit [Read error: Connection reset by peer]
Faris has quit [Ping timeout: 256 seconds]
slainer6_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 256 seconds]
dfried has quit [Quit: dfried]
kpshek has quit []
jekotia has joined #ruby
rezzack has joined #ruby
BizarreCake has quit [Read error: Operation timed out]
Ontolog has joined #ruby
<thinkclay>
is there a simple "truthie" check in ruby? Aka return false if nil, null, empty string, etc
puppeh has quit [Remote host closed the connection]
<Spooner_>
thinkclay, No, because only false and nil are falsey in Ruby.
Vainoharhainen has joined #ruby
bnagy has quit [Ping timeout: 258 seconds]
<thinkclay>
spooner okay, thought so but thought I'd ask
<Spooner_>
thinkclay, And we don't have a concept of null (only nil, which is pretty much the same thing).
daniel_hinojosa has joined #ruby
alex__c2022 has quit [Read error: Operation timed out]
akashj87 has quit [Ping timeout: 256 seconds]
kpshek has joined #ruby
Catbuntu has joined #ruby
<Spooner_>
It is a common request of new users coming from some other languages where 0/null/false/'' are falsy.
<xrq>
nil isn't usually a concept but a set of rules
<thinkclay>
yea, maybe a simple method that did a check would be cool. I like that bool checks are more strict but a value.falsey would be pretty useful
markalanevans has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
eldariof has quit [Read error: Connection reset by peer]
lewis has quit [Remote host closed the connection]
markalanevans has quit [Remote host closed the connection]
<Spooner_>
No reason you can't implement it easily, but it does make sense to use more Rubyish idioms in Ruby.
carloslopes has joined #ruby
jaygen has joined #ruby
kofno has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
lewis has joined #ruby
markalanevans has joined #ruby
<thinkclay>
ya, i'd rather do it the ruby way for now and see if after I've mastered that if it's really still a feature I'd want
RagingDave has joined #ruby
<Spooner_>
thinkclay, e.g. string.empty? or number.zero? or frog.nil?
mmitchell has joined #ruby
nobuoka_ has joined #ruby
lewis has quit [Read error: Connection reset by peer]
ArchBeOS has quit [Read error: Connection reset by peer]
lewis_ has joined #ruby
<Spooner_>
Or collection.empty?
c0rn has quit [Quit: Computer has gone to sleep.]
alex__c2022 has joined #ruby
nobuoka has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
mulinux has joined #ruby
xcv has joined #ruby
markalanevans has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
nari has joined #ruby
eldariof has joined #ruby
dfried has joined #ruby
mmitchell has quit [Remote host closed the connection]
spider-mario has joined #ruby
breakingthings has joined #ruby
realDAB has quit [Quit: realDAB]
c0rn has joined #ruby
Spooner_ has quit [Remote host closed the connection]
banjara has joined #ruby
sonda has quit [Remote host closed the connection]
freerobby has joined #ruby
Goles_ has joined #ruby
chussenot has quit [Quit: chussenot]
BizarreCake has joined #ruby
banjara has quit [Client Quit]
[eDu] has joined #ruby
banisterfiend has quit [Remote host closed the connection]
bean has joined #ruby
joloudov has quit [Remote host closed the connection]
nobuoka has joined #ruby
Goles has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
ArchBeOS has joined #ruby
mpfundstein has joined #ruby
Vainoharhainen has quit [Ping timeout: 240 seconds]
nobuoka_ has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
generalissimo has joined #ruby
ner0x has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
Vainoharhainen has joined #ruby
mpfundstein has quit [Remote host closed the connection]
nari has quit [Ping timeout: 256 seconds]
Al_ has quit [Quit: Al_]
atmosx has joined #ruby
fjfish has joined #ruby
banjara has joined #ruby
nobitanobi has joined #ruby
kpshek has quit []
<nobitanobi>
hi
jdunck has joined #ruby
kpshek has joined #ruby
francisfish has quit [Ping timeout: 264 seconds]
beiter_ has joined #ruby
beiter_ has quit [Client Quit]
mulinux has quit [Quit: mulinux]
elaptics is now known as elaptics`away
banjara has quit [Client Quit]
Vainoharhainen has quit [Read error: Connection reset by peer]
ozgura has joined #ruby
beiter has quit [Ping timeout: 276 seconds]
jgrevich_ has joined #ruby
carlyle has joined #ruby
Goles has joined #ruby
jgrevich has quit [Ping timeout: 245 seconds]
jgrevich_ is now known as jgrevich
c0rn has quit [Quit: Computer has gone to sleep.]
Goles_ has quit [Ping timeout: 255 seconds]
girija has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
Faris has joined #ruby
ArchBeOS has quit [Read error: Connection reset by peer]
celestius has joined #ruby
c0rn has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
UberNerdGirl has joined #ruby
reset has joined #ruby
reset has quit [Remote host closed the connection]
UberNerdGirl has quit [Client Quit]
reset has joined #ruby
kpshek has quit []
Giorgio has quit [Ping timeout: 245 seconds]
luckyruby has joined #ruby
UberNerdGirl has joined #ruby
notVert has joined #ruby
_nitti has joined #ruby
freerobby has quit [Quit: Leaving.]
kpshek has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<matti>
nobitanobi: I think his nick is "merbist".
Goles has quit [Quit: Computer has gone to sleep.]
xj54y has joined #ruby
<matti>
Like his Twitter handle.
<Mon_Ouie>
Btw, what does your nick stand for? It doesn't seem to be resemble your name seeing your twitter account :p
<shevy>
it reminds me of a finnish person
<shevy>
matti hautamaeki
hadees has joined #ruby
oposomme has joined #ruby
banjara has joined #ruby
TMM_ has joined #ruby
Xeago has quit [Remote host closed the connection]
tspike has quit [Ping timeout: 260 seconds]
tspike has joined #ruby
<matti>
Ski jumper.
<matti>
Mon_Ouie: Well. Long, long time ago.
<matti>
Mon_Ouie: When Internet was only shown in Byte computer magazine as "something that will conquer the world".
Zolo has quit [Remote host closed the connection]
dfried has joined #ruby
<matti>
;p
<matti>
[ OK, I did overboard a little ... ]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
<matti>
Mon_Ouie: Long time ago, back in high school, I was playing AD&D a lot.
<Mon_Ouie>
What's the A for there? I assume D&D is Dungeons and Dragons
<matti>
Mon_Ouie: And we've had a Game Master who was very strict. And so we were tosing dices to select character names randomly out of a name book.
<mouse-_>
Mon_Ouie: "advanced"
<shevy>
Mon_Ouie the continuation it was, "advanced", the old D&D was like ancient, AD&D should have come some years afterwards
slash_nick has quit [Ping timeout: 264 seconds]
<mouse-_>
now all of that stuff is on the vintage radar
<Mon_Ouie>
Aha
<matti>
What they said -^
<shevy>
:(
<shevy>
old memories
<matti>
So.
<matti>
I ended up getting "Matti"
<matti>
As my character first name.
<xj54y>
Hello. I don't know any ruby nor have I read much literature on it but.. Syntactically and functionally, the grammar is sensible. Anyhow, ran `gem install rails -V` and ended up with http://pastebin.com/raw.php?i=zCrMpT3B Not only is this error message ambiguous, but it's not at all sensible, nor is there much information provided to allow for diagnosing the issue..
<xj54y>
Any insights?
<shevy>
and you stuck with it so many years matti!!! ;)
<matti>
Yes.
oposomme has quit [Client Quit]
<matti>
Precisely ;]
etcetera has joined #ruby
<matti>
How sad :<
* matti
is such a nerd.
<matti>
I mea... err... Hipster.
<shevy>
xj54y the real error is hidden
<matti>
;p
nomenkun has joined #ruby
<xj54y>
shevy: clearly.. Where is it hidden?
arturaz has quit [Read error: Connection reset by peer]
<shevy>
xj54y probably you failed to build native extension for json
<shevy>
Results logged to /usr/lib64/ruby/gems/1.8/gems/json-1.7.7/ext/json/ext/generator/gem_make.out
<mouse-_>
the last line
<shevy>
look at that file
<matti>
Yeah.
<xj54y>
shevy: What...
<matti>
apt-get install make
<shevy>
hehe
<matti>
And/or libruby-dev (or something with headers).
<xj54y>
Building has failed. See above output for more information on the failure.
<shevy>
hahaha
tspike has quit [Ping timeout: 256 seconds]
<matti>
xj54y: That's fine.
<matti>
xj54y: gem install -V json
<shevy>
xj54y, usually you simply lack something that is required
<shevy>
be it make, be it some .h files
<matti>
shevy: Like sexapeal.
<matti>
;d
<Mon_Ouie>
If that's Ubuntu (or similarly Debian-based), it's likely you miss mkmf.rb from stdlib
<shevy>
debian users have no sex appeal
<xj54y>
shevy: ah.. Would be pretty trivial to alert the user of what's missing, no? :|
gsorbier has joined #ruby
<xj54y>
Where can I find the 'hidden' logs?
tommyvyo has joined #ruby
<matti>
Mon_Ouie: mkmf.rb IIRC is always there, but he might be missing make.
<shevy>
xj54y, yup! I would do so if I would write something like that! but I did not write any of that, I also dont use debian
<xj54y>
matti: same exact error
<shevy>
hehehe
<Mon_Ouie>
I'm pretty sure they separate (at least, they used to) part of stdlib (including mkmf) from the regular ruby package
<matti>
xj54y: OK, check .out now ;]
<shevy>
xj54y does "gcc -v" work
<xj54y>
Yes..
<Mon_Ouie>
And put the rest in ruby-dev
<xj54y>
matti: err, same exact error
jtharris has quit [Quit: WeeChat 0.4.0]
gsorbier has quit [Client Quit]
rippa has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
<matti>
Now, that is rather odd.
<shevy>
go to the dir, cd /usr/lib64/ruby/gems/1.8/gems/json-1.7.7
<matti>
xj54y: Type: make
<matti>
Out of curiosity.
lemone has joined #ruby
<xj54y>
matti, why? There's no makefile in my working directory... o_O
jtharris has joined #ruby
<matti>
Mon_Ouie: I belive you. Since some time I just build my own Ruby.
<atmosx>
hello
slainer68 has joined #ruby
<atmosx>
curiosity!
<shevy>
what is your working directory?
<matti>
xj54y: Too see if you have make ;p
<shevy>
make json your working dir
<xj54y>
I have my build tools and so fourth, that's not an issue at all
<shevy>
look at extconf.rb
<Mon_Ouie>
xj54y: Did you install the ruby-dev package?
<matti>
xj54y: Ack.
<shevy>
xj54y you 100% have a build issue here
<matti>
Mon_Ouie: So it always has mkmf.rb
<shevy>
json installs fine for me
<xj54y>
shevy, correction, 'autotools'
<shevy>
Fetching: json-1.7.7.gem (100%)
<shevy>
Building native extensions. This could take a while...
<shevy>
Successfully installed json-1.7.7
etcetera has quit []
<shevy>
xj54y just go to the directory where json-1.7.7 is
<shevy>
run it manually
lemone has left #ruby [#ruby]
<xj54y>
Mon_Ouie: I do have that package installed
lemone has joined #ruby
<xj54y>
shevey, where is extconf.rb and what would I be looking for?
<shevy>
xj54y all gems are installed into one directory
tspike has joined #ruby
<shevy>
debian is using some crazy path
<xj54y>
Doubt it
<xj54y>
simply because I'm not using debian
<shevy>
<xj54y> shevy: cat /usr/lib64/ruby/gems/1.8/gems/json-1.7.7/ext/json/ext/generator/gem_make.out <-- should be there
<shevy>
cd /usr/lib64/ruby/gems/1.8/gems/json-1.7.7/
<xj54y>
yeah, checking it out
<shevy>
well that path
<shevy>
how did you install ruby :P
<xj54y>
shevy: use my distributions package manager...
<shevy>
ok, in that dir, look for extconf.rb or perhaps it is under ext/ directory there
lemone has left #ruby [#ruby]
sandGorgon has quit [Quit: Leaving]
etcetera has joined #ruby
<xj54y>
shevy: Yeah, but what am I to look for?
<xj54y>
Looks like a buildfile
<Mon_Ouie>
If you run the file manually (ruby extconf.rb), does it generate a makefile properly?
<shevy>
xj54y hmm if you are in the same directory
<shevy>
yeah, what Mon_Ouie just wrote
workmad3 has quit [Ping timeout: 256 seconds]
ryannielson has joined #ruby
ananthakumaran has joined #ruby
TooTubular has quit [Ping timeout: 272 seconds]
xcv has joined #ruby
averiso has quit [Ping timeout: 256 seconds]
bradhe has quit [Remote host closed the connection]
bluOxigen has joined #ruby
hydrozen has joined #ruby
<xj54y>
Correct, a makefile is properly generated..
<xj54y>
Even further, ERROR: While executing gem ... (NoMethodError) undefined method `join' for nil:NilClass
nobitanobi has quit [Ping timeout: 260 seconds]
<Mon_Ouie>
"executing" gem?
<xj54y>
Gotta love that lack of information. Makes me wonder why anyone bothers to output ANYTHING at all given how obvious it how that much isn't working...
andersbr has quit [Quit: andersbr]
<Mon_Ouie>
Oh, executing the gem binary itself
<Mon_Ouie>
Well if you run make in that directory, does it build the extension?
<Hanmac>
xj54y is there are a method with a ! inside?
ferdev has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
Jork1 has joined #ruby
Jork1 has left #ruby [#ruby]
Xeago has joined #ruby
Jork1 has joined #ruby
Jork1 has left #ruby [#ruby]
dmerrick has quit [Quit: dmerrick]
blacktulip has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
ferdev has quit [Read error: Connection reset by peer]
ferdev has joined #ruby
etcetera has quit [Read error: Operation timed out]
v0n has quit [Quit: WeeChat 0.4.0]
ryannielson has left #ruby [#ruby]
Goles has joined #ruby
etcetera has joined #ruby
colonolGron has joined #ruby
flayer has joined #ruby
v0n has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
nobuoka has quit [Ping timeout: 245 seconds]
lewis has joined #ruby
c0rn has quit [Ping timeout: 256 seconds]
averiso has joined #ruby
jsaak has quit [Ping timeout: 255 seconds]
<shevy>
xj54y but it works for me :P
jpcamara_ has quit [Quit: jpcamara_]
<xj54y>
shevy: good for you.
tvw has quit []
_nitti has quit [Remote host closed the connection]
<shevy>
xj54y so to recapitulate, "ruby extconf.rb" runs without any error? best paste that output
c0rn has joined #ruby
_nitti has joined #ruby
bnagy has joined #ruby
yacks has quit [Remote host closed the connection]
<shevy>
hmmm I don't see extconf.rb in json-1.7.7
<shevy>
aha
<xj54y>
shevy: Yeah, runs fine.. Just leads to other ambiguous error messages.
<shevy>
can you paste the messages you get somewhere please?
tonini has joined #ruby
Faris has quit [Ping timeout: 245 seconds]
<xj54y>
shevy: I'm not going to as it helps neither one of us. I'm taking care of this myself.. Asking for any tips here is slowing me down considerably.
<xj54y>
Thanks for the help thus far.
<shevy>
hehe
xj54y has left #ruby [#ruby]
Faris has joined #ruby
chrishough has quit [Quit: chrishough]
cearls has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
axl_ has joined #ruby
locriani has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
banjara has quit [Quit: Leaving.]
F1skr has quit [Quit: WeeChat 0.4.0]
fswitalski has quit [Quit: Leaving]
Faris has quit [Ping timeout: 252 seconds]
ner0x has joined #ruby
ArchBeOS has left #ruby ["Leaving"]
slash_nick has joined #ruby
_nitti has quit [Remote host closed the connection]
elico has quit [Quit: elico]
Faris has joined #ruby
fjfish has quit [Remote host closed the connection]
francisfish has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
chrishough has joined #ruby
tspike_ has joined #ruby
kristofers has quit [Read error: Connection reset by peer]
andersbr has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
hadees has quit [Quit: hadees]
whowantstolivefo has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
_nitti has joined #ruby
jonathanwallace has joined #ruby
bradhe_ has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
marcdel has joined #ruby
kristofers has joined #ruby
rickmasta has joined #ruby
tspike has quit [Ping timeout: 255 seconds]
francisfish has quit [Ping timeout: 252 seconds]
hadees has joined #ruby
br4ndon has quit [Ping timeout: 256 seconds]
<bean>
I HAVE SEEN THE LIGHT
<bean>
no more rvm for me
<bean>
its messed with my path for the last time
thufir_ has joined #ruby
<Hanmac>
:P
nazty has joined #ruby
<Hanmac>
bean what did you try?
<bean>
its special work stuff :P
<bean>
basically we all decided to screw rvm
<bean>
and i was the last holdout
chrishough_ has joined #ruby
chrishough_ has quit [Client Quit]
<Hanmac>
i build my stuff against trunk ... if it works with latest normal release its only a bonus :P
chrishough_ has joined #ruby
chrishough has quit [Ping timeout: 276 seconds]
chrishough_ is now known as chrishough
havenwood has joined #ruby
ndboost has quit [Remote host closed the connection]
Frederick has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
huoxito has quit [Quit: Leaving]
thinkclay has quit [Quit: Leaving.]
sheerun has quit []
<bean>
unfortunately i have lots of external dependencies
<bean>
lots of stuff w/ chef, etc
sambao21 has joined #ruby
<bean>
so 1.9.3 it is :)
rickmasta has quit [Quit: Leaving...]
br4ndon has joined #ruby
<Frederick>
guys im facing issues installing kibana (www.kibana.org) Ubuntu 10.04 (Lucid Lynx). When I do bundle install I get Bundler::GemfileNotFound but sudo gem install bundler seems oki. Any ideas? It really seems environment related. DO you have any ideas?
mercwithamouth has joined #ruby
<Hanmac>
bean stuff of 1.9.3 should works with 2.0 too
daniel_- has joined #ruby
<bean>
should, but you'd be surprised
motto has quit [Quit: Sto andando via]
jjbohn|afk is now known as jjbohn
<carloslopes>
Frederick: bundle install is different than gem install
<Hanmac>
bean can you specifiy it?
alex__c2022 has quit [Quit: alex__c2022]
m8 has joined #ruby
<bean>
Hanmac: just unsure on a lot of chef / berkshelf stuff
<Frederick>
carloslopes: im really noob on ruby sO I think im doing some misconfig
tonini has quit [Remote host closed the connection]
<Frederick>
can you please point me some link or just check with me if you got some time?
<Frederick>
cause im 100% sue im following the docs
<carloslopes>
Frederick: to use bundler, you need to add a Gemfile file on your directory.. see http://gembundler.com/
<carloslopes>
Frederick: gem install will install a gem on your system and 'bundler install' will install all gems specified on your Gemfile
<TMM_>
is there anyone here who has some experience with treetop and has a moment to look at my grammar? I'm getting such weird errors when I try to add references to my grammar. The grammar works fine without the references, but I'm sure I've done something really silly but I just can't find it
averiso has quit [Quit: Computer has gone to sleep.]
<carloslopes>
Frederick: i never used it, i think you need to add a Gemfile at the root of your project's dir, and inside the Gemfile define 'gem "kibana"'
banister_ has quit [Read error: Connection reset by peer]
blacktulip has joined #ruby
banisterfiend has joined #ruby
interactionjaxsn has joined #ruby
Mattix has quit [Ping timeout: 252 seconds]
tommyvyo has quit [Quit:]
yshh has quit [Read error: Connection reset by peer]
geggam_wk has quit [Quit: leaving]
jbueza1 has joined #ruby
wmoxam has quit [Ping timeout: 256 seconds]
sheerun has joined #ruby
sheerun has quit [Max SendQ exceeded]
geekbri has quit [Remote host closed the connection]
sheerun has joined #ruby
sheerun has quit [Max SendQ exceeded]
interactionjaxsn has quit [Ping timeout: 260 seconds]
jbueza has quit [Ping timeout: 260 seconds]
yshh has joined #ruby
sheerun has joined #ruby
jbynum has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
javos has quit [Quit: javos]
danslo has quit [Ping timeout: 252 seconds]
v0n has quit [Read error: Operation timed out]
MehLaptop has quit [Remote host closed the connection]
agarie has joined #ruby
appamatto has joined #ruby
pipework has quit [Remote host closed the connection]
cantonic has joined #ruby
TooTubular has joined #ruby
blaxter has joined #ruby
d2dchat has quit [Remote host closed the connection]
edvinasbartkus has quit [Ping timeout: 258 seconds]
appamatto has quit [Changing host]
appamatto has joined #ruby
danslo has joined #ruby
elico has joined #ruby
josefrichter_ has quit [Quit: josefrichter_]
elico has quit [Client Quit]
tommyvyo has joined #ruby
MehLaptop has joined #ruby
bradleyprice has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
marcdel has quit []
Xeago has joined #ruby
kofno has joined #ruby
tmiller has quit [Remote host closed the connection]
nobuoka has joined #ruby
dmiller2 has joined #ruby
tmiller has joined #ruby
jjbohn is now known as jjbohn|afk
chussenot has quit [Quit: chussenot]
tgunr has joined #ruby
hbpoison has joined #ruby
<tgunr>
Im getting an error `/opt/local/lib/ruby/gems/1.8/gems/bundler-1.3.0/lib/bundler/runtime.rb:33:in `setup': You have already activated rack 1.5.2, but your Gemfile requires rack 1.4.5. Using bundle exec may solve this" but no diea how to use bundle exec to fix it.
dustint has quit [Quit: Leaving]
codecop has quit [Remote host closed the connection]
Yakko_ has joined #ruby
huoxito has joined #ruby
appamatto has quit [Ping timeout: 256 seconds]
Guedes0 has joined #ruby
Yakko has quit [Ping timeout: 256 seconds]
dmiller2 has quit [Ping timeout: 256 seconds]
tmiller has quit [Ping timeout: 245 seconds]
elux has quit [Ping timeout: 245 seconds]
nomenkun has quit [Remote host closed the connection]
xbob has quit [Quit: Leaving]
BadDesign has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<tgunr>
ok i figured out to use `bundle exec thin -D start' but how do i fix things so I dont need to use 'bundle exec' ?
tommyvyo has quit [Quit:]
mr-rich has joined #ruby
Virunga has joined #ruby
Sicp has quit [Quit: Leaving]
marcdel has joined #ruby
postmodern has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
imami|afk is now known as banseljaj
ner0x has quit [Quit: Leaving]
jjbohn|afk is now known as jjbohn
<mr-rich>
Hello. Not to start a flame war or anything, but what do people prefer for creating gems? Bundler? From scratch? Another tool? I an not a beginning programer, but I am somewhat new to Ruby, so consider me an amature ... I've never created a gem before.
<Hanmac>
mr-rich i use rake
emmanuelux has quit [Quit: emmanuelux]
appamatto has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
<lewis>
glob('**/*') what does the two asterisks mean
<gf3>
mr-rich: Once you have your gemspec written it's pretty easy to maintain manually
<gf3>
lewis: It's recursive
pitzips has quit [Remote host closed the connection]
<lewis>
gf3: can you be more explicit please
<lewis>
glob('*/*')
<Hanmac>
lewis ask "ri glob" or "man glob"
<gf3>
lewis: It will match all files all the way down the directory tree
<gf3>
lewis: Versus just the directories in the current dir
mattbl has quit [Quit: This computer has gone to sleep]
<Hanmac>
its directories all the way down :P
mockra has quit [Remote host closed the connection]
Guedes0 has quit [Ping timeout: 240 seconds]
MehLaptop has quit [Remote host closed the connection]
lushious has joined #ruby
Beoran__ has quit [Ping timeout: 245 seconds]
failshell has quit [Remote host closed the connection]
_maes_ has joined #ruby
dfried has quit [Quit: dfried]
carloslopes has quit [Remote host closed the connection]
marr has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
lushious has quit [Client Quit]
axl_ has quit [Quit: axl_]
danslo has quit [Quit: danslo]
<lewis>
I understand that
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<apeiros_>
Xeago: I finally ordered my machine :D
<lewis>
I understand that ** means that it matches directories recursively somewhat but I don't understand how it's used. example glob('*') and glob('**') return the same thing
headius has joined #ruby
the_jeebster has joined #ruby
<apeiros_>
lewis: only if your directories are only 1 level deep
<apeiros_>
try it in a dir with nested dirs
<lewis>
glob('*/*') return the files in the current folder and the direct subsequent folders
<apeiros_>
if you want superfun, try glob('/**/*') vs glob('/*/*') :-p
<lewis>
glob('**/*') return the files in the current folder and all the way down in the directories hierarchy
* slash_nick
is globbing diring and finding all over the place today
mockra has joined #ruby
<slash_nick>
apeiros_: what sort of machine did you get?
blacktulip has quit [Remote host closed the connection]
<Eiam>
wow, why is my google chrome.app 2 GB jesus
<lewis>
apeiros_: did you try
<apeiros_>
slash_nick: my first windows machine ever. gaming. sabertooth x79, i7 3820, gtx 660 ti
Morkel has joined #ruby
<slash_nick>
ah scary, have fun with it! don't code on it it's bad for your health
Yakko has joined #ruby
<slash_nick>
blood pressure, quality of life, etc
<apeiros_>
coding on windows?
tenmilestereo has quit [Quit: Leaving]
<apeiros_>
do I seriously make that masochistic impression?
sambao21 has quit [Quit: Computer has gone to sleep.]
hashmal has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
invisime has quit [Quit: Leaving.]
bradhe has joined #ruby
grayson has quit [Quit: Computer has gone to sleep.]
Spooner has joined #ruby
josefrichter_ has joined #ruby
sambao21 has joined #ruby
ffranz has quit [Quit: Leaving]
<josefrichter_>
hi, what's the proper way of testing whether a float is greater than another float AND smaller than yet another float? is there a "shortcut", please? using ranges or something?
TooTubular has quit [Quit: Leaving...]
<Spooner>
josefrichter_, x.between?(y, z) Though that is inclusive. of the end-points.
* apeiros_
wonders whether that should ever matter with floats
allaire has joined #ruby
<Spooner>
Oh, that is true, I suppose.
<josefrichter_>
Spooner nice! inclusive is ok, thanks
<apeiros_>
I'm really wondering
<apeiros_>
I'm quite not sure about that
mercwithamouth has quit [Ping timeout: 256 seconds]
ffranz has joined #ruby
rgbdev has quit [Ping timeout: 245 seconds]
<Hanmac>
hmmmm i recently find out that "unless" Is NOT equal to "if not" ... if someone is interested
Ankhers has quit [Remote host closed the connection]
<apeiros_>
Hanmac: only if you mess up priority
<apeiros_>
s/priority/precedence/
kirun has quit [Quit: Client exiting]
<Hanmac>
apeiros_ no, if i mess up with the "!" method :P
<lewis>
Hanmac: unless "it's true"
dfried has joined #ruby
<apeiros_>
Hanmac: not uses the ! method too?
<Spooner>
Hanmac, "unless bleh" is equal to "if not (bleh)" surely?
<apeiros_>
evil…
<Hanmac>
apeiros_ "not" used the "!" method, but "unless" does not :P
<apeiros_>
I still think allowing the definition of ! is inconsistent and bad
<banisterfiend>
apeiros_: i agree, did matz give any reason why he allowed it?
jerius has quit [Ping timeout: 272 seconds]
<apeiros_>
banisterfiend: pressure from testing frameworks like rspec
<apeiros_>
at least that was my impression
<lewis>
I disagree
mityaz has quit [Quit: See ya!]
<apeiros_>
+ "I'm sure people will do the right thing"
ndboost has quit [Remote host closed the connection]
<lewis>
unless and ! have their place, people process words differently in their head
<apeiros_>
*this* is why `unless` and `if not` can differ. because people can redefine what `not` actually does
<apeiros_>
that's inconsistent and thus IMO bad
thinkclay has joined #ruby
<xrq>
redefining not sounds like a horrible hack
<apeiros_>
s/sounds like/IS/
<slash_nick>
unless sucks.... "unless ; else;" <- need i say more?
statarb3 has quit [Quit: Leaving]
<lewis>
apeiros_: well peope can redefine almost anything in ruby
<apeiros_>
slash_nick: unless is nice, especially inline. but I wouldn't ever use it with an else clause.
<lewis>
so In your opinion it's bad
<slash_nick>
inline it's okay
<slash_nick>
apeiros_: using it anyway other than inline, you're setting yourself up for someone to come behind you adding elsif else clauses
<apeiros_>
lewis: keyword "almost" which you throw like it wouldn't mean anything is pretty important there.
<Hanmac>
hmm overwritting the "!" method is totaly evil ... i got "Maybe IRB bug!" :D
<apeiros_>
lewis: there's a good reason *some* things can't be redefined.
mootpointer has joined #ruby
<lewis>
now we're going in philosophical territory
<lewis>
! doe not bother me
<lewis>
does*
tealmage has joined #ruby
<shevy>
lewis it can be a problem if 100000 people use 100000000 different things
<lewis>
as far as im concerned
<shevy>
like, fragmentation
<shevy>
I like that I can use "?" as part of the method name
<shevy>
if cat.alive?
<shevy>
slay(cat)
<lewis>
it can be a problem if 100000 people use 1 unique thing
fir_ed has joined #ruby
<shevy>
Why? When it is standardized? That seems awesome man
beneggett has quit [Quit: Computer has gone to sleep.]
<banisterfiend>
lewis: we can redefine most things in ruby, but there should still be some basic things that any code can rely on. IMO the behaviour of ! should be one of them
<shevy>
"abc ".strip
<lewis>
lack of flexibility
<apeiros_>
lewis: it doesn't bother you because almost nobody actually does redefine it. So chance is slim that you will be bitten. I'm pretty sure it will bother you should you be bitten by it.
<apeiros_>
And I'd wager that should you ever be bitten by it, the redefinition of ! was for no good reason.
<lewis>
banisterfiend: exactly! my point
DrShoggoth has joined #ruby
<xrq>
banisterfiend: if does serve as a good sanity check of the developers. if you discover that ! has been redefined then you easily know you shouldn't use that code
justsee has joined #ruby
<banisterfiend>
lewis: no...my point is inline with apeiros_'s :) I dont think ! should allow multiple definitions
<apeiros_>
xrq: indeed
<lewis>
banisterfiend: oops i meant apeiros_ my point! it does not bother me. period
<apeiros_>
xrq: truly horrible code monkey patches all core classes by removing all their methods :D
<banisterfiend>
lewis: then you're probably just not thinking hard enough :)
<lewis>
banisterfiend: I guess I'm not the only one- including those who thought it best to leave it open to being redefined
rads has joined #ruby
<apeiros_>
that much is obvious, yes
luckyruby has quit [Remote host closed the connection]
<lewis>
it's astonished me how you guys are sounds absolute in your reasoning
<lewis>
lol im losing my english in the process
<banisterfiend>
lewis: can you think of an actual use case for it?
dmiller2 has joined #ruby
Zai00 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<lewis>
banisterfiend: flexibility. when you have bang method named with !, maybe you want ! to mean something else too..
lessless has quit [Ping timeout: 240 seconds]
beneggett has joined #ruby
<lewis>
banisterfiend: again im just saying it does not bother me
<banisterfiend>
lewis: what?
<xrq>
banisterfiend: the psychology part of a job interview? ;)
<banisterfiend>
lewis: can you show an example of that?
<aedorn>
so much python ... so little vicodin
* apeiros_
suspects lewis doesn't understand what ! actually does…
<apeiros_>
this isn't about foo! bang methods
<lewis>
lol
<banisterfiend>
xrq: well, if you're going to add a crazy feature the use-cases should be cool in proportion to the craziness IMO :) if you can't think of something 'cool' in proportion to the craziness then it shouldn't be introduced
<lewis>
ask me to repeat myself
<lewis>
dont assume what i meant
<lewis>
im done
<lewis>
it's going no where
wmoxam has joined #ruby
<banisterfiend>
lewis: an you provide example code showing off that 'flexibility' you talk about? because '!' has 0 to do with 'bang methods'
<banisterfiend>
apeiros_: i didnt know people use g+ :)
<apeiros_>
me neither
<apeiros_>
I mean I'm on g+, but I haven't actually used it ever…
cheese1756 has quit [Excess Flood]
<banisterfiend>
redefining ~obj could be cool though
<banisterfiend>
can we do that?
<banisterfiend>
yeah we can, nice
yashshah_ has quit [Read error: Connection reset by peer]
yashshah_ has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
<apeiros_>
I think some localization tool used String#~ to do the translation
axl_ has quit [Quit: axl_]
nignaztic has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
rippa has quit [Ping timeout: 240 seconds]
Morkel has quit [Quit: Morkel]
RORgasm has quit [Ping timeout: 276 seconds]
cheese1756 has joined #ruby
jlast has quit [Remote host closed the connection]
danman has quit [Quit: danman]
mljsimone has quit [Remote host closed the connection]
jpcamara has quit [Quit: jpcamara]
mootpointer has joined #ruby
sheerun has quit []
mattbl has quit [Quit: This computer has gone to sleep]
eggy22 has joined #ruby
eggy22 has left #ruby [#ruby]
nazty has quit [Ping timeout: 256 seconds]
sheerun has joined #ruby
sheerun has quit [Client Quit]
icole has quit [Remote host closed the connection]
ckrailo has quit [Ping timeout: 276 seconds]
celestius has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
Davey has joined #ruby
nopolitica has joined #ruby
<Hanmac>
apeiros_ what is your biggest gem you have installed?
<apeiros_>
probably rails
<apeiros_>
though, rails itself is I think rather small. it just has tons of dependencies.
bluOxigen has quit [Ping timeout: 252 seconds]
tcstar has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
<Hanmac>
:P ... one of my gems i have installed have > 220MB *.o files :P
<the_jeebster>
wtf
kpshek has quit []
<the_jeebster>
which gem is 220mb?!
generalissimo has quit [Remote host closed the connection]
<Mon_Ouie>
Rubygems doesn't get rid of those?
<apeiros_>
Hanmac: parsing…
jbueza1 has quit [Ping timeout: 246 seconds]
<Hanmac>
the_jeebster: the source size is 300kb ... while building *.o files are generated with combined size of more than 220MB ... and then a 50MB *.so file apears
luckyruby has joined #ruby
<Xeago>
wat!!
subbyyy has joined #ruby
ckrailo has joined #ruby
<Xeago>
you might actually check your linker double twice over again
<Hanmac>
Xeago: if i strip the *.so file it implodes into an 1,1MB file :P
<Hanmac>
maybe because of shame
hasimo-t has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
Yakko_ has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
<Mon_Ouie>
Maybe lots of C++ templates?
mattbl has quit [Client Quit]
<banisterfiend>
Mon_Ouie: 'alut
<Mon_Ouie>
'alut
pitzips has joined #ruby
* Hanmac
looks back at a list of templates ... and template templates that use other templates and C macros that uses this templates, and macro macros that generate macros ... yeah Mon_Ouie there is many many stuff :P ... but i thy to avoid them with "visabillity hidden"
jbueza has joined #ruby
emergion has joined #ruby
<Eiam>
argh i hate SSL
skattyadz has joined #ruby
<Eiam>
there is 1 google hit for OpenSSL::SSL::SSLError - SSL_accept SYSCALL returned=5 errno=0 state=SSLv2/v3 read client hello A:
alanp has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
marcdel has quit []
jbueza has quit [Read error: Connection reset by peer]
ckrailo has quit [Quit: Computer has gone to sleep.]
tomku has quit [Ping timeout: 245 seconds]
Davey has quit [Ping timeout: 256 seconds]
* apeiros_
off to bed, n8 guys & gals
rufio_ has quit [Remote host closed the connection]
<Eiam>
night apeiros_
freeayu has joined #ruby
Davey has joined #ruby
<slash_nick>
Goodnight!
Hanmac has quit [Ping timeout: 245 seconds]
Inside has joined #ruby
bnjamin has joined #ruby
TooTubular has joined #ruby
_veer has joined #ruby
<Eiam>
is there etiquette for taking someones ruby gem & modifying it?
Banistergalaxy has quit [Ping timeout: 256 seconds]
<Eiam>
just fork it on github, make your changes & gem build it?
<Eiam>
are you supposed to rename it?
bnjamin has quit [Remote host closed the connection]
TooTubular has quit [Client Quit]
<Spooner>
Eiam, Depends on the license (if any).
bnjamin has joined #ruby
Banistergalaxy has joined #ruby
<banisterfiend>
Eiam: well you cant push it unless you rename it
<banisterfiend>
you can call a local gem whatever u want
<Eiam>
MIT
<Spooner>
eiam You mean for your own use or pushing a modified version?
marcdel has joined #ruby
<Eiam>
yeah I don't mean to push the changes back out
<Inside>
man ruby, why you so pretentious? why not have a if not like any other language? noooo you gotta use 'unless'
<Spooner>
Do what you like with it then?
<banisterfiend>
Eiam: well then who cares what u call it, they're not going to be offended if you're just using it locally - esp. since they're probably never going to find out :)
<Eiam>
well, we have an internal gem repo
<Eiam>
like gems.blah.com
<Eiam>
so "locally" means more "internally"
mrsolo has quit [Quit: Leaving]
<Eiam>
banisterfiend: unless they work here!
<Spooner>
You could always just do a push request and wait for the owner to re-release, but I'm guessing you had no luck with that.
<banisterfiend>
Eiam: well, ask him then, not us :)
<Eiam>
yeah i couldn't do a push request externally
<Eiam>
ill just fork it
<Eiam>
and rename it internally
<Eiam>
like gem-featureAdded
dfried has quit [Quit: dfried]
<Eiam>
seems like the safest thing
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
Xeago has quit [Remote host closed the connection]
banseljaj is now known as imami|afk
axl_ has joined #ruby
cupakromer has joined #ruby
jpcamara has joined #ruby
axl_ has quit [Client Quit]
jsilver has quit [Remote host closed the connection]