Is there any special reason that the rails guides demonstrate using the rails command with `bin/rails` when just using `rails` is actually executing the `bin/rails` binstub anyway?
havenwood: I checked out an old version of my app that uses rails 5.1.5, ran rails -v and it says 5.1.5 even though I have rails 5.2.0 installed. For example https://gist.github.com/ericmathison/eaf781bcf467f929c7503a2901373577
ari-_-e: ok. it says they are integers that can be represented by a native machine word minus one. maybe i'm missing something more fundamental though since in my current frame of thinking (~0b00000010).to_s(2) and (~0b10).to_s(2) would return '1'.
Probably missing something obvious here... I would expect "foobar\n"[/ar\n\Z/] to return nil since \Z is supposed to match just before a final newline if one exists. So why does it return "ar\n"?
but don't the docs say that if there is a final new line that \Z matches before it? how can the \Z match if it comes after the position it is supposed to match?
in other words, it seems like the docs are saying that if there is a final newline, don't match the end of the string. match the position before the final character