<JJonah>
The docs for Enumerator::Lazy#flat_map offer this example: `["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force` but I can't find the method `force` documented anywhere in Lazy or elsewhere: https://ruby-doc.org/core-2.5.3/Enumerator/Lazy.html. What am I missing?
phaul has joined #ruby
cschneid has quit [Remote host closed the connection]
h0h0h0 has joined #ruby
h0h0h0 has quit [Client Quit]
h0h0h0 has joined #ruby
h0h0h0 has quit [Client Quit]
hutch has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
nchambers is now known as uplime
cschneid has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has quit [Remote host closed the connection]
h0h0h0 has joined #ruby
rexmie has joined #ruby
Swyper has joined #ruby
<rexmie>
does anyone know any ruby gem for newbie to learn reading code?
h0h0h0 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkdonut has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Quit: AJA4350]
tdy1 has joined #ruby
h0h0h0 has joined #ruby
h0h0h0 has quit [Client Quit]
tdy has quit [Ping timeout: 250 seconds]
rexmie has quit [Ping timeout: 256 seconds]
rexmie has joined #ruby
bob_dino has quit [Quit: bob_dino]
drale2k_ has joined #ruby
maryo has joined #ruby
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
h0h0h0 has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
h0h0h0 has quit [Client Quit]
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maryo has quit [Ping timeout: 244 seconds]
s3nd1v0g1us has joined #ruby
maryo has joined #ruby
gnufied has quit [Quit: Leaving]
hutch has quit [Ping timeout: 240 seconds]
s3nd1v0g1us has quit [Quit: WeeChat 2.2]
hurricanehrndz has quit [Ping timeout: 250 seconds]
cthulchu has quit [Ping timeout: 268 seconds]
nfk has joined #ruby
<nfk>
Argh, just to be sure, if File.rename "foo", variable_that_is_undefined is called
<nfk>
it successfully eats the data by renaming it to nil, yes/
<nfk>
oh, wait, phew
tdy1 is now known as tdy
<nfk>
it's not undefined
<nfk>
i may have clobbered something but the data might be still here
hurricanehrndz has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<cnsvc>
I need some help on Ruby installation on FreeBSD. Tried to make from source or rbenv/ruby-build, and i have the errors ld: error: section type mismatch for .eh_frame
_whitelogger has quit [Remote host closed the connection]
_whitelogger has joined #ruby
maryo has joined #ruby
maryo has quit [Ping timeout: 246 seconds]
johnny56_ has quit [Ping timeout: 272 seconds]
Renich has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
cnsvc has joined #ruby
Dbugger has joined #ruby
RougeR has joined #ruby
Puffball has quit [Remote host closed the connection]
_whitelogger has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
rkazak has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
johnny56_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
DTZUZO has quit [Ping timeout: 240 seconds]
dellavg_ has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
Aqo has joined #ruby
johnny56_ has quit [Ping timeout: 272 seconds]
Swyper has joined #ruby
MAL_9001 has joined #ruby
uplime has quit [Ping timeout: 240 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
conta has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
mikecmpbll has joined #ruby
Swyper has quit [Ping timeout: 268 seconds]
ogres has quit [Quit: Connection closed for inactivity]
za1b1tsu has joined #ruby
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
jgpawletko has quit [Ping timeout: 245 seconds]
armyriad has quit [Ping timeout: 245 seconds]
johnny56_ has joined #ruby
armyriad has joined #ruby
clemens3 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Fernando-Basso has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
reber has joined #ruby
rubydoc has joined #ruby
reber has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
conta1 has joined #ruby
conta1 has quit [Ping timeout: 268 seconds]
Pillus has quit []
apparition has joined #ruby
phaul has joined #ruby
dellavg_ has quit [Ping timeout: 250 seconds]
phaul has quit [Ping timeout: 240 seconds]
rubydoc has quit [Ping timeout: 258 seconds]
dellavg_ has joined #ruby
phaul has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
phaul has joined #ruby
Dbugger has quit [Ping timeout: 260 seconds]
cnsvc has joined #ruby
tdy has joined #ruby
_whitelogger has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
masterasia has joined #ruby
hiroaki has joined #ruby
cnsvc has quit [Remote host closed the connection]
coreyja has quit [Remote host closed the connection]
Demos[m] has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
bastilian has quit [Remote host closed the connection]
jonjitsu has quit [Remote host closed the connection]
turt2live has quit [Read error: Connection reset by peer]
irdr has quit [Max SendQ exceeded]
irdr has joined #ruby
Renich has quit [Ping timeout: 240 seconds]
Demos[m] has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
gix has joined #ruby
hiroaki has quit [Ping timeout: 264 seconds]
hiroaki has joined #ruby
hiroaki has quit [Ping timeout: 250 seconds]
hiroaki has joined #ruby
jonjitsu has joined #ruby
bastilian has joined #ruby
sepp2k has joined #ruby
turt2live has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
<hays>
my ruby-install is not working with a command not found
<hays>
i tried reinstalling from source
<hays>
chruby itself seems ok
<hays>
-bash: ruby-install: command not found
Emmanuel_Chanel has joined #ruby
<hays>
im using PREFIX=$HOME/.local make install
<phaul>
is it in your $HOME/.local/bin? if so is that in your PATH?
apparition has quit [Quit: Bye]
<hays>
./.local/bin/ruby-install
<hays>
hmm..
<rexmie>
havenwood thank you
<hays>
phaul: wow. somehow my path wasn't set??? duh
rexmie has quit [Quit: Page closed]
Fernando-Basso has joined #ruby
reber has joined #ruby
r3m has quit [Quit: WeeChat 2.4-dev]
r3m has joined #ruby
despai has joined #ruby
rubydoc has joined #ruby
lucasb has joined #ruby
despai has quit [Quit: ...]
Dbugger has joined #ruby
troulouliou_div2 has joined #ruby
MAL_9001 has quit []
phaul has quit [Quit: bye]
rubydoc has quit [Read error: Connection reset by peer]
nebg has joined #ruby
<nebg>
hello all it seems i have two versions of bundler installed if i do gem list
<nebg>
but only one is default... how can i switch to the other version ?
<nebg>
i have this message "Warning: the running version of Bundler (1.16.6) is older than the version that created the lockfile (1.17.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`."
<nebg>
but still i did a gem install bundler and it installed a 2.0.x version
<nebg>
but i don't understand why it is still using version 1.16.6
<nebg>
can somebody help me?
despai has joined #ruby
<Iambchop>
nebg: how is your ruby installed? vendor package, rvm, self compiled. etc?
<nebg>
Iambchop, my ruby is instaleld from rvm
<nebg>
and i'm insidde the metasploit-framework gemset
<mspo>
use docker
<nebg>
mspo, why ?
<Iambchop>
nebg: "rvm @global do gem install bundler"?
despai has quit [Quit: ...]
despai has joined #ruby
bmurt has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
despai has quit [Ping timeout: 268 seconds]
nebg has quit [Read error: Connection reset by peer]
catbusters has joined #ruby
rubydoc has joined #ruby
phaul has joined #ruby
manakanapa has joined #ruby
rkoller has joined #ruby
AJA4350 has joined #ruby
Dbugger has quit [Ping timeout: 264 seconds]
houhoulis has joined #ruby
reber has quit [Remote host closed the connection]
rkazak has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
TvL2386 has quit [Ping timeout: 250 seconds]
dviola has joined #ruby
h0h0h0 has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkazak has quit [Quit: Sleep.....ing....]
Mike11 has joined #ruby
h0h0h0 has quit [Client Quit]
h0h0h0 has joined #ruby
h0h0h0 has quit [Client Quit]
davidw_ has joined #ruby
davidw_ has quit [Ping timeout: 258 seconds]
za1b1tsu has joined #ruby
drale2k_ has joined #ruby
houhoulis has quit [Remote host closed the connection]
rkazak has joined #ruby
davidw_ has joined #ruby
cd has quit [Quit: cd]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mozzarella has quit [Quit: WeeChat 2.2]
rkazak has quit [Quit: Sleep.....ing....]
despai has joined #ruby
rkazak has joined #ruby
davidw_ has quit [Ping timeout: 268 seconds]
uplime has joined #ruby
despai has quit [Ping timeout: 250 seconds]
despai has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
TvL2386 has joined #ruby
catbusters has quit [Quit: Connection closed for inactivity]
bmurt has joined #ruby
rkazak has joined #ruby
h0h0h0 has joined #ruby
Exagone313 has quit [Ping timeout: 245 seconds]
Exagone313 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkazak has quit [Quit: Sleep.....ing....]
za1b1tsu has quit [Remote host closed the connection]
hiroaki has quit [Ping timeout: 258 seconds]
Guest43479 has quit [Ping timeout: 245 seconds]
orbyt_ has joined #ruby
despai has quit [Quit: ...]
Mike11 has quit [Ping timeout: 240 seconds]
tdy has joined #ruby
rkazak has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Quit: conta]
houhoulis has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
cthulchu has quit [Disconnected by services]
cthulchu has joined #ruby
cthulchu has quit [Disconnected by services]
cthulchu_ has joined #ruby
despai has joined #ruby
despai_ has joined #ruby
despai has quit [Ping timeout: 250 seconds]
despai_ has quit [Read error: Connection reset by peer]
rkazak has quit [Quit: Sleep.....ing....]
orbyt_ has joined #ruby
conta has joined #ruby
conta has quit [Ping timeout: 246 seconds]
Fernando-Basso has joined #ruby
eam has quit [Remote host closed the connection]
cschneid has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
cschneid has quit [Ping timeout: 258 seconds]
\void has joined #ruby
Scriptonaut has left #ruby [#ruby]
FastJack has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 250 seconds]
BTRE has joined #ruby
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
cthu| has joined #ruby
cthulchu_ has quit [Ping timeout: 258 seconds]
tiff has joined #ruby
clemens3 has quit [Ping timeout: 258 seconds]
tdy has quit [Ping timeout: 244 seconds]
tkdonut has quit [Quit: WeeChat 2.3]
clemens3 has joined #ruby
cnsvc has joined #ruby
Swyper has joined #ruby
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
uplime has quit [Quit: WeeChat 2.2]
Swyper has quit [Remote host closed the connection]
masterasia has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
conta has joined #ruby
tiff has joined #ruby
conta has quit [Ping timeout: 272 seconds]
dellavg_ has quit [Ping timeout: 258 seconds]
houhoulis has quit [Ping timeout: 244 seconds]
reber has joined #ruby
gigetoo has quit [Ping timeout: 244 seconds]
gigetoo has joined #ruby
uplime has joined #ruby
<hays>
any opinions on ruby web frameworks in here? i'm leaning towards learning roda
Swyper has joined #ruby
<hays>
but am a little worried its userbase is too small
cschneid has joined #ruby
<hays>
and i still don't have a clear understanding of how to deploy an app vs. running it locally
reber has quit [Remote host closed the connection]
Swyper has quit [Ping timeout: 250 seconds]
conta has joined #ruby
<dviola>
you can't go wrong with any of the tools jeremyevans maintains :P
<havenwood>
hays: ^
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has joined #ruby
Swyper has joined #ruby
conta has quit [Ping timeout: 258 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
<havenwood>
hays: I'd suggest making a simple Rack app, so you can how it works and why routing becomes a pain.
hutch has joined #ruby
<havenwood>
hays: Roda is just a routing tree on top of Rack, along with plugins that you cherry pick to compose a framework.
<havenwood>
hays: Run `rackup` to run it in development and `rackup -p $PORT` to run it in prod. :P
<hays>
maybe i do need to do that, because i don't even see instructions to run this config.ru file in the roda project
<havenwood>
hays: Type: rackup
<havenwood>
hays: Have you ever made a pure Rack app?
<hays>
nope
<havenwood>
hays: You can create one with a one-liner config.ru file: echo "run -> _ { [200, {'Content-Type' => 'text/plain'}, ['Hello hays']] }" > config.ru
<havenwood>
hays: Then run that app: rackup
mozzarella has joined #ruby
<havenwood>
hays: So the only contents of config.ru are:
<hays>
ok, i'll check out rack first. seems necessary to get an understanding of whats happening
<havenwood>
hays: Yes, it's quite helpful - and Rack and Rack middleware are still there when you have a framework on top - so still very useful to understannd.
cschneid has quit [Ping timeout: 268 seconds]
Swyper has quit [Remote host closed the connection]
hutch has quit [Ping timeout: 258 seconds]
<hays>
so def start &blk
rkoller has quit [Ping timeout: 272 seconds]
<hays>
server.run wrapped_app, options, &blk
rkoller has joined #ruby
cschneid has joined #ruby
<hays>
it seems like rackup just runs Rack::Server.start, which is a class method that just creates a Server object and returns the value of #start
<hays>
that method itself takes a block..
hutch has joined #ruby
rkoller has quit [Ping timeout: 252 seconds]
<hays>
im trying to figure out why "run" does anything in the config.ru file
cschneid has quit [Ping timeout: 268 seconds]
cschneid has joined #ruby
rkoller has joined #ruby
hutch has quit [Ping timeout: 258 seconds]
millerti has joined #ruby
code_zombie has joined #ruby
cschneid has quit [Ping timeout: 252 seconds]
cschneid has joined #ruby
Aqo has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
\void has quit [Read error: Connection reset by peer]
rkoller has quit [Ping timeout: 246 seconds]
\void has joined #ruby
cschneid has quit [Ping timeout: 258 seconds]
exchgr` has joined #ruby
exchgr has quit [Ping timeout: 246 seconds]
szulak_ has joined #ruby
rkoller has joined #ruby
rkoller has quit [Ping timeout: 244 seconds]
houhoulis has joined #ruby
rkoller has joined #ruby
hutch has joined #ruby
rkoller has quit [Ping timeout: 268 seconds]
jcalla has quit [Ping timeout: 250 seconds]
jcalla has joined #ruby
rkoller has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]