flashpoint9 has quit [Remote host closed the connection]
<matthewd>
xaviergmail: You certainly can do that, and there is precedent for it
s2013 has quit [Client Quit]
<matthewd>
xaviergmail: My first thought is going to be "don't make a sort of utils class", though
flashpoint9 has joined #ruby
<matthewd>
(leaving aside the fact that if it's a module, it's not a class... and even less so if the methods are defined on the module itself)
<xaviergmail>
I'm diving back into OOP after about three years of writing almost nothing but Lua where conventions went right out the window
jonr22 has joined #ruby
<xaviergmail>
I'm trying out the cryptopals challenges as well and quite frankly I don't know where to shove
<xaviergmail>
most things lol*
whiteline has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 250 seconds]
MrBusiness3 has quit [Ping timeout: 250 seconds]
daemoen has quit [Read error: Connection reset by peer]
MrBusiness3 has joined #ruby
whiteline has joined #ruby
jonr22 has quit [Client Quit]
tristanp has quit [Remote host closed the connection]
eljimador has joined #ruby
tristanp has joined #ruby
blackmesa has joined #ruby
jonr22 has joined #ruby
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
MrBusiness3 has quit [Read error: Connection reset by peer]
jonr22 has quit [Client Quit]
<xaviergmail>
Any (preferably free) ebooks you could recommend that'll get me up and running with Ruby that's targeted at us gentlemen who already have decent programming experience
karapetyan has quit [Remote host closed the connection]
<Radar>
I'm on a codebase which is using "private_constant", and I've never seen it legitimately used before. Can someone explain to me why someone would want to make a constant private?
<soLucien>
soahccc that only returns the string
<soLucien>
i want the full object produced by the fins
<soLucien>
find
<soahccc>
soLucien: well your code doesn't do that either :D
ItSANgo has quit [Quit: Leaving...]
roflmyeggo has quit [Ping timeout: 276 seconds]
Derperperd has joined #ruby
<soahccc>
the question is why do you want to deep clone it? There are ways but none of them is pretty
roflmyeggo has joined #ruby
<soLucien>
soahccc this is a vagrant plugin. vagrant reads a config file and creates a huge multidimensional array
<soLucien>
this config file is used by all plugins. it is the environment
<soLucien>
i want to query this environment , find what i'm looking for
<soLucien>
then change it to fit my purpose , which in this case is trimming a part of a string out when i return this value
nando293921 has joined #ruby
Ropeney has joined #ruby
<soLucien>
what i don't want is to permanently change the environment for all subsequent operations
rsampaio_ has joined #ruby
kavanagh has quit [Ping timeout: 250 seconds]
<soahccc>
As stated, there is no such concept as deep copies in ruby really. ActiveSupport has something, marshal dump is there but neither is good. I use "foreign" data I don't want to modify all the time and never have needed a deep copy so far
blackmesa has joined #ruby
<soahccc>
soLucien: the reason for this mostly are procs and closures in general. there are a lot of things even marshal dump cannot serialize
<soLucien>
of course i can work around this issue
<soLucien>
it's no biggie
larp has joined #ruby
<soLucien>
thanks for the info
<larp>
soLucien: /!\ #ruby has moved to iam.reallyemo.net #fartlek /!\
patche has quit [Quit: Connection closed for inactivity]
<matthewd>
minimalism: I'm struggling to picture your order-packing persons following an instruction sequence for a perfect 3d pack...
blaxter has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
<matthewd>
minimalism: Google says there is *a* gem.. but I don't think that's really how most people solve that problem in the real world
qguv has quit [Ping timeout: 260 seconds]
<minimalism>
Is there a different way than 3D bin packing then?
roflmyeggo has quit [Remote host closed the connection]
SteenJobs has joined #ruby
rajdesai has quit [Remote host closed the connection]
tristanp has joined #ruby
Channel6 has joined #ruby
etehtsea has joined #ruby
<matthewd>
IME, very loose approximations based on possibly-arbitrarily-scaled bigness numbers, and/or based on a percentage of the total cost (with limits)
<matthewd>
The viability of different options rather depends on just how varied your products are
rajdesai has joined #ruby
davedev24 has quit [Remote host closed the connection]
blaxter has quit [Client Quit]
<matthewd>
... but I imagine Radar is the domain expert here, any attempts to block relevant memories notwithstanding ;)
<Radar>
;)
<Radar>
minimalism: It is a really hard problem to save computationally.
<Radar>
While you can easily calculate if the area of a set of objects is less than the container, I don't think there's an easy way to calculate if it's physically possible for them to fit in.
roflmyeggo has joined #ruby
<Radar>
less than the container's area*
chazu has joined #ruby
qguv has joined #ruby
A_Drone has joined #ruby
skweek has joined #ruby
Vingador has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
roflmyeggo has quit [Remote host closed the connection]
roflmyeggo has joined #ruby
kavanagh has quit [Remote host closed the connection]
<baweaver>
Also you're using brackets instead of parens for the merge which is incorrect syntax.
<baweaver>
that, and the original default global directories is an array with a single hash in it.
<baweaver>
you're going to need to factor that in as well.
solars has joined #ruby
<cwong_from_webch>
havenwood: good point. :P i would like the result to be [ { a: 'one', b: 'two', c: 'three', d: 'four', e: 'five' } ] <-- sorry. that 2nd c should be a d lol
tmtwd has quit [Ping timeout: 244 seconds]
Pupp3tm4st3r has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
<irc_BT>
?
Pupp3tm4st3r has quit [Remote host closed the connection]
<cwong_from_webch>
hash merge is fine by the way. but i am trying to do array of hashes merging
<baweaver>
could probably be shorter, but not much for golf tonight. Teammate mentioned using RPN for an interview question, said it should take 3 lines. Said it could be done fairly clearly in 1
Synthead has joined #ruby
the_rhizo2 has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
chipotle has quit [Quit: cheerio]
ghr has quit [Ping timeout: 240 seconds]
rohit_ has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has joined #ruby
houhoulis has joined #ruby
pawnbox has joined #ruby
ur5us has joined #ruby
ghr has joined #ruby
nikivi has quit [Quit: zzz]
blackmesa has quit [Ping timeout: 244 seconds]
blackgoat has quit [Ping timeout: 265 seconds]
Torrone has joined #ruby
rkazak has joined #ruby
rsampaio_ has quit [Ping timeout: 258 seconds]
<Bish>
giving ruby 2.3.5 bytecode to a 2.1.5 version won't work, right :D
ItSANgo has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
koooge has quit [Quit: Leaving...]
Spami has quit [Quit: This computer has gone to sleep]
amclain has quit [Quit: Leaving]
yeticry_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
jaequery has joined #ruby
LiohAu has joined #ruby
catbusters has quit [Ping timeout: 250 seconds]
yeticry has quit [Read error: Connection reset by peer]
MrBusiness has quit [Quit: quittin' this]
armin has quit [Quit: relate to the matter as i drop the bomb]
MrBusiness has joined #ruby
nikivi has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
yeticry has joined #ruby
yeticry_ has joined #ruby
Guest89739 has quit [Excess Flood]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
nikivi has quit [Client Quit]
saneax has joined #ruby
ta_ has joined #ruby
nikivii has joined #ruby
saneax is now known as Guest34085
ur5us has quit []
nikivii has quit [Client Quit]
nikivi has joined #ruby
mrgrieves has joined #ruby
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Ping timeout: 260 seconds]
matp has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
catbusters has joined #ruby
A_Drone has quit [Remote host closed the connection]
Hyuk has joined #ruby
A_Drone has joined #ruby
MrBusiness has quit [Quit: quittin' this]
<jhass>
where did you get a ruby 2.3.5 from
flashpoint9 has joined #ruby
A_Drone has quit [Ping timeout: 250 seconds]
aep has joined #ruby
vondruch has joined #ruby
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
A_Drone has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
houhoulis has quit [Remote host closed the connection]
<Bish>
jhass: yeah a typo, sorry
MrBusiness has joined #ruby
Ropeney has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
pawnbox has quit [Remote host closed the connection]
pokalyis has joined #ruby
pawnbox has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
mim1k has joined #ruby
frozengeek has joined #ruby
ponga has joined #ruby
beilabs_ has joined #ruby
rohit_ has quit [Ping timeout: 240 seconds]
the_rhizo2 has joined #ruby
jackjackdripper has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
beilabs has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
blackmesa has joined #ruby
jonr22 has joined #ruby
anisha_ has joined #ruby
the_rhizo2 has quit [Ping timeout: 258 seconds]
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
UserInNeed has quit [Quit: ZNC - 1.6.0 - http://znc.in]
symm- has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
<irc_BT>
any pagination example?
blackmesa has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
hahuang61 has joined #ruby
A_Drone has quit [Remote host closed the connection]
pokalyis has quit [Read error: Connection reset by peer]
rohit_ has joined #ruby
pokalyis has joined #ruby
govg has quit [Quit: leaving]
omphe has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
tomphp has joined #ruby
<irc_BT>
Thanks jhass
jgt1 has quit [Quit: WeeChat 1.4]
pawnbox has joined #ruby
Derperperd has quit [Quit: Derperperd]
klautcomputing has joined #ruby
Madplatypus has joined #ruby
duncannz has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
johnny56_ has joined #ruby
joonty has joined #ruby
klautcomputing has quit [Ping timeout: 250 seconds]
OrbitalKitten has joined #ruby
jonr22 has joined #ruby
TheWhip has quit [Remote host closed the connection]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Synthead has quit [Ping timeout: 276 seconds]
Torrone has quit [Quit: This computer has gone to sleep]
mim1k has quit [Ping timeout: 244 seconds]
jonr22 has quit [Ping timeout: 250 seconds]
Torrone has joined #ruby
rohit_ has quit [Ping timeout: 244 seconds]
mim1k has joined #ruby
flying has joined #ruby
Synthead has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
ta_ has quit [Quit: Leaving...]
SteenJobs has joined #ruby
rohit_ has joined #ruby
flying has quit [Read error: Connection timed out]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
flying has joined #ruby
omphe has joined #ruby
Snowy has joined #ruby
Velizar has joined #ruby
spudowiar has joined #ruby
teclator has joined #ruby
lxsameer has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
joonty has joined #ruby
Synthead has quit [Ping timeout: 276 seconds]
TheWhip has joined #ruby
joonty has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 250 seconds]
mim1k has joined #ruby
dr0lan has joined #ruby
the_rhizo2 has joined #ruby
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DaniG2k has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
astrobun_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
the_rhizo2 has quit [Ping timeout: 265 seconds]
omphe has joined #ruby
RedNifre_ has joined #ruby
TheWhip_ has joined #ruby
<RedNifre_>
If there's a particular gem I'd like to use in almost every tiny script I write, should I install that gem globally, how would I do that, how bad would that be and what are the alternatives?
TheWhip has quit [Ping timeout: 258 seconds]
Synthead has joined #ruby
TheWhip has joined #ruby
TheWhip_ has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
Rodya_ has quit [Quit: Leaving...]
symm- has quit [Quit: Leaving...]
selu has joined #ruby
lxsameer has joined #ruby
last_staff has joined #ruby
<irc_BT>
while next_page_link = results.at('.gspr a[text()=""]')
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
l4v2 has quit [Quit: l4v2]
<Bish>
i don't get irc trolls, what drives them, seriously
<tobiasvl>
boredom
<PalaHO>
i don't know u still ave ur prlbm with gem ?
<Bish>
doesn't look like it
<Bish>
i don't know to be precise
<PalaHO>
ok
jeanlinux has joined #ruby
kedare has quit [Ping timeout: 276 seconds]
ged has quit [Ping timeout: 240 seconds]
<yorickpeterse>
lol that troll attempt
blackmesa has joined #ruby
mahlon has quit [Ping timeout: 265 seconds]
mahlon_ has joined #ruby
vuoto_ has quit [Remote host closed the connection]
vuoto_ has joined #ruby
vuoto has quit [Remote host closed the connection]
Madplatypus has quit [Quit: Connection closed for inactivity]
vuoto has joined #ruby
ged has joined #ruby
vuoto_ has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
<yorickpeterse>
Hackers distributed a dangerous virus called "Ruby" Through this channel. The following command will remove it: sudo apt-get install nodejos
<apeiros>
!kick PalaHO we do not accept this kind of language. please behave.
PalaHO was kicked from #ruby by ruby[bot] [we do not accept this kind of language. please behave.]
vuoto has quit [Remote host closed the connection]
loechel has quit [Read error: Connection reset by peer]
vuoto has joined #ruby
pokalyis has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
pokalyis has joined #ruby
swills has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 244 seconds]
tyang has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
nertzy2 has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
blackgoat has quit [Ping timeout: 244 seconds]
Pumukel has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
loechel has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Quit: dionysus69]
ryanweb has joined #ruby
dionysus69 has joined #ruby
ledestin has quit [Ping timeout: 258 seconds]
<mikecmpbll>
fractious.
dionysus69 has quit [Client Quit]
hahuang61 has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
jishankai has quit [Ping timeout: 240 seconds]
Torrone has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
depesz has left #ruby ["WeeChat 1.5-dev"]
vuoto has quit [Remote host closed the connection]
<Yonk>
foxxx0 I think your question is better suited for either the rails channel or haml
GinoMan2440 has joined #ruby
JeanCarloMachado has joined #ruby
kedare_ has quit [Quit: Leaving]
phoo1234567 has joined #ruby
mim1k has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
SteenJobs has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
giz|work has quit [Ping timeout: 258 seconds]
disconnekted has joined #ruby
joonty has joined #ruby
<foxxx0>
Yonk: as i'm using sinatra and not rails i thought maybe someone here knows a generic gem for that
<foxxx0>
it doesn't have to be haml-specific
airdisa has joined #ruby
bluOxigen has joined #ruby
giz|work has joined #ruby
dunpeal has joined #ruby
flashpoint9 has joined #ruby
gnufied__ has joined #ruby
gnufied__ has quit [Client Quit]
Torrone has joined #ruby
<Bish>
ruby-install does not add a ruby to the path, is that intentional
<Bish>
adaedra:
<adaedra>
yes
<adaedra>
it's for installing rubies, not managing them.
<adaedra>
chruby does this, if you want.
davedev24 has joined #ruby
<Bish>
chruby also installs, right?
gnufied has quit [Quit: Leaving]
<adaedra>
no
<Bish>
but how would i use rubies installed by ruby-install?
joonty has quit [Quit: This computer has gone to sleep]
<Bish>
use the full path?
<adaedra>
either by setting the env variables directly, or by using something like chruby or rbenv
<adaedra>
or by full path if you want, but that's quite limited
<Bish>
okay, thanks!
<adaedra>
note that ruby-install can install gems wherever you want
ramortegui has joined #ruby
<adaedra>
And chruby can pickup rubies from wherever you want, too
<Bish>
okay, will look into it!
<adaedra>
chruby + ruby-install form a very nice couple.
<Bish>
i see
SilverKey has quit [Quit: Halted.]
aegis3121 has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
flashpoint9 has quit [Remote host closed the connection]
nettoweb has joined #ruby
ddffg has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
nettoweb has quit [Max SendQ exceeded]
djbkd has quit [Remote host closed the connection]
workmad3 has quit [Read error: Connection reset by peer]
byteflame has joined #ruby
mim1k has joined #ruby
dr0lan has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
sepp2k has joined #ruby
PalaHO has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
GinoMan2440 has quit [Ping timeout: 244 seconds]
ChiefAlexander has joined #ruby
blackmesa has joined #ruby
swills_ has joined #ruby
flashpoint9 has joined #ruby
programmerq has quit [Remote host closed the connection]
programmerq has joined #ruby
GinoMan2440 has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
SteenJobs has quit [Quit: SteenJobs]
Emmanuel_Chanel has quit [Ping timeout: 258 seconds]
ta_ has quit [Remote host closed the connection]
Dysp has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
gnufied has joined #ruby
klautcomputing has joined #ruby
<Yonk>
foxx0 maybe try #sinatra
<Yonk>
foxxx0 maybe try #sinatra
howdoi has quit [Quit: Connection closed for inactivity]
swills_ has quit [Quit: Leaving]
swills has joined #ruby
<Dysp>
I just don't get it. Have been reading plenty of guides and blog posts. Still don't get it. Would someone explain it to me in fluent retardo so I may understand why this doesn't work?
<apeiros>
weird, though - limechat used to open a multiline text window with long messages…
<Dysp>
Btw, off topic of anything: Do you guys use the mIRC client?
<apeiros>
no. I'm not masochistic enough to use windows.
<jhass>
^
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
<Dysp>
and by guys I mean "gender neutral"
<Dysp>
:p
<PalaHO>
no ahah
<PalaHO>
irssi
<mikecmpbll>
textual is a joy.
<PalaHO>
yep
<jhass>
Dysp: folks is a good word here, or just people again ;)
<Dysp>
True. It was a slip
<Z3N1T>
I try again this, only for test, because I make this where use ruby for windows, not cygwin, and have the same problem, I cheked if have VC++ but nothing work.
anisha has quit [Quit: This computer has gone to sleep]
<apeiros>
yorickpeterse: lizards have genders too!
LiohAu has left #ruby [#ruby]
<Z3N1T>
In windows the ruby no have problem, I used the ruby official packages
eljimmy has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Remote host closed the connection]
<Z3N1T>
I can restart all install again from zero, but not today, I whant find the problem in cygwin first.
<Z3N1T>
I will try install devkit again.
<Dysp>
And, by the way, in good ol' Denmark sexism isn't really a big thing. So we people tend to let it slip whenever someone makes a mistake; "They probably didn't know better, I will give them the benefit of the doubt" :P
dionysus69 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<Bish>
adaedra: thanks for the suggestion seems like it works like a charm
mim1k_ has quit [Quit: Reconnecting]
mim1k has joined #ruby
dhollinger has joined #ruby
davedev24 has joined #ruby
programmerq has quit [Remote host closed the connection]
programmerq has joined #ruby
SilverKey has joined #ruby
ledestin has joined #ruby
joonty has joined #ruby
TheWhip has quit [Remote host closed the connection]
<Bish>
well, not yet, i configured to work globally, and it doesn't work ;;
davedev24 has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
flashpoint9 has joined #ruby
Torrone has joined #ruby
hutch34 has joined #ruby
iamvery has joined #ruby
csk has joined #ruby
<Z3N1T>
well, DevKit not find Ruby on Cygwin, I run ruby dk.rb init and config.yml is empty, I try put the path for my gems and ruby instalation like cygwin path syntax but dk not find ruby.
denofevil has joined #ruby
godaccess has left #ruby [#ruby]
c0mrad3 has quit [Quit: Connection closed for inactivity]
denofevil has left #ruby [#ruby]
raz is now known as bdq
<adaedra>
Bish:
loechel has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
Pumukel has quit [Read error: Connection reset by peer]
iLogic has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
dionysus69 has joined #ruby
morf has joined #ruby
SilverKey has quit [Quit: Halted.]
iLogic has joined #ruby
iamvery has quit [Remote host closed the connection]
craigp_ has quit [Ping timeout: 260 seconds]
<Bish>
adaedra: i added chruby.sh to /etc/profiles.d/ and it works well for root
<Bish>
but when i login/su - to another account, it doesn't have the chruby environment
alfiemax has quit [Ping timeout: 258 seconds]
<gregf_>
hello
<gregf_>
is it possible to install multiple versions of the same gem?
<gregf_>
rvm related
<gregf_>
for the same ruby version that is
binaryplease1 has joined #ruby
<Bish>
adaedra: nvm, i am an idiot, i think the file was not readable for users
jgt has quit [Ping timeout: 265 seconds]
<apeiros>
gregf_: with rvm: see gemsets. independently: see bundler
danman has joined #ruby
eljimmy has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
<gregf_>
apeiros: ah - sure, ta
iLogic has quit [Ping timeout: 240 seconds]
slackbotgz has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
iLogic has joined #ruby
<gregf_>
wow, that was simple :)
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
pmyjavec has joined #ruby
flashpoint9 has joined #ruby
beilabs has joined #ruby
Puck6633 has joined #ruby
fmcgeough has joined #ruby
saneax_AFK is now known as saneax
workmad3 has joined #ruby
tjohnson has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
saneax is now known as Guest47565
JiYu has joined #ruby
Pumukel has quit [Remote host closed the connection]
DaniG2k has joined #ruby
SilverKey has joined #ruby
<Puck6633>
Hey, quick question. I'm working with a gem that seems to spawn a bunch of worker threads to handle commands passed to it, which then execute code of my own. Is there a good way to handle exceptions globally in a scenario like this?
<Puck6633>
e.g. For exceptions not specifically handled, write a backtrace to a log file and exit.
<apeiros>
define "good"
<apeiros>
Thread.abort_on_exception = true
binaryplease1 is now known as binaryplease
<Puck6633>
Basically just not manually repeating the same begin/rescue clause for every single command
<apeiros>
well, that'll be difficult. wrap your code in a begin/rescue which does what you want.
<PalaHO>
lie try and catch
<PalaHO>
like
perlgod has joined #ruby
<Puck6633>
I tried wrapping the main code in a general begin/rescue clause, but it doesn't work, I'm guessing because of the threaded nature of the thing.
perlgod has quit [Max SendQ exceeded]
<Puck6633>
I was hoping for something like a global exception handler I guess.
hahuang61 has joined #ruby
perlgod has joined #ruby
<Puck6633>
As it is, it dumps the backtrace to the console and keeps running, which isn't all that helpful to me.
<Puck6633>
(Again, I'm guessing that happens because when the exception isn't handled the worker thread dies but the main thread continues)
govg has joined #ruby
orangey has joined #ruby
symm- has joined #ruby
mim1k has quit [Ping timeout: 264 seconds]
<jhass>
Puck6633: did you try the suggestion yet? (Thread.abort_on_exception = true)
<Puck6633>
jhass: I did, but maybe I'm not understanding it correctly. Is there a way to catch that exception?
<apeiros>
Puck6633: define a method then which takes a block and wraps the block in begin/rescue
<Puck6633>
I don't *just* want to abort.
Spami has joined #ruby
OTORelic2 has joined #ruby
<Puck6633>
apeiros: Oh, I like that!
tulak has joined #ruby
<Puck6633>
I don't utilize blocks nearly enough. I'll give that a try.
<apeiros>
logging_exception do …your stuff… end
JeanCarl1Machado has joined #ruby
<apeiros>
*exceptions
<Puck6633>
Thanks!
tulak has quit [Client Quit]
hahuang61 has quit [Ping timeout: 250 seconds]
<Bish>
chruby does not save the used chruby!?
<Bish>
im getting more and more confused
<jhass>
it ships auto.sh which watches for .ruby-version files
<jhass>
but no
<adaedra>
I personally have `chruby …` in my .zshrc
mim1k has joined #ruby
<adaedra>
Creating a system to have a global ruby version is quite easy though.
symm- has quit [Client Quit]
<Bish>
phew..
<Bish>
i just added the chruby line to profile.d
bougyman has joined #ruby
bougyman is now known as Guest89460
youch has joined #ruby
ryanweb has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
sqljunkey has joined #ruby
rileyy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest89460 has quit [Ping timeout: 258 seconds]
<sqljunkey>
how can I download and open a CSV file in ruby (without having to store it on disk? )
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
sqljunkey: net/http, open-uri, or any of the various other http client libraries
jgt has joined #ruby
<sqljunkey>
so I just do CSV file = openlink ("url")
<sqljunkey>
something like that?
<apeiros>
something like that, yes
<adaedra>
Depends on your choice for downloading the file
moparisthebest has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Torrone has joined #ruby
Ropeney has quit [Quit: Leaving]
minotep has quit [Ping timeout: 276 seconds]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
Torrone has quit [Read error: Connection reset by peer]
Torrone has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 265 seconds]
rodfersou is now known as rodfersou|lunch
JeanCarloMachado has quit [Ping timeout: 258 seconds]
morochena has joined #ruby
conta has quit [Ping timeout: 244 seconds]
axsuul has joined #ruby
morochena has quit [Client Quit]
blackmesa has joined #ruby
malconis has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
failshell has quit []
jeanlinu_ has joined #ruby
<yorickpeterse>
adaedra: to be honest those kind of things generally piss me off
Azure|dc has joined #ruby
<adaedra>
which kind of things?
<yorickpeterse>
It's a _Ruby_ meetup, not a Crystal/other-thing meetup. The only case where I think it makes sense is when you can actually learn something from it and apply it to Ruby/etc
<adaedra>
ah
<yorickpeterse>
in my experience however those talks tend to be along the lines of "look at how kewl this is, Ruby sucks"
Azure has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
flashpoint9 has joined #ruby
<eam>
when people aren't saying some language sucks it just means no one's actually using it yet
jeanlinux has quit [Ping timeout: 265 seconds]
<eam>
really, lack of criticism is the ultimate criticism
beilabs has quit [Remote host closed the connection]
aufi has quit [Quit: Leaving]
<eam>
lots of systems are amazing when confined to an ivory tower
TheWhip has joined #ruby
pmyjavec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Snowy has quit [Remote host closed the connection]
rileyy has joined #ruby
<adaedra>
Well, seeing what Crystal proposes was interesting for me, but I totally understand how it can be annoying for people coming for, well, ruby
teclator has quit [Ping timeout: 250 seconds]
<adaedra>
But soon Crystal will have its own meetup and everything will come back into order.
davidw has joined #ruby
<adaedra>
jhass will organize Crystal meetups everywhere.
TomyWork has quit [Ping timeout: 276 seconds]
<jhass>
:D
SteenJobs has quit [Quit: SteenJobs]
alfiemax has joined #ruby
klautcomputing has quit [Ping timeout: 250 seconds]
mark_66 has quit [Remote host closed the connection]
LuckyABA has joined #ruby
Torrone has quit [Quit: This computer has gone to sleep]
Gutenberg has quit [Ping timeout: 258 seconds]
Torrone has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
Vingador has joined #ruby
moparisthebest has joined #ruby
amclain has joined #ruby
polishdub has joined #ruby
frozengeek has quit [Quit: frozengeek]
iamvery has quit [Quit: Leaving...]
zacts has quit [Quit: WeeChat 1.4]
Spami has quit [Quit: This computer has gone to sleep]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
irc_BT has joined #ruby
irc_BT is now known as hiyat
nvd has joined #ruby
spudowiar is now known as ruby
TheWhip has quit [Remote host closed the connection]
ruby is now known as spudowiar
rkazak has quit [Ping timeout: 252 seconds]
TheWhip has joined #ruby
TheWhip has quit [Remote host closed the connection]
<foxxx0>
you might need to rewrite the POST /login endpoint to check against "admin":"password" or something like that, because you don't have the api available
dr0lan has quit [Quit: WeeChat 1.0.1]
LoneHermit has quit [Remote host closed the connection]
zacts has quit [Client Quit]
Spami has joined #ruby
pawnbox_ has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
spudowiar has quit [Quit: this WILL work :)]
pawnbox has quit [Ping timeout: 258 seconds]
spudowiar has joined #ruby
<foxxx0>
doing GET queries on a non-existing resource and the broken /mail resource using the SAME cookie with curl results in: https://paste.foxxx0.de/5Ye/
SilverKey has quit [Quit: Halted.]
<foxxx0>
for some reason the /mail namespace does not recognize the session, but it does recognize just fine everywhere else
pmyjavec has quit [Remote host closed the connection]
<foxxx0>
i'm cloning a fresh instance into /tmp/ and will try again, thank for your effort though
SteenJobs has joined #ruby
Puck6633 has quit [Read error: Network is unreachable]
GodFather has joined #ruby
hahuang65 has joined #ruby
pmyjavec has joined #ruby
LoneHermit has joined #ruby
Puck6633 has joined #ruby
yardenbar has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
<cschneid_>
What's the fastest way to get a yes/no on if a regex matches a string?
<cschneid_>
I don't want to create a MatchData obj, or set the $1 type vars
GodFather has quit [Remote host closed the connection]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
<cschneid_>
on ruby s1.9, 2+ or so I think?
DaniG2k has joined #ruby
<jhass>
2.4 will have .match? for that
djbkd has joined #ruby
<cschneid_>
yeah, I saw that - should I just use =~ for now?
spider-mario has joined #ruby
<cschneid_>
or .match()
<jhass>
both create the MatchData
djbkd has quit [Read error: Connection reset by peer]
<jhass>
I kinda like String#[] but regularly forget to use it
djbkd has joined #ruby
<foxxx0>
jhass: fresh clone works here too... something in my work dir seems to be horribly broken
<jhass>
foxxx0: interesting, git diff?
djbkd has quit [Read error: Connection reset by peer]
skweek has quit [Remote host closed the connection]
<jhass>
cschneid_: I guess in specific cases it's possible to match the failure case rather than the good case and then assuming the good case is more common you avoid the MatchData for it
GodFather has joined #ruby
<jhass>
so you blacklist rather than whitelist
Rodya_ has quit [Remote host closed the connection]
<cschneid_>
yeah, I'm unsure on the % of pass & fail. Hard to predict. I'll just do this - already optimizing by precompiling the regex
<jhass>
but that would need to be done with great care
<cschneid_>
it's not a security sensitive thing at all, so no biggie there
djbkd has joined #ruby
stamina has quit [Ping timeout: 244 seconds]
elifoster has joined #ruby
skweek has joined #ruby
andikr has quit [Remote host closed the connection]
uranellus has joined #ruby
uranellus has quit [Changing host]
uranellus has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
zeroDi has joined #ruby
dunpeal has quit [Ping timeout: 250 seconds]
spudowiar has quit [Quit: THIS WILL WORK :)]
<foxxx0>
jhass: removed .sass-cache, .bundle, ./tmp/, ./vendor; freshly installed all gems by calling 'bundle'; works perfectly.....
spudowiar has joined #ruby
<jhass>
I bet on /tmp
<jhass>
something messed up rack's session store
OTORelic3 has joined #ruby
<foxxx0>
anyway, thanks for your help
machinewar has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<machinewar>
what's fastest way to write large xml files?
<machinewar>
nokogiri?
dennisvennink has joined #ruby
crystal77 has joined #ruby
OTORelic2 has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
crystal77 has quit [Client Quit]
l4v2 has quit [Quit: l4v2]
miqlas-H has joined #ruby
<jhass>
nokogiri or oga I guss
<jhass>
*guess
crystal77 has joined #ruby
djbkd has joined #ruby
pmyjavec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
oh wait, oga doesn't serialize?
<machinewar>
hmmm not sure I haven't used it
dunpeal has joined #ruby
theery has quit [Remote host closed the connection]
theery has joined #ruby
<jhass>
there's also ox
The_Phoenix has joined #ruby
The_Phoenix1 has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bad_ip has quit [Ping timeout: 265 seconds]
theery has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
The_Phoenix has quit [Ping timeout: 258 seconds]
huyderman has quit [Remote host closed the connection]
rileyy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 258 seconds]
<machinewar>
thanks will check it out
Derperperd has joined #ruby
conta has joined #ruby
karapetyan has quit [Remote host closed the connection]
last_staff has quit [Remote host closed the connection]
karapetyan has joined #ruby
ixti has joined #ruby
djbkd has joined #ruby
last_staff has joined #ruby
spudowiar has quit [Quit: hugging is not permitted.]
karapetyan has quit [Remote host closed the connection]
kavanagh has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
ec0 has joined #ruby
karapetyan has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
rileyy has joined #ruby
SCHAAP137 has joined #ruby
djbkd has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
MrBusiness has quit [Ping timeout: 250 seconds]
<foxxx0>
i have an object with a structure of: { "1" => { id: 1, name: 'foo' }, "2" => { id: 2, name: 'bar' } }, how to i iterate over the child objects only?
karapetyan has joined #ruby
DaniG2k has quit [Quit: leaving]
<jhass>
.each_value
phoo1234567 has quit [Quit: Gotta go]
<foxxx0>
aaah, thanks
djbkd has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
bocaneri has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
karapetyan has joined #ruby
nofxx has joined #ruby
elifoster has quit [Quit: out]
kyle__ has joined #ruby
johnmilton has quit [Remote host closed the connection]
rileyy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
kingman has quit [Quit: (null)]
SteenJobs has joined #ruby
ramfjord has joined #ruby
kavanagh has quit [Quit: That's all folks!]
kavanagh has joined #ruby
SilverKey has joined #ruby
Dimik has joined #ruby
hahuang61 has joined #ruby
bad_ip has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
Rodya_ has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
QORRiE has joined #ruby
Derperperd has quit [Quit: Derperperd]
hahuang61 has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 264 seconds]
jeanlinu_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 265 seconds]
tyang has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
symm- has joined #ruby
cdg has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
csk has quit [Ping timeout: 276 seconds]
leea has joined #ruby
csk has joined #ruby
csk has quit [Max SendQ exceeded]
c0mrad3 has joined #ruby
<Dysp>
Alright. I've been getting a little smarter. But something I still don't seem to get is the whole use of private methods.
djbkd has quit [Remote host closed the connection]
pawnbox_ has quit [Remote host closed the connection]
<Dysp>
I am getting these errors because I make the functions private, obviously. If I unflag them as private, test runs succesful. But, shouldn't I hide them? The only thing I want in my interface is the initialization and the .validate method.
ledestin has quit [Ping timeout: 244 seconds]
<jhass>
no you get it because you call private outside your class
<jhass>
just uncomment the # Private and make it private
djbkd has joined #ruby
_djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
eljimmy has quit [Quit: This computer has gone to sleep]
ramfjord has quit [Ping timeout: 258 seconds]
Spami has joined #ruby
jackjackdripper has joined #ruby
BrianJ has joined #ruby
bad_ip has quit [Quit: Some people just want to watch the world burn.]
bad_ip has joined #ruby
bfrizzle has quit [Ping timeout: 240 seconds]
machinewar has quit []
rileyy has joined #ruby
rileyy has quit [Client Quit]
craysiii has joined #ruby
queitsch has quit [Quit: queitsch]
kavanagh has quit [Quit: That's all folks!]
sepp2k has quit [Quit: Leaving.]
<toretore>
\j #coreos
<toretore>
damnit
arthurix has joined #ruby
arthurix has quit [Client Quit]
arthurix has joined #ruby
arthurix has quit [Remote host closed the connection]
beilabs_ has joined #ruby
firstdayonthejob has joined #ruby
ELLIOTTCABLE has quit [Ping timeout: 250 seconds]
dobrse_internet has joined #ruby
omphe has joined #ruby
beilabs has quit [Ping timeout: 258 seconds]
ELLIOTTCABLE has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
SilverKey has joined #ruby
marxarelli|afk is now known as marxarelli
omphe has quit [Client Quit]
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dobrse_internet is now known as kaiks
mcqr has quit [Ping timeout: 258 seconds]
ixti has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.5]
TheWhip has joined #ruby
cschneid_ has quit [Remote host closed the connection]
stamina has joined #ruby
blackgoat has joined #ruby
cdg has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
mcqr has joined #ruby
kavanagh has joined #ruby
SteenJobs has joined #ruby
marxarelli has joined #ruby
SteenJobs has quit [Client Quit]
<kaiks>
Is there a neat way to do a method that influences following methods in a method chain? e.g. say numbers.even.prime returns [2], and then numbers.even.!except!.prime would return numbers.select{ |n| n.even?}.select{ |n| !n.prime?}
marxarelli has quit [Remote host closed the connection]
marxarelli has joined #ruby
<toretore>
you have to return an object which intercepts those messages and does the thing you want
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore>
but it sounds like something that's not worth the effort, just because it "looks neat"
theery has joined #ruby
dionysus69 has joined #ruby
leea has joined #ruby
<toretore>
orms often do studd like this in their query building logic
<toretore>
stuff
<kaiks>
alright, thought i'm missing something
<toretore>
but it's not something that can be easily generalized; orms work on a common DataSet or Query object which has the required logic built in
<havenwood>
siaw23: if you reverse the whole thing to know where to split you then need to reverse the parts back so they're not still reverse when you're done
firstdayonthejob has quit [Ping timeout: 240 seconds]
JeanCarl1Machado has quit [Ping timeout: 264 seconds]
JeanCarloMachado has quit [Ping timeout: 276 seconds]
dr0lan has joined #ruby
<Bish>
sss
SilverKey has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
GinoMan2440 has joined #ruby
JeanCarloMachado has joined #ruby
cdg has quit [Remote host closed the connection]
toretore has quit [Ping timeout: 258 seconds]
karapetyan has joined #ruby
soulisson has joined #ruby
Torrone has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JeanCarl1Machado has joined #ruby
antgel has quit [Ping timeout: 244 seconds]
<soulisson>
I'm trying to code a multithreaded program, what's the best way to indicate that an event occurred, like the producer thread is finished?
bigkevmcd has joined #ruby
OrbitalKitten has joined #ruby
antgel has joined #ruby
trabulmonkee has quit [Quit: Connection closed for inactivity]
jaequery_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
I like the "poison the queue" approach, push a message to the queue that makes the consumers kill themselves
tomphp has joined #ruby
jaequery has joined #ruby
hutch34 has joined #ruby
jaequery has quit [Client Quit]
<jhass>
another approach could be to wrap the queue into something that tracks an "open" state, then the producer can close it and the pop action in the consumers will fail, essentially what Go calls channels
<soulisson>
jhass, hmm, ok, but for the poison approach if a thread retrieve the poison the other won't,no?
<jhass>
well, you push N poisons, where N >= consumers
<soulisson>
jhass, ah ok, I see :)
<jhass>
a standard pubsub or observer pattern can work too, but IMO the observer has a stronger coupling than necessary here and the pubsub can be harder to debug as to where events originate and are consumed
<soulisson>
jhass, is the Queue class thread safe?
<jhass>
yes
<soulisson>
jhass, at one point I thouht about using a mutex
<jhass>
not sure I follow
sepp2k has quit [Read error: Connection reset by peer]
davedev24 has quit [Remote host closed the connection]
<aidalgol>
ri does not read .rdoc files, correct? It needs the rdoc in a different format?
<soulisson>
jhass, once the producer thread is finished I lock the mutext and I check in the consumer threads if the mutex is locked
<jgnagy>
you might look at concurrent-ruby
spider-mario has quit [Remote host closed the connection]
<jhass>
soulisson: that's just abusing it as a boolean
<jgnagy>
I'm not sure what your use case is, but a CyclicBarrier might work for you too
<matthewd>
Concurrent::Event sounds closest, but you may be able to use something higher level, depending on what else you're doing
<soulisson>
jhass, I avoid to create an object with a boolean in it
<soulisson>
matthewd, ah ok, nice, thanks
<soulisson>
thanks for the help
djbkd has quit [Quit: My people need me...]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tdy has joined #ruby
tdy has quit [Client Quit]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
rellis has quit [Ping timeout: 240 seconds]
airdisa has quit []
roflmyeggo has quit [Quit: Lost terminal]
<aidalgol>
I'm trying to generate ri files from a Ruby package's rdoc files, and am not having any success. The package has been installed through my distribution, not via gems. Here is what I have tried: http://paste.debian.net/788852/
<aidalgol>
For some reason, it seems to be only finding a single file in the given directory.
<jhass>
it says 30/30 ?
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<aidalgol>
Oh, OK. Yes, that's how many files are in that directory. So why does it only list one filename?
ramfjord_ has joined #ruby
<aidalgol>
And why is it not finding anything *in* the files?
SteenJobs has quit [Quit: SteenJobs]
JeanCarl1Machado has quit [Remote host closed the connection]
JeanCarloMachado has quit [Remote host closed the connection]
<jgnagy>
BrianJ: I'm not familiar with your ReportCheck class, but it looks to implement .where() which usually returns a collection of the objects you want
Torrone has quit [Quit: This computer has gone to sleep]
<jgnagy>
so ReportCheck.find(report_check.id) seem redundant
<jgnagy>
you can probably just do `report_check.update_attributes(score: number)`
<jgnagy>
inside your #each() block
<jgnagy>
you could also change the Array of Fixnums to a Range like (0..4).each
jhack has quit [Quit: jhack]
<jgnagy>
though your example seems contrived... not sure why you'd update "score" repeatedly on the same resource like that
sumobob has quit [Ping timeout: 250 seconds]
Nick_ZWG has joined #ruby
<Nick_ZWG>
Has anyone run into an issue trying to install Rubocop on OS X 10.11.6? Parser is trying to call /usr/bin/ruby-parse, which does (and will never) exist.
danman has quit [Quit: danman]
<jgnagy>
always use RVM on OS X
<jgnagy>
life is much easier that way
<Nick_ZWG>
This is a horrifying dystopian nightmare
spudowiar has quit [Quit: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz]
<imcodingideas>
Hello all, I'm wondering if you can help me?