havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
s0n1c-__ has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
stannard has quit [Ping timeout: 240 seconds]
zacstewart has quit [Ping timeout: 256 seconds]
saltsa has joined #ruby
pawnbox has joined #ruby
darkf has quit [Quit: Leaving]
zacstewart has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
nobitanobi has joined #ruby
dfockler has joined #ruby
<nobitanobi> hey
ramfjord_ has quit [Ping timeout: 248 seconds]
f3ttX] has quit [Remote host closed the connection]
einarj has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
pawnbox has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Client Quit]
sandstrom has joined #ruby
Brklyn has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
Platini has joined #ruby
Platini has quit [Max SendQ exceeded]
TomPeed has joined #ruby
jgt4 has joined #ruby
Platini has joined #ruby
Platini has quit [Max SendQ exceeded]
vikas027 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Platini has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
kirun has quit [Remote host closed the connection]
selfadhesivefilm has quit [Remote host closed the connection]
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopamean_ has joined #ruby
Limix has joined #ruby
Platini has quit [Max SendQ exceeded]
workmad3 has quit [Read error: Connection reset by peer]
s0n1c-___ has quit [Quit: Leaving]
coderMe has joined #ruby
Platini has joined #ruby
Platini has quit [Max SendQ exceeded]
dc1 has joined #ruby
TomPeed is now known as justbleed
trinaldi has quit [Quit: WeeChat 1.5-dev]
Platini has joined #ruby
beast has quit [Quit: Leaving]
mfb2 has joined #ruby
DLSteve has joined #ruby
chipotle has quit [Quit: cheerio]
Platini has quit [Excess Flood]
whippythellama has joined #ruby
griffindy has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
hxegon is now known as hxegon_AFK
agentmeerkat has joined #ruby
<pushcx> pizzaops: i recently maintained a site using a SOAP API via Savon. It was... less awful than other approaches?
sandstrom has joined #ruby
Platini has joined #ruby
mickey_mouse_3 has joined #ruby
User1234 has joined #ruby
<User1234> hi
RubyRev_ has joined #ruby
<User1234> anyone?
dcunit3d has joined #ruby
<pizzaops> Hah. Luckily I don't have to maintain a SOAP API but I do have to leverage one to do some things. Because Enterprise.
<User1234> i cant install ruby gems
<User1234> for some reason
<pizzaops> Everybody knows that if your API isn't SOAP it's not Enterprise.
<pizzaops> User1234: you're probably going to want to share some actual error messages or specifics.
dc1 has quit [Ping timeout: 240 seconds]
<User1234> yes
<User1234> sec
RubyRev has quit [Ping timeout: 272 seconds]
mickey_mouse_2 has quit [Ping timeout: 250 seconds]
<User1234> ERROR: Error installing actionmailer:
<User1234> ERROR: Failed to build gem native extension.
<User1234> mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
Macaveli has joined #ruby
<User1234> huh?
nanoz has joined #ruby
Macaveli has quit [Client Quit]
<pushcx> User1234: Linux or OS X?
<User1234> linux
<User1234> fedora
sepp2k has quit [Quit: Leaving.]
jottr has joined #ruby
<shevy> on debian you typically must install mkmf
<hays> wow Celluloid is pretty nice
<pushcx> shevy: he has mkmf installed
blackmesa has joined #ruby
<hays> ruby syntax still gets me sometimes...
<pushcx> User1234: You need to install the ruby header files... on Debian it's called ruby-dev, let me see if I can find the fedora name.
<User1234> tnx
pawnbox has joined #ruby
<hays> like in a method, i guess you use the @ when looking at an instance variable, but no @ for a method
<pushcx> User1234: yum install ruby-devel
speakingcode has quit [Quit: roadtrippin]
<hays> and passing blocks into functions gets me confused a bit at times
<pushcx> User1234: I think that should solve that error for you
<User1234> Building native extensions. This could take a while...
<User1234> :)
<pushcx> User1234: Great, good luck. :)
<User1234> tnx
<pushcx> yw
<User1234> if there was a tnx button
<User1234> i would use it
<User1234> working
<User1234> :)
finisherr has quit [Quit: finisherr]
<User1234> one morequestion
<User1234> sinatra or ruby on rails?
last_staff has quit [Quit: last_staff]
dlitvak has joined #ruby
<pushcx> If you're new to Ruby, Sinatra's easier to get started and play around with. Rails is nice if you need lots of features or a job.
pawnbox has quit [Ping timeout: 240 seconds]
<pushcx> And if you're into functional programming and think Ruby's OO magic is kinda crazy, Hanami.
<User1234> ok
<User1234> any good gui?
<hays> rails and sinatra are pretty different beasts
<hays> aren't they? basically a megaframework vs. microframework
<User1234> lol
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
<pushcx> Not really any good connection to gui toolkits, no.
<User1234> ok
<User1234> what do you think about
<hays> SQL on rails
<User1234> JRuby
dionysus69 has quit [Ping timeout: 250 seconds]
SenpaiSilver has joined #ruby
<User1234> wtf
dlitvak has quit [Ping timeout: 245 seconds]
<shevy> lol
<pushcx> JRuby gives you slightly better speed, slightly worse ram consumption, and, infrequently, dealbreaker incompatible gems.
<shevy> LSD on cracks
agentmeerkat has quit [Ping timeout: 240 seconds]
<User1234> Hmm
<User1234> JRuby can execute like java code
<User1234> ?
<pushcx> Yeah, if you need to run a Java library there's nice compatibility.
<User1234> tnx
<User1234> one more question
<User1234> is metasploit good
sandstrom has quit [Quit: My computer has gone to sleep.]
<pushcx> Got me, I don't work in security.
bronson has quit []
aupadhye has joined #ruby
<User1234> haha ok
<User1234> :P
kirillzh has joined #ruby
<User1234> you are a ruby expert
freerobby has joined #ruby
sandstrom has joined #ruby
<User1234> i guess
<shevy> haha User1234 you gave it away who you are! :)
babblebre has quit [Quit: Connection closed for inactivity]
<User1234> ?
<pushcx> Been doing Ruby around 10 years, spoke at RailsConf last year. Suppose the shoe fits. :)
<User1234> yeah
devbug has quit [Ping timeout: 240 seconds]
<User1234> should i learn C?
<User1234> do you know anything besides ruby?
<pushcx> Currently Haskell and JavaScript; previously worked in Python + PHP, tinkered in C, C++, Pascal, x86 Assembly, HyperCard.
aupadhye has quit [Ping timeout: 256 seconds]
<User1234> Assembly - Reverse Engineering?
<pushcx> Once you're comfortable in one language C is worth knowing to understand lower-level abstractions and be able to read libraries, yeah.
<User1234> how does python stack up againts ruby
Gnut has quit [Ping timeout: 252 seconds]
<pushcx> Very similar - Python is more explicit and popular for scientific computing; Ruby has more magic and is popular for web.
<hays> c is actually a very good language for what it is
<User1234> what about D
<User1234> ?
<RickHull> D > C by definition
<User1234> yes
hxegon_AFK has quit [Quit: BRB]
<Ox0dea> >> :D > :C
<ruby[bot]> Ox0dea: # => true (https://eval.in/514006)
jgpawletko has joined #ruby
decoponio has quit [Quit: Leaving...]
skade has quit [Quit: Computer has gone to sleep.]
BrunoSaboia has quit [Ping timeout: 276 seconds]
<shevy> those are smileys
<pushcx> But also Rust > C and Go > C if you're curious to write system code rather read it.
<shevy> though the :D smiley is indeed better than that shattered mouth :C smiley
<User1234> ok tnx
<User1234> cya later
Brklyn has joined #ruby
<shevy> User1234 you'll be back!
<User1234> i will
workmad3 has joined #ruby
<User1234> i always do
<User1234> lol
<Ox0dea> "I always back."
<User1234> come*
<User1234> ...
<User1234> troll
<Ox0dea> Calm down.
<shevy> lol
<User1234> lol
<User1234> bye
User1234 has quit [Quit: Leaving]
Jonah11_ has joined #ruby
pawnbox has joined #ruby
<hays> who did rust
<shevy> criminals!
<shevy> mozilla did bootstrap rust didn't they?
Guest7681 has quit [Quit: Leaving]
<RickHull> yep, grayson hoare for the most part in the early days
<RickHull> er, graydon
<Ox0dea> Son of NULL.
<Ox0dea> "But I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years."
<RickHull> i thought they were unrelated
<shevy> this is why language designers need to be geniuses
duckpuppy has joined #ruby
jokke has quit [Quit: WeeChat 1.3]
<pushcx> Ox0dea: clearly he just missed the &. operator and then it all would've been fine :p
pawnbox has quit [Ping timeout: 240 seconds]
<Ox0dea> RickHull: Seems you're right. https://twitter.com/graydon_pub/status/190159890373820416
jokke has joined #ruby
<Ox0dea> pushcx: Loving the WSV so far. :P
<hays> hmm i wonder how "low level" rust is
<pushcx> Ox0dea: It's a page-turner :)
<Ox0dea> Not sure which chapter I'm on, but "Gggg gg ggggg Ggggg gggg ggggggggg g gggggg" is deeply moving.
<pushcx> Ox0dea: oh, actually, I did turn pages recently: https://malaprop.org/post/g.mov
sandstrom has quit [Quit: My computer has gone to sleep.]
jokke has quit [Client Quit]
jokke has joined #ruby
<Ox0dea> pushcx: I don't see Smash on NearbyGamers. :(
dlitvak has joined #ruby
<Ox0dea> That's the page I'm on!
duckpuppy has quit [Ping timeout: 240 seconds]
<pushcx> Ox0dea: search http://nearbygamers.com/tags for 'smash', there's a few people. But mostly the site is card and board games.
zacstewa_ has joined #ruby
ctp__ has quit [Quit: Connection closed for inactivity]
sandstrom has joined #ruby
symm- has joined #ruby
dome22xl has quit [Read error: Connection reset by peer]
arashb has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
Sucks has joined #ruby
mostlybadfly has joined #ruby
aupadhye has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
jokke has quit [Quit: WeeChat 1.3]
spider-mario has quit [Remote host closed the connection]
jokke has joined #ruby
jbrhbr1 has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n_blownapart has joined #ruby
<hays> heh. hello world is 291k
<hays> (in rust)
<pleiosaur> hays: rust statically links by default, like go. if you want C-size binaries, you have to tell it to link dynamically, like C does
jbrhbr has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
Limix has quit [Quit: Limix]
<Ox0dea> >> Array.new(3) { ObjectSpace.each_object.count }
<ruby[bot]> Ox0dea: # => [12171, 12173, 12175] (https://eval.in/514009)
<Ox0dea> What explains the gaps?
<Ox0dea> The only new object between each call is the Enumerator returned by ObjectSpace.each_object, no?
Xiti has quit [Quit: Xiti]
Brklyn has quit [Ping timeout: 272 seconds]
Ruby_Rocks_007 has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
mg^2 has joined #ruby
mfb2 has quit [Remote host closed the connection]
Domaldel has joined #ruby
<pushcx> and the int that goes in the array
ixti has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Domaldel has quit [Client Quit]
<Ox0dea> pushcx: That's not a new object, though?
joonty has quit [Ping timeout: 250 seconds]
<hays> pleiosaur: hmm.. seems to be problematic at least on os x
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<pushcx> each_object creates an Enumerator; .count creates a Fixnum
<Ox0dea> pushcx: The latter is untrue.
<Ox0dea> Fixnums are just tagged pointers under the hood.
<pleiosaur> hays: what seems? and to answer your earlier question, rust is lower-level than D and Go, though also manages to be safer than both (while being harder to write, but if you can't write rust code that compiles then you can't write correct C code anyway)
sandstrom has joined #ruby
<shevy> boyz in da hood, fixnums in da hood
<Ox0dea> ^
maikowblue has quit [Quit: .]
<shevy> and dinosaurs on #ruby!
<pleiosaur> shevy: pleiosaurs aren't dinosaurs! common misconception :)
<pushcx> Ox0dea: got me,then - interesting puzzle
<Ox0dea> Aye, a genuine mystery!
<shevy> pretty big fellas
<hays> pleiosaur: http://dpaste.com/2HEB5FC
<Ox0dea> > Pleiosaur is a misspelling of either of two types of extinct marine reptiles:
<Ox0dea> I've never seen that kind of disambiguation page.
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
<pleiosaur> hays: dunno why that doesn't work, you probably want to go ask on #rust. might be a problem with your installer if you used homebrew or summat
<shevy> they were big!
djbkd has quit [Quit: My people need me...]
<pleiosaur> shevy: they were big! but still not dinosaurs :P
<shevy> pleiosaur I am reading wikipeda to study your weaknesses!
<shevy> though indeed I was redirected to "Plesiosauria" :D
<pleiosaur> shevy: asteroids :(
<Ox0dea> Also Grass.
<shevy> lol
<Ox0dea> 4x effective against Rock-Water.
n_blownapart has quit []
DmitryBochkarev has joined #ruby
mfb2 has joined #ruby
dlitvak has joined #ruby
william3 has joined #ruby
DLSteve has joined #ruby
preyalone has joined #ruby
peeja has joined #ruby
ElSif has joined #ruby
mfb2 has quit [Remote host closed the connection]
tatsuo has joined #ruby
CrazyEddy has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
blackmesa has quit [Ping timeout: 250 seconds]
sandstrom has joined #ruby
CrazyEddy has quit [Ping timeout: 256 seconds]
ricer2 has joined #ruby
baweaver has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 252 seconds]
arashb has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
pawnbox has joined #ruby
pdoherty has joined #ruby
elifoster has joined #ruby
Sucks has quit [Quit: No Ping reply in 180 seconds.]
podman has quit [Quit: Connection closed for inactivity]
marr has quit [Ping timeout: 245 seconds]
gizmore has joined #ruby
Sucks has joined #ruby
baweaver has joined #ruby
snguyen has joined #ruby
jorrin has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
RubyRev has joined #ruby
renier has joined #ruby
<renier> Is there a way to install a gem without installing its executables?
kirillzh has joined #ruby
bruce_lee has quit [Remote host closed the connection]
gizmore|2 has quit [Ping timeout: 245 seconds]
neanderslob has joined #ruby
RubyRev_ has quit [Ping timeout: 240 seconds]
gizless has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Brklyn has joined #ruby
sandstrom has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
stardiviner has joined #ruby
gizmore has quit [Ping timeout: 276 seconds]
griffindy has joined #ruby
sneakerhax has quit [Ping timeout: 252 seconds]
Limix has joined #ruby
william3 has quit [Remote host closed the connection]
jorrin has quit [Remote host closed the connection]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
govg has joined #ruby
zacstewart has joined #ruby
zacstewa_ has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
Azure has joined #ruby
mg^2 has quit [Ping timeout: 250 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danman has quit [Quit: danman]
einarj has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
pawnbox has quit [Ping timeout: 250 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
sandstrom has joined #ruby
<shevy> not sure, probably not. but just remove the bin/ directory which leads to the same result; you can also repackage a .gem to not include a bin/ directory
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
einarj has quit [Ping timeout: 252 seconds]
<pushcx> renier: You could do 'gem install -i /tmp' so they get installed to a throwaway dir
hxegon has joined #ruby
hxegon has quit [Client Quit]
joonty has joined #ruby
<havenwood> -n, --bindir DIR
<renier> cool. thanks for the ideas
<pushcx> er, yes, I meant -n rather than -i - havenwood's correct
gizmore has joined #ruby
Ruby_Rocks_007 has joined #ruby
benlieb has quit [Quit: benlieb]
<pushcx> renier: You could also install it and parse the yaml output of 'gem specification foo' to remove everything under 'executables'
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jonah11_ has joined #ruby
gizless has quit [Ping timeout: 240 seconds]
peeja has quit [Ping timeout: 276 seconds]
joonty has quit [Ping timeout: 240 seconds]
Ruby_Rocks_007 has left #ruby [#ruby]
mondok has quit [Ping timeout: 276 seconds]
fantazo has joined #ruby
SwiftFox has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
davedev24 has quit []
<Ox0dea> Shame about there not being a /dev/null analog for directories.
Jardayn has quit [Quit: Leaving]
mg^2 has joined #ruby
vikas027 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
zeroDivisible has quit [Quit: WeeChat 1.3]
<eam> easy to make one
vikas027 has left #ruby [#ruby]
B1n4r10 has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
sandstrom has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
<Ox0dea> Do tell. `mknod` only does files.
<eam> FUSE
Timberwo|f has quit [Quit: Sleep.]
<eam> you could even write your filesystem in ruby
<Ox0dea> Many silly things have been done with FUSE.
zacstewart has joined #ruby
<eam> not all sillier than "null for directories"
<eam> ;)
<Ox0dea> But it's just what the doctor *would've* prescribed for renier this time around.
nerium has quit [Quit: nerium]
gizmore has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
poguez_ has quit [Quit: Connection closed for inactivity]
nodejunkie has joined #ruby
arlek has joined #ruby
at46 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<renier> :-)
<shevy> if he wants a null, give him a null
jottr has joined #ruby
<eam> oh I didn't even read that, just write a little LD_PRELOAD hook around open
<eam> have it prompt the terminal "install this file? Y/N"
<Ox0dea> `gem i --no-exe foo` plz.
<eam> I guess you could even just do it in ruby
<eam> Ox0dea: boring
dlitvak has quit [Ping timeout: 276 seconds]
workmad3 has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 248 seconds]
Rickmasta has quit [Ping timeout: 248 seconds]
dlitvak has joined #ruby
coderMe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 252 seconds]
devbug has joined #ruby
Rickmasta has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
mg^2 has quit [Ping timeout: 240 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
frem has quit [Quit: Connection closed for inactivity]
B1n4r10 has joined #ruby
sandstrom has joined #ruby
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
dlitvak has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 256 seconds]
shadoi has quit [Quit: Leaving.]
p0wn3d has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
B1n4r10 has quit [Read error: Connection reset by peer]
<havenwood> renier: untested, for what it's worth :P: no_bin_gem="bundler"; gem fetch $no_bin_gem && gem unpack $no_bin_gem && cd $(ls -d $no_bin_gem*/ | head -n 1) && sed -i '' '/executables/d' $no_bin_gem.gemspec && gem build $no_bin_gem.gemspec && gem install $no_bin_gem-*.gem
B1n4r10 has joined #ruby
Rickmasta has quit [Ping timeout: 250 seconds]
<havenwood> unset no_bin_gem
at46 has quit [Remote host closed the connection]
<havenwood> renier: Comparatively `gem install $no_bin_gem -n /tmp` seems nice. ;)
Rickmasta has joined #ruby
<Ox0dea> Good heavens.
<Ox0dea> No need to fetch before unpacking.
nofacade has joined #ruby
<havenwood> Ox0dea: Ah, right - unpack fetches first.
Tempesta has quit [Quit: See ya!]
s2013 has joined #ruby
baweaver has joined #ruby
dlitvak has joined #ruby
duckpuppy has joined #ruby
squarer00t has joined #ruby
Rickmasta has quit [Ping timeout: 250 seconds]
Brklyn has quit [Ping timeout: 260 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
Rickmasta has joined #ruby
griffindy has quit [Ping timeout: 250 seconds]
tatsuo has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 250 seconds]
B1n4r10 has quit [Ping timeout: 264 seconds]
sandstrom has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
duckpuppy has quit [Ping timeout: 256 seconds]
symm- has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
arashb has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
travisthenavi has quit [Ping timeout: 252 seconds]
nodejunkie has quit [Ping timeout: 252 seconds]
jbrhbr1 has quit [Quit: Leaving.]
arashb has quit [Ping timeout: 260 seconds]
squarer00t has quit [Ping timeout: 260 seconds]
dcunit3d has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
kobain has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
joonty has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
benlieb has quit [Quit: benlieb]
dcunit3d has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
B1n4r10 has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
wethu has joined #ruby
Rickmasta has joined #ruby
BTRE has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
zacstewa_ has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
sneakerhax has joined #ruby
pawnbox has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Brklyn has joined #ruby
nofacade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcunit3d has quit [Ping timeout: 256 seconds]
sandstrom has joined #ruby
tatsuo has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
pawnbox has quit [Ping timeout: 245 seconds]
Cyrus has joined #ruby
fantazo has quit [Ping timeout: 240 seconds]
Brklyn has quit [Ping timeout: 276 seconds]
jottr has quit [Ping timeout: 240 seconds]
FooMunki has quit [Quit: FooMunki]
B1n4r10 has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Ping timeout: 248 seconds]
Rickmasta has joined #ruby
zacstewa_ has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
zacstewart has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ruby_Rocks_007 has joined #ruby
stardiviner has quit [Ping timeout: 256 seconds]
peeja has joined #ruby
Brklyn has joined #ruby
lessless has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
Ruby_Rocks_007 has quit [Ping timeout: 272 seconds]
Brklyn has quit [Ping timeout: 245 seconds]
Rickmasta has quit [Ping timeout: 240 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
duckpuppy has quit [Ping timeout: 248 seconds]
BTRE has joined #ruby
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
despai has joined #ruby
stardiviner has joined #ruby
devbug has joined #ruby
braincrash has quit [Quit: bye bye]
zacstewart has quit [Ping timeout: 256 seconds]
dfockler has quit [Ping timeout: 240 seconds]
zacstewart has joined #ruby
Rickmasta has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
Rickmasta has joined #ruby
chouhoulis has joined #ruby
joonty has joined #ruby
peeja has quit [Ping timeout: 260 seconds]
arthropododo has quit [Quit: Leaving]
jgt4 has quit [Ping timeout: 250 seconds]
saltsa has quit [Ping timeout: 240 seconds]
peeja has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
william3 has joined #ruby
braincrash has joined #ruby
robbyoconnor has quit [Excess Flood]
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
joonty has quit [Ping timeout: 240 seconds]
sorpaas1 has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
sorpaas1 has quit [Client Quit]
peeja_ has joined #ruby
peeja has quit [Ping timeout: 245 seconds]
william3 has quit [Ping timeout: 245 seconds]
saltsa has joined #ruby
theRealAlexz has quit [Ping timeout: 252 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
peeja_ has quit [Read error: Connection reset by peer]
peeja has joined #ruby
theRealAlexz has joined #ruby
Al2O3 has quit [Read error: Connection reset by peer]
Al2O3 has joined #ruby
RegulationD has joined #ruby
babblebre has joined #ruby
hxegon has joined #ruby
Nanuq has quit [Ping timeout: 264 seconds]
despai has quit [Ping timeout: 256 seconds]
devbug has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
RegulationD has quit [Ping timeout: 240 seconds]
Brklyn has joined #ruby
kirillzh has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Ping timeout: 245 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
Nanuq has joined #ruby
Rickmasta has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Brklyn has quit [Ping timeout: 252 seconds]
kobain has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
jottr has joined #ruby
arashb has joined #ruby
gix has quit [Ping timeout: 245 seconds]
braincra- has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
arashb has quit [Ping timeout: 264 seconds]
gix has joined #ruby
despai has joined #ruby
jtdowney has joined #ruby
jtdowney has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Ping timeout: 256 seconds]
zacstewa_ has joined #ruby
DmitryBochkarev has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
Coldblackice has quit [Ping timeout: 260 seconds]
n00bdev has joined #ruby
Rickmasta has joined #ruby
ldg has quit [Ping timeout: 250 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
fedexo has quit [Ping timeout: 240 seconds]
peeja has quit [Ping timeout: 264 seconds]
speakingcode has joined #ruby
hxegon has quit [Quit: BRB]
arooni has joined #ruby
kobain has joined #ruby
sandstrom has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
peeja has joined #ruby
pawnbox has joined #ruby
aupadhye has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Rickmasta has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
Rickmasta has joined #ruby
arlek has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
despai has quit [Ping timeout: 245 seconds]
dlitvak has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
zacstewa_ has quit [Ping timeout: 256 seconds]
dlitvak has quit [Ping timeout: 252 seconds]
sandstrom has joined #ruby
zacstewart has joined #ruby
Rickmasta has quit [Ping timeout: 248 seconds]
Channel6 has joined #ruby
Rickmasta has joined #ruby
AnoHito_ has joined #ruby
peeja has quit [Ping timeout: 245 seconds]
Eiam_ has joined #ruby
joonty has joined #ruby
AnoHito has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
joonty has quit [Ping timeout: 240 seconds]
speakingcode has quit [Ping timeout: 240 seconds]
lessless has quit [Read error: No route to host]
theRealAlexz has quit [Ping timeout: 240 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
pawnbox has joined #ruby
theRealAlexz has joined #ruby
sandstrom has joined #ruby
Brklyn has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
heyimwill has quit [Ping timeout: 240 seconds]
crayfishx has quit [Ping timeout: 240 seconds]
PlasmaStar has quit [Ping timeout: 240 seconds]
Brklyn has quit [Ping timeout: 250 seconds]
PlasmaStar has joined #ruby
crayfishx has joined #ruby
heyimwill has joined #ruby
basic` has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
basic` has joined #ruby
nerium has joined #ruby
djbkd has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
SwiftFox has quit [Quit: Leaving]
theRealAlexz has quit [Ping timeout: 264 seconds]
chouhoul_ has quit [Remote host closed the connection]
jottr has joined #ruby
chouhoulis has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
duckpuppy has quit [Ping timeout: 256 seconds]
theRealAlexz has joined #ruby
sandstrom has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mg^2 has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
konsolebox has joined #ruby
zacstewa_ has joined #ruby
basic` has quit [Ping timeout: 264 seconds]
zacstewart has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
poguez_ has joined #ruby
nofacade has joined #ruby
sgambino has joined #ruby
p0wn3d has joined #ruby
theRealAlexz has quit [Ping timeout: 250 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
yqt has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
akem has joined #ruby
pawnbox has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jason^ has quit [Quit: WeeChat 1.3]
theRealAlexz has joined #ruby
pawnbox has quit [Remote host closed the connection]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
arashb has joined #ruby
p0wn3d has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
arashb has quit [Ping timeout: 264 seconds]
RubyRev has quit []
benlieb has quit [Quit: benlieb]
Seich has joined #ruby
benlieb has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
terminalrecluse has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
joonty has joined #ruby
basic` has joined #ruby
sandstrom has joined #ruby
dlitvak has joined #ruby
zacstewart has joined #ruby
zacstewa_ has quit [Ping timeout: 245 seconds]
nofacade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Brklyn has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
Anderson69s has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
akem has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
theRealAlexz has quit [Ping timeout: 245 seconds]
Brklyn has quit [Ping timeout: 240 seconds]
Jonah11_ has quit [Remote host closed the connection]
theRealAlexz has joined #ruby
p0wn3d has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snguyen has joined #ruby
fedexo_ has joined #ruby
fedexo has joined #ruby
n00bdev has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
fedexo_ has quit [Remote host closed the connection]
sandstrom has joined #ruby
x77686d has quit [Quit: x77686d]
mg^2 has quit [Remote host closed the connection]
x77686d has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
triangles has quit [Quit: Leaving]
x77686d has quit [Client Quit]
duckpuppy has joined #ruby
dlitvak has joined #ruby
PedramT has joined #ruby
jottr has joined #ruby
govg has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 256 seconds]
dlitvak has quit [Ping timeout: 248 seconds]
nodejunkie has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
mhoungbo has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Ping timeout: 260 seconds]
s2013 has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
zacstewart has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
claw has quit [Ping timeout: 245 seconds]
Rickmasta has joined #ruby
s2013 has quit [Client Quit]
govg has joined #ruby
n00bdev has joined #ruby
preyalone has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<Ox0dea> $ chruby-exec trunk -- ruby -e 'p "maßleßneß".downcase :fold'
<Ox0dea> "masslessness"
aupadhye_ has joined #ruby
sandstrom has joined #ruby
arooni has quit [Ping timeout: 252 seconds]
Coldblackice has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
claw has joined #ruby
Sucks has quit [Remote host closed the connection]
duckpuppy has joined #ruby
dlitvak has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Brklyn has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 250 seconds]
PedramT has quit [Ping timeout: 245 seconds]
duckpuppy has quit [Ping timeout: 276 seconds]
govg has joined #ruby
adgtl has joined #ruby
Brklyn has quit [Ping timeout: 250 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
ziyadb has joined #ruby
sandstrom has joined #ruby
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flughafen_ has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
adgtl has quit [Remote host closed the connection]
joonty has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
n00bdev has quit []
joonty has quit [Ping timeout: 240 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
wethu has quit [Quit: This computer has gone to sleep]
DmitryBochkarev has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro has quit [Ping timeout: 250 seconds]
Anderson69s has joined #ruby
joonty has joined #ruby
sandstrom has joined #ruby
wldcordeiro has joined #ruby
renier_ has joined #ruby
govg has quit [Ping timeout: 264 seconds]
Tempesta has joined #ruby
Channel6 has quit [Quit: Leaving]
renier has quit [Ping timeout: 252 seconds]
p0wn3d has quit [Ping timeout: 250 seconds]
Azulinho has quit [Ping timeout: 256 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
yfeldblum has quit [Ping timeout: 250 seconds]
UtkarshRay has quit [Remote host closed the connection]
dlitvak has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
fantazo has joined #ruby
celly has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
dlitvak has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
zacstewa_ has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
govg has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
chouhoulis has joined #ruby
UtkarshRay has joined #ruby
karapetyan has joined #ruby
Brklyn has joined #ruby
shiffles has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
theRealAlexz has quit [Ping timeout: 252 seconds]
Brklyn has quit [Ping timeout: 245 seconds]
sandstrom has joined #ruby
amclain has quit [Quit: Leaving]
elifoster has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
zacstewa_ has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
arashb has joined #ruby
theRealAlexz has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
shiffles has quit [Ping timeout: 260 seconds]
arashb has quit [Ping timeout: 248 seconds]
govg has quit [Ping timeout: 264 seconds]
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
baweaver has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
dlitvak has joined #ruby
karapetyan has joined #ruby
ta has quit [Remote host closed the connection]
celly has quit [Remote host closed the connection]
ropeney has joined #ruby
atmosx has quit [Quit: Lost in trance]
ur5us has joined #ruby
CloCkWeRX has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
Kryptonical has quit [Read error: Connection reset by peer]
Brklyn has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
william3 has joined #ruby
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 245 seconds]
RegulationD has joined #ruby
djbkd has quit [Remote host closed the connection]
dexter-tzu has quit [Ping timeout: 245 seconds]
Brklyn has quit [Quit: Lost terminal]
moeabdol has quit [Quit: WeeChat 1.4]
pawnbox has joined #ruby
Abrin has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
govg has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
dlitvak has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
saltsa has quit [Ping timeout: 250 seconds]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
Lucky_ABA has joined #ruby
CloCkWeRX has joined #ruby
govg has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
dlitvak has quit [Ping timeout: 252 seconds]
stardiviner has joined #ruby
jottr has joined #ruby
saltsa has joined #ruby
codecop has joined #ruby
dexter-tzu has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Anderson69s has joined #ruby
infra-red has joined #ruby
govg has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
_ht has joined #ruby
blackgoat has joined #ruby
benlieb has quit [Quit: benlieb]
mhoungbo has joined #ruby
ferr has joined #ruby
tildes has joined #ruby
mondok has joined #ruby
lubekpl has joined #ruby
duckpuppy has joined #ruby
darkf has joined #ruby
ready has quit [Ping timeout: 250 seconds]
moeabdol1 has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
benlieb has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
stardiviner has quit [Ping timeout: 256 seconds]
moeabdol has quit [Ping timeout: 245 seconds]
zacstewart has joined #ruby
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Anderson69s has joined #ruby
<ljames> I'm looking at some old ruby code that used "case ... when : ..." syntax, maybe 50 or more instances of it, what's a good way of dealing with code like that? change all instances to when ... then ..., or is there a way to enable some sort of compatibility mode and just have the code just work?
<ljames> I meant "case ...: ..." syntax, rather than "case ... when ..."
mhoungbo has quit [Ping timeout: 250 seconds]
<ljames> argh, "case ... when ...:" rather than "case ... when ... then", that is, the deprecated semicolon
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<apeiros> ljames: no. just replace the : with a then or a ;
<apeiros> it should be fairly trivial to grep for all the instances
<apeiros> when.*:
Anderson69s has quit [Read error: No route to host]
Anderson69s_bug has joined #ruby
<shevy> ljames alternatively you could give rubocop's autocorrect a try
ready has joined #ruby
<ljames> I suppose I'll do that then. ; would work fine too? as in, I shouldn't expect fall-through issues like is common with C's "if ... else ..." when you don't delimit the block and it only treats the first expression as part of the conditional's to-be-executed body? (I'm fairly new to Ruby, so I hope I'm understanding the syntax right)
flughafen_ has quit [Ping timeout: 250 seconds]
<Ox0dea> ljames: `when foo;` and `when foo then` are synonymous.
<ljames> thanks, I suppose it should work, and if not, I'll just test it out
<Ox0dea> The parser doesn't have an opinion. :P
nfk has joined #ruby
Anderson69s_bug has quit [Client Quit]
Anderson69s has joined #ruby
Anderson69s has quit [Remote host closed the connection]
<shevy> it's very opinionated!!!
<shevy> snobbish
<shevy> it doesn't just accept everything
<Ox0dea> ljames: Ruby `case` statements don't really have fall-through as in C, but `when` clauses can have multiple "patterns" separated by commas.
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Swapping all the colons for semicolons should Just Work, but I'd be interested to know of any cases where it doesn't.
ledestin has joined #ruby
jottr has joined #ruby
dlitvak has joined #ruby
mhoungbo has joined #ruby
Coldblackice has quit [Ping timeout: 248 seconds]
<ljames> Ox0dea, oh, 2 more unrelated questions, one a bit related to your nickname: any way to force it to print decimals as hexadecimal by default in irb or the like? and the second: I found myself doing a lot of method(args);1 or similar because I need to supress insanely large outputs when irb prints the object (manageable to a console, but if using Emacs not so manageable)
<ljames> and by that I mean Fixnums or other numbers
<shevy> people just like the Ox nickname
<Ox0dea> ljames: I suppose you could redefine Fixnum#inspect if you really want that output at your REPL.
<Ox0dea> As for suppressing massive output, `foo = bar and 1` is my trick.
ur5us has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<ljames> I suppose I should try that, but I might need to do the same for Bignum too
mhoungbo has quit [Ping timeout: 240 seconds]
<Ox0dea> Alas, you'd have to define both explicitly. They don't inherit #inspect from Integer.
sandstrom has quit [Quit: My computer has gone to sleep.]
aupadhye_ has quit [Ping timeout: 272 seconds]
sandstrom has joined #ruby
pandaant has joined #ruby
nerium has quit [Quit: nerium]
einarj has joined #ruby
bluOxigen has joined #ruby
devbug has joined #ruby
aupadhye has joined #ruby
Jackneill has joined #ruby
dlitvak has joined #ruby
wethu has joined #ruby
devbug has quit [Ping timeout: 252 seconds]
krzkrz has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
moeabdol2 has joined #ruby
benlieb has quit [Quit: benlieb]
infra-red has quit [Remote host closed the connection]
moeabdol1 has quit [Ping timeout: 250 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
Ishido has joined #ruby
mhoungbo has joined #ruby
sandstrom has joined #ruby
beast has joined #ruby
marr has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
Rickmasta has joined #ruby
sftrabbit has joined #ruby
Rickmast_ has joined #ruby
last_staff has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
devbug has joined #ruby
jgt4 has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
arashb has joined #ruby
mfb2 has joined #ruby
sandstrom has joined #ruby
dlitvak has joined #ruby
Cohedrin has joined #ruby
jbrhbr has joined #ruby
arashb has quit [Ping timeout: 240 seconds]
selfadhesivefilm has joined #ruby
FernandoBasso has joined #ruby
karapetyan has quit [Remote host closed the connection]
mfb2 has quit [Ping timeout: 276 seconds]
theRealAlexz has quit [Ping timeout: 272 seconds]
Gnut has joined #ruby
baweaver has joined #ruby
spider-mario has joined #ruby
theRealAlexz has joined #ruby
Rickmast_ has quit [Ping timeout: 248 seconds]
Domaldel has joined #ruby
Rickmasta has joined #ruby
bluOxigen_ has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Quit: Leaving.]
mauricio has joined #ruby
skade has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
sandstrom has joined #ruby
karapetyan has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
tvw has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
oetjenj has joined #ruby
moeabdol3 has joined #ruby
govg has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
RegulationD has joined #ruby
zeroDivisible has joined #ruby
Zai00 has joined #ruby
moeabdol2 has quit [Ping timeout: 256 seconds]
mondok has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Ping timeout: 248 seconds]
fantazo has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
theRealAlexz has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
govg has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theRealAlexz has joined #ruby
wethu has joined #ruby
dlitvak has joined #ruby
lubekpl has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
Rickmasta has joined #ruby
theRealAlexz has quit [Ping timeout: 272 seconds]
zacstewa_ has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
theRealAlexz has joined #ruby
dlitvak_ has joined #ruby
pandaant has quit [Remote host closed the connection]
Rickmasta has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 245 seconds]
Rickmasta has joined #ruby
ropeney has joined #ruby
lubekpl has joined #ruby
duckpuppy has joined #ruby
Rickmasta has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
krzkrz has quit [Ping timeout: 240 seconds]
p0wn3d has joined #ruby
Rickmasta has joined #ruby
symm- has joined #ruby
duckpuppy has quit [Ping timeout: 245 seconds]
firstdayonthejob has quit [Ping timeout: 264 seconds]
skade has quit [Quit: Computer has gone to sleep.]
FooMunki has joined #ruby
lurch_ has joined #ruby
JohnBat26 has joined #ruby
aupadhye has quit [Quit: Leaving]
moeabdol4 has joined #ruby
tvw has quit []
saneax is now known as saneax_AFK
antgel_ has quit [Remote host closed the connection]
moeabdol3 has quit [Ping timeout: 250 seconds]
saneax_AFK is now known as saneax
ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
tildes has quit [Ping timeout: 276 seconds]
tildes has joined #ruby
_ht has quit [Ping timeout: 256 seconds]
_ht has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 264 seconds]
sftrabbit has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
bkxd has joined #ruby
tildes has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
skade has joined #ruby
skade has quit [Client Quit]
theRealAlexz has quit [Ping timeout: 240 seconds]
skade has joined #ruby
sftrabbit has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
skade has quit [Client Quit]
william3 has joined #ruby
lurch_ has quit [Quit: lurch_]
sftrabbit has quit [Read error: Connection reset by peer]
mhoungbo has quit [Ping timeout: 240 seconds]
govg has joined #ruby
william3 has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Ping timeout: 248 seconds]
toretore has quit [Ping timeout: 248 seconds]
beast has quit [Quit: Leaving]
jottr has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
theRealAlexz has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
selfadhesivefilm has quit [Read error: Connection reset by peer]
selfadhesivefilm has joined #ruby
karapetyan has quit [Remote host closed the connection]
dlitvak_ has quit [Remote host closed the connection]
mhoungbo has joined #ruby
Jackneill has quit [Ping timeout: 240 seconds]
TomyLobo has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
adgtl has joined #ruby
squarer00t has joined #ruby
Jardayn has joined #ruby
hanmac has quit [Ping timeout: 252 seconds]
infernix has quit [Ping timeout: 272 seconds]
sftrabbit has joined #ruby
jokke has quit [Quit: WeeChat 1.3]
tk__ has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
user083_ has quit [Ping timeout: 240 seconds]
arashb has joined #ruby
krzkrz has joined #ruby
Jackneill has joined #ruby
jokke has joined #ruby
bluOxigen_ has quit [Ping timeout: 250 seconds]
arashb has quit [Ping timeout: 252 seconds]
zacstewa_ has quit [Ping timeout: 276 seconds]
sdothum has joined #ruby
zacstewart has joined #ruby
Felix444 has joined #ruby
hanmac has joined #ruby
jbrhbr has quit [Quit: Leaving.]
SCHAAP137 has joined #ruby
<adgtl> What is equivalent of Elixir lang pipe operator in Ruby?
<adgtl> 1..100_000
<adgtl> |> Enum.map(&(&1 * 3))
<adgtl> can it be called chaining that we do with map and reduce?
<havenwood> adgtl: (1..100_000).map { |n| n * 3 }
symm- has quit [Ping timeout: 250 seconds]
<Ox0dea> adgtl: https://eval.in/514147
<havenwood> adgtl: There's a plan to add a pipe operator in Ruby 3.0.
<adgtl> havenwood: I wanted to know what we call for that concept? Is that called chaining?
<havenwood> adgtl: method chaining is a thing
<adgtl> valeri_ufo: awesome to know that Ruby 3.0 will be getting a pipe operator
<adgtl> havenwood: method chaining then it is right?
<adgtl> Basically looking for word to call the concept when we do (1..100_000).map { |n| n * 3 }.reduce { |h| h * 4 }
<adgtl> (1..100_000).map { |n| n * 3 }.reduce { |h, s| h * s }
<Ox0dea> You might want "pipeline".
<adgtl> (1..100_000).map { |n| n * 3 }.reduce(1) { |h, s| h * s }
<Ox0dea> Stahp.
<adgtl> Ox0dea: haha.. can't see wrong .. should have waited before hitting enter :)
konsolebox has quit [Ping timeout: 250 seconds]
konsolebox has joined #ruby
infernix has joined #ruby
<Ox0dea> As best I can tell, "pipeline" is the canonical term used in Elixir, and it fits pretty snugly for Ruby too.
<Ox0dea> It's most appropriate when applied to "streams", and I reckon Enumerators fit that shoe just fine.
mahk_ has quit [Quit: Quit.]
krzkrz has quit [Ping timeout: 264 seconds]
krzkrz has joined #ruby
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
erGoline has joined #ruby
selfadhesivefilm has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 240 seconds]
selfadhesivefilm has joined #ruby
<erGoline> Hello :) I need to create a http forwarding proxy in ruby, any resources/idea/suggestion?
user083 has joined #ruby
vikas027 has joined #ruby
vikas027 has left #ruby [#ruby]
vikas027 has joined #ruby
vikas027 has left #ruby [#ruby]
selfadhesivefilm has quit [Ping timeout: 240 seconds]
selfadhesivefilm has joined #ruby
karapetyan has joined #ruby
pwned has joined #ruby
blackmesa has joined #ruby
<apeiros> erGoline: err, why'd you *need* to write it in ruby? why not use one of the plenty existing http proxies?
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<erGoline> apeiros: only to learn something new :) and I prefer to deploy it to Heroku, so I have some constrains
karapetyan has quit [Ping timeout: 240 seconds]
<erGoline> apeiros: could be nice something at rack level too, to intetegrate it inside the Rails app I'm developing. I need to forward the traffic to a CDN (fastly) but have a failover to a second server (or the main app itself if using rack)
<pwned> if it's less than a few hundred lines, does what you want without getting lost in configuration docs and compiling third party extensions, why not write it in ruby?
theRealAlexz has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
<erGoline> pwned: nice point ;)
william3 has joined #ruby
theRealAlexz has joined #ruby
theRealAlexz has quit [Changing host]
theRealAlexz has joined #ruby
<pwned> and also good for prototyping/quickly get something up and running before awesomescale(c)
<apeiros> I rather doubt you'll be able to write an http proxy in less than a few hundred lines
<erGoline> apeiros: i didn't test it https://gist.github.com/torsten/74107
<pwned> apeiros: it depends on what features you're typing about.
<apeiros> pwned: you mean you can write a broken http proxy in less than a few hundred lines?
<apeiros> sure.
<pwned> apeiros: yes sure. If what you mean by broken is "hasn't got feature X"
mauricio has quit [Remote host closed the connection]
<apeiros> no. by broken I mean does not adhere to the specs.
duckpuppy has joined #ruby
trinaldi has joined #ruby
<erGoline> apeiros: I need to forward the http request, using a regular expression, to another server and get the response. Nothing else
<apeiros> you'll probably need more time to just read the specs than compile an existing http proxy.
<pwned> erGoline: oh no, you didn't adhere to some obscure specs written before millenium
william3 has quit [Ping timeout: 240 seconds]
<apeiros> *sob*
blackmesa has quit [Ping timeout: 240 seconds]
<apeiros> and people wonder why software breaks in the weirdest ways
selfadhesivefilm has quit [Remote host closed the connection]
<apeiros> "specs… what are they good for…"
<erGoline> apeiros: I need to create a proxy form my own specific setup, not a software to release worldwide
<pwned> apeiros: Before you become the champion of reading specs, which anyone can do, let's be reasonable. You are given the task to take http(s) request, slap some headers in and redirect it.
<apeiros> pwned: yeah. no.
Jonah11_ has joined #ruby
mhoungbo has quit [Ping timeout: 272 seconds]
<apeiros> but hey, go ahead and write broken stuff.
<pwned> oh ok no reasoning on IRC
<apeiros> no point. level of ignorance is too high.
<erGoline> for example i'm trying a proof of concept with the Mechanize gem :D >
<erGoline> agent = Mechanize.new; agent.set_proxy '.....', 80; html = agent.get(".....").body; render :text => html, layout: false
<pwned> I'm gonna forward get request, guy says you've gotta read specs on options
lurch_ has joined #ruby
<erGoline> and it's working quite well, of course the traffic I'm testing is quite low (400rpm)
<pwned> guy also asserts that our in-house software which has been working fine is broken
<apeiros> pwned: you don't even know what you're doing wrong because you didn't read the specs.
lurch_ has quit [Client Quit]
<apeiros> there's a couple of headers for example which you have to process as a proxy. just as an example.
<pwned> apeiros: I don't believe you can make that judgement.
duckpuppy has quit [Ping timeout: 272 seconds]
<apeiros> pwned: but you can?
<apeiros> are you a prophet or something'
flughafen_ has joined #ruby
<apeiros> but I'm all ears about you explaining me how you know what things you didn't do wrong without knowing the specs. I'm sure there's some conclusive logic coming…
<erGoline> apeiros: ok, I know that specs are important, but as said by pwned I just need to forward requests, I don't need to identify as proxy neither. Perhaps "http tunnelling" is the correct expression?
<pwned> perhaps I did not explain my intentions. If you don't need to handle parts of the protocol, you don't need to implement them. I didn't mean to say that you don't have to read any specs. Reading is one thing, implementing them is another.
mfb2 has joined #ruby
<apeiros> pwned: and now tell me - how do you know which parts you didn't implement?
<apeiros> and how do you know which parts you don't need to implement?
<apeiros> if you write stuff without reading the specs, all you know is "it does what I want in those N tests I performed". *not a single thing more*.
<apeiros> you don't even know whether it does those N things correctly. only that it does them as you expect it to do them.
<apeiros> so I'm sorry. but saying that reading the specs isn't necessary (even if limited by "if you only implement a part of it") is utter bull.
govg has quit [Ping timeout: 240 seconds]
<pwned> apeiros: well think what you will, I meant implementing specs, not readin specs.
<apeiros> the one case where it is viable is where you explicitly accept that you write broken software.
<apeiros> but claiming that your software isn't broken if you haven't read the spec is again bull.
<apeiros> that's not what you said, though.
<apeiros> I agree on not needing to implement the full spec.
<pwned> good let's continue on then.
selfadhesivefilm has joined #ruby
mfb2 has quit [Ping timeout: 240 seconds]
<apeiros> but then we're again at: reading the specs alone will take you more time than compiling existing software.
hakunin has quit [Ping timeout: 240 seconds]
zacstewart has quit [Ping timeout: 256 seconds]
<pwned> apeiros: are you saying that a person who is completely ignorant of the spec can fully configure a proxy software?
zacstewart has joined #ruby
<pwned> (I've configured plenty but I know a large part of many interlinked rfc documents)
<apeiros> no. but a) unlike reading the spec, reading the full config is usually not necessary with software (since often they come with sensible configs)
benlovell has joined #ruby
<apeiros> and b) reading config docs usually is quite a bit less time consuming than reading specs.
yfeldblum has quit [Ping timeout: 250 seconds]
<pwned> I think it would be ignorant just trying to configure a proxy without knowing any word in the specs.
benlovell has quit [Client Quit]
<apeiros> but implementing a proxy isn't? :-p
<pwned> put that tongue back young man
sgambino has joined #ruby
william3 has joined #ruby
selfadhesivefilm has quit [Ping timeout: 250 seconds]
<pwned> I'll put it in terms you can understand: using software and implementing it requires knowing stuff. Sometimes making custom software is easier. Just slap in a few headers and you're done. And yes you have to know specs. Bravo for figuring that out on your own.
hakunin has joined #ruby
<apeiros> "in terms you can understand" is ad hominem and unwelcome.
<pwned> at least it isn't strawman.
chouhoulis has quit [Remote host closed the connection]
groundnuty has joined #ruby
<apeiros> no. it's a sign of lack of arguments and also a sign that I won't continue. have a nice day.
<erGoline> sob... :|
selfadhesivefilm has joined #ruby
william3 has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol4 has quit [Ping timeout: 245 seconds]
Deck` has joined #ruby
<pwned> apeiros: well good, arguing your strawmanning wasn't exactly very pleasurable either.
<apeiros> there was no strawman. but as said, I won't continue.
<pwned> nowhere have I said that you shouldn't read specs.
<erGoline> by the way, which specs should I know if I only tunnel bytes and don't want to appear as a real proxy (so config headers, etc)?
selfadhesivefilm has quit [Ping timeout: 245 seconds]
<apeiros> pwned: you pretty clearly implied that. yes. and claiming otherwise is rather dishonest.
<pwned> apeiros: well go ahead and paste what I've said.
sgambino has joined #ruby
coderMe has joined #ruby
<adaedra> is this discussion of yours going anywhere useful for erGoline question?
<apeiros> » 14:03 pwned: I'm gonna forward get request, guy says you've gotta read specs on options
<apeiros> (there's multiple other occasions, I see little point in c&p them all)
<apeiros> I think we both know that you indeed meant it that way. but if you want to pretend. sure. I'm done.
TomyLobo has quit [Ping timeout: 245 seconds]
Jonah11_ has quit [Remote host closed the connection]
govg has joined #ruby
<pwned> well if that's the position you want to take, yes there is no point in arguing with you.
dasher00 has joined #ruby
Rickmasta has quit [Ping timeout: 248 seconds]
<shevy> I just came back from shopping - don't stop arguing :)
<adaedra> ssssh.
<pwned> erGoline: just tunnel them and don't act as a proxy at all just to spite apeiros
<adaedra> sigh.
william3 has joined #ruby
<shevy> lol
ctp__ has joined #ruby
<erGoline> pwned: what I was tinking about (not to spite apeiros!)
Rickmasta has joined #ruby
<adaedra> erGoline: what's your needs exactly?
<adaedra> what are* rather.
lipoqil has joined #ruby
<shevy> what's are your needs!
<adaedra> exactly.
william3 has quit [Ping timeout: 272 seconds]
<erGoline> adaedra: I have a ruby (Rails) app, I need to forward the traffic hitting the app (fiultered with a regex) to a CDN and have a failever to the app itself
Xeago has joined #ruby
<erGoline> so I thought to have a proxy/forwarder/tunnel in front of the app, or integrated at rack level
kies^ has quit [Ping timeout: 240 seconds]
<erGoline> I'm investigating a ruby solution for the second matter and because I would like to have it on Heroku (I can switch the app routing easily)
<adaedra> well, isn't that already what the CDN does, failbacking to your app if they don't have the resource?
<adaedra> also, if traffic goes to your application before going to the CDN, it kinda defeats the CDN purpose?
<erGoline> adaedra: absolutely right observation :) I need this way because I have some problems installing SSL certs on the CDN. So I would like to test a temp, less performant of course, solution
<erGoline> adaedra: the fallback to the main app is because a) I need to cache only some pages b) I can quickly disable the CDN part c) It works even if the CDN goes down
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<erGoline> Let's think the CDV as a sort of page caching storage :)
<adaedra> the c) part is supposed to be very unlikely, at least more unlikely than the event of your app going down
<erGoline> adaedra: I know
<adaedra> But anyway
<erGoline> Actually I'm doing this inside a controller with Mechanize (agent = Mechanize.new; agent.set_proxy '.....', 80; html = agent.get(".....").body; render :text => html, layout: false) and it works nice, but I would like to avoid hitting the controller so I can speed the thing up
<erGoline> adaedra: uh, I missed this, thanks!
johnmilton has joined #ruby
Jackneill has quit [Quit: Leaving]
karapetyan has joined #ruby
kirun has joined #ruby
coderMe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vadeRcUser has joined #ruby
vadeRcUser has quit [Client Quit]
_mirko_ has joined #ruby
johnmilton has quit [Quit: Namaste]
_mirko_ has quit [Read error: Network is unreachable]
karapetyan has quit [Ping timeout: 240 seconds]
twistedpixels has joined #ruby
johnmilton has joined #ruby
_mirko_ has joined #ruby
vadeRcUser has joined #ruby
william3 has joined #ruby
aryaching has joined #ruby
<vadeRcUser> Hello all
<erGoline> adaedra: do you know if it can be integrated in a rails app, and how?
lurch_ has joined #ruby
<erGoline> hi vadeRcUser
<adaedra> It's a middleware
lubekpl has quit [Quit: WeeChat 1.3]
<vadeRcUser> trying to dust off an old project, IRC client written in ruby =)
<adaedra> So you add it to the rails stack like any other middleware, erGoline
braian has joined #ruby
<erGoline> adaedra: ok so config.middleware.use ...
sgambino has joined #ruby
johnmilton has quit [Quit: Namaste]
johnmilton has joined #ruby
<shevy> vadeRcUser isn't that how we all start it - we write an IRC bot in ruby!
Rickmasta has quit [Ping timeout: 276 seconds]
johnmilton has quit [Client Quit]
<vadeRcUser> @shevy
johnmilton has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
<vadeRcUser> I'm
johnmilton has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
ferr has quit [Ping timeout: 256 seconds]
Rickmasta has joined #ruby
johnmilton has joined #ruby
nerium has joined #ruby
_mirko_ has quit [Ping timeout: 245 seconds]
mirko has joined #ruby
_ht has quit [Ping timeout: 245 seconds]
Gnut has quit [Ping timeout: 245 seconds]
mirko is now known as Guest99895
s2013 has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
Guest99895 has quit [Read error: Connection reset by peer]
william3 has quit [Remote host closed the connection]
kirillzh has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
zacstewart has joined #ruby
NET||abu- is now known as NET||abuse
<vadeRcUser> goodbye
einarj has quit [Remote host closed the connection]
vadeRcUser has quit [Quit: vadeRcUser]
wethu has joined #ruby
squarer01t has joined #ruby
decoponio has joined #ruby
tvw has joined #ruby
Yeomra has joined #ruby
william3 has joined #ruby
chouhoulis has joined #ruby
roshanavand has joined #ruby
Rickmasta has quit [Ping timeout: 264 seconds]
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
squarer00t has quit [Ping timeout: 240 seconds]
selfadhesivefilm has joined #ruby
Rickmasta has joined #ruby
william3 has quit [Ping timeout: 264 seconds]
moeabdol has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
Yeomra_ has joined #ruby
Yeomra has quit [Read error: Connection reset by peer]
FAMAS has joined #ruby
despai has joined #ruby
icbm has quit [Quit: Leaving]
cdg has joined #ruby
FernandoBasso has quit [Quit: Leaving]
Zai00 has quit [Quit: Zai00]
saneax is now known as saneax_AFK
IrishGringo has joined #ruby
selfadhesivefilm has quit [Ping timeout: 245 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
pdoherty has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 264 seconds]
coderMe has joined #ruby
zacstewart has joined #ruby
ych has joined #ruby
govg has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
despai has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saneax_AFK is now known as saneax
dionysus69 has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
ilhami has joined #ruby
<ilhami> ey
blackgoat has quit [Quit: WeeChat 1.3]
Rickmasta has joined #ruby
ponga has joined #ruby
saneax is now known as saneax_AFK
wethu has quit [Quit: This computer has gone to sleep]
tatsuo has quit [Quit: Leaving...]
adgtl_ has joined #ruby
peeja has joined #ruby
cdg has quit [Remote host closed the connection]
Nanuq has quit [Ping timeout: 264 seconds]
adgtl has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
enkristoffer has joined #ruby
blackmesa has joined #ruby
Spami has joined #ruby
Yeomra_ has quit [Quit: WeeChat 1.4]
<ilhami> I want to learn Ruby!!!
<ilhami> is it difficult to learn?
<shevy> ilhami lol
<ilhami> lol
<ilhami> I don't like PHP. :/
<ilhami> I want to learn Ruby
<ilhami> even the name Ruby is better than PHP. :/ ugh
Xeago has quit [Remote host closed the connection]
<shevy> you need to train more
<ilhami> train more? I haven't trained at all shevy
<shevy> see :)
william3 has joined #ruby
<ilhami> do you train a lot?
<shevy> I trained a lot
karapetyan has joined #ruby
<ilhami> Wow then you must be good. :P
hxegon has joined #ruby
<shevy> yeah
<ilhami> does Ruby has a template engine? :O
livcd_ has quit [Changing host]
livcd_ has joined #ruby
<shevy> please don't follow the path of php
<ilhami> why not?
<shevy> it has brought you to this situation
IrishGringo has quit [Ping timeout: 240 seconds]
<ilhami> what situation? :/
banister has joined #ruby
<shevy> <ilhami> I don't like PHP. :/
<ilhami> Oh hehe.
<shevy> did you like forget already from one minute ago
<ilhami> shevy, you sound like someone from Ukraine.. :P
adgtl_ has quit [Remote host closed the connection]
<shevy> you are from the Ukraine?
karapetyan has quit [Ping timeout: 240 seconds]
<ilhami> no no. Denmark.
<shevy> nah
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
speakingcode has joined #ruby
tk__ has quit [Quit: ばいばい]
Nanuq has joined #ruby
duckpuppy has joined #ruby
codecop has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 276 seconds]
duckpuppy has quit [Ping timeout: 252 seconds]
dlitvak has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
hxegon has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Rickmasta has joined #ruby
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
binaryplease has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
govg has quit [Quit: leaving]
TheNet has joined #ruby
tvw has quit [Remote host closed the connection]
x77686d has joined #ruby
chouhoulis has joined #ruby
Xeago has joined #ruby
TheNet has quit [Client Quit]
houhoulis has joined #ruby
TheNet has joined #ruby
lambdachops has joined #ruby
TheNet has quit [Client Quit]
mrsLiu has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
PedramT has quit [Remote host closed the connection]
TheNet has joined #ruby
peeja has quit [Ping timeout: 256 seconds]
workmad3 has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
selfadhesivefilm has joined #ruby
lambdachops has quit [Quit: Bye]
mrsLiu has quit [Ping timeout: 276 seconds]
mhoungbo has joined #ruby
moeabdol has joined #ruby
DoubleMalt has joined #ruby
rkoller has joined #ruby
arthropododo has joined #ruby
selfadhesivefilm has quit [Ping timeout: 245 seconds]
Abrin has joined #ruby
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
TheNet has joined #ruby
ferr has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
TheNet has quit [Client Quit]
PedramT has joined #ruby
TheNet has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
solars has joined #ruby
PedramT has quit [Remote host closed the connection]
jottr has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
ctp__ has quit [Quit: Connection closed for inactivity]
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
duderono_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
northfurr has joined #ruby
northfurr has quit [Changing host]
northfurr has joined #ruby
The_Phoenix has joined #ruby
YankNYC has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
<YankNYC> Ox0dea good morning :)
Rickmasta has quit [Ping timeout: 240 seconds]
<erGoline> adaedra: I followed your suggestion and I wrote a rack/proxy middleware, ~20 loc, it works nicely :) Thank you for pointing me to the right direction!
ych has joined #ruby
Deck` has quit [Ping timeout: 260 seconds]
Rickmasta has joined #ruby
benhuda has joined #ruby
Al2O3 has quit [Read error: Connection reset by peer]
braian has quit [Quit: Leaving]
Al2O3 has joined #ruby
workmad3 has joined #ruby
<ilhami> is Ruby bad for bigger projects?
BaroMeter has joined #ruby
binaryplease has quit [Ping timeout: 272 seconds]
Rickmasta has quit [Ping timeout: 250 seconds]
fourq is now known as fourq|away
fourq|away is now known as fourq
lurch_ has quit [Quit: lurch_]
fourq is now known as fourq|away
<erGoline> ilhami: bigger than...?
Rickmasta has joined #ruby
fourq|away is now known as fourq
fourq is now known as fourq|away
duffman728 has joined #ruby
blackmes1 has joined #ruby
jottr_ has joined #ruby
<ilhami> erGoline, dunno. Just heard it's not optimal for huge projects.
<ilhami> is that true?
duffman728 has quit [Quit: WeeChat 1.0.1]
adgtl has joined #ruby
<havenwood> ilhami: Nope, not true. Lies!
the_drow has joined #ruby
<erGoline> ilhami: the question is a bit generic, but no :)
duffman728 has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
<apeiros> in the opposite. ruby allowing to write succinct code makes it great for huge projects.
<apeiros> if performance is an issue on all fronts, then ruby may not be what you're looking for. but even then it depends.
lurch_ has joined #ruby
<banister> wish ruby had a proper import/module system though..
<apeiros> banister: what things are you thinking of?
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<banister> apeiros something like rust/haskell and i guess python (though i dont have much experience with python)
<banister> but the ability to import specific symbols
ferr has quit [Ping timeout: 260 seconds]
<apeiros> banister: since I know neither rust nor haskell - you mean e.g. include and specify which methods and constants you want from it?
bkxd has quit [Ping timeout: 240 seconds]
fourq|away is now known as fourq
<banister> obvs u can achieve the same thing in ruby, but it's kind of manual and rquires more discipline
fourq is now known as fourq|away
karapetyan has joined #ruby
ferr has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lurch_ has quit [Client Quit]
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
aryaching_ has quit [Client Quit]
aryaching has joined #ruby
benhuda has quit [Ping timeout: 240 seconds]
adgtl has quit [Remote host closed the connection]
binaryplease has joined #ruby
adgtl has joined #ruby
chouhoulis has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
firstdayonthejob has joined #ruby
baweaver has joined #ruby
johnmilton has quit [Ping timeout: 248 seconds]
snguyen has joined #ruby
pdoherty has quit [Remote host closed the connection]
pdoherty has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
ferr has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
snguyen has quit [Client Quit]
selfadhesivefilm has joined #ruby
dionysus69 has joined #ruby
FernandoBasso has joined #ruby
selfadhesivefilm has quit [Ping timeout: 252 seconds]
hxegon has quit [Quit: BRB]
S01780_ is now known as S01780
dionysus69 has quit [Ping timeout: 240 seconds]
Limix has joined #ruby
edulix has joined #ruby
Limix has quit [Client Quit]
whippythellama has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
<ilhami> so Ruby is good for huge projects? eh
<ilhami> ?
<shevy> ilhami are you still using php
johnmilton has joined #ruby
johnmilton has quit [Remote host closed the connection]
<ilhami> shevy, I am making a wordpress site. After this I will use ruby lol
ftj has joined #ruby
erGoline has left #ruby [#ruby]
blackmes1 has quit [Quit: WeeChat 1.4]
<apeiros> ilhami: certainly.
<ilhami> but you need to provide me good material. :P
<ilhami> Are there any good Ruby CMS'?
<apeiros> we don't need to do anything. but if you gently ask, somebody surely will try to help you.
<ilhami> apeiros, what an attitude
<apeiros> precisely what I thought too :-p
<shevy> ilhami sorta semi-ones. depends on how you define CMS. does this work for you https://bugs.ruby-lang.org/projects/ruby-trunk
<apeiros> anyway, there's a couple of ruby CMS' around. can't tell how good they are as I've never used any.
<shevy> it has a wiki too!!!
<ilhami> apeiros, :D
<ilhami> anyway you want me to read the Ruby source? lol
robbyoconnor has quit [Max SendQ exceeded]
<apeiros> that's up to you. nothing I said implies anything like that, though.
whippythellama has joined #ruby
<ilhami> shevy linked me the source. :P I better find a tutorial
<shevy> you need to start to write ruby code
fgo has quit [Quit: WeeChat 1.3]
Deck` has joined #ruby
Limix has joined #ruby
<ilhami> what do you think about https://www.youtube.com/watch?v=GY7Ps8fqGdc?
FAMAS has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<ilhami> Ruby on Rails :)
<shevy> you can find them on #rubyonrails
<ilhami> :D cool
<ilhami> you are not in there
araujo has quit [Remote host closed the connection]
ElFerna has joined #ruby
Deck` has quit [Ping timeout: 250 seconds]
r0bby_ has joined #ruby
_Tariq has joined #ruby
<_Tariq> What would be the best way to test STDIN?
<_Tariq> er..
<_Tariq> I am writing a test to check if a class is reading lines effectively from STDIN. What would work fine?
<_Tariq> for doing this sort of test?
postmodern has quit [Quit: Leaving]
blackmesa has joined #ruby
<shevy> hmmm drbrain said something about that perhaps 2 weeks ago
<shevy> let me find the channel log
lele has quit [Ping timeout: 240 seconds]
<_Tariq> Thanks shevy
<shevy> 2016-01-26 18:55 <drbrain> (you can set $stdout to anything IO-like, but you can only reopen STDOUT to another file)
<shevy> 2016-01-26 18:54 <drbrain> hxegon_: also, use $stdout, not STDOUT because it's easier to write tests for the former
<shevy> hmm don't see more written pertaining to that though
<_Tariq> Ugh
<shevy> hehe
<_Tariq> I can see why many people hate automated tests
<_Tariq> Because already I'm going against best practices by mocking, and now I don't even know how to mock
<_Tariq> I guess now would be a good time to throw you a gist, right?
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> we need to find someone who tests!
ftj has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
fourq|away is now known as fourq
lele has joined #ruby
<_Tariq> Do you know anything about StringIO
fourq is now known as fourq|away
<_Tariq> specifically how to put lines into it?
<shevy> one can use it to redirect stdout into it
<_Tariq> so that it can actually be read?
<_Tariq> Ah
<shevy> was it not via << ?
<shevy> and you keep a reference copy to the old $stdout, then you can restore it lateron
dionysus69 has joined #ruby
<shevy> that way you can mute the whole output of a ruby program, or redirect it into a file or string
duckpuppy has joined #ruby
<shevy> I just copy pasted a strange symbol from a .pdf file ... does anyone see it? :D ?
<_Tariq> I don't see it
<_Tariq> Er...
<_Tariq> I want to send stuff TO a request
<_Tariq> Yeah, let me write a gist
<shevy> to?
<_Tariq> To here.
renier_ has quit [Quit: Textual IRC Client: www.textualapp.com]
_ht has joined #ruby
djbkd has quit [Quit: Leaving...]
ElFerna has joined #ruby
acerna has joined #ruby
Timberwo|f has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
<shevy> hmmm
tjohnson has joined #ruby
Timberwo|f has quit [Max SendQ exceeded]
fourq|away is now known as fourq
fourq is now known as fourq|away
dlitvak_ has joined #ruby
_ht has quit [Client Quit]
dlitvak has quit [Ping timeout: 252 seconds]
_ht has joined #ruby
Bloomer has joined #ruby
ElFerna has quit [Ping timeout: 245 seconds]
Bloomer has quit [Remote host closed the connection]
<shevy> _Tariq skip testing :D
<_Tariq> :(
_ht has quit [Ping timeout: 256 seconds]
<_Tariq> Yeah, I'll probably have to do that for now then
symm- has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 264 seconds]
dlitvak has joined #ruby
blackmes1 has joined #ruby
<ilhami> shevy, how dare you ? :D
chouhoulis has joined #ruby
<shevy> ilhami wat
<ilhami> <shevy> _Tariq skip testing :D
<shevy> ilhami have you even written a single code of ruby so far :P
blackmesa has quit [Ping timeout: 264 seconds]
roshanavand has quit [Remote host closed the connection]
preyalone has joined #ruby
<ilhami> shevy, no hahah
<ilhami> one step at a time.
<shevy> test code requires a lot more time investment
<ilhami> so you are against TDD?
<shevy> I am against testing
<ilhami> woah
<_Tariq> By thwat, you mean automated testing, shevy?
<_Tariq> Or is that a joke?
<shevy> _Tariq nope
<_Tariq> ok
<shevy> look at what you have to do!
<shevy> it's no fun
<ilhami> this shevy is bossy
dfockler has joined #ruby
<shevy> if you have to fly to the moon then yeah you should test
dlitvak has quit [Ping timeout: 245 seconds]
Limix has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
<ilhami> hehe ok ok :)
jottr_ has quit [Ping timeout: 240 seconds]
<shevy> if you have a specification then you should adhere to it
<shevy> if you have a bug then you should get rid of it
jottr has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
<ilhami> wise words shevy :)
<shevy> ilhami go write ruby!
<Papierkorb> $ rm -rf * # Gets rid of all bugs
jbrhbr has joined #ruby
<ilhami> Lol yeah in Linux dists Papierkorb
<ilhami> :D what about in Windows?
<shevy> are you not using linux ilhami?
<ilhami> I am
<shevy> good
<Papierkorb> ilhami: Windows is the bug in that case
<shevy> you are making progress!
nofxx has joined #ruby
selfadhesivefilm has joined #ruby
nodejunkie has quit [Ping timeout: 252 seconds]
<ilhami> you guys are very opinionated.
_Tariq has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Al2O3 has quit [Quit: Al2O3]
selfadhesivefilm has quit [Ping timeout: 252 seconds]
<shevy> ilhami hey... you were using php
<shevy> you could have used python
<ilhami> I have tried Python as well.
<ilhami> didn't like it too much.
peeja has joined #ruby
fedexo has joined #ruby
<pushcx> Papierkorb: No, it can cause some bugs: http://www.theregister.co.uk/2016/02/02/delete_efivars_linux/
Heero has quit []
<Papierkorb> pushcx: / != *
karapetyan has quit [Ping timeout: 240 seconds]
<Papierkorb> pushcx: and the systemd maintainer wasn't really cooperative on that matter last time I looked at the GH issue on that
Heero has joined #ruby
<Papierkorb> Poettering that is
<shevy> :D
<Papierkorb> Like "hurr we need it! Cause everyone uses 'systemctl reboot --firmware' all the time, and we can't just remount it for that because I don't feel like it!"
karapetyan has joined #ruby
<shevy> welcome to the systemd world
DonOtreply has quit [Quit: DonOtreply]
kies^ has joined #ruby
scripore has joined #ruby
<ilhami> what's wrong with systemd? :P
<shevy> ilhami dunno, ask on #systemd - we here on #ruby will build a better OS one day!!!
<ilhami> which editor are you guys using for Ruby?
<shevy> still bluefish 1.0.7 ... but I want to move away since... 2 years or so. on my list are... probably... atom... sublime... hmm geany ... not sure yet
<ilhami> I use atom.
<nofxx> systemd made my life 20x easier. I just don't get the hate. It just works.
<nofxx> it's on of those fear of new tech bullshit imho
<ilhami> nofxx, that's what I have heard as well.
flughafen_ has quit [Ping timeout: 240 seconds]
<ilhami> what OS are you guys working on?
araujo has joined #ruby
araujo has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<ilhami> "we here on #ruby will build a better OS one day!!!"
flughafen_ has joined #ruby
davedev24 has joined #ruby
<Papierkorb> Linux as kernel with GNU as userspace tooling
<ilhami> 100% pure GNU does not exist except a few dists.
sandstrom has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
northfurr has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
DmitryBochkarev has joined #ruby
zacstewart has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Deck` has joined #ruby
platzhirsch has joined #ruby
baweaver has joined #ruby
Deck` has quit [Ping timeout: 250 seconds]
dudedudeman has joined #ruby
northfurr has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
northfurr has joined #ruby
Timberwo|f has joined #ruby
s2013 has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jbrhbr has quit [Quit: Leaving.]
peeja has quit [Ping timeout: 260 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
hxegon has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
hyperbolist has joined #ruby
intrigueD has joined #ruby
spider-mario has quit [Remote host closed the connection]
sandstrom has joined #ruby
DonOtreply has joined #ruby
fourq|away is now known as fourq
fourq is now known as fourq|away
intrigueD has quit []
intrigueD has joined #ruby
dlitvak has joined #ruby
intrigueD has quit [Remote host closed the connection]
william3 has joined #ruby
mondok has joined #ruby
jordanm has quit [Quit: Konversation terminated!]
<shevy> ilhami linux!
william3 has quit [Ping timeout: 245 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
northfurr has quit [Quit: northfurr]
kies^ has quit [Ping timeout: 240 seconds]
ta has joined #ruby
fourq|away is now known as fourq
fourq is now known as fourq|away
ta has quit [Remote host closed the connection]
Azulinho has joined #ruby
curious2020 has joined #ruby
jottr_ has quit [Quit: WeeChat 1.4]
sepp2k has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
ur5us has joined #ruby
sandstrom has joined #ruby
intrigueD has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
LoneHermit has joined #ruby
chouhoulis has joined #ruby
binaryplease has joined #ruby
tfitts_ has joined #ruby
curious2020 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ur5us has quit [Ping timeout: 245 seconds]
zacstewart has joined #ruby
curious2020 has joined #ruby
Azulinho has quit [Read error: Connection timed out]
Azulinho has joined #ruby
psy_ has joined #ruby
tfitts_ has quit [Quit: tfitts_]
marcdel has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
jgt4 has quit [Ping timeout: 252 seconds]
Jonah11_ has joined #ruby
kies^ has joined #ruby
aswen has joined #ruby
quinguu has joined #ruby
quinguu has left #ruby [#ruby]
northfurr has joined #ruby
intrigueD has quit [Quit: Leaving...]
AustinMatherne has quit [Remote host closed the connection]
amclain has joined #ruby
AustinMatherne has joined #ruby
selfadhesivefilm has joined #ruby
centrx has joined #ruby
pdoherty has quit [Ping timeout: 245 seconds]
arlek has joined #ruby
tfitts_ has joined #ruby
curious2020 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
selfadhesivefilm has quit [Ping timeout: 240 seconds]
dfockler has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
djbkd has joined #ruby
arlek has quit [Ping timeout: 256 seconds]
sandstrom has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.4]
ElFerna has joined #ruby
marcdel has quit [Quit: Textual IRC Client: www.textualapp.com]
Coldblackice has joined #ruby
DaniG2k has joined #ruby
dlitvak has joined #ruby
solars has quit [Ping timeout: 272 seconds]
skade has joined #ruby
ElFerna has quit [Ping timeout: 256 seconds]
mhoungbo has quit [Ping timeout: 252 seconds]
ctp__ has joined #ruby
chouhoulis has joined #ruby
BaroMeter has quit [Quit: Leaving]
last_staff has quit [Quit: last_staff]
Limix has quit [Quit: Limix]
hyperbolist has left #ruby ["WeeChat 1.4"]
tfitts_ has quit [Quit: tfitts_]
rbennacer has joined #ruby
<rbennacer> Hey guys, how can i use the fetch method to fetch the value in a 2 dimension array and return nil if the indexes are outbound
<rbennacer> ?
william3 has joined #ruby
tfitts_ has joined #ruby
<shevy> the fetch method?
Aviio has joined #ruby
graphettion has joined #ruby
marcdel has joined #ruby
intrigueD has joined #ruby
Limix has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
sandstrom has quit [Quit: My computer has gone to sleep.]
ledestin has quit [Ping timeout: 250 seconds]
Deck` has joined #ruby
Spami has joined #ruby
mhoungbo has joined #ruby
marcdel_ has joined #ruby
<shevy> oh yeah you need to find the particular array first
procyon_ember has left #ruby ["rcirc on GNU Emacs 24.5.1"]
<shevy> array = [[1,2,3],[4,5,6]]; array[0].fetch 2# => 3
Azulinho has quit [Ping timeout: 276 seconds]
<rbennacer> mmm this will throw an index error if i do array[99].fetch 2
sandstrom has joined #ruby
<shevy> yeah you must not access outside your array
<Papierkorb> >> array = [[1,2,3],[4,5,6]]; p array.dig 0, 1 # shevy, rbennacer
<ruby[bot]> Papierkorb: # => 2 ...check link for more (https://eval.in/514214)
<Papierkorb> rbennacer: That requires Ruby 2.3 to work
<shevy> but he wanted the fetch method :(
Zai00 has joined #ruby
krzkrz has quit [Ping timeout: 248 seconds]
<rbennacer> i think dig will do whatever i want
<rbennacer> thank you guys
marcdel has quit [Ping timeout: 276 seconds]
Deck` has quit [Ping timeout: 240 seconds]
edulix has quit [Ping timeout: 240 seconds]
tfitts_ has quit [Quit: tfitts_]
davedev24 has quit [Remote host closed the connection]
greenhat_ has quit [Quit: ZNC - http://znc.in]
greenhat_ has joined #ruby
tfitts_ has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
tfitts_ has quit [Client Quit]
Jonah11_ has quit [Remote host closed the connection]
r0bby_ has quit [Excess Flood]
Jonah11_ has joined #ruby
pdoherty has joined #ruby
fourq|away is now known as fourq
elifoster has joined #ruby
northfurr has quit [Quit: northfurr]
fourq is now known as fourq|away
zacstewart has joined #ruby
kies^ has quit [Quit: baaaaiiiiiiiiiii~]
tfitts_ has joined #ruby
robbyoconnor has joined #ruby
duckpuppy has joined #ruby
matp has quit [Ping timeout: 276 seconds]
kies^ has joined #ruby
matp has joined #ruby
fourq|away is now known as fourq
fourq is now known as fourq|away
bonhoeffer has joined #ruby
bonhoeffer has quit [Client Quit]
kirun_ has joined #ruby
FooMunki has quit [Quit: FooMunki]
sandstrom has quit [Quit: My computer has gone to sleep.]
LoneHermit has quit [Remote host closed the connection]
Xeago has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
kirun has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
fourq|away is now known as fourq
mhoungbo has quit [Ping timeout: 240 seconds]
fourq is now known as fourq|away
DonOtreply has quit [Quit: DonOtreply]
edulix has joined #ruby
sftrabbit has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 240 seconds]
Jonah11_ has quit [Remote host closed the connection]
riceandbeans has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
dudedudeman has quit [Quit: dudedudeman]
hxegon has quit [Ping timeout: 240 seconds]
arashb has joined #ruby
binaryplease has quit [Quit: WeeChat 1.4]
binaryplease has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
zacstewart has quit [Remote host closed the connection]
tfitts_ has quit [Quit: tfitts_]
arashb has quit [Ping timeout: 252 seconds]
SOLDIERz has joined #ruby
Burgestrand has joined #ruby
sankaber has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
DaniG2k has quit [Quit: leaving]
robbyoconnor has joined #ruby
sandstrom has joined #ruby
selfadhesivefilm has joined #ruby
LoneHerm_ has joined #ruby
arashb has joined #ruby
ramfjord has joined #ruby
bonhoeffer has joined #ruby
symm-_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 245 seconds]
sgambino has joined #ruby
Jonah11_ has joined #ruby
sgambino has quit [Client Quit]
selfadhesivefilm has quit [Ping timeout: 250 seconds]
SOLDIERz has quit [Read error: Connection reset by peer]
symm-_ has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
PedramT has joined #ruby
FooMunki has joined #ruby
tfitts_ has joined #ruby
M-shine has quit [Remote host closed the connection]
M-Kodo has quit [Remote host closed the connection]
coderMe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
Azulinho has joined #ruby
coderMe has joined #ruby
sandstrom has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
xlegoman has joined #ruby
symm-_ has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
FiredBall-0x71 has joined #ruby
aswen has quit [Quit: WeeChat 1.4]
platzhirsch has quit [Ping timeout: 250 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
symm-_ is now known as symm-
mostlybadfly has quit [Quit: Connection closed for inactivity]
kies^ has quit [Remote host closed the connection]
* FiredBall-0x71 http://www.pearltrees.com/pvpeliter/laptop-disini-bought-governor/id15409744#item167481741, , xWindow 10 ENTERPRISE , FREE CLASSIFIED OS FROM THE MOST HIGH HAS BEEN RELEASED , CLICK ON THE LINK THAT POP UP AND CLICK DOWNLOAD ... . DON'T FORGET TO JOIN ##Astara ... .
kies^ has joined #ruby
aryaching has quit []
Deck` has joined #ruby
<Coraline> !qkick FiredBall-0x71 Spam
FiredBall-0x71 was kicked from #ruby by ruby[bot] [Spam]
intrigueD has quit [Remote host closed the connection]
ruby-lang142 has joined #ruby
<ruby-lang142> Hi
baweaver has joined #ruby
<ruby-lang142> Would a rails dev be kind enough to answer my question on stackoverflow ?
codecop has joined #ruby
Deck` has quit [Ping timeout: 272 seconds]
djbkd has quit [Quit: Leaving...]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tfitts_ has quit [Quit: tfitts_]
baweaver has quit [Ping timeout: 240 seconds]
Zerh has joined #ruby
Zerh has left #ruby [#ruby]
sandstrom has quit [Quit: My computer has gone to sleep.]
mhoungbo has joined #ruby
davedev24 has joined #ruby
mhoungbo has quit [Remote host closed the connection]
fourq|away is now known as fourq
sandstrom has joined #ruby
fourq is now known as fourq|away
rindolf has joined #ruby
<rindolf> Hi all.
akem has joined #ruby
ruby-lang142 has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
dh64 has joined #ruby
<shevy> yo gandalf
konsolebox has quit [Quit: Leaving]
fourq|away is now known as fourq
fourq is now known as fourq|away
duffman728 has quit [Quit: WeeChat 1.0.1]
fourq|away is now known as fourq
fourq is now known as fourq|away
oetjenj has quit [Ping timeout: 240 seconds]
doublemalt_ has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
<rindolf> shevy: THIS. MEANS . WAR!!!
<shevy> lol
<rindolf> shevy: you've misspelled my name so now you'll have to suffer the consequences.
DoubleMalt has quit [Ping timeout: 252 seconds]
oetjenj has joined #ruby
Rickmasta has joined #ruby
roshanavand has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
karapetyan has joined #ruby
yqt has joined #ruby
sandstrom has joined #ruby
crime has joined #ruby
zacstewart has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
chouhoulis has quit []
bonhoeffer has quit [Quit: bonhoeffer]
dionysus69 has quit [Ping timeout: 264 seconds]
LoneHerm_ has quit [Remote host closed the connection]
selfadhesivefilm has joined #ruby
curious2020 has joined #ruby
ferr has joined #ruby
adgtl has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
chouhoulis has joined #ruby
x77686d has joined #ruby
davedev24 has quit [Remote host closed the connection]
selfadhesivefilm has quit [Ping timeout: 248 seconds]
Spami has quit [Quit: This computer has gone to sleep]
roshanavand has joined #ruby
RegulationD has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
curious2020 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sandstrom has joined #ruby
tfitts_ has joined #ruby
TDJACR has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
dlitvak has quit [Remote host closed the connection]
Contigi has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ramfjord has quit [Quit: Lost terminal]
Rickmasta has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
ElFerna has joined #ruby
squarer01t has quit [Remote host closed the connection]
ElFerna has quit [Read error: Connection reset by peer]
ElFerna has joined #ruby
davedev24 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cisco has joined #ruby
Heero has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
william3 has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
Heero has joined #ruby
Heero has joined #ruby
Deck` has joined #ruby
ElFerna has quit [Ping timeout: 272 seconds]
crime has quit [Ping timeout: 252 seconds]
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
fourq|away is now known as fourq
sandstrom has joined #ruby
LoneHerm_ has joined #ruby
Limix has quit [Quit: Limix]
Heero has quit [Remote host closed the connection]
Deck` has quit [Ping timeout: 240 seconds]
luckyruby has joined #ruby
Heero has joined #ruby
Heero has joined #ruby
<luckyruby> .
<Ox0dea> 1 runs, 1 assertions, 0 failures, 0 errors, 0 skips
dionysus69 has joined #ruby
<shevy> you testing zero code!
Jonah11_ has quit [Remote host closed the connection]
binaryplease has quit [Quit: WeeChat 1.4]
<luckyruby> I'm using a text to speech api that responds with binary audio data. Is there a way to save this data into an mp3 file using the httprb gem?
binaryplease has joined #ruby
<Ox0dea> luckyruby: Just... write the response to a file?
flughafen_ has quit [Ping timeout: 264 seconds]
<Ox0dea> `File.write 'foo.mp3', response.body` or the like.
Rickmasta has quit [Ping timeout: 264 seconds]
dlitvak has joined #ruby
Rickmasta has joined #ruby
sgambino has joined #ruby
Heero has quit [Remote host closed the connection]
dalek- has joined #ruby
ctp__ has quit [Quit: Connection closed for inactivity]
Jonah11_ has joined #ruby
Channel6 has joined #ruby
mostlybadfly has joined #ruby
william3 has joined #ruby
duckpuppy has joined #ruby
baweaver has joined #ruby
lswart has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
<lswart> hi all, is there a way to isolate my ruby gem environments? I am using rbenv, but when I have different projects using the same ruby version, it seems that the gem dependencies are shared across both projects. Is there a way to separate the installed gems?
<Ox0dea> lswart: Sounds like you want gemsets.
bonhoeffer has joined #ruby
<luckyruby> Ox0dea: Ended up using File.syswrite. Thanks.
<Ox0dea> luckyruby: Sure thing.
ta has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
duckpuppy has quit [Ping timeout: 252 seconds]
sandstrom has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
txdv has joined #ruby
txdv has left #ruby [#ruby]
pdoherty has quit [Ping timeout: 276 seconds]
Heero has joined #ruby
Heero has joined #ruby
bonhoeffer has quit [Read error: Connection reset by peer]
Heero has quit [Client Quit]
bonhoeffer has joined #ruby
IrishGringo has joined #ruby
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
chouhoulis has quit []
YankNYC has quit [Quit: Connection closed for inactivity]
Heero has quit [Remote host closed the connection]
Cohedrin has joined #ruby
Heero has joined #ruby
Heero has joined #ruby
Rickmasta has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
puffo1 has joined #ruby
<puffo1> !ciao
<puffo1> !lista
puffo1 has left #ruby [#ruby]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jokke has quit [Quit: WeeChat 1.4]
sandstrom has quit [Quit: My computer has gone to sleep.]
Heero has quit [Remote host closed the connection]
Heero has joined #ruby
Heero has joined #ruby
sandstrom has joined #ruby
selfadhesivefilm has joined #ruby
intrigueD has joined #ruby
edulix has quit [Ping timeout: 264 seconds]
DynamicMetaFlow has joined #ruby
selfadhesivefilm has quit [Ping timeout: 245 seconds]
DynamicMetaFlow has quit [Client Quit]
jokke has joined #ruby
mgorbach has quit [Quit: ZNC - http://znc.in]
elifoster has quit [Ping timeout: 240 seconds]
DynamicMetaFlow has joined #ruby
mgorbach has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ur5us has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
DynamicMetaFlow has joined #ruby
mgorbach has quit [Client Quit]
mgorbach has joined #ruby
FernandoBasso has quit [Quit: Leaving]
ponga has quit [Quit: Connection closed for inactivity]
xlegoman has quit [Quit: xlegoman]
scripore has joined #ruby
arlek has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
edulix has joined #ruby
sandstrom has joined #ruby
chouhoulis has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Ping timeout: 276 seconds]
jxpx777 has joined #ruby
Rickmasta has joined #ruby
davedev24 has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
enkristoffer has left #ruby ["❤"]
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
DonOtreply has joined #ruby
duderonomy has joined #ruby
zacstewa_ has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
Deck` has joined #ruby
lurch_ has joined #ruby
lurch_ has quit [Client Quit]
Deck` has quit [Ping timeout: 248 seconds]
elifoster has joined #ruby
djbkd has quit [Quit: Leaving...]
sandstrom has quit [Quit: My computer has gone to sleep.]
LoneHerm_ has quit [Remote host closed the connection]
davedev24 has joined #ruby
PedramT has quit []
sandstrom has joined #ruby
<shevy> so what is today on our list of awesome code to write
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
<Papierkorb> shevy: A x86 code emulator capable of running basic MS-DOS stuff
<shevy> wow
<shevy> does not dosbox do that already though?
yfeldblum has joined #ruby
<Papierkorb> I'd actually still give it a shot, sounds interesting none the less
<Ox0dea> shevy: The existence of Bash didn't stop you writing diamond_shell. ;)
<Ox0dea> Papierkorb: Inspired by the Museum of Malware, then?
<Ox0dea> *Malware Museum
Gnut has joined #ruby
<Papierkorb> Ox0dea: Nah, by that 8086 byte long x86 emulator for a IOCCC some years ago
<Ox0dea> Mikko Hypponen is a pretty cool guy.
Heero has quit [Remote host closed the connection]
<Papierkorb> or it was 4043 Bytes - Don't remember. Was pretty impressive for that
<shevy> Ox0dea yeah, bash would make ruby a second class citizen, I want to have ruby everywhere!
<Ox0dea> shevy: A noble pursuit, to be sure. I imagine Papierkorb is writing his emulator in Ruby. :)
Heero has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
trajing has joined #ruby
<shevy> well his project sounds 10000x more advanced
<Papierkorb> Ox0dea: I would to learn how to handle binary data and everything in Ruby.
jackjackdripper has quit [Quit: Leaving.]
<Ox0dea> Papierkorb: I briefly considered writing a Chicken compiler. http://torso.me/chicken
<Papierkorb> shevy: Well right now I'm reading the HBCI documentation, German protocol for online home-banking.
ElFerna has joined #ruby
platzhirsch has joined #ruby
<shevy> that reminds me... I need to look into packing and unpacking arrays again
<Ox0dea> You don't unpack arrays.
fedexo has quit [Ping timeout: 240 seconds]
<Papierkorb> Actually I think if I'd write the x86 stuff I'd use Crystal to learn it more. And then check how the KVM API works so I can see my host system crashing to my tinkering.
<Ox0dea> Writing a GRUB-bootable "OS" is actually pretty straightforward; it's everything after that's hard. :P
dionysus69 has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Ping timeout: 264 seconds]
Heero has quit [Remote host closed the connection]
<Papierkorb> Ox0dea: I did manage to get as far as implementin an ELF loader to load/run a program into Ring3 from a EXT2 FS - Does that count?
Rickmasta has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
ElFerna has quit [Ping timeout: 256 seconds]
einarj_ has joined #ruby
Rickmasta has joined #ruby
MindfulMonk has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<Ox0dea> Papierkorb: I can't say why doing it from ext2 would've been prohibitively difficult, but it sounds like a good time.
ElFerna has joined #ruby
platzhirsch has quit [Ping timeout: 245 seconds]
sandstrom has joined #ruby
codecop has quit [Remote host closed the connection]
mhoungbo has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
Rickmasta has quit [Ping timeout: 250 seconds]
akem has quit [Quit: Bye]
JohnBat26 has quit [Ping timeout: 250 seconds]
ElFerna has quit [Ping timeout: 248 seconds]
tfitts_ has quit [Quit: tfitts_]
Rickmasta has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
northfurr has joined #ruby
mickey_mouse_3 has quit [Quit: Leaving]
timanema has joined #ruby
Renich has joined #ruby
mickey_mouse has joined #ruby
Renich has quit [Client Quit]
selfadhesivefilm has joined #ruby
jbrhbr has joined #ruby
jbrhbr has quit [Client Quit]
kies^ has quit [Quit: baaaaiiiiiiiiiii~]
baweaver has quit [Remote host closed the connection]
kies^ has joined #ruby
skade has joined #ruby
ur5us has joined #ruby
selfadhesivefilm has quit [Ping timeout: 264 seconds]
skade has quit [Client Quit]
sandstrom has quit [Quit: My computer has gone to sleep.]
zacstewa_ has quit [Ping timeout: 250 seconds]
skade has joined #ruby
sandstrom has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
davedev24 has quit [Remote host closed the connection]
skade has quit [Client Quit]
moeabdol has joined #ruby
kies^ has quit [Read error: Connection reset by peer]
kies^ has joined #ruby
skade has joined #ruby
Rickmasta has joined #ruby
kies^ has quit [Read error: Connection reset by peer]
Spami has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
ferr has quit [Ping timeout: 240 seconds]
Spami has quit [Client Quit]
arooni_______ has joined #ruby
jackjackdripper has joined #ruby
zenlot1 has joined #ruby
northfurr has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
jbrhbr has joined #ruby
sgambino has joined #ruby
zenlot has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
sneakerhax has quit [Ping timeout: 252 seconds]
arashb has quit [Ping timeout: 245 seconds]
average has joined #ruby
<average> is there some place somewhere that talks about the atomicity of msgsnd and msgget ?
RegulationD has joined #ruby
kies^ has joined #ruby
darkf has quit [Quit: Leaving]
<Ox0dea> average: #linux, #workingset, and maybe even ##c, if you're feeling bold.
sandstrom has quit [Quit: My computer has gone to sleep.]
skade has quit [Quit: Computer has gone to sleep.]
kies^ has quit [Read error: Connection reset by peer]
<average> Ox0dea: asked in #c , nobody answered
pandaant has joined #ruby
rindolf has quit [Quit: Leaving]
the_drow has quit [Quit: This computer has gone to sleep]
kirun_ has quit [Quit: Client exiting]
Jonah11_ has quit [Remote host closed the connection]
sandstrom has joined #ruby
Deck` has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
rkoller has joined #ruby
Deck` has quit [Ping timeout: 276 seconds]
skade has joined #ruby
pawnbox has quit [Remote host closed the connection]
<shevy> not even they know
kies^ has joined #ruby
Jonah11_ has joined #ruby
<kaleido> its the unsolved mystery of programming :(
vikas027 has joined #ruby
Limix has joined #ruby
zacstewart has joined #ruby
skade has quit [Client Quit]
wethu has joined #ruby
wethu has quit [Changing host]
wethu has joined #ruby
<average> actually some annoying guy commented in a weird way
duckpuppy has joined #ruby
<average> twkm commented on it, and was completely information-free
<average> i'm off
average has left #ruby [#ruby]
skade has joined #ruby
ixti has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
pawnbox has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
zacstewart has quit [Ping timeout: 256 seconds]
sandstrom has joined #ruby
Burgestrand has joined #ruby
pdoherty has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
Rickmasta has quit [Ping timeout: 250 seconds]
einarj_ has quit [Remote host closed the connection]
kies^ has quit [Quit: baaaaiiiiiiiiiii~]
Rickmasta has joined #ruby
kies^ has joined #ruby
<Ox0dea> ##c is the brood of vipers in Matthew 12:34.
pdoherty has quit [Ping timeout: 276 seconds]
<Papierkorb> and thou shall not visit ##c without RTFM'ing you nub Genesis 13:37
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
georgios has joined #ruby
DynamicMetaFlow has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
DynamicMetaFlow has joined #ruby
<georgios> Hey, anyone familiar with Sinatra? I was wondering how the `params` hash gets introduced into the local block scope of the route handler
<georgios> e.g. `get '/hello/:name' do puts params['name'] end`
wjimenez5271 has quit [Ping timeout: 272 seconds]
<lswart> Hi all, I am using rbenv, and trying to use the rbenv-gemset plugin, but I don't know how to create a `.rbenv-gemset` file. Is it the same as a Gemfile? Perhaps someone can show me an example `.rbenv-gemset`? The documentation is a little confusing: https://github.com/jf/rbenv-gemset
sandstrom has quit [Quit: My computer has gone to sleep.]
<Ox0dea> georgios: Here's a fun experiment: debug-print the value of `method(:params).owner` in your handler.
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> And then remember this trick for the rest of your Ruby days.
DynamicMetaFlow has quit [Client Quit]
poguez_ has joined #ruby
sandstrom has joined #ruby
wjimenez5271 has joined #ruby
Renich has joined #ruby
<georgios> Ox0dea: I'm sorry, I'm quite new to ruby, switching from python, what exactly does `method(:params)` do?
<intrigueD> Is it Rack::Utils perchance?
<intrigueD> just a guess
<Ox0dea> It's Sinatra::Base.
<Ox0dea> georgios: The #method method takes a method name and returns a Method object representing that method.
<Ox0dea> Instances of Method can tell you whence they came by way of their #owner method.
<Ox0dea> It's all very straightforward. :P
selfadhesivefilm has joined #ruby
bkxd has joined #ruby
<georgios> So `params` is basically a method?
<georgios> owned by Sinatra::Base?
tfitts_ has joined #ruby
kies^ has quit [Quit: baaaaiiiiiiiiiii~]
baweaver has joined #ruby
<Ox0dea> georgios: Well, it's technically an attribute; #attr_reader just wraps a getter method around one or more instance variables.
mondok has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
<georgios> Ox0dea: Hmm, I'm still not sure how it got inside the block, since it doesn't take any arguments
quaristice has joined #ruby
william3 has quit [Remote host closed the connection]
_Tariq has joined #ruby
selfadhesivefilm has quit [Ping timeout: 245 seconds]
<Ox0dea> georgios: Try `get('/') { p self.class.ancestors }` to get a sense of what's going on.
william3 has joined #ruby
LoneHermit has quit [Remote host closed the connection]
<Ox0dea> Your handler is just a method call on an instance of Sinatra::Application, which includes Sinatra::Base, which has an instance variable named @params, which is made available with a getter provided by #attr_reader.
rmrrn has joined #ruby
rmrrn has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
cisco has quit [Quit: Leaving.]
kies^ has joined #ruby
davedev24 has joined #ruby
bonhoeffer has quit [Ping timeout: 252 seconds]
northfurr has quit [Quit: northfurr]
Xeago has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
Rickmasta has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
william3 has quit [Ping timeout: 245 seconds]
<georgios> Whaaaahh help, I'm not used to that crazy stuff coming from Python :D I'm not sure why the `params`-attribute is accessible from my block, do blocks capture the scope in which they are executed?
dlitvak has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
toretore has joined #ruby
Rickmasta has joined #ruby
<Papierkorb> georgios: Yes, they also usually inherit the 'self' reference
<Ox0dea> georgios: This should help: https://eval.in/514233
<Ox0dea> #instance_eval lets you execute a block "as" some other object, so to speak.
davedev24 has quit [Ping timeout: 260 seconds]
|ifei5g00d has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
kies^ has quit [Quit: baaaaiiiiiiiiiii~]
kies^ has joined #ruby
<georgios> Ah, so running a block via obj#instance_eval executes the block in the context of the obj
<Ox0dea> Just so.
northfurr has joined #ruby
shellie_ has joined #ruby
sandstrom has joined #ruby
<georgios> Wow, didn't know that... Thank you guys for your patience :)
rmrrn has quit [Quit: ZNC - http://znc.in]
<Ox0dea> Happy to help. :)
Rickmasta has quit [Ping timeout: 276 seconds]
despai has joined #ruby
rmrrn has joined #ruby
rmrrn has quit [Changing host]
rmrrn has joined #ruby
Rickmasta has joined #ruby
<georgios> Is this "legit", i.e. are you encouraged to do things like this? To me, it feels more like a 'hack' to be honest...
dlitvak has joined #ruby
<Ox0dea> Might not be the language for you. :/
Rickmasta has quit [Max SendQ exceeded]
<Ox0dea> Sinatra is a quintessential example of the purported goodness of DSLs.
DynamicMetaFlow has joined #ruby
dlitvak has quit [Remote host closed the connection]
spider-mario has joined #ruby
Rickmasta has joined #ruby
BTRE has quit [Quit: Leaving]
DynamicMetaFlow has left #ruby [#ruby]
<Ox0dea> Even then, it's pretty bog-standard object-orientation past the syntactically sugary surface layer.
DynamicMetaFlow has joined #ruby
<Ox0dea> Were you perhaps not exposed to much OO in your experience with Python?
<georgios> Not saying I strictly don't like it, but coming from languages where stuff like this is not possible or not considered good style, I was quite surprised to see something like this ^^
dlitvak has joined #ruby
BTRE has joined #ruby
rmrrn has quit [Client Quit]
<georgios> I dealt with some OO in Python, but I had the feeling that it wasn't considered good practice to "mess with" classes/objects too much
<Ox0dea> Weird.
<Ox0dea> Then again, both languages let you have it either way.
<Papierkorb> georgios: It's not only common, but more often than not even encouraged to use metaprogramming in Ruby.
Jonah11_ has quit [Remote host closed the connection]
DynamicMetaFlow has left #ruby [#ruby]
tfitts_ has quit [Quit: tfitts_]
bkxd has quit [Ping timeout: 245 seconds]
jbrhbr has quit [Quit: Leaving.]
ziyadb has quit [Quit: Connection closed for inactivity]
<georgios> I always thought
Deck` has joined #ruby
<Papierkorb> georgios: Even built-in gems like 'json' add a 'to_json' method to every object in the environment. Because .. it's convenient being able to write whatever.to_json
<georgios> too much of metaprogramming made code difficult to read/reason about
jxpx777 has quit [Quit: Leaving...]
tfitts_ has joined #ruby
<georgios> Papierkorb: Yeah, I absolutely do agree that it's really convenient, it's more like a cultural shock for me seeing metaprogramming all over the place
<Papierkorb> georgios: it's actually really about making code readable in the sense of being plainly readable. when you see "something.to_json", even if you have never seen 'to_json' before, you know what's going to happen. Compare it to "JSON.dump something" - do you instantly know what dump does?
Rickmasta has quit [Ping timeout: 245 seconds]
<apeiros> adding to_json to all objects isn't really meta-programming
rmrrn has joined #ruby
rmrrn has quit [Changing host]
rmrrn has joined #ruby
<Papierkorb> apeiros: Correct, but it adds to the 'culture shock' he's having I guess
DynamicMetaFlow has joined #ruby
<apeiros> quite likely, yeah
<apeiros> open classes aren't too common
<georgios> Papierkorb: On the other hand, not being sure where all the to_json's come from is rather irritating (at least for me, I like to fully understand what's going on)
rmrrn has quit [Client Quit]
<Ox0dea> georgios: But you can just say `foo.method(:to_json).source_location` and be on your way.
rmrrn has joined #ruby
rmrrn has quit [Changing host]
rmrrn has joined #ruby
<Ox0dea> In the final analysis, Ruby gives you really sharp scissors and tells you to run.
<Papierkorb> georgios: That is until you know your tools. Pry can instantly tell you where the code comes from, the source itself, show its documentation or (iirc) open your text editor at the specific line(s) directly.
<apeiros> I wish Method#source_location would finally work for native code too :-|
<georgios> Ox0dea: Yeah, I think that captures the spirit really well ;P
dlitvak has quit [Remote host closed the connection]
Rickmasta has joined #ruby
<Ox0dea> georgios: It's a language that holds your hand in a very different way. "You wanna do what?! Well, here's a method for that."
n00bdev has joined #ruby
Deck` has quit [Ping timeout: 264 seconds]
<Ox0dea> Someone once put it this way: "Ruby is a language for consenting adults."
sandstrom has quit [Quit: My computer has gone to sleep.]
CloCkWeRX has joined #ruby