<libsys>
I just need the first match, in that case would be `Enumerable#find`... but that only returns the element, does not transfrom it... I'm doing this now: https://pastebin.com/xzDb0qNA
<ruby[bot]>
libsys: 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
<leftylink>
well for that I use map followed by find. if it's necessary to not evaluate for the subsequent elements I suppose you could also use lazy, though I've never needed to
<leftylink>
return would be fine too, of course
<libsys>
nice, thanks
<libsys>
second question... how can I set an env var with ENV (for testing) previous than loading any gem on my Gemfile?
<libsys>
One gem uses an env var to set a constant, and I tried to set it on my test previous to requiring the gem, but it seems it's too late already
cartdrige has quit [Quit: Leaving]
cartdrige has joined #ruby
John_Ivan has quit [Ping timeout: 272 seconds]
desnudopenguino has quit [Ping timeout: 250 seconds]
Guimauve has joined #ruby
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 250 seconds]
idiocrash_ has joined #ruby
idiocrash has quit [Ping timeout: 250 seconds]
Y05hito__ has joined #ruby
grokify has joined #ruby
crax23 has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
goldfish has quit [Ping timeout: 260 seconds]
grokify has quit [Ping timeout: 250 seconds]
Y05hito__ has quit [Ping timeout: 250 seconds]
crax23 has joined #ruby
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 276 seconds]
crax23 has quit [Ping timeout: 272 seconds]
idkwtf has quit [Quit: Lost terminal]
grokify has joined #ruby
grokify has quit [Ping timeout: 250 seconds]
Y05hito__ has quit [Ping timeout: 276 seconds]
Guimauve has quit [Quit: Client closed]
cartdrige has joined #ruby
rvalue has quit [Ping timeout: 272 seconds]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 250 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 272 seconds]
rvalue has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 272 seconds]
rvalue- is now known as rvalue
jpn has joined #ruby
Sankalp has quit [Ping timeout: 260 seconds]
jpn has quit [Ping timeout: 276 seconds]
Sankalp has joined #ruby
D_A_N has quit [Quit: leaving]
jpn has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
crax23 has quit [Ping timeout: 250 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 276 seconds]
cartdrige has joined #ruby
crax23 has joined #ruby
grokify has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
jpn has joined #ruby
idiocrash has joined #ruby
idiocrash_ has quit [Ping timeout: 250 seconds]
<AstrallyForged>
(ohai jess :3 )
<madprops>
i want to code something in ruby before i forget 100% of it
<madprops>
also would look into crystal but ehhh
<madprops>
wouldn't be surprised if it had backdoors
<madprops>
or something, that's the vibe i get
jpn has quit [Ping timeout: 272 seconds]
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
grokify has quit [Remote host closed the connection]
rvalue has quit [Read error: Connection reset by peer]
axisys has quit [Remote host closed the connection]
CrazyEddy has quit [Ping timeout: 264 seconds]
idkwtf has quit [Ping timeout: 250 seconds]
gamara has joined #ruby
<gamara>
Hey how would I return a csv from this get_all endpoint, I am very new to ruby on rails (I am using ruby version 7 not sure the version of ruby on rails) and this is really the last thing I need to do for this project any help would be greatly appreciated https://gist.github.com/istareatscreens/d12c1ead49747a0cb3be50ccc0d481d9