<chrisseaton>
I vaguely recollect that the answer was that 10 is the last... it's the last number you specified. It isn't the end of the range, but it is the last number. I do remember something like that... but not sure where.
<chrisseaton>
"Note that with no arguments last will return the object that defines the end of the range even if exclude_end? is true."
<chrisseaton>
Yes I remember now - it's because if the range had two objects, not nice integers, but complex objects, how would you like Ruby to find the last object before it? How can Ruby find the value before some arbitrary value in your application domain? Maybe if you defined prev, but it doesn't know about that.
<chrisseaton>
Yes that was it - I remember this now.
<chrisseaton>
lopex: ^
<lopex>
ah
<chrisseaton>
kares: class Foo; def <=>; true; end; (Foo.new...Foo.new).last ... what would you like Ruby to tell you here??
<lopex>
so you should be aware of exclude_end? in ruby code then
<lopex>
chrisseaton: my favourite example is (Class.allocate..Class.allocate)
lopex has quit [Quit: Connection closed for inactivity]
vtunka has joined #jruby
rdubya has joined #jruby
prasun has joined #jruby
flavorjones_ has joined #jruby
hays_ has joined #jruby
hays_ has joined #jruby
deathy__ has joined #jruby
amdprophet_ has joined #jruby
fidothe_ has joined #jruby
cschneid has quit [Ping timeout: 246 seconds]
hays has quit [Read error: Connection reset by peer]
fidothe has quit [Read error: Connection reset by peer]
amdprophet has quit [Ping timeout: 246 seconds]
flavorjones has quit [Ping timeout: 246 seconds]
deathy_ has quit [Ping timeout: 246 seconds]
drbobbeaty has quit [Read error: Connection reset by peer]
adam12 has quit [Ping timeout: 246 seconds]
amdprophet_ is now known as amdprophet
flavorjones_ is now known as flavorjones
fidothe_ is now known as fidothe
deathy__ is now known as deathy_
balo has quit [Remote host closed the connection]
cschneid has joined #jruby
balo has joined #jruby
akp has joined #jruby
adam_ has joined #jruby
akp has quit [Ping timeout: 258 seconds]
rdubya has quit [Quit: Leaving.]
<GitHub42>
[jruby] anukin opened pull request #4714: [4688]add context and self to SizeFn (master...master) https://git.io/vQyog
kares has quit [Quit: ...]
adam_ is now known as adam12
Aethenelle has joined #jruby
kares has joined #jruby
akp has joined #jruby
akp has quit [Read error: Connection reset by peer]
akp has joined #jruby
lopex has joined #jruby
prasun has quit [Ping timeout: 246 seconds]
Aethenelle has quit [Quit: Aethenelle]
prasun has joined #jruby
vtunka has quit [Ping timeout: 240 seconds]
Aethenelle has joined #jruby
<kares>
chrisseaton: raise an error? doesn't make sense? there's end for getting the 'end' ...
<kares>
anyway I understand the reasoning - thank you very much for taking the time to explain
<chrisseaton>
kares: I think the reason you have both end and last is that last is really last(n) but just includes the option to omit n and have it be 1
<kares>
guess there's definitely no sense to report this one than :)
<kares>
well last(n) doesn't make sense for non 'Array-like' ranges anyway
<kares>
feels a bit not Ruby to me ... but hey who am I to tell :)
bbrowning is now known as bbrowning_away
enebo has joined #jruby
camlow325 has joined #jruby
prasun has quit [Ping timeout: 246 seconds]
bbrowning_away is now known as bbrowning
prasun has joined #jruby
prasun has quit [Ping timeout: 246 seconds]
prasun has joined #jruby
camlow325 has quit [Quit: WeeChat 1.5]
jayjlawrence has joined #jruby
prasun has quit [Ping timeout: 246 seconds]
jayjlawrence has quit [Client Quit]
prasun has joined #jruby
jayjlawrence has joined #jruby
<jayjlawrence>
Hey all - I have a weird issue and I'm not sure what's the cause. I've been happily building WARs using Warbler for several years now. Recently my packaged gems have presented this issue:
<jayjlawrence>
gnoring bcrypt-3.1.11 because its extensions are not built. Try: gem pristine etc...
<jayjlawrence>
I don't think it's my code because I haven't changed anything related to gems or warbler. I think its either rvm or bundler. I just don't know where to look next for culprit. Ideas??
<jayjlawrence>
reinstalled jruby 9.1.12.0 and gems and it is fixed. Must have been a post rvm upgrade garbling an existing jruby install. The wrapper script for "bundle" was also garbled. The reinstall fixed it.
<headius>
jayjlawrence: hello there
<headius>
I have seen that with rvm too, it seems to get confused about exts and JRuby when we don't use them
<jayjlawrence>
Hey hedius - sorry I have gone silent - I have been a slave to my work
<headius>
no problem...aren't we all :-)
<jayjlawrence>
I've got a few things on my mid term todo that I'd like to tackle BTW - there is the bundler matter from last fall that probably could benefit from some TLC; and then MS SQL JDBC in Rails 5. The latter is more pressing for me.
<jayjlawrence>
I chatted a bit with kares about the jdbc one ... so there's a preliminary game plan ... its a resource shortage matter at this time