jenrzzz has quit [Read error: Connection reset by peer]
memolee has quit [Quit: Connection closed]
RougeR has quit [Remote host closed the connection]
RougeR has joined #ruby
<AndreYuhai>
How do I set a default_url_option only for specific paths in my routes rb?
<AndreYuhai>
or in config
vondruch has joined #ruby
TCZ has quit [Quit: No Ping reply in 180 seconds.]
TCZ has joined #ruby
bamdad has quit [Ping timeout: 240 seconds]
bamdad_ has joined #ruby
centrx has joined #ruby
stryek has joined #ruby
TCZ has quit [Quit: ...]
dpl has quit [Ping timeout: 260 seconds]
BSaboia has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
dpl has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
MalkbabY has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
rubydoc has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Quit: Leaving...]
cer-0 has joined #ruby
phaul has joined #ruby
jenrzzz has joined #ruby
rubydoc has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
centrx has quit [Ping timeout: 276 seconds]
zacts has joined #ruby
BSaboia has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
rubydoc has quit [Ping timeout: 252 seconds]
phaul has quit [Ping timeout: 252 seconds]
Fusl has quit [Ping timeout: 250 seconds]
Raboo has quit [Ping timeout: 245 seconds]
vondruch has joined #ruby
phaul has joined #ruby
rubydoc has joined #ruby
Fusl has joined #ruby
Raboo has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
centrx has joined #ruby
dcunit3d has quit [Ping timeout: 252 seconds]
centrx has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
bamdad_ has quit [Ping timeout: 240 seconds]
bamdad has joined #ruby
feriman has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
JaredCE_ has joined #ruby
JaredCE has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
centrx has quit [Ping timeout: 250 seconds]
va5c0 has joined #ruby
RubyBrad has joined #ruby
jobewan has quit [Quit: jobewan]
moldorcoder7 has quit [Ping timeout: 252 seconds]
moldorcoder7 has joined #ruby
wallacer has quit [Ping timeout: 245 seconds]
centrx has joined #ruby
jobewan has joined #ruby
va5c0 has quit [Ping timeout: 260 seconds]
va5c0 has joined #ruby
horst_ has joined #ruby
horst has quit [Ping timeout: 265 seconds]
horst_ is now known as horst
cthu| has joined #ruby
wallacer has joined #ruby
<AndreYuhai>
q
<AndreYuhai>
Sorry
AndreYuhai has quit [Quit: leaving]
ChmEarl has joined #ruby
howdoi has joined #ruby
herbert__ has joined #ruby
va5c0 has quit [Ping timeout: 252 seconds]
<herbert__>
So I received an old setup from a friend for a software written in ruby and I am trying to conserve it by creating a Dockerfile with the necessary gems and libraries and all that to understand it and then rewrite in a modern style. Now I need to setup Ruby2.3.1 and gems2.5.2 and I already found the source for it but gems2.5.2 really doesn't want to
<herbert__>
install :/ when I ruby setup.rb I get [...]singleton class': undefined method `default_specifications_dir' for class `#<Class:Gem>' (NameError). Any idea hot i could get it running?
rubydoc has quit [Ping timeout: 240 seconds]
va5c0 has joined #ruby
<adam12>
herbert__: A full backtrace might help. Can you paste it to dpaste.org or gist.github.com?
<herbert__>
ah, I see with ruby -v that I am actually using ruby 2.7.0 to install the setup.rb... how can I change that to install it with the desired ruby version 2.3.1?
<herbert__>
ah, I got it, I found the ruby-2.3.1 executable
gray-_-wolf has joined #ruby
jimms has joined #ruby
<micah>
i've added 'gem 'prometheus-client'' to my Gemfile, ran `bundle install`, then put 'require prometheus/client' at the top of my app, but when I run it can't find it: `require': cannot load such file -- prometheus/client (LoadError)
jenrzzz has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jobewan has quit [Quit: jobewan]
jetchisel has quit [Ping timeout: 252 seconds]
jobewan has joined #ruby
Caerus has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
py88 has quit [Read error: Connection reset by peer]
py88 has joined #ruby
<adam12>
herbert__: Why are you forcing the rubygems version? What started all of this?
<adam12>
herbert__: What’s in setup.rb? Specifically the require around line 33.
<adam12>
herbert__: You shouldn’t need to manipulate the rubygems version. So let’s go way back to the beginning since I think you’re down the wrong path.
jenrzzz has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
<adam12>
micah: Presumably you’ve tried running with `bundle exec`?
<herbert__>
What it is in line 33 I have no idea, I didn't inspect because I figured that running it with ruby-2.3.1 there is no error
<adam12>
micah: I think we touched on this yesterday but I want to confirm.
<adam12>
herbert__: I thought setup.rb might have been your project. If it’s rubygems then it doesnt’ matter to me.
<herbert__>
adam12 I am trying to get a very old script running that is super limited with the versions of gems and ruby, that's why I want to be specific with it
<adam12>
herbert__: Does it have a Gemfile at the root of the project?
<micah>
adam12: doh. you are absolutely right. I *thought* I was doing the bundle exec, but managed to just up arrow<ret> a non-bundle exec command. thanks, and sorry to bother you
<herbert__>
adam12 noooo its a dirty, hacky 1-file-script ;)
<adam12>
herbert__: My suggestion is to make a Gemfile, add the dependencies the script needs into it, then put both in a Dockerfile. Probably easiest.
gray-_-wolf has quit [Quit: WeeChat 3.1]
<herbert__>
adam12 thanks for the hint. I will have to run it within an ubuntu docker though so I create a routine to install the necessary versions in the ubuntu dockerfile.
<herbert__>
adam12 well... I have a ruby script that basically scrapes a gmail account for mails and then handles their attachement. It is programmed to work together with a cron job and a linux cmd line mail program, so for the whole thing to work I need to create an ubuntu machine with the required versions of programs and then I can see if I can have it run
<herbert__>
without any errors :) It will need access to some places that I don't want to share on my server so I thought sandboxing it in a docker will be the easiest. anyway, I managed to get the required ruby&gem version running :)
rubydoc has quit [Ping timeout: 240 seconds]
<herbert__>
adam12 and it is not my script and I would prefer to spend as little time possible to get it running ^^
<herbert__>
adam12 for now I am good with the ruby stuff, next is to get the ubuntu docker running
<Smasher>
I've grepped trough the whole code and also googled "authorize_read_sentry_issue!" but no luck.
<Smasher>
Any ideas folks?
zacts has quit [Quit: bbl]
Guest12 has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
Guest12 has quit [Quit: Connection closed]
<rinket>
anyone here have an ultrawide monitor 49", waht's it like to code on?
jenrzzz has joined #ruby
<adam12>
Smasher: It’s going to refer to a method somewhere...
<adam12>
Smasher: How did you grep for it? Do you have a working version of Gitlab running?
jenrzzz has quit [Read error: Connection reset by peer]
<Smasher>
I have cloned the repository and did `grep -rI authorize_read_sentry_issue .`
pgib has quit [Ping timeout: 240 seconds]
<adam12>
Smasher: My guess is it’s defined using some sort of meta programming. If you have a running instance, you can add a call to binding.irb or binding.pry in that controller then get the location of that method using something like `method(:authorize_read_sentry_issue!).source_location`
arooni has quit [Ping timeout: 265 seconds]
<adam12>
Alternatively get a console running and then access the controller directly. `Projects::ErrorTracking::ProjectsController.instance_method(:authorize_read_sentry_issue!).source_location` or something.
<Smasher>
I've checked if I can request project list from Sentry using the same auth token I use for GitLab configuration and it works. So I suspect a bug there.
<Smasher>
Iambchop not sure if my issue is related to the one I commented
<Iambchop>
We've never tried the sentry integration... have a full error message from the rails logs?
<ruby[bot]>
Smasher: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<Smasher>
ruby[bot] lol
<Smasher>
k
<Smasher>
Iambchop not really useful as well as far I can tell
va5c0 has quit [Ping timeout: 268 seconds]
<Smasher>
but I don't see anything else related
<Smasher>
adam12 thanks for the hint, I didn't know such thing as method_missing exists ^^
va5c0 has joined #ruby
hiroaki has quit [Ping timeout: 260 seconds]
<Smasher>
it calls authorize_action then with parameter :read_sentry_issue
<adam12>
dorian: Can you reproduce? Extensions are going to be kinda in the `works on my my machine` territory.
<Smasher>
adam12 thanks to you I've managed to get ahead but I am still on it
<dorian>
i can't, no
<dorian>
i asked him if he had all the right headers or if his environment was getting tinkered with
hiroaki has joined #ruby
<dorian>
it apparently compiles for him if he goes in and does surgery to the c code
<dorian>
so the compiler can see the headers but extconf.rb can't? no idea
<dorian>
way above my paygrade
<dorian>
(or possibly below it)
rubydoc has quit [Ping timeout: 252 seconds]
phaul has quit [Ping timeout: 252 seconds]
<adam12>
dorian: The line about gmake is interesting. I wonder if that’s a Fedora-ism.
rubydoc has joined #ruby
<dorian>
this caught my attention: -I/usr/include/ruby/backward
<dorian>
i can't remember, do include paths supersede right to left or left to right
pyra has joined #ruby
phaul has joined #ruby
<adam12>
dorian: That would of been pushed to the front of the $LOAD_PATH and came first in lookup. But of course other things may push themselves after.
<dorian>
hmm
<adam12>
I have that path in mine too if I force tracing.
<adam12>
Nope. Tho I’m testing on a docker image and not a Fedora install.
<dorian>
ah
<dorian>
yeah 99% sure this is fedora's doing
<dorian>
thanks for looking into it though
<dorian>
speaking of which i really need to plough some effort into that thing; its transaction code is all effed up
<dorian>
the bookkeeping is all wrong
<dorian>
(and there is a double free in there somewhere that ostensibly has been there for a while)
s2013 has joined #ruby
s2013 has quit [Remote host closed the connection]
<Smasher>
adam12 my investigations lead deeper and deeper into application's authentication code but I don's see any sense anymore
<adam12>
dorian: Compiling without dev headers will fail early, so I doubt missing ruby-dev or ruby-devel is it either.
<dorian>
indeed
<adam12>
There’s a Fedora image for Debian but it’s super lean as expected. Installing 100’s of packages to try compiling.
<adam12>
Smasher: Are you just reading code or do you have it running? If it’s the former, I suggest getting it to run somehow as it makes poking it a bit easier.
MalkbabY has quit [Remote host closed the connection]
<Smasher>
adam12 yes I have it running and also an access to the rails console
<dorian>
adam12: you're dedicated; i'd have told this dude he's on his own by now
<Smasher>
I wonder if there's any possibility to attach a debugger somehow
MalkbabY has joined #ruby
Rudd0 has quit [Remote host closed the connection]
<adam12>
dorian: LOL. Puzzles…
r29v has joined #ruby
MalkbabY has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
<adam12>
dorian: Reproduced in a Fedora Docker container.
<adam12>
dorian: Also, Ruby on Fedora is 3.0.1...
<Iambchop>
Smasher: is this an on-prem sentry server? do you have 'the option “Allow requests to the local network from web hooks and services” in the “Outbound requests” section inside the Admin Area > Settings'? (though I would expect a different error if that was the problem)
<adam12>
dorian: That issue mentioned 2.7.2 I think? Might be worth confirming.
<Smasher>
Iambchop yes and yes
<dorian>
yeah
<adam12>
Smasher: Can you post something at a high level about what you’re trying to do? And if you have a stack trace?
<Iambchop>
what version of sentry?
<Smasher>
adam12 at the high level i am trying to configure integration between gitlab and sentry
<Smasher>
stacktrace unfortunately not visible in the logs
<adam12>
dorian: It compiles on 3.0.1 so that’s not it either.
<dorian>
oh by 'reproduced' you didn't mean reproduced the bug?
brunosaboia_ has joined #ruby
<Smasher>
Iambchop I don't think sentry version is important.. I captured some traffic with tcpdump and there were no tcp connections towards the sentry server
<dorian>
or the same wrong extconf.h
<Smasher>
Iambchop it looks like GitLab thinks I am not allowed to modify those settings which is strange because I am an admin of the instance
Qchmqs has joined #ruby
<Iambchop>
oh, no tcp connection even?
<Iambchop>
was thinking that maybe the 404 from your log was gitlab talking to the wrong api version and getting not found, but apparently not
BSaboia has quit [Ping timeout: 252 seconds]
MalkbabY has joined #ruby
<adam12>
dorian: On the Fedora docker image, I can recreate both.
evdubs__ has joined #ruby
<dorian>
yeah so something is messing with that extconf.rb
evdubs has joined #ruby
evdubs_ has quit [Ping timeout: 268 seconds]
r29v has quit [Quit: r29v]
jenrzzz has quit [Ping timeout: 260 seconds]
evdubs__ has quit [Ping timeout: 260 seconds]
<Iambchop>
Smasher: try asking in #gitlab
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
<Smasher>
Iambchop thanks I will
<Smasher>
not today anymore, braindead phase begins
<AndreYuhai>
For example, let's say I've got a Mechanize instance with the cookies and etc.
MalkbabY has quit [Remote host closed the connection]
<AndreYuhai>
Can I actually share that Mechanize instance among workers by using ConnectionPool?
MalkbabY has joined #ruby
<AndreYuhai>
Because I wouldn't want to lose the cookies I already have, so that I only send the request I want. Otherwise each worker would have to follow the same steps just to get cookies and etc.
jenrzzz has joined #ruby
<adam12>
AndreYuhai: It would probably work if you set the number to 1 or something. I don’t think ConnectionPool does anything specific with IO, just manages checkins/checkouts of sockets, which are setup in the block.
<adam12>
AndreYuhai: You could probably roll your own with a singleton and a mutex… if you wanted to go that route.
gdonald has joined #ruby
<AndreYuhai>
adam12, Oh alright, I would basically use Mechanize.new inside that block instead.
jenrzzz has quit [Ping timeout: 240 seconds]
MalkbabY has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
oddp has joined #ruby
gearnode has quit [Ping timeout: 260 seconds]
gearnode has joined #ruby
RubyBrad has joined #ruby
RubyBrad has quit [Remote host closed the connection]
RubyBrad has joined #ruby
RubyBrad has quit [Read error: Connection reset by peer]