<matthewd>
astronavt: If you want to be more specific, you should probably invoke the shell explicitly
jdawgaz has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
Skull0inc has quit [Ping timeout: 248 seconds]
michaelzinn has quit [Ping timeout: 240 seconds]
Puffball has quit [Quit: No Ping reply in 180 seconds.]
noobineer has joined #ruby
Puffball has joined #ruby
jphase has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
<Algebr`>
is invoking bundle the same as bundle install
cadillac_ has quit [Ping timeout: 252 seconds]
dviola has quit [Quit: WeeChat 1.9]
cadillac_ has joined #ruby
mim1k has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
Skull0inc has joined #ruby
Xiti has joined #ruby
<matthewd>
Algebr`: Yes
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
jphase has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
lacuna has joined #ruby
troys_ is now known as troys
michaelzinn has joined #ruby
millerti has joined #ruby
nobitanobi has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
lacuna has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
michaelzinn has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 264 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
Skull0inc has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
knight33 has joined #ruby
_whitelogger has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jphase has joined #ruby
<Algebr`>
saw this in a usage of bundle, --without development, read the page for --without but still don't understand
jphase has quit [Ping timeout: 252 seconds]
michaelzinn has joined #ruby
jphase has joined #ruby
michaelzinn has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
Bock has joined #ruby
brent__ has joined #ruby
samlisl_ has joined #ruby
jphase has joined #ruby
cschneid has joined #ruby
kculpis has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
Dimik has joined #ruby
michaelzinn has joined #ruby
jphase has joined #ruby
ta_ has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
paradisaeidae_ has quit [Ping timeout: 240 seconds]
paradisaeidae has quit [Ping timeout: 240 seconds]
<Algebr`>
Is it possible to tell gem download another platform's native extensions? For example, I want to gem/bundle install the windows binaries for unf_ext but I am on OS X
<matthewd>
Algebr`: I don't think so.. why do you want to do that?
belmoussaoui has joined #ruby
<Algebr`>
my usecase is odd
<Algebr`>
this seems like an oversight to me
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michaelzinn has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 255 seconds]
aupadhye has joined #ruby
biberu has joined #ruby
Cohedrin_ has joined #ruby
<nofxx>
Algebr`, clone, `ag PLATFORM` , comment'em all
biberu has quit [Read error: Connection reset by peer]
jphase has quit [Ping timeout: 248 seconds]
retrazil has joined #ruby
<Algebr`>
what you mean by comment'em all
Asher has quit [Ping timeout: 246 seconds]
<retrazil>
hi, can I ask beginner questions here ?
Asher has joined #ruby
kn-928 has joined #ruby
anisha has joined #ruby
paranoicsan has joined #ruby
jphase has joined #ruby
troys has quit [Quit: Bye]
paranoicsan has quit [Client Quit]
AnoHito has joined #ruby
paranoicsan has joined #ruby
kn-928 has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaelzinn has joined #ruby
milardovich has joined #ruby
retrazil has quit [Quit: Leaving]
rabajaj has joined #ruby
michaelzinn has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
Silthias has quit [Ping timeout: 255 seconds]
Silthias has joined #ruby
milardovich has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
DipoleHourglass has quit [Quit: Connection closed for inactivity]
mkali has joined #ruby
michaelzinn has joined #ruby
mostlybadfly has joined #ruby
michaelzinn has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
michaelzinn has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
huyderman has quit [Ping timeout: 260 seconds]
kazi has joined #ruby
GhostK has quit [Remote host closed the connection]
michaelzinn has quit [Ping timeout: 264 seconds]
astronavt has quit [Quit: Leaving...]
Asher has quit [Quit: Leaving.]
jenrzzz has joined #ruby
<Algebr`>
how do you show show which platforms a gem is available for?
Asher has joined #ruby
milardovich has joined #ruby
ta_ has joined #ruby
ta_ has quit [Client Quit]
milardovich has quit [Ping timeout: 252 seconds]
phaul has joined #ruby
ta_ has joined #ruby
rrichardsr3 has joined #ruby
ur5us has quit [Remote host closed the connection]
<matthewd>
Algebr`: You seem to be misinterpreting the purpose of the :platform option
ana_ has quit [Quit: Leaving]
<Algebr`>
I think so
claudiuinberlin has joined #ruby
<Algebr`>
I thought that it could distribute prebuilt binaries as well for the native extensions
ana_ has joined #ruby
<matthewd>
You'll likely have more luck if you describe the problem you're trying to solve
claudiuinberlin has quit [Client Quit]
<Algebr`>
I am trying to build a windows package using traveling ruby. Pure ruby code works fine packaged, but code using native extensions (seemingly) doesn't work, first example is this unf_ext package
claudiuinberlin has joined #ruby
<Algebr`>
I build these packages on OS X
<Algebr`>
(Or Linux)
selim has quit [Ping timeout: 240 seconds]
<Algebr`>
so it would be great if there was a way to say give me the prebuilt binaries of native extensions for a different platform.
<matthewd>
> Native extensions are currently not supported when creating Windows packages
selim has joined #ruby
aufi has joined #ruby
<Algebr`>
right. That said, when I try loading it on windows, I just get a unf_ext not found in sources, so I thought it would just be a matter of placing the correct compiled code in a path
Dimik has quit [Ping timeout: 255 seconds]
<matthewd>
If the authors of the tool are explicitly claiming it won't work, it seems unrealistic to expect to solve it by "just" putting the thing in the place
enterprisey has quit [Remote host closed the connection]
<Algebr`>
possibly
howdoi has quit [Quit: Connection closed for inactivity]
michaelzinn has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
brendan- has quit [Ping timeout: 248 seconds]
Algebr` has quit [Ping timeout: 248 seconds]
Silthias1 has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 264 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roadt has quit [Ping timeout: 240 seconds]
chihhsin has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
claudiuinberlin has joined #ruby
roadt has joined #ruby
astrobunny has quit [Ping timeout: 255 seconds]
kazi has quit [Quit: Leaving]
ur5us has joined #ruby
mikecmpbll has joined #ruby
jphase has joined #ruby
jphase has quit [Read error: Connection reset by peer]
fyrril2 has joined #ruby
jphase has joined #ruby
jphase has quit [Read error: Connection reset by peer]
jphase_ has joined #ruby
jphase_ has quit [Read error: Connection reset by peer]
jphase has joined #ruby
jphase has quit [Read error: Connection reset by peer]
fyrril has quit [Ping timeout: 255 seconds]
jphase has joined #ruby
jphase has quit [Read error: Connection reset by peer]
jphase has joined #ruby
cdg has joined #ruby
jphase has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
jphase has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jphase has quit [Read error: Connection reset by peer]
cadillac_ has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
cadillac_ has joined #ruby
jphase has quit [Read error: Connection reset by peer]
jphase_ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase_ has quit [Read error: Connection reset by peer]
jphase has joined #ruby
ledestin has joined #ruby
jphase has quit [Read error: Connection reset by peer]
jphase has joined #ruby
huyderman has joined #ruby
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
imode has quit [Ping timeout: 252 seconds]
rgr_ has joined #ruby
kaibro has joined #ruby
rgr_ has quit [Client Quit]
jphase has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
mim1k_ has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
Doow has joined #ruby
jphase has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
ledestin has quit [Client Quit]
Doow has quit [Quit: Leaving]
ledestin has joined #ruby
Doow has joined #ruby
ur5us has quit [Remote host closed the connection]
ta_ has quit [Quit: Leaving...]
ur5us has joined #ruby
Beams has joined #ruby
mark_66 has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
jphase has quit [Ping timeout: 264 seconds]
InfinityFye has joined #ruby
dextrey has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ertes-w has joined #ruby
adaedra has joined #ruby
`derpy has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<ertes-w>
hi… question from a non-ruby-programmer: is there any way to improve the boot times and general performance of ruby programs without changing the code? specific problem is that sensu checks are quite expensive: 300ms for `check-http.rb --help`
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
<ertes-w>
(i know i could just switch to perl/python/shell-based nagios checks, but perhaps there is a way to avoid that)
acarpe has joined #ruby
<matthewd>
ertes-w: No magic go-fast button, no.. the perhaps-too-obvious answers are to load less at startup, or to avoid startup entirely
<ertes-w>
i see, thanks
<matthewd>
The only notable thing you could try would be --disable=gems, but most nontrivial applications will be expecting that functionality to be there
jphase has joined #ruby
jinie has quit [Ping timeout: 252 seconds]
jinie has joined #ruby
ams__ has joined #ruby
DipoleHourglass has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd>
ertes-w: If the script is being run by another ruby process, the best trick is to just fork and load it directly, instead of needlessly booting a new copy of the interpreter
<ertes-w>
matthewd: unfortunately i believe sensu has no mechanism to do that
<ertes-w>
well, it does have some extension concept, but it would basically require me to become a ruby programmer
bronson has quit [Remote host closed the connection]
workmad3 has joined #ruby
jphase has joined #ruby
howdoi has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
GhostK has joined #ruby
belmoussaoui has quit [Ping timeout: 255 seconds]
ledestin has joined #ruby
michaelzinn1 has joined #ruby
jphase has joined #ruby
michaelzinn has quit [Ping timeout: 252 seconds]
harai has quit [Read error: Connection reset by peer]
harai has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jphase has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
phinxy has joined #ruby
jphase has joined #ruby
InfinityFye has quit [Ping timeout: 252 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
InfinityFye has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
ledestin has joined #ruby
yokel has quit [Read error: Connection reset by peer]
yokel_ is now known as yokel
dextrey has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 246 seconds]
paranoicsan is now known as paranoicsan[Away
claudiuinberlin has joined #ruby
kn-928 has joined #ruby
paranoicsan[Away is now known as paranoicsan
Serpent7776 has joined #ruby
jphase has joined #ruby
kn-928 has quit [Ping timeout: 252 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
chihhsin has quit [Quit: leaving]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has quit [Client Quit]
marxarelli|afk has quit [Ping timeout: 246 seconds]
huyderman has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 246 seconds]
roadt has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
michaelzinn1 has quit [Ping timeout: 248 seconds]
mikecmpb_ has quit [Quit: inabit. zz.]
claudiuinberlin has joined #ruby
roadt has joined #ruby
mikecmpbll has joined #ruby
huyderman has joined #ruby
claudiuinberlin has quit [Client Quit]
ledestin has joined #ruby
[reed] has quit [Read error: Connection reset by peer]
huyderman_ has joined #ruby
ur5us has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 255 seconds]
anisha has quit [Quit: Leaving]
[reed] has joined #ruby
[reed] has quit [Changing host]
[reed] has joined #ruby
ledestin has quit [Client Quit]
anisha has joined #ruby
Azure has quit [Ping timeout: 248 seconds]
brent__ has joined #ruby
jottr has joined #ruby
Azure has joined #ruby
ledestin has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
ledestin has quit [Client Quit]
ledestin has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
phinxy has quit [Quit: Leaving]
Silthias has joined #ruby
zenspider has quit [Ping timeout: 240 seconds]
zenspider has joined #ruby
phaul has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
hinbody has quit [Read error: Connection reset by peer]
hinbody has joined #ruby
jameser_ has joined #ruby
apparition has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
acarpe has quit [Quit: acarpe]
acarpe has joined #ruby
dionysus69 has quit [Quit: dionysus69]
acarpe has quit [Client Quit]
dionysus69 has joined #ruby
mim1k has joined #ruby
banisterfiend has joined #ruby
drcode has joined #ruby
drcode has quit [Remote host closed the connection]
cdg has joined #ruby
michaelzinn1 has joined #ruby
drcode has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
Yxhuvud has quit [Remote host closed the connection]
Yxhuvud has joined #ruby
bronson has joined #ruby
charliesome has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
nobitanobi has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 240 seconds]
dextrey has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
mtkd has quit [Ping timeout: 240 seconds]
rawste has joined #ruby
claudiuinberlin has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paranoicsan is now known as paranoicsan[Away
mim1k has joined #ruby
mtkd has joined #ruby
banisterfiend has joined #ruby
bmurt has joined #ruby
jottr has quit [Quit: WeeChat 1.9]
Mortomes|Work has quit [Ping timeout: 260 seconds]
bmurt has quit [Ping timeout: 240 seconds]
FahmeF has joined #ruby
op84 has joined #ruby
sylario has joined #ruby
<op84>
hey there - how i can sort a an array based on hash value percent? [{:name=>”Fashion”, :percent=>25.0},{:name=>"Accessoires", :percent=>75.0}] any hint?
tvw has quit [Remote host closed the connection]
<matthewd>
op84: sort_by
tvw has joined #ruby
<op84>
matthewd: thanks
ldnunes has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paranoicsan[Away is now known as paranoicsan
arup_r has joined #ruby
konos5 has joined #ruby
ledestin has joined #ruby
minimalism has quit [Quit: minimalism]
ShalokShalom_ has joined #ruby
<arup_r>
I want to change the string "Cannot delete record because of dependent inspection_components" to "Cannot delete record because of dependent Inspection components". I tried s.sub(/Cannot delete record because of dependent (\w+)/, '\1'.humanize) but it is returning 'inspection_components'. What am I missing?
selim_ has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
selim has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
ShalokShalom has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
acarpe has joined #ruby
acalycine has joined #ruby
_aeris_ has quit [Read error: Connection reset by peer]
uZiel has quit [Write error: Connection reset by peer]
mson has joined #ruby
<matthewd>
arup_r: You need a block
<arup_r>
tried block.. but block argument is the whole string
<arup_r>
don't know what am I missing
<matthewd>
Well that just means you did the block wrong; it doesn't change my response for the above.
<teatime>
arup_r: inside the block you can use $1 instead of \1
<teatime>
arup_r: you're also going to need to capture the first part of the sentence so you can put it back in.
nobitanobi has joined #ruby
<arup_r>
teatime: and matthewd thanks .. worked s.sub(/(Cannot delete record because of dependent) (\w+)/) { |m| p "#{$1} #{$2.humanize}" }
op84 has quit [Quit: op84]
acalycine has quit [Quit: bye]
bronson has joined #ruby
acalycine has joined #ruby
arup_r has quit []
bronson has quit [Ping timeout: 246 seconds]
Bish_ has joined #ruby
ta_ has joined #ruby
Bish has quit [Ping timeout: 240 seconds]
Bish_ is now known as Bish
dionysus69 has joined #ruby
fusta has joined #ruby
gnufied has joined #ruby
_aeris_ has joined #ruby
daed has quit [Remote host closed the connection]
FahmeF has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
ornerymoose has joined #ruby
FahmeF_ has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
ornerymoose_ has joined #ruby
maryo_ has joined #ruby
Mon_Ouie has joined #ruby
ornerymoose has quit [Ping timeout: 240 seconds]
ornerymoose_ is now known as ornerymoose
michaelzinn2 has joined #ruby
michaelzinn1 has quit [Ping timeout: 252 seconds]
jdawgaz has joined #ruby
rawste has quit [Quit: (ー。ー) zzz...]
charliesome has joined #ruby
claudiuinberlin has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
AgentVenom has joined #ruby
acalycine has quit [Quit: bye]
ShalokShalom_ is now known as ShalokShalom
vondruch has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
kahra has joined #ruby
soyokaze has joined #ruby
balazs_ has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
phaul has joined #ruby
cdg has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
acarpe has quit [Read error: Connection reset by peer]
hfp_work has quit [Ping timeout: 252 seconds]
roadt has quit [Ping timeout: 264 seconds]
aupadhye has quit [Ping timeout: 246 seconds]
cagmz has joined #ruby
banko has quit [Quit: Connection closed for inactivity]
acarpe has joined #ruby
hfp_work has joined #ruby
Skull0inc has joined #ruby
workmad3 has joined #ruby
hfp_work has quit [Ping timeout: 248 seconds]
hfp_work has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
hfp__work has joined #ruby
rabajaj has quit [Quit: Leaving]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaelzinn2 has quit [Quit: nyeh]
hfp_work- has joined #ruby
hfp_work has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
hfp__work has quit [Ping timeout: 260 seconds]
hfp_work has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
hfp_work- has quit [Ping timeout: 255 seconds]
t-recx has joined #ruby
nofxx has joined #ruby
biberu has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
nofxx has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
LastWhisper____ has joined #ruby
dextrey has quit [Ping timeout: 240 seconds]
Mighty_Warthog has joined #ruby
Mighty_Warthog has quit [Client Quit]
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 240 seconds]
ana_ has quit [Ping timeout: 246 seconds]
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
soyokaze has quit [Quit: Leaving]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
Rapture has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
jphase_ has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
jphase_ is now known as jphase
huyderman has quit [Remote host closed the connection]
bronson has joined #ruby
claudiuinberlin has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
Skull0inc has quit [Quit: leaving]
cagomez has joined #ruby
mbologna1 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
ldnunes has quit [Ping timeout: 252 seconds]
cagomez has quit [Ping timeout: 264 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LastWhisper____ has joined #ruby
__Yiota has joined #ruby
kahra has quit [Quit: WeeChat 1.9]
marr has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
mostlybadfly has joined #ruby
ldnunes has joined #ruby
biberu has quit []
cschneid has joined #ruby
montyboy has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
milardovich has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
milardovich has joined #ruby
mbologna1 has quit [Quit: WeeChat 1.8]
cschneid has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
gizmore|2 has quit [Read error: Connection reset by peer]
ujhee has joined #ruby
oleo has quit [Quit: Leaving]
cdg has joined #ruby
gusrub has joined #ruby
jaruga has quit [Quit: jaruga]
d10n-work has joined #ruby
wald0 has quit [Quit: Lost terminal]
fury has joined #ruby
<fury>
i am attempting to build a docker image for my ruby app based on 2.4.2-alpine, about how long is it supposed to take to run apk add --update build-base libxml2-dev libxslt-dev postgresql-dev libsqlite3-dev O_o cause it's just sitting there looking at me funny right now...been running for about 6 minutes
<RickHull>
> Not having to prepend the module name every time you use the functions saves time and looks good: # BARF
cadillac_ has quit [Read error: Connection reset by peer]
eminencehc has joined #ruby
kn-928 has joined #ruby
<RickHull>
gee, I saved so much time by not having to type out Math.pi. and now my readers can try to figure out where it comes from. thankfully i saved all that time
<elomatreb>
It's more a shorthand for not having to do self.something or ModuleName.something when defining new Module methods, IME
lxsameer has quit [Ping timeout: 246 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull>
i actually much prefer self.foo when calling instance methods rather than naked foo
<RickHull>
again, as a reader, I am looking for any clues as to what foo resolves to
<elomatreb>
It's often used like `extend self`, but is arguably a little clearer in meaning
<RickHull>
I've never had a problem with keeping class methods as class methods, and transmuting them to the instance layer smells really bad to me
<RickHull>
there is structure and semantics, IMHO, to class layer vs instance layer. and violating that for the sake of aesthetics is a mistake
<RickHull>
class layer methods should be more or less functional, where there is no internal state. instance layer methods that do not refer to internal state should be rewritten as class methods
milardovich has quit [Remote host closed the connection]
<elomatreb>
It's just that class methods are the easy shortcut to singleton-like objects in Ruby, i.e. Logger.info
<RickHull>
ah, good point
milardovich has joined #ruby
<RickHull>
I think that is a valid use case but it still kind of smells
SeepingN has joined #ruby
<elomatreb>
It's still true about the state part for many applications, a logger still shouldn't need or keep state
jphase_ has joined #ruby
<RickHull>
well, maybe the current log level
<RickHull>
i.e. if level is FATAL then Logger.info should be a NOOP
milardovich has quit [Ping timeout: 240 seconds]
<elomatreb>
True, and other minor things like e.g. a File descriptor, but you get what I mean
<elomatreb>
TBH, except for the Rails builtin logger, I don't remember ever actually feeling like I wanted to use one, I just abuse Kernel#warn for everything
<RickHull>
it's super handy to turn on a debug or trace logging
<RickHull>
and you don't want that on all the time
ur5us has joined #ruby
quobo has joined #ruby
<elomatreb>
I guess I don't work with complicated enough scripts often enough to feel like I need to leave debugging prints in place, I add them when I need them and remove them again
duckpuppy has quit [Ping timeout: 240 seconds]
r3QuiEm_cL has joined #ruby
chouhoul_ has joined #ruby
<RickHull>
yeah, my context is more libraries than scripts
<RickHull>
at some point, a library doing something sufficiently complicated needs debug / trace logging
enterprisey has joined #ruby
chouhou__ has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
synthroid has quit []
__Yiota has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
milardovich has joined #ruby
chouhoul_ has quit [Ping timeout: 252 seconds]
<RickHull>
elomatreb: as far as you know, is the `module_function` in Dir::Tmpname just to avoid typing `def self.fn_name` ?
<RickHull>
i.e. typing `def fn_name` instead
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
perniciouscaffei has quit [Ping timeout: 252 seconds]
dextrey has quit [Ping timeout: 248 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
<elomatreb>
RickHull: As far as I see, yes
<RickHull>
well, and I guess internal calls can avoid specifying the method is really at the class layer
<RickHull>
er, hm, that last part should work without `module_function`
<RickHull>
i.e. when Tmpname.create calls Tmpname.make_tmpname
t-recx has quit [Quit: t-recx]
<RickHull>
I might write a PR before I write the docs ;)
ornerymoose has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
<havenwood>
RickHull: It's so you get the module method like you said, but also so if you mix-it-in it'll be private.
<havenwood>
RickHull: It's saying this is a function, and it might be used directly from this namespace or mixed into another - but in the latter case it'll be private for internal use, without a public interface.
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
Either way, the receiver isn't important to its function, it's a function.
<havenwood>
A module function.
nobitanobi has joined #ruby
<RickHull>
I don't quite understand the desire to mix in a function that doesn't refer to internal state
<RickHull>
why wouldn't I just call Dir::Tmpname.create when I need to create stuff?
<RickHull>
and if Tmpname.create *does* refer to internal state -- i.e. ivars -- then it doesn't belong at the class layer
<havenwood>
RickHull: It's a namespace to put some functions. You could insist the namespace always be used to access those function, but here they allow mixins as an alternative.
<RickHull>
it seems destructive to me
<havenwood>
RickHull: Normally when you mixin a module with include, its methods become public instance methods. With module_function they become private instance methods.
<havenwood>
It lets you mixin some functions without defining public methods for them.
<havenwood>
That's nice to do.
nobitanobi has quit [Ping timeout: 248 seconds]
<RickHull>
the cost of mixing in a "stateless" function outweighs the benefit, particularly to readers IMHO
<havenwood>
It's a common pattern in the Ruby stdlib.
<RickHull>
when I see a naked `create`, how do I track down which module it comes from and where the definition lies?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull>
I have to load the whole method resolution mechanism in my head, along with any author-provided fuckery
<RickHull>
not if I'm reading code on github or paper
<RickHull>
but, fair enough :)
orbyt_ has joined #ruby
<RickHull>
it seems much nicer to just reference the method explicitly rather than hiding its origins from the reader
<RickHull>
i truly don't understand the benefit
jenrzzz_ has quit [Ping timeout: 240 seconds]
kentin has joined #ruby
kentin has quit [Client Quit]
rfoust has joined #ruby
__Yiota has joined #ruby
<RickHull>
also, in what context would method(:create) actually work, say in irb? I'd have to reopen Dir::Tmpdir and define a method to call method(:create) and then close the module and call my method from outside?
mson has joined #ruby
<RickHull>
er, sorry, reopen whatever class had Dir::Tmpdir mixed in
<RickHull>
or I guess something like method(:the_class, :create)
<RickHull>
or just use pry ;)
bronson has joined #ruby
TomyLobo has quit [Ping timeout: 252 seconds]
<RickHull>
TheClass.method(:create) # duh
ldnunes has quit [Quit: Leaving]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby[bot]>
RickHull: # => uninitialized constant Dir::Tmpname (NameError) ...check link for more (https://eval.in/866061)
noizex has joined #ruby
<RickHull>
aside from the eval error, this shit is pretty goofy IMHO
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
vb333 has quit [Remote host closed the connection]
<RickHull>
why not: `def make_tmpname(prefix, suffix = nil, n = nil)` as both of these default cases are expected inputs. or just use an options hash
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb>
A lot of Ruby stdlib code is older than keyword args
<RickHull>
and I guess before options hashes were popular
<RickHull>
I'm not sure I'm up to speed on actual keyword args. do they go beyond sugar around a hash with symbol keys?
<RickHull>
ah yes, looks like it
<elomatreb>
Yes, they're pretty nice, you can even have them emulate the old-style options Hash (which is also still possible) with **args
_whitelogger has joined #ruby
quobo has quit [Ping timeout: 252 seconds]
peteretep has quit [Ping timeout: 252 seconds]
Olipro has quit [Ping timeout: 252 seconds]
daxroc has quit [Ping timeout: 252 seconds]
koenrh has quit [Ping timeout: 252 seconds]
jrgifford has quit [Ping timeout: 252 seconds]
Klumben has quit [Ping timeout: 252 seconds]
Tony-St4rk has quit [Ping timeout: 252 seconds]
elomatreb has quit [Ping timeout: 252 seconds]
Brak____________ has quit [Ping timeout: 252 seconds]
npgm has joined #ruby
claw has joined #ruby
graingert has joined #ruby
tobiasvl has quit [Ping timeout: 252 seconds]
elcontrastador has quit [Ping timeout: 240 seconds]
gbailey has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
contradictioned has joined #ruby
doesntbyte has joined #ruby
rjungemann has joined #ruby
valkyr2e has quit [Ping timeout: 260 seconds]
bmn has quit [Ping timeout: 260 seconds]
cyberRodent has quit [Ping timeout: 260 seconds]
d^sh has quit [Ping timeout: 240 seconds]
bokayio has quit [Ping timeout: 240 seconds]
andersh has joined #ruby
Ikri has joined #ruby
cadillac_ has joined #ruby
G has joined #ruby
<RickHull>
dumb question, asked sincerely: what is a very good way to find all calls to Dir::Tmpname.make_tmpname? git clone ruby and git grep? something with CTAGS?
troys is now known as troys_
adaedra has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvl has joined #ruby
<RickHull>
all calls within ruby core, that is
Xeago has quit [Ping timeout: 240 seconds]
tvl is now known as tobiasvl
d^sh has joined #ruby
IceDragon has joined #ruby
L0rdShrek_____ has joined #ruby
bokayio has joined #ruby
quobo has joined #ruby
IceDragon is now known as Guest15786
peteretep has joined #ruby
cyberRodent has joined #ruby
Tony-St4rk has joined #ruby
nyuszika7h has joined #ruby
Xeago has joined #ruby
valkyr2e has joined #ruby
Technaton has joined #ruby
jrgifford has joined #ruby
davic has joined #ruby
gbailey has joined #ruby
elomatreb has joined #ruby
bmn has joined #ruby
Bilge has joined #ruby
lele has joined #ruby
jhass has joined #ruby
adaedra has joined #ruby
FahmeF_ has quit [Remote host closed the connection]
synstack has joined #ruby
synstack has quit [Changing host]
synstack has joined #ruby
S007 has joined #ruby
Zarthus has joined #ruby
SegFaultAX has joined #ruby
jdawgaz has joined #ruby
cschneid_ has joined #ruby
Olipro has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mim1k has joined #ruby
elsevero has quit [Quit: elsevero]
justizin has joined #ruby
Klumben has joined #ruby
zapata has joined #ruby
ForeignBiscuit has joined #ruby
ForeignBiscuit has quit [Max SendQ exceeded]
jokke has joined #ruby
orbyt_ has joined #ruby
jphase_ is now known as jphase
ForeignBiscuit has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
tbuehlmann has joined #ruby
JR042444__ has joined #ruby
zachk has joined #ruby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
gil__ has quit [Ping timeout: 255 seconds]
wogi has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
gil_ has joined #ruby
ForeignBiscuit has quit [Ping timeout: 252 seconds]
brent__ has quit [Remote host closed the connection]
imode has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has joined #ruby
<RickHull>
is there no good way to find all callers? I didn't mean for this to be a point against unnecessary-and-trivial mixins, but I suppose it is
<RickHull>
FWIW I don't see anyone actually mixing in Dir::Tmpname, which seems plenty sensible to me, so I would want to rip out any code that tries to make it friendly to would-be mix-in-ers
jdawgaz has joined #ruby
<RickHull>
YAGNI and you probably don't want it anyway ;)
brent__ has quit [Ping timeout: 240 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
L0rdShrek_____ has quit [Quit: Connection closed for inactivity]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Joufflu has quit [Quit: Leaving]
__Yiota has joined #ruby
dysfigured has quit [Ping timeout: 252 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goyox86_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
goyox86__ has joined #ruby
goyox86_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
troys_ is now known as troys
chouhoulis has quit [Ping timeout: 240 seconds]
jphase has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
kn-928 has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
goyox86__ has quit [Ping timeout: 248 seconds]
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
jenrzzz has joined #ruby
kn-928 has joined #ruby
polishdub has quit [Quit: leaving]
jphase has quit [Ping timeout: 248 seconds]
enterprisey has quit [Ping timeout: 255 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
goyox86_ has joined #ruby
jphase_ has joined #ruby
Cohedrin_ has joined #ruby
JD2020X has quit [Quit: Leaving]
jphase has quit [Ping timeout: 264 seconds]
nobitanobi has joined #ruby
jphase_ has quit [Read error: Connection reset by peer]
jphase has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
jphase_ has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
jphase has quit [Ping timeout: 252 seconds]
jphase_ has quit [Read error: Connection reset by peer]
jphase has joined #ruby
<Algebr`>
How can I change a extconf.rb file so that it DOES NOT use a library that it ordinarily would use, -lgmp in this case
govg has quit [Ping timeout: 264 seconds]
troys is now known as troys_
bruno-_ has quit [Ping timeout: 248 seconds]
imode has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
jphase has quit [Read error: Connection reset by peer]
jphase has joined #ruby
jottr has quit [Quit: WeeChat 1.9]
mson has quit [Quit: Connection closed for inactivity]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys_ is now known as troys
kn-928 has quit [Quit: WeeChat 1.9]
<RickHull>
Algebr`: $LDFLAGS maybe?
<RickHull>
I assume this relates to https://gmplib.org/ and the recent removal of the Bignum distinction
<RickHull>
for background, Ruby before 2.4 distinguished between Fixnum and Bignum (Bignums are, well, bigger). I assume Ruby was using gmplib for Bignums
<RickHull>
but I'm kinda just guessing these are related and/or relevant
npgm has quit [Quit: Connection closed for inactivity]
<Algebr`>
is << appending to a list or appending to a stirng
<SeepingN>
yes
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Algebr`>
yes is ambigious, first or second
imode has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
<Algebr`>
is `` another way to make a stirng
<bougyman>
no
<bougyman>
backticks shell out
<Algebr`>
wow
<bougyman>
%x{ls} and `ls` essentially are the same.
<Algebr`>
straight part of the language? or just special in extconf.rb?
<elomatreb>
Algebr`: If the left hand side is an array, << appends to the array, if it is a String it appends to a string
Olipro has quit [Ping timeout: 255 seconds]
<bougyman>
part of the language
<elomatreb>
Part of the language, but a lot of languages have that feature (many even use the same syntax)
<Algebr`>
I have only seen this in shell before
Olipro has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
<elomatreb>
PHP has it too, and Perl
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Algebr`>
ah, I have never used either.
meinside has joined #ruby
Chew has joined #ruby
tfitts has joined #ruby
koenrh has joined #ruby
x0f has quit [Ping timeout: 246 seconds]
daxroc has joined #ruby
Brak____________ has joined #ruby
<RickHull>
Algebr`: what is the problem in the big picture? who wrote this extconf.rb ?
<RickHull>
if you're not familiar with backticks or the append operator in ruby, messing with extconf stuff is pretty advanced
enterprisey has joined #ruby
<Algebr`>
I learn quickly, not worried about that. Big picture is that I'm trying to compile https://github.com/knu/ruby-unf_ext to work with traveling-ruby using ruby 2.2.2 on windows.
<RickHull>
oh fun, C extensions on windows
<Algebr`>
I would not characterize as fun...
<Algebr`>
heh.
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull>
are you sure that removing `-lgmp` is the right approach? or just trying to get the install to proceed by any means necessary?
x0f has joined #ruby
<Algebr`>
yea, not sure myself.
<Algebr`>
I mean, the extconf test case compiles without -lgmp
ivanskie has quit [Ping timeout: 240 seconds]
<Algebr`>
RUBY_PLATFORM of i386-mingw32 means its 32bit right
bruce_lee has quit [Read error: Connection reset by peer]