havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Lewix has joined #ruby
ur5us has joined #ruby
davidw has quit [Ping timeout: 272 seconds]
afisher has quit [Read error: Connection reset by peer]
strmpnk has quit [Read error: Connection reset by peer]
matti has quit [Read error: Connection reset by peer]
gajus has quit [Read error: Connection reset by peer]
jhill has quit [Read error: Connection reset by peer]
ryzokuken has quit [Read error: Connection reset by peer]
wbnns has quit [Read error: Connection reset by peer]
n1v has quit [Read error: Connection reset by peer]
wbnns has joined #ruby
ryzokuken has joined #ruby
n1v has joined #ruby
matti has joined #ruby
strmpnk has joined #ruby
afisher has joined #ruby
jhill has joined #ruby
gajus has joined #ruby
darkf has joined #ruby
teej has joined #ruby
teej has quit [Excess Flood]
evert has joined #ruby
teej has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
dman777_alter has joined #ruby
<dman777_alter> hello, trying to install ruby with rvm on Ubunutu xenial but i think the repo is outdated....even with apt-get update. It searching https://rubies.travis-ci.org/ubuntu/16.04/x86_64/ruby-2.6.5.tar.bz2 but it gives a 404. Can anyone help, please?
r3my has joined #ruby
evert_ has quit [Ping timeout: 245 seconds]
tbisker8 has joined #ruby
bsdbandit-01 has joined #ruby
titanbiscuit has quit [Ping timeout: 268 seconds]
sgen has quit [Ping timeout: 260 seconds]
mossplix has quit [Remote host closed the connection]
<havenwood> dman777_alter: Did you install RVM directly? Have you tried updating to latest RVM yet?: rvm get head
ec has joined #ruby
<dman777_alter> havenwood: I removed some bad repos and had some success. Now I have this error http://dpaste.com/05VYJ8X#line-11
<dman777_alter> havenwood: any idea what could cause it?
<havenwood> dman777_alter: Warning: Failed to create the file bin-ruby-2.6.5.tar.bz2.part: Permission
<havenwood> Warning: denied
<havenwood> dman777_alter: try: rvm fix-permissions
<havenwood> dman777_alter: I think you just have a permissions issue, but you could try compiling from source rather than from binary if you want. I'd focus on the permissions issue until resolved
<havenwood> dman777_alter: curl: (23) Failed writing body (0 != 8629); There was an error(23).
<dman777_alter> havenwood: hmm... I tried this http://dpaste.com/3N72D40
<havenwood> dman777_alter: Curl error 23 means can't write to filesystem, which makes sense with permissions issue.
<havenwood> dman777_alter: Are you using RVM as root? This does't look like a local user install.
<dman777_alter> havenwood: no, it's normal user.
<dman777_alter> havenwood: ah... I think I got it working. I complied from source instead of binary. Thank you!
<havenwood> Installing Ruby from source to: /usr/share/rvm/rubies/ruby-2.6.5
<havenwood> Also permission denied, and system location.
<havenwood> dman777_alter: Looks to me like you installed RVM with sudo. I'd suggest imploding, __rvm_unload, and reinstall without sudo.
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dman777_alter> +1
NODE has quit [Excess Flood]
<havenwood> dman777_alter: To fix a system install permissions (uhhg): rvmsudo rvm fix-permissions system
matti has quit [Ping timeout: 245 seconds]
<havenwood> RVM doesn't recommend system installs, they tend to cause problems, I'd recommend a single-user install for sure.
pitastrudl has quit [Ping timeout: 252 seconds]
coffeejunk has quit [Ping timeout: 252 seconds]
jhill has quit [Ping timeout: 245 seconds]
Fenhl has quit [Ping timeout: 245 seconds]
englishm has quit [Ping timeout: 246 seconds]
n1v has quit [Read error: Connection reset by peer]
pilcrow has quit [Ping timeout: 252 seconds]
NODE has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
dman777_alter has quit [Quit: leaving]
jnix has quit [Ping timeout: 245 seconds]
integral has quit [Ping timeout: 245 seconds]
r3my has quit [Ping timeout: 268 seconds]
zipkid has quit [Ping timeout: 272 seconds]
gajus has quit [Ping timeout: 260 seconds]
d0liver has quit [Ping timeout: 260 seconds]
Pillus has quit [Ping timeout: 245 seconds]
d10n-work has quit [Ping timeout: 245 seconds]
KnownSyntax has quit [Ping timeout: 252 seconds]
maxmanders has quit [Ping timeout: 264 seconds]
ec has quit [Ping timeout: 258 seconds]
Mutsuhito has quit [Ping timeout: 252 seconds]
afisher has quit [Ping timeout: 272 seconds]
hsiktas has quit [Ping timeout: 272 seconds]
darkf has quit [Ping timeout: 260 seconds]
Liothen has quit [Ping timeout: 260 seconds]
tag has quit [Ping timeout: 260 seconds]
tdy has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
teej has quit [Ping timeout: 272 seconds]
kevinsjoberg has quit [Ping timeout: 272 seconds]
mattwc has quit [Ping timeout: 272 seconds]
rann has quit [Ping timeout: 272 seconds]
NODE has quit [Remote host closed the connection]
tdy has quit [Client Quit]
ryzokuken has quit [Ping timeout: 245 seconds]
JayDoubleu has quit [Ping timeout: 245 seconds]
darthThorik has quit [Ping timeout: 245 seconds]
Argorok has quit [Ping timeout: 245 seconds]
Net has quit [Ping timeout: 245 seconds]
tdy has joined #ruby
NODE has joined #ruby
graphicsv has quit [Ping timeout: 246 seconds]
podman has quit [Ping timeout: 248 seconds]
BuildTheRobots has quit [Ping timeout: 272 seconds]
infinity2022 has quit [Ping timeout: 245 seconds]
lipoqil has quit [Ping timeout: 248 seconds]
gorsuch has quit [Ping timeout: 248 seconds]
peteretep has quit [Ping timeout: 252 seconds]
nuck has quit [Ping timeout: 252 seconds]
rahult has joined #ruby
twodayslate has quit [Ping timeout: 272 seconds]
ctp has quit [Ping timeout: 252 seconds]
wbnns has quit [Ping timeout: 272 seconds]
Iambchop has quit [Ping timeout: 272 seconds]
jetpack_joe has quit [Ping timeout: 272 seconds]
strmpnk has quit [Ping timeout: 260 seconds]
gylpm has joined #ruby
rahult has quit [Ping timeout: 260 seconds]
gmcintire has quit [Ping timeout: 246 seconds]
jerme_ has quit [Ping timeout: 272 seconds]
Sina has quit [Ping timeout: 272 seconds]
jnoon has quit [Ping timeout: 260 seconds]
timeless has quit [Ping timeout: 272 seconds]
lipoqil has joined #ruby
bambanx has joined #ruby
WA9ACE has quit [Ping timeout: 246 seconds]
fowlduck has quit [Ping timeout: 246 seconds]
chalkmonster has joined #ruby
Lewix has quit [Ping timeout: 272 seconds]
wildtrees has quit [Quit: Leaving]
mossplix has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Lewix has joined #ruby
Lewix has quit [Max SendQ exceeded]
jnix has joined #ruby
davidw has quit [Ping timeout: 240 seconds]
jinie has quit [Ping timeout: 260 seconds]
timeless has joined #ruby
timeless has quit [Excess Flood]
jnix has quit [Max SendQ exceeded]
mossplix has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 240 seconds]
lipoqil has quit [Ping timeout: 245 seconds]
mossplix has joined #ruby
bruce_lee has quit [Ping timeout: 260 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
twodayslate has joined #ruby
DaRock has quit [Remote host closed the connection]
DaRock has joined #ruby
mossplix has quit [Remote host closed the connection]
twodayslate has quit [Ping timeout: 246 seconds]
dviola has quit [Quit: WeeChat 2.7]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mossplix has joined #ruby
darthThorik has joined #ruby
rann has joined #ruby
darthThorik has quit [Max SendQ exceeded]
raggi- has quit [Ping timeout: 260 seconds]
iamdevnul has quit [Ping timeout: 260 seconds]
cthulchu_ has quit [Ping timeout: 265 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siasmj has quit [Ping timeout: 260 seconds]
MentalPower has quit [Ping timeout: 272 seconds]
rann has quit [Ping timeout: 260 seconds]
fowlduck has joined #ruby
william1 has quit [Ping timeout: 265 seconds]
SeepingN has joined #ruby
Swyper has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.7]
hays has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
bambanx has quit [Quit: Leaving]
hays has joined #ruby
ttoocs has joined #ruby
fowlduck has quit [Ping timeout: 272 seconds]
jinie has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
alex`` has quit [Quit: WeeChat 2.7]
mossplix has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
peteretep has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
bruce_lee has quit [Ping timeout: 258 seconds]
bruce_lee has joined #ruby
siasmj has joined #ruby
mossplix has joined #ruby
peteretep has quit [Max SendQ exceeded]
siasmj has quit [Ping timeout: 246 seconds]
mossplix has quit [Remote host closed the connection]
siasmj has joined #ruby
siasmj has quit [Ping timeout: 260 seconds]
chalkmonster has joined #ruby
ur5us has joined #ruby
DaRock has quit [Read error: Connection reset by peer]
DaRock has joined #ruby
chalkmonster has quit [Ping timeout: 272 seconds]
markopasha has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
renich has quit [Quit: renich]
chalkmonster has joined #ruby
GodFather has joined #ruby
chalkmonster has quit [Ping timeout: 265 seconds]
chalkmonster has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
cadeskywalker has quit [Ping timeout: 268 seconds]
jmcgnh has joined #ruby
william1 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
cadeskywalker has joined #ruby
chalkmonster has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
siasmj has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
siasmj has quit [Ping timeout: 272 seconds]
MrCrackPot has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
william1_ has joined #ruby
shirak_ has joined #ruby
william1 has quit [Ping timeout: 268 seconds]
chalkmonster has joined #ruby
shirak has quit [Ping timeout: 268 seconds]
william1_ has quit [Ping timeout: 272 seconds]
GodFather has joined #ruby
brool has quit [Ping timeout: 260 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
GodFather has quit [Ping timeout: 272 seconds]
rainmanjam has quit [Read error: Connection reset by peer]
rainmanjam has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rainmanj_ has joined #ruby
sgen has joined #ruby
chalkmonster has quit [Ping timeout: 260 seconds]
rainmanjam has quit [Ping timeout: 272 seconds]
gix- has quit [Ping timeout: 260 seconds]
brool has joined #ruby
im0nde has joined #ruby
im0nde_ has quit [Ping timeout: 272 seconds]
AJA4350 has quit [Quit: AJA4350]
postmodern has joined #ruby
sgen has quit [Ping timeout: 260 seconds]
johnny56 has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
cadeskywalker has quit [Ping timeout: 258 seconds]
johnny56 has quit [Ping timeout: 240 seconds]
cadeskywalker has joined #ruby
johnny56 has joined #ruby
tag has joined #ruby
tag has quit [Ping timeout: 265 seconds]
MrCrackPot has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
rf has quit []
pwnd_nsfw has joined #ruby
jenrzzz has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
jenrzzz has quit [Ping timeout: 272 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
jetpack_joe has joined #ruby
WA9ACE has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
jetpack_joe has quit [Max SendQ exceeded]
MrCrackPot has joined #ruby
WA9ACE has quit [Ping timeout: 246 seconds]
jetpack_joe has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pandakekok9 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 265 seconds]
jetpack_joe has quit [Ping timeout: 245 seconds]
rubydoc has quit [Ping timeout: 268 seconds]
schne1der has joined #ruby
fphilipe_ has joined #ruby
jenrzzz has joined #ruby
brool has quit [Ping timeout: 260 seconds]
rubydoc has joined #ruby
fphilipe_ has quit [Ping timeout: 268 seconds]
pwnd_nsfw has joined #ruby
siasmj has joined #ruby
Pillus has joined #ruby
matti has joined #ruby
darkf has joined #ruby
englishm has joined #ruby
kevinsjoberg has joined #ruby
teej has joined #ruby
podman has joined #ruby
hahuang65 has joined #ruby
d0liver has joined #ruby
integral has joined #ruby
Iambchop has joined #ruby
jetpack_joe has joined #ruby
WA9ACE has joined #ruby
darthThorik has joined #ruby
ryzokuken has joined #ruby
ctp has joined #ruby
rann has joined #ruby
lipoqil has joined #ruby
Fenhl has joined #ruby
gajus has joined #ruby
peteretep has joined #ruby
wbnns has joined #ruby
MentalPower has joined #ruby
strmpnk has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
zipkid has joined #ruby
timeless has joined #ruby
Sina has joined #ruby
afisher has joined #ruby
mattwc has joined #ruby
Lewix has joined #ruby
jerme_ has joined #ruby
gorsuch has joined #ruby
Liothen has joined #ruby
infinity2022 has joined #ruby
jhill has joined #ruby
r3my has joined #ruby
nuck has joined #ruby
Nanuq has quit [Ping timeout: 260 seconds]
turbo_choo has quit [Ping timeout: 272 seconds]
gitter1234 has joined #ruby
raggi- has joined #ruby
iamdevnul has joined #ruby
pilcrow has joined #ruby
twodayslate has joined #ruby
jnix has joined #ruby
sauvin has joined #ruby
sauvin has quit [Max SendQ exceeded]
gmcintire has joined #ruby
sauvin has joined #ruby
fowlduck has joined #ruby
Nanuq has joined #ruby
suukim has joined #ruby
BuildTheRobots has joined #ruby
pwnd_nsfw has quit [Ping timeout: 265 seconds]
tag has joined #ruby
coffeejunk has joined #ruby
ec has joined #ruby
fphilipe_ has joined #ruby
manveru has joined #ruby
jnoon has joined #ruby
meinside has joined #ruby
graphicsv has joined #ruby
andikr has joined #ruby
hsiktas has joined #ruby
JayDoubleu has joined #ruby
n1v has joined #ruby
Mrbuck has joined #ruby
houhoulis has quit [Remote host closed the connection]
maxmanders has joined #ruby
maxmanders has quit [Excess Flood]
Mutsuhito has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
fphilipe_ has quit [Ping timeout: 268 seconds]
TomyWork has joined #ruby
sergioro has quit [Quit: leaving]
sergioro has joined #ruby
william1_ has joined #ruby
fphilipe_ has joined #ruby
KnownSyntax has joined #ruby
william1_ has quit [Ping timeout: 268 seconds]
infinityfye has joined #ruby
schne1der has joined #ruby
d10n-work has joined #ruby
Net has joined #ruby
sergioro has quit [Quit: leaving]
Argorok has joined #ruby
pitastrudl has joined #ruby
sergioro has joined #ruby
MrCrackPotBob has joined #ruby
MrCrackPot has quit [Ping timeout: 268 seconds]
sergioro has quit [Quit: leaving]
sergioro has joined #ruby
fphilipe_ has quit [Write error: Connection reset by peer]
fphilipe_ has joined #ruby
akemrir has joined #ruby
conta has joined #ruby
ur5us has joined #ruby
conta has quit [Ping timeout: 240 seconds]
maxmanders has joined #ruby
manj-gnome has joined #ruby
<manj-gnome> hi
manj-gnome has quit [Client Quit]
reber has joined #ruby
mossplix has joined #ruby
william1 has joined #ruby
mossplix has quit [Remote host closed the connection]
conta has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
conta has quit [Client Quit]
mossplix has joined #ruby
turbo_choo has joined #ruby
rubydoc has quit [Ping timeout: 272 seconds]
mossplix has quit [Remote host closed the connection]
davor_ has joined #ruby
davor has quit [Ping timeout: 240 seconds]
davor_ is now known as davor
dionysus69 has joined #ruby
rubydoc has joined #ruby
william1_ has joined #ruby
SqREL has joined #ruby
william1_ has quit [Ping timeout: 265 seconds]
william1_ has joined #ruby
xco has joined #ruby
turbo_choo has quit [Ping timeout: 272 seconds]
turbo_choo has joined #ruby
phaul has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
epistrephein has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
conta has joined #ruby
<epistrephein> hi all, I'm trying to find a way to make a gem release more secure for my users but the internet doesn't seem to offer many solutions. My issues is this: if I publish a gem on rubygems, let's say v1.2.1, how can an indipendent user verify that the file mygem-1.2.1.gem comes exactly from the tag v1.2.1 of its repository on GitHub? Clearly if he clones the repo, switches to the tag and builds the gem the sha256 will be different,
<epistrephein> so no verification is possible in this way. I use to put the sha256 in the GitHub release as well, but still if my account is compromised an attacker just have to copy the sha256 of the gem on rubygems and paste it there to make it seems legit... any suggestions?
emilych has joined #ruby
<emilych> Hi, why is this regex not matching? start_month = "2019-02"; start_month.match(/\d{4}-d{2}/):
<emilych> 2.6.3 (main):0 > start_month.match(/\d{4}/)=> #<MatchData "2019">
phaul has joined #ruby
markopasha has joined #ruby
conta has quit [Quit: conta]
<epistrephein> emilych: you're missing a \ before the second d
<epistrephein> start_month.match(/\d{4}-\d{2}/)
<emilych> ahhh, of course!
<emilych> thanks a lot epistrephein!!
<epistrephein> :)
mossplix has joined #ruby
gylpm has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
tau has quit [Ping timeout: 260 seconds]
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
mossplix has quit [Remote host closed the connection]
ArchRogem has joined #ruby
turbo_choo has quit [Ping timeout: 272 seconds]
gylpm has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
fphilipe_ has quit [Ping timeout: 260 seconds]
mossplix has joined #ruby
reber_ has joined #ruby
reber has quit [Ping timeout: 272 seconds]
mossplix has quit [Ping timeout: 265 seconds]
epistrephein has quit [Ping timeout: 260 seconds]
infinityfye has quit [Ping timeout: 268 seconds]
davispuh has quit [Read error: Connection reset by peer]
mossplix has joined #ruby
turbo_choo has joined #ruby
entel has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
ozzloy has quit [Ping timeout: 265 seconds]
sergioro has quit [Quit: leaving]
postmodern has quit [Remote host closed the connection]
davor has quit [Ping timeout: 272 seconds]
davor has joined #ruby
phaul has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
phaul has quit [Ping timeout: 268 seconds]
<sh7d> rubygems.org you are soo buggy
<sh7d> how i supposed to release that version :D
bsdbandit-01 has joined #ruby
dviola has joined #ruby
<ytti> i think you may want to wait for a while
<ytti> but this seems like horrible practice
<ytti> to release, yank, release same version which is different
<ytti> so if rubygems doesn't allow this tomfoolery, great
<ytti> lke what is purpose of version numbers?
<sh7d> yea, i just forget about some dev dependency so i wanted to fix that
<ytti> if you can have many versions with same version number, there is no purpose
<ytti> then you release 0.1.1
<ytti> or 0.2.0
<sh7d> look, to fix some small thing i dont want to release new version
<ytti> someone may have already pulled it
<ytti> it really breaks the utility of versions
<sh7d> nobody pulled it
<ytti> to have many releases with same version
<ytti> how can you know?
<sh7d> cause nobody knows about this gem yet ?
<sh7d> and its initlia release ?
<sh7d> *initial
<ytti> there are automated tools which pull from rubygems
<ytti> look at any project, and there are downloads
<sh7d> meh, i know how things works, and i know that fixing shit and re-relasing same version is a bad thing
<ytti> i'm skeptical
<sh7d> but to just fix one small dev dependency i see no point in bumping version number
<sh7d> and rubygems behaviour for me its just a bug
<ytti> to me it is obvious where to draw the line
<ytti> the line is, version is promise of specific content, 0 exceptions
<sh7d> everybody have its own line
<ytti> if you draw line anywhere else, then there will be different opinions
<sh7d> yep
<ytti> which breaks utility of versions
<ytti> versions only have utility when the promise is kept
<sh7d> anyway, for me current rubygems.org behavior it's a bug
emilych has quit [Remote host closed the connection]
<ytti> for me your behaviour is
<sh7d> or if its a feature thre should be somewhere information like "no, you cant push yanked gem, fuck you" or something like that :D
<ytti> yes
<ytti> better error reporting is always welcome
<ytti> but can't point fingers, my shit isn't very good in that regards either :(
<sh7d> ytti, i know what happens when you dont give anything about version, and i'm aware of consequences of that
<sh7d> but in that case nothing will happen for my users cause i dont have any
<sh7d> > Unfortunately, there is no way to do that. Please bump up to its version.
<sh7d> lol
phaul has joined #ruby
AJA4350 has joined #ruby
<sh7d> there should be more visible information about that
<sh7d> so ytti that was feature
<ytti> ok, thanks
<ytti> makes very much sense to me, but didn't know it
<sh7d> i'm also wasn't aware of that
suukim has quit [Quit: Konversation terminated!]
william1 has quit [Ping timeout: 258 seconds]
anveo has joined #ruby
stryek has joined #ruby
infinityfye has joined #ruby
pandakekok9 has quit [Quit: good night owo]
ArchRogem has quit [Quit: Connection closed for inactivity]
SqREL has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
william1_ has quit [Quit: WeeChat 2.6]
bsdbandit-01 has joined #ruby
alexherbo2 has joined #ruby
epistrephein has joined #ruby
alex` has joined #ruby
alex` is now known as Guest49984
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
schne1der has quit [Ping timeout: 265 seconds]
reber__ has joined #ruby
alexherbo2 has joined #ruby
lucasb has joined #ruby
reber_ has quit [Ping timeout: 258 seconds]
bsdband90 has joined #ruby
abe_ has joined #ruby
impermanence has joined #ruby
turbo_choo has quit [Ping timeout: 260 seconds]
turbo_choo has joined #ruby
bsdbandit-01 has quit [Ping timeout: 272 seconds]
Swyper has joined #ruby
bsdband90 has quit [Ping timeout: 272 seconds]
bsdbandit-01 has joined #ruby
Wulf has joined #ruby
<Wulf> hi
<Wulf> I've got a string which might include newlines and other non-printable chars. how can i quote the string to get a single human readable line?
troulouliou_dev has joined #ruby
<akemrir> %(string) but it will leave special characters, replace them later
dinfuehr has quit [Ping timeout: 272 seconds]
<gitter1234> Hey hey! Trying to add GitHub-like avatars using https://github.com/victorgama/identicon and ActiveStorage+ImageProcessing (https://bloggie.io/@kinopyo/upgrade-guide-active-storage-in-rails-6).
<gitter1234> How come `<%= image_tag(post.user.avatar) %>` works but not `<%= image_tag(post.user.avatar.variant(resize_to_fit: [100, 100])) %>`-- `undefined method `variant'`. I can easily use say `<%= image_tag(image.variant(resize_to_fill: [100, 100])) %>` elsewhere in my blog.
dinfuehr has joined #ruby
Guest49984 is now known as alex``
<akemrir> beacuse there is no method variant
<gitter1234> akemrir: there should be, i think it's part of ImageProcessing/ActiveStorage. I'm using variant elsewhere in my app too.
<gitter1234> or maybe im confusing stuff here..
<akemrir> post.user.avatar is object? not string?
<akemrir> string don't have method variant hehe ;)
<gitter1234> im not sure tbh
<akemrir> show more from log about undefined method
<gitter1234> ok 1 sec
mossplix has quit [Remote host closed the connection]
skryking has joined #ruby
schne1der has joined #ruby
<akemrir> yes, that's I was thinking
<akemrir> string don't have method variant
<gitter1234> oooh nice!
<gitter1234> must convert to object i guess?
<akemrir> check User model
shirak_ has quit [Ping timeout: 258 seconds]
<gitter1234> yup!
<gitter1234> wait.. no!
dviola has quit [Quit: WeeChat 2.7]
nowhere_man has joined #ruby
<akemrir> I must go now, dig in into manual about active storage
akemrir has quit [Quit: WeeChat 2.7]
infinityfye has quit [Read error: Connection reset by peer]
vondruch has quit [Remote host closed the connection]
ctOS has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
conta1 has joined #ruby
ttoocs has quit [Ping timeout: 240 seconds]
SqREL has joined #ruby
mossplix has joined #ruby
epistrephein has quit [Quit: Textual IRC Client: www.textualapp.com]
dinfuehr has quit [Ping timeout: 272 seconds]
dinfuehr_ has joined #ruby
anveo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mossplix has quit [Remote host closed the connection]
conta1 has quit [Quit: conta1]
troulouliou_dev has quit [Remote host closed the connection]
solars has joined #ruby
grvgr has joined #ruby
andikr has quit [Remote host closed the connection]
DaRock has quit [Ping timeout: 268 seconds]
dinfuehr_ has quit [Ping timeout: 240 seconds]
Esa_ has joined #ruby
SqREL has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
markopasha has quit [Remote host closed the connection]
dinfuehr has joined #ruby
turbo_choo has quit [Ping timeout: 240 seconds]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
turbo_choo has joined #ruby
dinfuehr has quit [Ping timeout: 258 seconds]
dinfuehr has joined #ruby
mossplix has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
dinfuehr has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
dinfuehr has joined #ruby
s2013 has joined #ruby
dinfuehr has quit [Ping timeout: 260 seconds]
Pika has joined #ruby
dinfuehr has joined #ruby
<Pika> Is there a maximum file size that ruby can write? I had a buffer that was like 216924 characters long, and when I tried to write it to a file in UTF-8 format it seems like it didn't actually do anything and the file was created but was left with a size of 0 with no bytes written into it.
<Pika> I guess I've actually managed to write larger files, but for some reason I didn't get an error or anything this time around... Does anyone know what might be the issue? For more detail I'm actually using Ox, to write an XML file. and passing this to like a ruby file handle that I open with the w:UTF-8 thingy.
<Pika> I'm also super super new to ruby, so I know very little about what's happening.
fphilipe_ has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
<havenwood> Pika: If you #to_s the thing you're writing to disk, what's the result? I suspect an empty string.
mossplix has quit [Remote host closed the connection]
dinfuehr has joined #ruby
<Pika> So I'm actually using Ox.dump to dump the output which makes me further suspect this is an Ox problem maybe?
<havenwood> Pika: Is your code shareable?
Xiti` is now known as Xiti
dinfuehr has quit [Ping timeout: 240 seconds]
thecoffemaker has quit [Read error: Connection reset by peer]
thecoffemaker has joined #ruby
dinfuehr has joined #ruby
<Pika> Yeah, I'm trying to gather an excerpt of what I can share right now
<Pika> sorry for the delay
reber_ has joined #ruby
<Pika> https://gist.github.com/TheeRFG/bb866bcf63b66bbf56cc44f527198ec8 This is like.... a broken messed up mess and I am sorry
lmat has joined #ruby
<lmat> Just getting started with ruby. I'm looking at a test, and one line says, "get new_password_reset_path". I assume get is a function and it's being called supplying one parameter: new_password_reset_path? If so, where is "get" defined?
xco has quit [Quit: Textual IRC Client: www.textualapp.com]
reber__ has quit [Ping timeout: 268 seconds]
dinfuehr has quit [Ping timeout: 268 seconds]
antholog has quit [Ping timeout: 265 seconds]
<adam12> lmat: Presumably this is a Rails app, so get could be one of two things. a) the `get` method from the library Rack::Test, or b) a method defined in one of the Rails wrappers that calls Rack::Test internally (maybe).
<adam12> lmat: If you're on Ruby 2.4 or greater, just before `get new_password_reset_path`, you can drop a call to `binding.irb` which will give you a REPL at that exact spot. From there, you could get a handle for that method `method(:get)` and then ask it who it's owner it / where it's defined. `method(:get).owner` and `method(:get).source_location`.
<lmat> adam12: cool, thanks!
mossplix has joined #ruby
dinfuehr has joined #ruby
<adam12> lmat: Some methods have no source location; in those scenarios they are normally part of the Ruby C implementation. So if you do something like method(:puts) (which is Kernel.puts) it has an owner (Kernel) but no source location, since it's written in C. But everything else, you should be able to find out where it comes from.
<lmat> Makes sense.
<lmat> When I docker inspect company_image; I see the command is "irb". Is that really the entrypoint? Can that run an application?
<adam12> lmat: If you haven't found pry yet, that should be on your stop next. And look into the pry video tutorials on the pry website. It gives you niceties for learning, such as listing methods / constants / etc.
<lmat> oh how weird.
<lmat> In the docker-compole file, I see command: bundle exec rails ...
<lmat> adam12: Thank you!
<adam12> lmat: If you can load the rails console (bundle exec rails console), it will load irb for you (unless you have pry-rails which in that case will load pry)
<adam12> lmat: But for how your Docker image is confgured, nobody will know but you.
<lmat> okay :-)
antholog has joined #ruby
<adam12> lmat: When I said to put `binding.irb` above that line, I did intend on you running the tests. You need to execute it and have that line evaluated. Just FYI.
dinfuehr has quit [Ping timeout: 268 seconds]
howdoi has joined #ruby
dinfuehr has joined #ruby
<lmat> adam12: Understandable.
Ai9zO5AP has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 265 seconds]
orbyt_ has joined #ruby
dinfuehr has joined #ruby
wildtrees has joined #ruby
john2496 has joined #ruby
<lmat> What about application startup? I'm running rails. It looks like the first command run is bundle exec rails s; What is the first of *my* code files that is touched after a command like that?
<lmat> (A link is fine if you don't feel like spelling it out ^_^)
<adam12> lmat: The Rails boot process is defined in the Rails docs somewhere.
<lmat> Okay, and I assume the answer is similar when I ask, "What happens when a web request happens?"
cthulchu_ has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
<adam12> lmat: Similar. There is a dedicated #rubyonrails channel as well, tho you might find it a bit quiet.
bvdw has quit [Read error: Connection reset by peer]
<adam12> lmat: The Rails docs are fantastic tho. Definitely dig through them.
bvdw has joined #ruby
* lmat reads
<lmat> So when I run a get or post in a rails test, does it really hit the NIC and do the HTTP and everything, or does rails short-circuit and call the method that the router would pick?
<gitter1234> Trying to add avatars to my blog using Identicon (https://github.com/victorgama/identicon) and ActiveStorage/ImageProcessing: https://gist.github.com/1234dev/94000c5202907e973949ae907bbac0c2
<gitter1234> But getting `undefined method 'variant' for #String`. I hear that ImageProcessing's variant processor won't work for strings, and that these avatars need to be attachments? Anybody know if there's a way to fix this?
TomyWork has quit [Ping timeout: 256 seconds]
phaul has quit [Ping timeout: 268 seconds]
dinfuehr has quit [Ping timeout: 265 seconds]
dinfuehr_ has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
<adam12> gitter1234: What's your end-goal? A resized identicon?
<gitter1234> adam12: in part yes. and to have them written to disk, preferably with activestorage
bsdbandit-01 has joined #ruby
<adam12> gitter1234: What are you calling `variant` on? Is it a URL to an identicon?
<adam12> Sorry, let me look at the gist. gitter1234
<gitter1234> thank you
<adam12> gitter1234: I'm only speaking hypothetically since ActiveStorage didn't exist when I used Rails, but presumably, if you want to store it, you need to make it an attachment. You could do that in a callback for the User model, where it generates an Identicon and passes it to the ActiveStorage system to persist. Then your variants can work how you want.
<adam12> gitter1234: Without persistence, again hypothetically, you could save the identicon in a tempfile, then pass it to ImageProcessing as a source to resize. Not really the best solution since it's a lot of wasted work on the filesystem but could get you unblocked.
dinfuehr_ has quit [Ping timeout: 268 seconds]
bsdband69 has joined #ruby
phaul has joined #ruby
<gitter1234> adam12: sounds like it's worth trying. exactly how would one make it an attachment? i tried adding `has_one_attached :avatar` to user.rb but to no avail
jmcgnh has quit [Ping timeout: 240 seconds]
<gitter1234> callback for the user model hmmm
dinfuehr has joined #ruby
bsdbandit-01 has quit [Ping timeout: 240 seconds]
<adam12> gitter1234: has_one_attached :avatar looks like the right syntax. If it didn't error out, you still need to persist that avatar through the interface.
jmcgnh has joined #ruby
bsdband1 has joined #ruby
bsdband69 has quit [Ping timeout: 260 seconds]
phaul has quit [Ping timeout: 268 seconds]
<adam12> gitter1234: In the before_save callback, something like user.avatar.attach(Identicon.blob_for(email))
fig-le-deunch has joined #ruby
<adam12> gitter1234: If you get that far, and it's not saving, it's likely because Identicon/chunky_png doesn't seem to return a File handle anywhere. The blob_for is probably a String. There's ways around that if you get that far.
<gitter1234> can't wait to try :D sorry the late reply, keep having these power failures
<gitter1234> has one attached didn't error out no
bsdbandit-01 has joined #ruby
bsdband1 has quit [Ping timeout: 272 seconds]
<lmat> What files does ruby load when it starts? I'm running a test and it seems that I can instantiate any class in any of my files. Does ruby read all the ruby files it can find on test startup?
<adam12> lmat: By default, it doesn't load anything of _yours_.
lineus_ has joined #ruby
<adam12> lmat: And to confirm we're talking Ruby and not Rails. When I thinky ruby I think the `ruby` exe.
<lmat> adam12: Thank you for that clarification. Unfortunately, I don't think I can make any corresponding clarification.
lineus has quit [Ping timeout: 240 seconds]
<lmat> adam12: Ah, no, it's rails test.
<lmat> adam12: The command is rails test test; I think rails is the executable, test is the action ("run the tests") and the second test is the directory where the tests are?
sgen has joined #ruby
<adam12> lmat: Rails autoloads everything in `app`, but nothing by default. It uses constant lookup to determine what to load.
<adam12> lmat: That might be. I'm not familiar with the rails test command since it's reasonably new.
<lmat> adam12: s/nothing/nothing else/ ?
<adam12> lmat: If you can't get a test file to load, they normally have to follow a pattern to be auto-required.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lmat> adam12: Oh no, it's loading. I'm just confused why everything is loading!
<adam12> lmat: No. Rails looks through app and sees app/models/user.rb and then makes a record that once `User` is used somewhere, it does the require of app/models/user.rb. But that file isn't loaded on boot in development or testing. See Autoloading in Ruby or Rails Autoloading for more on that.
s2013 has quit [Remote host closed the connection]
<lmat> adam12: Thank you for that. Can a class, say, UserInfo be defined in app/models/user.rb? Or is it a bit like java where the filenames are prescriptive?
phaul has joined #ruby
<adam12> lmat: The Rails autoloader is prescriptive. Plain Ruby doesn't care.
s2013 has joined #ruby
<adam12> lmat: The new Rails autoloader is Zeitwerk with a few customizations, if you want to look at that specifically. https://github.com/fxn/zeitwerk
<lmat> adam12: aha
* lmat bows to adam12
jaequery has joined #ruby
smccarthy has joined #ruby
<smccarthy> If I run , bundle install --with=test --path vendor/bundle , should I see gems in ./vendor/bundle that were in the "development" group and not "test" group ?
<gitter1234> i said it didnt error out, i was wrong. my brain is running low on fuel :D
william1 has joined #ruby
<smccarthy> And is there a way to NOT install gems in the "default" group ?
<lmat> adam12: I'll be interested to see how mocking works since classes can apparently implicitly access other classes ^_^
Wulf has left #ruby [#ruby]
bsdbandit-01 has quit [Ping timeout: 272 seconds]
bsdband82 has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
<adam12> smccarthy: --with isn't exclusive, only negates a previous --without that might have been stored in .bundle/config
<smccarthy> adam12: is there a way to only install gems in a specific group ?
<adam12> smccarthy: I haven't seen one but you might be able to pair --without and --with to get what you want. Beware that bundler may remember those settings and do weird things later.
<lmat> I see get new_password_reset_path in my rails app. What is new_password_reset_path? Where is it defined? What is its value?
<smccarthy> thanks, yea I read it gets saved to ~/.bundle/config
<adam12> lmat: Lots of mocking options. You can re-open classes, stub constants, inject dependices. A beautiful world. There's a free course on Thoughtbot's Upcase that goes over Rails testing if I remember right.
<adam12> lmat: mocking/stubbing/whatever. Not going to get into the pedantics that mocking isn't stubbing, or whatever Fowler was arguing.
<lmat> adam12: heh, no problem :-)
<adam12> gitter1234: I'm not able to help without an error/exception, so keep fiddling. Ideally you should be able to reproduce something through the console. User.create(email: "youremail") or something.
<adam12> gitter1234: And lest we run afoul of channel mods opinion of Rails discussed in here O_O
<gitter1234> thank you :)
<adam12> gitter1234: Who knows how many coffee's havenwood's had to date.
<adam12> s/to date/this morning.
* havenwood searches for more coffee
<gitter1234> morning? you guys must be from the west coast
<adam12> gitter1234: Morning for havenwood. I'm on the cool side of the continent.
fphilipe_ has quit [Ping timeout: 272 seconds]
<gitter1234> nice :)
rippa has joined #ruby
<Pika> I'm now beginning to wonder if like... my Ox object is too big or something somehow... I'm not sure....
<Pika> I feel like... I don't think I can actually just use doc.to_s you have to use Ox.dump(doc) which makes me thinking something is wrong with the dump method or something is wrong with my object?
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
lol768_ is now known as lol768
bsdband82 has quit [Quit: -a- Connection Timed Out]
davor_ has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
davor has quit [Ping timeout: 272 seconds]
davor_ is now known as davor
bsdbandit-01 has joined #ruby
Ai9zO5AP has joined #ruby
dinfuehr has quit [Ping timeout: 258 seconds]
dinfuehr has joined #ruby
davispuh has joined #ruby
ur5us has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
john2496 has quit [Remote host closed the connection]
john2496 has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
bsdbandit-01 has quit [Ping timeout: 265 seconds]
s2013 has joined #ruby
john2496 has quit [Client Quit]
ur5us has quit [Ping timeout: 260 seconds]
jmcgnh has quit [Ping timeout: 268 seconds]
jmcgnh has joined #ruby
tvw has joined #ruby
gix has joined #ruby
mossplix_ has joined #ruby
mossplix has quit [Ping timeout: 260 seconds]
tpanarch1st has joined #ruby
foxxx0 is now known as Spritzgebaeck_
Spritzgebaeck_ is now known as foxxx0
reber_ has quit [Remote host closed the connection]
SqREL has joined #ruby
shirak_ has joined #ruby
dinfuehr has quit [Ping timeout: 265 seconds]
chalkmonster has joined #ruby
dinfuehr has joined #ruby
fig-le-deunch has quit [Quit: Konversation terminated!]
sgen has quit [Ping timeout: 260 seconds]
SqREL has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
ropeney has quit [Quit: ZNC 1.7.4 - https://znc.in]
ropeney has joined #ruby
poontangmessiah has joined #ruby
houhoulis has joined #ruby
kn100 has quit [Remote host closed the connection]
jmcgnh has quit [Ping timeout: 272 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
chalkmonster has joined #ruby
tvw has quit []
chalkmonster has quit [Quit: WeeChat 2.7]
grilix has joined #ruby
xxdxxd has joined #ruby
ctOS has quit [Quit: Connection closed for inactivity]
markopasha has joined #ruby
SqREL has joined #ruby
phaul has joined #ruby
sameerynho has joined #ruby
markopasha has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
gitter1234 has quit [Quit: Connection closed for inactivity]
gray_-_wolf has quit [Quit: WeeChat 2.7]
xxdxxd has quit [Quit: xxdxxd]
xxdxxd has joined #ruby
xxdxxd has quit [Client Quit]
xxdxxd has joined #ruby
william1 has quit [Ping timeout: 265 seconds]
jmcgnh has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 260 seconds]
sphex has quit [Ping timeout: 268 seconds]
sphex has joined #ruby
chalkmonster has joined #ruby
jcalla has quit [Quit: Leaving]
xxdxxd has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
dfdfdfsfddfd has joined #ruby
dfdfdfsfddfd has quit [Remote host closed the connection]
TCG has joined #ruby
<TCG> anyone here mind giving me a hand with an exploit. I'm coding a MSF module which requires PHP upload. Got successful login but no upload
sfsdsdfsdfdsfd has joined #ruby
<phaul> sure. what's an MSF module and what is PHP?
<sfsdsdfsdfdsfd> I like turtles
<TCG> phaul LOL
troulouliou_dev has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
TCG has quit [Remote host closed the connection]
mossplix_ has quit [Remote host closed the connection]
Elundia has joined #ruby
sfsdsdfsdfdsfd has quit [Remote host closed the connection]
brool has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
mossplix has joined #ruby
mossplix has quit [Remote host closed the connection]
chalkmonster has joined #ruby
Fridtjof has quit [Ping timeout: 260 seconds]
sameerynho has quit [Quit: WeeChat 2.6]
Pika has quit [Remote host closed the connection]
abe_ has quit [Remote host closed the connection]
sameerynho has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
fphilipe_ has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
fphilipe_ has quit [Ping timeout: 260 seconds]
sameerynho has quit [Quit: WeeChat 2.6]
dinfuehr has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
shirak_ has quit [Ping timeout: 268 seconds]
sameerynho has joined #ruby
brool has quit [Ping timeout: 265 seconds]
chalkmonster has joined #ruby
sh7d has quit [Read error: Connection reset by peer]
ctOS has joined #ruby
sh7d has joined #ruby
Fridtjof has joined #ruby
sameerynho has quit [Ping timeout: 268 seconds]
sgen has joined #ruby
sameerynho has joined #ruby
hiroaki has quit [Ping timeout: 268 seconds]
<leftylink> PHP is (spoilers) what the author of that one article recommends that you should use...
SqREL has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
SqREL has joined #ruby
SqREL has quit [Client Quit]
bvdw has quit [Write error: Connection reset by peer]
bvdw has joined #ruby