pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MeDubz77 has joined #ruby
MeDubz77 has left #ruby [#ruby]
_whitelogger has joined #ruby
chalkmonster has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
cliluw has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
mre- has joined #ruby
mre- has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
mre- has joined #ruby
mre- has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
cschneid has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
jetchisel has joined #ruby
_whitelogger has joined #ruby
Swyper has quit [Remote host closed the connection]
greypack has quit [Ping timeout: 272 seconds]
greypack has joined #ruby
chalkmon1 has joined #ruby
chalkmonster has quit [Ping timeout: 265 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
howdoi has joined #ruby
greypack has quit [Ping timeout: 255 seconds]
sauvin has joined #ruby
cthulchu has quit [Ping timeout: 268 seconds]
chalkmon1 has quit [Ping timeout: 260 seconds]
mre- has joined #ruby
mre- has quit [Ping timeout: 258 seconds]
_whitelogger has joined #ruby
markopasha has joined #ruby
markopasha has quit [Read error: Connection reset by peer]
mre- has joined #ruby
mre- has quit [Ping timeout: 268 seconds]
cschneid has quit [Ping timeout: 240 seconds]
cschneid has joined #ruby
schne1der has joined #ruby
fluxAeon has quit [Ping timeout: 265 seconds]
d3bug has joined #ruby
fluxAeon has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 268 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
ur5us has joined #ruby
fercell has joined #ruby
code_zombie has quit [Read error: Connection reset by peer]
sdu has joined #ruby
<roadie>
I get this Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4)
<roadie>
and a solution: We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
<roadie>
which I did but that does not solve the problem.
<roadie>
or rather, it does not make the warning go away. To have the warning go away I can use 'bundle exec rubyrailswhathaveyoucommand' but this is not mentioned in the warning.
<roadie>
Can't I have the same bundler running and creating the lockfile from the start? What am I missing here?
<roadie>
this is on macos with rvm from homebrew
conta has joined #ruby
<roadie>
it seems I have the 2.1.1 version in /usr/bin and the 2.1.2 version in .rvm ... so I have upgraded the system ruby at some point in the past?
<roadie>
oh, 2.1.2 and 2.1.4 that is
<roadie>
found the solution: This is all a bit of a mess. Many developers probably just ignore the warning. It should normally be fine.
akem has quit [Ping timeout: 258 seconds]
_phaul has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
mre- has joined #ruby
alexherbo2 has joined #ruby
mre- has quit [Ping timeout: 255 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
TomyWork has joined #ruby
TomyWork has quit [Ping timeout: 256 seconds]
cschneid has quit [Ping timeout: 256 seconds]
yelloB has joined #ruby
cschneid has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
mre- has joined #ruby
conta has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 240 seconds]
mre- has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
yelloB has quit [Remote host closed the connection]
d3bug has quit [Quit: Connection closed for inactivity]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
sergioro has quit [Quit: leaving]
jetchisel has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
IGnorAND has quit [Ping timeout: 260 seconds]
yelloB has joined #ruby
yelloB has quit [Remote host closed the connection]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
jetchisel has joined #ruby
Bounga has joined #ruby
TomyWork has joined #ruby
akem has joined #ruby
akem has quit [Quit: Leaving]
greypack has joined #ruby
<sagax>
hi all!
<sagax>
example i have {:well => "done", :foo => "bar"} how to fetch {:well => "done"} if key :well exists?
chalkmonster has joined #ruby
akem has joined #ruby
<al2o3-cr>
sagax: h.slice(:well) if h.has_key? :well
<sagax>
in multiple
<sagax>
for multiple hash key
mre- has joined #ruby
<al2o3-cr>
sagax: slice takes multiple keys
Bounga has quit [Ping timeout: 272 seconds]
<sagax>
thanks
mre- has quit [Ping timeout: 256 seconds]
cschneid has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
<al2o3-cr>
&>> h = {a:1, b:2, c:3, d:4, e:5}; keys = %i(a c e); h.slice(*keys) if keys.all? { |k| h.has_key? k } # sagax like this?
burningserenity has quit [Ping timeout: 256 seconds]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pupsikov has joined #ruby
pupsikov has quit [Client Quit]
watzon has quit [Quit: watzon]
ElFerna has quit [Ping timeout: 268 seconds]
ElFerna has joined #ruby
akem has joined #ruby
caterfxo has left #ruby [#ruby]
watzon has joined #ruby
watzon has quit [Client Quit]
orbyt_ has joined #ruby
roadie has joined #ruby
ua has quit [Excess Flood]
markoong has quit [Remote host closed the connection]
ua has joined #ruby
markoong has joined #ruby
ElFerna has quit [Ping timeout: 265 seconds]
Eiam has joined #ruby
ElFerna has joined #ruby
<TomyWork>
I'm struggling with nokogiri and namespaces that aren't explicitly defined in the document. does nokogiri have a mode where i can use that?
jmcgnh has quit [Read error: Connection reset by peer]
<TomyWork>
they're also fragments, not complete documents. my current workaround is to just do xml = "<page>#{xml.gsub('ac:', 'ac_')}</page>" before putting it into nokogiri (all namespaced tags are in the ac: namespace)
jmcgnh has joined #ruby
<gitter1234>
Hey what was the name of that bot that let you run ruby in here?
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
kinduff has joined #ruby
kinduff has quit [Client Quit]
kinduff has joined #ruby
jmcgnh has quit [Ping timeout: 258 seconds]
jmcgnh has joined #ruby
ElFerna has quit [Quit: ElFerna]
ElFerna has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
markoong has quit [Ping timeout: 265 seconds]
markoong has joined #ruby
mre- has quit [Ping timeout: 258 seconds]
<TomyWork>
how do i get out of pry and never have it come back?
markopasha has joined #ruby
<adam12>
TomyWork: disable-pry
markopasha has quit [Remote host closed the connection]
<TomyWork>
thanks
mre- has joined #ruby
<havenwood>
TomyWork: Or !!!
<havenwood>
(alias for exit-program)
<TomyWork>
ah that's easier to type, thanks
<TomyWork>
i'm running pry in a rerun -b :)
<TomyWork>
actually that should already kill the pry session after 2s
<TomyWork>
yeah it does, once i take away the "--exit"
markoong has quit [Ping timeout: 240 seconds]
markong has joined #ruby
kevinburke has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
mre- has quit [Ping timeout: 256 seconds]
FastJack has quit [Ping timeout: 265 seconds]
markoong has joined #ruby
mre- has joined #ruby
ElFerna has joined #ruby
FastJack has joined #ruby
markong has quit [Ping timeout: 260 seconds]
pupsikov has joined #ruby
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 265 seconds]
gix has joined #ruby
alexherbo2 has quit [Ping timeout: 255 seconds]
alexherbo2 has joined #ruby
<TomyWork>
if pry's pager is active while the app is being killed, my shell gets messed up. any way around that?
<TomyWork>
(stty fixes it, but i'd like to find a way to not have it occur in the first place)
cliluw has joined #ruby
BTRE has quit [Quit: Leaving]
BTRE has joined #ruby
markong has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
alexherbo20 has joined #ruby
cliluw has joined #ruby
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo20 is now known as alexherbo2
markoong has quit [Ping timeout: 255 seconds]
<havenwood>
TomyWork: How is the app killed?
<apotheon>
havenwood: Do you have any tips or guidance to offer for me to ease my way into using chruby on a system where I'm already using rbenv, with several existing Ruby projects?
<apotheon>
I plan to start trying chruby out today or tomorrow, as I think I'm about to start working on a new project with someone.
rippa has joined #ruby
<havenwood>
apotheon: Bash, zsh, another shell or you want agnostic?
tobiasvl has quit [Ping timeout: 260 seconds]
sauvin has quit [Ping timeout: 256 seconds]
<apotheon>
ksh
<apotheon>
I'm mostly just curious about how I'd go about making it play nicely alongside rbenv while I'm making the transition, and how best to make the transition.
<apotheon>
I suspect I can bend my shell situation and chruby into some shape that works well together.
yelloB has joined #ruby
<apotheon>
I managed with rbenv, venv, nvm, et cetera, after all.
mre- has quit [Ping timeout: 265 seconds]
yelloB has quit [Remote host closed the connection]
mre- has joined #ruby
<apotheon>
havenwood: I'm guessing I can get the standard setup stuff from the README on GitHub, or something like that.
<havenwood>
apotheon: The chruby issue with ksh is lack of `trap DEBUG` or `preexec_functions` style behavior for auto switching.
<apotheon>
hmm
<apotheon>
Does that mean it doesn't really work if my shell is ksh?
<havenwood>
apotheon: We have an mksh branch, but it depends on whether you need auto-switching or want to enable it via an alternative method: https://github.com/postmodern/chruby/tree/mksh
<havenwood>
apotheon: Not all folk use the auto-switching feature.
<havenwood>
apotheon: Bash and zsh are the first class citizens, just due to portability. If mksh has added preexec_functions in the last couple years, we could add it.
<havenwood>
apotheon: If you're using non-mksh, there may be the additional issue of [[ vs ((.
code_zombie has joined #ruby
<havenwood>
apotheon: The beauty of chruby is that it's just a few lines of shell, but it's just shell and needs to be able to run natively on the current shell.
<havenwood>
apotheon: Fish is too divergent from bash and zsh to be officially supported. The only issue blocking mksh support is lack of a way to hook functions for autoswitching.
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
<apotheon>
What's auto-switching entail? Is that about having a different version automatically when switching to a project directory with a default version set?
alexherbo2 has joined #ruby
<havenwood>
apotheon: Autodetecting .ruby-version files and switching accordingly.