* jordila
gonna use ^^ for ' $ rvm cleanup all' ...
bronson has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
Chuguniy has quit [Ping timeout: 265 seconds]
Chuguniy has joined #ruby
PaulePan1er is now known as PaulePanter
Ishido has quit [Ping timeout: 264 seconds]
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 265 seconds]
jottr has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
jordila1 has joined #ruby
l_tonz has quit [Remote host closed the connection]
jordila has quit [Ping timeout: 268 seconds]
vondruch has quit [Quit: vondruch]
jtdoncas has joined #ruby
vondruch has joined #ruby
fusta has quit [Ping timeout: 248 seconds]
jtdoncas has quit [Ping timeout: 265 seconds]
KeyJoo has joined #ruby
fusta has joined #ruby
InfinityFye has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
InfinityFye has joined #ruby
priodev has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
ltp has quit [Remote host closed the connection]
zwliew has quit [Quit: Connection closed for inactivity]
cabotto has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
iamarun has quit [Ping timeout: 265 seconds]
iamarun has joined #ruby
qba73 has joined #ruby
cdg has joined #ruby
mtkd has quit [Ping timeout: 265 seconds]
mtkd has joined #ruby
AJA4350 has joined #ruby
sundhell is now known as sundhell_away
jenrzzz has quit [Ping timeout: 276 seconds]
priodev has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 252 seconds]
mitch has joined #ruby
mitch is now known as Guest35681
ltp has joined #ruby
sepp2k has joined #ruby
Guest35681 has left #ruby [#ruby]
mitch000001 has joined #ruby
mikecmpbll has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
mh has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
mh is now known as mbbh
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jtdoncas has joined #ruby
milardovich has quit [Remote host closed the connection]
l_tonz has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
bronson has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
l_tonz has quit [Ping timeout: 248 seconds]
<mitch000001>
Hey, I just found something in a Ruby program I have never seen before. There was the use of `?` followed by a character. When looking into the source code of Ruby (parse.y) I found the function `static int parse_qmark(struct parser_params *parser, int space_seen)`. From how I understand it it is some sort of character escaping to parse a charcter without quotes within a Ruby source file. Does someone have any additional information about it
<mitch000001>
some documentation of the mentioned syntax elements? I could not find anything within ruby docs.
jordila1 has quit [Remote host closed the connection]
uZiel has joined #ruby
Burgestrand has quit [Quit: Closing time!]
m0x00 has quit [Max SendQ exceeded]
bkxd has joined #ruby
l_tonz has joined #ruby
jameser has joined #ruby
bronson has joined #ruby
jtdoncas has joined #ruby
jameser has quit [Client Quit]
bkxd_ has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
thinkpad has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
jtdoncas has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 268 seconds]
l_tonz has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
Gnukpd has joined #ruby
quobo has joined #ruby
uZiel has quit [Ping timeout: 272 seconds]
drcode has joined #ruby
conta1 has joined #ruby
conta has quit [Read error: Connection reset by peer]
conta1 is now known as conta
qba73 has quit [Ping timeout: 265 seconds]
jaruga has joined #ruby
qba73 has joined #ruby
unreal has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
thinkpad has quit [Quit: lawl]
Gnukpd has quit [Quit: Leaving]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
iamarun has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
clemens3 has joined #ruby
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
thinkpad has joined #ruby
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
tcopeland has quit [Quit: tcopeland]
manuscle has left #ruby ["Ex-Chat"]
jtdoncas has joined #ruby
ldnunes has quit [Quit: Leaving]
Sina has joined #ruby
m0x00 has joined #ruby
ldnunes has joined #ruby
Psybur has joined #ruby
Psybur has quit [Changing host]
Psybur has joined #ruby
apeiros has joined #ruby
bkxd_ has quit []
milardovich has quit [Remote host closed the connection]
plexigras has quit [Ping timeout: 240 seconds]
jtdoncas has quit [Ping timeout: 240 seconds]
plexigras has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
drewmcmillan has joined #ruby
jdawgaz has joined #ruby
randomstrangerb has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #ruby
mtkd has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
bronson has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
drewmcmi_ has joined #ruby
jeffreylevesque_ has joined #ruby
sundhell_away is now known as sundhell
alfiemax has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
kith has quit [Quit: kith]
jeffreylevesque has quit [Ping timeout: 252 seconds]
jeffreylevesque has joined #ruby
drewmcmillan has quit [Ping timeout: 265 seconds]
bronson has quit [Ping timeout: 260 seconds]
jeffreylevesque_ has quit [Ping timeout: 248 seconds]
mitch000001 has quit [Quit: mitch000001]
drewmcmi_ has quit [Read error: Connection reset by peer]
minimalism has quit [Quit: minimalism]
drewmcmillan has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
jtdoncas has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
jtdoncas has quit [Ping timeout: 265 seconds]
milardovich has joined #ruby
biberu has joined #ruby
jameser has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
jeffreylevesque has quit [Ping timeout: 264 seconds]
l_tonz has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
Psybur has joined #ruby
tvw has joined #ruby
apparition has joined #ruby
tvw has quit [Client Quit]
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
tcopeland has joined #ruby
jokester has joined #ruby
l_tonz has quit [Ping timeout: 240 seconds]
immune has joined #ruby
cdg has joined #ruby
jokester has quit [Quit: reboot]
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
immune has quit [Ping timeout: 264 seconds]
cdg has quit [Ping timeout: 246 seconds]
jokester has joined #ruby
TLAXKIT has joined #ruby
jtdoncas has joined #ruby
randomstrangerb has quit [Ping timeout: 240 seconds]
randomstrangerb has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
jokester has quit [Quit: WeeChat 1.6]
jottr has joined #ruby
Cavallari has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
synthroid has joined #ruby
cabotto has quit [Remote host closed the connection]
mbbh has left #ruby [#ruby]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
bronson has joined #ruby
cabotto has joined #ruby
chocoelho has joined #ruby
nortega has joined #ruby
jokester has joined #ruby
GremL1N has joined #ruby
leitz has joined #ruby
chocoelho has quit [Client Quit]
<nortega>
Greetings, I wanted to ask about an issue I've been running into. When trying to install a new version of the `erubis' gem I get an error: `/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- ubygems (LoadError)'
<nortega>
I feel like something is wrong, especially since it says that a file called `ubygems' is missing.
<nortega>
(instead of rubygems)
<nortega>
I've tried looking it up, but I haven't found too much on this.
bronson has quit [Ping timeout: 268 seconds]
l_tonz has joined #ruby
<nortega>
I'm running on an ArchLinux system.
<nortega>
I've been trying to install erubis via the AUR.
jokester has quit [Ping timeout: 255 seconds]
jnollette has quit [Write error: Connection reset by peer]
_aeris_ has quit [Read error: Connection reset by peer]
nortega has quit [Write error: Connection reset by peer]
mikecmpb_ has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
Cavallari has quit [Quit: Cavallari]
jokester has joined #ruby
<canton7>
nortega, personally I use gem to manage all gems on by arch linux system, and I don't use pacman at all there
<canton7>
'cos if you mix the two, that way lies pain, and not every gem will be in the aur
l_tonz has quit [Ping timeout: 268 seconds]
<nortega>
Actually, I really just use ruby for some vim plugins and tmuxinator, so pretty much all my gems come from the AUR or the repos (unless the AUR uses `gem').
<nortega>
In any case, what seems to be the typo to this?
<canton7>
the syntax is -rlibrary
mtkd has quit []
qba73 has quit [Ping timeout: 248 seconds]
<canton7>
so -rrubygems, not -rubygems
nadir has quit [Quit: Connection closed for inactivity]
mtkd has joined #ruby
mtkd has quit [Client Quit]
Burgestrand has joined #ruby
<nortega>
Oh... that would explain the `ubygems'
jtdoncas has joined #ruby
jnollette has joined #ruby
bmurt has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
k0mpa has joined #ruby
<canton7>
yep
jeffreylevesque has joined #ruby
<nortega>
Alright, that seems to have fixed it. I posted a comment on the AUR page. Thanks.
drewmcmillan has joined #ruby
jtdoncas has quit [Ping timeout: 264 seconds]
<nortega>
Now to see if tmuxinator will install correctly.
bmurt has quit [Client Quit]
<nortega>
Hmm, seems the tmuxinator package has a similar issue. Is the `-r' flag a new thing?
cdg has joined #ruby
l_tonz has joined #ruby
bmurt has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
leitz has quit [Quit: Nappy time]
cdg_ has joined #ruby
<canton7>
nortega, what's your ruby version?
<nortega>
2.5.0
<canton7>
hmm
<canton7>
my `ruby` does actually accept -rubygems just fine
<nortega>
Apparently my ruby version doesn't :/
<canton7>
just try 'ruby -rubygems -e 'puts "hi"'
<nortega>
"cannot load such file -- ubygems (LoadError)"
raynold has quit [Quit: Connection closed for inactivity]
l_tonz has quit [Ping timeout: 255 seconds]
<nortega>
As soon as I put the second 'r' it works.
<canton7>
aah, so -rubygems is fine on 2.0.0, and breaks on 2.5.0 (for me as well)
cdg has quit [Ping timeout: 240 seconds]
jokke has quit [Quit: WeeChat 2.0.1]
<dminuoso>
2.0.0, you must be a macOS user who hasnt upgraded yet
<canton7>
nah, windows
bmurt has quit [Ping timeout: 260 seconds]
<nortega>
Well, this is arch, the AUR should expect people to have the bleeding edge versions :P
Morrolan has quit [Quit: Goodbye]
Morrolan has joined #ruby
<canton7>
I don't do much ruby any more, but I keep an installation around
troulouliou_div2 has joined #ruby
workmad3_ has joined #ruby
zwliew has quit [Quit: Connection closed for inactivity]
<yrstrly>
why does this code just return 0...arr1.length rather than counting how many elements in each array are equivalent
chocoelho has joined #ruby
<yrstrly>
both arrays are the same length
aupadhye has quit [Ping timeout: 276 seconds]
<apeiros>
yrstrly: because the return value of a for loop is the iterated object
<apeiros>
`for x in obj; …; end` will always evaluate to `obj`
rabajaj has quit [Quit: Leaving]
<yrstrly>
Okay I understand that, but how then to change it so it checks each element?
jtdoncas has joined #ruby
<yrstrly>
it's returning integers because it's being iterated over an integer?
oleo has joined #ruby
cabotto has quit []
<dminuoso>
>> b = 0; a = for 0..10; b += 1; end; puts a
<ruby[bot]>
dminuoso: # => /tmp/execpad-c690920b2671/source-c690920b2671:2: syntax error, unexpected .., expecting &. or :: or ...check link for more (https://eval.in/932160)
<dminuoso>
Blah.
<dminuoso>
>> b = 0; a = for i in 0..10; b += 1; end; puts a
<apeiros>
yrstrly: if you want it to return count, then make count the last statement
jtdoncas has quit [Ping timeout: 255 seconds]
<dminuoso>
yrstrly: for loops itself are expressions.
<apeiros>
and it returns the iterated object because that's what the implementers decided to let it return
<yrstrly>
Thanks very much both
<apeiros>
yrstrly: also quite important: === is *not* testing equality.
<apeiros>
ruby is not like php/javascript where === is a more strict version of ==. === in ruby has entirely different semantics.
<yrstrly>
Thanks I realised that when I posted
chocoelho has quit [Quit: chocoelho]
<apeiros>
and your code in short: arr1.zip(arr2).count { |a,b| a == b }
ta_ has quit [Remote host closed the connection]
<yrstrly>
thanks
<apeiros>
oh, wow, no factoid on comparisons :-S
c785127 has joined #ruby
hfp_work has quit [Ping timeout: 246 seconds]
Hanmac_ has quit [Quit: Page closed]
milardovich has quit [Remote host closed the connection]
<apeiros>
!fact add compare equal?, eql?, ==, ===, =~ || equal? tests for identity; eql? tests whether two values are the same hash key or value in a set, == tests with regards to sorting (see <=>), === is for case/when expressions and methods like Enumerable#grep, all?, any?, none? etc.
<ruby[bot]>
apeiros: I will remember that compare is equal?, eql?, ==, ===, =~ || equal? tests for identity; eql? tests whether two values are the same hash key or value in a set, == tests with regards to sorting (see <=>), === is for case/when expressions and methods like Enumerable#grep, all?, any?, none? etc
<ruby[bot]>
.
<apeiros>
?compare
<ruby[bot]>
equal?, eql?, ==, ===, =~ || equal? tests for identity; eql? tests whether two values are the same hash key or value in a set, == tests with regards to sorting (see <=>), === is for case/when expressions and methods like Enumerable#grep, all?, any?, none? etc.
<dminuoso>
apeiros: "identity" needs to be defined into object identity.
<dminuoso>
apeiros: It's a good answer and covers all the cases.
jrafanie has joined #ruby
<dminuoso>
(It's what I used to look up until it was burned into my mind)
<apeiros>
hah, I even commented on it
zautomata has joined #ruby
<phaul>
somewhat related: the other day I tried to define an object where obj != obj to trick Array#include? so it thinks it's not in. (Codewars Kata - don't ask) Interestingly #include? bypasses == even though the documentation explicitly states otherwise
<apeiros>
!fact ed compare equal?, eql?, ==, === || https://stackoverflow.com/a/7157051 || equal? is obj identity || eql? is hash key/value in a set equality || == is sorting equality (see <=>) || === is for case/when and methods like Enumerable#grep, all?, any?, none? etc.
<ruby[bot]>
apeiros: I stand corrected that compare is equal?, eql?, ==, === || https://stackoverflow.com/a/7157051 || equal? is obj identity || eql? is hash key/value in a set equality || == is sorting equality (see <=>) || === is for case/when and methods like Enumerable#grep, all?, any?, none? etc.
<apeiros>
phaul: it optimizes. it does use ==, but only if the objects aren't the same
<apeiros>
`if (obj1 == obj2) return Qtrue;`
<apeiros>
only after that it goes through the (vastly more expensive) method invocation
qba73 has quit [Ping timeout: 240 seconds]
<apeiros>
the underlying assumption of course being that `a.equal?(b)` imlies `a == b`
<dminuoso>
apeiros: I frequently enjoy not having to think about such details in Haskell when requiring Eq is all I need, and any two lists [1,2,3] are considered identical..
qba73 has joined #ruby
<apeiros>
I can see that
<phaul>
I got to the same conclusion, I just thought it's interesting that the documentation bothers going into explicit details there
<dminuoso>
In Ruby that losely translates to "immutable code" is good.
<apeiros>
I think that's a general truth in programming
<apeiros>
if you can keep things immutable, go for it
hfp_work has joined #ruby
shinnya has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
John___ has quit [Ping timeout: 240 seconds]
safetypin has joined #ruby
bmurt has joined #ruby
pastorinni has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
l_tonz has joined #ruby
c785127 has quit [Quit: WeeChat 2.0]
jenrzzz has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
cdg_ has quit [Remote host closed the connection]
bronson has joined #ruby
<dminuoso>
apeiros: An interesting thing is how Ruby allows you to do this:
<dminuoso>
Using .equal? I would have accepted this, but == should give me some "WhoKnowsError"
Rapture has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
jtdoncas has joined #ruby
<apeiros>
dminuoso: why? you want it to return true if it "does the same"?
<dminuoso>
apeiros: Yes, but according to Rice's theorem that's impossible (as it would imply solving the halting problem)
<apeiros>
that's not the semantics of Proc#==, though
<apeiros>
i.e. your expectation is based on a flawed premise
jenrzzz has joined #ruby
<dminuoso>
apeiros: Well I expect == to be generic equality (i.e. two objects being extensionally equivalent)
l_tonz has quit [Ping timeout: 264 seconds]
<dminuoso>
apeiros: (And by extensionally equivalent I mean outside of __id__/.equal?/etc.)
<apeiros>
it's really ordering equality. whether two objects order the same. as in, in terms of <=>. if that's not possible, it's eql? or equal? semantics.
bronson has quit [Ping timeout: 276 seconds]
<apeiros>
at least that's how I understand and implement it. based on docs and Comparable
<dminuoso>
apeiros: I dont think that holds true properly.
<apeiros>
got a case in core/stdlib which would fail that assumption? (not denying that that might be possible)
<dminuoso>
apeiros: The documentation of BasicObject#== itself.
<dminuoso>
apeiros: The thing is, <=> implies a sensible implementation of == due to partial orders being anti symmetric.
jtdoncas has quit [Ping timeout: 276 seconds]
<apeiros>
"Equality --- At the Object level, == returns true only if obj and other are the same object."
troulouliou_div2 has quit [Quit: Leaving]
<apeiros>
that's precisely equal? semantics.
<dminuoso>
apeiros: Yes. but not <=> semantics.
cjkinni has joined #ruby
<apeiros>
you've got it the wrong way round
John___ has joined #ruby
nowhere_man has joined #ruby
<apeiros>
iff you can implement a sensible <=>, then == should be implemented in terms of <=>
<apeiros>
see Comparable#==
<dminuoso>
apeiros: absolutely yes, because if your type (i.e. class) is an order, then its anti symmetric.
<dminuoso>
but if its not, then what?
<apeiros>
in all other cases, == should follow either equal? (see Object#==) or eql? semantics.
<dminuoso>
clearly == cant mean "equality based on sorting" because not everything is sortable, but == exists for absolutely everything.
<dminuoso>
because BasicObject imbues everything with #==
<apeiros>
I understand how this can be viewed as an inconsistency and impure. but in practice it IME works quite well.
nowhereman_ has quit [Ping timeout: 240 seconds]
<dminuoso>
apeiros: Right, so its not a clear cut "#== means sorting equality" - it means "some generic equality that is sensible for the type of the object". If your type satisfies the Comparable mixin, then because Comparable implies a partial order, then through the antisymmetric relation you have a notion of "two objects being the same"
<dminuoso>
irb
<apeiros>
irb?
<dminuoso>
Hah I hit Cmd+3<cr>irb<cr> so rapidly, without realizing that weechat was in my third tab.
<phaul>
at least irb is not your password :)
<dminuoso>
phaul: Those kinds of mishaps cant happen. Everything uses pub key authentication or 1password here. =)
<dminuoso>
Well I guess there's the macOS password itself...
<dminuoso>
mmm.
<apeiros>
I don't know how to copy & paste my fingerprint
chichou has joined #ruby
<dminuoso>
apeiros: I dont envy you. I have a real escape key and F keys.
<dminuoso>
=P
<dminuoso>
I really wish there was a model with physical keys _and_ TouchID..
* apeiros
mumbles something which sounds like "duck you"
<dminuoso>
apeiros: vi user?
<apeiros>
I want: my current model, with the pre-2016 keyboard & touchpad + touchid. plus either a lightning port, or the iphones using usb-c, or the iphones having klinke again
<dminuoso>
Though escape you cant at least remap to capslock, and for vi you should be using Control+[ instead anyway.
aufi has joined #ruby
<dminuoso>
The latest iphone without usb was a real insult.
<dminuoso>
Was hoping for Apple to streamline everything to USB C.
<apeiros>
oh, and of course with unsoldered hard drive and ram, and the option to go beyond 16GB (which I had 5y ago already, ffs)
<dminuoso>
apeiros: the new imac pro has unsoldered ram
<apeiros>
same re iphone streamlined to usbc
<dminuoso>
you just have to dish out 5k-6k bucks.
<apeiros>
#ruby-offtopic?
<dminuoso>
Indeed.
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
cschneid_ has joined #ruby
jonjitsu has joined #ruby
chocoelho has joined #ruby
randomstrangerb has quit [Ping timeout: 246 seconds]
aufi has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #ruby
chocoelho has quit [Client Quit]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
aef has joined #ruby
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
conta has quit [Remote host closed the connection]
cdg has joined #ruby
krawchyk has joined #ruby
<garyserj>
Is there any way that I can write backslashes without having to escape them? I notice that even with single quotes 'abc\\def' will print abc\def
_aeris_ has joined #ruby
qba73 has quit [Ping timeout: 246 seconds]
gregf_ has joined #ruby
jrafanie_ has joined #ruby
pilne has quit [Quit: Quitting!]
jameser has quit [Remote host closed the connection]
jameser has joined #ruby
<apeiros>
garyserj: in an external file
jtdoncas has joined #ruby
<apeiros>
within code, there's no way to quote a string where you never have to escape a backslash
<apeiros>
with single quotes, *most* cases don't need escaping, though
cdg has quit [Remote host closed the connection]
<apeiros>
>> '\d'
<ruby[bot]>
apeiros: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
goatish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kenichi_ is now known as kenichi
l_tonz has joined #ruby
conta has joined #ruby
conta has quit [Client Quit]
Beams_ has quit [Remote host closed the connection]
jeffreylevesque_ has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
Beams has joined #ruby
l_tonz has quit [Ping timeout: 268 seconds]
nso95 has joined #ruby
ta_ has joined #ruby
randomstrangerb has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
PaulCapestany has quit [Ping timeout: 240 seconds]
PaulCape_ has joined #ruby
John___ has quit [Read error: Connection reset by peer]
dviola has quit [Quit: WeeChat 2.0.1]
govg has quit [Ping timeout: 265 seconds]
l_tonz has joined #ruby
Beams has quit [Quit: .]
claudiuinberlin has joined #ruby
l_tonz has quit [Ping timeout: 265 seconds]
l_tonz has joined #ruby
aufi has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
jtdoncas has joined #ruby
conta has joined #ruby
trolltoll has joined #ruby
l_tonz has quit [Ping timeout: 248 seconds]
Vapez_ has joined #ruby
alfiemax has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
cabotto has joined #ruby
marr has joined #ruby
Psybur has joined #ruby
conta has quit [Ping timeout: 265 seconds]
chocoelho has quit [Ping timeout: 265 seconds]
jtdoncas has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
mikecmpbll has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chocoelho has joined #ruby
naftilos76 has joined #ruby
l_tonz has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
apeiros has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
ricer2 has quit [Quit: Caught SystemExit exception.]
ricer2 has joined #ruby
l_tonz has quit [Ping timeout: 276 seconds]
Eiam has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
[Butch]_ has joined #ruby
sanscoeur has joined #ruby
[Butch] has quit [Read error: Connection reset by peer]
chocoelho has quit [Quit: chocoelho]
iceden has joined #ruby
l_tonz has joined #ruby
sepp2k has quit [Quit: Leaving.]
Dimik has joined #ruby
[Butch]_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
l_tonz has quit [Ping timeout: 265 seconds]
l_tonz has joined #ruby
apeiros has joined #ruby
drewmcmillan has joined #ruby
bronson has joined #ruby
l_tonz has quit [Ping timeout: 255 seconds]
randomstrangerb has quit [Ping timeout: 265 seconds]
LastWhisper____ has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
randomstrangerb has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
tomphp has joined #ruby
duane has joined #ruby
amclain has joined #ruby
dviola has joined #ruby
<duane>
anyone have any experience running traveling ruby as an AWS lambda function?
amclain has quit [Client Quit]
raynold has joined #ruby
<apeiros>
is ruby even supported by aws lambda?
workmad3_ has quit [Ping timeout: 268 seconds]
<duane>
it isnt - but using node as an entry point you can get traveling ruby to run...
dviola has quit [Client Quit]
<duane>
i have that working...traveling ruby is claiming that the native pg adapter is not there, but when i switch to a mysql adapter to test...it works just fine
<duane>
maybe more of a traveling ruby/native extension question than an AWS question
l_tonz has joined #ruby
cabotto has quit []
<chrisseaton>
Are frozen string literals garbage collected?
l_tonz has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
deafscribe has quit [Quit: Leaving]
dviola has joined #ruby
jeffreylevesque has joined #ruby
chichou has quit [Ping timeout: 260 seconds]
minimalism has quit [Read error: Connection reset by peer]
pookie has quit [Quit: All for nothing]
eckhardt has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
conta2 has joined #ruby
trolltoll has quit [Ping timeout: 252 seconds]
brent__ has joined #ruby
DTZUZU has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewmcmillan has joined #ruby
conta2 has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
randomstrangerb has quit [Ping timeout: 268 seconds]
randomstrangerb has joined #ruby
eckhardt has joined #ruby
kies has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
sameerynho has quit [Ping timeout: 264 seconds]
zack6849 has left #ruby ["WeeChat 2.0.1"]
kies has joined #ruby
l_tonz has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
trolltoll has joined #ruby
KeyJoo has joined #ruby
conta2 has joined #ruby
bronson has joined #ruby
l_tonz has quit [Ping timeout: 248 seconds]
nowhere_man has quit [Ping timeout: 276 seconds]
jottr has quit [Ping timeout: 256 seconds]
naftilos76 has quit [Quit: Αποχώρησε]
Vapez has joined #ruby
Vapez_ has quit [Ping timeout: 264 seconds]
zautomata2 has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
Sauvin has quit [Ping timeout: 264 seconds]
pastorinni has quit [Remote host closed the connection]
zautomata1 has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
Vapez has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
cdg has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
trolltoll has quit [Quit: Lost terminal]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
<havenwood>
chrisseaton: yes
TLAXKIT has quit [Ping timeout: 268 seconds]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
orbyt_ has joined #ruby
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
randomstrangerb has quit [Ping timeout: 268 seconds]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
guille-moe has joined #ruby
loincloth has joined #ruby
randomstrangerb has joined #ruby
<havenwood>
chrisseaton: Or at least I'd have sworn they were, but I can't seem to reproduce it actually.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 276 seconds]
tomphp has joined #ruby
nowhere_man has joined #ruby
safetypin has joined #ruby
<apeiros>
havenwood: why'd they be garbage collected? only case I could imagine is if a source file as a whole would be unloaded, no? or a piece of code lexically containing that literal (as in: remove_const or undef etc.)
mgalgs has joined #ruby
alex-tfdc has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chrisseaton>
apeiros: string constants at the top level of a file for example - think of all those require statements!
l_tonz has joined #ruby
<apeiros>
chrisseaton: ah yeah, makes sense
<apeiros>
they go out of scope
ldnunes has quit [Quit: Leaving]
<apeiros>
and there isn't necessarily any reference left. I see.
chocoelho has joined #ruby
chocoelho has quit [Client Quit]
jdawgaz has joined #ruby
<mgalgs>
So I'm sure I'm missing something simple, but does anyone know off-hand why my `bundle info middleman` works but `bundle exec middleman` doesn't?? I've already done a `bundle install`.
* baweaver
should probably update the article to clarify that it's out now
cpruitt_ has quit [Remote host closed the connection]
Riddell has joined #ruby
zautomata2 has quit [Ping timeout: 265 seconds]
cpruitt has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has quit [Ping timeout: 264 seconds]
jobewan has quit [Ping timeout: 248 seconds]
zautomata3 has quit [Ping timeout: 256 seconds]
raul782 has quit [Remote host closed the connection]
zautomata3 has joined #ruby
leitz has joined #ruby
vichib has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
nowhere_man has joined #ruby
<leitz>
Interesting. test-unit gives an error if you use the "ruby methods default to the last action" bit.
mikecmpbll has joined #ruby
cdg has joined #ruby
siasmj has quit []
<zenspider>
havenwood: leaking passwords?
Azure has quit [Read error: Connection reset by peer]
immune has joined #ruby
Azure has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
jxv has joined #ruby
<zenspider>
leitz: what does that mean?
elim_garak has joined #ruby
drewmcmillan has joined #ruby
Renich_ has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
<elim_garak>
if im wanting to install rubygems on ubuntu so i can install and use jekyll, do i use my distros package by using apt-get install rubygems ?
<leitz>
zenspider, this is the error. "career.rb:52: warning: assigned but unused variable - skill_options"
r3kz has quit [Quit: Connection closed for inactivity]
<leitz>
zenspider, if I add a "return skill_options" after line 55, the warning goes away.
<zenspider>
leitz: it's a warning and not an error, and it has nothing to do with test_unit... just ruby. You activate it by running with warnings on (`ruby -w` or `$-w = true`) and I recommend it.
<zenspider>
you also fix that code by removing the assignment entirely
<zenspider>
there's no need
<zenspider>
and don't use return unless you actually need to cut out early
<zenspider>
(you don't here)
<leitz>
Why don't I need the assignment?
immune has quit [Remote host closed the connection]
<leitz>
I know I don't need the return, except to silence the warning.
<baweaver>
"assigned but unused variable"
<baweaver>
that
<zenspider>
because ruby. you just want to return the value. you're not doing anything with the name you're assigning it to
immune has joined #ruby
<baweaver>
zenspider: meltdown / spectre CPU bug
<zenspider>
oh that shit
<leitz>
baweaver, that shows Ruby seems to mission the point.
<leitz>
The assignment is needed when it is needed. Not all the time.
<zenspider>
you wrote the code. you missed the point.
<baweaver>
Ruby implies returns, no need for a variable
TomyLobo has quit [Ping timeout: 255 seconds]
<baweaver>
If your 5 line method isn't adequately named enough to show that then there's your issue
LastWhisper____ has joined #ruby
KeyJoo has quit [Ping timeout: 256 seconds]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
<leitz>
Ah, so you're saying change L52 to: @skill_options + @advanced_skill_options ?
<zenspider>
yes: that's what I said in: "fix that code by removing the assignment entirely"
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
<leitz>
zenspider, it took me a while to get that. It's been a long day.
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
<leitz>
Also, to your "MAGIC_VALUES" point, the upp is becoming a hash and the key is non-magical.
<leitz>
Still working on that bit.
immune has quit [Ping timeout: 240 seconds]
<troydm>
I know this question might sound dumb but if I have defined class in some module how do I include it in rspec describe for testing so I could reference it by name directly instead of writing Module::Class
<zenspider>
not dumb
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
<zenspider>
so it is just a stand alone module and you need to test it via some instance or something?
alfiemax has quit [Ping timeout: 260 seconds]
<zenspider>
!connection ~k1ltzman@95.215.47.208
<ruby[bot]>
zenspider: Could not process command, usage: !connection nick [channel]