baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: 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!
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
WebDawg has quit [Ping timeout: 264 seconds]
dinfuehr has quit [Ping timeout: 264 seconds]
jcarl43 has quit [Quit: WeeChat 2.2]
WebDawg has joined #ruby
gigetoo has joined #ruby
deadnull has joined #ruby
dinfuehr has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
Freshnuts has quit [Quit: Leaving]
LiftLeft2 has joined #ruby
LiftLeft has quit [Ping timeout: 264 seconds]
LiftLeft2 has quit [Ping timeout: 264 seconds]
code_zombie has joined #ruby
DTZUZO has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LiftLeft2 has joined #ruby
mroutis has joined #ruby
sagax has joined #ruby
WebDawg has quit [Ping timeout: 252 seconds]
AJA4350 has quit [Quit: AJA4350]
lxsameer has joined #ruby
WebDawg has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 252 seconds]
spectra has quit [*.net *.split]
howdoi has quit [*.net *.split]
mnemon has quit [*.net *.split]
ricer2 has quit [*.net *.split]
linuxdaemon has quit [*.net *.split]
hays has quit [*.net *.split]
dukedave has quit [*.net *.split]
solidsnack has quit [*.net *.split]
twe4ked has quit [*.net *.split]
miah has quit [*.net *.split]
sariyar has quit [*.net *.split]
\13k has quit [*.net *.split]
ule has quit [*.net *.split]
russt has quit [*.net *.split]
hays has joined #ruby
miah has joined #ruby
twe4ked has joined #ruby
\13k has joined #ruby
russt has joined #ruby
m4rCsi has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
linuxdaemon has joined #ruby
leitz_ has joined #ruby
leitz_ is now known as leitz
nowhere_man has quit [Remote host closed the connection]
apeiros has joined #ruby
spectra has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
leitz has quit [Quit: Leaving]
nowhere_man has joined #ruby
LiftLeft2 has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
dbz has joined #ruby
deadnull has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has quit [Ping timeout: 252 seconds]
dbz has quit [Ping timeout: 240 seconds]
gbristol has quit [*.net *.split]
scott4000 has quit [*.net *.split]
ujjain has quit [*.net *.split]
jhass has quit [*.net *.split]
lunarkitty7 has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
raz has quit [*.net *.split]
justache has quit [*.net *.split]
Chew has quit [*.net *.split]
Zinder has quit [*.net *.split]
dalpo has quit [*.net *.split]
jmhmccr has quit [*.net *.split]
npgm has quit [*.net *.split]
fowlduck has quit [*.net *.split]
lolmaus has quit [*.net *.split]
cschneid has quit [*.net *.split]
ropeney has quit [*.net *.split]
kspencer has quit [*.net *.split]
eam has quit [*.net *.split]
pwillard has quit [*.net *.split]
ndrst has quit [*.net *.split]
dumptruckman has quit [*.net *.split]
SegFaultAX has joined #ruby
dumptruckman has joined #ruby
ujjain has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
ropeney has joined #ruby
LiftLeft2 has joined #ruby
knight33 has joined #ruby
jhass has joined #ruby
apeiros has joined #ruby
sagax has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 244 seconds]
apeiros has quit [Ping timeout: 260 seconds]
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
t0x_ has joined #ruby
t0x has quit [Ping timeout: 264 seconds]
t0x_ is now known as t0x
ramfjord has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
arescorpio has joined #ruby
apeiros has quit [Ping timeout: 250 seconds]
apeiros has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
cschneid_ has joined #ruby
raul782 has quit []
apeiros has quit [Ping timeout: 245 seconds]
valkyr2e has quit [*.net *.split]
jtperreault has quit [*.net *.split]
yo61 has quit [*.net *.split]
Nightmare_ has quit [*.net *.split]
canton7 has quit [*.net *.split]
barq has quit [*.net *.split]
codepete has quit [*.net *.split]
raggi has quit [*.net *.split]
jim80net has quit [*.net *.split]
darix has quit [*.net *.split]
sriehl has quit [*.net *.split]
tjbp_ has quit [*.net *.split]
seanh has quit [*.net *.split]
tycoon177 has quit [*.net *.split]
infernix has quit [*.net *.split]
tomaw has quit [*.net *.split]
Mutsuhito has quit [*.net *.split]
jwheare has quit [*.net *.split]
pmarreck has quit [*.net *.split]
balr0g has quit [*.net *.split]
jokke__ has quit [*.net *.split]
Flashynuff has quit [*.net *.split]
arahael has quit [*.net *.split]
neofreak has quit [*.net *.split]
jetpack_joe has quit [*.net *.split]
FastJack has quit [*.net *.split]
vedu has quit [*.net *.split]
marahin has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
darthThorik has quit [*.net *.split]
rideh has quit [*.net *.split]
foamz has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
mjacob has quit [*.net *.split]
z64 has quit [*.net *.split]
chridal has quit [*.net *.split]
tomaw has joined #ruby
Nightmare has joined #ruby
dviola has quit [Quit: WeeChat 2.2]
tjbp has joined #ruby
sriehl has joined #ruby
valkyr2e has joined #ruby
jp has joined #ruby
Fire-Dragon-DoL has joined #ruby
canton7 has joined #ruby
mroutis has quit [Ping timeout: 252 seconds]
darix has joined #ruby
apeiros has joined #ruby
infernix has joined #ruby
cschneid_ has quit [Remote host closed the connection]
sspreitz has quit [Ping timeout: 264 seconds]
apeiros has quit [Ping timeout: 250 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sspreitz has joined #ruby
braincrash has quit [Quit: bye bye]
michael_mbp has joined #ruby
graphene has quit [Remote host closed the connection]
bambanx has joined #ruby
graphene has joined #ruby
balr0g has joined #ruby
braincras has joined #ruby
_whitelogger has joined #ruby
knight33 has joined #ruby
Puffball has quit [Read error: Connection reset by peer]
<knight33> Anyone know of a way I can make API requests and have that server as a "push based" monitoring solution?
gnufied has quit [Ping timeout: 252 seconds]
darkhanb has joined #ruby
arescorpio has quit [Quit: Leaving.]
apeiros has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: leaving]
WA9ACE has quit []
WA9ACE has joined #ruby
apeiros has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
samort7 has quit [Read error: Connection reset by peer]
code_zombie_ has joined #ruby
code_zombie has quit [Ping timeout: 252 seconds]
tdy has joined #ruby
dbz has joined #ruby
apeiros has joined #ruby
dorian has left #ruby [#ruby]
apeiros has quit [Ping timeout: 245 seconds]
doubledup has joined #ruby
bambanx has quit [Ping timeout: 240 seconds]
bambanx has joined #ruby
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Cyrus has quit [Quit: brb again]
Rootsudo has joined #ruby
sauvin has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scrptktty has quit [Quit: Connection closed for inactivity]
darthThorik has joined #ruby
orbyt_ has joined #ruby
aufi has joined #ruby
za1b1tsu_ has joined #ruby
Rootsudo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Inline has quit [Quit: Leaving]
tdy has quit [Ping timeout: 246 seconds]
sagax has joined #ruby
dbz has quit [Remote host closed the connection]
raggi has joined #ruby
reber has joined #ruby
ramfjord has joined #ruby
za1b1tsu_ has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
FastJack has joined #ruby
Rootsudo has joined #ruby
troys has quit [Quit: Bye]
reber has quit [Remote host closed the connection]
Dbugger has joined #ruby
tristanp has joined #ruby
za1b1tsu_ has joined #ruby
t0x is now known as t0xik
snickers has joined #ruby
Freshnuts has joined #ruby
postmodern has quit [Quit: Leaving]
tristanp has quit [Ping timeout: 240 seconds]
code_zombie_ has quit [Quit: Leaving]
doubledup has quit [Quit: Leaving]
DTZUZO has quit [Ping timeout: 252 seconds]
Tempesta has quit [Read error: Connection reset by peer]
Hobbyboy has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Hobbyboy|BNC has joined #ruby
<kke> very annoying that when you google for some stdlib class it always links you to some antique version, usually 1.9.3.
Hobbyboy|BNC is now known as Hobbyboy
<kke> heh, and the same happens if you search for something like "tempfile" in ruby-doc.com. the first result is 1.9.3
<kke> oh, it's using google for searches too.
bak1an has joined #ruby
<Radar> kke: dash.app or devdocs.io will help you there
<kke> yeah, just requires retraining the muscle memory
<kke> devdocs doesn't have 2.5 at all yet
<Radar> kke: Yeah it does. Refresh the page.
<kke> you added it? :D
<Radar> I'm good but not that good. You probably had a cached version of the page.
<Radar> I had the same problem for a different thing last week
<kke> i haven't been there for months or maybe years
za1b1tsu_ has quit [Ping timeout: 250 seconds]
<kke> stupid cache.
<Radar> how good are browsers
<kke> well i suppose they should change the etag for the category list when it is updated
eckhardt has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yohji has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
eckhardt has joined #ruby
Sina has joined #ruby
eckhardt has quit [Client Quit]
Rootsudo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rootsudo has joined #ruby
Rootsudo has quit [Client Quit]
Rootsudo has joined #ruby
Rootsudo has quit [Client Quit]
lxsameer has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
za1b1tsu_ has joined #ruby
sylario has joined #ruby
raulp has quit [Ping timeout: 252 seconds]
c0mrad3 has joined #ruby
sysvalve has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
hahuang65_ has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
dbz has joined #ruby
vondruch has joined #ruby
teclator has joined #ruby
dellavg_ has joined #ruby
alex`` has joined #ruby
bambanx has quit [Quit: Leaving]
dbz has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
baweaver is now known as baweaver_away
mikecmpbll has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
tdy has joined #ruby
desperek has joined #ruby
graphene has quit [Read error: Connection reset by peer]
yokel has joined #ruby
graphene has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
LiftLeft2 has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
LiftLeft2 has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
foxxx0 has quit [Quit: foxxx0]
arahael has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
foxxx0 has joined #ruby
Nicmavr has joined #ruby
LiftLeft2 has quit [Ping timeout: 240 seconds]
deadnull has joined #ruby
za1b1tsu_ has quit [Read error: Connection reset by peer]
za1b1tsu_ has joined #ruby
Beams has joined #ruby
alem0lars has joined #ruby
LiftLeft2 has joined #ruby
Alina-malina has quit [Ping timeout: 244 seconds]
DTZUZO has joined #ruby
deadnull has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
deadnull has joined #ruby
nopolitica has quit [Quit: WeeChat 2.2]
despai has joined #ruby
tdy has joined #ruby
despai has quit [Ping timeout: 240 seconds]
za1b1tsu_ has quit [Ping timeout: 250 seconds]
za1b1tsu_ has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
bijan_ has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
Beams has quit [Ping timeout: 246 seconds]
gnufied has joined #ruby
Beams has joined #ruby
gregf_ has joined #ruby
deadnull has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Beams has quit [Quit: .]
despai has joined #ruby
tristanp has joined #ruby
Beams has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
Beams has quit [Client Quit]
deadnull has joined #ruby
deadnull has quit [Client Quit]
c0mrad3 has quit [Quit: Connection closed for inactivity]
roshanavand has joined #ruby
lxsameer has quit [Quit: WeeChat 2.1]
alem0lars has quit [Ping timeout: 252 seconds]
graphene has quit [Remote host closed the connection]
clorisu has joined #ruby
<clorisu> Hi, could anybody let me know why line 35 is running when the expression at line 16 should prevent it? https://pastebin.com/RtpPkCBC
<ruby[bot]> clorisu: 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
graphene has joined #ruby
<clorisu> sorry
<elomatreb> clorisu: Nothing in line 16 can prevent the expression in the lower lines from running, are you getting output that you don't expect?
<clorisu> elomatreb: im getting that the orange tree is now 21 years old. shouldnt the conditional of if @yearspassed <20 being true preven this and run the else?
<elomatreb> You're not outputting the age of the tree anywhere, only the height
za1b1tsu_ has quit [Ping timeout: 245 seconds]
<clorisu> elomatreb: im outputting it into `
<clorisu> line 18 no?
<elomatreb> In line 18 you're adding one to it, and in line 19 you're outputting @height
Beams has joined #ruby
alex`` has quit [Quit: WeeChat 2.2]
jinie has joined #ruby
bijan_ has quit []
bijan_ has joined #ruby
AJA4350 has joined #ruby
snickers has quit [Ping timeout: 240 seconds]
<clorisu> yes elomatreb , but shouldnt that if not run again once yearspassed is over 20?
pwillard has joined #ruby
sonOfRa has quit [Remote host closed the connection]
sonOfRa has joined #ruby
ramfjord has joined #ruby
vondruch has quit [Quit: vondruch]
bmurt has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
_Fremen_ has joined #ruby
<_Fremen_> hello everyone
<_Fremen_> I do not have any experience with ruby but I am trying to execute this hacking test at the bottom of the page: https://github.com/nextcloud/nextcloud-snap
<_Fremen_> after bundle install I get "gemfile not found error". How can I solve this?
knight33 has joined #ruby
savolla has joined #ruby
bak1an has joined #ruby
mroutis has joined #ruby
clorisu has quit [Remote host closed the connection]
<apeiros> _Fremen_: you forgot to "cd tests", didn't you?
<_Fremen_> apeiros: it gave an error because it was not created?
<apeiros> "it"?
<_Fremen_> tests directory
<apeiros> it's part of the repository
<apeiros> if it isn't there, you messed up long before already.
<apeiros> you… did git clone the repository, yes?
<_Fremen_> I only did those package installations and 4 lines of command
<_Fremen_> the pwd was home directory
<apeiros> it is kind of a given that if you want to modify the repository, that you have to clone it
<_Fremen_> unfortunately
<apeiros> but if you feel that that's not obvious, you can supply them with a patch to their README.md which adds that step.
<_Fremen_> as I said, I did not used Ruby before I had come here for help
<apeiros> that's not really a ruby thing.
sonOfRa has quit [Remote host closed the connection]
<apeiros> it's like an "every language or other git using project out there" thing
<_Fremen_> which line of code was missing?
<apeiros> and cd into the repository after cloning
<apeiros> you can also use that green button "clone or download" on the github page.
<_Fremen_> ok thanks very much :)
<_Fremen_> I did not realized we need the repository of nextcloud
<apeiros> how did you intend on changing any of the source code without having the source code in the first place then?
<_Fremen_> because I did not realized I need the source code :)
<apeiros> …ok. well, anyway, problem solved I hope.
<_Fremen_> I assumed this testing was part of the ruby language library or etc.
sonOfRa has joined #ruby
dellavg_ has quit [Ping timeout: 240 seconds]
<_Fremen_> lastly, does this command change the contents of pwd? sudo gem install bundle
Xeago has quit [Quit: ZNC 1.7.0 - https://znc.in]
Xeago has joined #ruby
<apeiros> _Fremen_: do `git status` after running it and see.
amelliaa has joined #ruby
<_Fremen_> apeiros: no repository
<_Fremen_> so it is ok I guess
<apeiros> …
<apeiros> I have no idea where you ran that command
<apeiros> but you're supposed to run it in the tests directory (parent would be ok too)
tristanp has joined #ruby
fmcgeough has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
amelliaa has quit [Quit: -]
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
KeyJoo has quit [Ping timeout: 252 seconds]
despai has quit [Quit: ...]
_Fremen_ has quit [Quit: Leaving]
arekushi has joined #ruby
arekushi is now known as alexis
alexis is now known as Guest18202
aufi has quit [Ping timeout: 240 seconds]
bak1an has quit [Read error: Connection reset by peer]
bak1an has joined #ruby
despai has joined #ruby
bijan_ has joined #ruby
tycoon177 has joined #ruby
bijan_ has quit [Ping timeout: 260 seconds]
despai has quit [Quit: ...]
ule has joined #ruby
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
mfunkmann has joined #ruby
<mfunkmann> Hey folks. I am working with Ruby 2.5 - Is there a short und beautiful alternative to using hash.merge? Like ... an operator or something to merge to hashes? Something like hash1 + hash2 ?
thejs has joined #ruby
bijan_ has joined #ruby
anubhav996 has joined #ruby
<havenwood> mfunkmann: Nope
mostlybadfly has quit [Quit: Connection closed for inactivity]
bijan_ has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
<mfunkmann> havenwood: Alright, thank you
bijan_ has joined #ruby
Inline has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
mfunkmann has quit [Quit: Textual IRC Client: www.textualapp.com]
lomex has joined #ruby
Guest18202 is now known as arekushi
roshanavand has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
arekushi is now known as Guest18202
Rapture has joined #ruby
ramfjord has joined #ruby
sriehl has quit [Quit: ZNC 1.7.1 - https://znc.in]
ramfjord has quit [Ping timeout: 246 seconds]
ineb has quit [Ping timeout: 244 seconds]
z64 has joined #ruby
ineb has joined #ruby
sriehl has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu_ has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
knight33 has joined #ruby
discopatrick has joined #ruby
bijan_ has quit [Ping timeout: 250 seconds]
KeyJoo has joined #ruby
bijan_ has joined #ruby
vondruch has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
orbyt_ has joined #ruby
bijan_ has joined #ruby
IanMalcolm has joined #ruby
raz has joined #ruby
<raz> question: the return value from str.force_encoding('UTF-8') and str.force_encoding('UTF-8').dup should behave completely identical, right?
<raz> i think i've run into a ruby bug :(
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bhaak> depends on the content of str
knight33 has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
<raz> hmmm. why would the content differ after being dup'ed?
<raz> (or the encoding...)
<raz> i'm indeed running into encoding errors *unless* i add the trailing .dup
teclator has quit [Disconnected by services]
bijan_ has joined #ruby
mostlybadfly has joined #ruby
<bhaak> I might have though of String.new
mikhael_k33hl has joined #ruby
KeyJoo has quit [Ping timeout: 250 seconds]
alex`` has joined #ruby
<mikhael_k33hl> al2o3-cr: hey man, how you doin?
[Butch] has joined #ruby
IanMalcolm has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tjbp has quit [Remote host closed the connection]
tjbp has joined #ruby
<apeiros> raz: apart from one additionally creating a copy of the string - yes
<apeiros> note that in both cases, str is modified
<ineb> str.dup.force_encoding('UTF-8') would leave str untouched
<apeiros> other exceptional cases: if str was extended. dup doesn't copy that.
<apeiros> buuuut seriously, if you want help, provide useful info :-p
<apeiros> reproducible example would be the best.
bijan_ has quit [Ping timeout: 250 seconds]
GodFather has quit [Read error: Connection reset by peer]
despai has joined #ruby
aufi has joined #ruby
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 240 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bijan_ has joined #ruby
Rootsudo has joined #ruby
vondruch has quit [Client Quit]
GodFather has joined #ruby
eddof13 has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
<raz> it's unfortunately hard to reproduce out of context. rails app with ActiveModelSerializer here
nowhere_man has joined #ruby
<raz> i'm just sticking with my workaround for now
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ArahaelPi has quit [Read error: No route to host]
<Eiam> dump the content prior to dupe, call dupe on it, look at it after
za1b1tsu_ has quit [Ping timeout: 240 seconds]
<Eiam> if it doesn't reproduce without rails layered on top, its probably Rails and not Ruby
<Eiam> as I recall dupe is shallow by default
cliluw has quit [Ping timeout: 245 seconds]
<raz> yep i've done that. dumped it all sorts of ways. the string object looks identical before/after dup. i'm guessing rails/AMS somehow attaches/guesses the encoding in a way that gets stripped by the dup
za1b1tsu_ has joined #ruby
anubhav996 has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
bijan_ has joined #ruby
<dionysus69> is it possible to iterate over an array but execute each in separate thread? I have sleep n in the each loop but I don't want to execute them in sequence on after another, I want to execute them concurrently, they are thread safe operations so is it possible to turn GLI off for that?
<dionysus69> GIL*
bijan_ has quit [Ping timeout: 252 seconds]
conta2 has joined #ruby
tdy has joined #ruby
mikhael_k33hl has quit [Quit: Page closed]
tdy has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ArahaelPi has joined #ruby
bijan_ has joined #ruby
<Eiam> uhmmm
ivanskie has joined #ruby
<Eiam> you could check out jruby
bijan_ has quit [Ping timeout: 252 seconds]
IanMalcolm has joined #ruby
<Eiam> you can't "disable" the GIL and I'm not sure you'd just want to anyway. Even if your threads were actually put on n distinct cores, I question that you'd get a reliable result
<havenwood> you can disable it with fiddle, but...
<Eiam> jruby does not have a GIL and will let you spin up n distinct actual threads in parallel.
<Eiam> havenwood: okay sure its code "anything" is possible
darkhanb has joined #ruby
<Eiam> I could fly for a few seconds too, or some might say, fall with grace
jcarl43 has joined #ruby
bijan_ has joined #ruby
mroutis_ has joined #ruby
szulak has quit [Ping timeout: 276 seconds]
<havenwood> dionysus69: With CRuby you can fork. Is JRuby an option?
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> Forking with IPC is possible but heavy.
paraxial has quit [Ping timeout: 264 seconds]
alex`` has quit [Ping timeout: 245 seconds]
paraxial has joined #ruby
doubledup has joined #ruby
bijan_ has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
doubledup has quit [Max SendQ exceeded]
aufi has quit [Ping timeout: 240 seconds]
doubledup has joined #ruby
doubledup has quit [Max SendQ exceeded]
doubledup has joined #ruby
yohji has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
jmcgnh_ has joined #ruby
jmcgnh has quit [Ping timeout: 244 seconds]
lomex has joined #ruby
lomex has quit [Client Quit]
bijan_ has joined #ruby
alex`` has quit [Quit: WeeChat 2.2]
ptx0 has quit [Read error: Connection reset by peer]
bijan__ has joined #ruby
za1b1tsu_ has quit [Ping timeout: 246 seconds]
bijan_ has quit [Ping timeout: 240 seconds]
sysvalve has quit [Quit: Leaving]
szulak has joined #ruby
bijan__ has quit [Ping timeout: 252 seconds]
troys has joined #ruby
bijan_ has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
orbyt_ has joined #ruby
bijan__ has quit [Ping timeout: 252 seconds]
Beams has quit [Quit: .]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
ptx0 has joined #ruby
<bhaak> raz: if it's within the context of Rails, are you really sure it's a String? it could also be Rails' HtmlSafeBuffer or whatever it's called
dbz has joined #ruby
<bhaak> SafeBuffer
bijan_ has joined #ruby
tdy has joined #ruby
qoreQ has joined #ruby
mroutis_ has quit [Ping timeout: 246 seconds]
dbz has quit [Ping timeout: 252 seconds]
dbz has joined #ruby
dbz has quit [Remote host closed the connection]
bijan_ has quit [Ping timeout: 252 seconds]
tdy has quit [Ping timeout: 245 seconds]
dbz has joined #ruby
<Eiam> with Rails, one never knows whats actually Ruby anymore at all
akaiiro has quit [Ping timeout: 245 seconds]
bijan_ has joined #ruby
graphene has quit [Remote host closed the connection]
conta2 has quit [Quit: conta2]
graphene has joined #ruby
chouhoulis has quit [Remote host closed the connection]
bijan__ has joined #ruby
armyriad has quit [Quit: Leaving]
bijan__ has quit [Read error: Connection reset by peer]
bijan_ has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<miah> sometimes DSL's can obscure the actual programming language they run on
graphene has quit [Remote host closed the connection]
memo1 has joined #ruby
<memo1> hi, if i share my code using git with other machines, but the wrappers is different on every one of them, how i manage to admin the eviroment variables to keep the code clean?
graphene has joined #ruby
dviola has joined #ruby
mostlybadfly has joined #ruby
graphene has quit [Remote host closed the connection]
r29v has joined #ruby
graphene has joined #ruby
<miah> memo1: not really a ruby issue, but i'd look into some sort of configuration management solution like chef, ansible, puppet, etc
conta2 has joined #ruby
ramfjord has joined #ruby
savolla has quit [Ping timeout: 240 seconds]
dbz_ has joined #ruby
dbz has quit [Ping timeout: 240 seconds]
Rapture has joined #ruby
conta2 has quit [Quit: conta2]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
IanMalcolm has quit [Ping timeout: 252 seconds]
<baweaver_away> Alo
baweaver_away is now known as baweaver
<baweaver> I come bearing gifts of puns: https://twitter.com/keystonelemur/status/1034673784257540096
<WA9ACE> We'd love to have your puns over on ruby.social ;)
<WA9ACE> 🙌
nofxx has joined #ruby
<baweaver> I'm new to Mastodon, I forget I have it quite frequently.
tdy has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
mroutis has quit [Remote host closed the connection]
dbz_ has quit [Remote host closed the connection]
dbz has joined #ruby
dbz has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
discopatrick has quit [Quit: Connection closed for inactivity]
<WA9ACE> It's definitely a conscious effort to check it since I don't have a Tweetbot equivalent for Mastodon yet
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
bmurt has joined #ruby
thejs has quit [Ping timeout: 246 seconds]
tdy has joined #ruby
mikecmpbll has joined #ruby
paraxial has quit [Ping timeout: 252 seconds]
ellcs has joined #ruby
spiette has quit [Ping timeout: 272 seconds]
psmolen has quit [Read error: Connection reset by peer]
<ivanskie> hi
<ivanskie> anyone here using aws-sdk?
spiette has joined #ruby
KeyJoo has joined #ruby
paraxial has joined #ruby
dbz has joined #ruby
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
wildermind has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
<apeiros> WA9ACE: same issue here :D
<ule> ivanskie: sure, whats up?
<ivanskie> is it just me or is it slow?
<ule> ivanskie: which region are you connecting to? No problems here
<ivanskie> i wrote a little dirty proof of concept dashboard with sinatra and aws-sdk.. each beanstalk app > each environment > get instance ids > for each instance describeInstance..
<ivanskie> taking 30-40 seconds
<ivanskie> (5 apps, 4 environments each)
<ule> ivanskie: Something is wrong there
<ule> ivanskie: 30/40 seconds sounds too much
<ivanskie> probably my code sucks
<ule> ivanskie: try calling aws via aws-cli and see if it is fast
<ule> same method, describeInstance
bijan_ has joined #ruby
paraxial has quit [Ping timeout: 252 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
<ivanskie> 22 seconds
Nicmavr has joined #ruby
<ivanskie> needs to be refactored.
despai has quit [Quit: ...]
<ule> ivanskie: looks like you're calling "eb.describe_environments" 2 times inside your before block
<ivanskie> lol oops. should just be envs.
<ivanskie> 12 seconds
<ivanskie> there's a lot to refactor.
<ivanskie> also instead of getting an array of instance-ids and then doing describe_instances and passing the array, im doing that request per each instance id. which is dumb
ellcs has quit [Ping timeout: 240 seconds]
tdy has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
graphene has quit [Read error: Connection reset by peer]
graphene has joined #ruby
Rootsudo has quit [Quit: Textual IRC Client: www.textualapp.com]
ellcs has joined #ruby
despai has joined #ruby
lomex has joined #ruby
doubledup has quit [Quit: Leaving]
roshanavand has quit [Ping timeout: 240 seconds]
tdy has quit [Ping timeout: 245 seconds]
ghoti has joined #ruby
thejs has joined #ruby
r29v has quit [Quit: r29v]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
akaiiro has joined #ruby
code_zombie has joined #ruby
paraxial has joined #ruby
reber has joined #ruby
Rootsudo has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dbz_ has joined #ruby
blackmesa has joined #ruby
spiette has quit [Ping timeout: 240 seconds]
memo1 has quit [Ping timeout: 240 seconds]
dbz has quit [Ping timeout: 246 seconds]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
spiette has joined #ruby
bijan_ has quit [Remote host closed the connection]
lenqbit has joined #ruby
<zenspider> man... trying to get spring working on this client's app... it CHEWS through battery like it's nothing
<zenspider> ruby process taking almost a whole CPU
<zenspider> I can't even configure it to fall back to polling sucessfully.. ugh. ruby tooling has just gotten FAR too complex and buggy
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> rm bin/spring
<zenspider> pretty much
tdy has joined #ruby
<apeiros> spring caused too many problems for me early on, so '--no-spring' is standard for me.
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> maybe it's gotten better. but then again, your story indicates otherwise.
<zenspider> I'm really only using it to try to drive a test to generate a PDF to see WTF asciidoctor-pdf is fucking up now. It's entirely convoluted but I don't need some BS process killing my battery in the process
<zenspider> it's pretty terrible IMHO
LiftLeft2 is now known as LiftLeft
ellcs has quit [Ping timeout: 240 seconds]
<WA9ACE> apeiros I agree. `--no-spring` is mandatory when generating a new rails app
bijan_ has joined #ruby
hfp_work has quit [Quit: bye]
hfp has quit [Quit: bye]
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
alex`` has joined #ruby
justache has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
ur5us has joined #ruby
<zenspider> anyone have experience with asciidoc + pdf?
ur5us has quit [Read error: Connection reset by peer]
leitz has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
r29v has joined #ruby
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
dviola has quit [Ping timeout: 252 seconds]
dbz_ has quit [Remote host closed the connection]
r29v has quit [Quit: r29v]
dbz has joined #ruby
r29v has joined #ruby
dionysus69 has quit [Quit: dionysus69]
lenqbit has quit [Ping timeout: 252 seconds]
despai has quit [Quit: ...]
<Eiam> !paste
despai has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
dbz_ has joined #ruby
akaiiro has quit [Ping timeout: 260 seconds]
clorisu has joined #ruby
clorisu has quit [Client Quit]
clorisu has joined #ruby
dbz has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
jasmith has quit [Quit: Leaving]
knight33 has joined #ruby
dbz_ has quit [Remote host closed the connection]
Dbugger has quit [Ping timeout: 240 seconds]
fluxAeon has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
qoreQ has quit [Quit: leaving]
graphene has quit [Read error: Connection reset by peer]
gilfoyle has joined #ruby
<gilfoyle> I have an array of strings which are keys on a hash. What's the easiest way to create a list of values from that hash using these keys?
graphene has joined #ruby
<gilfoyle> (by easiest I mean rubyest)
snickers has joined #ruby
<apeiros> hash.values_at(*keys)
<apeiros> @ gilfoyle ^
<gilfoyle> I was just playing with keys.collect { |x| hash[x] } - but I really like yours apeiros! ?:)
<gilfoyle> s/?//
arescorpio has joined #ruby
herbmillerjr has joined #ruby
<baweaver> >> h = { 'a' => 1, 'b' => 2 }; %w(a b).map(&h)
<ruby[bot]> baweaver: # => [1, 2] (https://eval.in/1052079)
<baweaver> :D
<baweaver> (Please don't actually do that)
<baweaver> (use values_at)
<baweaver> Hash#to_proc: -> key { hash[key] }
beeman has joined #ruby
MarcWeber has joined #ruby
<MarcWeber> is there any library for making screenshots and clicking on linux which eventually even can convert shot to ruby-cv?
leitz has quit [Quit: Leaving]
fluxAeon has joined #ruby
chouhoulis has joined #ruby
clorisu has quit [Remote host closed the connection]
desperek has quit [Quit: xoxo]
notpod has joined #ruby
ramfjord has quit [Quit: leaving]
apeiros has quit [Ping timeout: 245 seconds]
reber has quit [Remote host closed the connection]
despai has quit [Quit: ...]
akaiiro has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has quit [Disconnected by services]
ivanskie has joined #ruby
knight33 has joined #ruby
thejs has quit [Remote host closed the connection]
brent__ has joined #ruby
arescorpio has quit [Remote host closed the connection]
Rootsudo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
code_zombie has quit [Quit: Leaving]
sadsagfjg has joined #ruby
samort7 has joined #ruby
<samort7> If I just have a regular ruby file I'm working on, where do I edit my rubocop.yml file?
<samort7> I keep getting carriage return errors in RubyMine because I am using Linux for Windows
arescorpio has joined #ruby
<samort7> And I need to tell RuboCop to use Windows carriage returns (https://github.com/sirlantis/rubocop-for-rubymine/issues/15)
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
sadsagfjg has left #ruby ["Leaving"]
gilfoyle has quit [Quit: .]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
wildermind has quit [Quit: Connection closed for inactivity]
weaksauce has quit [Read error: Connection reset by peer]
znz_jp has quit [Ping timeout: 264 seconds]
jcarl43 has quit [Quit: WeeChat 2.2]
akem_ has joined #ruby