<no_gravity>
What does the exclamation mark mean in a function call like foo!('hello')?
<havenwood>
no_gravity: Hi! The convention is to use an exclamation to mean "more dangerous" than the method of the same name without the exclamation.
<havenwood>
no_gravity: So #foo! is a dangerous #foo.
<no_gravity>
So it is only decorative? The parser just skips it?
<havenwood>
no_gravity: "Dangerous" often means that the method modifies the receiver, but not always. It could be something else that makes it dangerous.
<havenwood>
no_gravity: Yes, it's decorative.
<no_gravity>
Wow. I never seen this kind of comments inside an expression in any language.
<havenwood>
no_gravity: It's the same with methods ending in a question mark. Convention there is for the response to be truthy. (Predicate methods.)
<havenwood>
no_gravity: foo?('hello')
<no_gravity>
Wow. Are there more? Can you write foo!!*??!!§§%%&&*!!('hello')?
<havenwood>
no_gravity: No, you have to pick `?` or `!` but can't have both.
<havenwood>
no_gravity: No more dangerous versions of predicate methods allowed. :P
<no_gravity>
So the createor of ruby had the idea to allow ! and ? as comments inside function calls?
<no_gravity>
Ahh... Or am I misunderstanding it completeley? Is foo! the name of the funciont? Including the !?
<havenwood>
no_gravity: The trailing marks are part of the method name. Like the name itself, they have semantic meaning.
<no_gravity>
So it is just that "!" can be part of the function name?
<havenwood>
no_gravity: Right, but only at the end of the name.
<no_gravity>
I see. That is a bit less crazy.
<havenwood>
no_gravity: So you can have a trailing question mark or exclamation mark to indicate you're following a convention.
<no_gravity>
Yeah
<havenwood>
&>> def foo!(bar) end; method(:foo!)
<havenwood>
helmer72: gem install vagrant
vondruch has joined #ruby
<havenwood>
helmer72: The #vagrant channel might have vagrant-specific ideas but happy to help get the gem installed if that's the goal.
<havenwood>
As the Ruby manpage says, "If you ... like the concept of LISP, but don't like too many parentheses, Ruby might be your language of choice."
schne1der has joined #ruby
mozzarella has quit [Read error: Connection reset by peer]
Eiam has quit [Ping timeout: 264 seconds]
no_gravity has quit [Quit: leaving]
ineb has joined #ruby
<ineb>
Hello, does anyone know a gem/library for displaying images on the console?
<ineb>
I looked at libaa but the ruby gem looks outdated. libcaca has undocumented bindings for ruby that i will try next
weaksauce has quit [Ping timeout: 246 seconds]
adu has quit [Quit: adu]
Xiti has quit [Ping timeout: 256 seconds]
Xiti has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
alexherbo2 has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
dfucci has joined #ruby
jenrzzz has joined #ruby
ur5us has joined #ruby
schne1der has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
Mrgoose9 has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
Mrgoose has quit [Ping timeout: 256 seconds]
Mrgoose9 is now known as Mrgoose
braincrash has joined #ruby
<helmer72>
in rbenv, why is 2.5.0 the newest ruby version listed?
wallace_mu has joined #ruby
jenrzzz has joined #ruby
dfucci has quit [Ping timeout: 246 seconds]
wallace_mu has quit [Ping timeout: 260 seconds]
dfucci has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
ineb has left #ruby ["WeeChat 2.9"]
<helmer72>
how do i reset my gem env to the clean install state?
jenrzzz has quit [Ping timeout: 256 seconds]
TomyWork has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
schne1der has joined #ruby
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 260 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
_whitelogger has joined #ruby
spetex has joined #ruby
_whitelogger has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
akemhp has joined #ruby
imode has quit [Ping timeout: 240 seconds]
markoong has joined #ruby
postmodern has quit [Quit: Leaving]
chalkmonster has quit [Ping timeout: 258 seconds]
TCZ has joined #ruby
wallace_mu has joined #ruby
wallace_mu has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<helmer72>
I managed it by deleting all ruby related stuff
markoong has quit [Quit: Konversation terminated!]
CommunistWolf has quit [Quit: The cause of labour is the hope of the world]
CommunistWolf has joined #ruby
schne1der has quit [Remote host closed the connection]
gitter1234 has quit [Quit: Connection closed for inactivity]
braincrash has quit [Ping timeout: 256 seconds]
x0n has quit [Ping timeout: 260 seconds]
<weaksauce>
havenwood so what i did was do a basic bundle install and then added one gem and then did a bundle install and it installed the version from 2016 when there are probably 50 newer ones
<weaksauce>
i've just never seen such weird behavior
alexherbo2 has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
alexherbo2 has joined #ruby
elcuervo has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
akemhp has joined #ruby
alexherbo24 has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo24 is now known as alexherbo2
TomyWork has quit [Remote host closed the connection]
rippa has joined #ruby
alexherbo2 has quit [Ping timeout: 256 seconds]
schne1der has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
jenrzzz has joined #ruby
alexherbo2 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
x0n has joined #ruby
jenrzzz has joined #ruby
mthsgrc has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
x0n has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
x0n has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
gix has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
x0n has quit [Ping timeout: 240 seconds]
ujjain2 has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
mthsgrc has left #ruby ["Leaving"]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
Axy has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
BSaboia has joined #ruby
ropeney has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
lunarkitty has joined #ruby
ujjain2 has quit [Ping timeout: 246 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has joined #ruby
ujjain2 has joined #ruby
fercell has quit [Quit: WeeChat 2.8]
lunarkitty is now known as lunarkitty7
x0n has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
imode has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
x0n has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
x0n has joined #ruby
x0n- has joined #ruby
pgib has joined #ruby
x0n has quit [Ping timeout: 264 seconds]
x0n- has quit [Ping timeout: 256 seconds]
<havenwood>
weaksauce: Ah, if you added a new gem then it resolves for the version of that new gem that works with _existing_ gem versions in the Gemfile.lock.
<havenwood>
weaksauce: It's fairly common for an old Gemfile.lock with lots of deps to constrain newly added gems to old versions.
<havenwood>
weaksauce: The Gemfile.lock holds you back, intentionally.
<weaksauce>
havenwood yeah this is a newish greenfield project though
<havenwood>
weaksauce: What gem is contraining?
<havenwood>
constraining*
<weaksauce>
the gemfile.lock was maybe a week old
<havenwood>
weaksauce: Share the Gemfile.lock?
<havenwood>
weaksauce: Or check it for what constrained your new gem to an old version?
davispuh has joined #ruby
<havenwood>
Side note, but `bundle env` is a pretty good way to get some relevant general info these days.
GodFather has joined #ruby
ujjain2_ has joined #ruby
ujjain2 has quit [Ping timeout: 256 seconds]
ujjain2_ has quit [Client Quit]
gix has quit [Quit: Client exiting]
<weaksauce>
havenwood here's the gemfile... the only thing i changed was to pin the version of the last line from gem "shopify_app" to something with a version and ran bundle update doing that did a few very minor point releases of unrelated gems and updated the shopify gems from 7 to 14. I've never seen bundler pick something so far out of date https://gist.github.com/weaksauce/4b7f0f3b671394e5793d75e2e7246d66
ujjain2 has joined #ruby
gix has joined #ruby
<weaksauce>
havenwood i updated it to have the original gemfile.lock before adding that gem (well also dotenv but that was a separate addition)
<nakilon>
Rubyists, what's your another programming language when Ruby's speed or memory management isn't enough good?
<weaksauce>
for what
xco has joined #ruby
<nakilon>
for computations for example
alexherbo2 has quit [Ping timeout: 260 seconds]
<weaksauce>
c or c# maybe. really depends what the problem is
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]