<Ox0dea>
havenwood: Locked and loaded if you're game.
mistermocha has quit [Ping timeout: 250 seconds]
safe has joined #ruby
Musashi007 has joined #ruby
zast has joined #ruby
nerium has quit [Quit: nerium]
felixal has quit [Ping timeout: 276 seconds]
Musashi007 has quit [Client Quit]
graffix has joined #ruby
Moosashi has quit [Quit: Moosashi]
tubuliferous_ has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
djbkd has joined #ruby
symm- has joined #ruby
Moosashi has quit [Quit: Moosashi]
rkazak has joined #ruby
rubie has quit [Remote host closed the connection]
qhp has quit [Quit: Leaving]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
qhp has joined #ruby
valetudo has quit [Ping timeout: 268 seconds]
fullofcaffeine has joined #ruby
<zacts>
hi rubyists
fullofca_ has quit [Ping timeout: 244 seconds]
rubie has joined #ruby
fullofca_ has joined #ruby
znz_jp has joined #ruby
BTRE has quit [Ping timeout: 244 seconds]
kuroro has joined #ruby
fullofcaffeine has quit [Ping timeout: 276 seconds]
dc2 has joined #ruby
User458764 has joined #ruby
Moosashi has joined #ruby
dtzuzu has quit [Ping timeout: 260 seconds]
IrishGringo has joined #ruby
cabargas has joined #ruby
symm- has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
DonOtreply has joined #ruby
pawnbox has joined #ruby
dc2 has quit [Ping timeout: 260 seconds]
akkad has joined #ruby
BTRE has joined #ruby
madgen_ has quit [Ping timeout: 240 seconds]
rattatmatt has quit []
Mattx has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
<Mattx>
Hey guys, I'm getting a conflict error wirh rake. My project uses rake 10.x, but I also have version 11.x installed. The error message is this: Gem::ConflictError: Unable to activate standalone_migrations-4.0.2, because rake-11.1.1 conflicts with rake (~> 10.0)
griffindy has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
<Mattx>
Why does ruby care if I have more than one version installed if I only need v10 here?
<Mattx>
Any fix?
youch has joined #ruby
Moosashi has quit [Quit: Moosashi]
fullofca_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
bkxd has joined #ruby
_blizzy_ has joined #ruby
ensyde__ has quit [Ping timeout: 260 seconds]
coffeecupp has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
cdg_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
ejnahc has quit [Quit: Lost terminal]
bkxd has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
coffeecupp has quit [Client Quit]
tubuliferous_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
braincra- has quit [Quit: bye bye]
dikaio has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: My people need me...]
nofxx has quit [Ping timeout: 268 seconds]
merida has joined #ruby
graffix has left #ruby [#ruby]
LazyNerd has quit [Quit: You had my curiosity. But now you have my attention]
LazyNerd has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
daguilaraguilar has quit [Remote host closed the connection]
braincrash has joined #ruby
djbkd has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 246 seconds]
Mattx has quit [Quit: Leaving]
treaki_ has joined #ruby
gokulnath has quit [Ping timeout: 244 seconds]
cpup has quit [Ping timeout: 250 seconds]
treaki has quit [Ping timeout: 260 seconds]
diegoaguilar has joined #ruby
cpup has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<shevy>
random passerby!
tvon has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
gokulnath has joined #ruby
merida has quit [Remote host closed the connection]
merida has joined #ruby
freerobby has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 260 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
hackerdude has quit [Quit: Bye, everyone]
yqt has quit [Ping timeout: 260 seconds]
dtzuzu has joined #ruby
mclong has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
gokul_ has joined #ruby
Olipro_ has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Olipro_ is now known as Guest50706
ramfjord has quit [Ping timeout: 244 seconds]
gokulnath has quit [Ping timeout: 276 seconds]
dtzuzu has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
gix- has quit [Ping timeout: 244 seconds]
krz has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
blackmesa has joined #ruby
gix has joined #ruby
pawnbox has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
<RickHull>
RIP Mattx
<RickHull>
the answer probably is: don't specify a rake version in your gemspec
<RickHull>
just a guess
dc2 has joined #ruby
Moosashi has joined #ruby
<Ox0dea>
RickHull: Have you learned nothing from the left-pad debacle? :P
Moosashi has quit [Client Quit]
snath has joined #ruby
snath has left #ruby [#ruby]
sudoubuntu has joined #ruby
jcdesimp has quit [Ping timeout: 268 seconds]
tristanp has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
toretore has joined #ruby
arescorpio has quit [Quit: Leaving.]
<RickHull>
here is what i have learned: code sharing++ dependencies--
<toretore>
cake++
<Ox0dea>
?cake
<ruby[bot]>
here's your cake:
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jcdesimp has joined #ruby
sdothum has joined #ruby
GnuYawk has joined #ruby
youch has quit [Ping timeout: 244 seconds]
fullofcaffeine has joined #ruby
dc2 has quit [Ping timeout: 244 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Read error: Connection reset by peer]
kfpratt has quit [Remote host closed the connection]
queequeg1 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
queequeg1 has joined #ruby
krz has quit [Read error: Connection reset by peer]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xiti has quit [Quit: Xiti]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
matp has quit [Remote host closed the connection]
Es0teric has joined #ruby
aryaching has joined #ruby
sdothum has joined #ruby
yatish27 has joined #ruby
kfpratt has joined #ruby
Kruppe has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
fexilal has joined #ruby
Yzguy has joined #ruby
Kruppe has joined #ruby
mic_e has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
kfpratt has quit [Ping timeout: 248 seconds]
hk238 has joined #ruby
crowell has quit [Remote host closed the connection]
Cohedrin has joined #ruby
gokul_ has quit [Ping timeout: 246 seconds]
freerobby has quit [Ping timeout: 260 seconds]
queequeg1 has quit [Ping timeout: 268 seconds]
edwinvdgraaf has joined #ruby
Es0teric has quit [Ping timeout: 276 seconds]
fullofcaffeine has quit [Remote host closed the connection]
dc2 has joined #ruby
Es0teric has joined #ruby
PaulCape_ has joined #ruby
hahuang61 has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
aryaching has quit []
edwinvdgraaf has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
pawnbox has quit [Remote host closed the connection]
queequeg1 has joined #ruby
pawnbox has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
binaryplease2 has joined #ruby
crowell has joined #ruby
mtkd has quit [Ping timeout: 244 seconds]
binaryplease1 has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
Guest35913 has joined #ruby
mtkd has joined #ruby
sudoubuntu has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jgt1 has joined #ruby
siaw has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
mondok has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
jgt1 has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
domgetter has joined #ruby
Yzguy has quit [Quit: Zzz...]
abhishek has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
jcdesimp has quit [Remote host closed the connection]
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
saneax_AFK is now known as saneax
uglybandersnatch has joined #ruby
Es0teric has joined #ruby
Guest35913 has quit [Read error: Connection timed out]
djbkd has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
Guest35913 has joined #ruby
jenrzzz has joined #ruby
diegoaguilar has quit [Ping timeout: 276 seconds]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
htmldrum_ has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 248 seconds]
cabargas has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sudoubuntu has joined #ruby
sudoubuntu has quit [Client Quit]
uglybandersnatch has quit [Ping timeout: 252 seconds]
Guest35913 has quit [Ping timeout: 244 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<b|ackwolf>
require_relative doesn't work unless I shuffle the current directory path into $LOAD_PATH
jgt1 has quit [Ping timeout: 260 seconds]
<b|ackwolf>
*why
roshanavand has quit [Quit: This computer has gone to sleep]
devbug has quit [Ping timeout: 268 seconds]
ytti has joined #ruby
blackmesa has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
devbug has joined #ruby
Timba-as has joined #ruby
mistermocha has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
rubie has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
pawnbox has quit [Remote host closed the connection]
<hanmac>
shevy & apeiros & adaedra: i don't know if you follow the changelog, but "[x, y].max" and "[x, y].min" are now optimized so they do not generate an Array anymore ;P
tubuliferous_ has quit [Ping timeout: 244 seconds]
tvon has quit [Remote host closed the connection]
ytti has joined #ruby
rubie has quit [Ping timeout: 252 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
mondok has quit [Ping timeout: 244 seconds]
tristanp has quit [Ping timeout: 252 seconds]
uglybandersnatch has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
Tempesta has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
ytti has joined #ruby
dgncn has quit [Excess Flood]
Timba-as has joined #ruby
bronson has joined #ruby
dgncn has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
bronson has quit [Ping timeout: 276 seconds]
nobitanobi has quit [Remote host closed the connection]
roshanavand has joined #ruby
robbyoconnor has joined #ruby
LoneHermit has joined #ruby
sepp2k has joined #ruby
Balzrael has joined #ruby
tildes has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
LoneHermit has quit [Ping timeout: 252 seconds]
superfox_il_volp has joined #ruby
ytti has quit [*.net *.split]
madgen_ has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
infernix has quit [Ping timeout: 252 seconds]
etehtsea has joined #ruby
pawnbox_ has joined #ruby
lxsameer has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
uglybandersnatch has quit [Ping timeout: 244 seconds]
ytti has joined #ruby
Timba-as has joined #ruby
s2013 has joined #ruby
sandstrom has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
ytti has quit [Ping timeout: 240 seconds]
infernix has joined #ruby
ytti has joined #ruby
dc2 has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
blackmesa has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
Ropeney has joined #ruby
kkkay has quit [Ping timeout: 250 seconds]
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
etehtsea has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
tvon has joined #ruby
Musashi007 has joined #ruby
<Musashi007>
can i ask you guys a git question regarding my ruby project?
<Ropeney>
ask away
roshanavand has joined #ruby
mclong has quit [Remote host closed the connection]
User458764 has joined #ruby
roshanavand has quit [Client Quit]
ytti has quit [*.net *.split]
<Musashi007>
ty. I have a project whose pointer is pointing to “b” and I want it to be pointing to “p” while keeping all the current changes. is that possible?
<Musashi007>
i was looking and it looks like i need to do a hard reset which is kind of scary to me
<Musashi007>
is it posible that’s the only way?
<Ropeney>
im hoping p and b have meanings in your head
<Ropeney>
is b and p branches, commits, tags ?
ytti has joined #ruby
<Musashi007>
they are both branches
<Musashi007>
I’d like to cause the current version to be called master
pandaant has joined #ruby
<Ropeney>
why not merge it into masteR?
Timba-as has quit [Read error: Connection reset by peer]
tvon has quit [Ping timeout: 260 seconds]
<Musashi007>
can’t think of a reason not to
<Musashi007>
although the master is a previous version from this
ytti has quit [Ping timeout: 240 seconds]
<Ropeney>
previous version, as in completely new code base?
<Ropeney>
or previous version, as in a new feature?
<Musashi007>
I’m not sure if I’m understanding your question but it should be
<Musashi007>
the latter.
<Ropeney>
so you want to merge it into master then
<Musashi007>
new features have been added and it’s now on a different branch
<Musashi007>
ok let me try to formulate the command
Timba-as has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
dmr8 has quit [Client Quit]
dmr8 has joined #ruby
superfox_il_volp has joined #ruby
Timba-as has joined #ruby
tvon has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
rolha has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
rikkipitt has joined #ruby
Timba-as has quit [Client Quit]
lxsameer has quit [Ping timeout: 276 seconds]
hays has quit [Ping timeout: 240 seconds]
tvon has quit [Ping timeout: 252 seconds]
hays has joined #ruby
hays_ has joined #ruby
gmas has joined #ruby
hays has quit [Ping timeout: 240 seconds]
Jackneill has joined #ruby
pawnbox has joined #ruby
rubie has joined #ruby
s2013 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
moeabdol1 has quit [Ping timeout: 248 seconds]
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
Riviera- has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
uglybandersnatch has joined #ruby
saneax is now known as saneax_AFK
intrigueD has joined #ruby
killerbunny has joined #ruby
saneax_AFK is now known as saneax
<killerbunny>
Was wondering, if i want to create a REST api which framework is the goto framework?
<Papierkorb>
killerbunny: At this point, your question could be rephrased as: "I want to create a REST API, what programming language should I use?"
<Papierkorb>
killerbunny: What I want to say is that you need to be more precise what you actually want.
<Papierkorb>
killerbunny: Using Rails for a REST API is in itself perfectly fine. Many people are doing that in fact. If you have no idea what frameworks there are, take a look at it. Rails heavily relies on the MVC pattern though.
<killerbunny>
Ah okey so its to broad... What im really asking is a REST api without any gui. I tried using Rails, but i found my self disabling and removing alot of what it offers
<Papierkorb>
killerbunny: So, if you hate MVC, or it really is a bad fit for your API, Sinatra is the next most popular web framework as far I can tell
<Papierkorb>
killerbunny: Then try Sinatra. If you would like to try something even smaller or just "different", have a look at Roda.
<killerbunny>
Papierkorb: i dont have MVC, i just hating trying to push a squire block through a triangled hole :)
<Papierkorb>
killerbunny: Yeah that's fine, MVC is great for some things and bad at others :)
<Papierkorb>
E.g. I like to have some kind of "Controllers", in terms of having classes provide parts of the API (As in UsersController, SearchController, ...). Sinatra is a bad fit for me, too fiddly to get it to work for me. Roda works great for me though.
<Papierkorb>
But Roda is much less commonly used, so if you need help, you're either off to read the documentation (Which is fine for the most part), or the source code itself
<Papierkorb>
killerbunny: Do you know or like Sequel (ORM gem)?
<killerbunny>
Papierkorb: No, but i will look into it
<Papierkorb>
killerbunny: Just asking, as the maintainer and creator of Sequel is the same one behind Roda, so if you like one, you may like the other ;)
<killerbunny>
Papierkorb: Again while trying rails i used active record, which is fine but again i think does way to much
freerobby has joined #ruby
<Papierkorb>
Sequel is modeled after the ActiveRecord-pattern too, but is much more modular. It can do a lot and I really like it because of it, as I really hate cluttering my application with (partial) SQL statements
<killerbunny>
Papierkorb: I will look into it.
<killerbunny>
Papierkorb: I have not programmed that much in Ruby, but looking more and more into it. Im a iOS developer and everything in the iOS eco system which is not iOS is usually coded in Ruby.
<Papierkorb>
Okay, that's interesting to hear
<killerbunny>
Guess its easier, because you can assume some version of ruby installed on every mac.
freerobby has quit [Ping timeout: 248 seconds]
User458764 has joined #ruby
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
<atmosx>
Do I need to worry about mutex when using threads for a simple REST API json fetch loop? Data is processed and added to a hash.
<atmosx>
but it's all in memory
<adaedra>
A mutex is here to protect shared access to the same instance.
<adaedra>
Are you in this case?
Balzrael has quit [Remote host closed the connection]
codecop has joined #ruby
rikkipitt has quit [Remote host closed the connection]
<atmosx>
adaedra: depends how a share instance is defined I guess. Every threads must push the JSON object to the same Hash, isn't that hash a shared object?
sandstrom has quit [Quit: My computer has gone to sleep.]
<adaedra>
well you tell me.
<atmosx>
I think it is
<adaedra>
Then you should protect your access to this hash.
<atmosx>
so I need mutex
<atmosx>
okay ty
uglybandersnatch has quit [Ping timeout: 248 seconds]
GitGud is now known as sendpass
biberu has joined #ruby
biberu has quit [Remote host closed the connection]
biberu has joined #ruby
freerobby has joined #ruby
rikkipitt has joined #ruby
sendpass is now known as TheGreatGudsby
JFlash has joined #ruby
<JFlash>
hello
mistermocha has joined #ruby
<JFlash>
what's the equivalend to Python's Celery and python-RQ in ruby land?
tristanp has joined #ruby
pawnbox has joined #ruby
<JFlash>
ie, what are the most popular libs (gems?) to work with messaging/queueing sofware such as Redis and rabbitMQ?
<ytti>
maybe sidekiq or resque for celery
<Papierkorb>
JFlash: for rabbitMQ (Or AMQP in general?) there's "bunny"
tvon has joined #ruby
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Papierkorb>
(But never really used it beyond connecting to a local rabbit mq)
<ytti>
i've only used rabbitmq as mqtt
<ytti>
with gem called 'mqtt' :/
<atmosx>
adaedra: the mutex version is even slower than the simple iteration version
Aviio has joined #ruby
<JFlash>
is there a channel whre i can find out more options
<atmosx>
hm
<JFlash>
like ruby-web
<JFlash>
maybe #sinatra
mistermocha has quit [Ping timeout: 250 seconds]
<Papierkorb>
JFlash: For rails, #RubyOnRails
tristanp has quit [Ping timeout: 252 seconds]
madgen_ has quit [Ping timeout: 248 seconds]
<JFlash>
thanks guys, I will take a look at resque and bunny
<JFlash>
ttygl
JFlash has left #ruby ["Leaving"]
pawnbox has quit [Ping timeout: 252 seconds]
tvon has quit [Ping timeout: 252 seconds]
<Papierkorb>
Isn't resque found more in old applications and sidekiq in newer ones..? Whatever.
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
bkxd_ has quit [Ping timeout: 264 seconds]
Timba-as has joined #ruby
pandaant has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
peteykun has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
LoneHermit has joined #ruby
krz has joined #ruby
bronson has joined #ruby
sergey_makagon has joined #ruby
madgen_ has joined #ruby
bkxd has joined #ruby
Snowy has joined #ruby
Snowy has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
<shevy>
oh wait
<shevy>
there is a link ... "Perl 6 is a sister language"
nicoulaj has joined #ruby
<shevy>
that's actually an even worse split than python2 to python3
dionysus69 has quit [Remote host closed the connection]
nicoulaj has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
hotpancakes has joined #ruby
<Caelum>
with the python thing, I really don't understand why they couldn't keep one source tree, just to put parens around print statements?
nicoulaj has joined #ruby
<Ox0dea>
hanmac: Why does there have to be at least one non-immediate for Fixnum elements, but not String ones?
<Ox0dea>
That seems like a bug.
graffix has joined #ruby
<smathy>
shevy, yeah, Perl6 is a very long range troll.
<ytti>
that'll happen to most language down the line
JohnBat26 has joined #ruby
fullofca_ has joined #ruby
graffix has left #ruby [#ruby]
<ytti>
either you'll become obsolete as you don't stay up-to-date with market demands
<ytti>
or you'll change too much and alianate your userbase, and they'll feel it's as much trouble learning some new greenfield language as the new rewrite
threh has quit [Ping timeout: 248 seconds]
<Caelum>
perl is pretty dead right now, even the perl conference isn't about perl anymore
nicoulaj has quit [Max SendQ exceeded]
nicoulaj has joined #ruby
uglybandersnatch has joined #ruby
nocontrol has joined #ruby
<shevy>
lol
fullofcaffeine has quit [Ping timeout: 276 seconds]
<hanmac>
Ox0dea: what do you mean?
Aviio has quit [Remote host closed the connection]
<Caelum>
it had a resurgence around 2008, when I got seriously into CPAN work, but now there are like 3 people maintaining all of CPAN
nicoulaj has quit [Max SendQ exceeded]
threh has joined #ruby
nicoulaj has joined #ruby
nocontrol has quit [Ping timeout: 248 seconds]
<Ox0dea>
$ ruby -ve 'a = -> { ObjectSpace.count_objects[:T_ARRAY] }; p [[a[], %w[foo bar].min, a[]], [a[], [1, 2].min, a[]]]'
uglybandersnatch has quit [Ping timeout: 276 seconds]
fullofca_ has quit [Remote host closed the connection]
fedexo has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
<hanmac>
Ox0dea: a that is what you mean ... yeah if there are only literals like 1, 2 then min should be optimized too ... maybe even directly to 1 XD
<Ox0dea>
hanmac: Are strings not literals?
fullofcaffeine has joined #ruby
Aviio has joined #ruby
nicoulaj has quit [Max SendQ exceeded]
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
nicoulaj has joined #ruby
<hanmac>
Ox0dea: strings are literals too
<Ox0dea>
hanmac: Then the NEWS comment is misleading.
<superfox_il_volp>
hey, how can we concatenate multiple statements using the syntax statement if (x) ? Something like perl does with `do { puts("x"); puts("y"); } if ( x == 1 );` ?
<apeiros>
stringliterals are literals. strings - any object - can always be used in a non-literal form.
camilasan has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
sudoubuntu has joined #ruby
xlegoman has quit [Quit: xlegoman]
<apeiros>
superfox_il_volp: trying to push a square form down a circular hole? :)
zast has quit [Quit: Leaving.]
<apeiros>
(foo; bar) if baz # but honestly, don't do that. just use `if baz; foo; bar; end`
<Ox0dea>
I think "must have at least one expression but literal" should be "at least one non-immediate expression".
edwinvdgraaf has quit [Remote host closed the connection]
<Ox0dea>
Fixnums and Symbols are "immediates" in this sense, and that's the behavior Array#min currently exhibits.
rubie has quit [Remote host closed the connection]
mary5030 has joined #ruby
<superfox_il_volp>
apeiros cool, thx! Am I must be missing the actual meaning of the parentheses then.
edwinvdgraaf has joined #ruby
<Ox0dea>
That is, `%i[foo bar].min` creates a new Array just like `[1, 2].min` does.
<hanmac>
Ox0dea: hm i will make a ticket that [1,2].min should be optimzed too (and maybe the part in the NEWS should be written more clearly)
nicoulaj has quit [Max SendQ exceeded]
<Ox0dea>
hanmac: I can only imagine there was good reason for not optimizing it, but I don't know what all's going on in that CMP_OPTIMIZABLE() macro.
camilasan has joined #ruby
tvon has quit [Ping timeout: 252 seconds]
nicoulaj has joined #ruby
mistermocha has joined #ruby
nocontrol has quit [Ping timeout: 250 seconds]
jackdan has quit [Quit: Lost terminal]
rubie has joined #ruby
tristanp has joined #ruby
QualityAddict has quit [Remote host closed the connection]
QualityAddict has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
rehat has joined #ruby
futilegames has joined #ruby
jhn has joined #ruby
nicoulaj has quit [Max SendQ exceeded]
<rehat>
new with ruby, If I have some instance variables like @names is there any point to defining that variable in the class? I'm guess they need to be set in the class initialize method
rikkipitt has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nicoulaj has quit [Max SendQ exceeded]
spuk has joined #ruby
<Mattx>
What I'm really trying to do is calling f.foo with some "implicit" variables/methods (such as bar)
rikkipitt has joined #ruby
nicoulaj has joined #ruby
<Papierkorb>
Mattx: Please elaborate. What are you trying to do?
nocontrol has quit [Ping timeout: 244 seconds]
<Mattx>
I want to call a method with certain parameters, without passing them to the method
<fexilal>
use class instance variables?
vdamewood has joined #ruby
A124 has quit [Read error: No route to host]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mattx>
why? because this method call another, and another, and generates many nested calls. and I don't want to pass the params all over
nicoulaj has quit [Max SendQ exceeded]
<Mattx>
nope, I'm looking for an instance method if that is possible, it can't be part of the class
xlegoman has joined #ruby
<Papierkorb>
Mattx: then have attr_accessors, or set the variables in the public API to instance variables, or have a (e.g.) Struct object containing all of the data in a single object
nicoulaj has joined #ruby
rikkipitt has quit [Ping timeout: 276 seconds]
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
<Mattx>
I know I can do all that. What about defining an instance method on the fly? is that possible?
ruby-lang159 has quit [Ping timeout: 250 seconds]
rubie has quit [Remote host closed the connection]
nicoulaj has quit [Max SendQ exceeded]
sudoubuntu has joined #ruby
nicoulaj has joined #ruby
hxegon has quit [Quit: BRB]
<Papierkorb>
Yes, but why not have it in the class?
djellemah_ has joined #ruby
<tobiasvl>
Mattx: of course
<Mattx>
simply because the value depends on the instance, not the class
GodFather has joined #ruby
<Mattx>
Papierkorb, maybe I got you wrong, show me an example just in case?
camilasan has joined #ruby
<Mattx>
tobiasvl, how?
<Papierkorb>
Mattx: You can either just sub-class the class and use that (Which I would recommend doing over the other:) OR you can just have a module A; ... ;end and then do: the_instance.extend A
<tobiasvl>
Mattx: many ways to do that, depends what you want
<Papierkorb>
Mattx: I'd only use the latter to enhance an existing object instance with (for it) unrelated information. You can also use a delegate for almost the same effect.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<smathy>
arup___, you should change your key, you included it in the error.txt in your gist.
<arup___>
what key smathy?
<smathy>
arup___, your auth key that you 'xxx'ed elsewhere.
hotpanca_ has quit []
ramfjord has joined #ruby
unreal has quit [Ping timeout: 240 seconds]
<arup___>
thanks.. forgot to remove it
griffindy has joined #ruby
gizmore has joined #ruby
ss_much has joined #ruby
diegoviola has joined #ruby
blackmesa has joined #ruby
astrobun_ has joined #ruby
youch has quit [Ping timeout: 244 seconds]
threh has quit [Ping timeout: 244 seconds]
tvon has quit [Ping timeout: 252 seconds]
AndyBotwin has joined #ruby
Aviio has quit [Remote host closed the connection]
crank1988 has quit [Max SendQ exceeded]
gregf has quit [Quit: WeeChat 1.4]
astrobun_ has quit [Ping timeout: 246 seconds]
crank1988 has joined #ruby
e4xit has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvon has joined #ruby
sneakerhax has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
jcdesimp has joined #ruby
mjuszczak has quit []
<Papierkorb>
Is there something faster do sort in descending fashion other than doing the_array.sort_by(&:foo).reverse ?
<Papierkorb>
faster as in 'takes less time'.
Synthead has quit [Ping timeout: 252 seconds]
rehat has joined #ruby
tubuliferous_ has joined #ruby
<yxhuvud>
Papierkorb, how many elements are there?
dvinciguerra has joined #ruby
freerobby has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb>
yxhuvud: Around 1k atm, expected to rise. But I'm also interested if there's simply a better solution to that line
lkkjhg has joined #ruby
rubie has quit [Remote host closed the connection]
GodFodder has joined #ruby
GodFodder has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
rubie has joined #ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
dvinciguerra has quit [Ping timeout: 248 seconds]
Synthead has joined #ruby
tenderlove has quit [Remote host closed the connection]
<rehat>
anyone know how to fix this error with making http "openssl::ssl::sslerror: ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed"
tenderlove has joined #ruby
jaruga has joined #ruby
freerobby has quit [Quit: Leaving.]
lkkjhg has quit [Read error: Connection reset by peer]
Aviio has joined #ruby
<Papierkorb>
rehat: quick guess: the connection is trying to use SSLv3 which is no longer supported by your OpenSSL installation (As it should be the case).
<rehat>
ahh ok so I just need to update that gem?
<Papierkorb>
No, if that is the case, you need to update the server.
Aviio has quit [Client Quit]
<Papierkorb>
SSLv3 is dead and must be kept dead. It's broken by design.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Papierkorb>
rehat: Please try doing a random HTTPS request, like https://google.com/ and see, if it works or has validation errors too.
<jnj>
I think I might be using private wrong in Ruby, I'm not entirely sure. I have a class that messes around with hashes, the initialize method creates the hash and then fills it using build_hash(), and I want build_hash private but I keep on getting the error `initialize': private method `build_hash' called for #<Inventory:0x007f41eff0fcc0> (NoMethodError)
nando293921 has joined #ruby
<Ox0dea>
jnj: That means you're invoking #build_hash with an explicit receiver, which is precisely what privatization prevents.
<Ox0dea>
You're not even allowed to say `self.private_method` (yet).
htmldrum has joined #ruby
htmldrum_ has joined #ruby
<shevy>
rehat have you been programming before? you don't seem to be the average ruby newcomer
last_staff has quit [Quit: last_staff]
devbug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Inside has quit [Disconnected by services]
Inside_ has joined #ruby
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
<jnj>
Ox0dea: Ah, ok - so would the explicit receiver in this case would be calling new? And when you say yet, does that mean that it's in the works? Also, what would be the best way to get around this?
<smathy>
Deja vu.
threh has quit [Ping timeout: 250 seconds]
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
<smathy>
jnj, probably in your initialize you're doing something like: foo = self.new ...; foo.build_hash; foo
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has quit [Remote host closed the connection]
<smathy>
Not self.new - but the `.build_hash` bit is what's important.
<Ox0dea>
jnj: Are you familiar with Ruby's notion of implicit `self`?
<jnj>
Ox0dea: somewhat, but honestly I really just skimmed through that part in The Well Grounded Rubyist, I'll pull up that section now
<jnj>
smathy: Yeah, I'm doing exactly that
cdg has joined #ruby
Yzguy has quit [Quit: Zzz...]
<smathy>
jnj, right, the left hand side of the . is an explicit receiver, that's what Ox0dea is telling you that you can't do with private. That's actually what private specifically (and only) prevents.
astrobun_ has joined #ruby
<smathy>
jnj, the good news is that you don't have to do that, `initialize` is an instance method, your object is already instantiated - just call the private methods with an implicit receiver.
<rehat>
shevy: yeah mainly iOS
tesuji has joined #ruby
Musashi007 has joined #ruby
<Musashi007>
@ropeney thank you for the help last night; i worked it out
ascarter has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
<jnj>
smathy: oh duh, and the implicit reciever is self whenever a method is called! I fixed my issue, I just had to turn the call from self.build_hash in init to build_hash
jcdesimp_ has joined #ruby
<smathy>
jnj, bingo!
djbkd has joined #ruby
<smathy>
jnj, anyone is forgiven for stumbling with Ruby's private implementation.
djbkd has quit [Remote host closed the connection]
<smathy>
(I was asking about it myself just yesterday :)
ta_ has joined #ruby
rubie has joined #ruby
Jackneill has quit [Remote host closed the connection]
astrobun_ has quit [Ping timeout: 268 seconds]
jcdesimp has quit [Ping timeout: 268 seconds]
<jnj>
Yeah, it's a little bit confusing but I think I got the hang of it now
ascarter has quit [Ping timeout: 244 seconds]
fullofca_ has joined #ruby
<smathy>
jnj, basically `protected` does the actual "check it's being called on me or a subclass" and `private` just prevents an explicit received no matter where you're calling it (which basically means that the method can only be called within the current lexical scope).
<Ox0dea>
Or with #send. ^_^
fullofcaffeine has quit [Ping timeout: 264 seconds]
<smathy>
:)
tvon has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
sudoubuntu has joined #ruby
sneakerhax has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
mhib has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 252 seconds]
hays_ has quit [Ping timeout: 240 seconds]
tvon has joined #ruby
duncannz has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
Yzguy has quit [Quit: Cya]
bronson has joined #ruby
zenlot has joined #ruby
zenlot6 has quit [Ping timeout: 260 seconds]
jaruga has quit [Quit: jaruga]
bronson has quit [Ping timeout: 252 seconds]
jnj has quit [Ping timeout: 276 seconds]
Yzguy has joined #ruby
Snowy has joined #ruby
Yzguy has quit [Client Quit]
duderonomy has quit [Ping timeout: 240 seconds]
rubie has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
Snowy has quit [Remote host closed the connection]
sneakerhax has joined #ruby
LoneHermit has joined #ruby
saneax_AFK is now known as saneax
<Musashi007>
man the haml room sure is dead lol
<Musashi007>
can i ask a haml question here ?
<smathy>
Probably better in #rubyonrails
QualityAddict has quit [Remote host closed the connection]
QualityAddict has joined #ruby
uglybandersnatch has joined #ruby
Rutix has quit []
LoneHermit has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
rubie has joined #ruby
marcdel_ has joined #ruby
Es0teric_ has quit [Ping timeout: 268 seconds]
uglybandersnatch has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
jhn has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BTRE has quit [Ping timeout: 260 seconds]
GnuYawk has joined #ruby
Inside_ has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
mistermocha has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Rutix has joined #ruby
Rutix has joined #ruby
rgtk has quit [Remote host closed the connection]
Musashi007 has joined #ruby
kfpratt has joined #ruby
Mattx has joined #ruby
dmr8 has quit [Quit: Leaving]
mistermocha has quit [Ping timeout: 276 seconds]
dvinciguerra has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
BTRE has joined #ruby
Yzguy has quit [Client Quit]
jnj has joined #ruby
brent_ has joined #ruby
tubuliferous_ has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
gregf has joined #ruby
Mattx has quit [Quit: Leaving]
drptbl has joined #ruby
kfpratt has quit [Remote host closed the connection]
<brent_>
Was having an error in my rspec test and can't seem to find out why
tubuliferous_ has quit [Ping timeout: 244 seconds]
kfpratt has quit [Remote host closed the connection]
<brent_>
it seems like it's treating secret_word as nil, even tough it the test says it runs #pick_secret_word, which shoudl set secret_word to a str
drptbl_ has quit [Ping timeout: 248 seconds]
rubie has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
astrobun_ has joined #ruby
_blizzy_ has joined #ruby
davee_ has joined #ruby
tvon has quit [Remote host closed the connection]
dvinciguerra has joined #ruby
BillSussman has joined #ruby
binaryplease2 has quit [Quit: WeeChat 1.4]
<Ox0dea>
brent_: You're only setting a local variable in #pick_secret_word.
astrobun_ has quit [Ping timeout: 246 seconds]
<brent_>
is that because :secret_word is under attr_reader?
<brent_>
if it was under attr_accessor, would that change it?
<Ox0dea>
I don't understand the question.
binaryplease has joined #ruby
<brent_>
well i thought i defined secret_word on init
rubie has joined #ruby
<Ox0dea>
`attr_accessor` would give you a writer in addition to a reader, sure, but you'd have to assign to it with `self.secret_word` to disambiguate it from a local variable assignment.
AndyBotwin has quit [Ping timeout: 260 seconds]
<Ox0dea>
Better just to assign to the instance variable directly.
<havenwood>
brent_: `@sekret_word` is an instance variable that can be shared between methods
<brent_>
thought thats what iw as doing
<havenwood>
brent_: the `attr_reader` or for the sake of the external interface to the class
<brent_>
because i had secret_word = instead of @secret_word= it was considering it an instance var?
<havenwood>
Ox0dea: seems fugly to me to call the method right after using the instance variable
<smathy>
And the new record holder for most distinct paste services in the shortest time is: brent_ YAY! Crowd goes wild..
<havenwood>
when the instance variable suffices...
firstdayonthejob has quit [Ping timeout: 244 seconds]
jnj has quit [Ping timeout: 276 seconds]
<brent_>
but why do i need to use @ in some instances and others i don't?
<havenwood>
Ox0dea: I guess I'd rather say use ivars.
<Ox0dea>
Disambiguation.
fullofca_ has quit [Ping timeout: 246 seconds]
<brent_>
all i did was add the @ on that line, but referencing "secret_word" works fine elsewhere
Musashi007 has quit [Quit: Musashi007]
<Ox0dea>
brent_: Getters and setters are different things.
<havenwood>
brent_: Internally you can just use the instance variable.
<brent_>
so for any setting of a the instance var, you need to keep the @
<havenwood>
brent_: Try that!
<brent_>
for getting you can exclude the @?
<Ox0dea>
That's right.
jpfuentes2 has joined #ruby
<smathy>
:)
<brent_>
okay, perfect
<havenwood>
brent_: Without the @ it's a method or local variable.
<brent_>
I know i can get the instance variable both ways w/ or w/out the @
th0m_ has quit [Ping timeout: 248 seconds]
<havenwood>
A "bareword."
<Ox0dea>
brent_: `foo` on its own tries to resolve to a local variable, and if that doesn't work, it tries to be a method call on `self`.
<brent_>
is it preferred?
<brent_>
i mean which si preferred if you're just getting the instance variable?
<havenwood>
brent_: Using the instance variable directly is the simplest, fastest, most descriptive thing - when that suffices.
<Ox0dea>
And you should strive to make it suffice.
TheGreatGudsby is now known as TheRealGitGud
<shevy>
brent_ using @ directly is faster
<brent_>
okay
<brent_>
is that what you mean in your 'foo' example 0x0dea?
<Ox0dea>
brent_: `attr_reader :foo` is just shorthand for `def foo; @foo; end`. You can see how it lets you refer to instance variable without the asperand.
resin has joined #ruby
<brent_>
that if you don't include the @, it will first try to use it as a local variable, then if that doesn't work look for the instance variable?
<Ox0dea>
No.
resin has quit [Client Quit]
sandstrom has quit [Quit: My computer has gone to sleep.]
<brent_>
sorry, just trying to understand
<havenwood>
brent_: If you don't use an @ it'll first try the local variable then the method (which might get or set the instance variable). If you use the @ it's unambiguously the instance variable.
binaryplease has quit [Quit: WeeChat 1.4]
<havenwood>
*unless the bareword has parens, then method only
<shevy>
yeah!
<shevy>
brent_ you must also include the cases with and without parens
<brent_>
thans i think i get it
<brent_>
i've been including @ everytime, but kept seeing no @ being used in the solutions so tried to not use them
<brent_>
sounds like i should keep using them
<Ox0dea>
brent_: @ is perfectly fine.
<Ox0dea>
Just be wary of @@.
<havenwood>
Or $.
<brent_>
I understand it's a class and global
<brent_>
but what do you mean by be wary of them?
<havenwood>
brent_: Don't use them.
<havenwood>
brent_: At least don't create them, unless you know why you must.
<epitron>
I don't think I've ever needed a @@ variable
<brent_>
yeah, understand that w/ global, for sure. thought there would be instances for class
<epitron>
I'm hoping to find a use one day
FooMunki has quit [Quit: FooMunki]
<epitron>
^_^
<havenwood>
I prefer use undiscovered!
gregf has quit [Quit: WeeChat 1.4]
FooMunki has joined #ruby
Noxilex has quit [Ping timeout: 260 seconds]
<epitron>
brent_: a Singleton usually fills the role of a global better