Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has quit [Ping timeout: 240 seconds]
conta has joined #ruby
zigzig has quit [Ping timeout: 272 seconds]
zigzig has joined #ruby
Mia has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
goatish has joined #ruby
d_kam has joined #ruby
cabotto has joined #ruby
plexigras has joined #ruby
workmad3 has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
Mortomes|Work has joined #ruby
Serpent7776 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
DaFiN has joined #ruby
cpruitt has joined #ruby
snapcase has quit [Quit: leaving]
snapcase has joined #ruby
KeyJoo has quit [Ping timeout: 255 seconds]
elphe has joined #ruby
cpruitt has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
iamarun has quit [Remote host closed the connection]
DLSteve has quit [Ping timeout: 256 seconds]
iamarun has joined #ruby
mkroman has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
kossae has joined #ruby
bweston92 has joined #ruby
amatas has joined #ruby
<bawNg>
what is the best option if I want to release a gem with a C extension that needs to build against some internal MRI headers? if I copy the Ruby headers into the project, they will have to be manually updated for new Ruby versions, but if I don't, no one will be able to build the gem without downloading the Ruby source
Cavallari has joined #ruby
TinkerTyper has quit [Read error: Connection reset by peer]
<dionysus69>
ok forgot about that, and I used it like a week ago thanks dminuoso :D
randomstrangerb has quit [Ping timeout: 256 seconds]
randomstrangerb has joined #ruby
alfiemax_ has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
Guest73369 has joined #ruby
jaruga has joined #ruby
kedare has joined #ruby
kedare has left #ruby [#ruby]
Cavallari1 has joined #ruby
Cavallari has quit [Ping timeout: 255 seconds]
Cavallari1 is now known as Cavallari
mtkd has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
sundhell is now known as sundhell_away
cpruitt has joined #ruby
DaFiN has quit [Remote host closed the connection]
cschneid has joined #ruby
cpruitt has quit [Ping timeout: 248 seconds]
cschneid has quit [Ping timeout: 256 seconds]
deathsparton has joined #ruby
<apeiros>
dminuoso: don't you think some_params[:amount].delete("-").to_d would be nicer? 😇
<apeiros>
(math by string manipulation, yay :D)
bronson has joined #ruby
<dminuoso>
let me just sed our monorepo.
<dminuoso>
git commit -m "Refactoring based on recommendation from #ruby expert"
<dminuoso>
Done.
deathsparton has quit [Remote host closed the connection]
<apeiros>
😂
bronson has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
xfbs has joined #ruby
postmodern has quit [Ping timeout: 255 seconds]
amatas_ has joined #ruby
alfiemax has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
conta1 has joined #ruby
imode has quit [Ping timeout: 255 seconds]
conta has quit [Ping timeout: 248 seconds]
conta1 is now known as conta
tvw has joined #ruby
<dionysus69>
:P
Azure has quit [Read error: Connection reset by peer]
kossae has joined #ruby
kossae has quit [Remote host closed the connection]
Azure has joined #ruby
kossae has joined #ruby
tjbp_ has quit [Remote host closed the connection]
cpruitt has joined #ruby
cdg has joined #ruby
xfbs has quit []
AJA4350 has joined #ruby
quobo has joined #ruby
workmad3 has joined #ruby
Toggi3 has joined #ruby
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
cabotto has quit [Remote host closed the connection]
Toggi3 has quit [Ping timeout: 256 seconds]
zautomata has joined #ruby
plexigras has quit [Quit: WeeChat 2.0.1]
plexigras has joined #ruby
fmcgeough has joined #ruby
Yxhuvud has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
kapil___ has joined #ruby
r3kz has quit [Quit: Connection closed for inactivity]
bronson has quit [Ping timeout: 256 seconds]
vtx has joined #ruby
<vtx>
hi guys, is there an idiomatic/simple way of comparing two arrays in ruby? essentially i want to check that two arrays contain the same elements, regardless of order. so [“a”,”b”,”c”] and [“c”,”b”,”a”] would be considered equal. how can i do this?
<dminuoso>
(a - b).empty?
<dminuoso>
vtx: Of course things get a bit more tricky if you admit non unique elements.
<tobiasvl>
that's nice, I was going to suggest a.to_set == b.to_set (but that requires a require)
<tobiasvl>
but yes, non-unique elements are a problem
cabotto has joined #ruby
Guest73369 has quit [Ping timeout: 240 seconds]
John_Ivan has joined #ruby
sepp2k has joined #ruby
Azure has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
cabotto has quit [Ping timeout: 240 seconds]
Camusensei has joined #ruby
<Camusensei>
Hello guys! Is there a way to specify a system command through an array of arguments instead of a string? like password="'"; `echo #{password}` sh: 1: Syntax error: Unterminated quoted string
amatas_ has quit [Ping timeout: 265 seconds]
<Camusensei>
(I don't want to shellescape the string)
<Camusensei>
I know it works, it's just not what I'm looking for
chmuri has quit [Excess Flood]
cabotto has joined #ruby
<apeiros>
Camusensei: yes, system(), popen() and spawn() allow that
<apeiros>
note that system does two things vastly different from backticks: it does NOT return its output, it DOES however print its output on ruby's $stdout and $stderr directly.
<Camusensei>
oh
MaksimPinigin has joined #ruby
<Camusensei>
it's fine, I don't need the output in this case, thank you :)
ped has joined #ruby
srandon111 has joined #ruby
<srandon111>
hello all, guys is there any module to do google searches?
chmurifree has joined #ruby
vtx has quit [Quit: vtx]
<apeiros>
srandon111: Net::HTTP
<srandon111>
apeiros: so low level?
ped has quit [Client Quit]
<apeiros>
the more specific your question, the more specific the answer
amatas_ has joined #ruby
<srandon111>
apeiros... i would like something where i put the query to do to google and it returns me the results in form of a list or hash
roshanavand has quit [Quit: Leaving.]
<apeiros>
I'm not aware of any. but I'd search rubygems.org
nadir has quit [Quit: Connection closed for inactivity]
Vapez has joined #ruby
Guest73369 has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
<tbuehlmann>
apeiros: do you know the differences between the several shelling out options by heart?
<dminuoso>
I got that printed out on my desk (somewhere)
<tbuehlmann>
nice.
mtkd has joined #ruby
jeffreylevesque_ has joined #ruby
guille-moe has quit [Remote host closed the connection]
<apeiros>
tbuehlmann: partially
<apeiros>
tbuehlmann: I know spawn is the swiss army knife
guille-moe has joined #ruby
<apeiros>
and I know the main differences between ``, system, popen, popen3 and popen4. but I lack some minutiae.
<apeiros>
and I *always* have to lookup the docs when I want to use spawn :D
gizmore|2 is now known as gizmore
jeffreylevesque has quit [Ping timeout: 256 seconds]
<apeiros>
dminuoso: y u no Kernel#spawn there?
bmurt has joined #ruby
<dminuoso>
apeiros: Its not mine
<apeiros>
oh
<apeiros>
imgur
<dminuoso>
apeiros: Its from some SO answer, but it was good so I bookmarked it.
<apeiros>
meh, that's the domain and I now almost confused it with lemur. I'm terrible.
<apeiros>
honestly, nowadays if it's not solved by ``, I go straight to spawn. popen and system are almost always just ever so close but not close enough.
mark_66 has quit [Remote host closed the connection]
cschneid has joined #ruby
Asher has quit [Quit: Leaving.]
conta has quit [Ping timeout: 265 seconds]
cpruitt has quit []
synthroid has quit [Remote host closed the connection]
qba73 has joined #ruby
synthroid has joined #ruby
bweston92 has quit [Quit: Connection closed for inactivity]
Asher has joined #ruby
synthroid has quit [Ping timeout: 265 seconds]
Toggi3 has joined #ruby
synthroid has joined #ruby
<skawa>
im having the issue that running "rspec" and "bundle exec rspec" are completely different
<skawa>
unfortunately im dealing with a tangle of scripts that all call of "rspec" and not "bundle exec rspec"
<skawa>
rspec is only one example
<skawa>
how can i clear my ruby environment so that "rspec" is the same as "bundle exec rspec" ?
<skawa>
i tried removing all installed gems, then doing bundle install
<skawa>
somehow this didn'' solve my problem
<havenwood>
skawa: Is rspec installed on other Rubies?
<havenwood>
skawa: which -a rspec
<skawa>
havenwood: yes it looks like i have two
<skawa>
i don
qba73 has quit [Remote host closed the connection]
<skawa>
i don't know how or why i have two rubies, i dont' care
<havenwood>
skawa: Typically removing all versions later than the bundled version does work. Alternatively, and usually better - update your Gemfile.lock rspec versions.
qba73 has joined #ruby
<skawa>
yea so when i removed all gems it probably only removed them from one of the rubies
<skawa>
i don't know how to get to the other one
<havenwood>
aye
bronson has joined #ruby
<havenwood>
skawa: What are you using to change Ruby versions? This is a dev env?
<skawa>
havenwood: this is my laptop, yes
<skawa>
i really should be running this entire thing in a container, but it would require some effort
<havenwood>
skawa: Are you using RVM, chruby, rbenv or non-of-the-above?
<skawa>
rvm
<skawa>
but there could be ruby installed via some other tool, and i don't need it installed anywhere else
<havenwood>
skawa: Probably if you `rvm system` you'll see there's a non-RVM Ruby as well with rspec installed.
<havenwood>
Or other RVM Rubies installed. See with: rvm list
<skawa>
yea i see. the other is an rbenv
goatish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
skawa: You might consider: rm -rf ~/.rbenv
<havenwood>
skawa: (Assuming you're not using rbenv Ruby and it's some relic.)
<skawa>
cool
oetjenj has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
GremL1N has quit [Ping timeout: 256 seconds]
Vapez has quit [Ping timeout: 260 seconds]
<skawa>
that looks much better havenwood thanks
<skawa>
which -a rspec is brilliant ill remember that maybe
troys has joined #ruby
chocoelho has joined #ruby
aufi has quit [Quit: Leaving]
Zamyatin has quit [Read error: Connection reset by peer]
Zamyatin has joined #ruby
SuperL4g has joined #ruby
tjbp has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
SuperLag has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
elepedus has joined #ruby
nogic has joined #ruby
SuperL4g is now known as SuperLag
[Butch] has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
deathsparton has quit [Ping timeout: 264 seconds]
Zamyatin has quit [Read error: Connection reset by peer]
Zamyatin has joined #ruby
Zamyatin has quit [Read error: Connection reset by peer]
Zamyatin has joined #ruby
SuperLag has quit [Ping timeout: 255 seconds]
goatish has joined #ruby
alfiemax has quit [Remote host closed the connection]
ldepandis has joined #ruby
alfiemax has joined #ruby
SuperLag has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
TobiFrano has joined #ruby
cdg_ has quit [Read error: Connection reset by peer]
Zamyatin has quit [Read error: Connection reset by peer]
guille-moe has quit [Quit: guille-moe]
<havenwood>
lcarlson: Folk have made various generators, or integrated things like ROM. I don't know of a Sequel specific migration generator, but I'd imagine there is one.
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
<lcarlson>
havenwood, they're handy when making migrations
<lcarlson>
is it considered convention to hand bake migrations when using sequel?
bronson has quit [Ping timeout: 256 seconds]
goatish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zamyatin has quit [Read error: Connection reset by peer]
tvw has quit [Remote host closed the connection]
Zamyatin has joined #ruby
<lcarlson>
oh
<lcarlson>
there is a #sequel chan
<lcarlson>
nice
wilbert has joined #ruby
eckhardt has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
sameerynho has joined #ruby
marxarelli|afk is now known as marxarelli
Zamyatin has quit [Max SendQ exceeded]
kapil___ has quit [Quit: Connection closed for inactivity]
claudiuinberlin has joined #ruby
Zamyatin has joined #ruby
goatish has joined #ruby
ta_ has joined #ruby
netherwolfe has joined #ruby
chocoelho has quit [Remote host closed the connection]
chocoelho has joined #ruby
n0m4d1c has joined #ruby
selim has quit [Ping timeout: 264 seconds]
selim has joined #ruby
chocoelho_ has joined #ruby
chocoelho has quit [Ping timeout: 255 seconds]
TobiFrano has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
anisha has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
Cavallari has joined #ruby
elphe has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
Zamyatin has quit [Read error: Connection reset by peer]
__main__ has quit [Read error: Connection reset by peer]
Zamyatin has joined #ruby
troys is now known as troys_
__main__ has joined #ruby
<desperek>
how can i def method that adds two fields of class?
<desperek>
works
elphe has quit [Ping timeout: 240 seconds]
<havenwood>
desperek: fields?
<desperek>
havenwood, i mean, i was curious how do i refer to, well, variable in the class
<desperek>
but done it already
workmad3 has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
KeyJoo has quit [Ping timeout: 276 seconds]
mtkd has quit [Ping timeout: 256 seconds]
amatas_ has quit [Quit: amatas_]
TobiFrano has joined #ruby
mtkd has joined #ruby
nogic has quit [Ping timeout: 248 seconds]
tomphp has quit [Read error: Connection reset by peer]
_aeris_ has quit [Read error: Connection reset by peer]
mtkd has quit [Read error: Connection reset by peer]
_aeris_ has joined #ruby
chouhoulis has joined #ruby
tomphp has joined #ruby
mtkd has joined #ruby
wilbert_ has joined #ruby
wilbert has quit [Read error: Connection reset by peer]
plexigras has quit [Ping timeout: 256 seconds]
dstrunk has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
Ltem has quit [Quit: Leaving]
BTRE has quit [Read error: Connection reset by peer]
FrostCandy has joined #ruby
wilbert_ has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
BTRE has joined #ruby
LocaMocha has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
troydm has left #ruby ["WeeChat 2.0.1"]
pastorinni has quit [Remote host closed the connection]
hahuang61 has joined #ruby
minimalism has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xfbs has quit []
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
TobiFrano has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ltem has joined #ruby
mclee has quit [Quit: WeeChat 1.4]
mniip has quit [Changing host]
mniip has joined #ruby
imode has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
d_kam has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
chocoelho_ has quit [Ping timeout: 240 seconds]
chocoelho_ has joined #ruby
d_kam has joined #ruby
listenmore has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 248 seconds]
sammi` has quit [Quit: Lost terminal]
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
Guest2997 has quit [Changing host]
Guest2997 has joined #ruby
Guest2997 is now known as Kestrel-029
sammi` has joined #ruby
ldnunes has quit [Quit: Leaving]
jtdoncas has joined #ruby
hazelux has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sepp2k has quit [Quit: Leaving.]
Inside has joined #ruby
<Inside>
I'm using CentOS. Does it make sense to use SCL ruby 2.4.0 or should I use rvm to install ruby for a new system?
Zamyatin has quit [Read error: Connection reset by peer]
Zamyatin has joined #ruby
Cavallari has quit [Quit: Cavallari]
eckhardt has joined #ruby
Zamyatin has quit [Client Quit]
<havenwood>
Inside: SCL 2.4 seems completely reasonable. Dev or prod?
<havenwood>
Assuming it's prod, I'd vote SCL.
<havenwood>
(You don't see CentOS in dev much I suppose. ;-))
<havenwood>
Inside: Alternatively you could use `sudo ruby-install --system --latest` to install 2.5 to /usr/local.
<havenwood>
Inside: TL;DR: SCL if prod.
nit3rid3 has quit [Quit: Leaving]
hazelux has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 276 seconds]
hazelux has joined #ruby
orbyt_ has joined #ruby
fschuindt has quit [Quit: WeeChat 2.0]
orbyt_ has quit [Client Quit]
nixy has left #ruby ["WeeChat 1.7"]
eck has quit [Ping timeout: 256 seconds]
Barrt has joined #ruby
hazelux has quit [Ping timeout: 255 seconds]
fmcgeough has quit [Quit: fmcgeough]
ur5us has joined #ruby
ericx2x has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
netherwolfe has quit [Quit: Leaving]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
elphe has joined #ruby
hanmac has joined #ruby
faces has quit [Read error: Connection reset by peer]
elphe has quit [Ping timeout: 248 seconds]
faces has joined #ruby
ericx2x has quit [Quit: Leaving]
ivanskie has joined #ruby
r3kz has quit [Quit: Connection closed for inactivity]
elementaru has quit [Remote host closed the connection]
jottr has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Inside>
I've gone back to trying to use rvm (which has its own issues :D) in this Dockerfile
<Inside>
But the bigger philosophical question is -- when should SCL even be used?
<Yxhuvud>
I have never looked back after I switched to chruby.
bronson has joined #ruby
cschneid_ has joined #ruby
<Inside>
Heh
<Inside>
According to my sysadmin guy the whole concept of multiple rubies on a single system is a terrible idea
jeffreylevesque has quit [Ping timeout: 248 seconds]
<Inside>
I was trying to explain to him the whole rvm/scl thing and he wasn't having any of it
jottr has quit [Ping timeout: 240 seconds]
Barrt has quit [Ping timeout: 265 seconds]
cschneid has quit [Ping timeout: 255 seconds]
hahuang61 has quit [Ping timeout: 255 seconds]
<havenwood>
Inside: In production, you don't need to switch Rubies - you have just your Ruby.
rigby has joined #ruby
<havenwood>
Inside: SCL is a package-managed Ruby that's ideal for production.
TobiFrano has joined #ruby
rigby has quit [Client Quit]
cschneid has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<havenwood>
Inside: A good reason for multiple Rubies on a single system is a development machine.
<Inside>
Hmmm
<havenwood>
Inside: Different projects will require different Ruby engines and versions.
<havenwood>
In prod, you know exactly what Ruby you should be providing. Use that.
bmurt has joined #ruby
<ramfjord>
yup - that's definitely the ideal state
troulouliou_div2 has joined #ruby
<havenwood>
SCL is a great choice. No other Rubies. Or like I said, you can install Ruby to /usr/local if you want to build Ruby yourself for a single install.
rigby has joined #ruby
<havenwood>
Inside: ^
<ramfjord>
I do find the SCL packages quite irritating though, with everything having to be run through scl enable
<havenwood>
ramfjord: It's by the same author as chruby.
LastWhisper____ has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
<havenwood>
It supports updating Ruby metadata (from ruby-version repo) without updating the tool itself, checks md5, sha1, sha256 *and* sha512 checksums, uses package managers for dependencies, etc. It's nicely organized and tested.
amatas has quit [Quit: amatas]
<ramfjord>
seems quite nice compared to SCL if it lets you do a system installation like that!
<havenwood>
It's just for building Ruby though. No precompiled, statically-linked binaries.
<Inside>
App 63 stderr: /opt/rh/rh-ruby24/root/usr/bin/ruby: error while loading shared libraries: libruby.so.2.4: cannot open shared object file: No such file or directory
<havenwood>
Inside: Hrm, seems like maybe you need a: LD_LIBRARY_PATH="/opt/rh/ruby24/root/usr/lib64:$LD_LIBRARY_PATH"
<havenwood>
Inside: Dunno!
ahrs has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.0.1]
<havenwood>
bawNg: What puts the "soft" in "soft-realtime"?
pastorinni has joined #ruby
<havenwood>
ah, can miss some deadlines
<bawNg>
havenwood: well true real time applications can't really be built in a high language which has GC, they need to guarantee the CPU time that is needed to perform tasks
ahrs has joined #ruby
<bawNg>
but very few real time applications require such strict deadlines
<Inside>
blah blah deterministic
<bawNg>
this week, I've built a C extension which implements a high precision scheduler of light weight timers for async and fibered Ruby applications
<bawNg>
it can fire timers or resume sleeping fibers within precision of a few microseconds
<havenwood>
bawNg: ah, nice
<havenwood>
how does it compare to hitimes?
<bawNg>
I created it for the Sonic Pi project, but I'm thinking I should just turn it into an open source gem in case anyone else wants to use it
<bawNg>
it does something completely different to hitimes, though it also includes a high precision cross platform clock like hitimes does
<havenwood>
nice
<bawNg>
it is high precision reactor, so basically an eventmachine replacement without any IO support
synthroid has quit []
<bawNg>
it may eventually include IO support, since things can be a lot more efficient than eventmachine, but I don't know if I'll ever have the time to do that
<bawNg>
so it's a timer/fiber scheduler
<bawNg>
it includes Mutex and ConditionalVariable replacements, joining on jobs (fibers), job sleeping, fiber-less timers and some other things which I needed to replace native threads with fibers while converting the heavily threaded Sonic Pi project
<havenwood>
bawNg: are you familiar with normalperson's Thribers patch?
<ramfjord>
Inside: I think you'll probably need to change the `passenger_ruby` option or something like that in your nginx.conf if you want to use the SCL packages
<ramfjord>
the `scl enable` stuff is supposed to manage the LD_LIBRARY_PATH and other variables for you
<Inside>
Well - it is set to where the SCL package is
<Inside>
It just looks like nginx isn't using the SCL environment
<bawNg>
I saw that sometime last year, does sound interesting, but I've been using fibers in async applications for many years already
Toggi3 has joined #ruby
<bawNg>
it definitely seems like a good idea to have better core language support for fibers in the future, at least in some way
jetpack_joe_ has joined #ruby
FrostCandy has quit []
<bawNg>
I wish extconf supported magically downloading the compatible ruby source as a dependency when building a gem
jeffreylevesque has joined #ruby
<ramfjord>
Inside: are you running passenger inside scl enable?
banisterfiend has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<Inside>
Hmmm
Toggi3 has quit [Ping timeout: 240 seconds]
<Inside>
No
sameerynho has quit [Ping timeout: 268 seconds]
<Inside>
That's actually what I'm trying to figure out right now
d^sh has joined #ruby
d^sh_ has quit [Ping timeout: 248 seconds]
dviola has joined #ruby
<ramfjord>
i.e. `scl enable rh-ruby24 'bundle exec passenger start'`
jenrzzz has joined #ruby
reber has quit [Remote host closed the connection]
Toggi3 has joined #ruby
<Inside>
Well - it's technically nginx w/ passenger
<ramfjord>
nginx running in some systemd unit?
<ramfjord>
tbh I'd be strongly considering trying a ruby-install version of the centos base image if I were you - building from source isn't much of an issue with docker, as long as you put it in a layer that doesn't have to be rebuild often
thejamespinto has quit [Ping timeout: 260 seconds]
<Inside>
Thsi isn't even going to be a Docker file =_=
jenrzzz has quit [Ping timeout: 255 seconds]
<Inside>
I'm trying to move my stuff to a different box - the sysadmin wants me to give him a list of everything that he needs to do to setup that box
<Inside>
And Docker comes into play here
<Inside>
Not in a "we're going to use Docker" way, but in a "I'm going to copy the commands over and set up the box from scratch" way
<bawNg>
I feel like whatever solution I come up with for building a gem against the Ruby source is going to cause problems for people who have different environments like RVM, even if I detect the current running Ruby version and download the matching source, I'd still need to use the installed Ruby versions config.h
<ramfjord>
:S
<bawNg>
there must be a better solution, surely it can't be all that uncommon for an extension to depend on the Rruby source
<bawNg>
*Ruby
troulouliou_div2 has quit [Quit: Leaving]
jdawgaz has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<ramfjord>
run in docker on new host, so he only needs to install docker and you can have the same dev environment as prod?
tvw has quit []
<Inside>
i'm not even using docker for development
<Inside>
\o/
<ramfjord>
or, figure out where the nginx binary is getting invoked and surround it in scl enable rh-ruby24
<cjohnson>
In ruby, I have two arrays, and I want to take the product of those two arrays and run a command on each combination. I know about Arra#product but the question is how can I easily consume them? Does this work?
<cjohnson>
arr1.product(arr2).each do |arr1_arg, arr2_arg|
<cjohnson>
Or do I need to use something beside each to iterate the array of arrays
<cjohnson>
So that will find every MyModel matching my program id as one query, and then I will use ruby to find those combinations of records which don't yet exist