havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
charliesome_ has joined #ruby
gnufied has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
darkmorph has joined #ruby
<havenwood> Radar: Range#cover? is fancy
peteley has joined #ruby
<havenwood> Radar: It checks whether the thing is between the beginning and end without iterating.
jenrzzz_ has joined #ruby
<havenwood> As long as it's comparable.
jdawgaz has joined #ruby
<Radar> havenwood: oh nice. I should probably use that here instead.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg_ has joined #ruby
ahoyhere2 has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 248 seconds]
agent_white has quit [Quit: leaving]
cdg has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 248 seconds]
cagomez_ has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
bib has joined #ruby
bib has quit [Client Quit]
apeiros has joined #ruby
ineb has joined #ruby
charliesome has joined #ruby
Freshnuts has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
charliesome_ has quit [Ping timeout: 248 seconds]
gnufied has quit [Ping timeout: 258 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
charliesome_ has joined #ruby
pilne has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<darix> time to open bugs against seed-fu and AR for pg10 support
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
jgt_ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
ElDoggo has quit [Remote host closed the connection]
p0p0pr37 has quit [Read error: Connection reset by peer]
p0p0pr37 has joined #ruby
AndBobsYourUncle has joined #ruby
jenrzzz_ has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
shinnya has quit [Ping timeout: 248 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
John__ has quit [Read error: Connection reset by peer]
jdawgaz has quit [Client Quit]
<darix> hmm it is only AR 4.2.10
<darix> Radar: worth to open a bug for it anyway?
jdawgaz has joined #ruby
<Radar> darix: uh I wasn't aware we were having a conversation about that
jdawgaz has quit [Client Quit]
<darix> Radar: i just asked one question about it. nothing more.
troys is now known as troys_
jdawgaz has joined #ruby
<Radar> darix: but why ask me?
jdawgaz has quit [Client Quit]
<darix> you arent on the rails team anymore?
* Radar tries to remember a time he was actually on the Rails team, can't.
<Radar> And is this even a Rails issue?
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<darix> Radar: active record 4.2.10 has similar code to what is buggy in seed-fu
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
griffindy has joined #ruby
charliesome has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome_ has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has joined #ruby
jgt_ has quit [Ping timeout: 240 seconds]
defn has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
<defn> apeiros: any thoughts on mucking with the random seed for hash values using set_trace_func?
apeiros has quit [Ping timeout: 248 seconds]
lxsameer has quit [Quit: WeeChat 1.9.1]
ur5us has joined #ruby
ineb has quit [Ping timeout: 255 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
defn has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
jphase has joined #ruby
charliesome has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
jphase has quit [Ping timeout: 240 seconds]
charliesome_ has quit [Ping timeout: 240 seconds]
quobo has quit [Quit: Connection closed for inactivity]
AnoHito has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 248 seconds]
mjolnird has quit [Quit: Leaving]
jphase has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
CrazyEddy has quit [Remote host closed the connection]
apeiros has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
charliesome_ has joined #ruby
sucks has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 248 seconds]
charliesome has quit [Ping timeout: 260 seconds]
AndBobsYourUncle has joined #ruby
jphase has joined #ruby
ur5us has joined #ruby
alfiemax has joined #ruby
jgt_ has joined #ruby
charliesome has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
alfiemax_ has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
charliesome_ has quit [Ping timeout: 248 seconds]
<Radar> darix: https://github.com/jeremyevans/sequel/issues/1445 It would be good here to show how to reproduce that issue.
alfiemax has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
jphase has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<darix> Radar: i can only reproduce it on seed-fu right now (see meta.discourse.org) but given sequel has the same code.
<Radar> darix: exactly what command do I need to run in sequel's codebase to see a breakage on postgresql 10?
apeiros has quit [Ping timeout: 248 seconds]
neo95 has joined #ruby
charliesome_ has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
<darix> seems sequel actually handles pg10 already
goyox86 has joined #ruby
<darix> it would have been reset_primary_key_sequence
charliesome has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
<Radar> darix: soooo there really is no issue with the sequel gem at all?
h-michael has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 248 seconds]
mjolnird has joined #ruby
mjolnird has quit [Max SendQ exceeded]
mjolnird has joined #ruby
hutch34 has joined #ruby
jphase has quit [Ping timeout: 260 seconds]
jgt_ has quit [Read error: Connection reset by peer]
RickHull has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
Devalo has joined #ruby
d^sh has quit [Ping timeout: 264 seconds]
hutch34 has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
charliesome_ has quit [Ping timeout: 248 seconds]
d^sh has joined #ruby
<Radar> You're right that it's broken in sequel, but only on the latest gem release. Master contains a fix for this problem already.
Devalo has quit [Ping timeout: 240 seconds]
iamyask has quit [Quit: Connection closed for inactivity]
<Radar> I include my steps to reproduce the issue, and a link to the commit which fixes it.
hutch34 has joined #ruby
jphase has joined #ruby
goyox86 has quit [Quit: goyox86]
apeiros has quit [Ping timeout: 260 seconds]
alfiemax_ has quit [Remote host closed the connection]
jphase has quit [Ping timeout: 240 seconds]
<darix> thank you for the deeper look!
neo95 has quit [Quit: Leaving]
charliesome_ has joined #ruby
enterprisey has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
ElDoggo has joined #ruby
xall has joined #ruby
ElDoggo_ has joined #ruby
AndBobsYourUncle has joined #ruby
jdawgaz has joined #ruby
<darix> Radar: the good news is i can link the sequel fix to seed-fu as guideline how to fix it :D
ElDoggo has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
Freshnuts has quit [Ping timeout: 240 seconds]
ElDoggo has joined #ruby
nofxx has joined #ruby
ElDoggo_ has quit [Ping timeout: 240 seconds]
ElDoggo_ has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 252 seconds]
h-michael has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 258 seconds]
apeiros has joined #ruby
ElDoggo__ has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
ElDoggo has quit [Ping timeout: 240 seconds]
ElDoggo_ has quit [Ping timeout: 240 seconds]
ElDoggo has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
ElDoggo__ has quit [Ping timeout: 248 seconds]
apeiros has quit [Ping timeout: 248 seconds]
ElDoggo_ has joined #ruby
ElDoggo__ has joined #ruby
ElDoggo has quit [Ping timeout: 240 seconds]
ElDoggo_ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ElDoggo__ has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome_ has quit [Ping timeout: 248 seconds]
jdawgaz has joined #ruby
cdg has joined #ruby
charliesome has quit [Client Quit]
jphase has joined #ruby
ur5us has quit [Remote host closed the connection]
nopolitica has joined #ruby
ZombiemirPutin is now known as davic
nofxx has quit [Quit: Leaving]
sucks_ has joined #ruby
nofxx has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
guacamole has joined #ruby
sucks has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
cagomez has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
ur5us has joined #ruby
gizmore has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
gizmore|2 has quit [Ping timeout: 248 seconds]
troys_ is now known as troys
jphase has joined #ruby
guacamole has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
DLSteve has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
RougeR has quit [Quit: Leaving]
hutch34 has joined #ruby
sorg has joined #ruby
<sorg> Hi, I'm using Regex for a project. Every time I use mystring.match() should I pass in Regexp.new(/my regex/) or is mystring.match(/mystring/) enough?
<Radar> sorg: the latter is fine
<sorg> Radar: Great, thanks!
sorg has quit [Client Quit]
alan_w has joined #ruby
alan_w has quit [Client Quit]
orbyt_ has joined #ruby
uZiel has joined #ruby
xall_ has joined #ruby
alfiemax_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
<nofxx> Radar, ain't =~ /more rubesque?/
xall has quit [Read error: Connection reset by peer]
<Radar> nofxx: who am I to judge?
jphase has quit [Ping timeout: 255 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall_ has quit [Client Quit]
cagomez has quit [Remote host closed the connection]
apeiros has joined #ruby
kies has quit [Ping timeout: 240 seconds]
<darix> nofxx: tbh i prefer .match nowadays as i get a match object. and named match groups are so much more fun
<Radar> >> "quick brown fox jumped over"[/brown/, 0]
<ruby[bot]> Radar: # => "brown" (https://eval.in/891068)
<Radar> >> "quick brown fox jumped over"[/brown/]
<ruby[bot]> Radar: # => "brown" (https://eval.in/891069)
<Radar> >> "quick brown fox jumped over" =~ /brown/
<ruby[bot]> Radar: # => 6 (https://eval.in/891070)
<Radar> >> "quick brown fox jumped over".match(/brown/)
<ruby[bot]> Radar: # => #<MatchData "brown"> (https://eval.in/891071)
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Radar> nofxx: So it depends, really. Did sorg want the character position or MatchData?
dviola has quit [Quit: WeeChat 1.9.1]
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
<darix> >> "quick brown fox jumped over".match(/(?<color>brown)/)
<ruby[bot]> darix: # => #<MatchData "brown" color:"brown"> (https://eval.in/891074)
jphase has joined #ruby
<darix> >> mo="quick brown fox jumped over".match(/(?<color>brown)/); mo[:color]
<ruby[bot]> darix: # => "brown" (https://eval.in/891077)
jdawgaz has joined #ruby
guardianx has joined #ruby
cagomez has joined #ruby
ozcanesen has joined #ruby
cschneid_ has joined #ruby
apeiros has joined #ruby
sucks__ has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 248 seconds]
cagomez has quit [Ping timeout: 248 seconds]
cdg has quit [Remote host closed the connection]
sucks_ has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chrisarcand> Radar: Surprised to see you here, thought you had permanently moved to Elixirland :)
<Radar> chrisarcand: I am everywhere :)
<chrisarcand> A good place to be
<Radar> I'm going to be teaching a bunch of people Ruby / Elixir over the next 6 months. I'm not leaving Ruby any time soon.
jphase has joined #ruby
uZiel has joined #ruby
apeiros has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
solocshaw has joined #ruby
RickHull has joined #ruby
jphase has joined #ruby
ledestin has joined #ruby
alnewkirk has joined #ruby
apeiros has joined #ruby
ramfjord has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<akkad> Elixir is the new hotness?
ledestin has quit [Client Quit]
<darix> aint that new
<RickHull> paul graham will finish arc one day and we can bask in the lisp re re surgence
apeiros has quit [Ping timeout: 246 seconds]
<RickHull> but haskell will eat everything (maybe?)
troys is now known as troys_
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 246 seconds]
guacamole has joined #ruby
guacamole has quit [Client Quit]
alnewkirk has quit [Ping timeout: 240 seconds]
<RickHull> how about Factor? Forth is pretty hip
jphase has quit [Ping timeout: 248 seconds]
<RickHull> and you can't count out SML or OCaml
<RickHull> Rust is *so* mainstream
<RickHull> wasn't there some spinoff of rebol fairly recently?
<RickHull> ah yes, Red -- The Language (TM)
<RickHull> is Dart going anywhere?
solocshaw has quit [Ping timeout: 252 seconds]
<RickHull> D seems neat
ledestin has joined #ruby
cdg has joined #ruby
<RickHull> i don't think smalltalk is coming back. what happened to the seaside framework? maglev? was that strongtalk?
<RickHull> is ObjC all we get?
jphase has joined #ruby
<RickHull> what about Urbit? and hoon and pwn and poon and what else?
apeiros has joined #ruby
<akkad> new relatively
cdg has quit [Ping timeout: 246 seconds]
jphase has quit [Ping timeout: 246 seconds]
nopolitica has quit [Quit: WeeChat 1.9]
apeiros has quit [Ping timeout: 246 seconds]
ineb has joined #ruby
dn` has quit [Read error: Connection reset by peer]
dn`_ has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
mson has quit [Quit: Connection closed for inactivity]
jphase has joined #ruby
ramfjord has joined #ruby
cschneid_ has quit [Remote host closed the connection]
solocshaw has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<darix> general relativity?
<Radar> akkad: yes it's the hotness :D
<akkad> but if ruby was perfect, why leave it?
* baweaver grabs popcorn
* Radar shares popcorn
<akkad> Lone Star Ruby Conference begets Lone Star Elixir Conference. it's tech, not fashion
<Radar> what if there was never The One Perfect Language (excluding haskell of course)
* baweaver glances at dminuoso
<Radar> he should be online soon
<baweaver> Na, that's basic summoning right there
<baweaver> either that or bitemyapp
jphase has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
ahrs has quit [Remote host closed the connection]
jphase has joined #ruby
ahrs has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
FastJack has joined #ruby
Freshnuts has joined #ruby
gix has quit [Ping timeout: 248 seconds]
benjen has quit [Ping timeout: 258 seconds]
anisha has joined #ruby
Xiti has quit [Quit: Xiti]
Freshnuts has quit [Remote host closed the connection]
anisha has quit [Client Quit]
Freshnuts has joined #ruby
anisha has joined #ruby
anisha has quit [Client Quit]
anisha has joined #ruby
apeiros has joined #ruby
anisha has quit [Client Quit]
gix has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
ap4y has quit [Ping timeout: 240 seconds]
alfiemax_ has quit [Remote host closed the connection]
Xiti has joined #ruby
Freshnuts has quit [Quit: Leaving]
Freshnuts has joined #ruby
Freshnuts has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 260 seconds]
govg has joined #ruby
Freshnuts has joined #ruby
kies has joined #ruby
jphase has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: minimalism]
jenrzzz has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
jdawgaz has joined #ruby
apeiros has joined #ruby
benjen has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
jphase has quit [Ping timeout: 260 seconds]
happyface has quit [Quit: Connection closed for inactivity]
apeiros has joined #ruby
<RickHull> if I had to bet my future on one framework going forward, it might be tensorflow
alfiemax_ has joined #ruby
* RickHull shots fired
<RickHull> says more about the future of technology in general than anything else
Technodrome has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 248 seconds]
jphase has joined #ruby
apeiros has joined #ruby
alfiemax has joined #ruby
jamesaxl has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
alfiemax_ has quit [Ping timeout: 240 seconds]
texasmynsted has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
LocaMocha has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
<texasmynsted> I see .rvm referenced in my .bashrc but no $HOME/.rvm directory exists. I also see chruby. Is chruby an alternative to rvm?
<Radar> texasmynsted: es
<Radar> yes*
jdawgaz has quit [Client Quit]
<texasmynsted> ok
<baweaver> ....do you have a highlight on rvm Radar? :P
<texasmynsted> I am trying to install bundler (again) for my octopress site, but failure message
jdawgaz has joined #ruby
<Radar> baweaver: no u
jdawgaz has quit [Client Quit]
<Radar> baweaver: I had a terminal window not quite full window size and IRC was poking out underneath it
<baweaver> What error?
<baweaver> Triple Monitor, center is IRC
jdawgaz has joined #ruby
<texasmynsted> gem install bundler
<texasmynsted> results in
<texasmynsted> ERROR: While executing gem ... (Errno::EACCES)
jdawgaz has quit [Client Quit]
darkmorph has quit [Ping timeout: 258 seconds]
<texasmynsted> sudo gem install bundler results in
<baweaver> try running `which ruby`
jdawgaz has joined #ruby
<texasmynsted> ERROR: While executing gem ... (Errno::EPERM)
<RickHull> easy there tiger
<texasmynsted> which ruby = "/usr/bin/ruby"
jdawgaz has quit [Client Quit]
<texasmynsted> lol
<baweaver> So still system Ruby then
<texasmynsted> sigh
<texasmynsted> ok, that is likely not goo
<texasmynsted> d
jphase has joined #ruby
jdawgaz has joined #ruby
<baweaver> One sec
<baweaver> Mac?
jdawgaz has quit [Client Quit]
<baweaver> that'll get you back to a stable state you can work from
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<texasmynsted> in the project I see both ".rbenv-version" and a ".rvmrc"
troys_ is now known as troys
<texasmynsted> there seems to be no rvm executable in the path.
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<RickHull> the project wants to use rvm. what is the story with the host?
<texasmynsted> so `rvm implode` = command not found
<baweaver> Probably not in your profile.
<texasmynsted> hm
jdawgaz has joined #ruby
<baweaver> I'd just run through that above link and make sure you update your bash_profile
jdawgaz has quit [Client Quit]
<texasmynsted> ok
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<RickHull> how does rvm or anything else handle sudo? like -- sudo is not even the same a root login environment or whatever
jdawgaz has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Client Quit]
<RickHull> related, I wonder if texasmynsted just needs something tweaked in the login environment
<RickHull> a PATH entry or rvm thingie
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
apeiros has joined #ruby
<texasmynsted> rvm is not installed
<RickHull> I gave up a while back on trying to use version managers on a system-wide basis
jdawgaz has quit [Client Quit]
<texasmynsted> I checked brew and macports
<RickHull> and just use them in homedir
<Radar> texasmynsted: hey you were following that guide that baweaver linked to, yeah?
PaulCape_ has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<texasmynsted> I can start from there. I have rubies installed and somethhing called ruby_select
jdawgaz has joined #ruby
aupadhye has joined #ruby
jdawgaz has quit [Client Quit]
PaulCapestany has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
ElDoggo has joined #ruby
jdawgaz has joined #ruby
ElDoggo has quit [Remote host closed the connection]
ElDoggo has joined #ruby
ElDoggo has quit [Remote host closed the connection]
jdawgaz has quit [Client Quit]
jphase has joined #ruby
jdawgaz has joined #ruby
anisha has joined #ruby
jdawgaz has quit [Client Quit]
ElDoggo has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
alex`` has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v3.0 Beta Build (2017/11/02) 64 Bit]
Tempesta has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
ElDoggo has quit [Ping timeout: 264 seconds]
ElDoggo has joined #ruby
iamarun has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<texasmynsted> hopefully there will be no conflicts
jphase has joined #ruby
kies has quit [Ping timeout: 240 seconds]
ElDoggo has quit [Ping timeout: 240 seconds]
ElDog____ has joined #ruby
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
ElDoggo__ has joined #ruby
apeiros has joined #ruby
<texasmynsted> this link right?
ElDog____ has quit [Ping timeout: 240 seconds]
<Radar> yes.
<texasmynsted> ok, thank you.
<texasmynsted> will give that a try tomorrow.
jphase has quit [Ping timeout: 252 seconds]
ElDoggo__ has quit [Ping timeout: 240 seconds]
ElDoggo_ has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
ineb has quit [Ping timeout: 258 seconds]
solocshaw has quit [Ping timeout: 248 seconds]
solocshaw has joined #ruby
ineb has joined #ruby
jphase has joined #ruby
ElDoggo_ has quit [Ping timeout: 260 seconds]
sucks_ has joined #ruby
sucks_ has quit [Read error: Connection reset by peer]
sucks__ has quit [Ping timeout: 240 seconds]
kriskropd has quit [Ping timeout: 240 seconds]
ElDoggo has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raynold has quit [Quit: Connection closed for inactivity]
apeiros has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Devalo has joined #ruby
lacour has quit [Quit: Leaving]
ElDoggo has quit [Ping timeout: 246 seconds]
jphase has quit [Ping timeout: 240 seconds]
Hexafox[I] has joined #ruby
ElDoggo_ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
ElDogg___ has joined #ruby
dionysus69 has quit [Client Quit]
jphase has joined #ruby
ElDoggo_ has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
ElDoggo has joined #ruby
kriskropd has joined #ruby
troys has quit [Quit: Bye]
ElDogg___ has quit [Ping timeout: 246 seconds]
apeiros has quit [Ping timeout: 248 seconds]
ElDoggo has quit [Ping timeout: 248 seconds]
guacamole has joined #ruby
ElDogg___ has joined #ruby
cschneid_ has joined #ruby
kculpis has quit [Ping timeout: 240 seconds]
guardianx has quit []
jphase has quit [Ping timeout: 248 seconds]
ElDoggo__ has joined #ruby
mochiyoda_ has quit [Ping timeout: 264 seconds]
ElDogg___ has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
mochiyoda_ has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
ElDoggo has joined #ruby
ElDoggo__ has quit [Ping timeout: 246 seconds]
apeiros has quit [Ping timeout: 240 seconds]
ElDoggo has quit [Ping timeout: 255 seconds]
biberu has joined #ruby
ElDoggo has joined #ruby
oleo has quit [Quit: Leaving]
ElDoggo has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
Technodrome has joined #ruby
SCHAPiE has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
michael1 has joined #ruby
Wirehead_Wannabe has joined #ruby
ta has quit [Remote host closed the connection]
alfiemax_ has joined #ruby
apeiros has joined #ruby
ludova has joined #ruby
Paraxial has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 246 seconds]
Paraxial has joined #ruby
Wirehead_Wannabe has left #ruby ["Leaving"]
SCHAPiE has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 246 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
dionysus69 has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Paraxial has quit [Ping timeout: 248 seconds]
snickers has joined #ruby
jgt has joined #ruby
Paraxial has joined #ruby
apeiros has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
Paraxial has quit [Read error: Connection reset by peer]
michael1 has quit [Ping timeout: 240 seconds]
Paraxial has joined #ruby
conta has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
MatrixRuby has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
MatrixRuby has quit [Client Quit]
alfiemax has joined #ruby
jgt_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
apeiros has joined #ruby
ledestin has joined #ruby
alfiemax_ has joined #ruby
jgt_ has quit [Ping timeout: 240 seconds]
reber has joined #ruby
jgt_ has joined #ruby
yCrazyEdd has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
zacts has quit [Ping timeout: 246 seconds]
jphase has quit [Ping timeout: 240 seconds]
jgt_ has quit [Ping timeout: 248 seconds]
Paraxial has quit [Ping timeout: 252 seconds]
hurricanehrndz has quit [Quit: Goodbye]
Paraxial has joined #ruby
code_zombie has quit [Quit: Leaving]
kies has joined #ruby
jphase has joined #ruby
wu__ has joined #ruby
Freshnuts has quit [Quit: Leaving]
jgt_ has joined #ruby
hfp_work has quit [Ping timeout: 246 seconds]
hurricanehrndz has joined #ruby
uptime has joined #ruby
hfp_work has joined #ruby
Burgestrand has joined #ruby
Paraxial has quit [Read error: Connection reset by peer]
Xiti has quit [Quit: Xiti]
ShekharReddy has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
uptime has quit [Client Quit]
jgt_ has quit [Ping timeout: 240 seconds]
Paraxial has joined #ruby
mark_66 has joined #ruby
alex`` has joined #ruby
ta has joined #ruby
jphase has joined #ruby
uptime has joined #ruby
fusta has joined #ruby
Paraxial has quit [Ping timeout: 252 seconds]
TomyWork has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
kies has quit [Ping timeout: 246 seconds]
jgt_ has joined #ruby
kies has joined #ruby
alex`` has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
claudiuinberlin has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
fusta has quit [Ping timeout: 258 seconds]
jgt_ has quit [Ping timeout: 258 seconds]
jgt_ has joined #ruby
postmodern has quit [Quit: Leaving]
jgt_ has quit [Client Quit]
jphase has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
dn` has joined #ruby
Paraxial has joined #ruby
fusta has joined #ruby
dn`_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 252 seconds]
kies has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
mikecmpbll has joined #ruby
alex`` has joined #ruby
Paraxial has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Client Quit]
cdg has quit [Ping timeout: 258 seconds]
ElDoggo has joined #ruby
ta has joined #ruby
Paraxial has joined #ruby
ElDoggo_ has joined #ruby
dinfuehr has quit [Ping timeout: 248 seconds]
ElDoggo__ has joined #ruby
ur5us has joined #ruby
dinfuehr has joined #ruby
ElDogg___ has joined #ruby
ElDoggo has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
ElDoggo has joined #ruby
ta has joined #ruby
ElDoggo_ has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
Burgestrand has joined #ruby
ElDoggo__ has quit [Ping timeout: 260 seconds]
Paraxial has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 240 seconds]
ElDoggo__ has joined #ruby
ElDogg___ has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
ElDoggo has quit [Ping timeout: 260 seconds]
ta has quit [Ping timeout: 248 seconds]
ElDoggo has joined #ruby
ElDoggo__ has quit [Ping timeout: 240 seconds]
Paraxial has joined #ruby
ta has joined #ruby
ElDoggo has quit [Ping timeout: 240 seconds]
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
dhollinger has quit [Ping timeout: 248 seconds]
ElDoggo has joined #ruby
darkness has joined #ruby
Paraxial has quit [Ping timeout: 252 seconds]
iamarun has quit [Remote host closed the connection]
ElDoggo__ has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
ElDoggo has quit [Ping timeout: 258 seconds]
chmurifree has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
Klumben has quit [Ping timeout: 246 seconds]
ElDoggo__ has quit [Ping timeout: 240 seconds]
mjolnird has quit [Quit: Leaving]
mjolnird has joined #ruby
claudiuinberlin has joined #ruby
PaulCapestany has joined #ruby
ElDoggo__ has joined #ruby
ferr has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
ElDoggo__ has quit [Ping timeout: 264 seconds]
Klumben has joined #ruby
heinrich5991 has quit [Ping timeout: 246 seconds]
chmurifree has joined #ruby
heinrich5991 has joined #ruby
mim1k has joined #ruby
fusta has quit [Ping timeout: 248 seconds]
paranoicsan has joined #ruby
wu__ has quit [Ping timeout: 246 seconds]
Beams has joined #ruby
dhollinger has joined #ruby
marr has joined #ruby
haraoka has joined #ruby
kapil___ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quobo has joined #ruby
alfiemax has joined #ruby
Burgestrand has quit [Quit: Closing time!]
dextrey has joined #ruby
wu__ has joined #ruby
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away is now known as paranoicsan
ur5us has quit [Remote host closed the connection]
RickHull has quit [Ping timeout: 260 seconds]
FahmeF_ has joined #ruby
claudiuinberlin has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
FahmeF has quit [Ping timeout: 260 seconds]
QualityAddict has quit [Remote host closed the connection]
QualityAddict has joined #ruby
jottr has joined #ruby
haraoka has quit [Ping timeout: 240 seconds]
jottr has quit [Client Quit]
PaulCapestany has quit [Read error: Connection reset by peer]
ferr has quit [Quit: WeeChat 1.9.1]
ferr has joined #ruby
cdg has joined #ruby
PaulCape_ has joined #ruby
jphase has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
MatrixRuby has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
FahmeF has joined #ruby
raynold has joined #ruby
FahmeF_ has quit [Ping timeout: 240 seconds]
FahmeF_ has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
FahmeF has quit [Ping timeout: 246 seconds]
jinie has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
Serpent7776 has joined #ruby
mim1k has joined #ruby
hs366 has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
jaruga has joined #ruby
Burgestrand has joined #ruby
banisterfiend has joined #ruby
ur5us has joined #ruby
wu__ has quit [Ping timeout: 240 seconds]
shoogz has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
eroux has joined #ruby
GodFather has joined #ruby
eroux has quit [Client Quit]
ur5us has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
RougeR has joined #ruby
kacper has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
MatrixRuby has quit [Ping timeout: 246 seconds]
ek926m has joined #ruby
shoogz has joined #ruby
shoogz has quit [Changing host]
shoogz has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
<dminuoso> What the fuck.
<dminuoso> >> (1..2).map { |a| a * 2 }
<ruby[bot]> dminuoso: # => [2, 4] (https://eval.in/891386)
<dminuoso> Why am I not getting (2..4) ?
<dminuoso> This is insane.
* dminuoso pokes havenwood
* dminuoso pokes baweaver
<dminuoso> Functional programmers, we must unite.
<dminuoso> Range could be such an awesome Functor.
anisha has joined #ruby
ek926m has quit [Ping timeout: 248 seconds]
nopolitica has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
mim1k has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
apparition has joined #ruby
chouhoulis has joined #ruby
ramfjord has joined #ruby
banisterfiend has joined #ruby
am55 has joined #ruby
mjolnird has quit [Quit: Leaving]
mjolnird has joined #ruby
alfiemax has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
bob_f has joined #ruby
tvw has joined #ruby
<bob_f> Hi. When `String === foo` is evaluated, is there a method called on `foo` that I can override to affect the result of the expression ?
b0zz0_ has quit [Quit: Leaving]
b0zz0 has joined #ruby
ek926m has joined #ruby
<dminuoso> bob_f: so if foo responds to to_str, that's what will be used.
<dminuoso> Or no.
<bob_f> dminuoso: Okay, that makes sense.
<bob_f> Oh. :(
ek926m has quit [Max SendQ exceeded]
<dminuoso> bob_f: I was looking at String#===
<dminuoso> bob_f: for String === it's Class#=== that will be used.
ek926m has joined #ruby
<dminuoso> Fooled me well there.
alfiemax has quit [Ping timeout: 246 seconds]
<bob_f> dminuoso: Aha, interesting. I am trying to do something awful, and this was a hurdle.
<dminuoso> bob_f: Or Module#=== rather
morfin has joined #ruby
<morfin> hello
<morfin> rubygems rely on tags when downloading from git?
ek926m has quit [Max SendQ exceeded]
ek926m has joined #ruby
ek926m has quit [Max SendQ exceeded]
<morfin> as example i have gem which i added like gem 'mygem', '~1.0.0' would it rely on tags or what?
GreatMazi has joined #ruby
ek926m has joined #ruby
ek926m has quit [Remote host closed the connection]
ek926m has joined #ruby
<bob_f> dminuoso: Yeah, so I made the same mistake as you, but unfortunately looking at Module#=== it doesn't look like there's anything I can override.
<bob_f> dminuoso: Unless rb_ob_js_kind_of(arg, mod) calls a method on the RHS object ?
<bob_f> Sorry for the typo - working on two machines at the moment.
<bob_f> C source for `rb_obj_is_kind_of` suggests it just looks directly at the object's class/ancestors, rather than calling any Ruby instance method.
Psybur has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
<bob_f> dminuoso: Ah, don't worry about it - I just changed the `if String === value` line elsewhere in the lib. No need to hack this.
<bob_f> Thanks for the pointer though.
<morfin> well, you can just get ancestors and checn include? i guess
<morfin> it works even with included classes
<bob_f> morfin: The class doesn't inherit from String. It used to, but I think this is a mistake so I'm changing that.
<morfin> bob_f look at this
<elomatreb> morfin: gems are downloaded and published according to the versions on rubygems.org, unless you use the bundler git endpoints git tags play no role
<morfin> i use git endpoint and wondering how versions are handled for such gems
darkness has quit [Remote host closed the connection]
<dminuoso> It's reasonable to use tags on commits that have been released on rubygems.org though
<morfin> >> module Foo end; class Bar include Foo; end; Bar.ancestors
<ruby[bot]> morfin: # => [Bar, Foo, Object, Kernel, BasicObject] (https://eval.in/891467)
<morfin> bob_f, see - Bar do not inherit from Foo but still has Foo in ancestors
<elomatreb> If you use git endpoints I think it will by default grab the latest master commit, unless you tell it to get a tag or some other branch
<bob_f> morfin: Sure, but you can't `include String` on a class so I'm not sure how this helps ?
nadir has joined #ruby
<bob_f> morfin: The solution is to just fix the single point where it checks if the type is a String, and add the actual type of the object instead, rather than relying on it having String as an ancestor.
mim1k has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<morfin> i don't get it why everybody likes Iordania domains
Psybur has quit [Ping timeout: 240 seconds]
<elomatreb> It's the cTLD of "British Indian Ocean Territories", actually. And I guess it became cool among tech people due to being similar to I/O?
<morfin> bob_f, i'd rather check if it quacks as duck )
quobo has quit [Quit: Connection closed for inactivity]
anisha has joined #ruby
<bob_f> morfin: Hey, me too, but this is a PR far Arel, so I'm not about to change their methodology. :)
alfiemax has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<morfin> well, i think i will change my gem and bump version in it and everything in theory should be fine
charliesome has joined #ruby
MatrixRuby has joined #ruby
<morfin> hmm
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
RougeR has quit [Ping timeout: 248 seconds]
xMopxShell has quit [Ping timeout: 246 seconds]
shoogz- has joined #ruby
GreatMazi1 has joined #ruby
shoogz has quit [Ping timeout: 255 seconds]
Psybur has joined #ruby
GreatMazi has quit [Ping timeout: 252 seconds]
shoogz- has quit [Ping timeout: 240 seconds]
Antiarc has quit [Remote host closed the connection]
Antiarc has joined #ruby
gnufied has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
cschneid_ has joined #ruby
MatrixRuby has quit [Quit: Leaving]
[[thufir]] has joined #ruby
bruno- has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
Psybur has quit [Ping timeout: 248 seconds]
solocshaw has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Burgestrand has quit [Quit: Closing time!]
cabotto has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
claudiuinberlin has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
im0nde has joined #ruby
jdawgaz has joined #ruby
darkmorph has joined #ruby
paranoicsan is now known as paranoicsan[Away
brendan- has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
mson has joined #ruby
jphase has joined #ruby
im0nde has quit [Quit: im0nde]
banisterfiend has joined #ruby
alnewkirk has joined #ruby
Burgestrand has joined #ruby
shinnya has joined #ruby
cdg has joined #ruby
paranoicsan[Away is now known as paranoicsan
cdg has quit [Ping timeout: 246 seconds]
gGREATmAZI has joined #ruby
ek926m has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 248 seconds]
yebo_ has joined #ruby
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GreatMazi1 has quit [Ping timeout: 246 seconds]
KenSentMe has joined #ruby
Psybur has joined #ruby
am55 has joined #ruby
<KenSentMe> Hello, i’m trying to write a script where a sound is played when a certain key is pressed. How can i let the script do something when for example pressing the ‘a’ key?
chouhoul_ has joined #ruby
aufi has quit [Remote host closed the connection]
exchgr has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
alfiemax has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
<yebo_> anyone able to use two email servers we tried and it failed, any help appreciated https://stackoverflow.com/questions/47073869/multiple-action-mailer-not-working-in-rails
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkmorph has quit [Quit: WeeChat 1.9.1]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
lele has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Client Quit]
bruno- has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Remote host closed the connection]
exchgr has joined #ruby
jdawgaz has joined #ruby
impermanence has joined #ruby
chouhoulis has joined #ruby
nowhere_man has joined #ruby
GreatMazi has joined #ruby
jdawgaz has quit [Client Quit]
am55 has quit [Quit: Textual IRC Client: www.textualapp.com]
jdawgaz has joined #ruby
cdg has joined #ruby
lele has joined #ruby
<dminuoso> yebo_: ?rails
<dminuoso> ?rails yebo_
<ruby[bot]> yebo_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
gGREATmAZI has quit [Ping timeout: 252 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
ramfjord has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paranoicsan is now known as paranoicsan[Away
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
nowhere_man has quit [Ping timeout: 248 seconds]
def_jam has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
Exagone313 has quit [Quit: see ya!]
eb0t_ has joined #ruby
jdawgaz has quit [Client Quit]
eblip has quit [Ping timeout: 248 seconds]
eb0t has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
jdawgaz has joined #ruby
Exagone313 has joined #ruby
jdawgaz has quit [Client Quit]
[[thufir]] has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
[[thufir]] has joined #ruby
ElDoggo has joined #ruby
[[thufir]] has quit [Remote host closed the connection]
minimalism has joined #ruby
paranoicsan[Away is now known as paranoicsan
ramfjord has joined #ruby
alfiemax has quit [Ping timeout: 258 seconds]
ElDoggo has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
mikejw has joined #ruby
<mikejw> anyone know how I use asciidoc.js in the browser?
KenSentMe has quit [Quit: KenSentMe]
funburn has joined #ruby
<mikejw> I guess follow these steps?
<mikejw> can't get any official approach working
kapil___ has quit [Quit: Connection closed for inactivity]
DLSteve has joined #ruby
kspencer is now known as BDay|kspencer
banisterfiend has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
def_jam is now known as eb0t
Hexafox[I] has quit [Ping timeout: 260 seconds]
aupadhye has quit [Ping timeout: 248 seconds]
xrlabs has joined #ruby
parzo has joined #ruby
Rapture has joined #ruby
funburn_ has joined #ruby
funburn has quit [Ping timeout: 240 seconds]
funburn_ is now known as funburn
raynold has quit [Quit: Connection closed for inactivity]
impermanence has quit [Ping timeout: 260 seconds]
ineb has quit [Ping timeout: 248 seconds]
darkmorph has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
alfiemax_ has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
iamarun has joined #ruby
tvw has quit [Remote host closed the connection]
webguynow has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
cadillac_ has joined #ruby
John___ has joined #ruby
nofxx has joined #ruby
snickers has quit [Ping timeout: 258 seconds]
iamarun has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
apparition has quit [Quit: Bye]
Rodya_ has quit [Remote host closed the connection]
nofxx has quit [Remote host closed the connection]
dextrey has quit [Ping timeout: 258 seconds]
Rodya_ has joined #ruby
cadillac_ has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
pushergene has joined #ruby
<pushergene> hi
govg has quit [Ping timeout: 248 seconds]
cadillac_ has joined #ruby
<yebo_> join #RubyOnRails
Pierreb has quit [Ping timeout: 246 seconds]
<havenwood> /join
<havenwood> pushergene: hi
Pierreb|home has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tcopeland has quit [Read error: Connection reset by peer]
tcopeland has joined #ruby
yaroslav has joined #ruby
yaroslav has quit [Client Quit]
oleo has joined #ruby
charliesome has joined #ruby
cabotto has quit [Remote host closed the connection]
jrafanie has joined #ruby
cabotto has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
<dminuoso> havenwood: So what is your opinion on what (1..2).map(&double) should do?
<havenwood> I think it should #!> NameError: undefined local variable or method `double'
<havenwood> ;-P
<dminuoso> Given double = -> (e) { e * 2 }
<dminuoso> Or rather:
<dminuoso> let double = -> (e) { e * 2 } in (1..2).map(&double)
<dminuoso> :p
<havenwood> .reverse.join
<dminuoso> Oo
<havenwood> Just trying to find meaning.
<dminuoso> Well, if its equipped with map its a functor right?
<bob_f> dminuoso: If you're remotely interested, this is why I was asking about String.=== earlier: https://github.com/rails/arel/pull/503/files
<elomatreb> tbf how often you actually want to enumerate all values in a range vs. how often you want to double a range, I think the current behavior is fine
<havenwood> mm
<dminuoso> elomatreb: Is it too much to ask for .to_a if you want an array?
charliesome_ has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
aufi has quit [Quit: Leaving]
<elomatreb> Maybe if it was designed to be like that from the start, but I don't think the effort of changing it now would be justified by that kind-of-nice behavior
charliesome has quit [Ping timeout: 255 seconds]
<dminuoso> havenwood: https://eval.in/891631
<dminuoso> Ive been having so much fun with this.
<dminuoso> But Range really tripped me over.
cagomez has joined #ruby
<dminuoso> Now if only you could invoke lvar callables like: doubleF [1,2,3]
kahra has joined #ruby
<dminuoso> Then Ruby would be awesomesauce.
<dminuoso> However! set_trace_func to the rescue!
alfiemax has quit [Ping timeout: 246 seconds]
kahra has quit [Client Quit]
polishdub has joined #ruby
pushergene has quit [Quit: Page closed]
pb122 has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
<havenwood> dminuoso: I guess the syntactical nicety is just a method definition away: define_method :doubler, doubleF
guacamole has joined #ruby
<texasmynsted> hmm. Why does "ruby-install --latest ruby" need my root password?
<havenwood> texasmynsted: do you not own your ~/.rubies/ directory?
<texasmynsted> This is a brew thing, it should not need root right?
bruno- has joined #ruby
<havenwood> texasmynsted: if you installed ruby-install with `sudo` it'll install to a system directory where you'll need root to install Rubies.
<havenwood> err
<texasmynsted> no I own it
<dminuoso> havenwood: Wow that's interesting. I mean I definitely dont want to tag my functions with define_method, it really diminishes the beauty of tacit programming.
<dminuoso> But TIL. Wasnt aware you could define_method against callables.
<texasmynsted> no just ruby-install
ek926m has joined #ruby
iamarun has joined #ruby
<havenwood> texasmynsted: It's odd, because the default location is in your home, so...
<texasmynsted> hmm
<havenwood> i retract what i said about root, i need coffee
ek926m has quit [Client Quit]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> texasmynsted: If you don't prefix your `ruby-install` command with `sudo` and don't otherwise have `UID == 0` then src/ and .rubies/ should be in $HOME.
<havenwood> texasmynsted: Check you can create a directory in ~/.rubies/ and ~/src/ as is?
<texasmynsted> I just did a ctrl-z and then whoami, and I am me not root
<havenwood> texasmynsted: mkdir ~/.rubies/test
<havenwood> texasmynsted: mkdir ~/src/test
rippa has joined #ruby
<texasmynsted> both directories created w/o error
<havenwood> texasmynsted: (( UID == 0 )) && echo "surprize, UID 0" || echo "as expected, not UID 0"
<texasmynsted> heh ok
<texasmynsted> as expected, not UID 0
cadillac_ has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 264 seconds]
<havenwood> texasmynsted: ah, it wants your root password for installing deps.
<havenwood> texasmynsted: betcha it'll not ask if you use --no-install-deps
<texasmynsted> hm
<texasmynsted> ok
<texasmynsted> I suppose I need deps
* texasmynsted shrug
<havenwood> yeah, i'd recommend
<havenwood> or install them yourself
<texasmynsted> I do not care about it asking for root. I just care that it is installing correctly
<havenwood> texasmynsted: Based on what you've shown, it should end up properly installed in ~/.rubies
<texasmynsted> ok
<texasmynsted> I suppose everything it is doing can be un-done if needed.
<havenwood> texasmynsted: yup!
<texasmynsted> :-)
ElDoggo has joined #ruby
mim1k has joined #ruby
cadillac_ has joined #ruby
ElDoggo has quit [Remote host closed the connection]
mson has quit [Quit: Connection closed for inactivity]
ElDoggo has joined #ruby
<texasmynsted> ok, got message "Successfully installed ruby 2.4.2 into /Users/mmynsted/.rubies/ruby-2.4.2"
<havenwood> texasmynsted: now if you restart your terminal chruby should detect it (assuming you're using chruby)
<texasmynsted> that sounds encouraging
alnewkirk has quit [Ping timeout: 240 seconds]
vipaca has joined #ruby
TheRealMattM has quit [Read error: Connection reset by peer]
TheRealMattM has joined #ruby
alnewkirk has joined #ruby
John___ has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
megamosaren has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
parzo has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 264 seconds]
techn1cs has quit [Ping timeout: 248 seconds]
John___ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Ping timeout: 260 seconds]
megamosaren is now known as Megamos
John___ has quit [Read error: Connection reset by peer]
jrafanie has joined #ruby
uZiel has joined #ruby
John___ has joined #ruby
netherwolfe has joined #ruby
cadillac_ has joined #ruby
sucks has joined #ruby
<yebo_> anyone know of busy IRC channels for ruby code questions?
robnester has left #ruby ["Leaving"]
<yebo_> we tried #RubyOnRails but almost dead
kculpis has joined #ruby
<TheBrayn> have you tried this channel right here?
<havenwood> yebo_: this is the Ruby language channel, so it's the perfect place to ask Ruby questions
<yebo_> <@ruby[bot]> yebo_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
synthroid has quit [Remote host closed the connection]
<yebo_> no one seems to have experience with using two mail servers see question https://stackoverflow.com/questions/47073869/multiple-action-mailer-not-working-in-rails
ferr has quit [Quit: WeeChat 1.9.1]
<dminuoso> Cant get more rails related than that.
moei has joined #ruby
<dminuoso> yebo_: "But It is not getting worked in production mode"
<dminuoso> Is a wonderful error description.
<dminuoso> I mean grammar aside, it doesn't tell much.
<yebo_> good point
cadillac_ has quit [Read error: Connection reset by peer]
Burgestrand has quit [Quit: Closing time!]
iamarun has quit [Remote host closed the connection]
<elomatreb> I'm assuming that syntax error in mailer2.rb is not in your actual files?
b0zz0 has quit [Quit: Leaving]
ramfjord has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
<dminuoso> havenwood: How much code you think might break, that given `foo bar` it would call foo.call(bar) if `foo` was known to be a local variable?
<dminuoso> I mean covering method names with lvars, but using those same methods in the same scope ought to be a rare thing.
<dminuoso> And bad style ontop.
<dminuoso> covering = hiding
synthroi_ has joined #ruby
synthroid has quit [Remote host closed the connection]
michael1 has joined #ruby
Technodrome has joined #ruby
anisha has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ehxor has joined #ruby
cadillac_ has joined #ruby
netherwolfe has quit [Read error: Connection reset by peer]
netherwolfe has joined #ruby
snickers has joined #ruby
shinnya has quit [Ping timeout: 248 seconds]
imode has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
selim has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 260 seconds]
snickers has quit [Client Quit]
selim has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
bruno- has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
snickers has joined #ruby
marxarelli|afk is now known as marxarelli
ElDoggo has quit [Remote host closed the connection]
cabotto has quit [Remote host closed the connection]
Megamos has quit [Ping timeout: 248 seconds]
memo1 has joined #ruby
<havenwood> dminuoso: yeah, I can't think of code that'd break - hmmm
<havenwood> dminuoso: I wouldn't even know where to begin with modifying parse.y...
kapil___ has joined #ruby
<havenwood> well, I guess I know where to begin
<havenwood> I don't know where to end.
<dminuoso> havenwood: I dont think you need to modify parse.y at all
<havenwood> dminuoso: mmmm
sucks_ has joined #ruby
<dminuoso> ast>> foo = ""; foo bar
<ruby[bot]> dminuoso: I have parsed your code, the result is at https://eval.in/891721
ramfjord has joined #ruby
ehxor has quit [Quit: ehxor]
<dminuoso> Or..
paranoicsan has left #ruby [#ruby]
<havenwood> aha, I assumed you meant modifying the grammar
<dminuoso> ast>> foo = ""; bar foo
<ruby[bot]> dminuoso: I have parsed your code, the result is at https://eval.in/891722
ozcanesen has joined #ruby
cadillac_ has joined #ruby
<dminuoso> havenwood: Well the grammar already allows for this, so this is nice.
mark_66 has quit [Remote host closed the connection]
sucks has quit [Ping timeout: 252 seconds]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> asm>> foo = ""; bar foo
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/891726
<dminuoso> asm>> foo = ""; foo bar
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/891727
kacper has quit [Ping timeout: 240 seconds]
<dminuoso> Yeah, it just looks like the compiler would need a tweak.
ramfjord has quit [Ping timeout: 240 seconds]
<dminuoso> Ill start poking there. :)
<havenwood> I guess `[:opt_aref, {:mid=>:[], :flag=>16, :orig_argc=>1}, false]` is already a special case.
polishdub has quit [Ping timeout: 258 seconds]
<dminuoso> for?
<havenwood> Only 2 of the 3 existing ways to call are `mid: :call`.
yebo_ has quit [Ping timeout: 260 seconds]
<havenwood> `foo[bar]` style calling
guacamole has joined #ruby
<havenwood> >> pp RubyVM::InstructionSequence.compile('foo = :itself.to_proc; foo[42]').to_a.last
ineb has joined #ruby
<ruby[bot]> havenwood: # => undefined method `pp' for main:Object ...check link for more (https://eval.in/891731)
<havenwood> oh, right pp
<havenwood> >> RubyVM::InstructionSequence.compile('foo = :itself.to_proc; foo[42]').to_a.last
<ruby[bot]> havenwood: # => [1, [:trace, 1], [:putobject, :itself], [:opt_send_without_block, {:mid=>:to_proc, :flag=>16, :orig_ ...check link for more (https://eval.in/891733)
<havenwood> dminuoso: nice
guacamole has quit [Client Quit]
govg has joined #ruby
guacamole has joined #ruby
troys has joined #ruby
lovemercy124 has joined #ruby
xrlabs has quit [Quit: Connection closed for inactivity]
lovemercy124 has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
conta has quit [Ping timeout: 248 seconds]
cadillac_ has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
ramfjord has joined #ruby
polishdub has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
solocshaw has joined #ruby
aufi has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael1 has quit [Ping timeout: 260 seconds]
<texasmynsted> Ok, I have a Gemfile with many gems. How do I find out what the latest stable version is, say of rake? I have 0.9 listed in Gemfile. Maybe it does not matter?
kies has joined #ruby
<texasmynsted> if I do "gem list" it will show me the current versions of locally installed gems.
Xiti has joined #ruby
vipaca has joined #ruby
<elomatreb> texasmynsted: `bundle outdated`
<texasmynsted> oh nice
<texasmynsted> that seems better than gem list -r |grep '^rake '
thinkpad has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
<texasmynsted> if I bundle update, will that update to the latest "compatible" versions?
raul782 has joined #ruby
<texasmynsted> or just try to update everything to the latest stable version?
mim1k has quit [Ping timeout: 248 seconds]
yebo_ has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
michael1 has joined #ruby
cabotto has joined #ruby
* texasmynsted shrug. Just going to try and see what happens
Xiti has quit [Quit: Xiti]
Kestrel-029 has quit [Ping timeout: 252 seconds]
xMopxShell has joined #ruby
dextrey has joined #ruby
<texasmynsted> oh I see. It does not alter the Gemfile
ramfjord has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
Nicmavr has joined #ruby
Nicmavr has quit [Changing host]
Nicmavr has joined #ruby
mim1k has joined #ruby
lacour has joined #ruby
ltp has quit [Ping timeout: 240 seconds]
<elomatreb> texasmynsted: Sorry. bundle update will install the newest versions matching the constraints specified in the gemfile, and update the Gemfile.lock with the exact versions
mostlybadfly has joined #ruby
ltp has joined #ruby
<texasmynsted> I am just going to try to update the Gemfile to all latest and see what happens.
anisha has quit [Read error: Connection reset by peer]
<texasmynsted> This seems wrong but.
* texasmynsted shrug
orbyt_ has joined #ruby
anisha has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
<elomatreb> If the constrains in the Gemfile were specified correctly, you shouldn't need to do much. E.g. "~> 11.0" like with rake means "11.0.0 or later"
anisha has quit [Client Quit]
cadillac_ has quit [Read error: Connection reset by peer]
mtkd has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
mtkd has joined #ruby
vipaca has quit [Quit: Textual IRC Client: www.textualapp.com]
j416 has quit [Ping timeout: 258 seconds]
quobo has joined #ruby
cadillac_ has joined #ruby
<texasmynsted> I need to update the constraints but octopress seems dead so who knows if I am breaking it
<texasmynsted> I need a newer jekyll
<texasmynsted> I should likely replace octopress but do not want to take the time at the moment, for something working
guacamole has joined #ruby
TomyWork has quit [Remote host closed the connection]
<havenwood> yebo_: Did you check that the mailer files exist like suggested earlier? That's really a better #RubyOnRails question as folk have pointed out. That channel should be more busy at this hour, so if you hang around you might get an answer.
<texasmynsted> sigh " You have already activated rake 12.0.0, but your Gemfile requires rake 12.2.1."
<havenwood> yebo_: There's also a Ruby on Rails Slack channel that's pretty busy.
<texasmynsted> I thought bundle install would install the version from the Gemfile
<havenwood> texasmynsted: It will install the version from the Gemfile.lock, if one exists.
nowhere_man has joined #ruby
<texasmynsted> oh dear
<havenwood> texasmynsted: bundle exec rake
Sembei has joined #ruby
<texasmynsted> so basically use the rake as defined in the Gemfile rather than whatever is installed for my local system?
<havenwood> texasmynsted: yes, by prefixing `bundle exec` to the command, it'll pin to the exact version specified in the Gemfile.lock.
Pisuke has quit [Ping timeout: 246 seconds]
eckhardt_ has joined #ruby
mikejw has quit [Quit: Leaving]
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eckhardt has quit [Ping timeout: 258 seconds]
cabotto has quit [Ping timeout: 264 seconds]
ruby874 has joined #ruby
alan_w has joined #ruby
<alan_w> lose
goyox86 has joined #ruby
<baweaver> win
alan_w has left #ruby [#ruby]
<baweaver> aha, I won
cagomez has quit [Remote host closed the connection]
alan_w has joined #ruby
phaul has joined #ruby
troys is now known as troys_
cagomez has joined #ruby
ruby874 has quit [Client Quit]
<texasmynsted> wow
apeiros has quit [Remote host closed the connection]
<texasmynsted> That totally hosed octopress
ruby-lang616 has joined #ruby
<alan_w> sorry, mistype :o
Megamos has joined #ruby
troys_ is now known as troys
<texasmynsted> If put my gemfile back to the way it was, I should be able to bundle install, to restore what I had, right?
dextrey has quit [Ping timeout: 258 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
<havenwood> texasmynsted: It's the Gemfile.lock that you'd want to restore, if you want the gems just like they were.
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> texasmynsted: Re-bundling may or may not get you the same Gemfile.lock that you had before. Usually not if time has passed.
<havenwood> texasmynsted: The `bundle update` command is like deleting your Gemfile.lock and rebundling.
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
<havenwood> I don't think it's particularly intuitive. I prefer the RubyGems terminologies, but Bundler somehow snuck into the stdlib so that's that.
<texasmynsted> So pull my Gemfile and Gemfile.lock from git. Then bundle install and all good?
<havenwood> texasmynsted: yes
<havenwood> texasmynsted: Hugo is a nice static site generator written in Go. ;-P
<texasmynsted> Ok. Will try that... And see if I can get this working again
ruby-lang616 has quit [Ping timeout: 260 seconds]
<texasmynsted> I have been wanting to write my own in Haskell. Have some of it
<texasmynsted> yasod can do static sites also iirc
<havenwood> texasmynsted: An immutable, side-effect free blog.
<texasmynsted> yep
<texasmynsted> It is just time.
<texasmynsted> And right now octopress has all the nice features, like updating RSS feeds, google, auto-deployment, etc, etc.
ElDoggo has joined #ruby
<texasmynsted> Do not want a Go based site
<texasmynsted> Just no
apeiros has joined #ruby
goyox86 has left #ruby [#ruby]
<texasmynsted> All I wanted was the ability to pass parameters to an include, heh. Modern Jekyll can do this no problem.
goyox86_ has joined #ruby
chouhoulis has joined #ruby
imode has quit [Ping timeout: 258 seconds]
j416 has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
mson has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
jamesaxl has quit [Read error: Connection reset by peer]
<texasmynsted> Hmm "An error occurred while installing yajl-ruby (1.1.0)"
jamesaxl has joined #ruby
<texasmynsted> My Gemfile wants Ruby 2.0.0, I have the latest installed. I seem to be unable to install 2.0.0. If I update the Gemfile to use 2.4.2 then I get this error on bundle install.
Serpent7776 has quit [Quit: Leaving]
<lobloblobster> texasmynsted: Does it have native extensions?
vipaca has joined #ruby
sucks_ has quit [Read error: Connection reset by peer]
<texasmynsted> no idea
<texasmynsted> Maybe I just need a old 2.0.x version of Ruby for it.
<texasmynsted> I keep trying ruby-install ruby 2.0.0, or 2.0, or 2.0-stable, etc.
<texasmynsted> But it can not find any of them.
goyox86_ has left #ruby [#ruby]
<texasmynsted> I see ruby-2.0.0-p648.tar.bz2 here --> https://cache.ruby-lang.org/pub/ruby/2.0/ but I have no idea if this is stable or what
solocshaw has joined #ruby
goyox86 has joined #ruby
<texasmynsted> heh It install p648 but
<texasmynsted> sigh
Beams has quit [Quit: .]
jrafanie has joined #ruby
<texasmynsted> This is exactly the kind of stuff that is frustrating for a simple static site
conta has joined #ruby
GreatMazi1 has joined #ruby
ElDoggo has quit [Remote host closed the connection]
GreatMazi has quit [Ping timeout: 246 seconds]
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
yebo_ has quit [Ping timeout: 260 seconds]
cabotto has joined #ruby
solocshaw has quit [Ping timeout: 248 seconds]
orbyt_ has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
gGREATmAZI has joined #ruby
cabotto has quit [Ping timeout: 248 seconds]
GreatMazi1 has quit [Ping timeout: 258 seconds]
guacamole has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
aufi_doma has joined #ruby
mim1k has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.9.1]
hahuang65 has joined #ruby
borodin has joined #ruby
sucks has joined #ruby
borodin has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 260 seconds]
Megamos has quit [Ping timeout: 248 seconds]
borodin has joined #ruby
memo1 has quit [Ping timeout: 260 seconds]
cadillac_ has quit [Ping timeout: 248 seconds]
solocshaw has joined #ruby
alnewkirk has joined #ruby
darkmorph has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aufi_doma has left #ruby [#ruby]
Technodrome has joined #ruby
tomphp has quit [Client Quit]
alnewkirk has joined #ruby
phaul has joined #ruby
tomphp has joined #ruby
alfiemax has quit [Remote host closed the connection]
ldepandis has joined #ruby
LocaMocha has quit [Ping timeout: 240 seconds]
sucks has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
raynold has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
cdg has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 248 seconds]
sucks has joined #ruby
cdg has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
alnewkirk has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
<texasmynsted> so chruby is global and persistent?
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> texasmynsted: chruby is a couple functions you can source that let you set env vars to switch Rubies
<texasmynsted> ok
<texasmynsted> like ~/.ruby-version ? I guess
alnewkirk has quit [Ping timeout: 240 seconds]
<havenwood> texasmynsted: if you also source auto.sh, chruby will detect ~/.ruby-version files: https://github.com/postmodern/chruby/blob/master/share/chruby/auto.sh
<havenwood> texasmynsted: here's an example of sourcing both chruby.sh and auto.sh: https://github.com/postmodern/chruby#auto-switching
<texasmynsted> oh nice, thank you
ElDoggo has joined #ruby
<texasmynsted> ok, now I see what it meant by auto. Ok this is very nice
phaul has quit [Quit: WeeChat 1.9.1]
oleo2 has joined #ruby
mim1k has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eblip has joined #ruby
def_jam has joined #ruby
orbyt_ has joined #ruby
alnewkirk has joined #ruby
<texasmynsted> oh I guess chruby does not persist unless you create the .ruby-version file
eb0t_ has quit [Ping timeout: 240 seconds]
<havenwood> texasmynsted: no, it doesn't persist env vars between shell sessions
<havenwood> texasmynsted: you can create a .ruby-version file in / or ~ to set a default
eb0t has quit [Ping timeout: 264 seconds]
<texasmynsted> this is perfect
kies has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
<havenwood> we've discussed adding more functionality for setting a default, but for now it's just .ruby-version
Dimik has joined #ruby
funburn has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys is now known as troys_
alfiemax has joined #ruby
voice_ftp has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kinduff has joined #ruby
<kinduff> good morning
alnewkirk has quit [Ping timeout: 248 seconds]
<havenwood> g'mornin'
voiceftp has quit [Ping timeout: 240 seconds]
kinduff has quit [Quit: gg]
kinduff has joined #ruby
goyox86 has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 260 seconds]
kinduff has quit [Client Quit]
kinduff has joined #ruby
alnewkirk has joined #ruby
apeiros_ has joined #ruby
funburn has joined #ruby
ramfjord has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
cagomez has quit [Remote host closed the connection]
apeiros_ is now known as apeiros
ElDoggo has quit [Remote host closed the connection]
cagomez has joined #ruby
<jolamb> ok, circular dependency problem. I have files lib/a.rb and lib/b.rb. b.rb depends on a.rb - `requires 'a'`. I have test/test_a.rb and test/test_b.rb. test_a.rb has `require a`, test_b.rb has `require b`. When I run "rake test" it warns about circular dependencies, because - I think - a.rb gets required twice
<jolamb> test_a.rb -> a.rb; test_b.rb ->
<jolamb> er
<jolamb> test_a.rb -> a.rb; test_b.rb -> b.rb -> a.rb
guacamole has joined #ruby
<jolamb> Is this happening because I'm doing something wrong when I require a from b, or is this warning something I should suppress/ignore?
<kinduff> jolamb: indeed, you're falling into a circular pattern there, either you require at higher level (b.rb -> a.rb), or call b.rb at test_a.rb
mikecmpbll has joined #ruby
<jolamb> kinduff: I don't get what you mean by "require at higher level (b.rb -> a.rb)" - b.rb already requires a.rb
aufi has quit [Ping timeout: 240 seconds]
darkmorph has joined #ruby
GreatMazi1 has joined #ruby
<kinduff> jolamb: by higher level I mean, maybe you got c.rb that requires a&b.rb, and that's what you call for test_a.rb and test_b.rb, or for your script, and you leave your tests with the corresponding require.
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Ping timeout: 248 seconds]
PaulCape_ has quit [Read error: Connection reset by peer]
claudiuinberlin has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kinduff> something like that, I'm just waking up so I'm not sure if that works for your case
gGREATmAZI has quit [Ping timeout: 246 seconds]
jrafanie has joined #ruby
PaulCapestany has joined #ruby
jdawgaz has joined #ruby
guacamole has joined #ruby
<jolamb> kinduff: I'm pretty sure that's what I've got more or less. Lemme poke at this a bit more
uZiel has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
imode has joined #ruby
PaulCapestany has quit [Quit: .]
arup_r has joined #ruby
<arup_r> I am trying to replace the playlistId with some interger. Input string: "playlistNotFound: The playlist identified with the requests <code>playlistId</code> parameter cannot be found." .. Output I want: "playlistNotFound: The playlist identified with the requests <code>123</code> parameter cannot be found." .. I was trying: sub(/<code>(playlistId)</code>/, '1') , But it is close, not correct. :) Any help
Devalo has joined #ruby
<apeiros> arup_r: the / needs escaping
Devalo has quit [Remote host closed the connection]
<apeiros> also you'll replace the <code></code> too
<jolamb> kinduff: hrm, looks like it's actually a circular dependency in the oauth gemn
ElDoggo has joined #ruby
dextrey has joined #ruby
<arup_r> apeiros: yeah I tried s.sub(/<code>(playlistId)<\/code>/, '1') . but it is replacing all as you said. But I want to replace just * playlistId*
jaruga has quit [Quit: jaruga]
<apeiros> arup_r: the rest is static, shouldn't be that hard to add it to the replacement part
<kinduff> apeiros: a = "Hello %{where}"; a % { :where => "world!" }
<kinduff> apeiros: => "Hello world!"
<kinduff> jolamb: oh, comes from a gem then?
<apeiros> kinduff: you certainly meant arup_r
<kinduff> oops
<arup_r> kinduff: input string is not under my control :)
<jolamb> kinduff: looks that way. Any way I can tell ruby to skip warnings on external deps?
sameerynho has joined #ruby
Devalo has joined #ruby
<kinduff> jolamb: can you provided more context on how you're using the gem?
mim1k has quit [Ping timeout: 240 seconds]
<kinduff> arup_r: why not just sub("playlistId", "123")
<arup_r> apeiros: you meant like this rigt s.sub(/<code>(playlistId)<\/code>/, '<code>1</code>') ? It works. just confirming
<jolamb> I've got a dependency on ruby-trello. It depends on oauth. oauth.rb requires oauth/client/helper, which requires oauth/consumer, which requires oauth/client/net_http, which requires oauth/client/helper
<apeiros> arup_r: yes
<arup_r> hm. thanks apeiros
ElDoggo has quit []
<apeiros> kinduff: depending on the input string, that's more volatile
<jolamb> kinduff: ^^ there's the context
<apeiros> +potentially
funburn has quit [Quit: funburn]
darkmorph has quit [Ping timeout: 252 seconds]
<apeiros> does anybody happen to use the 2016 or 2017 mbp with 2x 5k screens? if so, does using both screens spin up the fans?
Devalo has quit [Ping timeout: 260 seconds]
BTRE has quit [Ping timeout: 260 seconds]
conta1 has joined #ruby
arup_r has quit []
dextrey has quit [Ping timeout: 252 seconds]
oleo2 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
conta1 has quit [Ping timeout: 248 seconds]
oleo2 has joined #ruby
BTRE has joined #ruby
nowhere_man has quit [Remote host closed the connection]
audy- has quit [Quit: bye]
jphase has quit [Remote host closed the connection]
nowhere_man has joined #ruby
jphase has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
jphase has quit [Remote host closed the connection]
kies has joined #ruby
jphase has joined #ruby
beerich has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
funburn has joined #ruby
<beerich> Anybody have experience with server-side validations?
<apeiros> beerich: you'll usually have a much better chance at an answer if you ask your actual question instead of metaquestions like this
Devalo has quit [Ping timeout: 240 seconds]
<beerich> Is there a common approach to validations with regards to assertions or nomenclature choices in order to standardize structure?
vipaca has joined #ruby
funburn has quit [Client Quit]
<apeiros> what kind of server are we talking about?
funburn has joined #ruby
<beerich> a ruby web server
<apeiros> using a framework?
memo1 has joined #ruby
<beerich> Sinatra
<beerich> I'm writing my own framework
funburn has quit [Client Quit]
<apeiros> not familiar with sinatra, but that'd be my starting point
<beerich> I'm writing assertions
<beerich> I'm not relying on other frameworks nor validations. I'm writing my own validations. This is not a framework question.
<beerich> sorry, writing validations
<beerich> this is a ruby question, not framework
<apeiros> in that case - you are defining the structure and standardization
<beerich> yes which is why I'm asking how it's best approached. When I use a method named "validate_referrer", if it returns false, is it invalidated?
<beerich> Are the set of validations assumed false then approved individually?
<apeiros> IMO using prefixes is a code smell
<beerich> code smell?
Azure has quit [Ping timeout: 240 seconds]
<apeiros> early indicator of something probably being done wrong
<beerich> why is that?
<apeiros> why do you have the prefix?
<beerich> because I'm trying to validate the referrer
<beerich> hence validate_referrer
<apeiros> ok. will you have other validate_* methods on the same object?
<beerich> no
<beerich> that too would obviously be called validate_referrer
<beerich> why are you focussing on the method name?
<beerich> I don't repeat method names
<beerich> that's obviously a problem
dionysus69 has quit [Ping timeout: 248 seconds]
Azure has joined #ruby
<apeiros> I don't focus on the method name. I was answering your question
<beerich> I'm referring to the structure of methods with regards to boolean assumption pre-test. Another question is on the "validate" in the method name, as it suggests if it's returned as true, it is validated.
<apeiros> I fail to see how other validate_* methods could be called validate_referrer as well, as there can only be one method of a given name. but ok. lets look at it from another angle.
<beerich> Yes that's my point. What would you call a method that tests its validity?
jrafanie_ has joined #ruby
<apeiros> depends. what do you want out of it? if it's just to know whether it's valid, I'd call it "valid?"
<apeiros> if you want to know what's wrong with it, I'd call it "errors"
<beerich> ok but you write a whole class based on a referrer?
<beerich> I don't
<apeiros> I don't know. You gave pretty little context.
<apeiros> but in general, I'd write a validation class, yes.
<beerich> it's just that. It's validity of the referrer, to see if it's expected. "errors" would be a whole bunch of tests, which shouldn't be one method.
<beerich> validations don't have to be in their own class
<apeiros> and something to validate a referrer would either be a subclass of a generic validation class, or be composed of it
jrafanie_ has quit [Client Quit]
<beerich> validations can be methods in the class of the object
jrafanie has quit [Ping timeout: 258 seconds]
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<beerich> completely internal
GreatMazi1 has quit [Ping timeout: 252 seconds]
<apeiros> beerich: either you have questions on how others do it, or you know already how you want to do it
<apeiros> what is it now?
<beerich> I have a way of doing it, but I'm asking if there's an accepted approach on the nomenclature
<apeiros> no
<beerich> that's what I was asking
<apeiros> as said, or at least implicated before, that's framework level stuff.
<apeiros> go look around at how different frameworks do it
<beerich> there are no validations in Sinatra
<beerich> I don't rely on frameworks
<apeiros> *sob*
<apeiros> no, but you ask for "accepted approaches"
jrafanie has joined #ruby
<apeiros> if there is one, don't you think it's accepted *because other frameworks* use it?
<beerich> ok but that doesn't mean the answer is "move to Rails"
<apeiros> otherwise, what's the meaning of "accepted" at all?
mim1k has joined #ruby
<apeiros> did I say that?
<beerich> a generalized approach
ledestin has joined #ruby
<apeiros> again, if there is a generalized approach, what do you think where it'd materialize? where would it be used?
<beerich> the meaning of accepted means that people often agree on an approach to their own validations, not just looking at frameworks
<beerich> it would be used in those objects written by ruby developers
<beerich> not simply referring to frameworks
quobo has quit [Quit: Connection closed for inactivity]
<apeiros> ok, I have no idea what you're asking then.
neo95 has joined #ruby
<beerich> nobody writes validations?
<apeiros> it makes no sense to me if you phrase it like that.
<apeiros> you have a weird way of interpreting words.
workmad3 has quit [Ping timeout: 260 seconds]
<beerich> I'm in a ruby group asking about ruby
<beerich> not frameworks
<beerich> I can only think people write their own validations
<apeiros> I don't think I can help you.
<beerich> ok
<beerich> but thank you
<bougyman> validations of what?
jrafanie has quit [Client Quit]
<beerich> objects
<beerich> fields in forms
<beerich> anything
<beerich> that's in the scope of the expected object
<bougyman> Ah.
<matthewd> ... conditionals?
<bougyman> There are a few ways i've seen.
<bougyman> Contracts, Design By Contract, is one I liked.
<havenwood> beerich: If you haven't already, I'd recommend taking a look at Roda and dry-validations.
<havenwood> beerich: http://rodauth.jeremyevans.net
<bougyman> But validating input still happens before being handed off to the contracted method.
<havenwood> oops, wrong link - here: http://roda.jeremyevans.net
vipaca has joined #ruby
<beerich> ok will have a look
<beerich> I'm just thinking there is a structured approach to validations...from a security point of view.
<beerich> and other angles
<havenwood> beerich: When you say "validations," what do you mean?
<beerich> anything coming into a system through a form, or at any point, simply testing the object for sufficient properties
<beerich> at any point, asking if the object is complete enough for moving on
<havenwood> beerich: Are you talking about JS validations? Model validations? Database validations? All of them?
alfiemax has quit [Remote host closed the connection]
<beerich> no
kapil___ has quit [Quit: Connection closed for inactivity]
<beerich> server side
<beerich> 100% objects
<beerich> no database, no client...all model
alfiemax has joined #ruby
biberu has quit []
<beerich> example: A user's firstname isn't "44"
jrafanie has joined #ruby
<matthewd> beerich: There is not a generally-agreed-upon approach to implementing this from first principles, because the generally-agreed-upon approach is to use existing frameworks (e.g., rails, dry) to do it.
orbyt_ has joined #ruby
<beerich> validate_firstname, is it automatically assumed as false, tested, then set true? Or the other way around? Is the return of "validity" expected to be true by convention if it's validated?
<beerich> Ya I tend to write my own
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> Do what you like. But if you explicitly exclude anything frequently-used enough to have been extracted to a library, you're unlikely to learn of a "common approach".
<beerich> ok that's what I was pretty much looking for. Thanks
<matthewd> I'm not even sure how to answer your above questions anyway, tbh
<beerich> I'm constantly trying to sniff out discussed common practices
<matthewd> "automatically assumed as false, tested, then set true" -- huh? Something is either true or false, or it's not evaluated.
guacamole has joined #ruby
<beerich> ok but booleans start out as either true or false. There is no nil in boolean.
alfiemax has quit [Ping timeout: 258 seconds]
<beerich> so you have to assume one and prove otherwise
mim1k has quit [Ping timeout: 240 seconds]
mynameisdebian has joined #ruby
ta has quit [Remote host closed the connection]
<beerich> Anyway, found what I'm looking for. thanks everyone.
michael2 has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Immune has quit [Ping timeout: 246 seconds]
<mynameisdebian> Is there a way to quickly create a set of variable with specific names from an array? Something like, myArr.convertToVars("var1", "var2", "varD")
jenrzzz has joined #ruby
<beerich> your own method
<mynameisdebian> In other words, if I had [1,2,3] and I used that syntax, it would be equivalent to var1=1 and var2=2 and varD=3
vipaca has joined #ruby
<mynameisdebian> I only have to do it once and it seems like there would probably be a method for it
<beerich> nothing already written. Write your own method
<beerich> nothing like .to_vars
mson has quit [Quit: Connection closed for inactivity]
<mynameisdebian> If I have an array of values and an array of names, is there a way to do <name>=<value> ?
cagomez has joined #ruby
michael1 has quit [Ping timeout: 240 seconds]
<beerich> a method. Iterate through each and provide the assignment
<mynameisdebian> how do I turn the <name> string into a variable?
<apeiros> mynameisdebian: take a look at Enumerable#zip and #map
beerich has quit []
<matthewd> mynameisdebian: `var1, var2, varD = myArr`
<havenwood> mynameisdebian: We don't really set local variables dynamically like that.
<apeiros> oh oy, just read the beginning of the question
<apeiros> don't. don't use variablenames as a hash. use a hash.
<havenwood> mynameisdebian: If you'd like to play with it in irb, just for fun, try: target_binding = binding; my_array = %w[var_oatmeal var_porridge var_gruel]; my_array.each { |var| target_binding.local_variable_set var, var }; target_binding.irb
kinduff has quit [Quit: gg]
quobo has joined #ruby
<havenwood> mynameisdebian: then you can: var_porridge #=> "var_porridge"
<apeiros> havenwood: you should mention that you can't define new variables in a binding
<matthewd> apeiros: I think you're reading too much into the fact the guessed pseudocode used strings
tomphp has joined #ruby
cdg has joined #ruby
<apeiros> 20:57 mynameisdebian: In other words, if I had [1,2,3] and I used that syntax, it would be equivalent to var1=1 and var2=2 and varD=3
<apeiros> matthewd: ^
<apeiros> I don't think so?
<havenwood> mynameisdebian: TL;DR: don't dynamically set local variables
<mynameisdebian> damn that sounds complicated
<matthewd> apeiros: Isn't that a totally reasonable description of `a, b = ary` ?
<apeiros> matthewd: could be, but `myArr.convertToVars("var1", "var2", "varD")` makes me think otherwise. but if splat answers their question - great :)
<matthewd> mynameisdebian: Does my answer solve your problem? If not, we probably need more information.
hahuang65 has quit [Read error: Connection reset by peer]
<mynameisdebian> I had a bunch of variables that I put into an array and output to YAML. I'm reading it back and realizing I want the original variable names. It's easy for me to create an array with the names of the variables as strings, and another with the data variables. Is there a way to take the variable names from the first array and create variables with those names?
<mynameisdebian> matthewd, I'm sorry, let me read again
<havenwood> mynameisdebian: Try using hash keys instead of variables to point at values.
<mynameisdebian> that would have been pretty smart
hahuang65 has joined #ruby
sammi` has quit [Quit: Lost terminal]
Megamos has joined #ruby
<mynameisdebian> matthewd you're awesome!
<mynameisdebian> as always
<mynameisdebian> super cool bro
<mynameisdebian> thanks everyone else as well
ryzokuken has joined #ruby
ycyclist has joined #ruby
nopolitica has joined #ruby
sagax has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nopolitica has quit [Ping timeout: 246 seconds]
shinnya has joined #ruby
oleo2 has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 240 seconds]
solocshaw1 has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 is now known as solocshaw
BTRE has joined #ruby
oleo2 has joined #ruby
solocshaw has quit [Client Quit]
oleo2 has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has joined #ruby
Rapture has quit [Client Quit]
oleo2 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Immune has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
safetypin has joined #ruby
memo1 has quit [Ping timeout: 260 seconds]
slima has left #ruby [#ruby]
tomphp has quit [Client Quit]
tomphp has joined #ruby
ta has joined #ruby
neo95 has quit [Quit: Leaving]
Immune has quit [Ping timeout: 248 seconds]
Psybur has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
dextrey has joined #ruby
synthroi_ has quit []
madhatter has quit [Remote host closed the connection]
madhatter has joined #ruby
morfin has quit []
Megamos has quit [Ping timeout: 240 seconds]
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
goyox86 has joined #ruby
nopolitica has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nopolitica has quit [Ping timeout: 248 seconds]
vipaca has joined #ruby
vipaca has quit [Client Quit]
darkmorph has joined #ruby
goyox86 has quit [Quit: goyox86]
Devalo has joined #ruby
jdawgaz has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vee__ has quit [Ping timeout: 246 seconds]
jrafanie has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Quit: Lost terminal]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ap4y has joined #ruby
vipaca has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
oleo2 has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
michael2 has quit [Ping timeout: 248 seconds]
vipaca has quit [Client Quit]
ResidentBiscuit has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
cagomez_ has joined #ruby
vipaca has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
jamesaxl has joined #ruby
vee__ has joined #ruby
oleo2 has joined #ruby
ResidentBiscuit has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
vondruch has quit [Ping timeout: 252 seconds]
cagomez_ has quit [Ping timeout: 260 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vipaca has joined #ruby
oleo2 has quit [Ping timeout: 246 seconds]
ap4y has quit [Quit: WeeChat 1.9.1]
ap4y has joined #ruby
jdawgaz has joined #ruby
darkmorph has quit [Ping timeout: 246 seconds]
marxarelli is now known as marxarelli|afk
dextrey has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
cahoots has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
polishdub has quit [Quit: leaving]
<cahoots> hi, when i use the Hash#to_json and JSON#pretty_generate methods, it gives me fat arrows instead of colons in the hashes. what might be the issue?
<Radar> cahoots: Do you have an example?
<baweaver> >> {a: 1, 'b' => 2}.to_json
gauravgoyal has joined #ruby
<ruby[bot]> baweaver: # => undefined method `to_json' for {:a=>1, "b"=>2}:Hash ...check link for more (https://eval.in/892001)
<Radar> baweaver: A+ for effort
<baweaver> ...why that isn't default
<havenwood> cahoots: Rails?
<Radar> >> require 'json'; {a: 1, 'b' => 2}.to_json
<ruby[bot]> Radar: # => "{\"a\":1,\"b\":2}" (https://eval.in/892003)
<baweaver> yeah, pretty much
<cahoots> ohhh lol it's because i was using hashes as keys in the hash... which json doesn't support
<Radar> LOL
<cahoots> seems like that should raise an exception...
<Radar> Classic.
<Radar> cahoots: It'd be helpful next time to include the code that you're having an issue with so we can validate things like this.
<Radar> Two sets of eyes better than one, etc etc
<baweaver> Anything can be a hash key :D
<cahoots> yeah
<baweaver> (which I have totally and shamelessly abused before
gauravgoyal has quit [Remote host closed the connection]
<havenwood> baweaver: NaN is a strange one...
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Remote host closed the connection]
oleo2 has joined #ruby
<havenwood> Though I can't reproduce my expected oddity...
jphase has joined #ruby
<havenwood> Ah, right - I can.
atmosx has quit [Quit: WeeChat 1.4]
safetypin has quit [Ping timeout: 248 seconds]
<havenwood> >> {Float::NAN => :weasels, 0.0 / 0 => :hedgehogs, Float::INFINITY * 0 => :hamsters, Float::NAN => :lemurs}
<ruby[bot]> havenwood: # => {NaN=>:lemurs, NaN=>:hedgehogs, NaN=>:hamsters} (https://eval.in/892008)
Rapture has joined #ruby
<havenwood> >> {0.0 / 0 => :hedgehogs, Float::INFINITY * 0 => :hamsters, Float::NAN => :lemurs}.values_at Float::NAN, Float::INFINITY.fdiv(0)
<ruby[bot]> havenwood: # => [:lemurs, nil] (https://eval.in/892009)
<havenwood> "You have to understand what NaN is, before playing with it." ~Matz
jphase has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
cahoots has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
troulouliou_div2 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cahoots has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
nopolitica has joined #ruby
jdawgaz has joined #ruby
<c-c> Ideas on how to get the console width and height for stdin?
<Radar> c-c: can you explain a little about why you'd want to do that?
<c-c> I want to render my own view 30 fps in the console
jphase has quit [Ping timeout: 252 seconds]
alan_w has quit [Ping timeout: 255 seconds]
geizp has joined #ruby
jphase has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
<geizp> have a question about the minitest gem... when it outputs, it runs each test, lists "S" after each one right now, i'm just starting. i get that means "skipped." i also have one that has an asterisk, but have no idea what that means or where to find it in the documentation
dinfuehr has quit [Ping timeout: 248 seconds]
<havenwood> c-c: See io/console
sagax has joined #ruby
<c-c> also found $ tput lines
jphase_ has joined #ruby
<havenwood> >> require 'io/console'; IO.console.winsize # c-c
<ruby[bot]> havenwood: # => (https://eval.in/892015)
<havenwood> #=> [42, 120]
dinfuehr has joined #ruby
<c-c> aa, indeed
<Radar> neat
jphase has quit [Ping timeout: 252 seconds]
orbyt_ has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
geizp has quit [Quit: Page closed]
jphase_ has quit [Ping timeout: 252 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
def_jam is now known as eb0t
ozcanesen has quit [Quit: ozcanesen]
agent_white has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
cahoots has quit [Ping timeout: 252 seconds]
troulouliou_div2 has quit [Quit: Leaving]
cahoots has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troulouliou_div2 has joined #ruby
guacamole has joined #ruby
jdawgaz has quit [Client Quit]
cagomez has joined #ruby
eckhardt has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
marxarelli|afk is now known as marxarelli
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quobo has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<c-c> I bumped into this gem. I will try with this http://ruby-doc.org/stdlib-2.0.0/libdoc/curses/rdoc/Curses.html
mr_rich101 has quit [Quit: ZNC - http://znc.in]
Kug3lis has joined #ruby
Kug3lis is now known as gcds_
mr_rich101 has joined #ruby
cahoots has joined #ruby
<ycyclist> I am looking for an rpm to install openssl version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
<ycyclist> I asked on the openssl group, but apparently nobody is over there.
jdawgaz has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jphase has joined #ruby
jphase_ has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 240 seconds]
troulouliou_div2 has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Client Quit]
mson has joined #ruby
mjolnird has quit [Quit: Leaving]
jphase has quit [Ping timeout: 246 seconds]
troulouliou_div2 has joined #ruby
vipaca has joined #ruby
jackjackdripper has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
zululee has quit [Ping timeout: 246 seconds]
basket has joined #ruby
mr_rich101 has quit [Quit: ZNC - http://znc.in]
mr_rich101 has joined #ruby
jphase_ has quit [Ping timeout: 258 seconds]
jphase has joined #ruby
jphase_ has joined #ruby
cdg has quit [Remote host closed the connection]
naquad has quit [Quit: ZNC - http://znc.in]
nadir has quit [Quit: Connection closed for inactivity]
jphase has quit [Ping timeout: 246 seconds]
troulouliou_div2 has joined #ruby
naquad has joined #ruby
jphase_ has quit [Ping timeout: 240 seconds]
Xiti has quit [Quit: Xiti]
jphase has joined #ruby
Xiti has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
thinkpad has joined #ruby
<cagomez> i have 2 arrays of ID's , foo and bar. how do I easily check whether all foo's are in bar?
cschneid_ has quit [Remote host closed the connection]
<havenwood> cagomez: Are they sorted the same?
<cagomez> havenwood: no. I came up with ... intersect = foo & bar; insersect.count == foo.count
<Radar> cagomez: can bar be bigger than foo?
<Guest72603> that is amazing, why does foo & bar work?
<cagomez> Guest72603: set operators
<havenwood> >> [1, 2, 3] - [3, 2, 1] == []
<ruby[bot]> havenwood: # => true (https://eval.in/892018)
<Radar> cagomez: /nick quickdraw ps thanks
<Guest72603> that is so cool
<havenwood> >> require 'set'; [1, 2, 3].to_set == [3, 2, 1].to_set # cagomez
<ruby[bot]> havenwood: # => true (https://eval.in/892019)
<havenwood> cagomez: are they uniq?
zululee has joined #ruby
<cagomez> nevermind havenwood , I got it
<havenwood> cagomez: i guess with #- you've gotta go both ways
<havenwood> aye, counting is fine
<al2o3-cr> cagomez: ids1.all? { |id| ids2.member? id }
nopolitica has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
<al2o3-cr> cagomez: also (foo & bar) == foo
seggy has quit [Quit: leaving]
Xiti has quit [Quit: Xiti]
<al2o3-cr> if sorted of course.
kus_ubuntui686 has joined #ruby
kus_ubuntui686 has quit [Max SendQ exceeded]
ycyclist has quit [Ping timeout: 260 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
cdg has joined #ruby
conta has quit [Ping timeout: 240 seconds]
reber has quit [Remote host closed the connection]
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 248 seconds]
moei has quit [Quit: Leaving...]
vipaca has joined #ruby
vipaca has quit [Client Quit]
cdg has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
alex`` has quit [Ping timeout: 246 seconds]
mynameisdebian has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
raul782 has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 258 seconds]