baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: 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
zacts has joined #ruby
justicefries has joined #ruby
milardovich has quit [Ping timeout: 246 seconds]
<nofxxx> sparr, "foo": bar vs foo: bar
<sparr> nofxxx: both are getting turned into ":foo: bar" in the yaml
<sparr> I found a workaround... if I use => instead of : when defining my hashes, the yaml ends up the way I want
padi_ has quit [Remote host closed the connection]
milardovich has joined #ruby
<nofxxx> sparr, because it's a string... "foo" => . Colon will always get you symbol
<sparr> good to know
mostlybadfly has quit [Quit: Connection closed for inactivity]
<sparr> I thought foo: would get me :foo and "foo": would get me foo
exagerado has quit [Remote host closed the connection]
padi_ has joined #ruby
<nofxxx> sparr, but the yaml looks way better with symbols imho
zacts has quit [Ping timeout: 240 seconds]
<sparr> none of my strings have spaces in them, so it's :foo vs foo and I don't like the symbol there
<sparr> more importantly, the files I'm trying to mimic don't have symbols for keys in the yaml
biberu has quit []
padi_ has quit [Ping timeout: 240 seconds]
im314ous has joined #ruby
<nofxxx> sparr, ops sorry I did the confusion.. yeah, string looks better... :foo: vs foo:
milardovich has quit [Remote host closed the connection]
justicefries has quit [Quit: WeeChat 1.7]
milardovich has joined #ruby
mwlang has quit [Quit: mwlang]
justicefries has joined #ruby
bruce_lee has quit [Ping timeout: 260 seconds]
bigtawm has joined #ruby
<bigtawm> I just finished reading the well grounded rubyist. Should I move on and read eloquent ruby or should I hop into the ruby on rails tutorial and come back to eloquent ruby?
<nofxxx> bigtawm, build something pure ruby... create/help some gem
milardovich has quit [Ping timeout: 246 seconds]
<havenwood> bigtawm: Nice.
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bmurt has joined #ruby
<bigtawm> nofxxx, any good project ideas for the level of knowledge well grounded rubyist leaves you at? I would just create a console app right?
<nofxxx> bigtawm, yeah... nothing beats a console puts and gets app to learn =D
<bigtawm> I just created a command line chess game in ruby, and Im having trouble thinking of a new fun project lol
<nofxxx> that's cool!, as in Qe3 ... and it replies CHECK?
<nofxxx> totally forgot the notation... yrs don't play a game... sad
<elomatreb> The best practice programs are the ones you actually use yourself, any tool you wish you had?
<nofxxx> yeah ^
gloscombe_ has quit [Quit: gloscombe_]
justicefries has quit [Quit: WeeChat 1.7]
<bigtawm> Yeah you pick the position you want to move and where you want to move to and it will reply with check, checkmate or stalemate its pretty cool and it was fun to program. I also play it from time to time in class haha
mwlang has joined #ruby
tau has quit [Read error: Connection reset by peer]
d5sx43 has joined #ruby
<nofxxx> bigtawm, very cool man. If you want to keep on that app you might add some curses board hehe, or maybe a sinatra app if you are looking for webdev
tau has joined #ruby
<nofxxx> sinatra app and websockets... truth is that this will include a lot of JS in this ruby talk
tau has quit [Remote host closed the connection]
hutch34 has joined #ruby
<nofxxx> but there's some js ready board iirc
d5sx43 has quit [Client Quit]
cahoots has quit [Ping timeout: 258 seconds]
<bigtawm> elomatreb: none that I can think of off the top of my head. I feel like I know how to program but cant think of any useful projects that dont have a gui or web component.
enterprisey has quit [Remote host closed the connection]
cahoots has joined #ruby
<nofxxx> Gui and ruby are unfortunely not friends... we had shoes but they ruined it with java
<elomatreb> Nothing wrong with apps having a web component, it doesn't necessarily mean you have to learn a big framework stack like rails or complicated frontend stuff
<nofxxx> now prob better some gtk/qt thing
<cahoots> {/quit
cahoots has quit [Client Quit]
<elomatreb> E.g. try a small Sinatra app maybe
<bigtawm> nofxxx: I was thinking about trying out sinatra and linking it to my chess app or this tic tac toe game I wrote. I was also thinking about building an AI for my tic tac toe game
tau has joined #ruby
<nofxxx> now web ruby is full of nice stuff bigtawm ... sinatra/padrino/rails..
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bigtawm> Yeah I want to learn rails so I can make web apps and then maybe learn ios and use rails as the API to drive the ios apps
<nofxxx> bigtawm, you can use cordova too and use JS. Vue.js ftw!
sepp2k has quit [Ping timeout: 268 seconds]
<nofxxx> bigtawm, it's a good path to follow... sinatra/padrino then rails. Will make things very clear
brent__ has quit [Remote host closed the connection]
tau has quit [Remote host closed the connection]
<elomatreb> Frontend Javascript is a whole other rabbit hole though, easily just as complex as the Ruby stuff you're also learning
<nofxxx> if it's just API and singepage you'll might end up keeping in padrino or sinatra... maybe just include activesupport hehe
<bigtawm> Okay cool I'll look into sinatra then. Yeah I want to learn some front end js after I get some backend exposure.
<nofxxx> elomatreb, 10x more for me. but that's me... js hates me, I hate him
<nofxxx> elomatreb, coffee and vue.js makes it bearable
<elomatreb> Yeah JS is not my favorite language either, I avoid it where possible and just do static pages most of the time
brent__ has joined #ruby
<nofxxx> hehe coffee and coffeescript
<bigtawm> There are tons of things I want to learn lol one step at a time though. I almost switched to learning MEAN recently because it seemed like it was getting bigger than rails but Im sticking to ruby for now until I learn haha
Guest64882 is now known as CrazEd
<elomatreb> I'm one of those strange people that really enjoy writing CSS though
CrazEd is now known as Guest9651
<elomatreb> Once you learned one programming language, learning another becomes much easier. Same goes for web frameworks and things like databases, they're all similar in the end
<elomatreb> *you have
<bigtawm> I'm a CS student and ruby comes easier than JS to me so I figured learning MVC on rails would be best to start out with.
<nofxxx> elomatreb, but despite it kinda spoiling you, ruby is the best to learn. Makes it clear... so when the others add tons of lines it does scare you...
fuinho_saliente has joined #ruby
<nofxxx> doesn't*
<bigtawm> I'm trying to learn rails so I can make some web apps and put them on my portfolio
<bigtawm> Yeah I figured ruby would be easiest to grasp the overall concept with
fuinho_saliente has quit [Remote host closed the connection]
<elomatreb> The thing Ruby spoils you most with is the comprehensive, user-friendly standard library. You have to pull in tons of npm packages all the time to get utility functions just readily available in Ruby
<elomatreb> See also: That whole left-pad disaster
<nofxxx> bigtawm, yup, hence my advice for your path: sinatra -> rails... also, forget SQL... go redis and mongodb
brent__ has quit [Ping timeout: 260 seconds]
<nofxxx> you can even use redis as pubsub for your chess games bigtawm
bkxd has joined #ruby
<elomatreb> I have to disagree, SQL is the way to start imo. Loosening restrictions can come after you understand why SQL places them on you in the first place
<nofxxx> nopolling websocket
<nofxxx> elomatreb, dunno, life's too short for sql
yfeldblum has joined #ruby
<elomatreb> Life's too short to spend time searching a database without indexes
fuinho_saliente has joined #ruby
fuinho_saliente has quit [Remote host closed the connection]
<bigtawm> I need to work with databases too I need a project with that on my portfolio since Im kinda weak in that area
<nofxxx> elomatreb, nah... will only be noticeable with > 10k rows.. til there you'll know to "index :that"
fuinhooo has joined #ruby
fuinhooo has quit [Remote host closed the connection]
certainty has joined #ruby
<bigtawm> After I build a project should I go eloquent ruby or the ruby on rails tutorial though?
ofiuaosi has joined #ruby
<elomatreb> Uh? Linear search in <10 rows without indexes is potentially 10000 operations, whereas with indexes it 14.
djbkd_ has joined #ruby
<elomatreb> In 10k rows, I mean
<nofxxx> elomatreb, but it's all in ram... check it out and you'll see... actually I would bet <50k
<marchelzo> bigtawm: just do what your heart tells u
<nofxxx> well, I always discover this stuff after 100k =P
wilbert_ has quit [Ping timeout: 264 seconds]
marr has quit [Remote host closed the connection]
<elomatreb> nofxxx: IO is only part of the problem, your SQL database is often in RAM too
<bigtawm> marchelzo, good advice Im sure Ill find the answer to my question after I see how this project goes lol
<nofxxx> elomatreb, but I was refuting your point on not start with nosql because of it
yfeldblum has quit [Ping timeout: 246 seconds]
<marchelzo> bigtawm: exactly
<bigtawm> Okay I have to head to class thanks for all the advice everyone!
<marchelzo> bigtawm: God bless u take care
<allisio> nofxxx: Did you just assume JavaScript's gender?
<Aeyris> how did nosql come up when giving advice to someone who wants to learn rails web app development
renatosilva has left #ruby ["http://renatosilva.net"]
ofiuaosi has quit [Remote host closed the connection]
<elomatreb> Aeyris: "<nofxxx> [...] also, forget SQL... go redis and mongodb"
foooooobar has joined #ruby
<Aeyris> ugh
<marchelzo> well he is right
mwlang has quit [Quit: mwlang]
<marchelzo> relational databases are essentially dead
djbkd_ has quit [Ping timeout: 240 seconds]
<Aeyris> what
<elomatreb> lolno
<Aeyris> I would love to peer into whatever parallel universe you're in where that is even /remotely/ true.
<allisio> ^
<elomatreb> *Everything* outside of the Javascript bubble is in a relational db
<marchelzo> you're peering into it right now
<marchelzo> because it's reality
<Aeyris> That is so far off the mark I don't even know where to begin. I feel like I need to break out the crayons for this one.
<Aeyris> It absolutely isn't. Please never give advice again.
<marchelzo> lmao Aeyris is this your first time on the internet
<Aeyris> That sort of advice isn't just incorrect, it's dangerous.
<Aeyris> Stop posting anytime.
<marchelzo> it's a prank dude
<Aeyris> >gets uneducated opinion destroyed
<Aeyris> >just a prank!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<allisio> "Joke's on them; I was only pretending to be retarded."
<Aeyris> Pretty much.
<marchelzo> lmao it was pretty obvious bait
<Aeyris> Great! Bye now.
padi_ has joined #ruby
bigtawm has quit [Ping timeout: 260 seconds]
<marchelzo> elomatreb: that's not true though
justicefries has joined #ruby
<marchelzo> memcached and redis have been popular for longer than the javascript bubble has been promoting NoSQL
tyang has joined #ruby
justicefries has quit [Client Quit]
<allisio> "Bubble"?
<elomatreb> Sure, as the name suggests for caching
padi_ has quit [Remote host closed the connection]
justicefries has joined #ruby
<marchelzo> yes
<marchelzo> they're still databases, regardless of what you use them for. so to say that everything outside the javascript bubble is in a relational db is not accurate.
tyang_ has joined #ruby
foooooobar has quit [Remote host closed the connection]
padi_ has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
<elomatreb> Personally, if you put a non-relational caching layer in front of a traditional relational db, I'd still count the data as being on a relational db, since it is the persistent layer
aoisud has joined #ruby
<Aeyris> reddit does this
aoisud has quit [Remote host closed the connection]
saneax is now known as saneax-_-|AFK
tyang has quit [Ping timeout: 246 seconds]
oaisud has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jscheel> have an update on my ssl issue
<jscheel> the friggin third party was displaying a different CA cert than they were actually service when I pressed the download button below the cert. I kid you not.
<jscheel> friggin caching issue
pifon has joined #ruby
milardovich has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
Cohedrin has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
oaisud has quit [Remote host closed the connection]
aoisud has joined #ruby
aoisud has quit [Remote host closed the connection]
aoisdu has joined #ruby
kristofferR has joined #ruby
kristofferR has quit [Client Quit]
aoisdu has quit [Remote host closed the connection]
jdm has joined #ruby
oiausodi has joined #ruby
__Yiota has joined #ruby
sid_fules has quit [Remote host closed the connection]
byte512 has quit [Ping timeout: 259 seconds]
__Yiota has quit [Client Quit]
certainty has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 260 seconds]
nowhereman has joined #ruby
kristofferR has joined #ruby
cibs has joined #ruby
zeroDi has quit [Quit: WeeChat 1.7]
Azure has quit [Read error: Connection reset by peer]
hooper has quit [Quit: Leaving.]
im314ous has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
cschneid_ has joined #ruby
cschnei__ has joined #ruby
jenrzzz has quit [Ping timeout: 259 seconds]
ruid has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
cschnei__ has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Remote host closed the connection]
jose_leeto has joined #ruby
Volsus has joined #ruby
Guest9651 is now known as CrazEd
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CrazEd is now known as Guest19207
__Yiota has joined #ruby
jokester has quit [Quit: sigfpe]
ElDoggo has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
dar123 has joined #ruby
Volsus has quit [Quit: Leaving...]
<sparr> I want to set a variable to foo['bar']['baz'] if that exists, or blah if not
resin has joined #ruby
<sparr> can I do that without a chain of .key? conditions?
jameser has joined #ruby
j2k has quit [Quit: Connection closed for inactivity]
mtkd has quit [Ping timeout: 268 seconds]
<elomatreb> sparr: Check out Hash#dig
<allisio> sparr: You can use the "safe navigation operator", but it's super-ugly with Hash#[]: https://eval.in/749308
cschneid_ has joined #ruby
mtkd has joined #ruby
<sparr> dig seems prettier than the safe navigation operator
<allisio> Just felt like a suitable time to bring the operator to your attention; #dig is certainly better in this particular case.
<elomatreb> It is, it was designed by the rails people to replace the ugly &. hack
benlieb has quit [Quit: benlieb]
<SeepingN> you guys and your up-to-date ruby
<SeepingN> :(
<allisio> 2.3?
<SeepingN> well ok; More up to date
<SeepingN> far-less-ancient
<SeepingN> our newest embedded devices are only 2.1.2
<elomatreb> Embedded Ruby? That seems like a strange choice
cschneid_ has quit [Ping timeout: 246 seconds]
<allisio> mruby, though.
<sparr> is there a way to distinguish between a missing parameter and a parameter supplied with its default value?
<sparr> def foo(x=10) ... foo() vs foo(10)
<sparr> x:10 that is
hahuang65 has joined #ruby
<allisio> sparr: You have to do something slightly gruesome like `Default = Object.new; def foo(arg = Default)`.
<SeepingN> yeah it seems a bit... heavy. But I'm glad they're using the same thing on both sides.
<sparr> allisio: if I do that, how can I differentiate between foo() and foo(Object.new) ?
<allisio> sparr: Object identity.
<lupine> "I identify as a Class"
<sparr> ahh, so I can check if arg === Default within foo?
oiausodi has quit [Remote host closed the connection]
jschoolcraft has quit [Quit: peace]
<allisio> sparr: Not quite; Ruby's `===` isn't JavaScript's.
<SeepingN> === ain't =
<sparr> oh, drat. I read about that
hutch34 has quit [Ping timeout: 240 seconds]
<allisio> #=== (the "case equality" operator) is specially defined on several builtin classes.
tau has joined #ruby
<sparr> my parameters are floats. can I make a Float object and then check its identity later to see if it's the same one?
<elomatreb> === is usually LESS strict than ==, which may be confusing if you're coming from JS. You can almost ignore it, you very rarely use it yourself
<elomatreb> If you really want to check an objects class, use #is_a?(klass)
<sparr> elomatreb: that's not what I want
<sparr> elomatreb: I'm trying to check if a parameter was passed to a method, or not and there was a default value for it
<sparr> I have `def foo(a=1)` and I want to be able to differentiate between foo() and foo(1)
<allisio> sparr: https://eval.in/749321
<elomatreb> If a can only be a number, you can just assign nil as a default and check for it
SeepingN has quit [Quit: The system is going down for reboot NOW!]
tau has quit [Remote host closed the connection]
<sparr> allisio: that example has lost the actual value I want for the default
<sparr> elomatreb: I'm hoping for some solution where the "default" value is still in a location other devs will think to look for it, as it is now in the method definition
<allisio> sparr: Use the `||=` operator at the very beginning of the method.
<elomatreb> This is how I'd do it: https://eval.in/749325
<sparr> yeah, I guess so
<allisio> That's three outta three.
djbkd has quit [Quit: My people need me...]
<elomatreb> I'm not quite sure why you want this though, this is the exact same behaviour as defining the default in the signature afaict
duderonomy has quit [Ping timeout: 246 seconds]
ElDoggo has joined #ruby
jtoyy has quit [Remote host closed the connection]
kshitij has joined #ruby
pifon has quit []
tau has joined #ruby
yfeldblum has joined #ruby
KicStart has left #ruby [#ruby]
bot-3 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
tau has quit [Remote host closed the connection]
tau has joined #ruby
jose_leeto has quit [Quit: Leaving.]
ruid has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ElDoggo has quit [Remote host closed the connection]
tau has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 264 seconds]
tau has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
tau has quit [Remote host closed the connection]
enterprisey has joined #ruby
tau has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
mwlang has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
marxarelli is now known as marxarelli|afk
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
EV3RYDAYPR0GRESS has quit [Read error: Connection reset by peer]
EV3RYDAYPR0GRESS has joined #ruby
griffindy has joined #ruby
jenrzzz has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
Guest19207 is now known as CrazEd
yqt has quit [Ping timeout: 240 seconds]
CrazEd is now known as Guest57336
djbkd has joined #ruby
hotpanca_ has joined #ruby
duderonomy has joined #ruby
bigtawm has joined #ruby
nettoweb has joined #ruby
jdm has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 240 seconds]
username_ has joined #ruby
jdm has joined #ruby
oetjenj has joined #ruby
duderonomy has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
BackEndCoder has quit [Excess Flood]
bigtawm has quit [Quit: Page closed]
im314ous has joined #ruby
BackEndCoder has joined #ruby
milardovich has quit []
libastral has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frbk has joined #ruby
Rodya_ has quit [Quit: Leaving...]
libastral has joined #ruby
nettoweb has joined #ruby
bmurt has joined #ruby
<frbk> Hey guys. Can anyone help me compile ruby2.4.0 on fedora 25? I keep getting No such file or directory for openssl.so. Also I already installed openssl-devel.
<elomatreb> frbk: I can't really answer your question, but I always used https://github.com/postmodern/ruby-install to build my rubies and it seemed to take care of such things
certainty has joined #ruby
yfeldblum has joined #ruby
<frbk> elomatreb: I am using it but I am having issues on my laptop. Desktop compiled without any issues.
itsautomatisch has quit [Ping timeout: 240 seconds]
jameser_ has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
<frbk> elomatreb: Also it does tell me that all prerequisites installed.
<frbk> I get this message
<frbk> Package gcc-6.3.1-1.fc25.x86_64 is already installed, skipping.
<frbk> Package zlib-devel-1.2.8-10.fc24.i686 is already installed, skipping.
<frbk> Package zlib-devel-1.2.8-10.fc24.x86_64 is already installed, skipping.
<frbk> Package bison-3.0.4-4.fc24.x86_64 is already installed, skipping.
<frbk> Package automake-1.15-7.fc25.noarch is already installed, skipping.
<frbk> Package libyaml-devel-0.1.6-8.fc24.x86_64 is already installed, skipping.
<frbk> Package openssl-devel-1:1.0.2k-1.fc25.i686 is already installed, skipping.
<frbk> Package openssl-devel-1:1.0.2k-1.fc25.x86_64 is already installed, skipping.
<frbk> Package gdbm-devel-1.12-1.fc25.x86_64 is already installed, skipping.
<frbk> Package readline-devel-6.3-8.fc24.x86_64 is already installed, skipping.
<frbk> Package ncurses-devel-6.0-6.20160709.fc25.x86_64 is already installed, skipping.
<frbk> Package libffi-devel-3.1-9.fc24.x86_64 is already installed, skipping.
<frbk> Dependencies resolved.
hotpanca_ has quit [Remote host closed the connection]
ruid has quit [Quit: Leaving]
jdm has quit [Remote host closed the connection]
jameser has quit [Ping timeout: 258 seconds]
cdg has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
bot-3 has quit [Quit: Page closed]
_aeris_ has joined #ruby
minimalism has joined #ruby
jokester has joined #ruby
frbk has quit [Quit: Leaving]
elifoster has joined #ruby
cschneid_ has joined #ruby
Derperperd has quit [Ping timeout: 246 seconds]
ElDoggo has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
hotpancakes has joined #ruby
jdm has joined #ruby
ElDoggo has quit [Ping timeout: 258 seconds]
Volsus has joined #ruby
Volsus has quit [Client Quit]
Suslov has joined #ruby
bweston92 has quit [Quit: Connection closed for inactivity]
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
jose_leeto has joined #ruby
oetjenj has quit [Quit: Textual IRC Client: www.textualapp.com]
jose_leeto has quit [Client Quit]
ElDoggo has joined #ruby
bkxd has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
tyang_ has quit [Read error: Connection reset by peer]
hotpancakes has quit [Remote host closed the connection]
cdg_ has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
cdg has joined #ruby
BackEndCoder has quit [Excess Flood]
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
Guest57336 is now known as CrazEd
BackEndCoder has joined #ruby
CrazEd is now known as Guest70630
certainty has quit [Ping timeout: 240 seconds]
jdm has quit [Remote host closed the connection]
jdm has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
Ruby_Rocks_007 has joined #ruby
wald0 has joined #ruby
postmodern has joined #ruby
Derperperd has joined #ruby
ElDoggo has quit [Remote host closed the connection]
wilbert_ has joined #ruby
wilbert_ has quit [Client Quit]
mwlang has quit [Ping timeout: 240 seconds]
pilne has quit [Quit: Quitting!]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mwlang has joined #ruby
hotpanca_ has joined #ruby
brn_ has joined #ruby
hotpanca_ has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
username_ has quit [Ping timeout: 260 seconds]
d^sh has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
brn_ has quit [Quit: WeeChat 1.7]
xall_ has joined #ruby
d^sh has joined #ruby
<sparr> elomatreb: using ||= first is the same as putting the default in the signature. what I want is something as close as possible *visually* to putting the default in the signature, but retaining the ability to tell the difference
haraoka has joined #ruby
ElDoggo has joined #ruby
<elomatreb> sparr: I don't I've understood why you can't just put the default in the signature
kshitij has quit [Quit: Connection closed for inactivity]
hotpancakes has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 246 seconds]
hotpancakes has joined #ruby
astrobunny has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has joined #ruby
hotpancakes has quit [Read error: Connection reset by peer]
ElDoggo has quit [Remote host closed the connection]
zacts has joined #ruby
Derperperd has quit [Max SendQ exceeded]
Derperperd has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Derperperd has quit [Max SendQ exceeded]
Channel6 has quit [Quit: Leaving]
Derperperd has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 240 seconds]
danielpclark has joined #ruby
d0nn1e has quit [Ping timeout: 246 seconds]
gix has joined #ruby
d0nn1e has joined #ruby
Guest70630 is now known as CrazEd
CrazEd is now known as Guest58575
jnoob22 has joined #ruby
djbkd has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
brent__ has joined #ruby
jdm has quit [Remote host closed the connection]
jdm has joined #ruby
padi_ has quit []
djbkd has quit [Ping timeout: 258 seconds]
Derperperd has quit [Quit: WeeChat 1.5]
patarr has joined #ruby
marchelzo has quit [Quit: :*]
hutch34 has joined #ruby
skolman has quit [Remote host closed the connection]
<sparr> I want to know, within the method, whether it was called without the parameter, or with the parameter set to its default
<sparr> for `def foo(x=1)` I want to be able to tell the difference in foo() and foo(1)
<sparr> x is still going to default to 1, I just want to be able to answer the question mid-method "did the user provide an x value for this call?)
skolman_ has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
<elomatreb> sparr: Hacky, but what do you think of this? https://eval.in/749395
Suslov has quit [Quit: Leaving...]
jnoob22 has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
blackwind_123 has quit [Ping timeout: 260 seconds]
gnufied has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
jnoob22 has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 258 seconds]
<sparr> that's possibly less ugly than the block of code I'm using
<sparr> thanks
pawnbox has joined #ruby
marcdel has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Read error: Connection reset by peer]
<sparr> my initial attempt has the defaults waaaay down in the file, to account for some other logic. I'd like to get them back closer to the top.
nowhereman has quit [Ping timeout: 240 seconds]
onlyjeanbean has quit [Quit: Page closed]
brent__ has quit [Remote host closed the connection]
<sparr> "waaaay" being about ten lines, but also buried in a long expression
reverberations has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
enterprisey has quit [Remote host closed the connection]
dar123 has quit [Client Quit]
sneakerhax has joined #ruby
Anonymoose2 has quit [Ping timeout: 256 seconds]
<elomatreb> sparr: One unrelated thing: In your initialise method, you have the explicit block parameter. You're not actually using the block as an object anywhere, you you can replace the entire if .. end starting in line 77 with `yield if block_given?` and remove the block parameter.
<elomatreb> It's idiomatic and actually faster, since Ruby doesn't needlessly create a Proc object (which is what the & does)
aupadhye has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
username_ has joined #ruby
<elomatreb> Uh, ignore that, I misread your code
grant has joined #ruby
nithinbekal has joined #ruby
username_ has quit [Ping timeout: 258 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
certainty has joined #ruby
SteenJobs has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
renchan has joined #ruby
cibs has quit [Ping timeout: 256 seconds]
Guest58575 is now known as CrazEd
CrazEd is now known as Guest49110
cibs has joined #ruby
djbkd has joined #ruby
el_ocho[m] has quit [Ping timeout: 255 seconds]
el_ocho[m] has joined #ruby
GeorgeTorwell has quit [Ping timeout: 255 seconds]
SteenJobs has quit [Quit: SteenJobs]
GeorgeTorwell has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
djbkd_ has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
bruce_lee has joined #ruby
djbkd_ has quit [Quit: Leaving...]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
im314ous has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has joined #ruby
minimalism has quit [Quit: minimalism]
hotpancakes has joined #ruby
anisha has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
zacts has quit [Ping timeout: 264 seconds]
cschneid_ has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw` has joined #ruby
bkxd has joined #ruby
pwnd_nsfw has quit [Ping timeout: 258 seconds]
enterprisey has quit [Remote host closed the connection]
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
gusrub has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes has joined #ruby
hotpancakes has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
hotpanca_ has joined #ruby
pawnbox has joined #ruby
jscheel has quit [Quit: jscheel]
statelesscode has joined #ruby
hotpancakes has quit [Read error: Connection reset by peer]
<nofxxx> Any use for this HMAC api auth thing? Over just https + token
<nofxxx> says amazon uses hmac ... https://github.com/mgomes/api_auth
Cohedrin has joined #ruby
gestrella has joined #ruby
georgie has quit [Ping timeout: 260 seconds]
hotpanca_ has quit [Ping timeout: 260 seconds]
Guest49110 is now known as CrazEd
CrazEd is now known as Guest42535
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
JoshS has joined #ruby
djbkd has joined #ruby
skolman_ has quit [Remote host closed the connection]
patarr has joined #ruby
bocaneri has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
patarr has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
ledestin has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wald0 has quit [Ping timeout: 260 seconds]
cfec0b8d has joined #ruby
hutch34 has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
zapata has quit [Ping timeout: 264 seconds]
justicefries has quit [Quit: justicefries]
aryaching has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgnagy has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
zapata has joined #ruby
pawnbox_ has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
certainty has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
dn` has joined #ruby
hahuang61 has joined #ruby
tau has quit [Remote host closed the connection]
Burgestrand has joined #ruby
saneax-_-|AFK is now known as saneax
tau has joined #ruby
last_staff has joined #ruby
tau has quit [Remote host closed the connection]
tau has joined #ruby
tau has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 268 seconds]
Derperperd has joined #ruby
cibs has joined #ruby
mwlang has quit [Quit: mwlang]
tau has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
Derperperd has quit [Client Quit]
Derperperd has joined #ruby
Snickers has joined #ruby
Qchmqs has joined #ruby
nithinbekal has quit [Ping timeout: 240 seconds]
tau has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 264 seconds]
Derperperd has quit [Quit: WeeChat 1.5]
Guest42535 is now known as CrazEd
certainty has quit [Ping timeout: 260 seconds]
CrazEd is now known as Guest22310
djbkd has quit [Remote host closed the connection]
Derperperd has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
nicknight has joined #ruby
djbkd has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
Derperperd has quit [Client Quit]
Derperperd has joined #ruby
Derperperd has quit [Client Quit]
andikr has joined #ruby
Burgestrand has quit [Quit: Closing time!]
certainty has joined #ruby
Xiti has quit [Quit: Xiti]
doublemalt_ has joined #ruby
mhunt has joined #ruby
nithinbekal has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
stoffus has joined #ruby
byte512 has joined #ruby
armin_ has joined #ruby
jdm has quit [Remote host closed the connection]
stoffus_ has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
armin has quit [Ping timeout: 260 seconds]
moufl has quit [Ping timeout: 260 seconds]
nicknight has quit [Quit: WeeChat 1.4]
<kke_> is there some difference between STDIN and $stdin?
<kke_> (and STDOUT and $stdout)
moufl has joined #ruby
<elomatreb> kke_: Yes, you can reassign the variables
hutch34 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
elifoster has quit [Quit: sleep]
hutch34 has quit [Ping timeout: 240 seconds]
<kke_> right, so STDIN is always the "real" stdin but $stdin could be stringio or something
pawnbox has joined #ruby
username_ has joined #ruby
<elomatreb> Yep. $stdin and $stdout are used as default arguments to some methods that take an IO object, e.g. puts and gets
lenwood has joined #ruby
lenwood has quit [Client Quit]
username_ has quit [Ping timeout: 240 seconds]
conta has joined #ruby
lenwood has joined #ruby
__Yiota has joined #ruby
tau has joined #ruby
tau has quit [Remote host closed the connection]
Guest58712 has joined #ruby
Macaveli has joined #ruby
Guest58712 is now known as \tau
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
aganov has joined #ruby
gusrub has joined #ruby
manjaro-kde5 has joined #ruby
lenwood has quit [Ping timeout: 268 seconds]
gusrub has quit [Ping timeout: 240 seconds]
\tau has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
TomyWork has joined #ruby
pawnbox has quit [Remote host closed the connection]
Guest96018 is now known as olspookishmagus
pawnbox has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
nithinbekal has quit [Ping timeout: 260 seconds]
cfec0b8d has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
Arpanet69 has joined #ruby
biberu has joined #ruby
pawnbox_ has joined #ruby
teclator has quit [Remote host closed the connection]
xall_ has quit [Ping timeout: 258 seconds]
pawnbox has quit [Ping timeout: 268 seconds]
Jrz has joined #ruby
pawnbox has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
dn` has quit [Quit: dn`]
hotpancakes has joined #ruby
mikecmpbll has joined #ruby
bkxd has joined #ruby
antgel has joined #ruby
xall_ has joined #ruby
pulkit4tech has joined #ruby
Guest22310 is now known as CrazEd
DrCode has quit [Ping timeout: 268 seconds]
CrazEd is now known as Guest25273
flying has joined #ruby
sdwrage has quit [Quit: Leaving]
armin_ is now known as armin
hotpancakes has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
patarr has joined #ruby
doublemalt_ has quit [Ping timeout: 246 seconds]
Mortomes|Work has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
bigkevmcd has joined #ruby
Robtop__ has joined #ruby
jsrn_ has joined #ruby
hutch34 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
TomyWork has quit [Remote host closed the connection]
aklrcv has joined #ruby
jgnagy has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 246 seconds]
TomyWork has joined #ruby
nithinbekal has joined #ruby
yeticry_ has quit [Quit: leaving]
hutch34 has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
tau has joined #ruby
hotpancakes has joined #ruby
hotpanca_ has joined #ruby
tomphp has joined #ruby
harfangk has quit [Remote host closed the connection]
certainty has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
hotpanca_ has quit [Ping timeout: 260 seconds]
mark_66 has joined #ruby
igniting has joined #ruby
Bish has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bocaneri has quit [Ping timeout: 240 seconds]
Bish has joined #ruby
hinbody has quit [Ping timeout: 260 seconds]
lel- has quit [Ping timeout: 240 seconds]
neuraload has joined #ruby
mhunt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ferr1 has joined #ruby
bigkevmcd has quit [Ping timeout: 240 seconds]
Arpanet69 has quit [Ping timeout: 258 seconds]
LambdaSix has quit [Ping timeout: 268 seconds]
josealobato has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
Beams has joined #ruby
LambdaSix has joined #ruby
bigkevmcd has joined #ruby
bigkevmcd has quit [Max SendQ exceeded]
workmad3 has joined #ruby
bigkevmcd has joined #ruby
bocaneri has joined #ruby
teclator has joined #ruby
_2easy has quit [Quit: Lost terminal]
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
lel has joined #ruby
toretore has joined #ruby
Guest25273 is now known as CrazEd
tvw has joined #ruby
CrazEd is now known as Guest61493
workmad3 has quit [Ping timeout: 260 seconds]
hinbody has joined #ruby
bigkevmcd has quit [Ping timeout: 264 seconds]
LambdaSix has quit [Ping timeout: 264 seconds]
LambdaSix has joined #ruby
bigkevmcd has joined #ruby
workmad3 has joined #ruby
lxsameer has joined #ruby
jenrzzz has joined #ruby
__Yiota has joined #ruby
haraoka has quit [Ping timeout: 256 seconds]
jameser has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
__Yiota has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
sid_fules has joined #ruby
saneax is now known as saneax-_-|AFK
sid_fules has quit [Remote host closed the connection]
sid_fules has joined #ruby
hutch34 has quit [Ping timeout: 256 seconds]
doublemalt_ has joined #ruby
Silthias1 has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
hotpancakes has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Bounga has joined #ruby
jose_leeto has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
__Yiota has joined #ruby
__Yiota has quit [Client Quit]
catphish has joined #ruby
<catphish> is there a way to prematurely end a sleep call? or are the only options to use a series of short sleeps or a select() with a self pipe and a timeout?
certainty has quit [Ping timeout: 256 seconds]
Guest90403 is now known as alamar
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
tau has quit [Quit: HAUE]
tvw has quit [Ping timeout: 260 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
maattdd_ has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
xen0fon has quit [Quit: xen0fon]
<dminuoso> catphish: interrupt it.
<dminuoso> &ri Thread#interrupt
<`derpy> No results
<dminuoso> oh.
<dminuoso> catphish: &ri Thread#wakeup
helpa has quit [Remote host closed the connection]
<dminuoso> &ri Thread#wakeup catphish
falconer has joined #ruby
<falconer> hey all
helpa has joined #ruby
<falconer> Question: Is it possible to define eigenclass (singleton) methods on a method object from within the definition of that method object?
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<falconer> ...I should just make a class...
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
nithinbekal has quit [Quit: WeeChat 1.7]
<catphish> dminuoso: thanks, that looks suitable :)
<banandana> yo dawg
postmodern has quit [Quit: Leaving]
<banandana> I've heard a lot of hate surrounding Ruby, specifically rails
bkxd has quit [Ping timeout: 240 seconds]
<banandana> it seems like nothing I've really seen as far as past experience
pawnbox has quit [Ping timeout: 260 seconds]
<banandana> and the ActiveDirectory stuff as some ORM stuff, that was confusing
<banandana> it seems so abstract
<banandana> and dones't seem to follow other more common linquistic patterns
<TomyWork> i have a bunch of sets of strings i want to concatenate in all possible ways. <entry from set 1><entry from set2> etc
<TomyWork> basically i need shell curly brace expansions, but in ruby :)
<banandana> yeah because don't they use spaces to indent
<banandana> or was it tabs
<TomyWork> {a,b}{c,d} => ac ad bc bd
Guest61493 is now known as CrazEd
CrazEd is now known as Guest72660
<danielpclark> TomyWork look at Array's methods :permutation and :combination ... after that use :join
<banandana> danielpclark: I think I'm in the wrong chan, this being ruby, maybe ActiveDirectory is RoR?
<al2o3-cr> TomyWork: Array#product
<danielpclark> TomyWork [[:a, :b], [:c, :d]].permutation.to_a.flatten(1).map(&:join) # => ["ab", "cd", "cd", "ab"]
certainty has joined #ruby
<TomyWork> danielpclark nic!
<TomyWork> +e
<danielpclark> [:a, :b].product([:c, :d]).map(&:join) # => ["ac", "ad", "bc", "bd"]
<dminuoso> ^-
<dminuoso> Was about to type that.
<TomyWork> danielpclark but it's more than 2 sets
<TomyWork> it's a bunch of them
<danielpclark> Thanks to @al2o3-cr
<dminuoso> TomyWork: Then please explain what logic you want with 3+ sets
<TomyWork> basically a chain of products i guess
<dminuoso> %i[a b] %i[c d] %i[e f] #=>
<dminuoso> ?
<dminuoso> What is that supposed to produce?
<dminuoso> ace, acf, etc?
<dminuoso> ac, ad, ae, aef?
<danielpclark> banandana, #RubyOnRails
<TomyWork> ace acf etc
<TomyWork> one from each set
<al2o3-cr> >> %w[a b].product(%w[c d], %w[e f])
<ruby[bot]> al2o3-cr: # => [["a", "c", "e"], ["a", "c", "f"], ["a", "d", "e"], ["a", "d", "f"], ["b", "c", "e"], ["b", "c", "f" ...check link for more (https://eval.in/749591)
<TomyWork> .map &:join and it's done, nice
jameser has joined #ruby
<TomyWork> thanks everyone :)
<TomyWork> i wasnt aware product took more than one arg :)
solocshaw has joined #ruby
<danielpclark> >> [%w{a c e}, %w{a c f}, %w{e t c}].permutation.to_a.flatten(1).map(&:join)
<banandana> danielpclark: much appreciated :3
<ruby[bot]> danielpclark: # => ["ace", "acf", "etc", "ace", "etc", "acf", "acf", "ace", "etc", "acf", "etc", "ace", "etc", "ace", " ...check link for more (https://eval.in/749597)
<al2o3-cr> TomyWork: it's a variadic method :)
pandaant has joined #ruby
<danielpclark> oops, mine didn't work
LiquidIn1ect has quit [Ping timeout: 264 seconds]
Arpanet69 has joined #ruby
yusrideb has joined #ruby
danielpclark has quit [Quit: Leaving]
hutch34 has joined #ruby
manjaro-kde5 has quit [Ping timeout: 264 seconds]
mtkd has quit [Ping timeout: 240 seconds]
LiquidInsect has joined #ruby
mtkd has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has quit [Ping timeout: 240 seconds]
saneax-_-|AFK is now known as saneax
pawnbox has joined #ruby
xen0fon has joined #ruby
charliesome has joined #ruby
<al2o3-cr> >> %w[a b].map { |x| %w[c d].map { |y| %w[e f].map { |z| x[0] << y[0] << z[0] }}} * ' ' # the long way round :p
<ruby[bot]> al2o3-cr: # => "ace acf ade adf bce bcf bde bdf" (https://eval.in/749643)
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acalycine has joined #ruby
<dminuoso> al2o3-cr: Let's do this with Method#curry
<dminuoso> Or wait..
canton7 has quit [Ping timeout: 264 seconds]
<dminuoso> Yeah I think we could do something special with Method#curry
<al2o3-cr> dminuoso: i'd like to see this one :)
<dminuoso> al2o3-cr: Let me ponder on this.
<dminuoso> I want to create the most elaborate and silly way to do this.
<al2o3-cr> dminuoso: i'll have ago too heh
solocshaw has quit [Ping timeout: 246 seconds]
canton7 has joined #ruby
ddffg has joined #ruby
falconer has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
Ruby_Rocks_007 has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
jaruga_________ has joined #ruby
ldnunes has joined #ruby
<dminuoso> al2o3-cr: https://eval.in/749659
__Yiota has joined #ruby
__Yiota has quit [Client Quit]
<dminuoso> Isn't this kind of like a monad?
<al2o3-cr> haha nice :)
certainty has quit [Ping timeout: 240 seconds]
aklrcv has quit [Remote host closed the connection]
<dminuoso> al2o3-cr: I was hoping to somehow force a higher order function in there though. :(
<dminuoso> Though I guess the .map(:&join) kind of counts as a higher order function.
<al2o3-cr> dminuoso: try doing this without using #product
<dminuoso> al2o3-cr: Oh oh!
<dminuoso> I can do that! lambda here we go!
<dminuoso> Though no, this is not fun.
<dminuoso> The quest is on. Can someone come up with a more elaborate and silly solution to this? https://eval.in/749659
CloCkWeRX has quit [Quit: Leaving.]
jameser has joined #ruby
bkxd has joined #ruby
pawnbox_ has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
cfec0b8d has joined #ruby
govg has quit [Ping timeout: 258 seconds]
govg has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest72660 is now known as CrazEd
CrazEd is now known as Guest73010
Fuzai has joined #ruby
teddysmoker has joined #ruby
CloCkWeRX has joined #ruby
LiquidInsect has quit [Ping timeout: 268 seconds]
sid_fule_ has joined #ruby
sid_fules has quit [Ping timeout: 260 seconds]
jaruga_________ has quit [Quit: jaruga_________]
xall_ has joined #ruby
JeanCarloMachado has joined #ruby
ddffg has quit [Ping timeout: 240 seconds]
LiquidInsect has joined #ruby
DaniG2k has joined #ruby
xen0fon has quit [Quit: xen0fon]
vondruch has left #ruby [#ruby]
hotpancakes has joined #ruby
Burgestrand has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
a1fa has quit [Ping timeout: 264 seconds]
a1fa has joined #ruby
jenrzzz has joined #ruby
hutch34 has joined #ruby
Burgestrand has joined #ruby
conta has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
qakqed has joined #ruby
falconer has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
mhunt has joined #ruby
DARPA has joined #ruby
ddffg has joined #ruby
xall_ has quit [Ping timeout: 246 seconds]
Arpanet69 has quit [Ping timeout: 260 seconds]
qakqed has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 268 seconds]
DaniG2k has quit [Quit: leaving]
qakqed has joined #ruby
GK___1wm____SU has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
shinnya has joined #ruby
lenwood has joined #ruby
certainty has joined #ruby
JeanCarloMachado has joined #ruby
GK___1wm____SU has quit [K-Lined]
anisha has quit [Quit: Leaving]
brent__ has joined #ruby
qakqed has quit [Quit: Konversation terminated!]
CloCkWeRX has quit [Quit: Leaving.]
hotpancakes has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
conta has joined #ruby
hotpanca_ has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
Violentr has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
SteenJobs has joined #ruby
qakqed has joined #ruby
qakqed has quit [Client Quit]
dionysus69 has joined #ruby
millerti has joined #ruby
SteenJobs has quit [Client Quit]
xall_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
tyang has joined #ruby
Guest73010 is now known as CrazEd
CrazEd is now known as Guest12315
jrafanie has joined #ruby
hotpanca_ has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
KicStart has joined #ruby
sepp2k has joined #ruby
xen0fon has joined #ruby
drake has joined #ruby
hutch34 has joined #ruby
bmurt has joined #ruby
norbertka has joined #ruby
drake has quit [Client Quit]
zacts has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
anisha has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
Fuzai has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
Fuzai has joined #ruby
jameser has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
malconis has joined #ruby
Pumukel has quit []
aryaching_ has joined #ruby
conta has joined #ruby
__Yiota has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 240 seconds]
t-recx has joined #ruby
__Yiota has quit [Client Quit]
__Yiota has joined #ruby
jnoob22 has quit [Changing host]
jnoob22 has joined #ruby
cdg has joined #ruby
malconis has quit [Ping timeout: 268 seconds]
cdg has quit [Remote host closed the connection]
jameser has joined #ruby
cdg has joined #ruby
alexandernst_ has joined #ruby
<alexandernst_> How can I force ruby to read an attribute I have in self., instead of running a method that has the same name?
malconis has joined #ruby
<matthewd> alexandernst_: `self.foo` or `foo()`
<alexandernst_> eg: self.foo <-- attr in a rails model instead of self.foo() <--- a method
<matthewd> Oh, not a variable
<alexandernst_> matthewd: self.foo is returning nil (thus, it's calling the method)
<matthewd> Umm... they're the same thing
<matthewd> In that case, this is more of a #rubyonrails question
<apeiros> alexandernst_: self.foo and self.foo() both call methods
j2k has joined #ruby
gusrub has joined #ruby
priodev has quit [Ping timeout: 258 seconds]
priodev has joined #ruby
gusrub has quit [Ping timeout: 268 seconds]
aryaching has joined #ruby
itsautomatisch has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
Silthias has quit [Ping timeout: 256 seconds]
aryaching_ has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
nowhereman has joined #ruby
colegatron has joined #ruby
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaruga_________ has joined #ruby
colegatron has left #ruby [#ruby]
Guest12315 is now known as CrazEd
GK___1wm____SU has joined #ruby
CrazEd is now known as Guest2813
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaruga________ has joined #ruby
GK___1wm____SU has quit [K-Lined]
jaruga__________ has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
neuraload has joined #ruby
millerti has joined #ruby
jaruga________ has quit [Ping timeout: 260 seconds]
jaruga_________ has quit [Ping timeout: 268 seconds]
tubbo has quit [Ping timeout: 256 seconds]
BackEndCoder has quit [Excess Flood]
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
fivmo has joined #ruby
BackEndCoder has joined #ruby
fivmo has quit [Client Quit]
hotpancakes has joined #ruby
fivmo has joined #ruby
harfangk has joined #ruby
Bish has quit [Ping timeout: 240 seconds]
marchelzo has joined #ruby
<marchelzo> hello ruby enthusiasts
synthroid has joined #ruby
<mikecmpbll> marchelzo : hello
<marchelzo> how are you beautiful folks doing today
Bish has joined #ruby
<marchelzo> mikecmpbll: did you find a MySQL consultant yet?
<mikecmpbll> yes thank you ;)
marr has joined #ruby
<marchelzo> oh ok. was my hourly rate too steep?
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<mikecmpbll> nope, i just don't know anything about you.
jameser has joined #ruby
gnufied has joined #ruby
hutch34 has joined #ruby
renatosilva has joined #ruby
josealobato has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 260 seconds]
conta has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
anisha has quit [Quit: This computer has gone to sleep]
hutch34 has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
certainty has joined #ruby
ramortegui has joined #ruby
<allisio> You know he thinks you're beautiful.
yqt has joined #ruby
fivmo has left #ruby ["Textual IRC Client: www.textualapp.com"]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has quit [Read error: Connection reset by peer]
Beams has quit [Quit: .]
rippa has joined #ruby
Beams has joined #ruby
jamesaxl has joined #ruby
cdg_ has joined #ruby
dionysus69 has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
fuzzyhorns has joined #ruby
troulouliou_div2 has joined #ruby
maloik28 has joined #ruby
maloik has quit [Read error: Connection reset by peer]
<mikecmpbll> :)
last_staff has quit [Quit: last_staff]
baked__beans has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
SteenJobs has joined #ruby
malconis has left #ruby ["Textual IRC Client: www.textualapp.com"]
DLSteve has joined #ruby
fuzzyhorns has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
Snickers has quit [Ping timeout: 268 seconds]
SteenJobs has quit [Quit: SteenJobs]
<Bish> can i overload a function withotu changing it's parameters
<apeiros> you can't overload a method at all in ruby
Beams has quit [Quit: .]
<Bish> apeiros: whatever the right term is, for that
<apeiros> you can only redefine or override methods
<Bish> i don't mind
<Bish> basicially i just want to add a flag that a certain setter method has beel called
<apeiros> you may not mind about the term, but using the wrong term gets you useless answers - so maybe you *should*.
<Bish> if i do "def method_name *args" i change the args the method wants
Violentr has quit [Ping timeout: 256 seconds]
<Bish> well in this case, you know what i mean
<allisio> Bish: You want Module#prepend and `super`.
<Bish> *looks into it*
neuraload has joined #ruby
<apeiros> Bish: do you own the class you want to modify?
<Bish> apeiros: "own"?
<apeiros> is it part of your code base or 3rd party?
<Bish> as in my code?
<allisio> Wat.
<Bish> well.. kinda both
<apeiros> so… your code, but in another gem or similar?
<Bish> the 3rd party created the setter method, but i told it to do that
<allisio> You don't have to modify a Class to do this.
<Bish> overridable_methods_module.module_eval("def #{meth}(v); self[:#{column}] = v end", __FILE__, __LINE__) unless im.include?(meth)
<allisio> Gross.
conta has quit [Quit: conta]
<Bish> well, this third party lib is the best i know
<Bish> so it can be gross as much as it wants
<Bish> :D
SteenJobs has joined #ruby
conta has joined #ruby
Beams has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SteenJobs has quit [Client Quit]
<apeiros> allisio: Module#prepend is modifying a class. or did I misunderstand what you intended to say?
BackEndCoder has quit [Excess Flood]
<allisio> apeiros: Yeah, fair enough.
<Bish> allisio: i don't think that's what i want either
<allisio> Bish: You want something akin to Python's notion of "decoration", as I understand it.
<Bish> basicially i want "def password= *args; @password_is_plaintext=true;super *args; end;"
<Bish> without changing the parameter count "password=" wants
jameser has joined #ruby
<allisio> Then I'm right.
<apeiros> depending on what you need it for, refinements might be another venue.
BackEndCoder has joined #ruby
<apeiros> though I'm actually not sure whether you can override an existing method that way.
<Bish> well, okay, it works this way too :/
<allisio> What, with #eval?
<apeiros> in rails, there's also alias_method_chain
<apeiros> but IMO if you monkey patch, take a step back, think about it again and try to find a way without monkey patching.
<Bish> this is basicially it
<allisio> Does #prepend constitute monkey-patching?
brent__ has joined #ruby
DARPA has quit [Ping timeout: 260 seconds]
<apeiros> any modification of an existing class is monkey patching
<allisio> Bish: For reference, you can just say `super` to have all of the arguments passed through untouched.
<apeiros> so include, extend, prepend all qualify as monkey patching
jameser has quit [Client Quit]
<Bish> allisio: well, but how does it know how many arguments i expect?
<allisio> Bish: Computer magicks.
<Bish> so, will that method expect any amount of arguments?
<apeiros> password= only ever accepts 1 argument anyway
<Bish> yeh but what if not.. just curious
<Bish> to my understanding.. if i left *args out and had "super" instead of "super *args", the method would expect 0 parameters
<apeiros> then `super` as allisio said, alternatively splat/unsplat (def foo(*args); super(*args))
<allisio> Bish: Wrong.
<workmad3> Bish: `super` passes along all arguments given to the existing method... if the superclass method expects more or fewer args than provided, you get an error
<apeiros> `super` and `super()` behave differently
<Bish> so.. the answer to my original question is
<apeiros> sad but true
<Bish> "just use super"
<Bish> and you're set.
<allisio> Of course the arities have to match, but `super` followed by a repetition of the method's signature is always bad.
Guest2813 is now known as CrazEd
CrazEd is now known as Guest98309
bkxd has joined #ruby
<workmad3> `super` will also pick up if you've reassigned any of the arguments... unless it's a block argument (weird edge-case)
marchelzo has quit [Remote host closed the connection]
<allisio> How do you assign a block?
<apeiros> and `super()` will still pass on blocks
<Bish> ArgumentError: wrong number of arguments (given 1, expected 0
<Bish> :(
brent__ has quit [Ping timeout: 256 seconds]
hutch34 has joined #ruby
<workmad3> allisio: `def foo(&blk); blk = ->() {}; end`
<apeiros> super and split are some of the most surprising things in ruby
<allisio> workmad3: `blk` is now a Proc.
conta has quit [Ping timeout: 256 seconds]
synthroid has quit []
hotpancakes has joined #ruby
<workmad3> allisio: conceptually it's always a block... and `super` doesn't pick up that reassignment
<workmad3> *proc
<allisio> That's not true.
<Bish> that's confusing
<apeiros> while it can be argued to be an implementation detail - blocks != procs
<workmad3> allisio: any time you look at a 'block', you see a Proc... there isn't a way to see it as a 'block' unless you go monkeying around in the internals... and if you look at the object ID it also stays the same... so as a conceptual/mental model of ruby, 'blocks' can be said to not exist
<apeiros> but I guess super's behavior exposes that detail
<allisio> workmad3: I don't see how obscurantism does anyone any good here.
hotpanca_ has joined #ruby
<allisio> When you `yield`, it's to a block, not a Proc.
<workmad3> allisio: what about if you do `def foo(&blk); yield; end`
synthroid has joined #ruby
<workmad3> allisio: is it really useful at that point to think of the block and the proc as separate entities?
Arpanet69 has joined #ruby
<allisio> workmad3: Insofar as knowing the difference can prevent a Proc being created, sure.
<apeiros> the only point of thinking of them as being different is related to performance differences
<workmad3> ^ that's about the only useful criterion IMO...
<allisio> But it is one.
<workmad3> and that doesn't really impact the conceptual model of ruby, it's just an implementation-specific performance hack essentially
<allisio> In any case, we're supposed to be detail-oriented people.
xall_ has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 264 seconds]
<workmad3> i.e. ruby could be reimplemented without the performance improvement around 'blocks' not creating an actual Proc object unless necessary, and apart from some performance impacts there would be no observable difference
<allisio> You can't pass more than one block.
<matthewd> It both is and isn't. One doesn't think of "x" as being a fundamentally different concept from "x"*50.
Guest38728 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> allisio: that again doesn't alter the conceptual model... again, if you capture that arg explicitly, it always looks like a Proc, it's just a special calling convention for convenience if you want to get into the weeds ;)
<matthewd> "obscurantism" might be over-cooking it a bit, but eliding details not relevant to the immediate explanation is a key component of almost all educational approaches
Derperperd has joined #ruby
jscheel has joined #ruby
<workmad3> matthewd: it's also a key component of abstraction :)
ddrmanxbxfr has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
falconer has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gigetoo has joined #ruby
Derperperd has quit [Quit: WeeChat 1.5]
Derperperd has joined #ruby
chouhoulis has joined #ruby
Snickers has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
LazyLama has joined #ruby
Derperperd has quit [Client Quit]
Derperperd has joined #ruby
Derperperd has quit [Client Quit]
Derperperd has joined #ruby
hotpanca_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
ta_ has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
teclator has quit [Remote host closed the connection]
kristofferR has joined #ruby
hotpancakes has joined #ruby
vondruch has quit [Quit: vondruch]
conta has joined #ruby
vondruch has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
krazedkrish has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
conta has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
lamicka has joined #ruby
dkdwtq has joined #ruby
agent_white has joined #ruby
LazyLama has quit [Ping timeout: 260 seconds]
<agent_white> Mornin' folks
<bmurt> morning
<krazedkrish> Good Evening @agent_white
blackwind_123 has joined #ruby
ych has joined #ruby
mikkel- has joined #ruby
neuraload has quit [Quit: Leaving]
mikkel- is now known as mjuhl
mikecmpbll has quit [Quit: inabit. zz.]
esObe has joined #ruby
mikecmpbll has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
blackwind_123 has quit [Ping timeout: 260 seconds]
jscheel has quit [Quit: jscheel]
saneax is now known as saneax-_-|AFK
Qchmqs has quit [Ping timeout: 240 seconds]
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
GK___1wm____SU has joined #ruby
krazedkrish has quit [Ping timeout: 246 seconds]
yeticry has joined #ruby
GodFather has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
cdg_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
cdg has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
BackEndCoder has quit [Excess Flood]
GK___1wm____SU has quit [K-Lined]
Derperperd has quit [Ping timeout: 260 seconds]
BackEndCoder has joined #ruby
GK___1wm____SU has joined #ruby
GK___1wm____SU has left #ruby [#ruby]
GK___1wm____SU has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
GK___1wm____SU has quit [K-Lined]
fuzzyhorns has joined #ruby
GK___1wm____SU has joined #ruby
Fernando-Basso has joined #ruby
teclator has joined #ruby
Arpanet69 has quit [Quit: Leaving]
GK___1wm____SU has quit [K-Lined]
SteenJobs has joined #ruby
GK___1wm____SU has joined #ruby
SteenJobs has quit [Client Quit]
GK___1wm____SU has quit [K-Lined]
kristofferR has quit [Read error: Connection reset by peer]
skweek has joined #ruby
kristofferR has joined #ruby
Guest98309 is now known as CrazEd
CrazEd is now known as Guest47863
hotpancakes has quit [Remote host closed the connection]
Silthias has quit [Quit: Leaving.]
sid_fule_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sid_fules has joined #ruby
<bmurt> is it possible to use the rest-client gem and configure it to always use/pass authentication?
Derperperd has joined #ruby
<bmurt> meaning, i'm finding myself adding http://<user>:<pass>@ to each RestClient.get
Ruby_Rocks_007 has joined #ruby
Ruby_Rocks_007 has quit [Remote host closed the connection]
djbkd has joined #ruby
cschneid_ has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
ElDoggo has joined #ruby
GodFather has quit [Quit: Ex-Chat]
ElDoggo has quit [Remote host closed the connection]
vuoto has joined #ruby
ElDoggo has joined #ruby
GK___1wm____SU has joined #ruby
aganov has quit [Remote host closed the connection]
GK___1wm____SU has quit [K-Lined]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
GK___1wm____SU has joined #ruby
GK___1wm____SU has left #ruby [#ruby]
wald0 has joined #ruby
j2k has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
mwlang has joined #ruby
hahuang61 has joined #ruby
wald0 has quit [Client Quit]
<mwlang> is it possible to install ruby 1.8.7 on OSX Sierra? I just upgraded from Mavericks and it’s proving quite a challenge to get all my ruby versions working again.
ta_ has joined #ruby
<mwlang> using rvm for what it’s worth...
* dminuoso refuses to assist
<dminuoso> Topic says 2.2.6 is the oldest we should indulge.
<mwlang> dminuoso: haha. I look forward to the day!
pawnbox has quit [Ping timeout: 264 seconds]
cibs has joined #ruby
<dminuoso> also
<mwlang> I’m a Rails 1.x => Rails 4+ specialist. ;-)
<dminuoso> OSX Sierra?
<dminuoso> What is OSX Sierra?
* dminuoso is now making fun of mwlang
<mwlang> well, hell, they renamed the OS, too! macOS 10.12.3
solocshaw has quit [Ping timeout: 246 seconds]
shinnya has quit [Ping timeout: 260 seconds]
<matthewd> mwlang: I imagine the answer to "is it possible" is yes.
Suslov has joined #ruby
renatosilva has left #ruby ["http://renatosilva.net"]
renatosilva has joined #ruby
* mwlang noticing nobody’s coming out swinging the rbenv axe to rvm
hahuang65 has quit [Quit: WeeChat 1.7]
hahuang61 has quit [Ping timeout: 258 seconds]
xall_ has joined #ruby
<matthewd> That too.. but 1.8.7 being a pain to get working on a modern OS doesn't seem like something I can blame on RVM
<dminuoso> mwlang: I stopped making fun of RVM people
<dminuoso> Instead I kick back and eat the popcorn
<dminuoso> Smiling as I haven't had a single issue with chruby on dozens of servers.
<dminuoso> But you know, I never say this out aloud.
<dminuoso> :-)
<ytti_> cool beans
patarr_ has joined #ruby
vuoto has quit [Remote host closed the connection]
tolerablyjake has joined #ruby
GK___1wm____SU has joined #ruby
tolerablyjake has quit [Client Quit]
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
Silthias has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
mark_66 has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 240 seconds]
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has joined #ruby
Violentr has joined #ruby
szulak_ has joined #ruby
tolerablyjake has joined #ruby
mustmodify has joined #ruby
<mustmodify> I'm confused. In the example here, https://github.com/hassox/warden/wiki/Setup ,
cibs has joined #ruby
<mustmodify> Rack::Session::Cookie is used like a ...
<mustmodify> oh
vuoto has joined #ruby
<mustmodify> sorry I had forgotten how rack worked for a second.
hotpanca_ has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
amclain has joined #ruby
nowhereman has quit [Ping timeout: 258 seconds]
norbertka has quit [Ping timeout: 260 seconds]
Silthias1 has joined #ruby
hahuang65 has joined #ruby
<mwlang> dminuoso: haha — you say it all the time. ;-) Haven’t had an issue with rvm on servers in years, so no points gained there…however, definitely having a problem with rvm on my dev box now. :-p
Guest38728 has quit [Ping timeout: 256 seconds]
renatosilva has left #ruby ["http://renatosilva.net"]
cfec0b8d has quit [Ping timeout: 268 seconds]
Silthias has quit [Ping timeout: 240 seconds]
renatosilva has joined #ruby
skolman_ has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
hotpancakes has joined #ruby
renatosilva has left #ruby ["http://renatosilva.net"]
Xentil has joined #ruby
vuoto has quit [Quit: Lost terminal]
izaac has quit [Read error: Connection reset by peer]
lxsameer has quit [Quit: WeeChat 1.5]
renatosilva has joined #ruby
zacts has quit [Ping timeout: 258 seconds]
renatosilva has left #ruby [#ruby]
GK___1wm____SU has quit [Excess Flood]
szulak_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
mwlang has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Remote host closed the connection]
vuoto has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mwlang has joined #ruby
username1 has joined #ruby
igniting has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
izaac has joined #ruby
Guest38728 has joined #ruby
ozcanesen has joined #ruby
pawnbox has joined #ruby
Guest38728 has quit [Client Quit]
kristofferR has joined #ruby
hotpancakes has joined #ruby
sid_fules has quit [Remote host closed the connection]
anisha has joined #ruby
sid_fules has joined #ruby
sid_fules has quit [Remote host closed the connection]
sid_fules has joined #ruby
hotpancakes has quit [Remote host closed the connection]
[Butch] has joined #ruby
vuoto has quit [Remote host closed the connection]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
zacts has joined #ruby
marxarelli has joined #ruby
Guest47863 is now known as CrazEd
jsrn_ has quit [Quit: Leaving]
KicStart has left #ruby [#ruby]
CrazEd is now known as Guest75245
GK___1wm____SU has joined #ruby
agit0 has quit [Ping timeout: 264 seconds]
blackwind_123 has joined #ruby
Derperperd has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
GK___1wm____SU has quit [K-Lined]
andikr has quit [Remote host closed the connection]
<leah2> since when does irb show long strings with "" + ""?
Lyubo1 has joined #ruby
GK___1wm____SU has joined #ruby
GK___1wm____SU has quit [K-Lined]
<havenwood> leah2: Ruby 2.4
gusrub has joined #ruby
<leah2> confusing :P
<matthewd> Pry does.. does irb?
<leah2> i dont use pry
<matthewd> (and I believe pry does it to visually separate strings at newlines, not by length)
<leah2> pp i guess
<leah2> yeah
jenrzzz has quit [Ping timeout: 240 seconds]
lenwood has joined #ruby
<matthewd> Ah, yes, looks like pp does. But my irb doesn't use pp.
<al2o3-cr> i've actually come to like it (didn't at first)
<leah2> IRB.conf[:INSPECT_MODE] = :pp
<leah2> hmm
howdoi has quit [Quit: Connection closed for inactivity]
GK___1wm____SU has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
nowhereman has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
<leah2> class String
<leah2> remove_method :pretty_print
<leah2> end
cibs has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
rubes has joined #ruby
skweek has quit [Ping timeout: 268 seconds]
sneakerhax has quit [Ping timeout: 240 seconds]
conta has joined #ruby
AndrewIsHere has joined #ruby
itsautomatisch has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
add^_ has left #ruby [#ruby]
szulak has joined #ruby
Burgestrand has quit [Quit: Closing time!]
AndrewIsHere has quit [Client Quit]
cdg_ has joined #ruby
Anonymoose2 has joined #ruby
conta has quit [Ping timeout: 260 seconds]
patarr_ has quit [Ping timeout: 246 seconds]
lzto has quit [Remote host closed the connection]
patarr has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
GK___1wm____SU has quit [K-Lined]
dionysus69 has joined #ruby
reverberations has quit [Ping timeout: 256 seconds]
Lord_of_Life has quit [Excess Flood]
GK___1wm____SU has joined #ruby
Lord_of_Life has joined #ruby
tau has joined #ruby
catphish has quit [Quit: Leaving]
samdvr has joined #ruby
GK___1wm____SU has quit [K-Lined]
mikecmpbll has quit [Quit: inabit. zz.]
tildes has joined #ruby
mustmodify has left #ruby [#ruby]
minimalism has joined #ruby
samdvr has quit [Client Quit]
troulouliou_div2 has quit [Remote host closed the connection]
flying has quit []
enterprisey has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
d0nn1e has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
d0nn1e has joined #ruby
vuoto has joined #ruby
renchan has quit [Quit: Leaving...]
Violentr has quit [Ping timeout: 240 seconds]
balazs has joined #ruby
pawnbox_ has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 258 seconds]
bkxd has quit [Ping timeout: 256 seconds]
<sparr> elomatreb: tnahks for all the tips
hahuang65 has quit [Quit: WeeChat 1.5]
tau has quit [Remote host closed the connection]
dkdwtq has quit [Ping timeout: 240 seconds]
tau has joined #ruby
heftig[m] is now known as heftig
sid_fules has quit [Remote host closed the connection]
doublemalt_ has quit [Ping timeout: 240 seconds]
tdkqup has joined #ruby
Derperperd has joined #ruby
_djbkd has joined #ruby
tdkqup has quit [Ping timeout: 268 seconds]
Guest75245 is now known as CrazEd
montanonic has joined #ruby
CrazEd is now known as Guest86305
Guest9_ has joined #ruby
tomphp has joined #ruby
Beams has quit [Quit: .]
zacts has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
renchan has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
xall_ has quit [Ping timeout: 268 seconds]
Violentr has joined #ruby
cibs has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
tau has quit [Remote host closed the connection]
tau has joined #ruby
itsautomatisch has joined #ruby
whathappens has joined #ruby
mikecmpbll has joined #ruby
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
GK___1wm____SU has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
GK___1wm____SU has quit [K-Lined]
esObe has quit [Remote host closed the connection]
esObe has joined #ruby
esObe has quit [Remote host closed the connection]
Violentr has quit [Ping timeout: 240 seconds]
esObe has joined #ruby
falconer has joined #ruby
maattdd_ has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
GK___1wm____SU has joined #ruby
renchan has quit [Remote host closed the connection]
GK___1wm____SU has quit [K-Lined]
hahuang65 has joined #ruby
Silthias1 has joined #ruby
esObe has quit [Ping timeout: 260 seconds]
Cohedrin has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
gusrub_ has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
gusrub has quit [Ping timeout: 240 seconds]
Derperperd has quit [Ping timeout: 256 seconds]
Silthias has joined #ruby
esObe has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
szulak has joined #ruby
szulak has quit [Client Quit]
szulak has joined #ruby
szulak has quit [Client Quit]
tildes has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Ping timeout: 240 seconds]
xzhao has joined #ruby
Bounga has quit [Read error: Connection reset by peer]
hotpancakes has quit [Remote host closed the connection]
fuzzyhorns has joined #ruby
fuzzyhorns has left #ruby [#ruby]
Suslov has quit [Remote host closed the connection]
TomyLobo has joined #ruby
bkxd has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
safetypin has joined #ruby
maattdd_ has joined #ruby
doublemalt_ has joined #ruby
sid_fules has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maattdd has quit [Ping timeout: 240 seconds]
pilne has joined #ruby
zacts has joined #ruby
cfec0b8d has joined #ruby
hotpancakes has joined #ruby
zacts has quit [Quit: WeeChat 1.5]
montanonic has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
sylario has joined #ruby
hooper has joined #ruby
skweek has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Quit: WeeChat 1.7]
skolman_ has quit [Remote host closed the connection]
Guest86305 is now known as CrazEd
maattdd_ has quit [Quit: WeeChat 1.7]
CrazEd is now known as Guest19712
maattdd has joined #ruby
tolerablyjake has joined #ruby
kirun has joined #ruby
SeepingN has joined #ruby
neoncortex has joined #ruby
akkad has quit [Excess Flood]
renchan has joined #ruby
horst has quit [Remote host closed the connection]
montanonic has joined #ruby
horst has joined #ruby
akkad has joined #ruby
xzhao has quit [Remote host closed the connection]
xzhao has joined #ruby
szulak has joined #ruby
pulkit4tech has quit [Quit: My Mac is sleepy ZZZ...]
zeroDi has joined #ruby
hotpancakes has joined #ruby
pulkit4tech has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
cdg_ has quit [Read error: Connection reset by peer]
renchan has quit [Remote host closed the connection]
cdg has joined #ruby
lamicka has quit [Quit: Konversation terminated!]
blackwind_123 has joined #ruby
renchan has joined #ruby
govg has quit [Ping timeout: 240 seconds]
GK___1wm____SU has joined #ruby
montanonic has quit [Ping timeout: 264 seconds]
vF3hNGxc47h8 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
igniting has joined #ruby
GK___1wm____SU has quit [Excess Flood]
hotpancakes has joined #ruby
bocaneri has quit [Remote host closed the connection]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
akkad has quit [Excess Flood]
igniting has quit [Ping timeout: 268 seconds]
renchan has quit [Remote host closed the connection]
cpruitt_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
mwlang has quit [Quit: mwlang]
SuperLag_ has joined #ruby
govg has joined #ruby
montanonic has joined #ruby
szulak has quit [Quit: Textual IRC Client: www.textualapp.com]
akkad has joined #ruby
cpruitt has quit [Ping timeout: 256 seconds]
cpruitt_ is now known as cpruitt
SuperLag has quit [Ping timeout: 240 seconds]
Robtop__ is now known as pwnd_nsfw
renatosilva has joined #ruby
SuperLag has joined #ruby
SuperLag_ has quit [Ping timeout: 246 seconds]
renchan has joined #ruby
igniting has joined #ruby
mwlang has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
antoniobeyah has joined #ruby
benlieb has joined #ruby
gloscombe_ has joined #ruby
benlieb has quit [Client Quit]
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
mwlang has quit [Quit: mwlang]
skolman has joined #ruby
Derperperd has joined #ruby
pandaant has quit [Remote host closed the connection]
gix has quit [Quit: Client exiting]
gnufied has quit [Ping timeout: 246 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
esObe has quit []
moei has quit [Quit: Leaving...]
hutch34 has joined #ruby
mhunt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
davic_ has joined #ruby
vuoto has quit [Remote host closed the connection]
davic is now known as devic
davic_ is now known as davic
davic is now known as Guest23441
devic has quit [Quit: ZNC - http://znc.in]
Guest23441 has quit [Client Quit]
davic_ has joined #ruby
tildes has joined #ruby
benlieb has joined #ruby
Guest19712 is now known as CrazEd
CrazEd is now known as Guest185
doublemalt_ has joined #ruby
sid_fules has joined #ruby
synthroid has quit [Remote host closed the connection]
davic_ has quit [Client Quit]
davic_ has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
montanonic has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
davic_ is now known as davic
davic has quit [Client Quit]
hutch34 has quit [Ping timeout: 240 seconds]
davic has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
itsautomatisch has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
hotpanca_ has joined #ruby
snath has joined #ruby
snath has left #ruby [#ruby]
hotpancakes has quit [Ping timeout: 246 seconds]
montanonic has joined #ruby
neoncortex has quit [Quit: gone]
synthroid has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
duderonomy has quit [Ping timeout: 260 seconds]
montanonic has quit [Ping timeout: 264 seconds]
theRoUS has quit [Quit: Coyote finally caught me]
username1 has quit [Ping timeout: 258 seconds]
theRoUS has joined #ruby
guidos has joined #ruby
t-recx has quit [Quit: t-recx]
tildes has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
whathappens has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gusrub_ has quit [Remote host closed the connection]
Derperperd has quit [Quit: WeeChat 1.5]
gusrub has joined #ruby
acalycine has quit [Remote host closed the connection]
tildes has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 240 seconds]
rubes has quit [Quit: Page closed]
zacts has joined #ruby
<dminuoso> that is what a malbolge quine looks like.
<Bish> what a beauty
_djbkd has quit [Remote host closed the connection]
<dminuoso> Bish: Yeah. A big bitch about malbolge is that once an instruction is executed, it gets replaced and it's extremely difficult to control what instruction it gets replaced with.
_djbkd has joined #ruby
synthroid has quit [Remote host closed the connection]
sagax has quit [Ping timeout: 240 seconds]
<Bish> mastering the most stupid language doesn't bring me closer to a holy grail
<Bish> which would be the opposite :D
<baweaver> https://github.com/mame/quine-relay - The Oroboros Quine is the king
<allisio> Bish: Relevant: https://grails.org/
_djbkd has quit [Ping timeout: 240 seconds]
<Bish> i said holy grail, not judas
sid_fules has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
username1 has joined #ruby
AndrewIsHere has joined #ruby
jose_leeto has quit [Ping timeout: 260 seconds]
_djbkd has joined #ruby
jenrzzz has joined #ruby
Guest185 is now known as CrazEd
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CrazEd is now known as Guest36577
mwlang has joined #ruby
Anonymoose2 has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
tildes_ has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
<sparr> I've got a ruby library. Users of the library install ruby, do `gem install foo`, then write a script that requires foo, then run their script. Is there an existing framework to package ruby, the library, and a gui editor/IDE with a "run script" button, all into one download?
tildes_ has quit [Ping timeout: 258 seconds]
pawnbox_ has quit [Remote host closed the connection]
jaruga__________ has quit [Quit: jaruga__________]
ldnunes has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
anisha has quit [Quit: This computer has gone to sleep]
montanonic has joined #ruby
postmodern has joined #ruby
synthroid has joined #ruby
pwnd_nsfw` has joined #ruby
tildes has joined #ruby
itsautomatisch has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
GinoManWorks has quit [Quit: Leaving]
last_staff has joined #ruby
benlieb has quit [Quit: benlieb]
tildes has quit [Ping timeout: 246 seconds]
alxgsv has quit [Remote host closed the connection]
Guest30061 has quit [Remote host closed the connection]
flopsec has quit [Remote host closed the connection]
Satyajit has quit [Remote host closed the connection]
jamesaxl has quit [Quit: Leaving]
<cschneid_> testing a sinatra api - doing the full path tests - what is a good name for that test/*** directory? "acceptance" "integration" "...."?
tyang_ has joined #ruby
mtkd has quit []
doublemalt_ has quit [Quit: Leaving]
tildes has joined #ruby
tau has quit [Remote host closed the connection]
<chrisseaton> Hi is there a Ruby metaprogramming method to get and set global variables?
tau has joined #ruby
skolman has quit [Remote host closed the connection]
tau has quit [Remote host closed the connection]
tyang has quit [Ping timeout: 256 seconds]
tyang__ has joined #ruby
skolman_ has joined #ruby
JeanCarloMachado has joined #ruby
tau has joined #ruby
tyang__ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 268 seconds]
szulak has joined #ruby
tau has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
millerti has joined #ruby
tau has joined #ruby
tildes has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
tyang_ has quit [Ping timeout: 256 seconds]
skolman_ has quit [Ping timeout: 246 seconds]
hotpanca_ has quit [Remote host closed the connection]
<havenwood> chrisseaton: Nope. There are a few gems that implement Kernel#global_variable_{get,set} but they either eval or don't use real globals.
tildes has joined #ruby
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<chrisseaton> havenwood: I'll do an eval then
bkxd has joined #ruby
t-recx has joined #ruby
ddffg has quit [Quit: Leaving]
tildes has quit [Ping timeout: 240 seconds]
allisio has quit [Quit: WeeChat 1.8-dev]
* baweaver thinks this smells like a horrible idea
synthroid has quit []
<chrisseaton> baweaver: I'm implementing Ruby C extensions using Ruby, so I need to do something to implement rb_gv_get and rb_gv_set, there's not really any other way around
Azure|dc has joined #ruby
<chrisseaton> baweaver: I'm not recklessly using metaprogramming for the sake of it
Azure has quit [Read error: Connection reset by peer]
renatosilva has left #ruby ["http://renatosilva.net"]
[Butch] has quit [Quit: I'm out . . .]
<chrisseaton> baweaver: plus I have a fast version of eval, so it shouldn't be slower than having the code literally in the source file, and I'll use a binding for the value for gv_set, so it should be hygienic too
Snickers has quit [Quit: Snickers]
Jrz has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sid_fules has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: WeeChat 1.6]
nowhereman has joined #ruby
chopin has joined #ruby
<dminuoso> chrisseaton: I have a solution, do you care whether you rely on objdump as an external tool?
dionysus69 has quit [Ping timeout: 268 seconds]
<chrisseaton> dminuoso: objdump as in the command line binary tool? I'm running on my own Ruby VM so it won't be binary compatible like that, but go on...
<dminuoso> chrisseaton: Ah, I was thinking of using Fiddle::Function.
<chrisseaton> dminuoso: to call rb_gv_get and _set? I don't have those functions - they're the ones I'm trying to implement in the first place
Guest9_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<dminuoso> chrisseaton: Ah. I just thought you were trying to expose them through userland hacks, but I see where you're coming from.
<chrisseaton> dminuoso: yeah, I'm doing an implementation of the Ruby cext API using Ruby itself https://github.com/graalvm/truffleruby/blob/master/truffleruby/src/main/ruby/core/truffle/cext.rb
sid_fules has joined #ruby
<dminuoso> chrisseaton: That is highly intriguing, as I was thinking about a composing a similar gem -> but I was going to expose it through raw force using the might of Fiddle.
tomphp has joined #ruby
<chrisseaton> dminuoso: that would be useful for writing specs for the cext API - at the moment ruby/spec sort of does that manually, and it's horrible
blackwind_123 has quit [Ping timeout: 246 seconds]
Guest36577 is now known as CrazEd
CrazEd is now known as Guest79143
<patarr> Hello. Let's say I have some app code like some_obj.get(option[:path]) do |chunk, _remaining_bytes, _total_bytes| .... end. How do I mock this?
blackwind_123 has joined #ruby
Disavowed has joined #ruby
benlieb has joined #ruby
qakqed has joined #ruby
cdg_ has joined #ruby
last_staff has quit [Quit: last_staff]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
tyang has joined #ruby
renchan has quit [Remote host closed the connection]
reverberations has joined #ruby
uranellus has quit [Ping timeout: 256 seconds]
tau has quit [Remote host closed the connection]
patarr has joined #ruby
uranellus has joined #ruby
uranellus has joined #ruby
uranellus has quit [Changing host]
<guidos> Can anyone tell me how to install json on windows, I tried devkit and it still not happy
moei has joined #ruby
moei has quit [Client Quit]
moei has joined #ruby
<guidos> gem install json --platform=ruby does not seem to work for me and I am at a loss
pawnbox has joined #ruby
szulak has quit [Quit: Textual IRC Client: www.textualapp.com]
patarr has quit [Ping timeout: 260 seconds]
<havenwood> guidos: Modern Rubies ship with the JSON gem as part of the standard library.
byte512 has quit [Ping timeout: 240 seconds]
montanonic has joined #ruby
cajone has quit [Read error: Connection reset by peer]
<havenwood> guidos: What version of Ruby are you using? Does it not already have JSON? Do you need a more recent version of the gem or?
jenrzzz has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ramortegui has quit [Quit: Ex-Chat]
<havenwood> guidos: I'm not sure how far along it is, but here's a project that aims to be the successor to RubyInstaller: https://github.com/larskanis/rubyinstaller2
<havenwood> guidos: An aside, but Windows 10 ships with a beta Linux subsystem for Windows that lets you get bash through the Ubuntu kernel without virtualizing.
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Hobbyboy has quit [Ping timeout: 240 seconds]
<guidos> havenwood: thanks for the info, I wish win10 was an option for me, it's a work computer...
cajone has joined #ruby
patarr has joined #ruby
theunraveler has joined #ruby
<patarr> anyone? :(
theunraveler has quit [Remote host closed the connection]
theunraveler has joined #ruby
qakqed has quit [Quit: Konversation terminated!]
kristofferR has joined #ruby
Hobbyboy has joined #ruby
theunraveler has quit [Client Quit]
marxarelli is now known as marxarelli|afk
benlieb has quit [Quit: benlieb]
reverberations has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
esObe has joined #ruby
<Disavowed> Is there an easy way to access the method parameters and values for a function call? A Ruby equivalent of Python'
<Disavowed> Python's getargspec, if anyone is familiar
esObe_ has joined #ruby
mwlang has quit [Quit: mwlang]
esObe has quit [Client Quit]
esObe_ is now known as esObe
Hobbyboy has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
esObe_ has joined #ruby
esObe_ has quit [Client Quit]
ThereIsNoYeti has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ThereIsNoYeti has quit [Client Quit]
<manveru> not easily i fear
<manveru> if you have the source, you could try http://ruby-doc.org/stdlib-2.0.0/libdoc/ripper/rdoc/Ripper.html
jshjsh has joined #ruby
cdg has joined #ruby
<manveru> or try getting the file for the method using method(:name).source_location
<manveru> there's also Method#arity, but that doesn't help much
<manveru> oh
<Disavowed> manveru: I love Ripper! I'm surprised this isn't a built in though, particularly with how well Ruby lends itself to Metaprogramming. Thank you for your assistance :)
<manveru> actually there's Method#parameters now
cdg_ has quit [Ping timeout: 258 seconds]
<manveru> >> method(def hi(a, b = 2, c:, d: 4); end).parameters
<ruby[bot]> manveru: # => [[:req, :a], [:opt, :b], [:keyreq, :c], [:key, :d]] (https://eval.in/750217)
<manveru> wonder when that was added :)
ThereIsNoYeti has joined #ruby
JeanCarloMachado has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
<manveru> holy crap, 2008
<manveru> i must've forgot
reverberations has joined #ruby
montanonic has quit [Ping timeout: 264 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
tau has joined #ruby
<Disavowed> manveru: I hate to sound like an idiot but I'm struggling to call it for a function that I'm not defining in line - am I missing something obvious?
<manveru> well, how's your method called, and where is it defined?
Guest79143 is now known as CrazEd
<Disavowed> I just keep getting 'wrong number of arguments' errors, which is fair enough, because I guess I'm sort of calling it when I wrap it in method()
CrazEd is now known as Guest15688
<manveru> yeah
<Disavowed> I'm probably just better off looking at the original source right?
<manveru> well, you have to ask the class/module for the method
<Disavowed> manveru: I'm not following - how do you mean?
<manveru> >> Array.instance_method(:push).parameters
<ruby[bot]> manveru: # => [[:rest]] (https://eval.in/750224)
<manveru> >> [].method(:push).parameters
<ruby[bot]> manveru: # => [[:rest]] (https://eval.in/750225)
<manveru> like this
<Disavowed> Oh! That's wonderful!
<manveru> i just assume it's an instance method :)
<Disavowed> I wouldn't have thought of that! Thank you!
<Disavowed> It is :)
Hobbyboy has joined #ruby
patarr has quit [Ping timeout: 264 seconds]
falconer has quit [Ping timeout: 258 seconds]
Hobbyboy has quit [Excess Flood]
tvw has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
falconer has joined #ruby
kirun has quit [Quit: Konversation terminated!]
Robtop__ has joined #ruby
hotpancakes has joined #ruby
marxarelli|afk has quit [Read error: Connection reset by peer]
n1ce has quit [Remote host closed the connection]
hahuang65 has joined #ruby
__Yiota has joined #ruby
safetypin has quit [Ping timeout: 240 seconds]
_ht has quit [Ping timeout: 240 seconds]
DenSchub has quit [Ping timeout: 245 seconds]
DenSchub has joined #ruby
montanonic has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 264 seconds]
libastral has quit [Ping timeout: 240 seconds]
adaedra has quit [Ping timeout: 268 seconds]
maattdd_ has joined #ruby
skolman has joined #ruby
libastral has joined #ruby
__Yiota has quit [Client Quit]
toretore has quit [Ping timeout: 256 seconds]
falconer has quit [Ping timeout: 240 seconds]
maattdd has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
adaedra has joined #ruby
reverberations has quit [Read error: Connection reset by peer]
baked__beans has quit [Ping timeout: 240 seconds]
avelldiroll has quit [Ping timeout: 240 seconds]
_ht has joined #ruby
Synthead has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
Pisuke has joined #ruby
avelldiroll has joined #ruby
benlieb has joined #ruby
saneax-_-|AFK is now known as saneax
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
mjuszczak has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
MyMind has quit [Ping timeout: 260 seconds]
marxarelli has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
statelesscode has quit [Ping timeout: 240 seconds]
_ht has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
sid_fules has quit [Ping timeout: 240 seconds]
montanonic has quit [Ping timeout: 268 seconds]
Hobbyboy has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
CloCkWeRX has joined #ruby
charliesome has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
t-recx has quit [Quit: t-recx]
bkxd has quit [Ping timeout: 240 seconds]
ThereIsNoYeti has quit [Remote host closed the connection]
sid_fules has joined #ruby
skolman has quit [Ping timeout: 264 seconds]
RealMarc has joined #ruby
falconer has joined #ruby
montanonic has joined #ruby
hotpanca_ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
Burgestrand has quit [Quit: Closing time!]
pwnd_nsfw has joined #ruby
falconer has quit [Ping timeout: 246 seconds]
AndBobsYourUncle has joined #ruby
tyang_ has joined #ruby
sid_fules has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby