harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
harrycs has quit [Remote host closed the connection]
erlend has quit [Ping timeout: 268 seconds]
harrycs has joined #ruby
erlend has joined #ruby
noobineer has quit [Remote host closed the connection]
harrycs has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
harrycs has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rshetty has joined #ruby
harrycs has quit [Remote host closed the connection]
rshetty has quit [Read error: Connection reset by peer]
harrycs has joined #ruby
rshetty has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
harrycs has quit [Client Quit]
ByronJohnson has quit [Ping timeout: 256 seconds]
ByronJohnson has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
kn-928 has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
connor_g1odwolf has quit [Quit: leaving]
connor_goodwolf has joined #ruby
cschneid_ has quit [Ping timeout: 265 seconds]
imode has quit [Ping timeout: 268 seconds]
imode has joined #ruby
anisha has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
chmurifree has joined #ruby
xuanrui has quit [Quit: Leaving]
rshetty has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 255 seconds]
comet23 has joined #ruby
cschneid_ has joined #ruby
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
hndk has joined #ruby
GodFather has joined #ruby
Omnilord has joined #ruby
rshetty has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
nadir has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
_aeris_ has quit [Remote host closed the connection]
redlegion has quit [Read error: Connection reset by peer]
jnollette has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
_aeris_ has joined #ruby
redlegion has joined #ruby
reber has joined #ruby
jnollette has joined #ruby
Omnilord has quit [Quit: Something went wrong because I left.]
soniya29_ has quit [Ping timeout: 240 seconds]
soniya29 has quit [Ping timeout: 260 seconds]
oleo has quit [Quit: Leaving]
cam27 has joined #ruby
govg has joined #ruby
ciscam has quit [Ping timeout: 256 seconds]
ciscam has joined #ruby
hndk has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has joined #ruby
ozzloy_ is now known as ozzloy
ozzloy has quit [Changing host]
ozzloy has joined #ruby
conta has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
soniya29 has joined #ruby
soniya29_ has joined #ruby
n008f4g_ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soniya29__ has joined #ruby
soniya29_ has quit [Read error: Connection reset by peer]
soniya29 has quit [Read error: Connection reset by peer]
aupadhye has joined #ruby
soniya29 has joined #ruby
kn-928 has joined #ruby
soniya29__ has quit [Remote host closed the connection]
soniya29 has quit [Remote host closed the connection]
soniya29 has joined #ruby
soniya29__ has joined #ruby
kn-928 has quit [Ping timeout: 255 seconds]
n008f4g_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Xiti has quit [Ping timeout: 264 seconds]
erlend has quit [Ping timeout: 276 seconds]
apeiros has quit [Remote host closed the connection]
Xiti has joined #ruby
erlend has joined #ruby
soniya29__ has quit [Quit: Leaving]
soniya29 has quit [Quit: Leaving]
venmx has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
law has joined #ruby
<law>
hey all, I'm trying to debug an older rails app, and back-port the concept of a 'staging' environment into it where there was none before
<law>
a lot of this has looked like opening up the .yml files under config/, finding the ones that had 'production', 'common', 'development' sections, etc, and adding a 'staging' section
n3b has joined #ruby
<law>
I've done that for every file I could find under config, but still my app crashes on startup
<law>
(when I set RAILS_ENV=staging)
<law>
when its production, development, etc, it starts just fine
<law>
is there a way to further debug which component is lacking the concept of a 'staging' section, so I can fix it?
<Radar>
law: define "crashes"
<Radar>
Is there an error?
<law>
it refuses to start, and throws a stack-trace like this:
<mikhael_k33hl>
line 65 is executed, but line 66 which raises and exception/error doesn't seem to be executed or it is but I'm not catching/rescuing it correctly
iMadper` has joined #ruby
iMadper has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
<Radar>
law: But where can I find this gem if not on RubyGems?
zenspider has joined #ruby
imode has quit [Ping timeout: 240 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
zenspider has quit [Changing host]
zenspider has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
DTZUZO has quit [Quit: WeeChat 2.0]
<law>
actually, I think I just sorted it
<law>
there's a bunch of config files NOT in config/ that have environment stuff in them, I'll modify those and see if that doesn't help
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
arekushi has joined #ruby
venmx has joined #ruby
<law>
out of curiosity, is there a way to configure the 'thin' app server to only use a single socket for all its server-subprocesses?
<law>
my preference is for it to act more like unicorn - one socket-file, multiple workers hanging off that socket
Deon has joined #ruby
clemens3_ has joined #ruby
cam27 has left #ruby [#ruby]
govg has quit [Ping timeout: 276 seconds]
govg has joined #ruby
claudiuinberlin has joined #ruby
mahlon_ is now known as mahlon
Burgestrand has joined #ruby
_joes_ has joined #ruby
DTZUZO has joined #ruby
lunarkitty7 has quit [Ping timeout: 265 seconds]
aufi has joined #ruby
alfiemax has joined #ruby
aufi_ has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
cam27_ has joined #ruby
comet23 has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
guardian` is now known as guardian
apeiros has joined #ruby
cam27_ has quit [Quit: cam27_]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
shoogz has joined #ruby
_joes_ has quit []
yeticry_ has quit [Ping timeout: 255 seconds]
schneider has joined #ruby
yeticry has joined #ruby
kn-928 has joined #ruby
ncopa2 is now known as ncopa
ncopa has quit [Changing host]
ncopa has joined #ruby
venmx has quit [Remote host closed the connection]
aufi_ has quit [Remote host closed the connection]
aufi_ has joined #ruby
suukim has joined #ruby
lunarkitty7 has joined #ruby
<mikhael_k33hl>
I have a thread-safe array that I want to pass on a singleton that acts as an observer that should delete an element when the thread is done. How do I pass that array?
imode has joined #ruby
<apeiros>
you pass it like any other object? or why do you think there'd be anything special?
<mikhael_k33hl>
apeiros: So it'll be pass by reference eh? thought it would be passed by copy
<dminuoso>
mikhael_k33hl: variables can be thought to contain pointers/references.
<apeiros>
it is pass-by-object
<dminuoso>
mikhael_k33hl: So if you do `p(a)` it passes the *reference* inside a by value.
<apeiros>
ruby ain't C. don't think in C terms.
<dminuoso>
apeiros: pass-by-object is not semantics
<apeiros>
dminuoso: got a better term?
<mikhael_k33hl>
dminuoso: i passes the reference to a right?
<dminuoso>
Ive pondered about this a lot and discussed this with many people. Formally Ruby is call-by-value is you see variables as containing references
erlend has quit [Ping timeout: 240 seconds]
<apeiros>
ruby doesn't have references the way other languages have them, so "pass by reference vs pass by copy" is not a meaningful consideration
<apeiros>
and what happens internally (in cruby the VALUE being copied) is an implementation detail and immaterial to the question
<dminuoso>
apeiros: variables are references
<apeiros>
dminuoso: yes, but again, not the same as in other languages. or how do you dereference them?
<dminuoso>
apeiros: you can think of the "dot" operator as dereferencing
<dminuoso>
as in `foo.bar`
<dminuoso>
apeiros: It has the advantage to be easier to understand from an evaluation strategy point of view
<apeiros>
eh, yeah, no. you can't do something like C++'s &foo vs. foo
erlend has joined #ruby
<dminuoso>
apeiros: when I say "reference" I mean it in a generic sense, more like pointer. perhaps `reference` is a bit too overloaded.
face has quit [Read error: Connection reset by peer]
tdy has quit [Read error: Connection reset by peer]
<apeiros>
dminuoso: I understand that
<dminuoso>
apeiros: oh I misunderstood what you just said then
SegFaultAX has quit [Ping timeout: 256 seconds]
face has joined #ruby
marius has quit [Quit: Ping timeout (120 seconds)]
<dminuoso>
apeiros: you can do it. assignment to variables is taking a reference.
mahlon has quit [Read error: Connection reset by peer]
jmhmccr has quit [Read error: Connection reset by peer]
ncopa has quit [Ping timeout: 264 seconds]
csaunders has quit [Ping timeout: 264 seconds]
nadir has quit [Read error: Connection reset by peer]
tfitts has quit [Read error: Connection reset by peer]
howdoi has quit [Read error: Connection reset by peer]
justache has quit [Read error: Connection reset by peer]
rshetty has quit [Read error: Connection reset by peer]
cats has quit [Ping timeout: 276 seconds]
jmhmccr has joined #ruby
mikecmpbll has joined #ruby
<apeiros>
the point is that a question like "is ruby pass-by-value or pass-by-reference" implies ruby had a different way of how the variable system actually works. it's not a meaningful question since ruby does not.
tfitts has joined #ruby
jonjits[m] has quit [Ping timeout: 248 seconds]
Danielss89_ has quit [Ping timeout: 264 seconds]
vircung has quit [Ping timeout: 264 seconds]
nadir has joined #ruby
<apeiros>
hence my clumsy "it's neither, it's pass-by-object"
howdoi has joined #ruby
rcs has quit [Ping timeout: 256 seconds]
m4rCsi has joined #ruby
<apeiros>
(and yes, I'm aware too of things like ObjectSpace._id2ref)
jamesaxl has quit [Ping timeout: 264 seconds]
badeball has quit [Ping timeout: 264 seconds]
jsaak has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
justache has joined #ruby
arooni has quit [Ping timeout: 276 seconds]
Klumben has quit [Ping timeout: 276 seconds]
<dminuoso>
apeiros: Im willing to forego dirty details like OS :P
jamesaxl has joined #ruby
neuromanc_r has quit [Ping timeout: 248 seconds]
Cork has quit [Ping timeout: 248 seconds]
mahlon has joined #ruby
ohcibi_ has joined #ruby
tjbp_ has joined #ruby
reaVer has quit [Ping timeout: 264 seconds]
m4rCsi_ has quit [Ping timeout: 264 seconds]
biox has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 264 seconds]
tjbp has quit [Ping timeout: 264 seconds]
nyuszika7h has quit [Ping timeout: 264 seconds]
webhat has quit [Ping timeout: 264 seconds]
ohcibi has quit [Ping timeout: 264 seconds]
bmn_ has quit [Ping timeout: 240 seconds]
devyn_ has quit [Ping timeout: 276 seconds]
miah has quit [Ping timeout: 256 seconds]
<dminuoso>
apeiros: pass-by-object is just not well defined..
biox has joined #ruby
<apeiros>
hence "got a better term?"
<dminuoso>
apeiros: pass-by-value.
badeball has joined #ruby
marius has joined #ruby
<apeiros>
maybe there is a well defined term for what ruby does. given that many OO languages work this way.
<dminuoso>
It's just a matter of "what is my value actually"
SegFaultAX has joined #ruby
<dminuoso>
that is
eam_ has quit [Remote host closed the connection]
<dminuoso>
when you write a = [1,2]
<dminuoso>
what _is_ a?
jsaak has joined #ruby
<dminuoso>
a is clearly not an object
kloeri_ has joined #ruby
<apeiros>
yeah, see, that way lies confusion
gigetoo has joined #ruby
ur5us has quit [Remote host closed the connection]
arooni has joined #ruby
eam has joined #ruby
cats has joined #ruby
miah_ has joined #ruby
devyn has joined #ruby
vircung has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
megamosaren has joined #ruby
ur5us has joined #ruby
<dminuoso>
apeiros: in the "variables are pointers to objects" view, you can apply strict evaluation order of call-by-value, that is arguments are reduced before substituted, and not get confused.
kloeri has quit [Read error: Connection reset by peer]
<apeiros>
dminuoso: ok, I wish you good luck explaining that to e.g. mikhael_k33hl :)
<dminuoso>
mmm
tdy has joined #ruby
nyuszika7h has joined #ruby
webhat has joined #ruby
Danielss89 has joined #ruby
csaunders has joined #ruby
arooni has quit [Excess Flood]
arooni has joined #ruby
rcs has joined #ruby
<dminuoso>
apeiros: okay lets consider your view point
<apeiros>
I mean you're correct. it is pass-by-value in that it's impossible to have `a = x; a_obj_id = a.object_id; some_method(a); a_object_id != a.object_id` (obviously without dirty tricks à la evil.rb/fiddle)
<dminuoso>
apeiros: what is your definition of "pass-by-object"
<apeiros>
good question. lets try whether I can come up with a good one.
<apeiros>
and maybe you can improve upon it :)
bmn has joined #ruby
reaVer has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
<apeiros>
hrmpf, I'll use the term "referenced/referencing", maybe we can substitute it for something better later
tdy has quit [Read error: Connection reset by peer]
<dminuoso>
I promise I wont nitpick on your choice of words!
rshetty has quit [Remote host closed the connection]
exchgr has quit [Ping timeout: 240 seconds]
exchgr has joined #ruby
dhollin3 has joined #ruby
chmuri has quit [Excess Flood]
Beams has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
hii has joined #ruby
dhollinger has quit [Ping timeout: 268 seconds]
chmurifree has joined #ruby
alex`` has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
Beams has quit [Client Quit]
hii has left #ruby [#ruby]
ta__ has quit [Remote host closed the connection]
<kke>
weird. Pathname.new('/tmp').glob('*') says undefined method glob for #<Pathname..> on 2.4.2 but not on 2.5.1. from the docs it looks like it was already there at least in 2.1.0.
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Beams has joined #ruby
rshetty has joined #ruby
ta_ has joined #ruby
<elomatreb>
kke: The docs for 2.1 only mention the class method, not an instance method
<kke>
ah, yeah, right
<kke>
so it is a 2.5 addition then after all
amar has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
<kke>
looks like Pathname.glob('/tmp/*') does pretty much the same thing so that will have to do.
suukim has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
tvw has quit []
anisha has joined #ruby
ur5us has joined #ruby
ur5us_ has quit [Ping timeout: 260 seconds]
clemens3_ has quit [Ping timeout: 240 seconds]
schickung has quit [Quit: schickung]
dr3w_ has joined #ruby
gemini315 has quit [Quit: Download IceChat at www.icechat.net]
dr3w_ has quit [Client Quit]
ur5us_ has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
anisha has joined #ruby
ryzokuken has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
erlend has quit [Ping timeout: 276 seconds]
erlend has joined #ruby
ta_ has quit [Remote host closed the connection]
soniya29 has joined #ruby
soniya29_ has joined #ruby
TheOnlyBouncer has joined #ruby
marr has joined #ruby
<TheOnlyBouncer>
Good day, question, my system just upgraded my ruby version and now my installed gem applications don't work anymore (still pointing to the old ruby version), any tips on fixing this?
<zmo_>
TheOnlyBouncer - remove your gem folder and re-update it
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
al2o3-cr has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: minimalism]
<zenspider>
TheOnlyBouncer: `gem help pristine`
jenrzzz has quit [Ping timeout: 264 seconds]
Puffball_ has joined #ruby
Puffball has quit [Ping timeout: 255 seconds]
KeyJoo has joined #ruby
schickung has joined #ruby
megamosaren has quit [Ping timeout: 276 seconds]
clemens3_ has joined #ruby
ur5us_ has quit [Ping timeout: 264 seconds]
Zaab1t has joined #ruby
sundhell_away is now known as sundhell
ur5us has joined #ruby
drale2k_ has joined #ruby
hfp__work has quit [Quit: bye]
AJA4350 has joined #ruby
hfp_work has joined #ruby
apparition has joined #ruby
apparition has quit [Changing host]
apparition has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
cadillac_ has quit [Ping timeout: 260 seconds]
<TheOnlyBouncer>
zmo_, thanks just removing and reinstalling helped
cadillac_ has joined #ruby
ur5us has joined #ruby
karapetyan has joined #ruby
maufart__ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
aufi_ has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
InfinityFye has joined #ruby
stormpack has joined #ruby
InfinityFye has left #ruby [#ruby]
cadillac_ has joined #ruby
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
TheOnlyBouncer has left #ruby ["Leaving"]
venmx has quit [Remote host closed the connection]
suukim has joined #ruby
ur5us_ has joined #ruby
claudiuinberlin has joined #ruby
venmx has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
phaul has joined #ruby
Cavallari has joined #ruby
karapetyan has joined #ruby
lele has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
lele has joined #ruby
Cavallari has quit [Quit: Cavallari]
stormpack has quit [Quit: Leaving]
Cavallari has joined #ruby
ur5us_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
alex`` has quit [Quit: WeeChat 2.1]
karapetyan has quit [Remote host closed the connection]
nertzy2 has quit [Ping timeout: 256 seconds]
nertzy has joined #ruby
Azure has quit [Read error: Connection reset by peer]
sundhell is now known as sundhell_away
ta_ has joined #ruby
Azure has joined #ruby
bmurt has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
karapetyan has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jrafanie has joined #ruby
ur5us has joined #ruby
sundhell_away is now known as sundhell
karapetyan has quit [Remote host closed the connection]
TomyLobo has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
Beams has quit [Quit: .]
karapetyan has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Beams has joined #ruby
Dimik has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
John_Ivan has joined #ruby
karapetyan has quit [Remote host closed the connection]
soniya29_ has quit [Remote host closed the connection]
soniya29 has quit [Remote host closed the connection]
soniya29_ has joined #ruby
soniya29 has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
megamosaren has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroi_ has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
VladGh has joined #ruby
synthroid has quit [Ping timeout: 264 seconds]
soniya29_ has quit [Quit: Leaving]
soniya29 has quit [Quit: Leaving]
xenulv has quit [Quit: This computer has gone to sleep]
rshetty has quit [Read error: Connection reset by peer]
phaul has quit [Quit: WeeChat 2.1]
nadir has quit [Quit: Connection closed for inactivity]
sepp2k has joined #ruby
_rshetty_ has joined #ruby
bmurt has joined #ruby
sanscoeu_ has joined #ruby
leitz has joined #ruby
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dr3w_ has joined #ruby
sanscoeur has quit [Ping timeout: 265 seconds]
dr3w_ has quit [Client Quit]
erlend has quit [Ping timeout: 245 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erlend has joined #ruby
synthroid has joined #ruby
RougeR has quit [Ping timeout: 260 seconds]
ellcs has joined #ruby
synthroi_ has quit [Ping timeout: 260 seconds]
<kke>
Logger.new($stdout).instance_variable_get(:@logdev).dev.isatty <-- must be a prettier way
dr3w_ has joined #ruby
<kke>
but i can't find any accessor for the log device in logger
<apeiros>
$stdout.isatty ?
duderonomy has joined #ruby
<apeiros>
or you mean once you only have the logger instance? it's not unlikely that in that case, there's no nicer way, and you might even have to guard against isatty not being present
<apeiros>
after all, Logger is supposed to abstract away where you're logging to. it might be something which does not have a isatty method
<kke>
probably better yeah
<apeiros>
or put another way: asking logger might be the wrong approach.
<kke>
also it could just be some "logger-compatible" object which does not have the same internals, so .instance_variable_get is going to break
<apeiros>
yupp. even more "maybe asking logger might be the wrong approach"
workmad3_ has quit [Ping timeout: 240 seconds]
zenulv has joined #ruby
aufi_ has joined #ruby
drale2k_ has joined #ruby
maufart__ has quit [Ping timeout: 276 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
zenulv has quit [Ping timeout: 256 seconds]
zapata has quit [Read error: Connection reset by peer]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Junaos has quit [Ping timeout: 264 seconds]
Junaos has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
byte512_ has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Ping timeout: 268 seconds]
hays has joined #ruby
hays has quit [Changing host]
hays has joined #ruby
<hays>
can someone help with figuring out how to use this gem, specifically how to make the connection have KEEPALIVE enabled? https://github.com/rmodbus/rmodbus
<hays>
I think maybe there is something in the underlying implementation that I need to activate
alex`` has joined #ruby
npgm has joined #ruby
_aeris_ has joined #ruby
byte512 has joined #ruby
<hays>
I think its the @io member in Modbus::Client
dr3w_ has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby[bot]>
al2o3-cr: # => [SystemStackError, NoMemoryError, SecurityError, NotImplementedError, LoadError, SyntaxError, Script ...check link for more (https://eval.in/984580)
<al2o3-cr>
StandardError won't rescue these.
alfiemax has quit [Ping timeout: 265 seconds]
<al2o3-cr>
and you don't really want to be rescuing every exception anyhow.
claudiuinberlin has joined #ruby
tomaw_ is now known as tomaw
bmurt has joined #ruby
Sina has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
clemens3_ has joined #ruby
<al2o3-cr>
hays: ^^
<hays>
yeah im being a bit lazy but in this case I don't think it matters too much, I just don't want to rescue something if something totally nuts happens
<hays>
in this case, I'm setting some socket options, and it appears that they are OS specific, so if it doesn't work im just issuing a quick diagnostic message and moving on
<al2o3-cr>
as in socket.setsockopt?
<hays>
on my system NameError is thrown, but I don't know for sure its always going to be NameError
<al2o3-cr>
hays got an example?
tcopeland has quit [Quit: tcopeland]
<al2o3-cr>
it could raise a number of exception Errno::ENOPROTOOPT, ArgumentError etc depending on the circumstances
<havenwood>
hays: A 1.9.3 app should run just fine on 2.0. I don't recall those upgrades being a pain at all.
<havenwood>
Bump the version and see if it's green!
einarj has quit [Remote host closed the connection]
<al2o3-cr>
hays: is this for a company you work for?
Junaos has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<hays>
havenwood: thankfully I don't need to support those versions too much. when I do I'll sometimes just monkeypatch in the things im using from 2.x as long as its not too much to deal with
raynold has joined #ruby
<hays>
al2o3-cr: yeah. although this is usually just test/startup code so latest/greatest isn't really a priority
<hays>
if I was really trying i'd probably learn to use a tool like bundle to get more control over the environment
jeffreylevesque has quit [Ping timeout: 264 seconds]
<hays>
did I understand you correctly that rescue already rescues Standard error? but then I guess rescue => e rescues more?
<hays>
let me read about that too
<al2o3-cr>
rescue => e stores the exception in the variable e
<hays>
Ahh, I read about it now I understand. As long as I dont rescue Exception => e im good
orbyt_ has joined #ruby
<hays>
if a kwarg is required I guess I need to check that explicitly?
<al2o3-cr>
hays: in what way?
<hays>
like lets say I don't want to assume a default but instead issue some kind of ArgumentError
<al2o3-cr>
you'll only get an ArgumentError if it's not a valid key
jenrzzz has quit [Ping timeout: 260 seconds]
sundhell is now known as sundhell_away
alfiemax_ has quit [Remote host closed the connection]
<hays>
its not worth you reading about it :) basically for some reason a .json file with IP overrides got corrupted (not sure how this happened, it was working yesterday) and this meant an IP wasn't being passed in. So the code was working.
ryzokuken has joined #ruby
rshetty has quit [Ping timeout: 260 seconds]
<al2o3-cr>
was working or not working that is the question ;)
tdy has quit [Ping timeout: 276 seconds]
alfiemax has joined #ruby
marxarelli is now known as marxarelli|afk
tcopeland has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
n0m4d1c has joined #ruby
harrycs has joined #ruby
InfinityFye has joined #ruby
venmx has quit [Remote host closed the connection]
rshetty has joined #ruby
cagomez has quit [Remote host closed the connection]
ltt has joined #ruby
cagomez has joined #ruby
cloaked1 has quit [Ping timeout: 260 seconds]
quobo has joined #ruby
ltt has quit [Client Quit]
kevinburke has joined #ruby
<kevinburke>
hi there, can I ask a dumb question? i've been running dtrace on my executing ruby process
anisha_ has joined #ruby
<kevinburke>
a file in globalid-0.3.7/lib/global_id/global_id.rb calls "require 'global_id/uri/gid'". the file we are looking for is adjacent, in globalid-0.3.7/lib/global_id/uri/gid.rb. but instead of looking there, we stat all ~300 rubygems for <gemname>/lib/global_id/uri/gid.rb
<hays>
well that was a rabbit hole with the camelCase
<kevinburke>
that seems... slow? is there a way to check the current package first?
<hays>
I did that ALOT. :)
tdy has joined #ruby
cagomez has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
oleo has left #ruby ["Leaving"]
orbyt_ has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
nadir has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
anisha_ has quit [Quit: This computer has gone to sleep]
imode has joined #ruby
n13z has quit [Quit: leaving]
cagomez has quit [Ping timeout: 276 seconds]
cloaked1 has joined #ruby
InfinityFye has quit [Ping timeout: 260 seconds]
John_Ivan has quit [Read error: Connection reset by peer]
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
John_Ivan has joined #ruby
ciscam has quit [Ping timeout: 245 seconds]
ciscam has joined #ruby
elementaru has quit [Quit: ZNC 1.6.6 - http://znc.in]
synthroid has quit [Remote host closed the connection]
WhereIsMySpoon_ has quit [Read error: Connection reset by peer]
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
Apocalypse has quit [Ping timeout: 240 seconds]
amar has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
amar has joined #ruby
Apocalypse has joined #ruby
WhereIsMySpoon has quit [Read error: Connection reset by peer]
AndBobsYourUncle has joined #ruby
cseder has joined #ruby
<leitz>
Pathname#to_path didn't come around until Ruby 1.9 it seems. So you have to fudge a bit to get Ruby-from-source to compile on a CentOS 6 box.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
marxarelli|afk is now known as marxarelli
amar has quit [Remote host closed the connection]
megamosaren has joined #ruby
synthroid has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
xenulv has quit [Quit: This computer has gone to sleep]
eckhardt has joined #ruby
workmad3 has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Ping timeout: 265 seconds]
harrycs has quit [Quit: Leaving]
shalok has left #ruby ["Leaving"]
cagomez has joined #ruby
Cavallari has joined #ruby
megamosaren has quit [Quit: Leaving]
tdy has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
zenulv has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
rshetty has joined #ruby
synthroid has quit []
rshetty has quit [Ping timeout: 265 seconds]
reber has quit [Remote host closed the connection]
erlend has quit [Ping timeout: 240 seconds]
erlend has joined #ruby
hfp_work has quit [Ping timeout: 260 seconds]
jcalla has quit [Quit: Leaving]
nogic has quit [Ping timeout: 260 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]