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]
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…]
<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…]
<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