<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)
camlow325 has joined #jruby
camlow325 has quit [Client Quit]
camlow325 has joined #jruby
camlow325 has quit [Quit: WeeChat 1.5]
akp has quit [Ping timeout: 248 seconds]
akp has joined #jruby
_whitelogger has joined #jruby
_whitelogger has joined #jruby
akp has quit [Remote host closed the connection]
akp has joined #jruby
akp has quit [Remote host closed the connection]
prasun has joined #jruby
akp has joined #jruby
akp has quit [Ping timeout: 240 seconds]
nirvdrum has quit [Ping timeout: 248 seconds]
nirvdrum has joined #jruby
prasun has quit [Ping timeout: 276 seconds]
kith has joined #jruby
akp has joined #jruby
akp has quit [Ping timeout: 246 seconds]
vtunka has joined #jruby
vtunka has quit [Quit: Leaving]
akp has joined #jruby
akp has quit [Ping timeout: 246 seconds]
drbobbeaty has joined #jruby
bbrowning_away is now known as bbrowning
cshupp has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
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 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jayjlawrence has joined #jruby
<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
jayjlawrence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jayjlawrence has joined #jruby
jayjlawrence has quit [Client Quit]
prasun has quit [Ping timeout: 255 seconds]
enebo has quit [Quit: Leaving.]
enebo has joined #jruby
prasun has joined #jruby
prasun has quit [Remote host closed the connection]
<headius> yeah I understand...we are struggling too, only two fulltimers plus kares when he can for a whole ecosystem
<headius> we'll be here when you get back into it though
subbu is now known as subbu|afk
<rtyler> time to fundraise!
akp has quit [Ping timeout: 260 seconds]
<GitHub75> [jruby] headius pushed 1 new commit to ruby-2.4: https://git.io/vQSPd
<GitHub75> jruby/ruby-2.4 2ee022d Charles Oliver Nutter: [2.4] Overhaul of rounding, floor, ceil, and truncate for nums.
<headius> rtyler: yeah I guess so :-)
* rtyler prepares the pitch deck
Aethenelle has quit [Quit: Aethenelle]
ratnikov_ has joined #jruby
Aethenelle has joined #jruby
enebo has quit [Remote host closed the connection]
bbrowning is now known as bbrowning_away
subbu|afk is now known as subbu
enebo has joined #jruby
lanceball is now known as lance|afk
havenwood has quit [Excess Flood]
havenwood has joined #jruby
havenwood has joined #jruby
lance|afk has quit [Excess Flood]
lanceball has joined #jruby
Osho has quit [Remote host closed the connection]
havenwood has quit [Client Quit]
Osho has joined #jruby
<GitHub86> [jruby] headius pushed 3 new commits to ruby-2.4: https://git.io/vQ9eB
<GitHub86> jruby/ruby-2.4 5af0ca2 Charles Oliver Nutter: Update some numeric excludes.
<GitHub86> jruby/ruby-2.4 c52020c Charles Oliver Nutter: Remove a few rogue lines from Rational#round for half: even.
<GitHub86> jruby/ruby-2.4 472599c Charles Oliver Nutter: Additional tweaks and re-ports for Float#round and friends.