<lembron>
kinda other way around i mean - originial author build for 1.9 (according to the readme at least) -- i have it running on 2.7 & 3.0 now - but can only run as development or test, not "production" as production tries to freeze and explodes then
<lembron>
so Q is - did this likely never work? author didnt build "prod" and thats just a standard config.ru file he copypasted as template?
<lembron>
or should i expect that to function and need some tweaking/updates to fix ((what then leads into a "do i need this?"))
<weaksauce>
tough to say
<weaksauce>
what was the gem??
graywolf has joined #ruby
parv has joined #ruby
cornett has joined #ruby
random-jellyfish has quit [Ping timeout: 256 seconds]
Inline has quit [Ping timeout: 264 seconds]
aeris has quit [Remote host closed the connection]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
<libsys>
what's weird is that when I replace `Rack::Response.new("hello")` by `[200, { 'Content-Type' => 'text/html' }, ['hello']]` it works fine
<libsys>
I've tried with ruby 2.7.2 and 3.0 on different machines, I receive the same error
ur5us has joined #ruby
xyhuvud has joined #ruby
yxhuvud has quit [Ping timeout: 268 seconds]
<libsys>
pfff didn't read the docs, i need to do Response#finish
<libsys>
seen examples of people not doing the .finish part, probably an old version?
ur5us has quit [Ping timeout: 264 seconds]
Inline has quit [Quit: Leaving]
_ht has joined #ruby
vit has joined #ruby
Inline has joined #ruby
<ox1eef>
libsys: traditionally the three element array would be returned, i think returning Rack::Response instead is a new interfacte
<ox1eef>
not certain thouggh.
taupiqueur has joined #ruby
random-jellyfish has joined #ruby
gcd has joined #ruby
dohtem has quit [Quit: Connection closed for inactivity]
jetchisel has joined #ruby
parv has quit [Quit: parv]
gcd has quit [Quit: leaving]
robotmay has quit [Quit: No Ping reply in 180 seconds.]
trillp has quit [Quit: nyaa~]
taupiqueur_ has joined #ruby
robotmay has joined #ruby
taupiqueur has quit [Ping timeout: 264 seconds]
menace has quit [Quit: menace]
berkhan has joined #ruby
taupiqueur_ has quit [Ping timeout: 256 seconds]
graywolf has quit [Quit: WeeChat 3.3]
gcd has joined #ruby
coolnickname_ has joined #ruby
Rounin has joined #ruby
coolnickname_ has quit [Ping timeout: 256 seconds]
moldorcoder7_ has quit [Ping timeout: 264 seconds]
moldorcoder7 has joined #ruby
berkhan has quit [Ping timeout: 264 seconds]
ikke has joined #ruby
<ikke>
What can cause 'Gem' to be unavailable? gem install rugged -v '1.1.0' --source 'https://rubygems.org/' results into "extconf.rb:49:in `<main>': uninitialized constant Gem (NameError)". This is in an ruby:alpine2.7-alpine3.13 docker image.
coolnickname_ has joined #ruby
<isene>
What is the best/most efficient way to split a string after a certain length (to force line breaks in a curses window)?
coolnickname_ has quit [Ping timeout: 260 seconds]
taupiqueur has joined #ruby
dohtem has joined #ruby
<adam12>
isene: Probably need to index for whitespace and slice, since I'm not sure you want to force line break in the middle of words?
gcd has quit [Quit: leaving]
<adam12>
lines = []; until string == ""; lines << string.slice!(0..string.index("\s", 70)); end
<adam12>
ikke: what's the exact docker image?
<ikke>
adam12: ruby2.7-alpine3.13
<ikke>
adam12: ruby:2.7-alpine3.13
petru has joined #ruby
menace has joined #ruby
menace has joined #ruby
menace has quit [Changing host]
<adam12>
ikke: I can't reproduce that error, but that image needs a bunch of build deps to build anything.
<adam12>
ikke: Why aren't you using a normal ruby image on buster or similar?
<adam12>
s/normal/full
petru is now known as legit
random-jellyfish has quit [Ping timeout: 256 seconds]
<adam12>
apk add build-base cmake libressl-dev
<isene>
adam12: Great. Thanks.
<ikke>
adam12: because we run the application on alpinelinux
<ikke>
In this case gitlab
<ikke>
We can build it without issue with gitlab 14.2, but 14.3 gives these issues