jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 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/
jottr_ has quit [Ping timeout: 272 seconds]
peeja has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hxegon> what's the best / simplest way to encode http params? I'm having issues with URI.encode_www_form because my data is nested hashes :(
z3uS has quit [Quit: /dev/null]
z3uS has joined #ruby
dr3w has quit [Ping timeout: 240 seconds]
<darix> hxegon: maybe flatten it before?
<hxegon> darix can't flatten it. It needs to be nested hashes
<darix> or if you dont need to put it into a query string but can use post/put ... json/yaml
solocshaw has joined #ruby
nateberkopec has joined #ruby
bubbys has quit [Ping timeout: 265 seconds]
nocd has quit [Ping timeout: 250 seconds]
<hxegon> darix good idea. I'll look into that
dopie has joined #ruby
<jbrhbr> yea that would be awkward in a query string, much better as a body
karapetyan has quit [Remote host closed the connection]
aibot has quit [Ping timeout: 265 seconds]
freerobby has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 272 seconds]
cassioscabral has joined #ruby
ur5us has joined #ruby
ElFerna has joined #ruby
dr3w has joined #ruby
djbkd has quit [Remote host closed the connection]
mary5030 has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
djbkd has joined #ruby
bubbys has joined #ruby
aibot has joined #ruby
dr3w has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 245 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
skcin7 has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
houhoulis has quit [Remote host closed the connection]
wildlander has quit [Quit: Saliendo]
skcin7 has quit [Max SendQ exceeded]
DLSteve has joined #ruby
boorad420 has quit [Ping timeout: 252 seconds]
jcdesimp has joined #ruby
RegulationD has quit [Remote host closed the connection]
Yzguy has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
eytanfb has joined #ruby
jcdesimp has quit [Ping timeout: 272 seconds]
ohaibbq has joined #ruby
skcin7 has joined #ruby
ElFerna has quit [Ping timeout: 250 seconds]
domgetter has joined #ruby
ElFerna has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
skcin7 has quit [Max SendQ exceeded]
fullofcaffeine has quit [Remote host closed the connection]
djbkd has joined #ruby
Vitor has quit [Ping timeout: 255 seconds]
ysz has quit [Quit: This computer has gone to sleep]
shazaum__ has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
devbug has quit [Ping timeout: 260 seconds]
shazaum_ has quit [Read error: Connection reset by peer]
shazaum__ has quit [Client Quit]
grassdog_ has joined #ruby
<jbrhbr> do you guys have issues when pressing ctrl+Z from within pry?
skcin7 has joined #ruby
duckpuppy has joined #ruby
<jbrhbr> actually that doesn't seem to cause the problem 100% of the time. whatever it is, my repl get pretty trashed on a regular basis
Ox0dea has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
gambl0re has joined #ruby
<jbrhbr> ah it's not raw pry, it's 'rails c'. off topic i guess
duckpuppy has quit [Ping timeout: 245 seconds]
h99h9h88 has joined #ruby
Danishman has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
ElFerna has quit [Ping timeout: 265 seconds]
tricon_ has quit [Quit: Leaving...]
akem has joined #ruby
gizless has joined #ruby
dr3w has joined #ruby
ElFerna has joined #ruby
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 264 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
h99h9h88 has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
houhoulis has joined #ruby
gizless has quit [Ping timeout: 272 seconds]
gizmore has joined #ruby
gizless has joined #ruby
dr3w has quit [Ping timeout: 264 seconds]
ta has joined #ruby
Dimik has joined #ruby
cajone is now known as cajone_afk
ico_ has quit [Remote host closed the connection]
gizmore|2 has quit [Ping timeout: 240 seconds]
ico has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
allcentury has joined #ruby
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
gizless has quit [Ping timeout: 240 seconds]
maletor_ has joined #ruby
pwnd_nsfw has joined #ruby
gizmore has joined #ruby
ta has quit [Ping timeout: 240 seconds]
ico has quit [Ping timeout: 246 seconds]
certainty has joined #ruby
gizless has joined #ruby
hxegon has quit [Ping timeout: 255 seconds]
benlieb has quit [Quit: benlieb]
gizmore|2 has quit [Ping timeout: 264 seconds]
maletor has quit [Ping timeout: 260 seconds]
gizmore|2 has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
Spami has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
gizmore has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
fly5566 has joined #ruby
colegatron has quit [Ping timeout: 250 seconds]
gizmore|3 has joined #ruby
gizless has quit [Ping timeout: 265 seconds]
dlitvak has quit [Remote host closed the connection]
gizless has joined #ruby
dlitvak has joined #ruby
radgeRayden has joined #ruby
gizmore|2 has quit [Ping timeout: 256 seconds]
gizmore|2 has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
gizmore has quit [Ping timeout: 245 seconds]
sneakerhax has quit [Quit: Leaving]
gizmore|3 has quit [Ping timeout: 272 seconds]
Spami_ has joined #ruby
gizless has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Quit: Leaving...]
gizmore|2 has quit [Ping timeout: 265 seconds]
Spami has quit [Ping timeout: 265 seconds]
paradisaeidae has joined #ruby
yqt has joined #ruby
Fezzler has joined #ruby
nkwsy has quit [Ping timeout: 260 seconds]
devbug has joined #ruby
threh has joined #ruby
Spami_ has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
h99h9h88 has joined #ruby
dr3w has joined #ruby
run_kmc has joined #ruby
colegatron has joined #ruby
run_kmc has quit [Client Quit]
katxic has joined #ruby
karapetyan has joined #ruby
dr3w has quit [Ping timeout: 272 seconds]
lessless has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
Fezzler has quit [Quit: Leaving]
scottschecter has joined #ruby
eytanfb has quit []
ElFerna has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
maletor_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<katxic> q
katxic has left #ruby [#ruby]
ohaibbq has quit [Remote host closed the connection]
rgtk has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
ohaibbq has joined #ruby
mistermocha has joined #ruby
run_kmc has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
run_kmc has quit [Client Quit]
whippythellama has quit [Quit: WeeChat 1.3]
certainty has quit [Ping timeout: 245 seconds]
podman has quit [Quit: Connection closed for inactivity]
devoldmx_ has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 265 seconds]
duckpuppy has joined #ruby
allcentury has quit [Quit: WeeChat 1.2]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper1 has joined #ruby
mistermocha has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
jackjackdripper has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
bkxd has joined #ruby
marr has quit [Ping timeout: 265 seconds]
atomical has quit [Max SendQ exceeded]
dorei has quit []
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
ruu_ has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 246 seconds]
pontiki_ has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
pontiki has joined #ruby
jmcc_____ has quit [Ping timeout: 240 seconds]
mjc_ has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
Trynemjoel has joined #ruby
cbednarski has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
Zamerick_ has quit [Ping timeout: 256 seconds]
mistermocha has joined #ruby
scottschecter has quit [Quit: Leaving]
dlitvak_ has quit [Ping timeout: 276 seconds]
amclain has quit [Quit: Leaving]
RegulationD has joined #ruby
pontiki has quit [Quit: meh]
cbednarski has joined #ruby
jmcc_____ has joined #ruby
mjc_ has joined #ruby
benlieb has joined #ruby
ta has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kirun has quit [Quit: Client exiting]
ElFerna has quit [Ping timeout: 255 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
cassioscabral has quit [Quit: cassioscabral]
Trynemjoel has joined #ruby
jcdesimp has joined #ruby
ElFerna has joined #ruby
benlieb has quit [Quit: benlieb]
ta has quit [Ping timeout: 255 seconds]
dextertzu has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
jcdesimp has quit [Ping timeout: 276 seconds]
mistermocha has quit [Remote host closed the connection]
cassioscabral has joined #ruby
drys has quit [Remote host closed the connection]
shibly has joined #ruby
<shibly> What's the command to list system wise gems?
B1n4r10 has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
psy_ has quit [Ping timeout: 240 seconds]
<bithon> gem list ?
<havenwood> shibly: sudo gem list
arescorpio has joined #ruby
devoldmx has joined #ruby
shibly has left #ruby [#ruby]
devoldmx_ has quit [Ping timeout: 246 seconds]
krobzaur has joined #ruby
Trynemjoel has joined #ruby
Encapsulate has quit [Ping timeout: 276 seconds]
FooMunki has quit [Quit: FooMunki]
Harazzy has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
symm- has quit [Quit: Leaving...]
chouhoulis has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 245 seconds]
Bloomer has joined #ruby
B1n4r10 has joined #ruby
charliesome has joined #ruby
certainty has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
Contigi has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
ramfjord has joined #ruby
nateberkopec has joined #ruby
pl1ght has quit [Ping timeout: 245 seconds]
duckpuppy has joined #ruby
ledestin has joined #ruby
knite has joined #ruby
threh has quit [Ping timeout: 240 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 240 seconds]
crunk_bear has joined #ruby
ElFerna has joined #ruby
bkxd has joined #ruby
thejamespinto has joined #ruby
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TomyLobo has quit [Ping timeout: 255 seconds]
houhoulis has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
sneakerhax has joined #ruby
tubulife- has joined #ruby
consti has quit [Quit: Textual IRC Client: www.textualapp.com]
knite has quit [Ping timeout: 252 seconds]
jmonreal has quit [Ping timeout: 246 seconds]
wolffles has joined #ruby
B1n4r10 has quit [Ping timeout: 264 seconds]
inferno5677 has quit [Quit: Konversation terminated!]
Spami has quit [Quit: This computer has gone to sleep]
pl1ght has joined #ruby
ascarter has joined #ruby
davedev24 has quit []
dlitvak_ has joined #ruby
shadeslayer_ is now known as shadeslayer
paul___ has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
dylanjhoulihan has joined #ruby
ta has joined #ruby
dylanjhoulihan has quit [Max SendQ exceeded]
certainty has quit [Ping timeout: 245 seconds]
n0vo has quit [Ping timeout: 255 seconds]
dylanjhoulihan has joined #ruby
Jardayn has quit [Quit: Leaving]
houhoulis has joined #ruby
Yzguy has quit [Quit: Zzz...]
dlitvak has joined #ruby
dlitvak_ has quit [Ping timeout: 250 seconds]
jbrhbr has quit [Quit: Leaving.]
atomical has quit [Max SendQ exceeded]
ta has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adingman> Google isn't helping with this because "+" means something to Google, but I'm sure it's simple.
<adingman> I want to override += for a class.
<Ox0dea> adingman: You can't.
<adingman> I can do concat and <<, but not +=
<Ox0dea> `foo += bar` is literally just `foo = foo + bar`, and you can't change Ruby's assignment semantics.
<adingman> It's my own derived class.
<adingman> Oh, so if I override + I'll be OK?
<Ox0dea> Maybe?
DLSteve has joined #ruby
<Ox0dea> `+` and `+=` are hardly the same operation.
<adingman> It works
<Ox0dea> Huzzah!
atomical has joined #ruby
<adingman> And sure they're the same. "a += b" == "a = a + b"
<adingman> At least for anything where I've ever seen +=
<adingman> Perhaps, however, there is a better way and someone in here can save me a lot of tedium.
idefine has joined #ruby
<adingman> I'm subclassing String to define ^
<adingman> and a couple other operations
charliesome has joined #ruby
<shevy> ruby let's you do all crazies
dextertzu has quit [Ping timeout: 276 seconds]
<adingman> The only reason I care about redefining existing operations is that using the ones defined on string returns an object of class string rather than my subclass.
<Ox0dea> adingman: The link addresses that concern.
<adingman> thanks
<Ox0dea> Near the bottom, if you're in a hurry.
<adingman> hurry and learning to do things "right" in this language are warring with each other.
<shevy> just use a hack then
<Ox0dea> Use three hacks for maximum efficaciousness.
ramfjord has quit [Ping timeout: 260 seconds]
ESpiney has joined #ruby
andywojo has quit [Ping timeout: 265 seconds]
domgetter has joined #ruby
dlitvak has quit [Ping timeout: 246 seconds]
n0vo has joined #ruby
n0vo has joined #ruby
dlitvak has joined #ruby
<adingman> I'm utterly befuddled by the "solutions".
annomander has joined #ruby
<Ox0dea> Delegate is pretty "magical", but it's just what you want.
<Ox0dea> Ergo, consider taking the time to figure out what's going on. :P
<adingman> :-)
<Ox0dea> But preferably *not* by using the source, Luke, in this case.
<adingman> If I inherit from SimpleDelegator, where am I telling it what class to delegate to?
<shevy> huh
<shevy> "A concrete implementation of Delegator, this class provides the means to delegate all supported method calls to the object passed into the constructor and even to change the object being delegated to at a later time with #__setobj__."
krz has joined #ruby
<Ox0dea> adingman: The object passed in the call to `super`.
<adingman> shevy, thanks. I was about to search for that, though probably the 2.2 edition.
<Ox0dea> Did you mean 2.3? ^_^
ElFerna has quit [Ping timeout: 240 seconds]
<adingman> $ ruby -v
<adingman> ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
chouhoulis has joined #ruby
<adingman> So, no.
<dopie> Hey all
dlitvak has quit [Ping timeout: 260 seconds]
ElFerna has joined #ruby
<Ox0dea> Hi, dopie.
<shevy> adingman, yeah normally this is a redirect, try without any version at all: like this http://ruby-doc.org/stdlib/libdoc/delegate/rdoc/SimpleDelegator.html
<blub> hi dopie
<Ox0dea> hi blub
<shevy> I just snatched the first google result
<blub> hi ox0dea
dlitvak has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> adingman: Are you writing String#^ for encipherment porpoises?
atomical has quit [Max SendQ exceeded]
symm- has joined #ruby
jcdesimp has joined #ruby
<domgetter> brb, gonna go make a hyperdimensional string
^CrYpto^ has joined #ruby
<^CrYpto^> hey guys
chouhoulis has quit [Ping timeout: 272 seconds]
<Ox0dea> domgetter: That'd be String#**, surely?
<domgetter> k I'll do that instead
<domgetter> either way, this is happening
<Ox0dea> Heh.
cassioscabral has quit [Ping timeout: 260 seconds]
wolffles has quit [Quit: wolffles]
cassioscabral has joined #ruby
<domgetter> Well I can square strings now, but I'd have to make assumptions on presentation after that: https://gist.github.com/domgetter/8fd3f67808d88dec4861
jcdesimp has quit [Ping timeout: 276 seconds]
<domgetter> And it doesn't work well when the string has a newline in it
duckpuppy has joined #ruby
tubulife- has quit [Ping timeout: 265 seconds]
<^CrYpto^> im going to start trying to learn ruby
<^CrYpto^> i really have no idea where to to start
<domgetter> There are a few good resources. Do you know how you learn best? Watching vids? Reading? Doing it yourself?
<Ox0dea> domgetter: Here's my take: https://eval.in/489456
<Ox0dea> I think that's what it should mean to exponentiate a string?
yqt has quit [Ping timeout: 256 seconds]
cassioscabral has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
<^CrYpto^> a combo of all three
<^CrYpto^> a lil adhd going on over here
<^CrYpto^> :\
<Ox0dea> /part #therapy
ohaibbq_ has joined #ruby
bronson has joined #ruby
stephenott has joined #ruby
<stephenott> Anyone know of a web app that allows users to create documents in a noSQL db?
duckpuppy has quit [Ping timeout: 240 seconds]
<domgetter> ^CrYpto^: for a book, check out Programming Ruby. Also known as The Pickaxe Book.
<domgetter> For video, I found the tutorial videos at Lynda.com to be very good. But they charge for watching
jcdesimp has joined #ruby
<domgetter> for doing it, try out rubymonk.com
krobzaur has quit [Ping timeout: 240 seconds]
<domgetter> ^CrYpto^: in the "Gettings Started" section of rubydocs: http://ruby-doc.org/
ohaibbq has quit [Ping timeout: 240 seconds]
<domgetter> you can find links to all kinds of resources, including the aforementioned Programming Ruby book
idefine has quit [Remote host closed the connection]
varunwachaspati has joined #ruby
<domgetter> Oh here's a bunch: http://ruby-doc.org/whyruby/
<domgetter> They have a link to RubyMonk there too
atomical has joined #ruby
wldcordeiro has quit [Ping timeout: 272 seconds]
<domgetter> If you are into asceticism, you can try http://learnrubythehardway.org/
p1k has joined #ruby
<p1k> hello
bronson has quit [Ping timeout: 265 seconds]
<Ox0dea> domgetter: Did you mean masochism?
<Ox0dea> Hi, p1k.
<domgetter> same thing :)
<Ox0dea> I disagree.
<p1k> does anyone have any experience streaming into zlib? according to the documentation you can pass an io object but it doesn't seem to work: http://ruby-doc.org/stdlib-2.1.1/libdoc/zlib/rdoc/Zlib/GzipReader.html
cyfr0n1 is now known as cyfr0n
<Ox0dea> p1k: Post code?
ESpiney has quit [Read error: Connection reset by peer]
<annomander> is the hardway method actually any good? I did it with python a long time ago and it was just a ton of repition
stephenott has quit []
<Ox0dea> It's shit.
<domgetter> annomander: I'm not a fan. but everyone's different. It might appeal to some people
<p1k> Zlib::GzipReader.open(response.body) {|gz| gz} # raises an error
<p1k> where response.body is a StringIO class
<domgetter> p1k GzipReader#open takes a filepath, and you're giving it an IO
<p1k> yeah I just noticed =/
<annomander> also, I've got an object that I'm trying to pass as an argument to a function. that object has an attribute 'attr'. For that function to access 'attr' I absolutely need something like 'attr_reader attr' as part of my class, right?
tectonic has quit []
<p1k> the example at the top of the docs I assumed applied to both, but I guess I didn't look further down
<domgetter> annomander: either that or an explicit method named attr that returns the value of @attr
<domgetter> annomander: and it would be attr_reader :attr
<Ox0dea> annomander: You could also use #instance_variable_get, but you probably shouldn't just yet.
<domgetter> You need the colon before the attribute name
<annomander> thanks
<domgetter> yea don't use #instance_variable_get except for educational reasons
<Ox0dea> ?
<domgetter> oooorrr, you're making some weird new framework and you need to access things in a weird way
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
paul___ has quit [Remote host closed the connection]
nkwsy has joined #ruby
braincra- has quit [Quit: bye bye]
Mia has quit [Ping timeout: 250 seconds]
<adingman> Ox0dea, sortof. Anyone who uses this code to secure data would have to be an idiot.
<Ox0dea> adingman: You're doing character-wise XOR, though, yeah?
<adingman> It's part of a padding oracle demonstration.
<Ox0dea> Right.
wldcordeiro has joined #ruby
<adingman> yes
sankaber has quit [Remote host closed the connection]
Bloomer has quit [Remote host closed the connection]
sankaber has joined #ruby
fly5566 has quit [Remote host closed the connection]
braincrash has joined #ruby
braincrash is now known as braincras
kp666 has joined #ruby
ElFerna has quit [Ping timeout: 272 seconds]
certainty has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
grassdog_ has quit [Quit: Be back later ...]
ascarter has joined #ruby
<adingman> Ox0dea, So, SimpleDelegator is giving me the same problem.
dlitvak has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
<adingman> m = CryptoString("message")
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<adingman> irb(main):125:0> (m + m).class
<adingman> => String
nkwsy has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
<adingman> For the time being, looks like I'll just have to have a bunch of stub methods where I need to have the type come out right :-/
<adingman> def concat(s)
<adingman> CryptoString.new(super(s))
<adingman> end
ta has joined #ruby
howdoi has joined #ruby
<adingman> and similar
grassdog_ has joined #ruby
dionysus69 has joined #ruby
grassdog_ has quit [Client Quit]
solenoids has quit [Ping timeout: 240 seconds]
Bloomer has joined #ruby
dionysus69 has quit [Client Quit]
grassdog_ has joined #ruby
tectonic has joined #ruby
idefine has joined #ruby
Harazzy has quit [Quit: Lost terminal]
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #ruby
andywojo has joined #ruby
grassdog_ has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.3]
^CrYpto^ has quit [Ping timeout: 246 seconds]
idefine has quit [Ping timeout: 256 seconds]
^CrYpto^ has joined #ruby
hxegon has joined #ruby
Dimik has joined #ruby
Bloomer has quit [Remote host closed the connection]
qiukun has joined #ruby
abronca has joined #ruby
andywojo has quit [Ping timeout: 255 seconds]
zast has joined #ruby
^CrYpto^ has quit [Ping timeout: 265 seconds]
ta has quit [Ping timeout: 255 seconds]
solenoids has joined #ruby
solocshaw has quit [Ping timeout: 245 seconds]
dylanjhoulihan has left #ruby ["Textual IRC Client: www.textualapp.com"]
^CrYpto^ has joined #ruby
skcin7 has joined #ruby
chouhoulis has joined #ruby
sorbo_ has joined #ruby
idefine has joined #ruby
codecop has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
sorbo_ has left #ruby [#ruby]
chouhoulis has quit [Ping timeout: 260 seconds]
certainty has quit [Ping timeout: 276 seconds]
yeshacker has joined #ruby
duckpuppy has joined #ruby
idefine has quit [Ping timeout: 265 seconds]
qiukun has quit [Quit: qiukun]
Bloomer has joined #ruby
shinnya has joined #ruby
ramfjord has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> adingman: How do you feel about this madness? https://eval.in/489457
<adingman> Well, that's one way to do it.
<adingman> Interestingly, I seem to have gotten what I want with this:
<Ox0dea> Shame about String#+ not observing coercion. :<
<adingman> class CryptoString < String
<adingman> def initialize(s="",block_size=0)
<adingman> super(s)
<adingman> if s.is_a? CryptoString and block_size == 0
<adingman> block_size = s.bs
<adingman> elsif block_size == 0
<adingman> block_size = 16
<adingman> end
<adingman> self.bs=(block_size)
<adingman> return self
<adingman> end
ramortegui has joined #ruby
<adingman> Got rid of all the places where I had overridden a function and I'm still getting my types preserved across invocations.
duckpuppy has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
<Ox0dea> adingman: https://eval.in/489458
<Ox0dea> Somebody needs some tests. :P
dlitvak has quit [Ping timeout: 240 seconds]
<adingman> Ox0dea, as in I'm missing a case?
<Ox0dea> adingman: CryptoString + CryptoString = String; that's not good?
n0vo has quit [Ping timeout: 264 seconds]
<Ox0dea> That's the example that got us started, no?
devoldmx_ has joined #ruby
<adingman> Fug, it was working before.
treaki__ has joined #ruby
the_nick_me has joined #ruby
<adingman> but I quit irb and re-ran the require and it doesn't now.
<Ox0dea> Use mine.
<Ox0dea> It's just crazy enough to work. ^_^
bkxd has quit [Ping timeout: 245 seconds]
plonk has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 245 seconds]
<adingman> Added back in my override of concat and it works in a fresh process for all the other methods.
<adingman> At least, all the other crypto ones.
ibouvousaime has quit [Ping timeout: 265 seconds]
wolffles has joined #ruby
<adingman> and some others.
<adingman> irb(main):005:0> m[0..5].class
<adingman> => CryptoString
<adingman> For example.
treaki_ has quit [Ping timeout: 272 seconds]
<Ox0dea> adingman: How come this is okay? https://eval.in/489458
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
KennethSteel has joined #ruby
dlitvak has joined #ruby
djbkd_ has joined #ruby
n0vo has joined #ruby
n0vo has joined #ruby
<adingman> concat just seems to cover enough other cases that the type fix propagates all over.
ramortegui has quit [Remote host closed the connection]
djbkd_ has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]
tvw has joined #ruby
<Ox0dea> >> s = 'foo'; s.concat 'bar'; s # adingman
<ruboto> Ox0dea # => "foobar" (https://eval.in/489467)
<Ox0dea> #concat != #+
radgeRayden has quit [Quit: Leaving]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0.1/20151216175450]]
hxegon has quit [Quit: BRB]
<adingman> Ox0dea, Hmm. What's the difference?
<Ox0dea> ...
<Ox0dea> adingman: #concat modifies the receiver in-place.
<adingman> Ahh, OK.
<Ox0dea> Mutation has a way of biting very hard at particularly inopportune moments.
vikas027 has joined #ruby
<adingman> Yup.
qiukun has joined #ruby
<domgetter> Yea, String#<< mutates as well
doni has joined #ruby
abronca has quit [Quit: abronca]
thejamespinto has quit []
Wsewolod has joined #ruby
tubulife- has joined #ruby
bithon has left #ruby ["WeeChat 1.3"]
<Ox0dea> adingman: My metaprogramming one looks pretty crazy, but it's actually pretty straightforward.
<adingman> The only thing really crazy about it for me is that I don't know how to use introspection well in any language, much less this one.
<adingman> The basic idea is clearly sound.
<Ox0dea> adingman: Ruby makes introspection ridiculously easy.
bronson has joined #ruby
<Wsewolod> Is there anything it makes difficult?
<Ox0dea> That's valid Ruby code. Draw what conclusions you will. :P
dextertzu has joined #ruby
<domgetter> That it has a bit of Perl in it? ;)
grassdog_ has joined #ruby
s00pcan has quit [Remote host closed the connection]
<doni> Hello guys, I am new here, I want to know that is there any guide for how to develop ruby-core, what I am doing is adding a feature the ruby-core/lib/csv.rb, but I have no idea to test the feature, So I want a guide for this.
<domgetter> doni: here's a place to start: https://blog.engineyard.com/2014/contribute-to-ruby
s00pcan has joined #ruby
KennethSteel has quit [Remote host closed the connection]
cajone_afk is now known as cajone
<doni> domgetter: Thanks, I will take a look.
<domgetter> doni: I just tweeted Aaron Patterson if he knows any good guides to set up a testing environment for contributing to Ruby. If he responds, you can see it here: https://twitter.com/domgetter/status/679533532411133952
dr3w has joined #ruby
<domgetter> He is (or at least was) on the Ruby core team
dextertzu has quit [Ping timeout: 260 seconds]
qiukun has quit [Quit: qiukun]
grassdog_ has quit [Ping timeout: 265 seconds]
^CrYpto^ has quit [Ping timeout: 265 seconds]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<shevy> he even is here on #ruby
dr3w has quit [Ping timeout: 260 seconds]
tlarevo has joined #ruby
tlarevo has quit [Client Quit]
Fezzler has joined #ruby
ta has joined #ruby
Fezzler has quit [Client Quit]
bronson has quit [Remote host closed the connection]
Ox0dea has quit [Quit: WeeChat 1.4-dev]
p1k has quit [Ping timeout: 256 seconds]
emilkarl has joined #ruby
dopie has quit [Quit: Lost terminal]
dopie has joined #ruby
ta has quit [Ping timeout: 255 seconds]
emilkarl has quit [Client Quit]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
dwfait has joined #ruby
pocketprotector is now known as t_
t_ is now known as pocketprotector
certainty has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has quit [Quit: leaving]
tlarevo has joined #ruby
tlarevo has quit [Remote host closed the connection]
dopie has joined #ruby
h99h9h88 has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
fullofcaffeine has joined #ruby
devoldmx has joined #ruby
duckpuppy has joined #ruby
dopie has quit [Client Quit]
qiukun has joined #ruby
devoldmx_ has quit [Ping timeout: 260 seconds]
dopie has joined #ruby
PedramT has joined #ruby
edj_ has joined #ruby
certainty has quit [Ping timeout: 246 seconds]
duckpuppy has quit [Ping timeout: 245 seconds]
harushimo has quit [Quit: Leaving]
arescorpio has quit [Quit: Leaving.]
<camus> Hello, I have a list of my customer emails and I'm querying an API that will let me know which are the most active on social media. The API returns JSON, I made a mistake and forgot to cache the email address associated w/ each result.
lxsameer has joined #ruby
<camus> Could someone please help me figure out how I store the email address I'm interpolating with the corresponding JSON result I'm writing locally?
framling has joined #ruby
PedramT has quit [Remote host closed the connection]
adgtl has joined #ruby
krz has quit [Ping timeout: 272 seconds]
PedramT has joined #ruby
p1k has joined #ruby
houhoulis has quit [Remote host closed the connection]
cwong_on_irc has joined #ruby
idefine has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
moeabdol has joined #ruby
PedramT has quit [Remote host closed the connection]
qiukun has quit [Quit: qiukun]
idefine has quit [Ping timeout: 255 seconds]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
PedramT has joined #ruby
dr3w has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
<n0vo> How come when I check out TCPSocket on rubydocs it only shows two methods yet when I see other peoples code examples I seed things like .accept and .read and stuff
tubulife- has quit [Ping timeout: 260 seconds]
vdamewood has joined #ruby
edj_ has quit [Quit: Page closed]
p1k has quit [Ping timeout: 245 seconds]
dr3w has quit [Ping timeout: 244 seconds]
nbdy has joined #ruby
krz has joined #ruby
bkxd has joined #ruby
darkf has joined #ruby
<shevy> n0vo it may subclass another class that offers these methods perhaps
smactive has quit [Remote host closed the connection]
<shevy> here is the ancestor chain [TCPSocket, IPSocket, BasicSocket, IO, File::Constants, Enumerable, Object, Kernel, BasicObject]
grassdog_ has joined #ruby
michaeldeol has joined #ruby
certainty has joined #ruby
idefine has joined #ruby
dwfait has quit [Quit: dwfait]
bronson has joined #ruby
ta has joined #ruby
PedramT has quit [Remote host closed the connection]
tagrudev has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Ping timeout: 265 seconds]
fullofcaffeine has quit [Remote host closed the connection]
lessless has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
ta has quit [Ping timeout: 255 seconds]
lessless has joined #ruby
bronson has joined #ruby
s00pcan has quit [Ping timeout: 260 seconds]
qiukun has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
sneakerhax has quit [Ping timeout: 265 seconds]
chouhoulis has joined #ruby
baweaver has joined #ruby
s00pcan has joined #ruby
emilkarl has joined #ruby
PedramT has quit [Ping timeout: 256 seconds]
lemur has joined #ruby
lacuna_ has joined #ruby
blub has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
framling has quit [Ping timeout: 272 seconds]
solars has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 260 seconds]
lessless has quit [Ping timeout: 256 seconds]
duckpuppy has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 245 seconds]
claw has quit [Ping timeout: 265 seconds]
emilkarl has quit [Quit: emilkarl]
anisha has joined #ruby
Foad_NH has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
lkba has joined #ruby
<Foad_NH> Hi, I have a problem with event-machine, it says: Encryption not available on this event-machine.
blub has joined #ruby
h99h9h88 has joined #ruby
emilkarl has joined #ruby
shanemcd has joined #ruby
<Foad_NH> I'm on CentOS and openssl-dev is installed. I uninstalled and installed eventmachine, but nothing changed. Can you help me?
scepticulous has joined #ruby
h99h9h88_ has joined #ruby
duckpuppy has joined #ruby
lemur has quit [Read error: Connection reset by peer]
Kn|t3 has joined #ruby
h99h9h88_ has quit [Remote host closed the connection]
h99h9h88_ has joined #ruby
dlitvak has joined #ruby
idefine has joined #ruby
shanemcd has quit [Ping timeout: 265 seconds]
h99h9h88 has quit [Ping timeout: 265 seconds]
claw has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
kies^ has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 250 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vikas027 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mozzarella has quit [Quit: WeeChat 1.3]
p1k has joined #ruby
Rodya_ has quit [Quit: Leaving...]
colegatron has quit [Ping timeout: 265 seconds]
PedramT has joined #ruby
yardenbar has joined #ruby
dr3w has joined #ruby
PedramT has quit [Remote host closed the connection]
treaki__ has quit [Quit: Leaving]
mary5030 has joined #ruby
treaki has joined #ruby
dr3w has quit [Ping timeout: 246 seconds]
idefine has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
devoldmx has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
dextertzu has joined #ruby
sigurding has joined #ruby
PedramT has joined #ruby
pawnbox has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 272 seconds]
colegatron has joined #ruby
dextertzu has quit [Ping timeout: 256 seconds]
PedramT has quit [Ping timeout: 244 seconds]
Phage- has joined #ruby
kies^ has joined #ruby
tectonic has quit []
mary5030 has quit [Remote host closed the connection]
Kn|t3 has quit [Quit: Kn|t3]
crazydiamond has joined #ruby
tvon has joined #ruby
djbkd has quit [Quit: My people need me...]
ta has joined #ruby
yfeldblum has joined #ruby
idefine has joined #ruby
adingman has quit [Ping timeout: 260 seconds]
mozzarella has joined #ruby
ta has quit [Ping timeout: 272 seconds]
Dimik has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
lessless has joined #ruby
n0vo has quit [Ping timeout: 256 seconds]
nbdy has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit [Ping timeout: 255 seconds]
DoubleMalt has joined #ruby
hxegon has joined #ruby
pawnbox has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
zast has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
relix has joined #ruby
dwfait has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
stevenxl has quit [Quit: leaving]
Kn|t3 has joined #ruby
kp666 has quit [Ping timeout: 250 seconds]
n0vo has joined #ruby
n0vo has quit [Changing host]
n0vo has joined #ruby
dlitvak has joined #ruby
duckpuppy has joined #ruby
Mon_Ouie has joined #ruby
Trynemjoel has joined #ruby
tyrbo has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
tyrbo has quit [Client Quit]
adgtl has quit [Remote host closed the connection]
dr3w has joined #ruby
qiukun has quit [Quit: qiukun]
grassdog_ has quit [Quit: Be back later ...]
Anderson69s has joined #ruby
nofxx has quit [Ping timeout: 272 seconds]
Anderson69s has quit [Client Quit]
dr3w has quit [Ping timeout: 260 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
blub has quit [Remote host closed the connection]
Wsewolod has quit [Ping timeout: 264 seconds]
dnewkerk has joined #ruby
sgambino has joined #ruby
agit0 has joined #ruby
fly5566 has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
chihhsin_ has quit [Quit: leaving]
chihhsin has joined #ruby
smactive has joined #ruby
karapetyan has joined #ruby
lacuna_ has quit [Remote host closed the connection]
idefine has joined #ruby
qiukun has joined #ruby
djbkd has quit [Remote host closed the connection]
Kn|t3 has quit [Quit: Kn|t3]
ibouvousaime has joined #ruby
hxegon has quit [Quit: BRB]
grassdog_ has joined #ruby
devoldmx has joined #ruby
smactive has quit [Ping timeout: 256 seconds]
Kn|t3 has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
idefine has quit [Ping timeout: 256 seconds]
Kn|t3 has quit [Client Quit]
lkba has joined #ruby
grassdog_ has quit [Ping timeout: 272 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
dlitvak has quit [Ping timeout: 265 seconds]
dopie has quit [Quit: Lost terminal]
nunchuck has quit [Read error: Connection reset by peer]
andywojo has joined #ruby
dlitvak has joined #ruby
ibouvousaime has quit [Ping timeout: 272 seconds]
dotix has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dwfait has quit [Ping timeout: 240 seconds]
andywojo has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
Kn|t3 has joined #ruby
karapetyan has quit [Remote host closed the connection]
rubynoobie has quit [Ping timeout: 252 seconds]
ibouvousaime has joined #ruby
ledestin has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
ta has joined #ruby
h99h9h88_ has quit [Remote host closed the connection]
adgtl has joined #ruby
mary5030 has joined #ruby
h99h9h88 has joined #ruby
bronson has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
Kn|t3 has quit [Quit: Kn|t3]
karapetyan has joined #ruby
dotix has quit [Remote host closed the connection]
blackmesa has joined #ruby
tvw has joined #ruby
chouhoulis has joined #ruby
ta has quit [Ping timeout: 246 seconds]
Kn|t3 has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
ohaibbq_ has quit [Quit: Leaving...]
IdanM has joined #ruby
firstdayonthejob has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
edwinvdgraaf has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
h99h9h88 has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Kn|t3 has quit [Quit: Kn|t3]
skade has joined #ruby
Hounddog has joined #ruby
karapetyan has quit [Remote host closed the connection]
h99h9h88 has quit [Ping timeout: 272 seconds]
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
doni has quit [Remote host closed the connection]
doni has joined #ruby
Insti has quit [Quit: Leaving]
doni has left #ruby [#ruby]
ibouvousaime has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
ibouvousaime has joined #ruby
duckpuppy has joined #ruby
ta has joined #ruby
LetItSnow-y has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
thejamespinto has joined #ruby
hectortrope has joined #ruby
h99h9h88 has joined #ruby
PedramT has joined #ruby
emilkarl_ has joined #ruby
emilkarl has quit [Ping timeout: 240 seconds]
emilkarl_ is now known as emilkarl
jbrhbr has joined #ruby
jbrhbr has quit [Client Quit]
jbrhbr has joined #ruby
h99h9h88 has quit [Ping timeout: 250 seconds]
jbrhbr has quit [Read error: Connection reset by peer]
jbrhbr1 has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
dlitvak_ has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
setient has quit [Ping timeout: 265 seconds]
setient has joined #ruby
dlitvak has joined #ruby
waka has quit [Quit: Leaving]
BSaboia has joined #ruby
devbug has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
emilkarl_ has joined #ruby
emilkarl has quit [Ping timeout: 255 seconds]
emilkarl_ is now known as emilkarl
dextertzu has joined #ruby
ur5us has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
dnewkerk has joined #ruby
Kn|t3 has joined #ruby
waka has joined #ruby
DoubleMalt has joined #ruby
dextertzu has quit [Ping timeout: 240 seconds]
jcdesimp has quit [Remote host closed the connection]
jcdesimp has joined #ruby
dnewkerk has quit [Ping timeout: 240 seconds]
elaptics`away is now known as elaptics
AlphaAtom has joined #ruby
marr has joined #ruby
AlphaAtom has quit [Client Quit]
emilkarl has left #ruby [#ruby]
Kn|t3 has quit [Quit: Kn|t3]
p1k has quit [Ping timeout: 276 seconds]
Jackneill has joined #ruby
Kn|t3 has joined #ruby
chussenot has joined #ruby
bronson has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
htmldrum has joined #ruby
dlitvak has joined #ruby
chouhoulis has joined #ruby
fly5566 has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 265 seconds]
adgtl has quit [Remote host closed the connection]
last_staff has joined #ruby
idefine has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
ElFerna has joined #ruby
radgeRayden has joined #ruby
MikeSanchez has joined #ruby
<MikeSanchez> has anyone heard of steve harvey?
idefine has quit [Ping timeout: 256 seconds]
chussenot has quit [Quit: chussenot]
krz has quit [Read error: Connection reset by peer]
<bkxd> what's a good way to find a project to contribute to?
<bkxd> also, can you contribute to projects other than by coding?
chussenot has joined #ruby
<darix> bkxd: writing documentation
<bkxd> darix: i was thinking more like project management, marketing, strategy, etc. or am i off the reservation?
ElFerna has quit [Ping timeout: 260 seconds]
krz has joined #ruby
krz has quit [Read error: Connection reset by peer]
<darix> sure. but you get that split up to multiple people only on the bigger projects
lkba has quit [Ping timeout: 260 seconds]
<bkxd> darix: interesting
krz has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
krz has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
krz has joined #ruby
Kn|t3 has joined #ruby
krz has quit [Read error: Connection reset by peer]
ibouvousaime has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
krz has joined #ruby
Kn|t3 has quit [Client Quit]
duckpuppy has quit [Ping timeout: 256 seconds]
krz has quit [Read error: Connection reset by peer]
MikeSanchez has quit [Ping timeout: 252 seconds]
blaxter has joined #ruby
pawnbox has joined #ruby
the_nick_me has quit [Remote host closed the connection]
lessless has quit [Ping timeout: 256 seconds]
wldcordeiro has quit [Ping timeout: 260 seconds]
ElFerna has joined #ruby
ibouvousaime has joined #ruby
p1k has joined #ruby
emilkarl has joined #ruby
aibot has quit [Ping timeout: 256 seconds]
ur5us has quit [Remote host closed the connection]
emilkarl_ has joined #ruby
dlitvak_ has joined #ruby
emilkarl has quit [Client Quit]
dlitvak has quit [Ping timeout: 245 seconds]
emilkarl_ is now known as emilkarl
ElFerna has quit [Ping timeout: 240 seconds]
Ishido has quit [Remote host closed the connection]
p1k has quit [Ping timeout: 260 seconds]
dextertzu has joined #ruby
IdanM has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has joined #ruby
siddharth has quit [Quit: Connection closed for inactivity]
Ishido has joined #ruby
adgtl has joined #ruby
idefine has joined #ruby
rodfersou has joined #ruby
Kn|t3 has joined #ruby
shanemcd has joined #ruby
Ishido has quit [Read error: Connection reset by peer]
Ishido has joined #ruby
karapetyan has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
ElFerna has joined #ruby
adgtl has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 256 seconds]
idefine has quit [Ping timeout: 245 seconds]
the_nick_me has joined #ruby
devoldmx has joined #ruby
shanemcd has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
lubekpl has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
andywojo has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
ElFerna has quit [Ping timeout: 260 seconds]
ElFerna has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chussenot has quit [Quit: chussenot]
aibot has joined #ruby
jbrhbr1 has quit [Quit: Leaving.]
andywojo has quit [Ping timeout: 260 seconds]
ruu_ has joined #ruby
bnizzle1 has left #ruby [#ruby]
Kn|t3 has joined #ruby
nfk|laptop has joined #ruby
<fexilal> +32.0
<fexilal> 0
idefine has joined #ruby
pawnbox has quit [Remote host closed the connection]
symm- has joined #ruby
pawnbox has joined #ruby
rgtk has joined #ruby
dlitvak has joined #ruby
qiukun has quit [Quit: qiukun]
blackmesa has quit [Ping timeout: 240 seconds]
symm- has quit [Client Quit]
idefine has quit [Ping timeout: 256 seconds]
dlitvak_ has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 245 seconds]
Kn|t3 has quit [Quit: Kn|t3]
rgtk has quit [Ping timeout: 246 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
solenoids has quit [Ping timeout: 272 seconds]
moeabdol has joined #ruby
radgeRayden has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
tubuliferous_ has joined #ruby
mlangenberg has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
moeabdol has quit [Client Quit]
Axy has quit [Ping timeout: 265 seconds]
<mlangenberg> Is this the best way to initialize an anonymous struct multiple times? `People = %w(Amy Bob Charles).map { |n| Struct.new(:name).new(n) }`
BSaboia has quit [Ping timeout: 276 seconds]
<mlangenberg> I noticed the syntax for this in Go is really elegant. Wondering about a Ruby version.
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit [Ping timeout: 246 seconds]
tubuliferous_ has quit [Ping timeout: 255 seconds]
BSaboia has joined #ruby
Zamerick_ has joined #ruby
Bloomer has quit [Remote host closed the connection]
chussenot has joined #ruby
moeabdol has joined #ruby
adgtl has joined #ruby
radgeRayden has joined #ruby
mlangenberg has quit [Quit: mlangenberg]
TheHodge has joined #ruby
adgtl_ has joined #ruby
adgtl_ has quit [Client Quit]
rgtk has joined #ruby
jcdesimp has quit [Remote host closed the connection]
adgtl has quit [Ping timeout: 264 seconds]
duckpuppy has joined #ruby
solenoids has joined #ruby
sigurding has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
themsay has joined #ruby
pawnbox has joined #ruby
minimalism has quit [Quit: minimalism]
duckpuppy has quit [Ping timeout: 240 seconds]
FooMunki has joined #ruby
jschmid has joined #ruby
adgtl has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
mlangenberg has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<soahccc> mlangenberg: personally I very rarely see the use of Struct/OpenStruct in ruby... Generally you have your own classes so that you can add, whenever you like, more methods, attributes, etc.
ElFerna has joined #ruby
htmldrum has joined #ruby
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 246 seconds]
FooMunki has quit [Quit: FooMunki]
<mlangenberg> Okay, I use Struct quite often. OpenStruct not so much.
BrunoSaboia has joined #ruby
<mlangenberg> a Struct can be used for grouping related arguments or attributes in a hash.
p1k has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
andikr has joined #ruby
last_staff has joined #ruby
nfk|laptop has quit [Ping timeout: 255 seconds]
<mlangenberg> In Go initializing anonymous structs has a nice syntax: https://github.com/golang/go/wiki/TableDrivenTests
radgeRayden has quit [Ping timeout: 265 seconds]
sandstrom has joined #ruby
adgtl has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
Rickmasta has joined #ruby
BSaboia has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
AccordLTN has joined #ruby
AccordLTN has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
FooMunki has joined #ruby
htmldrum has quit [Ping timeout: 265 seconds]
mdw has joined #ruby
PedramT has joined #ruby
TomyLobo has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 250 seconds]
nfk|laptop is now known as it_tard
dlitvak has joined #ruby
it_tard is now known as Harima_Kenji
Harima_Kenji is now known as nfk|laptop
adgtl has joined #ruby
ElFerna has quit [Ping timeout: 246 seconds]
certainty has joined #ruby
emilkarl has joined #ruby
vdamewood has quit [Quit: Life beckons.]
adgtl_ has joined #ruby
PedramT has quit [Ping timeout: 272 seconds]
BrunoSaboia has quit [Ping timeout: 250 seconds]
mlangenberg has quit [Quit: mlangenberg]
adgtl has quit [Ping timeout: 264 seconds]
andikr has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c355e3b has joined #ruby
dr3w has joined #ruby
PedramT has joined #ruby
akem has quit [Remote host closed the connection]
grn has joined #ruby
chouhoulis has joined #ruby
pawnbox has joined #ruby
karapetyan has quit [Remote host closed the connection]
PedramT has quit [Ping timeout: 256 seconds]
dr3w has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
adgtl_ has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 250 seconds]
slackbotgz has joined #ruby
ruu_ has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
smactive has joined #ruby
PedramT has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
ramfjord has quit [Ping timeout: 246 seconds]
nfk|laptop has quit [Quit: yawn]
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
smactive has quit [Ping timeout: 265 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
pawnbox has joined #ruby
prestorium has joined #ruby
duckpuppy has joined #ruby
pawnbox has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
idefine has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
andywojo has joined #ruby
pawnbox has joined #ruby
elico has quit [Remote host closed the connection]
johnzorn has joined #ruby
c0ncealed has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
ineb has quit [Remote host closed the connection]
andywojo has quit [Ping timeout: 255 seconds]
ElFerna has joined #ruby
mlangenberg has joined #ruby
pawnbox has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
themsay has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
pawnbox has quit [Remote host closed the connection]
blt has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
Coldblackice has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
grn has quit []
bithon has joined #ruby
slackbotgz has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 265 seconds]
idefine has joined #ruby
slackbotgz has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
steffkes has quit [Ping timeout: 246 seconds]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jschmid has quit [Ping timeout: 260 seconds]
blt has quit [Quit: WeeChat 1.3]
sigurding has quit [Quit: sigurding]
AlphaAtom has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
bkxd_ has joined #ruby
sandstrom has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
senayar has quit [Remote host closed the connection]
duoi has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
codecop has quit [Remote host closed the connection]
duoi has joined #ruby
LetItSnow-y has quit []
cassioscabral has joined #ruby
chussenot has quit [Quit: chussenot]
bronson has joined #ruby
the_nick_me has quit [Remote host closed the connection]
chouhoulis has joined #ruby
PedramT has joined #ruby
icbm has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
FooMunki has quit [Quit: FooMunki]
CloCkWeRX has quit [Ping timeout: 260 seconds]
FooMunki has joined #ruby
dlitvak has joined #ruby
jcdesimp has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jmonreal has joined #ruby
yardenbar has quit [Ping timeout: 264 seconds]
jcdesimp has quit [Ping timeout: 256 seconds]
idefine has joined #ruby
Spami has joined #ruby
hectortrope has quit [Remote host closed the connection]
emilkarl has joined #ruby
jcdesimp has joined #ruby
sigurding has joined #ruby
monoprotic has quit [Quit: bite me]
ruid has quit [Ping timeout: 256 seconds]
idefine has quit [Ping timeout: 256 seconds]
PlasmaStar has quit [Ping timeout: 240 seconds]
slackbotgz has quit [Remote host closed the connection]
blackmesa has joined #ruby
karapetyan has joined #ruby
conta has joined #ruby
PlasmaStar has joined #ruby
<conta> guys, where can I find docs about '~>' in gemfile? trying to google it for 10 minutes but no success
duckpuppy has joined #ruby
synthroid has joined #ruby
symbol has joined #ruby
nocd has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
crunk_bear has joined #ruby
flori has quit [Ping timeout: 272 seconds]
scepticulous has quit [Quit: Page closed]
yardenbar has joined #ruby
flori has joined #ruby
duckpuppy has quit [Ping timeout: 245 seconds]
rodfersou is now known as rodfersou|lunch
scepticulous has joined #ruby
abronca has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
scepticulous has quit [Client Quit]
scepticulous has joined #ruby
duckpuppy has joined #ruby
abronca has quit [Client Quit]
symbol has quit [Quit: WeeChat 1.1]
davedev24 has joined #ruby
dstarh has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
d0nn1e has quit [Ping timeout: 265 seconds]
d0nn1e has joined #ruby
idefine has joined #ruby
* lubekpl conta:
<lubekpl> There are seven operators you can use when specifying your gems.
<lubekpl> = Equal To "=1.0"
<lubekpl> != Not Equal To "!=1.0"
<lubekpl> > Greater Than ">1.0"
<lubekpl> < Less Than "<1.0"
<lubekpl> >= Greater Than or Equal To ">=1.0"
<lubekpl> <= Less Than or Equal To "<=1.0"
<lubekpl> ~> Pessimistically Greater Than or Equal To "~>1.0"
<conta> great ;]
dotix has joined #ruby
<conta> lubekpl I have trouble with one gem where dependency is ~> 3.3 and I have error with v 4
mlangenberg has quit [Quit: mlangenberg]
duckpuppy has quit [Quit: WeeChat 1.3]
nonopposition has quit [Ping timeout: 244 seconds]
Kn|t3 has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
<lubekpl> as in?
atomical has joined #ruby
Encapsulation has joined #ruby
InvGhost has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<conta> it's in gemspec
chussenot has joined #ruby
<conta> was s.add_runtime_dependency("middleman-core", ["~> 3.3"])
p0wn3d_ has joined #ruby
colegatron has joined #ruby
<conta> so I changed to s.add_runtime_dependency("middleman-core", [">= 3.3"]) to make it work with v4
yfeldblum has quit [Ping timeout: 260 seconds]
<conta> but wasn't sure what I am doing
<lubekpl> well, you shouldn't be changing dependencies
<lubekpl> why not use middleman 3.3?
the_nick_me has joined #ruby
<conta> well, I am on middleman 4. the gem I talk about is plugin (middleman-discuss)
<conta> so I wanna stay on Middleman 4
kobain has joined #ruby
<lubekpl> don't really know anything about middleman, but maybe it changed significantlly
vikas027 has joined #ruby
<lubekpl> between versions 3 and 4
<conta> well, I guess might be some changes. the gem works for me fine after change. I filed issue with gem author so I will see
<lubekpl> :)
thoraxe_ is now known as thoraxe
mlangenberg has joined #ruby
bithon has quit [Quit: WeeChat 1.3]
bithon has joined #ruby
bithon has quit [Client Quit]
mdw_ has joined #ruby
bithon has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
kobain has quit [Max SendQ exceeded]
mdw has quit [Ping timeout: 260 seconds]
Rickmasta has joined #ruby
kobain has joined #ruby
the_nick_me has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
mlangenberg has quit [Quit: mlangenberg]
ruid has quit [Ping timeout: 246 seconds]
mlangenberg has joined #ruby
conta has quit [Ping timeout: 276 seconds]
devbug has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
idefine has joined #ruby
ramortegui has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
cassioscabral has quit [Quit: cassioscabral]
chouhoulis has joined #ruby
devbug has quit [Ping timeout: 255 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
andywojo has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
Guest32 has joined #ruby
sandstrom has joined #ruby
shanemcd has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
andywojo has quit [Ping timeout: 260 seconds]
PedramT has quit [Remote host closed the connection]
dlitvak has joined #ruby
cassioscabral has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
Jardayn has joined #ruby
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cassioscabral has quit [Client Quit]
blandflakes has joined #ruby
rodfersou|lunch has quit [Ping timeout: 246 seconds]
Phage- is now known as Phage
Snowy has joined #ruby
Phage is now known as Guest47449
dlitvak has quit [Ping timeout: 245 seconds]
rodfersou|lunch has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krobzaur has joined #ruby
karapetyan has joined #ruby
lxsameer has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Foad_NH has quit [Quit: Leaving]
karapetyan has joined #ruby
idefine has joined #ruby
Kn|t3 has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
slackbotgz has joined #ruby
Guest47449 is now known as Phage
Phage has quit [Changing host]
Phage has joined #ruby
moeabdol has quit [Ping timeout: 255 seconds]
idefine has quit [Ping timeout: 256 seconds]
dorei has joined #ruby
PedramT has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
kies^ has quit [Ping timeout: 240 seconds]
jmignault has joined #ruby
InvGhost has quit [Read error: Connection reset by peer]
PedramT has quit [Ping timeout: 260 seconds]
InvGhost has joined #ruby
skcin7 has joined #ruby
<shevy> will we have a new ruby tomorrow
andywojo has joined #ruby
devoldmx has joined #ruby
pawnbox has quit [Remote host closed the connection]
moeabdol has joined #ruby
pawnbox has joined #ruby
RealLinuX has joined #ruby
the_nick_me has joined #ruby
ESpiney has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
shanemcd has quit [Ping timeout: 264 seconds]
bradleyprice has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
rodfersou|lunch has quit [Quit: leaving]
rodfersou has joined #ruby
mlangenberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_nick_me has quit [Read error: Connection reset by peer]
the_nick_me has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
babblebre has joined #ruby
dotix has quit [Remote host closed the connection]
crunk_bear has joined #ruby
conta has joined #ruby
tagrudev has quit [Remote host closed the connection]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dotix has joined #ruby
slackbotgz has quit [Remote host closed the connection]
conta has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgtk has quit [Remote host closed the connection]
duckpuppy has joined #ruby
shanemcd has joined #ruby
bronson has joined #ruby
dotix has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
chouhoulis has joined #ruby
madhatter has joined #ruby
dhollinger has joined #ruby
dlitvak has joined #ruby
krz has joined #ruby
rippa has joined #ruby
cdg has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
atomical_ has joined #ruby
InvGhost has quit [Read error: Connection reset by peer]
InvGhost has joined #ruby
cornerman has quit [Ping timeout: 260 seconds]
atomical has quit [Ping timeout: 260 seconds]
shanemcd has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 272 seconds]
cornerman has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
dlitvak has joined #ruby
anisha has quit [Quit: Leaving]
shanemcd has joined #ruby
beast has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
dlitvak has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
ibouvousaime has quit [Ping timeout: 265 seconds]
ibouvousaime has joined #ruby
adgtl has joined #ruby
atomical has joined #ruby
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
mistermocha has joined #ruby
whippythellama has joined #ruby
atomical_ has quit [Ping timeout: 265 seconds]
Kn|t3 has quit [Quit: Kn|t3]
yokel has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
cyb3rspy has quit [Remote host closed the connection]
InvGhost has quit [Read error: Connection reset by peer]
yokel has joined #ruby
InvGhost has joined #ruby
c0ncealed has joined #ruby
yeshacker has quit [Ping timeout: 264 seconds]
greenhat has joined #ruby
hxegon has quit [Quit: BRB]
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
karapetyan has joined #ruby
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
stannard has joined #ruby
mistermocha has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
B1n4r10 has joined #ruby
ibouvousaime_ has joined #ruby
ibouvousaime has quit [Ping timeout: 264 seconds]
mrtomme has quit [Ping timeout: 246 seconds]
the_nick_me has quit [Remote host closed the connection]
skade has joined #ruby
symm- has joined #ruby
mrtomme has joined #ruby
mdw_ has quit [Quit: Sleeping Zzzzz]
sandstrom has joined #ruby
InvGhost has quit [Read error: Connection reset by peer]
InvGhost has joined #ruby
chussenot has quit [Quit: chussenot]
yardenbar has quit [Ping timeout: 260 seconds]
solars has quit [Ping timeout: 260 seconds]
cassioscabral has joined #ruby
the_nick_me has joined #ruby
the_nick_me has quit [Remote host closed the connection]
JakFrist has joined #ruby
idefine has joined #ruby
cpup has quit [Ping timeout: 260 seconds]
<shevy> damn openstruct is slow
idefine has quit [Ping timeout: 256 seconds]
Kn|t3 has joined #ruby
InvGhost has quit [Read error: Connection reset by peer]
InvGhost has joined #ruby
InvGhost has quit [Read error: Connection reset by peer]
B1n4r10 has quit [Ping timeout: 272 seconds]
conta has joined #ruby
InvGhost has joined #ruby
Snowy is now known as SnowGlobe
idefine has joined #ruby
Tricon has joined #ruby
conta has quit [Ping timeout: 265 seconds]
yardenbar has joined #ruby
Bloomer has joined #ruby
Norm has quit [Ping timeout: 250 seconds]
<shevy> cool ... I did not know about .cover?
duckpuppy has quit [Ping timeout: 246 seconds]
gregf has quit [Quit: WeeChat 1.3]
ElFerna has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
Norm has joined #ruby
xet7 has quit [Quit: Leaving]
djbkd has joined #ruby
<DefV> I don't get how the #include? on a range of date isn't fixed yet
<yxhuvud> defv: use cover?
<DefV> why
<yxhuvud> because it works.
<DefV> what's the use case anyone would want to use include? over cover? ?
chouhoulis has quit [Ping timeout: 260 seconds]
conta has joined #ruby
bubbys has quit [Ping timeout: 246 seconds]
gregf has joined #ruby
<shevy> I remember that lots of blog entries have shown examples via .include? but I haven't seen one showing .cover? yet
shanemcd_ has joined #ruby
ramfjord has joined #ruby
shanemcd has quit [Ping timeout: 276 seconds]
dlitvak has quit [Ping timeout: 264 seconds]
agit0 has joined #ruby
yardenbar has quit [Ping timeout: 276 seconds]
PedramT has joined #ruby
Abhijit has joined #ruby
<Abhijit> hi
dlitvak has joined #ruby
RealLinuX has quit [Quit: Leaving]
<Abhijit> i am trying to install this gem for my rails project. https://github.com/edgarjs/ajaxful-rating i tried manually with gem install and also by including it in my projects gemfile and bundle. but it do not create any scripts folder and there is no generate scripts on scripts folder of !/.rsm
<Abhijit> ~/.rvm
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
xet7 has joined #ruby
cpup has joined #ruby
bweston92 has quit [Read error: Connection reset by peer]
shanemcd_ has quit [Read error: Connection reset by peer]
PedramT has quit [Ping timeout: 255 seconds]
agit0 has quit [Quit: zzzZZZ….]
Abhijit has quit [Quit: Bye.]
ramfjord has quit [Ping timeout: 245 seconds]
hxegon has joined #ruby
shanemcd has joined #ruby
synthroid has quit [Remote host closed the connection]
ElFerna has joined #ruby
agit0 has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.3]
chussenot has joined #ruby
elaptics is now known as elaptics`away
karapetyan has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
duckpuppy has joined #ruby
Fezzler has joined #ruby
scepticulous has quit [Ping timeout: 240 seconds]
tvon has quit [Quit: leaving]
cdg has quit [Remote host closed the connection]
BSaboia has joined #ruby
kies^ has joined #ruby
renderfu_ has joined #ruby
elaptics`away is now known as elaptics
timonv has joined #ruby
hectortrope has joined #ruby
elaptics is now known as elaptics`away
arup_r has joined #ruby
renderf__ has quit [Ping timeout: 250 seconds]
Guest32 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lacuna has quit [Remote host closed the connection]
vondruch has quit [Quit: Ex-Chat]
devoldmx has joined #ruby
atomical_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
morfin60 is now known as morfin
zdman135 has joined #ruby
renderfu_ has quit [Read error: Connection reset by peer]
renderfu_ has joined #ruby
<thoraxe> https://gist.github.com/thoraxe/e8884a1b1fb7a1a4ed18 - given an array of objects like these, I'm trying to find any object in the array that has a particular list id **and** a particular card label with a particular id
<thoraxe> so in essence I'm trying to find objects in somearray where :list_id=>"565c88490972e1a33c359a6d" and :card_labels has an element with "id"=>"54d4de9c74d650d5671cb3c7"
<thoraxe> i can do this with iteration, but I'm sure there's a more sexy ruby way to do it
dlitvak has quit [Remote host closed the connection]
polishdub has joined #ruby
atomical has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
hinbody has quit [Quit: leaving]
Ishido has joined #ruby
nfk|laptop has joined #ruby
skade has quit [Ping timeout: 265 seconds]
fullofcaffeine has joined #ruby
tvon has joined #ruby
dualbus has quit [Quit: WeeChat 1.2]
baroquebobcat has quit [Quit: baroquebobcat]
skade has joined #ruby
dlitvak has joined #ruby
vikas027 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Contigi has joined #ruby
jbrhbr has joined #ruby
marr has quit [Read error: Connection reset by peer]
tvon has quit [Client Quit]
senayar has quit []
ElFerna has quit [Ping timeout: 276 seconds]
bradleyprice has joined #ruby
<thoraxe> looks like enumerable/select
<thoraxe> just trying to figure out the combination
Rodya_ has joined #ruby
hectortrope has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 276 seconds]
aegis3121 has joined #ruby
tvon has joined #ruby
elaptics`away is now known as elaptics
synthroid has joined #ruby
baroquebobcat has joined #ruby
solocshaw has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
skade has quit [Ping timeout: 255 seconds]
rgtk has joined #ruby
Kn|t3 has quit [Ping timeout: 264 seconds]
Kn|t3 has joined #ruby
davejlong has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby
atomical has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
<thoraxe> sprint_lists[1].cards[1].card_labels.include? ("id"=>"54d4de9c74d650d5671cb3c7") hmm this doesn't work
the_nick_me has joined #ruby
lacuna has quit [Remote host closed the connection]
conta has quit [Read error: Connection reset by peer]
atomical_ has quit [Ping timeout: 246 seconds]
conta has joined #ruby
skade has joined #ruby
paradoja has joined #ruby
Hounddog has quit [Remote host closed the connection]
<shevy> thoraxe .include? is too simplistic
<thoraxe> yeah i think i need some weird find nested with something else
hectortrope has joined #ruby
<thoraxe> sprint_lists[1].cards.find { |card| card.card_labels.any? { |label| label["id"] == "54d4de9c74d650d5671cb3c7" } }
<thoraxe> aww yeah
<apeiros> thoraxe: proper classes help with that.
<thoraxe> hmm
<thoraxe> apeiros: well this is all using the trello gem
<thoraxe> which has proper classes, i think
<apeiros> doesn't seem like
Fezzler has quit [Quit: Leaving]
<thoraxe> well, depends on what you mean by "proper"
<apeiros> after all, you're poking around in arrays of hashes of arrays of whatever
elaptics is now known as elaptics`away
jmdade has joined #ruby
<apeiros> "using X" btw. isn't an excuse to come up with classes yourself :-p
<thoraxe> not sure what you know about trello, but basically a card can have labels. those labels themselves are a bunch of key/value info
<apeiros> +not
cassioscabral has quit [Read error: Connection reset by peer]
<thoraxe> so, with this particular gem, the card's object has a card_labels attribute that is an array of hashes
<apeiros> I know of trello that it's similar to pivotal
<apeiros> and I'd assume that "id" is a standard attribute. and finding a card by id would probably be a standard operation.
<thoraxe> i am trying to find all cards (given an array of card objects) who have a particular label
<thoraxe> yes, but i am not trying to find a card by id.
<apeiros> so I'd expect cards.find(id) or similar to be present.
<thoraxe> i am trying to find cards who have a particular label
<thoraxe> and that LABEL has an id
<thoraxe> card.find(id) works fien.
<apeiros> almost the same thing then.
<thoraxe> i want card.find_by_label_id which...
<apeiros> card.where(label: label_id)
<apeiros> or somesuch
<apeiros> which behind the scenes may very well do what you just wrote.
<thoraxe> except there's an added constraint in my case that the card has to be on a particular list
<apeiros> (unless you tell me that label is nonstandard)
<apeiros> thoraxe: so?
<thoraxe> no label itself appears to be a class too
nertzy has joined #ruby
<thoraxe> i guess i need to look at .where
jaequery has joined #ruby
<apeiros> I made `where` up
<apeiros> it was an example for how I'd expect a potential API to look like
amclain has joined #ruby
blackmesa has joined #ruby
cassioscabral has joined #ruby
jaequery has quit [Client Quit]
nickjj has quit [Ping timeout: 276 seconds]
fullofcaffeine has quit [Remote host closed the connection]
<thoraxe> well, i didn't write the gem or the classes, so i'm just trying to make do with what is here, and given a list of card objects the ugly find/select/whatever I was trying to do seemed like the quickest resolution
<thoraxe> i'm not even sure how to go about extending the card class to support finding cards by list and card id
<thoraxe> err label id
<thoraxe> because behind the scenes i would expect to end up writing the same exact ugly function
mdw has joined #ruby
<thoraxe> i guess i don't really understand what you're suggesting, apeiros
<thoraxe> i'm not really a programmer
<apeiros> I say dealing with nested hashes and arrays is stupid.
<thoraxe> so given what i'm working with, what do you suggest?
<apeiros> use (or write, if necessary) proper classes which provide sane interfaces, instead of poking around in those nested structures.
fullofcaffeine has joined #ruby
<thoraxe> so instead of an ugly command or two, i should rewrite all the things?
krz has quit [Quit: WeeChat 1.2]
skade has quit [Ping timeout: 245 seconds]
agit0 has quit [Quit: zzzZZZ….]
<thoraxe> sprint_lists[1].cards.find { |card| card.card_labels.any? { |label| label["id"] == "54d4de9c74d650d5671cb3c7" } } <- this seems to be close to what I want, but it's only returning the first card
timonv has quit [Ping timeout: 256 seconds]
nocd has quit [Quit: nocd]
RegulationD has joined #ruby
djbkd has quit [Remote host closed the connection]
zdman135 has quit [Remote host closed the connection]
shanemcd has quit [Remote host closed the connection]
TheHodge has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
sigurding has quit [Quit: sigurding]
jmignault has quit [Quit: Lunch]
DoubleMalt has quit [Ping timeout: 260 seconds]
blaxter has quit [Quit: foo]
dlitvak has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruu_ has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Remote host closed the connection]
sandstrom has joined #ruby
smactive has joined #ruby
InvGhost has quit [Read error: Connection reset by peer]
jcdesimp has quit [Quit: Leaving...]
fullofcaffeine has joined #ruby
InvGhost has joined #ruby
sandstrom has quit [Client Quit]
Wsewolod has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
beast has quit [Quit: Leaving]
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blt has joined #ruby
konsolebox has joined #ruby
benlieb has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
lacuna has joined #ruby
smactive has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
davedev24 has joined #ruby
konsolebox has quit [Max SendQ exceeded]
cassioscabral has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
konsolebox has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beast has joined #ruby
dr3w has joined #ruby
ascarter has joined #ruby
polysics has joined #ruby
bronson has joined #ruby
Rodya_ has quit [Quit: Leaving...]
atomical_ has joined #ruby
jaequery has joined #ruby
diegoviola has joined #ruby
mark06 has joined #ruby
Darin_ has joined #ruby
jbrhbr has quit [Quit: Leaving.]
atomical has quit [Ping timeout: 260 seconds]
<Darin_> Anyone know how I would start to program a farkle game?
andywojo has quit [Ping timeout: 255 seconds]
tvw has quit []
icbm has quit [Quit: Leaving]
<apeiros> thoraxe: context matters of course. if it's half a dozen lines of ugly code which you'll never touch again - well, then use the ugly code.
<apeiros> Darin_: what's a farkle game?
adgtl has quit [Remote host closed the connection]
<Darin_> It's the Dice game where certain rolls and combinations of numbers get certain points.
marsjaninzmarsa has quit [Remote host closed the connection]
<thoraxe> apeiros: it's basically one line of code if i can figure out the right incantation of enum methods
<thoraxe> apeiros: otherwise it's a small loop over a small list of objects and reject any that don't have some stuff, which is slow, but works and this can be super low performance
<Darin_> I understand what I would have to do (I think) in psudocode. But I am at a place in my programming where I know the basics and know what things are, but not exactly what to do with what I know.
marsjaninzmarsa has joined #ruby
Rickmasta has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nertzy has quit [Quit: This computer has gone to sleep]
tubulife- has joined #ruby
p0wn3d_ has quit [Ping timeout: 246 seconds]
<Darin_> It's frustrating not knowing where to go from here.
marr has joined #ruby
atomical has joined #ruby
wolffles has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
adgtl has joined #ruby
blt has quit [Quit: WeeChat 1.3]
karapetyan has joined #ruby
atomical_ has quit [Ping timeout: 260 seconds]
bronson has quit [Remote host closed the connection]
nickjj has joined #ruby
dlitvak_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
wolffles has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
tubulife- has quit [Ping timeout: 260 seconds]
davedev2_ has joined #ruby
Darin_ has quit [Ping timeout: 252 seconds]
chussenot has quit [Ping timeout: 265 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
dlitvak_ has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
the_nic__ has joined #ruby
pdoherty has quit [Ping timeout: 265 seconds]
davedev24 has quit [Ping timeout: 260 seconds]
gheegh has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
the_nick_me has quit [Ping timeout: 264 seconds]
conta has quit [Read error: Connection reset by peer]
polysics has quit []
conta has joined #ruby
agit0 has joined #ruby
justinweiss has joined #ruby
nettoweb has joined #ruby
agit0 has quit [Client Quit]
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
Jackneill has quit [Quit: Leaving]
BaroMeter has joined #ruby
shanemcd has joined #ruby
conta has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
jbrhbr has joined #ruby
Wsewolod has quit [Ping timeout: 250 seconds]
ruu_ has quit [Ping timeout: 246 seconds]
zdman135 has joined #ruby
conta has joined #ruby
cyfr0n1 has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
kies^ has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
mdw has joined #ruby
cyfr0n has quit [Ping timeout: 255 seconds]
BaroMeter has quit [Remote host closed the connection]
armyriad has joined #ruby
jcdesimp has joined #ruby
the_nick_me has joined #ruby
mlangenberg has joined #ruby
the_nic__ has quit [Ping timeout: 256 seconds]
zdman135 has quit [Remote host closed the connection]
xet7 has quit [Quit: Leaving]
SnowGlobe has quit [Remote host closed the connection]
johnzorn has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
ibouvousaime_ has quit [Ping timeout: 260 seconds]
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
zdman135 has joined #ruby
ibouvousaime_ has joined #ruby
krobzaur has quit [Quit: WeeChat 1.2]
krobzaur has joined #ruby
ruu_ has joined #ruby
andywojo has joined #ruby
kirun has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
atomical has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
iateadonut has quit [Quit: Leaving.]
mlangenberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
ElFerna has joined #ruby
devoldmx has joined #ruby
zdman135 has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 240 seconds]
zdman135 has joined #ruby
<wolffles> why does arr[2,3] of arr = [1,2,3,4,5,] return arr[3,4,5] ? shouldnt it return 2 positions?
ht__ has joined #ruby
<jhass> wolffles: [start, length] and [start..end]
<wolffles> ohhh
jbrhbr has quit [Quit: Leaving.]
hxegon is now known as hxegon_AFK
arup_r has quit []
Trynemjoel has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 276 seconds]
abronca has joined #ruby
dlitvak has joined #ruby
Spami has joined #ruby
nfk|laptop has quit [Ping timeout: 256 seconds]
the_nick_me has quit [Remote host closed the connection]
n0vo has quit [Quit: Lost terminal]
Trynemjoel has joined #ruby
jmignault has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
queequeg2 has quit [Quit: leaving]
sneakerhax has joined #ruby
nfk|laptop has joined #ruby
zdman135 has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wolffles> how would i do arr = [“a”, “b”, “c”, “d”] with positions = [3, 1, 2, 0] return it as x = dbca? cuz right im doing x[positions] but thats obviously not right. should i just do an iterator like x[positions[i]] then i+=1?
DrCode has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
Gnut has joined #ruby
p0wn3d_ has joined #ruby
Jackneill has joined #ruby
rigel_ has joined #ruby
rubynoobie has joined #ruby
<Gnut> How would I go about converting a hash of {'key1'=>'val1', 'key2'=>'val2'} to the list ['key1=val1', 'key2=val2']
dotix has joined #ruby
<rigel_> in learn ruby the hard way exercise 41 a line of code reads
<rigel_> class_names = craft_names(rand_words, snippet, /###/, caps=true)
<rigel_> is it assigning a caps variable or passing a keyword argument like python does. so far ruby's support for keyword argument seems to have a : in some way
shanemcd has quit [Remote host closed the connection]
<adaedra> wolffles: positions.map { |n| arr[n] }
<jhass> wolffles: .values_at(*positions)
beast_ has joined #ruby
hinbody has joined #ruby
<adaedra> Ruby has too many methods :p
<havenwood> Gnut: map
<havenwood> Gnut: map { |k, v| "#{k}=#{v}" }
<adaedra> rigel_: looks like an assignment
<rigel_> so the order is what matters then with multiple optional (non-keyword) arguments?
<Gnut> havenwood: Perfect! Thank you
<M-prosodyContext> Order by
dotix has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
<adaedra> rigel_: yes
<rigel_> adaedra: thanks
azgil has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
Rickmasta has joined #ruby
dotix has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
<wolffles> jhass: that worked perfectly with my little block. i dont understand what the * before positions does
hxegon_AFK is now known as hxegon
bronson has quit [Remote host closed the connection]
rubynoobie has quit [Ping timeout: 252 seconds]
rgtk has joined #ruby
<adaedra> wolffles: it's a splat. It takes the array contents and pass them as arguments.
jbrhbr has joined #ruby
solocshaw has joined #ruby
duckpuppy has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
dotix has quit [Remote host closed the connection]
zdman135 has joined #ruby
tectonic has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
FernandoBasso has quit [Quit: Leaving]
solocshaw has quit [Remote host closed the connection]
Yzguy has joined #ruby
solocshaw has joined #ruby
cdg has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<wolffles> thanks adaedra
zdman135 has quit [Read error: Connection reset by peer]
sp1rs has joined #ruby
zdman135 has joined #ruby
<sp1rs> Hi
<sp1rs> i have installed rspec, but when i tried $rspec on terminal it says that command not found
mdw has quit [Quit: Sleeping Zzzzz]
<sp1rs> any help
<sp1rs> gem which rspec
<sp1rs> /Users/local/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-3.4.0/lib/rspec.rb
<adaedra> rbenv rehash
<hxegon> ^
<havenwood> we should have the bot spam `rbenv rehash` if anyone says "rbenv"
<adaedra> :p
<hxegon> havenwood or just an ?rbenv command
<havenwood> or just tell them to tweet to DHH for support
<adaedra> ahah
<havenwood> :P
<hxegon> that says something like, have you tried 'rbenv rehash' or checked your path?
<havenwood> have you tended your garden of shims lately?
<adaedra> ?rbenv
<ruboto> I don't know anything about rbenv
agent_white has joined #ruby
<adaedra> !fact mk rbenv Missing command under rbenv? Did you try `rbenv rehash`?
<ruboto> adaedra, I will remember that rbenv is Missing command under rbenv? Did you try `rbenv rehash`?
<hxegon> thanks adaedra
solocshaw has quit [Ping timeout: 260 seconds]
<hxegon> can anyone do that?
<adaedra> no.
Yzguy has quit [Ping timeout: 265 seconds]
<hxegon> probably a good idea.
solocshaw has joined #ruby
<sp1rs> adaedra: rbenv rehash worked but why ?
<sp1rs> btw thx
DrCode has joined #ruby
<adaedra> sp1rs: that's how rbenv works: it creates `shims`, small programs which will call the good gem for current version.
<adaedra> When you install a gem that installs a command, you need to rehash to create/update the shims.
<havenwood> sp1rs: Instead of adding the RubyGems bin/ dir to PATH and setting GEM_HOME, GEM_PATH, etc like chruby does, rbenv makes a bunch of shims.
<sp1rs> adaedra, havenwood: cool thx
rigel_ has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0/20151210084713]]
eldariof has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
shanemcd has joined #ruby
* adaedra ponders adding "or use a sensible version manager like chruby" at the end of ?rbenv
<havenwood> mmm
blackmesa has joined #ruby
<hxegon> I really don't get the reason for rbenv hate
<adaedra> The need for rbenv rehash, mainly, I guess.
ht__ has quit [Quit: Konversation terminated!]
dlitvak has joined #ruby
nerium has joined #ruby
<hxegon> I understand, but its a small wart on an otherwise extremely simple, non-invasive, useful tool
ht__ has joined #ruby
<adaedra> Well, there's chruby
<hxegon> well, that and the whole 'eval "$(rbenv init - )" thing :)
<jbrhbr> rbenv rehash is at least consistent with shell behavior kinda, and guessable
<jbrhbr> altogether throughout my experience learning ruby stuff so far, i'm continuously pleased by the degree of guessability of most things
dotix has joined #ruby
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
atomical_ has joined #ruby
<hxegon> >> 'hello'.chars # for example
<ruboto> hxegon # => ["h", "e", "l", "l", "o"] (https://eval.in/489917)
Coldblackice has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
atomical has quit [Ping timeout: 250 seconds]
dotix has quit [Remote host closed the connection]
Bloomer has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
lnx has joined #ruby
aegis3121 has joined #ruby
davejlong has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 256 seconds]
davejlong has joined #ruby
infernix has joined #ruby
moeabdol1 has joined #ruby
mostlybadfly has joined #ruby
<shevy> jbrhbr right, that always made me wonder about these tools then, how you have to fiddle with shell stuff still :)
ramfjord has joined #ruby
Jackneill has quit [Ping timeout: 272 seconds]
wolffles has quit [Quit: wolffles]
blackmesa has quit [Ping timeout: 260 seconds]
lacuna has quit [Remote host closed the connection]
Jackneill has joined #ruby
jobewan has joined #ruby
moeabdol has quit [Ping timeout: 245 seconds]
sandstrom has joined #ruby
last_staff has joined #ruby
agit0 has joined #ruby
djbkd has joined #ruby
agit0 has quit [Client Quit]
paradoja has quit [Ping timeout: 240 seconds]
colegatron has joined #ruby
<shevy> you have a terse, usually elegant syntax ... and then suddenly, bam! shell syntax jumps in
<fexilal> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.
<fexilal> sorry, elbow on keyboard
<havenwood> fexilal: SyntaxError: unexpected '.'
sorbo_ has joined #ruby
andywojo has quit [Ping timeout: 260 seconds]
riceandbeans has joined #ruby
<shevy> hehe
<riceandbeans> what's the proper term for methods than are like foo?
<riceandbeans> boolean returning
<havenwood> riceandbeans: example methods :P
<riceandbeans> no
<shevy> curious getters !
<riceandbeans> like, foo.bar? vs foo.bar
<riceandbeans> what do you call the boolean returning ones
<riceandbeans> the correct term
davejlong has quit [Remote host closed the connection]
<riceandbeans> I want to write it in documentation for a chef library I wrote, which is ruby, and I don't know the actual correct word
<jbrhbr> predicate is one word
<havenwood> riceandbeans: predicate method
<riceandbeans> thank you
decoponio has quit [Quit: Leaving...]
<havenwood> riceandbeans: truthy and falsey returns, not necessarily true and false
<riceandbeans> ...wtf does that mean?
<havenwood> >> 0.nonzero?
<ruboto> havenwood # => nil (https://eval.in/489919)
<havenwood> riceandbeans: nil is falsey
<havenwood> >> 42.nonzero?
<ruboto> havenwood # => 42 (https://eval.in/489920)
<havenwood> riceandbeans: 42 is truthy
<havenwood> >> [!!nil, !!42]
<ruboto> havenwood # => [false, true] (https://eval.in/489921)
<riceandbeans> shouldn't 0 be true and 1 be false?
<havenwood> riceandbeans: 0 is truthy
<Papierkorb> huh?
<jbrhbr> depends on the language
<havenwood> >> !!0
nfk|laptop has quit [Ping timeout: 260 seconds]
<ruboto> havenwood # => true (https://eval.in/489922)
<jbrhbr> (ignoring the backwardsness there)
<havenwood> riceandbeans: *Everything* but `nil` and `false` are truthy.
<riceandbeans> !!1
<havenwood> riceandbeans: #=> true
Trynemjoel has quit [Ping timeout: 250 seconds]
<shevy> riceandbeans would you want nil to be true :)
<havenwood> riceandbeans: There's no way to create a falsey value other than `nil` and `false`.
<riceandbeans> this concept of falsiness scares me and I find it uncomfortable
<jbrhbr> riceandbeans: what's your reference point?
<riceandbeans> define 'reference point'
<jbrhbr> past experiences that contrast with what you are learning now
<riceandbeans> I do ruby and perl, some python, but I don't get super deep into any of them, I'm not making masterpieces by myself
A124 has quit [Read error: Connection reset by peer]
<riceandbeans> I'd say I'm most comfortable in perl
<jbrhbr> perl and python both have truthiness and falsiness
<riceandbeans> still, falsey and truthy sound weird
<jbrhbr> both with slightly different rules
davejlong has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Papierkorb> riceandbeans: it's a common concept in scripting languages (at least).
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jbrhbr> those terms are colloquial and used in all languages, but they are more official in ruby than in the others
aegis3121 has joined #ruby
rgtk has joined #ruby
Trynemjoel has joined #ruby
<jbrhbr> riceandbeans: in python, [], '', None, and 0 are all falsey, for example, but none of them would satisfy an object quality check against False
kies^ has joined #ruby
rrichardsr3 has joined #ruby
<Papierkorb> uargh, that's PHP-style ugly right there
lannonbr has joined #ruby
mdw has joined #ruby
<jbrhbr> object equality*
A124 has joined #ruby
rgtk has quit [Remote host closed the connection]
eldariof has quit []
<riceandbeans> my education has never been formal with computing
<riceandbeans> anyway
cassioscabral has quit [Quit: cassioscabral]
<jbrhbr> i think your state of alarm is reasonable
<riceandbeans> I don't think for my particular case that I need to worry about truthy or falsey for my predicate methods
<riceandbeans> I'm checking for specific things and either doing return true or return false on the methods
<jbrhbr> the fact that languages differ on these semantics is arguably an indication of ambiguity with respect to one's intuition around how they should function
<havenwood> riceandbeans: Just be glad it's not JavaScript where `!![] #=> true` and `!!"" #=> false`... Etc, etc.
doodleha_ has joined #ruby
<riceandbeans> :( I had been hoping to pick up JS within the next few months...
<riceandbeans> mostly for angular/backbone
radgeRayden has joined #ruby
<jbrhbr> funny
arup_r has joined #ruby
last_staff has quit [Ping timeout: 276 seconds]
adgtl has quit [Remote host closed the connection]
civos has joined #ruby
DoubleMalt has joined #ruby
karapety_ has joined #ruby
<shevy> riceandbeans note that it is just a regular method, it can return anything including non-truthy/non-falsey
JakFrist has joined #ruby
<riceandbeans> ...what
<riceandbeans> if it can return anything then why make it different with the ? ?
moei has quit [Quit: Leaving...]
wldcordeiro has joined #ruby
<shevy> what do you mean with "different"
<jbrhbr> the '?' is a naming convention to indicate how it should be used
<shevy> it's just part of the name of the method
<riceandbeans> I thought it forced the return value to be 0,1
<riceandbeans> my predicate methods look nothing like that
<shevy> nothing is forced, it is a regular method name
<jbrhbr> it's just a name
mdw has quit [Quit: Sleeping Zzzzz]
<riceandbeans> I have stuff like...
<shevy> you can have your method return cats
<riceandbeans> def foo?
<riceandbeans> ...
bronson has joined #ruby
<riceandbeans> if result.size == 0
<riceandbeans> return true
<riceandbeans> else
<riceandbeans> return false
<riceandbeans> end
<riceandbeans> end
diegorv has joined #ruby
<riceandbeans> maybe that's not rubyesque
<jbrhbr> it should just be `def foo?; result.size == 0; end`
<shevy> riceandbeans you can shorten this to one line of code
tvon has quit [Quit: tvon]
agent_white is now known as agent_afk
<jbrhbr> or `def foo?; result.size.zero?; end
pawnbox has quit [Remote host closed the connection]
blackjid has quit [Max SendQ exceeded]
pawnbox has joined #ruby
Ox0dea has joined #ruby
<riceandbeans> how meta, a predicate in a predicate
p1k has quit [Ping timeout: 272 seconds]
conta has quit [Ping timeout: 265 seconds]
conta_ has joined #ruby
<Ox0dea> Is that meta?
blackjid has joined #ruby
<riceandbeans> how about this one
diegorv has quit [Client Quit]
<Ox0dea> The predicate's query would have to be about itself for it to be meta, I reckon.
<riceandbeans> I have def foo; return File.exists?('path');end
<riceandbeans> you're saying I could/should take out return?
<Ox0dea> "Do you like this question?" is arguably meta, since it's a question about itself, and it is itself a question.
<jbrhbr> riceandbeans: right, it's not needed there
bronson has quit [Ping timeout: 265 seconds]
scepticulous has joined #ruby
symm- has quit [Quit: Leaving...]
snockerton has joined #ruby
andywojo has joined #ruby
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 272 seconds]
mdw has joined #ruby
arup_r has quit [Remote host closed the connection]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
solocshaw has joined #ruby
benlieb has quit [Quit: benlieb]
PlasmaStar has quit [Ping timeout: 255 seconds]
rrichardsr3 has quit [Quit: He who dares .... wins.]
ht__ has quit [Client Quit]
andywojo has quit [Ping timeout: 265 seconds]
PlasmaStar has joined #ruby
ht__ has joined #ruby
bronson has joined #ruby
darkf has quit [Quit: Leaving]
nettoweb has joined #ruby
sorbo_ has quit [Remote host closed the connection]
ruid has joined #ruby
DoubleMalt has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
marcdel has joined #ruby
davejlong has quit [Remote host closed the connection]
<fexilal> I have a question: if you learnt ruby from a book, which book was it and how long did it take to finish the book?
ohaibbq has joined #ruby
<shevy> pickaxe
<shevy> I never finished it, I think reading it took somewhat a month or so
<shevy> it had like 300 pages or reference or more
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<Ox0dea> I learned the philosophy of Ruby from the poignant guide. I realized that was all that mattered, so then I stopped learning Ruby.
atomical has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
davejlon_ has joined #ruby
codecop has joined #ruby
bkxd_ has quit [Ping timeout: 250 seconds]
rakm has joined #ruby
atomical_ has quit [Ping timeout: 276 seconds]
tectonic has quit [Ping timeout: 250 seconds]
CR has joined #ruby
steffkes has quit [Ping timeout: 264 seconds]
nettoweb has quit [Ping timeout: 240 seconds]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
last_staff has joined #ruby
pawnbox has joined #ruby
marcdel has quit [Quit: Textual IRC Client: www.textualapp.com]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
dotix has quit [Remote host closed the connection]
devoldmx has joined #ruby
marcdel has joined #ruby
marcdel has quit [Client Quit]
dotix has joined #ruby
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
nettoweb has joined #ruby
jessemcgilallen has joined #ruby
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
atumzin has quit [Ping timeout: 260 seconds]
marcdel has joined #ruby
davejlon_ has quit [Remote host closed the connection]
blackgoat has joined #ruby
zdman135 has quit [Ping timeout: 250 seconds]
ElSif has quit [Read error: Connection reset by peer]
nettoweb has quit [Max SendQ exceeded]
pawnbox has quit [Ping timeout: 272 seconds]
Begi has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
dotix has quit [Ping timeout: 260 seconds]
DoubleMalt has joined #ruby
doodleha_ has quit [Remote host closed the connection]
devbug has joined #ruby
grn has joined #ruby
sp1rs has quit [Ping timeout: 256 seconds]
dlitvak has quit [Ping timeout: 272 seconds]
<Begi> Hello #ruby !
<Begi> Is there a ruby bot here ? Can we show one-line code on IRC ?
Wsewolod has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nertzy has joined #ruby
nerium has quit [Quit: nerium]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jmignault has quit [Quit: Quittin' time, Ralph]
<hxegon> >> true # Begi
<ruboto> hxegon # => true (https://eval.in/489949)
<hxegon> Begi but if it's many lines consider using gist or eval.in
<Begi> >> puts 'Hello World !'
<ruboto> Begi # => Hello World ! ...check link for more (https://eval.in/489950)
<Begi> Nice !
<hxegon> much convenience very modern wow
symm- has joined #ruby
htmldrum has joined #ruby
fullofcaffeine has joined #ruby
<Ox0dea> Begi: Do you have a line of code to show us?
Jackneill has quit [Ping timeout: 276 seconds]
<Begi> No, I was just asking to know
<Ox0dea> Shame.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Begi> I'm starting Ruby
<Ox0dea> Yay!
<hxegon> ... Shame. Shame... *ring*
<Ox0dea> Cersei kills Snape.
davejlong has joined #ruby
<Begi> After Python & Perl (<3), I come for Ruby !
<Ox0dea> Why?
<Begi> I'm curious
<hxegon> Ox0dea spoiler warning, please. I'm not through goblet of fire yet >:|
threh has joined #ruby
<Ox0dea> Did you mean A Storm of Swords?
<Begi> and I've heard a lot of good thnigs about Ruby
<hxegon> A storm of secrets. Begi you've heard correct (probably)
<Ox0dea> Begi: What sorts of things?
yfeldblum has joined #ruby
<Ox0dea> A Game of Stones.
joneshf-laptop has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
<Begi> Effective, simple
diegoviola has joined #ruby
<Ox0dea> Ruby is hardly simple.
<hxegon> Order of the Crows
<Begi> I'd also try Rails so... :)
<Ox0dea> A Dream of Hallows.
ss_much has joined #ruby
<hxegon> Half blood Kings :D
<Ox0dea> Nice!
dlitvak has joined #ruby
<Ox0dea> Jon Starkgaryen = Azor Ahai confirmed?
beast has quit [Remote host closed the connection]
jobewan is now known as jobewan_away
azgil has quit [Quit: Leaving]
beast_ has quit [Quit: Leaving]
jobewan_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
azgil has joined #ruby
<hxegon> Joffery == Malfoy?
<Ox0dea> Same actor, even. :P
<Begi> I've a little question.
<Ox0dea> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
dopie has joined #ruby
<hxegon> Joffrey is in Dark knight too. How awesome would GOT be if the king of the north was straight up batman.
yqt has joined #ruby
<Begi> In a lot of other languages, we can do for example False + 1 = 1. in Ruby, we can't. I guess it's a matter of definition, but why this choice ?
<Begi> >> false + 1
<ruboto> Begi # => undefined method `+' for false:FalseClass (NoMethodError) ...check link for more (https://eval.in/489954)
<Ox0dea> Begi: That expression *shouldn't* make sense, and in Ruby it doesn't.
DoubleMalt has quit [Ping timeout: 264 seconds]
<Ox0dea> `false` is not implicitly equal to 0, and that's great.
<hxegon> Begi ... what does False + 1 mean in other languages? that doesn't make sense.
htmldrum has quit [Ping timeout: 260 seconds]
<Ox0dea> $ python -c 'print(False + 1)'
<Ox0dea> 1
<Begi> With Perl, it works too
Didac has quit [Ping timeout: 240 seconds]
crdpink2 has joined #ruby
prestorium has quit [Quit: Leaving]
<Ox0dea> Wanting to do arithmetic on booleans almost certainly means you don't understand your problem or your data well enough.
<hxegon> *facepalms
ruid has quit [Ping timeout: 260 seconds]
crdpink has quit [Ping timeout: 250 seconds]
<Begi> I like use true and false like int. That was my little question. Sometimes, it's useful
<Ox0dea> When?
synthroid has quit []
fullofcaffeine has quit [Remote host closed the connection]
<Begi> (it's not I like, I sometimes use)
<Ox0dea> Could you provide an example?
<Begi> Actually, i've no idea...
<Ox0dea> Yay! <3
<Ox0dea> !next
<hxegon> I would argue that there is no case where doing that is the best option, but that could be strong language shaping.
dopie has quit [Quit: Lost terminal]
dopie has joined #ruby
<Ox0dea> I mean, I do use `^= 1` to "flip a switch" that I want to use as an index, but that more clearly conveys intent than `foo = !foo` to do the flip.
<Ox0dea> >> s = 1; 10.times.map { s ^= 1 }
<ruboto> Ox0dea # => [0, 1, 0, 1, 0, 1, 0, 1, 0, 1] (https://eval.in/489955)
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
[Butch] has joined #ruby
pawnbox has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
<hxegon> Ox0dea I would ask wtfeven is ^=, but I'm getting a burger, so I aint got time fo that ish.
ht__ has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
<Ox0dea> It's in-place XOR.
nocd has joined #ruby
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sorbo_ has joined #ruby
aegis3121 has joined #ruby
conta__ has joined #ruby
conta_ has quit [Read error: Connection reset by peer]
Tricon has quit [Quit: Leaving...]
agit0 has joined #ruby
bradleyprice has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
crazydiamond has quit [Ping timeout: 246 seconds]
weaksauce has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
jbrhbr has quit [Quit: Leaving.]
nertzy has quit [Quit: This computer has gone to sleep]
ghr has quit [Ping timeout: 276 seconds]
stannard has quit [Ping timeout: 250 seconds]
Didac has joined #ruby
ghr has joined #ruby
<Begi> How can I check the incoming type in a function ? https://gist.github.com/Emeric54/ac1b1add3814ff156380
ThomaSs has joined #ruby
varunwachaspati has quit [Quit: Connection closed for inactivity]
xapak has joined #ruby
futilegames has quit [Ping timeout: 255 seconds]
bradleyprice has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
mistermocha has joined #ruby
yokel has quit [Ping timeout: 255 seconds]
xapak has left #ruby [#ruby]
blt has joined #ruby
atomical_ has joined #ruby
nerium has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
karapety_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
DaniG2k has joined #ruby
atomical has quit [Ping timeout: 260 seconds]
<shevy> Begi for instance: if variable.is_a? Fixnum
mistermocha has quit [Ping timeout: 276 seconds]
<shevy> Begi however it may be easier to either raise if the input is invalid; or convert into the target format that you want to have, before you send to the if/else clause inside of your method
yokel has joined #ruby
<Begi> Ok, thanks shevy !
mistermocha has joined #ruby
conta__ has quit [Read error: Connection reset by peer]
yashinbasement has joined #ruby
Didac has quit [Ping timeout: 250 seconds]
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
fullofcaffeine has joined #ruby
conta has joined #ruby
shanemcd has quit [Remote host closed the connection]
mary5030_ has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
yokel has quit [Ping timeout: 260 seconds]
bradleyprice has joined #ruby
rakm has joined #ruby
davejlong has quit [Remote host closed the connection]
mdw has joined #ruby
xapak has joined #ruby
<xapak> Hello.
mary5030 has quit [Ping timeout: 272 seconds]
<xapak> I compile Ruby through rbenv (ruby-build), but for some reason, for 2.2.4 (2.2.0 installs just fine) last message is this (and the process looks as if it is stuck), do you think it’s actually doing something and I should wait, or it’s really stuck?
<xapak> make[2]: Leaving directory '/tmp/ruby-build.20151223154345.20727/ruby-2.2.4/ext/openssl'
dextertzu has quit [Quit: WeeChat 1.3]
grn has quit [Remote host closed the connection]
<xapak> CPU usage is definitely not high during that part, which makes me think it stalled.
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
yokel has joined #ruby
abronca has quit [Quit: abronca]
Didac has joined #ruby
ta has joined #ruby
pawnbox has joined #ruby
ohaibbq has quit [Ping timeout: 260 seconds]
moei has joined #ruby
moei has quit [Client Quit]
grn has joined #ruby
wolffles has joined #ruby
<shevy> sounds as if it is stuck trying to compile the openssl bindings
conta has quit [Read error: Connection reset by peer]
<shevy> you should in principle be able to use ruby without openssl, or compile them lateron if you cd to ext/openssl/ there
fullofcaffeine has quit [Remote host closed the connection]
conta has joined #ruby
dotix has joined #ruby
<xapak> shevy, but do you know of a way to truly know if it’s stuck? That’s the thing, make CPU consumption is so low, that I still don’t know what’s really going on.
pawnbox has quit [Ping timeout: 264 seconds]
fullofcaffeine has joined #ruby
<shevy> no real idea; I don't think this can happen if you compile directly without rbenv though, at least I never had an infinite loop myself. I don't use rbenv though so you have to ask someone who used rbenv a lot ultimately
DaniG2k has quit [Quit: leaving]
<havenwood> xapak: You can install 2.2.4 for rbenv with ruby-install (which will use your system openssl package rather than shipping its own :O): ruby-install --install-dir ~/.rbenv/versions/2.2.4 ruby 2.2.4
codecop has quit [Remote host closed the connection]
<xapak> havenwood, oh, nice, I’ll definitely try that out. Thanks! :)
camilasan has quit [Remote host closed the connection]
<havenwood> xapak: or you could see if building with --verbose shows anything
colegatron has quit [Ping timeout: 260 seconds]
jobewan has joined #ruby
davejlong has joined #ruby
blackmesa has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
<xapak> havenwood, the line I posted is the last thing I get with --verbose:
h99h9h88 has joined #ruby
<xapak> make[2]: Leaving directory '/tmp/ruby-build.20151223161758.13467/ruby-2.2.4/ext/openssl'
dotix has quit [Ping timeout: 250 seconds]
<havenwood> xapak: Add one or more checksum flags with ruby-install for Ruby 2.2.4 if you'd like since the definition hasn't been synced yet: --sha256 31203696adbfdda6f2874a2de31f7c5a1f3bcb6628f4d1a241de21b158cd5c76
<havenwood> xapak: Eeeek... Yeah, I'd just use ruby-install in any case. :)
conta has quit [Ping timeout: 256 seconds]
conta_ has joined #ruby
<xapak> Coolio. Thank you all for the comments.
mary5030_ has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
<havenwood> xapak: you're welcome
rgtk has joined #ruby
mary5030 has joined #ruby
dhollinger has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
h99h9h88 has quit [Remote host closed the connection]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 260 seconds]
ht__ has quit [Client Quit]
davejlong has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
grn has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 240 seconds]
xapak has left #ruby [#ruby]
FastJack has quit [Ping timeout: 250 seconds]
atomical has joined #ruby
htmldrum has joined #ruby
moei has joined #ruby
<shevy> xmas xmas xmas
<Zarthus> Are we there Yeti?
rgtk has quit [Ping timeout: 246 seconds]
nocd has quit [Quit: nocd]
fullofcaffeine has joined #ruby
FastJack has joined #ruby
grn has joined #ruby
yokel has joined #ruby
nkwsy has joined #ruby
jessemcgilallen has quit [Ping timeout: 260 seconds]
atomical_ has quit [Ping timeout: 260 seconds]
<havenwood> The Elfabet has Noel: [*?a..?z].rotate(11).drop(1).rotate(-11)
dopie has quit [Quit: Lost terminal]
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dnewkerk has joined #ruby
duckpuppy has joined #ruby
lalalaaa has joined #ruby
colegatron has joined #ruby
DoubleMalt has joined #ruby
<havenwood> Or as we'll be able to say this Christmas: 'a'.upto('z').grep_v /l/
ellistaa has joined #ruby
<ellistaa> is there a dif between methods and functions? i’m wondering why in ruby we have methods instead of functions
DoubleMalt has quit [Remote host closed the connection]
camilasan has joined #ruby
yos7ph has joined #ruby
beast has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
nkwsy_ has joined #ruby
pdoherty has joined #ruby
last_staff has quit [Quit: last_staff]
doodleha_ has joined #ruby
nkwsy has quit [Ping timeout: 255 seconds]
beast_ has joined #ruby
atomical_ has joined #ruby
hectortrope has quit [Remote host closed the connection]
skcin7 has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
agit0 has quit [Quit: zzzZZZ….]
atomical has quit [Ping timeout: 265 seconds]
Begi has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
smactive has joined #ruby
Fezzler has joined #ruby
kadoppe has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 245 seconds]
shanemcd has joined #ruby
kadoppe has joined #ruby
speaking2ode has quit [Ping timeout: 245 seconds]
fexilal has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
<sorbo_> ellistaa: everything in ruby is an object, so even "free" functions are associated with an object
aegis3121 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> ellistaa: that's basic POO. The difference between functions and methods is that the latter acts on an object.
<adaedra> OOP*
<sorbo_> since functions associated with objects are methods, functions and methods are more or less the same thing in ruby
fullofcaffeine has quit [Remote host closed the connection]
<adaedra> There's technically no functions as such in Ruby :)
<sorbo_> ^ ++
user083 has quit [Ping timeout: 245 seconds]
idefine has quit []
RegulationD has quit [Remote host closed the connection]
aegis3121 has joined #ruby
<adaedra> But methods are not proper to Ruby. Have objects, have methods. C++ has methods. PHP has methods. And many other languages do.
<ellistaa> so in other languages like js, functions that belong to prototypes are still called functions … why aren’t they called methods?
Faisal has joined #ruby
Faisal has quit [Remote host closed the connection]
yos7ph has quit [Quit: Leaving]
<ellistaa> is this a rule in CS that if a function belongs to an object it becomes a method?
<adaedra> Because JS is a special snowflake which loves to do everything differently /s
ESpiney has quit [Read error: Connection reset by peer]
shanemcd has quit [Ping timeout: 276 seconds]
vikas027 has joined #ruby
<KrzaQ> Can I assign-expand an array to a hash? I'd like somethign like h[:foo,:bar,:baz] = [1,2,3] => {foo: 1, bar: 2, baz:3}
<havenwood> &ri Module#module_function
<`derpy> No results
conta_ has quit [Ping timeout: 260 seconds]
<adaedra> &ri module_function
<`derpy> No results
<havenwood> Anyways, to play devil's advocate: http://ruby-doc.org/core/Module.html#method-i-module_function
dlitvak has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
aegis3121 has quit [Client Quit]
sigurding has joined #ruby
Fezzler has quit [Quit: Leaving]
<al2o3-cr> KrzaQ: %i[foo bar baz].zip([1,2,3]).to_h
<zenspider> rawr
<adaedra> what the.
<KrzaQ> cool, thanks al2o3-cr
<zenspider> al2o3-cr: racket has some nice built in iterators for things like naturals. I wish we had the same thing
<KrzaQ> So I guess it's possible, just not pretty
nkwsy_ has quit [Ping timeout: 272 seconds]
<adaedra> "Nothing known about Module#module_function"
<adaedra> wth, ri.
<adaedra> havenwood: it works with your ri?
frem has quit [Quit: Connection closed for inactivity]
vikas027 has quit [Read error: Connection reset by peer]
<havenwood> adaedra: yup
<zenspider> >> Hash[%i[foo bar baz].each.with_index.to_a]
<ruboto> zenspider # => {:foo=>0, :bar=>1, :baz=>2} (https://eval.in/490033)
<zenspider> ah. off by one. meh
blackmesa has quit [Ping timeout: 276 seconds]
<adaedra> That's strange, my ri can't find it.
<al2o3-cr> use each.with_index(1)
blackgoat has quit [Quit: WeeChat 1.3]
<zenspider> adaedra: rvm?
<adaedra> No
<zenspider> al2o3-cr: ah cool. I didn't know that trick
<KrzaQ> I don't want indexes in my array, it was just an example. I guess not the best one
<adaedra> I have a manually generated rubydoc folder I feed to ri. Works with the rest.
<zenspider> adaedra: for the core/stdlib stuff??
cassioscabral has joined #ruby
sigurding has quit [Client Quit]
<adaedra> zenspider: yeah
lkba has quit [Remote host closed the connection]
<zenspider> adaedra: why?
shanemcd has joined #ruby
dorei has quit []
<adaedra> because I somehow didn't have the core docs and, for the use I do (feed it to the bot), it seemed ok and I was lazy to fix the real issue, silly me. It seemed to work until now.
ellistaa has quit [Quit: ellistaa]
n_blownapart has joined #ruby
<zenspider> hah
<havenwood> &ri Module.module_function
<`derpy> No results
wildlander has joined #ruby
grn has quit [Remote host closed the connection]
<zenspider> do you install your own rubies? if so, there's a make task to build the rdoc and install it
ta has quit [Remote host closed the connection]
<adaedra> ".module_function not found, maybe you meant: YARD::CodeObjects::MethodObject#module_function?"
<adaedra> It may be system ruby on the distant machine
Aasha has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
nerium has quit [Quit: nerium]
<adaedra> Lazyness, developper best and worst friend.
shanemcd has quit [Ping timeout: 255 seconds]
nerium has joined #ruby
Wsewolod has quit [Ping timeout: 255 seconds]
dlitvak has quit [Ping timeout: 246 seconds]
<adaedra> &ri module_function
<adaedra> Here you go~
ramortegui has quit [Quit: Ex-Chat]
<adaedra> That doesn't explain why my own doc didn't work, tho ¯\_(ツ)_/¯
dlitvak has joined #ruby
Fezzler has joined #ruby
nkwsy has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
shanemcd has joined #ruby
duncannz has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackgoat has joined #ruby
grn has joined #ruby
ruby-lang210 has joined #ruby
Aasha is now known as Wsewolod
devoldmx has joined #ruby
themsay has joined #ruby
nerium has quit [Quit: nerium]
beast has quit [Quit: Leaving]
shanemcd has quit [Ping timeout: 260 seconds]
nerium has joined #ruby
beast_ has quit [Remote host closed the connection]
andywojo has joined #ruby
grn has quit []
pwnd_nsfw has joined #ruby
solars has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
lenwood has quit [Ping timeout: 255 seconds]
BSaboia has quit [Ping timeout: 256 seconds]
JACAEK-BB has joined #ruby
PedramT has quit [Remote host closed the connection]
shanemcd has joined #ruby
JACAEK-BB has left #ruby [#ruby]
Fezzler has quit [Quit: Leaving]
andywojo has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
andywojo has joined #ruby
Guest71659 is now known as zly
Dimik has joined #ruby
zly has quit [Changing host]
zly has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
polishdub has quit [Quit: Leaving]
Wsewolod has quit [Ping timeout: 265 seconds]
shanemcd has quit [Ping timeout: 245 seconds]
konsolebox has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
presidentbeef has joined #ruby
zapata has quit [Ping timeout: 240 seconds]
zenlot3 has joined #ruby
zenlot2 has quit [Ping timeout: 276 seconds]
AlphaAtom has joined #ruby
shanemcd has joined #ruby
akem has joined #ruby
shanemcd_ has joined #ruby
AlphaAtom has quit [Client Quit]
thezanke has joined #ruby
FooMunki has quit [Quit: FooMunki]
houhoulis has joined #ruby
dlitvak_ has joined #ruby
nfk|laptop has joined #ruby
AlphaAtom has joined #ruby
blandflakes has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
moeabdol1 has quit [Ping timeout: 250 seconds]
FooMunki has joined #ruby
blt has quit [Quit: WeeChat 1.3]
shanemcd_ has quit [Ping timeout: 256 seconds]
zapata has joined #ruby
axl_ has left #ruby [#ruby]
rodfersou has quit [Quit: leaving]
vdamewood has joined #ruby
solars has quit [Ping timeout: 255 seconds]
blandflakes has quit [Ping timeout: 264 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
samgerber has joined #ruby
kies^ has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
nertzy has joined #ruby
symm-_ has joined #ruby
pawnbox has joined #ruby
yokel has joined #ruby
Spami has joined #ruby
azgil has left #ruby ["Leaving"]
symm- has quit [Ping timeout: 246 seconds]
yashinbasement has quit [Quit: Leaving]
dlitvak_ has quit [Ping timeout: 260 seconds]
ruby-lang872 has joined #ruby
VeryBewitching has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
<VeryBewitching> G'day folks.
p0wn3d_ has quit [Ping timeout: 265 seconds]
<shevy> hi BeryVewitching
<VeryBewitching> How's it goin' shevy?
Gnut has quit [Ping timeout: 255 seconds]
agit0 has joined #ruby
tectonic has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
<shevy> I am waiting for xmas
ruby-lang210 has quit [Ping timeout: 252 seconds]
* VeryBewitching nods.
<VeryBewitching> Tis the season for tolerating odd family members. :D
agit0 has quit [Client Quit]
<samgerber> If I can't think of any odd family members, does that mean it's me?
yokel has quit [Ping timeout: 260 seconds]
ruby-lang872 has quit [Ping timeout: 252 seconds]
InvGhost has quit [Read error: Connection reset by peer]
<Radar> samgerber: yes
InvGhost has joined #ruby
ruby-lang029 has joined #ruby
lipoqil has joined #ruby
<VeryBewitching> haha
agit0 has joined #ruby
dr3w has quit [Ping timeout: 276 seconds]
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
PaulCapestany has quit [Remote host closed the connection]
yokel has joined #ruby
<shevy> hahaha
<shevy> don't worry samgerber we can adopt you
PaulCapestany has joined #ruby
ruby-lang029 has left #ruby [#ruby]
shanemcd has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
rikkipitt has joined #ruby
Emmanuel_Chanel_ has joined #ruby
lacuna has joined #ruby
azgil has joined #ruby
blandflakes has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
nkwsy has quit [Ping timeout: 265 seconds]
nkwsy has joined #ruby
wolffles has quit [Quit: wolffles]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<azgil> who used DataGrid from Jetbrains?
<azgil> a new database IDE
joneshf-laptop has joined #ruby
<azgil> i tried but didnt like it
jbrhbr has joined #ruby
djbkd has quit [Quit: My people need me...]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<shevy> hmm in a ruby class I may use: Signal.trap('SIGINT') { exit }
<shevy> so when I hit ctrl-c it will interrupt
atomical has joined #ruby
<shevy> but a "^C" also appears on the terminal... is this normal?
atomical_ has quit [Ping timeout: 240 seconds]
<VeryBewitching> azgil: I use RubyMine's integrated database UI, I haven't needed much more than that.
[Butch] has quit [Quit: I'm out . . .]
baroquebobcat has quit [Quit: baroquebobcat]
stevenxl has quit [Ping timeout: 255 seconds]
joneshf-laptop has quit [Ping timeout: 246 seconds]
shanemcd has joined #ruby
h99h9h88 has joined #ruby
rgtk has joined #ruby
shanemcd_ has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
InvGhost has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
<zenspider> shevy: I believe that is normal and probably a function of your shell or tty setup?
rgtk has quit [Ping timeout: 246 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbrhbr has quit [Quit: Leaving.]
<shevy> zenspider hmm I guess that makes sense
atomical has joined #ruby
duckpuppy has joined #ruby
jbrhbr has joined #ruby
<zenspider> I just did `sleep 5` and ^c'd it. it prints too.
<zenspider> as does: ruby -e 'Signal.trap("SIGINT") { p :woot; exit 1 }; sleep 5'
<zenspider> I'm not sure if it is out of your control, but I think it is outside of ruby
dotix has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
bradleyprice has quit [Remote host closed the connection]
hectortrope has joined #ruby
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yokel has joined #ruby
shanemcd_ has quit [Ping timeout: 260 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
duckpuppy has quit [Ping timeout: 240 seconds]
h99h9h88 has quit [Remote host closed the connection]
stevenxl has joined #ruby
stevenxl has joined #ruby
dotix has quit [Ping timeout: 260 seconds]
agit0 has quit [Quit: zzzZZZ….]
h99h9h88 has joined #ruby
bradleyprice has joined #ruby
ascarter has joined #ruby
<al2o3-cr> shevy: You could do Signal.trap(2, proc { $stderr.write("\b\b"); exit })
devoldmx has joined #ruby
<al2o3-cr> but it's a bit meh
InvGhost has joined #ruby