baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
elphe has quit [Ping timeout: 240 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
cjkinni has quit [Ping timeout: 256 seconds]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
eckhardt_ has joined #ruby
nowhereFast has joined #ruby
unshackled has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 244 seconds]
DTZUZU has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
chris349 has joined #ruby
nowhereman has joined #ruby
<chris349> When I run rake db migrate it takes a long time to start up because its loading a bunch of irrelevant code, gems, etc. Is tehre any way to stop this on have db migrate only load the bare minimum to get the job done?
nowhere_man has quit [Read error: Connection reset by peer]
p4p0l0 has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
eblip has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
<ciro> chris349: there is a #RubyOnRails channel. Maybe someone could answer your question there. Anyway, I think you would have to tweak your app's Rakefile. Take a look at this: https://rhnh.net/2010/09/07/speeding-up-rails-rake/
scrptktty has quit [Quit: Connection closed for inactivity]
elphe has joined #ruby
ciro has quit [Quit: WeeChat 2.2]
ciro has joined #ruby
cjkinni has joined #ruby
Snowy has quit [Quit: ragequit]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
krawchyk has joined #ruby
leah2 has joined #ruby
Synthead has joined #ruby
<Synthead> I'm using minitest, and I want to ensure that a method gets called without actually calling the method (kinda like expect(instance).to receive(:method) in rspec)
<Synthead> I'm doing this (pasting as it's just three lines):
<Synthead> notify_mock = MiniTest::Mock.new
<Synthead> notifier.stub(:notify, notify_mock) {}
<Synthead> notify_mock.expect(:notify, nil, [])
<Synthead> however, the notify method still gets called when I do notifier.notify
<Synthead> What am I doing wrong?
AJA4350 has quit [Remote host closed the connection]
leah2 has quit [Ping timeout: 256 seconds]
moei has quit [Ping timeout: 264 seconds]
leah2 has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
worch has left #ruby [#ruby]
eblip has joined #ruby
nowhereFast has left #ruby [#ruby]
white_lilies has quit [Ping timeout: 256 seconds]
rcs has quit [Ping timeout: 240 seconds]
sylario has quit [Quit: Connection closed for inactivity]
lytol_ has quit [Remote host closed the connection]
mzo has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
dviola has quit [Quit: WeeChat 2.2]
alfiemax has quit [Ping timeout: 260 seconds]
Jello_Raptor has quit [Ping timeout: 264 seconds]
Jello_Raptor has joined #ruby
chouhoulis has quit [Remote host closed the connection]
cjkinni has quit [Ping timeout: 240 seconds]
cjkinni has joined #ruby
alfiemax has joined #ruby
MzrE has joined #ruby
moei has joined #ruby
bmurt has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
krawchyk has quit [Quit: krawchyk]
alfiemax has joined #ruby
chouhoulis has joined #ruby
krawchyk has joined #ruby
krawchyk has quit [Client Quit]
agent_white has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
ciro has quit [Quit: WeeChat 2.2]
gix has quit [Disconnected by services]
Synthead has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
cagomez has joined #ruby
za1b1tsu has joined #ruby
Nilium has quit [Ping timeout: 248 seconds]
Skarlso has quit [Quit: ZNC 1.8.x-git-109-4d82211 - https://znc.in]
Phage has quit [Ping timeout: 248 seconds]
quintasan has quit [Quit: No Ping reply in 180 seconds.]
byte512 has quit [Ping timeout: 248 seconds]
veloutin has quit [Ping timeout: 248 seconds]
dorian has quit [Ping timeout: 248 seconds]
TvL2386 has quit [Ping timeout: 248 seconds]
bga57 has quit [Ping timeout: 248 seconds]
TvL2386 has joined #ruby
jp has quit [Ping timeout: 240 seconds]
alyptik has joined #ruby
veloutin has joined #ruby
alyptik is now known as jp
Nilium has joined #ruby
Phage has joined #ruby
nielsk has quit [Quit: So Long, and Thanks for All the Fish]
nielsk has joined #ruby
cagomez has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frem has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Ping timeout: 240 seconds]
adambeynon has quit [Read error: Connection reset by peer]
jabreity has quit [Read error: Connection reset by peer]
Sina has quit [Read error: Connection reset by peer]
Sina has joined #ruby
Eiam has quit [Read error: Connection reset by peer]
jabreity has joined #ruby
raz has quit [Ping timeout: 276 seconds]
adambeynon has joined #ruby
darkhanb has joined #ruby
howdoi has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
nowhereman has quit [Disconnected by services]
nowhere_man has joined #ruby
s2013 has joined #ruby
Inline has quit [Remote host closed the connection]
alfiemax has joined #ruby
MzrE has quit [Quit: Leaving]
sarna has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
sauvin has joined #ruby
cadillac_ has joined #ruby
Puffball has quit [Quit: Puffball]
biberu has joined #ruby
conta has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snickers has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
Synthead has joined #ruby
p4p0l0 has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cadillac_ has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 248 seconds]
cadillac_ has joined #ruby
NightMonkey has joined #ruby
s2013 has joined #ruby
s2013 has quit [Client Quit]
Dbugger has joined #ruby
yohji has joined #ruby
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
regedit has quit [Quit: Connection closed for inactivity]
clemens3 has joined #ruby
ellcs has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
p4p0l0 has joined #ruby
kapil___ has joined #ruby
sysvalve has joined #ruby
p4p0l0 has quit [Ping timeout: 265 seconds]
elphe has quit [Ping timeout: 244 seconds]
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
sarna has quit [Quit: Connection closed for inactivity]
reber has joined #ruby
elphe has joined #ruby
cgfbee has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
ur5us has joined #ruby
lxsameer has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
ur5us has quit [Ping timeout: 276 seconds]
cadillac_ has quit [Ping timeout: 276 seconds]
cadillac_ has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
nowhereman_ has quit [Ping timeout: 245 seconds]
Synthead has quit [Quit: Leaving]
nowhereman_ has joined #ruby
lxsameer has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
TJ- has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
Beams has joined #ruby
unreal_ has joined #ruby
deathwishdave has joined #ruby
unreal has quit [Ping timeout: 256 seconds]
ansraliant has quit [Quit: Konversation terminated!]
dhollin3 has joined #ruby
mengu has joined #ruby
<mengu> hi all
<TvL2386> hi
jottr has joined #ruby
dhollinger has quit [Ping timeout: 260 seconds]
venmx has joined #ruby
mengu has quit [Remote host closed the connection]
ur5us has joined #ruby
<ineb> hi
<ineb> just upgraded my rig with a gtx 1060. terminal is running so much smoother now
<tbuehlmann> increasing Metrics/LineLength Max to 100 like a pro
Cork has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
elphe has quit [Ping timeout: 248 seconds]
cgfbee has joined #ruby
lunarkitty7 has quit [Quit: WeeChat 1.9.1]
lunarkitty7 has joined #ruby
agent_white has quit [Quit: night]
<Bish> http://www.blacktm.com/blog/ruby-on-webassembly just read this article and it sounded interesting to me
<Bish> why is mruby "only" 1.8 compatible
<Bish> wouldn't it be super thrilling for rubyist to have ruby inside the browser with ALL it's features?
bak1an has joined #ruby
<Bish> i mean a ruby => mruby => c => llvm pipleline sounds like something that is doable
<Bish> pair that with some virtual dom language for ruby á la react and i think it would be super awesome
bak1an has quit [Ping timeout: 244 seconds]
bak1an has joined #ruby
conta has quit [Quit: conta]
cadillac_ has quit [Ping timeout: 240 seconds]
argoneus has quit [Quit: No Ping reply in 210 seconds.]
cadillac_ has joined #ruby
ur5us has quit []
<ineb> Bish: graalvm with truffle is another option
<Bish> oracle </discussion>
<ineb> its a shame indeed. but dont look away from truffle because of this. they are not oracle and doing a good job
argoneus has joined #ruby
<Bish> well, if it is as good that people could see over that licensing model i would certainly notice
<Bish> so long it doesnt exist for me
<ineb> well, some of them actually are oracle..
<Bish> what is "some of them"
<Bish> people? yeah well, they don't change the mind of all other people
<ineb> i just randomly clicked on someone who is answering issues on gh, https://github.com/chrisseaton and he is oracle
<Bish> and if mruby was completely compatible with 2.5 syntax i would already be writing stuff lijet hat
<Bish> gh?
<ineb> github
<Bish> ? well, sure they are, it's a oracle tool
<Bish> isn't it
<ineb> yes, i just wanted falsify my statement about truffle not being oracle
<Bish> i see
<Bish> yeah, well, my assumption is truffle has to be more than awesome, to be accepted by the community
<Bish> or rather graal
<Bish> but if mruby was 100% compatible with 2.5 syntax i'd be already writing some sort of automated framework
<Bish> to have ruby inside the browser
<ineb> yes. i have a project which mixes javascript and ruby and graal is working fine for that
<ineb> altough execjs is also fine
<Bish> not enough for me, i want 100% otherwise it's not interesting
cadillac_ has quit [Ping timeout: 248 seconds]
<Bish> opaljs is impressive and would work in most of the cases
<Bish> but performance is an issue, so is immuntability of things
<Bish> and threads. and and and
<ineb> regarding https://github.com/mruby/mruby, mruby is 1.9 compatible
<Bish> i know, that's what i said
<Bish> (well i said 1.8, but that was just a typo)
<Bish> but what changes in syntax since 1.9?
<Bish> do i have {a:3}
<ineb> just one more typo and were on 2.0 :)
<Bish> do i have ->(x)
<Bish> no i needed 2 typos for that
<Bish> otherwise i would be at 2.8
<Bish> but honestly: what changed since 1.9, i don't remember
beefjoe has joined #ruby
<ineb> iam not sure if a typographical error is limited to one char
<Bish> syntax-wise nothing? really?
cadillac_ has joined #ruby
<ineb> i dont remember either :/
<Bish> well if it's ONE error, and not errors
<Bish> certainly is :p
<Bish> maybe i will just play around and create a web framework with mruby, wil be fun i guess
<Bish> some virtual dom stuff in C & automatic model connection to clientside
<Bish> man that would be freakin awesome
sameerynho has joined #ruby
<Bish> and having a vm on top of a vm sounds odd doesnt it?
al2o3-cr has quit [Quit: WeeChat 2.2]
<ineb> by using opal you mean?
gr33n7007h has joined #ruby
tristanp has joined #ruby
qolq has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 264 seconds]
cadillac_ has quit [Ping timeout: 268 seconds]
cadillac_ has joined #ruby
sylario has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 260 seconds]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deathwishdave has joined #ruby
varesa_ is now known as varesa|
GodFather has joined #ruby
za1b1tsu has quit [Ping timeout: 260 seconds]
ohcibi has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 256 seconds]
Nicmavr has joined #ruby
ciro has joined #ruby
gr33n7007h is now known as al2o3-cr
Nicmavr has quit [Client Quit]
Nicmavr has joined #ruby
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 256 seconds]
jp has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
jp has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
za1b1tsu has joined #ruby
postmodern has quit [Quit: Leaving]
za1b1tsu has quit [Ping timeout: 276 seconds]
alfiemax has joined #ruby
chouhoulis has quit [Remote host closed the connection]
AJA4350 has quit [Quit: AJA4350]
Zaab1t has joined #ruby
conta has joined #ruby
chouhoulis has joined #ruby
<Bish> ineb: noooo webassembly, you're really confusing
micutzu has joined #ruby
<ineb> Bish: but what VM on top of another VM (webassembly)? :<
ur5us has joined #ruby
elphe has joined #ruby
cadillac_ has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
augcesar has joined #ruby
za1b1tsu has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
imperator has joined #ruby
<imperator> Good morning
conta has quit [Quit: conta]
<imperator> Isn't there a ruby library out there that will take a rest api specification and autogenerate a bunch of classes for you?
<ineb> imperator: swagger can do it
<imperator> ah, that's right, thanks ineb
elphe has quit [Ping timeout: 240 seconds]
<Bish> ineb: it's jsut one vm, graal doesnt run inside js, does it?
<Bish> and even if.. still would be a vm
FernandoBasso has joined #ruby
<FernandoBasso> How can one iterate over a collection, but only from index N and above?
<ineb> fernandobasso: why not skip until you there?
<imperator> fernandobasso, collection[n..-1].each{ ... }
<FernandoBasso> ineb: Well, if there is no other way.
<FernandoBasso> Ah!
<FernandoBasso> Looks fancy.
<FernandoBasso> I'll say it again. This channel is more instructive than most Ruby books :D
<ineb> fernandobasso: for collections, imperator gave an solution. another way would be collection.drop(N).each
<FernandoBasso> Thanks, oh most honorable Ruby connoisseurs.
<ineb> fernandobasso: but iterators dont always have a fixed length and therefore could be problematic in this manner
<ineb> however, its also possible to #drop there ;)
fmcgeough has joined #ruby
beefjoe has quit [Remote host closed the connection]
nowhereman_ is now known as nowhere_man
alfiemax has quit [Remote host closed the connection]
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
jp has joined #ruby
bmurt has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
elphe has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
argoneus has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
imperator has quit [Quit: Leaving]
bak1an has joined #ruby
argoneus has joined #ruby
tobiasvl has quit [Ping timeout: 276 seconds]
conta1 has joined #ruby
<Bish> .drop(:it).select(&:hot?)
<Bish> or rather likely_hot?
<Bish> i see myeself out
dhollin3 is now known as dhollinger
bsamorim has joined #ruby
Rapture has joined #ruby
<bsamorim> Hello! Is running `bundle install` as root user and executing the app as another one a bad practice in ruby?
sauvin has quit [Ping timeout: 256 seconds]
<ineb> bsamorim: almost always yes. cant you install the required gems relative as normal user via bundle install --path vendor/bundle or so?
frem has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
<bsamorim> ineb: I haven't tried specifing a --path. Without the arg, I get a EACCESS error. I realize that this is fixable by setting up appropriate group membership to my app-running user but, since after root-bundle-installing the app's dependencies, I could exec the app just fine as another user, I wanted to know what exactly was behind this "no-bundler-as-root" rule
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
<ineb> bsamorim: basically because you are running arbitrary code in root context. gem installation routines can include any thinkable statements and therefore damage your system
<ineb> *therefore _possibly_ damage your system
<bsamorim> ineb: this exposure only happens during the actual bundle install, right?
<bsamorim> I can't exec arbitrary code as root just by running the app, right?
chouhoulis has quit [Remote host closed the connection]
<ineb> bsamorim: not without running a privilege escalation exploit, no :)
<bsamorim> ineb: haha ok, thanks for the help!
<ineb> bsamorim: but you can of course sudo and stuff if your system is configured that way
<bsamorim> ineb: k, thx!
sauvin has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
za1b1tsu has joined #ruby
ur5us has joined #ruby
hgost has joined #ruby
za1b1tsu has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 256 seconds]
tty has quit [Quit: tty]
snickers has joined #ruby
chris349 has quit [Ping timeout: 244 seconds]
biberu has quit []
conta1 has quit [Quit: conta1]
tdy has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
_whitelogger has joined #ruby
Inline has joined #ruby
tcopeland has joined #ruby
za1b1tsu has joined #ruby
tcopeland has quit [Client Quit]
ivanskie has joined #ruby
za1b1tsu has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
kapil___ has joined #ruby
konsolebox has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has joined #ruby
polishdub has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
clemens3 has quit [Ping timeout: 264 seconds]
cthu| has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
cthulchu_ has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
beowuff has joined #ruby
p4p0l0 has joined #ruby
sysvalve has quit [Quit: Leaving]
wildermind has joined #ruby
moei has quit [Quit: Leaving...]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
darkhanb has joined #ruby
p4p0l0 has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
lxsameer has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
alfiemax has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
mroutis has joined #ruby
mroutis has left #ruby [#ruby]
yohji has quit [Remote host closed the connection]
lxsameer has joined #ruby
orbyt_ has joined #ruby
vikaton has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams has quit [Quit: .]
orbyt_ has quit [Client Quit]
Mike11 has quit [Quit: Leaving.]
alfiemax has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
jrich523 has joined #ruby
Rapture has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
mroutis has joined #ruby
mroutis has quit [Remote host closed the connection]
brt has joined #ruby
mroutis has joined #ruby
<TJ-> Is this valid? "until (in = File.join(x,y)) != nill do "
Some-body_ has joined #ruby
<TJ-> as in assign to in, and test "in != nil" ?
lypsis has quit [Quit: ZNC - http://znc.in]
DarthGandalf has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
mroutis has left #ruby [#ruby]
Some-body_ is now known as DarthGandalf
venmx has quit [Ping timeout: 256 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
lypsis has joined #ruby
go|dfish has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
<havenwood> TJ-: File#join always returns a String, never nil.
<havenwood> TJ-: It's often less convoluted to `loop do` with a `break foo if`.
<havenwood> TJ-: We might be able to give a better suggestion with more context regarding the surrounding code.
<havenwood> >> File.join ''
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> #=> ""
<havenwood> File.join '', '' #=> "/"
za1b1tsu has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Ping timeout: 245 seconds]
bak1an has joined #ruby
cadillac_ has joined #ruby
spiette has quit [Quit: ZNC 1.7.1 - https://znc.in]
cthulchu_ has joined #ruby
spiette has joined #ruby
<TJ-> havenwood: yeah, I noticed that, ignore that bit! I was on about the "until (a = b.method) == nil" construct, where b.method() will at some point return nil - My typing was all over the place originally :)
cadillac_ has quit [Read error: Connection reset by peer]
<TJ-> havenwood: is it valid to assign and test the result of the assignment in the same statement like that
<brt> trying to compile ruby 2.5.1 for i686 on the latest x86_64 macos version, but I keep running into strange errors, like `error: use of undeclared identifier 'username_completion_function'; did you mean 'rl_username_completion_function'?` despite it being #define’d earlier in the file (readline.c)
cthu| has quit [Ping timeout: 260 seconds]
<brt> I’m installing it with rvm, to which I’m passing the --with-arch=i686 option
<brt> and it seems to work fine with --with-arch=x86_64
<TJ-> havenwood: I'm giving myself a crash-course in Ruby to hack vagrant-mutate with minimally invaise patches, so although I'm reading the docs it's a lot to take in all at once
cadillac_ has joined #ruby
<brt> I’ve tried using my system default (some gcc version) and clang to no avail
chouhoulis has quit [Ping timeout: 256 seconds]
ldepandis has joined #ruby
moei has joined #ruby
AJA4350 has joined #ruby
eckhardt has joined #ruby
noidedsuper has joined #ruby
rrichardsr3 has joined #ruby
Rapture has joined #ruby
polishdub has quit [Quit: leaving]
Freshnuts has joined #ruby
rrichard_ has joined #ruby
chouhoulis has joined #ruby
rrichardsr3 has quit [Ping timeout: 268 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 248 seconds]
AJA4351 is now known as AJA4350
graphene has joined #ruby
lxsameer has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has joined #ruby
graphene has quit [Remote host closed the connection]
SeepingN has joined #ruby
graphene has joined #ruby
cadillac_ has quit [Ping timeout: 256 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
lxsameer has quit [Ping timeout: 264 seconds]
DTZUZU has joined #ruby
jrich523 has quit [Ping timeout: 265 seconds]
cadillac_ has joined #ruby
ur5us has joined #ruby
za1b1tsu has quit [Ping timeout: 260 seconds]
sauvin has quit [Remote host closed the connection]
AJA4351 has joined #ruby
ByronJohnson has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 256 seconds]
AJA4351 is now known as AJA4350
ByronJohnson has joined #ruby
biberu has joined #ruby
AJA4351 has joined #ruby
Freshnuts has quit [Quit: Leaving]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
nemesit|znc has joined #ruby
kieranjogrady has joined #ruby
lxsameer has joined #ruby
graphene has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
graphene has joined #ruby
kapil___ has joined #ruby
mroutis has joined #ruby
mroutis has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 256 seconds]
lxsameer has quit [Ping timeout: 264 seconds]
graphene has quit [Remote host closed the connection]
elphe has joined #ruby
graphene has joined #ruby
Puffball has joined #ruby
elphe has quit [Ping timeout: 244 seconds]
AJA4350 has joined #ruby
r29v has joined #ruby
rrichard_ has quit [Quit: He who dares .... wins.]
noidedsuper has quit [Quit: Leaving]
hgost has quit [Quit: leaving]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
venmx has joined #ruby
mroutis has joined #ruby
\void has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deathwishdave has joined #ruby
mroutis has quit [Remote host closed the connection]
lxsameer has joined #ruby
Rapture has quit [Ping timeout: 260 seconds]
lxsameer has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
GodFather has joined #ruby
lxsameer has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
jrich523 has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
<TJ-> If a super-class has a method definition that has the same name as a sub-class instance variable, is it possible for the instance variable name to over-ride the method or are the names essentially different due to the instance variable's @ prefix? I'm looking for a way to avoid duplicating the same code in sub-classes by moving it to the super, but in some sub-classes the 'name' is just a variable
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
kinduff has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 248 seconds]
AJA4351 is now known as AJA4350
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has joined #ruby
biberu has quit []
AJA4350 has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
Dark_Arc has quit [Ping timeout: 264 seconds]
AJA4350 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
FernandoBasso has quit [Quit: Page closed]
eckhardt has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
fmcgeough has quit [Quit: fmcgeough]
lytol_ has joined #ruby
hurricanehrndz is now known as HurricaneHrndz_
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
graphene has quit [Read error: Connection reset by peer]
graphene has joined #ruby
elphe has joined #ruby
brt has quit [Quit: brt]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
elphe has quit [Ping timeout: 256 seconds]
segy has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
<jrich523> hey guys, using pry to poke at some code and i get an error msg about using a "guests" member, and im confused to as why, if i do a pp kvm, it looks like this https://gist.github.com/jrich523/b572b8d964f3111febb07a0851c001c9
<jrich523> i am unable to access the guests at all
deathwishdave has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
segy has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
HurricaneHrndz_ is now known as hurricanehrndz
troulouliou_dev has joined #ruby
elphe has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has quit [Ping timeout: 240 seconds]
elphe has joined #ruby
lupine has quit [Remote host closed the connection]
venmx has quit [Quit: leaving]
lupine has joined #ruby
<baweaver> jrich523: What's the error?
<baweaver> I bet you it doesn't have an accessor.
<baweaver> An instance variable doesn't guarantee an accessor
<jrich523> no method
<jrich523> and i bet you are right :)
<jrich523> so, i had this to hash method, pods.each(& :hash) which allowed me to see that data
<jrich523> so that sort of threw me off a bit
<jrich523> thought being, if i can export it, why cant i access it via the object
<jrich523> also on the object init there was a @guests = guests... which, doesnt mean it has an accessor... forgot that :-/
postmodern has joined #ruby
jp has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
jp has joined #ruby
Dbugger has quit [Ping timeout: 245 seconds]
reber has quit [Remote host closed the connection]
millerti has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
r29v has quit [Quit: r29v]
kinduff has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 256 seconds]
Caerus has joined #ruby
mzo has joined #ruby
cthulchu_ has quit [Quit: Leaving]
cthulchu has joined #ruby
ellcs has quit [Ping timeout: 245 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
nfsnobody has quit [Ping timeout: 240 seconds]
Puffball has quit [Read error: Connection reset by peer]
deathwishdave has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitz has joined #ruby
<leitz> Style/clarity question. If you have different programs that will use the same class definition; where each program uses some of the classes' built-in methods and some that only that program uses, is it better to let each program extend the class as it needs or to put everything in the base class?
kapil___ has quit [Quit: Connection closed for inactivity]
crankharder has quit [Remote host closed the connection]
<mzo> leitz: generally you don't modify the source of libraries you're using
<mzo> sometimes you need to, but you don't just put your application code into the library
<leitz> mzo, even if I'm the author of the library and the program?
<mzo> yes
<leitz> So, you feel extending the class is the cleanest path?
<leitz> I'm moving into things I've never really done before, so trying to do them well.
<mzo> well why do you even need to add methods to this class?
<leitz> Different programs need different things from the instances of the class.
feelx has joined #ruby
<leitz> So the different programs utilize, and may even add to, data about the instances.
<mzo> that might be an indication that the class doesn't provide a very useful interface
<leitz> It provides a very clean and simple interface, and assumes it will be extended. :)
Dark_Arc has joined #ruby
erratic has quit [Ping timeout: 256 seconds]
<mzo> ok then extend it
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz> The base class is "Person", with a small set of attributes. Different programs need different attributes; one might want "Career" and another "Hair color" and "psychological profile".
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mzo> ok sure
<mzo> that's a pretty contrived example though. generally you don't see this in practice.
<leitz> That's pretty close to what I'm actually doing.
<mzo> but what does your program actually do?
<mzo> and what does this class do aside from have this small set of attributes?
<leitz> One is a space merchant game, another makes generic characters for games and fiction, and another stores and updates characters via a web interface. Note that these are being worked on, so "makes" is used loosely.
<mzo> and the Person class?
<leitz> The Person class has and presents basic data. Name, age, statistics (for a a game), gender. Each of the other programs uses that data plus it's own attributes.
<leitz> So the ship game might assign a work role "First officer on the Karava Manoi". The base class doesn't usually have a "work role" attribute.
<leitz> A character generation program just gives base data and lets the user decide what to add.
<mzo> ok
<mzo> the thing about adding new instance variables to classes is that none of the existing methods know about your new variables
<mzo> so they can't do anything with them
<mzo> so then you add new methods to the class that use your new variables
<mzo> but really you could have just made a new class
cadillac_ has quit [Ping timeout: 244 seconds]
<mzo> if you're extending a class in a dynamically typed programming language and not overriding any of its methods, something is kind of odd
lxsameer has joined #ruby
cadillac_ has joined #ruby
<mzo> it may seem unsatisfactory to recreate a Person class with a few of the same attributes for each of your programs, so i understand the impulse to go for code re-use, but imo you should just copy and paste the class for each program
<leitz> Each iteration pushes me to think better about the design. That's one of the big reasons for staying with code re-use. The other is to push me to learn how to really use objects. I could do this a lot easier with a struct and some methods.
lxsameer has quit [Ping timeout: 268 seconds]
<lupine> we're already way too far on the code-reuse side of the equation
alfiemax has joined #ruby
<leitz> lupine, not sure I understand.
<lupine> too much code reuse
<lupine> let's have less of it
TJ- has quit [Quit: WeeChat 1.9.1]
<leitz> Nyah, I like it.