tdy1 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
gregf_ has joined #ruby
rippa has quit [Read error: Connection reset by peer]
Leifr has joined #ruby
ldk has quit [Ping timeout: 245 seconds]
tdy1 has joined #ruby
conta has joined #ruby
MyMind has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
Sembei has quit [Ping timeout: 268 seconds]
tdy1 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
<ctp>
Hi folks. How to reject empty/blank elements in a nested array in a clean way? Something like [ ["", "foo", "bar"], ["", "baz", "qux"] ].reject(&:empty?) but for array of arrays
aqd has quit [Remote host closed the connection]
aqd has joined #ruby
<phaul>
map over the outer array with reject?
<ctp>
yes, was thinking of something like [ ["", "foo", "bar"], ["", "baz", "qux"] ].map(&:reject(&:empty?)) but this somehow doesnt look correct
mangold has joined #ruby
<phaul>
yes that won't work. but & is just a shorthand for a longer block passing syntax
<fox_mulder_cp>
.compact! ?
<phaul>
compact doesn't take out empty strings iirc
<ruby[bot]>
ctp: we in #ruby do not like irccloud.com, it has no syntax highlighting, distracting formatting and loads slowly for most. Please use https://gist.github.com
tdy1 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
AJA4350 has joined #ruby
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
<phaul>
&fake Matz.quote
<rubydoc>
I didn't work hard to make Ruby perfect for everyone, because you feel differently from me. No language can be perfect for everyone. I tried to make Ruby perfect for me, but maybe it's not perfect for you. The perfect language for Guido van Rossum is probably Python.
tdy1 has joined #ruby
tdy1 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
<dontbecold_>
Hi! I'm attempting to update our version of google-protobuf from 3.6.1 to 3.70 on my Mac, but bundler deletes the vendored 3.6.1 linux gem and doesn't populate a 3.7.0 one
<dontbecold_>
this means CI (linux) gets upset
blackmesa has quit [Ping timeout: 264 seconds]
<dontbecold_>
any advice for trying to solve this?
<dontbecold_>
tripping over a lot of terminology here, as i'm also not sure what cross-compiled gems of the same version are called, given that "platform" already means ruby version
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
agent_white has joined #ruby
bjpenn has joined #ruby
<bjpenn>
hey, anyone know why `rubocop` works, but not `bundle exec rubocop `
<mozzarella>
define "doesn't work"
<miah>
if 'bundle exec rubocop' doesnt work.. is rubocop in your Gemfile?
<miah>
(or your gemspec)
za1b1tsu has quit [Remote host closed the connection]
<bjpenn>
rubocop is in the Gemfile, under group :developent, :test
<miah>
rubocop working without bundler means its in your system rubygems installation, when you 'bundle exec' its trying to execute from your bundle stash, and if rubocop wasn't in that list its not going to work
<bjpenn>
when i say doesnt work, i get an error... let me paste that error
<bjpenn>
miah: ah makes sense
<miah>
and similarly if the :development group is `optional: true` you'll end up in a similar scenario
<bjpenn>
oh ok, i didnt know about the optional: true flag, or whether or not that's a default behavior. But it doesn't specify `optional: true`
<bjpenn>
when i do `gem list` i also see rubocop
<bjpenn>
let me try bundle exec gem list
<bjpenn>
yeah youre right, bundle exec gem list doesn't show rubocop
<bjpenn>
although regular gem list does
<bjpenn>
but in Gemfile, it does contain rubocop though
<bjpenn>
albeit under a group, but it doesn't contain any parameter similar to "optional: true"
levifig has quit [Quit: Farewell]
conta has joined #ruby
<bjpenn>
miah: i've also tried running `bundle install` as well, which runs fine
TheMoonMaster_ is now known as TheMoonMaster
<miah>
do you have a paste of the error?
<bjpenn>
yeah let me paste
<miah>
preferably gist it
<bjpenn>
will do
BTRE has joined #ruby
levifig has joined #ruby
<havenwood>
bjpenn: also mind showing us the output of?: bundle config
conta has quit [Ping timeout: 240 seconds]
<miah>
good call
<bjpenn>
yep, ill produce that
<bjpenn>
do you guys want bundle exec gem list?
<bjpenn>
and also teh contents of Gemfile
<havenwood>
bjpenn: i'm more curious about the error and your bundle config.
Inline has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: br]
<havenwood>
bjpenn: aye, line 11 it shows you have --without set
ur5us has joined #ruby
elphe has quit [Ping timeout: 255 seconds]
<havenwood>
bjpenn: look at the file: /Users/myuser/company/git.repo/.bundle/config
<bjpenn>
looking...
<bjpenn>
ah yes i see it
<havenwood>
bjpenn: Bundler "remembered" to bundle without test and development and stored the setting there.
<bjpenn>
BUNDLE_WITHOUT: "test:development"
TheBloke has joined #ruby
<bjpenn>
any idea why it would have done that?
<havenwood>
bjpenn: that's why you're not seeing Rubocop installed
SeepingN has joined #ruby
<bjpenn>
from what miah was saying, i think it had to have been specified in Gemfile right?
<bjpenn>
to not include it right?
<bjpenn>
perhaps i ran bundle install at an earlier time (that i dont recall), that specified to not include test,development, and that set the config file?
<bjpenn>
(not sure if thats possible)
<bjpenn>
if it is, then ill cough it up to that
<havenwood>
bjpenn: yes, you likely ran `bundle install` command with --without=test,development, and didn't realize it would be "remembered"
<miah>
or somebody else did in the past
<havenwood>
bjpenn: you can manually remove the entry, or have bundler remove it for you with: bundle install --with=test,development
gnufied has quit [Ping timeout: 255 seconds]
<bjpenn>
thanks man!
<bjpenn>
its awesome to come to irc and actually get some answers for once! :)
<havenwood>
bjpenn: happy coding!
<bjpenn>
you guys too!
gnufied has joined #ruby
Inline has joined #ruby
reber has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lghtstkr has quit [Ping timeout: 268 seconds]
szulak_ has joined #ruby
hiroaki_ has quit [Ping timeout: 252 seconds]
lightstalker has joined #ruby
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy1 has joined #ruby
elphe has joined #ruby
szulak_ has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
dionysus70 has quit [Ping timeout: 250 seconds]
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
<Calinou>
if anyone knows Liquid here, why do I have to set a variable to be able to loop over a nested hash as demonstrated in https://jekyllrb.com/docs/datafiles/? Specifically, the `{% assign org = org_hash[1] %}` part
szulak_ has joined #ruby
gix has quit [Disconnected by services]
Dbugger has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
gix has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
gix has quit [Client Quit]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
bvdw8 has joined #ruby
bvdw has quit [Ping timeout: 272 seconds]
tdy1 has quit [Remote host closed the connection]
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
bga57 has joined #ruby
conta has joined #ruby
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 240 seconds]
bjpenn has quit [Quit: leaving]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
Xiti has quit [Quit: Xiti]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
t0x has joined #ruby
moei has quit [Quit: Leaving...]
marmotini_ has quit [Remote host closed the connection]
gix has joined #ruby
elphe has joined #ruby
polishdub has quit [Quit: leaving]
lucasb has quit [Quit: Connection closed for inactivity]
elphe has quit [Ping timeout: 246 seconds]
elphe has joined #ruby
blackmesa has quit [Quit: WeeChat 2.4]
<Net>
Calinou: org_hash is probably [filename, hash]
elphe has quit [Ping timeout: 245 seconds]
elphe has joined #ruby
<Calinou>
I see, thanks :)
tdy has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
gl has joined #ruby
gl has left #ruby [#ruby]
ams__ has quit [Quit: Connection closed for inactivity]