havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
idefine has quit [Remote host closed the connection]
einarj_ has joined #ruby
einarj has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
urbanmonk has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
einarj_ has quit [Remote host closed the connection]
weemsledeux has joined #ruby
dlitvak has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 245 seconds]
dlitvak has joined #ruby
tildes has joined #ruby
casadei has joined #ruby
casadei has quit [Client Quit]
andrew_ has joined #ruby
betafive has quit [Ping timeout: 276 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
symbol has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]
godzillaenlacasa has joined #ruby
dexter-tzu has joined #ruby
idefine has joined #ruby
KensoDev has quit [Quit: Textual IRC Client: www.textualapp.com]
theery has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Xeago has joined #ruby
dexter-tzu has quit [Ping timeout: 264 seconds]
dfinninger has quit [Remote host closed the connection]
jds has quit [Quit: Connection closed for inactivity]
idefine has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
bb010g has joined #ruby
bhaak has quit [Ping timeout: 250 seconds]
intrigueD has quit [Read error: Connection reset by peer]
intrigueD has joined #ruby
kies^ has joined #ruby
stannard has joined #ruby
kam270 has quit [Quit: Leaving]
allcentury has joined #ruby
RegulationD has joined #ruby
centrx has quit [Ping timeout: 240 seconds]
sepp2k has quit [Quit: Leaving.]
diegoviola is now known as dviola
y2mq37 has quit [Ping timeout: 240 seconds]
stannard has quit [Ping timeout: 250 seconds]
mgorbach has quit [Ping timeout: 276 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
edwardly has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
BTRE has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cheerio]
joonty has joined #ruby
waka has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
mgorbach has joined #ruby
azure32 has quit [Ping timeout: 272 seconds]
joonty has quit [Ping timeout: 245 seconds]
edwardly has joined #ruby
edwardly has joined #ruby
bhaak has joined #ruby
centrx has joined #ruby
aupadhye has joined #ruby
CloCkWeRX has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 240 seconds]
PlasmaStar has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
dlitvak has quit [Remote host closed the connection]
bhaak has quit [Ping timeout: 250 seconds]
PlasmaStar has joined #ruby
chipotle has joined #ruby
azure32 has joined #ruby
theery has quit [Remote host closed the connection]
gak0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abrin has left #ruby [#ruby]
dlitvak has joined #ruby
dcunit3d has joined #ruby
wilbert has quit [Quit: quit]
babblebre has quit [Quit: Connection closed for inactivity]
Gnut has quit [Ping timeout: 240 seconds]
bhaak has joined #ruby
BTRE has joined #ruby
gambl0re has quit [Ping timeout: 250 seconds]
dlitvak has quit [Remote host closed the connection]
kirillzh has joined #ruby
volty has quit [Ping timeout: 260 seconds]
kirillzh has quit [Max SendQ exceeded]
TTilus has quit [Ping timeout: 245 seconds]
kirillzh has joined #ruby
baweaver has quit [Remote host closed the connection]
shock_one has joined #ruby
TTilus has joined #ruby
dlitvak has joined #ruby
skweek has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 245 seconds]
saneax is now known as saneax_AFK
dlitvak has quit [Ping timeout: 272 seconds]
intrigueD has quit [Remote host closed the connection]
haasn has left #ruby ["WeeChat 1.4-dev"]
benlieb has quit [Quit: benlieb]
Synthead has quit [Ping timeout: 252 seconds]
dopamean1 has joined #ruby
shadoi has quit [Quit: Leaving.]
LuckyABA has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
dfockler has quit [Ping timeout: 245 seconds]
benlieb has joined #ruby
dcunit3d has quit [Ping timeout: 252 seconds]
rgb-one has joined #ruby
<rgb-one> yo
<rgb-one> is chr still available in ruby to retrieve the first character of a string?
baweaver has joined #ruby
theery has joined #ruby
x77686d has quit [Quit: x77686d]
idefine has quit [Remote host closed the connection]
Synthead has joined #ruby
<Ox0dea> rgb-one: It is, but why not str[0]?
<rgb-one> str being the sting right?
idefine has joined #ruby
theery has quit [Client Quit]
avahey has joined #ruby
<shevy> str would be any string yes
<shevy> "abc".chr # => "a
<rgb-one> str isn't defined
sneakerhax has quit [Quit: Leaving]
nettoweb has joined #ruby
<shevy> it is an example, I am sure you can manage to substitute
<rgb-one> im using sentence.split.map(&:chr).join
<shevy> you poor man!
<shevy> I started to use .chars after Ox0dea showed me
<shevy> oh
<bronson> Anyone know if they're getting rid of the MyClass::File ambiguity in Ruby 3?
<shevy> .split is not the same as split //
<shevy> :\
<shevy> what amiguity
<shevy> erm *ambi something
tvon has joined #ruby
celly has joined #ruby
<bronson> shevy: resolving MyClass::File to ::File seems absolutely crazy.
<rgb-one> >> sentence = "This is a sentence"; sentence.split.map(&:chr).join
<ruby[bot]> rgb-one: # => "Tias" (https://eval.in/516721)
<bronson> does anyone actually use that feature correclty?
<Ox0dea> >> 'you forget so quick'.scan(/\b\w/).join # ruby[bot]
intrigueD has joined #ruby
<ruby[bot]> Ox0dea: # => "yfsq" (https://eval.in/516722)
<Ox0dea> rgb-one: ^
DLSteve has joined #ruby
UtkarshRay has joined #ruby
intrigueD has quit [Remote host closed the connection]
<rgb-one> cool, cool
<shevy> bronson I sorta have to
<shevy> I have a gtk module and need to scope to the right ::Gtk :(
<rgb-one> so in that case there is no need to split the string
<shevy> I could name it differently like MyGtk but that reads awful
moei has quit [Read error: Connection reset by peer]
Coldblackice has quit [Read error: Connection reset by peer]
<Ox0dea> rgb-one: We did this, like, two months ago?
<bronson> shevy: I don't get it... Why do you need Shevy::Gtk to resolve to ::Gtk
nirix_ has quit [Ping timeout: 245 seconds]
<rgb-one> haha
<bronson> (or whatever the owning module is named)
<rgb-one> yea
joonty has joined #ruby
<rgb-one> longer than 2 months
<shevy> bronson no no... I use toplevel: module Gtk now there
<rgb-one> about 4 or 5
<Ox0dea> Heavens to Murgatroyd!
<Ox0dea> Why're we doing it again?
<rgb-one> I am just revisiting the code
tildes has quit [Read error: Connection reset by peer]
<Ox0dea> Gotcha.
<rgb-one> trying some new stuff out
<Ox0dea> >> String::Hash # bronson
<ruby[bot]> Ox0dea: # => /tmp/execpad-c00ee5d9e751/source-c00ee5d9e751:2: warning: toplevel constant Hash referenced by Strin ...check link for more (https://eval.in/516723)
moei has joined #ruby
<Ox0dea> Is the warning not sufficient for you?
tildes has joined #ruby
<shevy> wow
<Ox0dea> Convoluting constant resolution for the sake of making that an error seems overkill.
<shevy> Ox0dea remembers everything
idefine has quit [Ping timeout: 264 seconds]
<bronson> well, the warning let me figure out what's going on.
<bronson> but thanks to Rails autoloading, the solution was seriously hard to figure out.
Coldblackice has joined #ruby
jtperreault has quit [Ping timeout: 245 seconds]
<bronson> and until we saw the warning in the logs, we were getting intermittent failures.
tildes has quit [Read error: Connection reset by peer]
nirix has joined #ruby
marr has quit [Ping timeout: 245 seconds]
tildes has joined #ruby
<bronson> Ox0dea: any idea why that feature exists? What's the use case?
<shevy> too much magic is not good :)
kaleido has joined #ruby
<bronson> absolutely true.
<bronson> Let's just say that when I described this bug to some interested people, their eyes bugged out.
mickey_mouse_2 has quit [Ping timeout: 250 seconds]
<bronson> "Ruby does WHAT?"
<bronson> And I couldn't tell them why Ruby does this.
<shevy> if you have a toplevel File, and a File inside a namespace, then if you use File inside your inner namespace, it will first resolve to the nearest File; so you need to scope to the outer File via ::File - at the least this is how I remember things
<Ox0dea> bronson: It's really just a byproduct of how constant resolution works.
joonty has quit [Ping timeout: 245 seconds]
konsolebox has joined #ruby
<bronson> shevy: it's the opposite. If I define "Bronson::Hash", I'm living on borrowed time.
<bronson> one day Ruby will interpret Bronson::Hash as ::Hash and everything will break.
marxarelli is now known as marxarelli|afk
<bronson> Apparently I need to be damend careful to never define a class the same as a root-level one.
<shevy> well you specified where it resides there
<shevy> ah
<shevy> you mean something like:
<shevy> module Foo; class Foo
<shevy> yeah that can be fun :)
<bronson> shevy: no I mean module Foo; class File; end
<Ox0dea> >> @bronson::Hash # omgwtf
<ruby[bot]> Ox0dea: # => Hash (https://eval.in/516724)
karmatr0n has joined #ruby
<shevy> bronson but Foo::File will always be clear...
<bronson> you think Foo::File will always be your Foo's class but if you load classes in a different order the Foo::File is a ::File
<bronson> No, that's my point: thanks to this byproduct, Foo::File is ambiguous.
<shevy> first one to be loaded always wins
<bronson> huh? ::File is always loaded first, yet the ambiguity remains.
<shevy> can you show some code
KensoDev has joined #ruby
<bronson> shevy: Ox0dea's link is a great example.
<shevy> which one is that
<bronson> if you're using Rails's autoloader, you don't have much control over load order.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> Ox0dea look what you are doing!!!
davedev2_ has joined #ruby
<Ox0dea> shevy: ?
<shevy> String::Hash
<bronson> shevy: it happens with Anything::Hash
<Ox0dea> Where Anything is defined, at any rate.
<bronson> right.
<Ox0dea> And is_a?(Module) or `nil`.
davedev24 has quit [Ping timeout: 260 seconds]
<bronson> I take it shevy thinks this is crazy too. :)
<shevy> hmm
<Ox0dea> bronson: Constant resolution is dead-simple.
<shevy> I think I remember some discussion about that once but I can not remember where and when...
karmatr0n has quit [Ping timeout: 250 seconds]
<shevy> but yeah, I would naively assume that Hash resides in String now
<bronson> Ox0dea: if Foo::File always resolved to Foo::File, I would agree with you.
<bronson> I don't see how this can be considered dead simple...?
replay has quit []
<Ox0dea> bronson: The constant resolution algorithm just traverses the ancestor chain.
Ebok has joined #ruby
<bronson> I would expect String::Hash to throw an "Undefined constant String::Hash" error
<Ox0dea> bronson: How about Object::Hash?
<bronson> Ox0dea: why does it traverse the ancestor chain? Why not just look for it and give up?
<bronson> Seems like Object::Hash should be different from top-level Hash, no?
<Ox0dea> bronson: Would you want method resolution to bail ASAP as well?
vF3hNGxc47h8 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
andrew_ has quit [Remote host closed the connection]
<bronson> Ox0dea: huh? what does constant resolution have to do with method resolution?
jud has joined #ruby
<Ox0dea> bronson: They take the same overall approach.
pharaoh2 has joined #ruby
<bronson> Ox0dea: you want constants to have singleton classes too?
bluOxigen_ has joined #ruby
mickey_mouse_2 has joined #ruby
<Ox0dea> bronson: Where should I put this straw man?
<bronson> Ruby's method lookup is pretty complex... Its constant lookup isn't.
tildes has quit [Read error: Connection timed out]
<bronson> Ox0dea: you're the one who said they have the same overall approach.
<bronson> But even with this, method lookup is still a lot more complex.
tildes has joined #ruby
blt_ has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
<Ox0dea> bronson: It isn't, though. There are a few caveats, but it essentially just traverses the ancestor chain.
<bronson> OK... but why would that mean constants should traverse their enclosing class chain?
<bronson> enclosing classes/modules aren't parents.
andrew_ has joined #ruby
<Ox0dea> bronson: Do you accept that constants *have* to live on Modules?
<bronson> Ox0dea: sure, if classes are specialized modules.
dlitvak has joined #ruby
<Ox0dea> >> String.is_a? Module # bronson
<ruby[bot]> Ox0dea: # => true (https://eval.in/516726)
<Ox0dea> My capitalization was quite deliberate.
<bronson> Ox0dea: right, we're saying the same thing so far.
blt has quit [Ping timeout: 264 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
<shevy> so you both essentially just agree with one another
<Ox0dea> bronson: No. Classes are not "specialized modules" in Ruby; they *are* Modules.
yqt has quit [Ping timeout: 276 seconds]
bruce_lee has quit [Read error: Connection reset by peer]
<bronson> ok, you're right.
<Ox0dea> bronson: So then Hash == Object::Hash is okay now, right?
swills has joined #ruby
nettoweb has joined #ruby
<bronson> Right, I follow. Hash == Object::Hash == (anything that inherits from object)::Hash
<Ox0dea> Yay! <3
<bronson> still, yuck.
<Ox0dea> How would you fix it?
<bronson> thinking... not sure yet. but thanks for explaining the issue.
<Ox0dea> My pleasure. :)
juanfra has joined #ruby
shock_one has joined #ruby
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
e4xit_ has joined #ruby
hogetaro has joined #ruby
Moblin has joined #ruby
mkosaki_ has joined #ruby
shock_one has quit [Ping timeout: 264 seconds]
Jardayn has quit [Quit: Leaving]
blackgoat_ has joined #ruby
Marsjan has joined #ruby
DLSteve_ has joined #ruby
benlieb has quit [Quit: benlieb]
konsolebox has quit [Ping timeout: 250 seconds]
AustinIncognito has joined #ruby
nullFxn_ has joined #ruby
shaman42 has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
rAy has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qpls_ has joined #ruby
M-Techni1 has joined #ruby
tildes has quit [Read error: Connection reset by peer]
rAy is now known as Guest96296
tildes has joined #ruby
dexter-tzu has joined #ruby
AciD` has left #ruby ["Oh look, a shiny object !"]
s00pcan has quit [Remote host closed the connection]
j2k_ has joined #ruby
ropeney_ has joined #ruby
hfp_ has joined #ruby
Ebok has quit [*.net *.split]
DLSteve has quit [*.net *.split]
Guest56277 has quit [*.net *.split]
ropeney has quit [*.net *.split]
marsjaninzmarsa has quit [*.net *.split]
jsvgoncalves has quit [*.net *.split]
johnnyt has quit [*.net *.split]
Spleeze has quit [*.net *.split]
hfp has quit [*.net *.split]
blackgoat has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
hogetaro_ has quit [*.net *.split]
amorbix has quit [*.net *.split]
nullFxn has quit [*.net *.split]
braincra- has quit [*.net *.split]
qpls has quit [*.net *.split]
armyriad has quit [*.net *.split]
M-Technic has quit [*.net *.split]
whiteline has quit [*.net *.split]
e4xit has quit [*.net *.split]
j2k has quit [*.net *.split]
bluntman has quit [*.net *.split]
AustinMatherne has quit [*.net *.split]
mkosaki has quit [*.net *.split]
e4xit_ is now known as e4xit
Marsjan is now known as marsjaninzmarsa
hfp_ is now known as hfp
braincrash has joined #ruby
SpleezeDos has joined #ruby
armyriad has joined #ruby
azure32 has quit [Remote host closed the connection]
s00pcan_ has quit [Ping timeout: 245 seconds]
dexter-tzu has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
p1k has joined #ruby
DLSteve_ has quit [Read error: Connection reset by peer]
tildes has quit [Ping timeout: 248 seconds]
jzigmund has quit [Ping timeout: 240 seconds]
ixti has quit [Quit: WeeChat 1.4]
jgt4 has quit [Ping timeout: 245 seconds]
whiteline has joined #ruby
jsvgoncalves has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
dstarh has joined #ruby
amorbix has joined #ruby
bluntman has joined #ruby
s00pcan has joined #ruby
blackmesa has joined #ruby
DLSteve has joined #ruby
dstarh has quit [Read error: Connection reset by peer]
johnnyt has joined #ruby
jgt4 has joined #ruby
arescorpio has joined #ruby
konsolebox has joined #ruby
<bronson> Ox0dea: how about, instead of printing the warning, raising a "toplevel constant Thread referenced by String::Thread" error?
<bronson> certainly that's a backward incompatible change, only for 3.0
s00pcan_ has joined #ruby
<bronson> I can't think of a reason anyone would intentionally use that feature.
raeoks has joined #ruby
CrazyEddy has joined #ruby
Dimik has joined #ruby
sneakerhax has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
s00pcan_ has quit [Ping timeout: 260 seconds]
s00pcan has quit [Read error: Connection reset by peer]
joonty has joined #ruby
s00pcan has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
Guest96296 has quit [Remote host closed the connection]
stevemackinnon has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dexter-tzu has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
hornairs has joined #ruby
nofxx has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang600 has quit [Ping timeout: 252 seconds]
idefine has joined #ruby
joonty has quit [Ping timeout: 272 seconds]
raeoks has joined #ruby
CrazyEddy has quit [Ping timeout: 252 seconds]
FooMunki has quit [Quit: FooMunki]
nunchuck has quit [Ping timeout: 252 seconds]
<raz> foo(bar, batz) ... is there a way for the method 'foo' to determine the variable names (bar and batz) that were used in it's parameters? (not the values, the names!)
<shevy> raz hmm I think no
<shevy> or wait
<raz> i want to write a logger-method that will turn the above into output such as 'bar=value_of_bar batz=value_of_batz'
nunchuck has joined #ruby
<bronson> yea, that would be handy. hope you find it.
nettoweb has joined #ruby
<Ox0dea> &ri Method#parameters @raz
<shevy> yeah
<shevy> "cat".method(:count).parameters # => [[:rest]]
<raz> hmm promising!
wavy has joined #ruby
rgb-one has quit [Read error: Connection reset by peer]
<raz> how do i get a ref to the method that i'm in? :D
karmatr0n has joined #ruby
idefine has quit [Ping timeout: 252 seconds]
<Ox0dea> raz: __method__ or __callee__.
rakm_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan_ has joined #ruby
Xeago has joined #ruby
stannard has joined #ruby
<raz> hurm, that gives me the name as a symbol
<Ox0dea> raz: And now use the #method method to turn that Symbol into a Method. :P
<raz> meth.. not even once..
<Ox0dea> More like a thousand times.
swills has quit [Remote host closed the connection]
moeabdol1 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<raz> hmmm
<raz> p method(__method__).parameters
<raz> gives me [[:rest, :args]]
<raz> for a method(*args) called with two args a,b
* raz scratches head
lemur has joined #ruby
<Ox0dea> You misused the term "parameters" up there, then.
wavy has quit [Ping timeout: 240 seconds]
<raz> possibly
resin has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stannard has quit [Ping timeout: 245 seconds]
karmatr0n has quit [Ping timeout: 256 seconds]
<raz> guess that information isn't available to the method being called
moeabdol2 has joined #ruby
mattp__ has quit [Ping timeout: 240 seconds]
moeabdol1 has quit [Ping timeout: 245 seconds]
jsvgoncalves has quit [Quit: Leaving]
lemur has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
* raz sad
ESpiney_ has quit [Ping timeout: 264 seconds]
mattp__ has joined #ruby
resin has left #ruby [#ruby]
<Ox0dea> raz: You could do something ridiculous: https://eval.in/516734
tubercle has joined #ruby
<raz> that is beautiful
<Ox0dea> Please don't say things like that. :P
ESpiney_ has joined #ruby
<raz> no, really, who said meth is all bad
<raz> :D
<Ox0dea> Another approach would be to use https://github.com/banister/binding_of_caller to get the actual values, but you'd still need to parse the call site to determine what identifiers were passed as arguments to your method.
<raz> yea that's a bit much magic maybe...
resin has joined #ruby
<Ox0dea> Definitely.
<raz> sigh.. then again these fugly log lines make up like 30% of my code... { foo: foo, bar: bar, ... }
chouhoul_ has joined #ruby
<Ox0dea> ¯\_(ツ)_/¯
<raz> it's like ruby doesn't care at all for all the love i put into my variable naming
<raz> (╯°□°)╯︵ ┻━┻
coderMe has joined #ruby
<Ox0dea> raz: https://git.io/vgrHm
<raz> m(
chouhoulis has quit [Ping timeout: 260 seconds]
<raz> wonder what rubocop has to say about that
<Ox0dea> Heh.
roshanavand has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
floatingpoint has joined #ruby
chouhoulis has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
shock_one has joined #ruby
roshanavand has joined #ruby
betafive has joined #ruby
benlieb has joined #ruby
wprice has quit [Quit: wprice]
tubercle has quit [Ping timeout: 252 seconds]
shock_one has quit [Ping timeout: 245 seconds]
pawnbox_ has quit [Ping timeout: 276 seconds]
roshanavand has quit [Ping timeout: 264 seconds]
pharaoh2 has quit [Read error: Connection reset by peer]
floror has joined #ruby
wethu has joined #ruby
pharaoh2 has joined #ruby
Tempesta has quit [Quit: See ya!]
baweaver has quit [Remote host closed the connection]
remunerative has joined #ruby
moeabdol2 has quit [Ping timeout: 240 seconds]
learning has joined #ruby
<learning> can i set a variable to the result of a loop?
jgpawletko has quit [Quit: jgpawletko]
shellie_ has quit [Ping timeout: 240 seconds]
wprice has joined #ruby
<learning> something like: x = loop if found return "got it"
<shevy> x = loop { break 5 } # => 5
dfinninger has joined #ruby
<learning> thank you
Coldblackice has quit []
shellie_ has joined #ruby
peterevjan has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goodcodeguy has joined #ruby
<bronson> learning: do you know about Array's find method?
<bronson> (1..5).find { |x| x>2 }
dfinninger has quit [Remote host closed the connection]
<bronson> => 3
remunerative has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
DmitryBochkarev has joined #ruby
bluOxigen has joined #ruby
gambl0re has joined #ruby
M-Kodo has quit [Quit: node-irc says goodbye]
adgtl has joined #ruby
bluOxigen_ has quit [Ping timeout: 264 seconds]
rAy has joined #ruby
Coldblackice has joined #ruby
rAy is now known as Guest72594
dopie has joined #ruby
rbennacer has joined #ruby
adgtl_ has joined #ruby
adgtl has quit [Read error: Connection reset by peer]
devbug has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
andrew_ has quit [Remote host closed the connection]
sneakerhax has quit [Remote host closed the connection]
<bronson> Ox0dea: I couldn't let it go :) https://bugs.ruby-lang.org/issues/11547
rbennacer has quit [Remote host closed the connection]
Sucks has quit [Read error: Connection reset by peer]
<Ox0dea> bronson: Can't fault you, really; it is a little weird.
adgtl_ has quit [Remote host closed the connection]
kinduff has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
kinduff has quit [Client Quit]
devFrederick has quit [Remote host closed the connection]
joonty has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
kirillzh has joined #ruby
andrew_ has joined #ruby
rbennacer has joined #ruby
jtperreault has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
rbennacer has quit [Remote host closed the connection]
rgb-one has joined #ruby
nodejunkie has joined #ruby
frewtc4ke has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
<rgb-one> Can some one illustrate the use of yield in ruby?
andrew_ has quit [Remote host closed the connection]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 240 seconds]
t4nk445 has joined #ruby
freerobby has joined #ruby
ss_much has joined #ruby
toadier has joined #ruby
krzkrzkrz has joined #ruby
connor_goodwolf has joined #ruby
coderMe has quit [Quit: Textual IRC Client: www.textualapp.com]
Channel6 has joined #ruby
coderMe has joined #ruby
hornairs has quit [Quit: hornairs]
andrew_ has joined #ruby
hornairs has joined #ruby
bronson has quit [Remote host closed the connection]
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
learning has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
learning has joined #ruby
<rgb-one> Thanks for the link Ropeney_
andrew_ has quit [Remote host closed the connection]
jgt4 has quit [Ping timeout: 252 seconds]
DmitryBochkarev has joined #ruby
learning has quit [Read error: Connection reset by peer]
oncall-pokemon has joined #ruby
DmitryBochkarev has quit [Client Quit]
Napear has joined #ruby
ur5us has quit [Remote host closed the connection]
roshanavand has joined #ruby
andrew_ has joined #ruby
mic_e has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
learning has joined #ruby
amorbix has quit [Quit: Leaving]
shmoon has left #ruby [#ruby]
coderMe has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has joined #ruby
<rgb-one> For optparse, When using a mandatory argument how does it work? This mandatory argument is a file name or standard input. Any examples?
karmatr0n has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
mic_e has quit [Ping timeout: 240 seconds]
t4nk445 has quit [Ping timeout: 252 seconds]
Moblin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
wprice has quit [Quit: wprice]
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
celly has quit [Remote host closed the connection]
Ebok has joined #ruby
hahuang61 has joined #ruby
karmatr0n has quit [Ping timeout: 276 seconds]
y2mq37 has joined #ruby
adgtl has joined #ruby
chipotle has quit [Quit: cheerio]
DmitryBochkarev has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
learning has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
Ebok has quit [Client Quit]
amoeba has quit [Quit: Leaving]
frewtc4ke has left #ruby [#ruby]
learning has joined #ruby
dfockler has joined #ruby
davedev2_ has quit []
andrew_ has quit [Remote host closed the connection]
andrew_ has joined #ruby
connor_goodwolf has quit [Quit: Lost terminal]
hornairs has quit [Quit: hornairs]
braincrash has joined #ruby
p1k has quit [Ping timeout: 264 seconds]
symbol has joined #ruby
symbol has quit [Client Quit]
stannard has joined #ruby
adgtl has quit [Remote host closed the connection]
yqfvwal has quit [Quit: Leaving]
wpm has joined #ruby
konsolebox has quit [Quit: Leaving]
kies^ has quit [Ping timeout: 248 seconds]
stannard has quit [Ping timeout: 256 seconds]
seitensei has joined #ruby
seitensei has joined #ruby
chipotle has joined #ruby
wpm has quit [Remote host closed the connection]
the_drow has joined #ruby
seitensei has quit [Ping timeout: 245 seconds]
pharaoh2 has quit [Quit: Textual IRC Client: www.textualapp.com]
arup_r has joined #ruby
raeoks has joined #ruby
the_drow has quit [Client Quit]
RegulationD has joined #ruby
Zappa_ has joined #ruby
raeoks has quit [Client Quit]
dviola has quit [Quit: WeeChat 1.4]
hornairs has joined #ruby
peterevjan has quit []
<arup_r> I am using SimpleDelagator as you see here https://gist.github.com/aruprakshit/8083993f15451aa56669 .. Now it works well. I want to know, if I want to send some params with GlobalGroup.new(@site, params). Is it possible?
SOLDIERz has joined #ruby
AnonRecluse13 has joined #ruby
gix has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
mic_e has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
ayonkhan has joined #ruby
karapetyan has joined #ruby
learning has quit []
krzkrzkrz has quit [Ping timeout: 240 seconds]
gix has joined #ruby
joonty has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
znz_jp has quit [Quit: kill -QUIT $$]
karapetyan has quit [Ping timeout: 245 seconds]
mic_e has quit [Ping timeout: 248 seconds]
ejnahc has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 248 seconds]
seitensei has joined #ruby
<silverdust> How can I call functions in an array [:fn1, :fn2]
<silverdust> I have to loop through the array and pass an argument to each function
<silverdust> like if x =
<silverdust> _
<arup_r> silverdust: didn't get you
<silverdust> I tried x.each { x(5) }
<silverdust> arup_r: I created 2 functions and kept their symbols in an array
cb_ has joined #ruby
cb_ has joined #ruby
<silverdust> now I want to be able to loop through that array and call each function on an operad
cb_ has quit [Client Quit]
<silverdust> *operand
cb_ has joined #ruby
cb_ has quit [Changing host]
cb_ has joined #ruby
baweaver has joined #ruby
<arup_r> ok.. use like
<arup_r> array.each { |f| public_send(f, 1) }
roshanavand has joined #ruby
bronson has joined #ruby
<arup_r> assuming the place where you are iterating the array has access to `self` of which class those methods are defined
kies^ has joined #ruby
ledestin has joined #ruby
ejnahc has quit [Quit: leaving]
<arup_r> so self is implicit in my example.. if that's not the case you need to mention the actual object
znz_jp has joined #ruby
adgtl has joined #ruby
<silverdust> This is a simple ruby script not in any OOP concept. That returns the array of the symbols back to me
adgtl has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> You can't escape the OOP in Ruby.
<arup_r> silverdust: use `.map`
budhram has joined #ruby
roshanavand has quit [Ping timeout: 245 seconds]
bronson has quit [Ping timeout: 256 seconds]
Jet4Fire has joined #ruby
<silverdust> what do I call in the map? still public_send?
raeoks has joined #ruby
<silverdust> oh it works
krzkrzkrz has joined #ruby
hornairs has quit [Quit: hornairs]
<silverdust> not exactly the way I want though
ayonkhan has quit [Ping timeout: 250 seconds]
p1k has joined #ruby
<silverdust> I'd rather it's not a map as I need a single end result not an array of results from the functions
celly has joined #ruby
agent_white has joined #ruby
andrew_ has quit [Remote host closed the connection]
<budhram> hello folks, any better ways to extract docstring from this code? https://goo.gl/LwzBfU
rgb-one has quit [Read error: Connection reset by peer]
<budhram> how about extracting docstrings as methods into separate module?
azure32 has joined #ruby
<budhram> appreciate suggestions
arup_r has quit [Remote host closed the connection]
p1k has quit [Quit: WeeChat 1.4]
dfinninger has joined #ruby
darkf_ has joined #ruby
<agent_white> Evenin'
pawnbox has quit [Remote host closed the connection]
aces1up has joined #ruby
<aces1up> how would i .send += to a variable that is a string?
shock_one has joined #ruby
<baweaver> budhram: clarify that
<Ox0dea> >> s = 'foo'; s.send :<<, 'bar'; s # aces1up
<ruby[bot]> Ox0dea: # => "foobar" (https://eval.in/516746)
<baweaver> aces1up: ?xy
<baweaver> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
ayonkhan has joined #ruby
<budhram> let me clarify it
<aces1up> baweaver look cool
y2mq37 has quit [Ping timeout: 260 seconds]
darkf has quit [Ping timeout: 260 seconds]
vdamewood has quit [Quit: Life beckons.]
<aces1up> baweaver what if i have object with variable that i want to increment from string?
<baweaver> aces1up: put your code in a gist, and clarify what it is you're doing. I have a feeling there's a much better way.
<baweaver> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<budhram> i have this code https://goo.gl/shwwIM
y2mq37 has joined #ruby
<budhram> where help information is stored into docstring
<baweaver> I'd keep it inline for the most part.
<budhram> what is better way to handle such scenario? I could have many such docstrings in command.rb
<baweaver> The only case I could see immediately for exporting it is for translations
<baweaver> but then again that's the literal help implementation of the method so it really should be close by
shock_one has quit [Ping timeout: 250 seconds]
krz has joined #ruby
<budhram> then i could call as Message.help in this line https://goo.gl/zlfR4a which would give me better readability
<budhram> what do u think? As of now, command.rb file is quite long due to such docstrings
<baweaver> I think it's splitting hairs honestly.
krzkrzkrz has quit [Ping timeout: 252 seconds]
<baweaver> I wouldn't really move things around unless it's not related to the object at all.
<baweaver> if the concern is line length or method size, it becomes a nasty game of shuffling code for no real gain
<budhram> ok
<baweaver> and if anything, huge sacrifices in readability
<aces1up> baw can you help me here : https://gist.github.com/anonymous/758baf5eee3d60564ebd
arescorpio has quit [Quit: Leaving.]
<baweaver> why?
tildes has joined #ruby
<baweaver> can you not just call the method?
<aces1up> no
<aces1up> that is just an example
<baweaver> there's more context here
<aces1up> i will not know the actual variable name
<aces1up> until time of run
<baweaver> Explain the entire problem
<aces1up> its an object holding an AR object.
<aces1up> i want to increment a column on that record
<baweaver> Do you have the real code?
<aces1up> so like inc( col_var, amount ) end
<epitron> And commas are right out of the question
<baweaver> because fake code does very little save for frustrating people trying to help
<baweaver> also, this may well be a question for #RubyOnRails
<baweaver> (back and forth getting food if I take a second to reply)
tildes has quit [Remote host closed the connection]
wethu has joined #ruby
<epitron> aces1up: += expands to var=(var + 12)
<epitron> You just need two sends and a +
dfinninger has quit [Remote host closed the connection]
darkf_ is now known as darkf
<aces1up> epitron so that bit would go in the eval string correct?
<epitron> Nope
<baweaver> aces1up: stop
<baweaver> real code
<baweaver> if you need eval and send you're doing it wrong
<epitron> @ar_obj.send "#{col_var.to_s}=", amount + @ar_obj.send(col_var.to_s)
<baweaver> and playing 20 questions to get there does neither of us any good
<aces1up> baweaver now sure just check the git i sent
<aces1up> epitron sweet
<aces1up> thats all i needed.
<baweaver> ...
<epitron> You need more than that
<epitron> This is a bad way to do whatever you're doing
<epitron> But this will work and won't require eval
<epitron> You're probably injecting a security hole
<aces1up> I mean I can hard code a method for each col_var for incrementing it.
<aces1up> this is a custom script no one is accessing it.
<epitron> Ah
pawnbox has joined #ruby
<epitron> Well, hope it works out
<aces1up> just simple thing to do some logging to a dbase.
<epitron> AR::Objects \o/
<aces1up> just i have many counter variables. I want to keep it DRY and not be passing around the logging AR_obj to all my different classes, just building a singleton class that i can call from all other classes to increment various counters during processing and save at end of processing run.
Gnut has joined #ruby
<baweaver> activerecord has update_attributes
<aces1up> baweaver yes.. but that hits the dbase each update.
<baweaver> transaction
<aces1up> baweaver i just want to run all the processing, which will update the ar_obj in memory the save it to dbase at the end.
<baweaver> like a transaction
<aces1up> baweaver i will look up transactions have never used them b4.
<baweaver> this is why we say we need the entire problem
<aces1up> as i do not want to update a simple counter each time to dbase..
<aces1up> so just use the dbase_obj as a container for all my processing counters.. then just save it at the end.
<baweaver> well, at this point I can't really help you without seeing the actual code
wethu has quit [Quit: This computer has gone to sleep]
BTRE has quit [Ping timeout: 250 seconds]
dseitz has joined #ruby
pawnbox has quit [Remote host closed the connection]
connor_goodwolf has joined #ruby
radgeRayden has joined #ruby
infra-red has joined #ruby
SOLDIERz has quit [Ping timeout: 240 seconds]
infra-re_ has joined #ruby
blackgoat_ has quit [Ping timeout: 248 seconds]
joonty has joined #ruby
x77686d has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
avahey has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
infra-red has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
joonty has quit [Ping timeout: 264 seconds]
arlek has joined #ruby
aces1up has quit []
arup_r has joined #ruby
freerobby has quit [Quit: Leaving.]
BTRE has joined #ruby
Channel6 has quit [Quit: Leaving]
peterevjan has joined #ruby
fedexo has joined #ruby
fedexo_ has joined #ruby
cb_ has quit [Remote host closed the connection]
karmatr0n has joined #ruby
radgeRayden has quit [Quit: Leaving]
infra-re_ has quit [Remote host closed the connection]
peterevjan has quit []
celly has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 240 seconds]
infra-red has joined #ruby
shock_one has joined #ruby
speakingcode has quit [Ping timeout: 276 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
speakingcode has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
_djbkd has quit [Quit: My people need me...]
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
infra-red has quit [Remote host closed the connection]
infra-red has joined #ruby
lurch_ has joined #ruby
cb_ has joined #ruby
kknight has joined #ruby
karapetyan has joined #ruby
infra-red has quit [Remote host closed the connection]
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has quit [Quit: Lost terminal]
mondok has joined #ruby
mhoungbo has quit [Ping timeout: 240 seconds]
budhram has quit [Ping timeout: 256 seconds]
cb_ has quit [Remote host closed the connection]
arlek has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
joonty has joined #ruby
aryaching has joined #ruby
<x77686d> Anybody here know what version of Ruby comes installed on OS X El Capitan?
techtomas has joined #ruby
Guest72594 has quit [Remote host closed the connection]
arthropododo has quit [Quit: Leaving]
lewis1711 has joined #ruby
joonty has quit [Ping timeout: 256 seconds]
UtkarshRay has quit [Remote host closed the connection]
devbug has quit [Read error: Connection reset by peer]
<havenwood> x77686d: 2.0.0p645
<x77686d> Thanks!
ta has quit [Remote host closed the connection]
arlek has joined #ruby
lewis1711 has left #ruby ["Ex-Chat"]
dexter-tzu has quit [Ping timeout: 250 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
rAy has joined #ruby
rAy is now known as Guest87085
perrier_ has joined #ruby
aphprentice_ is now known as aphprentice
saneax_AFK is now known as saneax
norc has joined #ruby
kknight has quit [Quit: Leaving]
devbug has joined #ruby
krz has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
krz has joined #ruby
JDiPierro has joined #ruby
Guest87085 has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
dexter-tzu has joined #ruby
x77686d has quit [Quit: x77686d]
solars has joined #ruby
JDiPierro has quit [Ping timeout: 272 seconds]
infra-red has joined #ruby
kfpratt has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
infra-re_ has joined #ruby
scepticulous has joined #ruby
yardenbar has joined #ruby
djbkd_ has joined #ruby
adgtl_ has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
infra-red has quit [Ping timeout: 276 seconds]
cb_ has joined #ruby
adgtl has quit [Ping timeout: 264 seconds]
fedexo has quit [Remote host closed the connection]
dubek has joined #ruby
azure32 has quit [Ping timeout: 240 seconds]
yarden_ has joined #ruby
yardenbar has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
yarden_ has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
yardenbar has joined #ruby
kknight has joined #ruby
azure32 has joined #ruby
karapetyan has quit [Remote host closed the connection]
cb_ has quit [Remote host closed the connection]
arlek has quit [Ping timeout: 252 seconds]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
aganov has joined #ruby
mhoungbo has joined #ruby
djbkd_ has quit []
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has joined #ruby
roshanavand has joined #ruby
atomical has joined #ruby
Kryptonical has quit [Read error: Connection reset by peer]
SOLDIERz has joined #ruby
benlieb has quit [Quit: benlieb]
roshanavand has quit [Ping timeout: 276 seconds]
omninonsense is now known as [spoiler]
Kryptonical has joined #ruby
william3 has joined #ruby
bigkevmcd has joined #ruby
LoneHerm_ has joined #ruby
william3 has quit [Remote host closed the connection]
atomical_ has joined #ruby
joonty has joined #ruby
firstdayonthejob has joined #ruby
adgtl_ has quit [Remote host closed the connection]
atomical has quit [Ping timeout: 256 seconds]
techtomas has quit [Quit: Bye]
atomical_ has quit [Client Quit]
joonty has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
ur5us has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
jas02 has joined #ruby
wald0 has joined #ruby
toadier has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
aryaching has joined #ruby
symm- has joined #ruby
Gnut has quit [Ping timeout: 245 seconds]
wald0 has quit [Client Quit]
ta has joined #ruby
agent_white has quit [Quit: brb]
benlieb has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
lubekpl has joined #ruby
william3 has joined #ruby
seitensei has quit [Quit: "For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
stevemackinnon has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
andrew_ has joined #ruby
krz has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
infra-red has joined #ruby
krz has joined #ruby
Macaveli has joined #ruby
atmosx has joined #ruby
chouhoulis has joined #ruby
atmosx has quit [Client Quit]
atmosx has joined #ruby
andrew_ has quit [Ping timeout: 252 seconds]
infra-re_ has quit [Ping timeout: 240 seconds]
floror has quit [Quit: floror]
dfockler has quit [Ping timeout: 260 seconds]
shock_one has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
bhorn1|away has joined #ruby
bhorn1|away is now known as bhorn1
aryaching has quit []
shock_one has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
aufi has joined #ruby
the_drow has joined #ruby
the_drow has quit [Client Quit]
Spami has joined #ruby
konsolebox has joined #ruby
resin has quit [Quit: Lost terminal]
symm- has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
karapetyan has joined #ruby
SkepBrain has joined #ruby
ropeney_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SCHAAP137 has joined #ruby
chipotle has quit [Quit: cheerio]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 245 seconds]
n1colas has joined #ruby
azure32 has quit [Quit: leaving]
laith has joined #ruby
RegulationD has joined #ruby
shock_one has joined #ruby
rdark has joined #ruby
william3 has joined #ruby
adgtl has joined #ruby
blaxter has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
shredding has joined #ruby
UtkarshRay has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
binaryplease has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
laith_ has joined #ruby
lubekpl has joined #ruby
laith_ has left #ruby [#ruby]
firstdayonthejob has quit [Ping timeout: 272 seconds]
CloCkWeRX has joined #ruby
Spami_ has joined #ruby
carella_ has joined #ruby
laith_ has joined #ruby
mdw has joined #ruby
joonty has quit [Ping timeout: 256 seconds]
mark4 has joined #ruby
Zappa__ has joined #ruby
mickey_mouse_3 has joined #ruby
laith has quit [Quit: Page closed]
laith_ has quit [Client Quit]
laith has joined #ruby
hogetaro_ has joined #ruby
pookie_ has joined #ruby
perrier__ has joined #ruby
blaxter has joined #ruby
PedramT has joined #ruby
glowcoil_ has joined #ruby
Spami has quit [*.net *.split]
perrier_ has quit [*.net *.split]
kies^ has quit [*.net *.split]
nofxx has quit [*.net *.split]
hogetaro has quit [*.net *.split]
mickey_mouse_2 has quit [*.net *.split]
Zappa_ has quit [*.net *.split]
godzillaenlacasa has quit [*.net *.split]
carella has quit [*.net *.split]
glowcoil has quit [*.net *.split]
shevy has quit [*.net *.split]
bodgix has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
crayfishx has quit [*.net *.split]
glowcoil_ is now known as glowcoil
pawnbox has quit [Remote host closed the connection]
nettoweb has joined #ruby
joonty has joined #ruby
nofxx has joined #ruby
norc has quit [Quit: Page closed]
krzkrz has joined #ruby
crayfishx has joined #ruby
shevy has joined #ruby
bodgix has joined #ruby
AMERICAN_PSYCHO has joined #ruby
krz has quit [Read error: Connection reset by peer]
stannard has joined #ruby
pihpah has joined #ruby
Zai00 has joined #ruby
Bloomer has joined #ruby
Dimik has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby
vikas027 has joined #ruby
vikas027 has left #ruby [#ruby]
yfeldblum has joined #ruby
jeanlinux has joined #ruby
PedramT has quit [Ping timeout: 272 seconds]
LoneHerm_ has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
pookie_ is now known as olspookishmagus
Mon_Ouie has joined #ruby
ziyadb has joined #ruby
zenlot1 is now known as zenlot
valera has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
marr has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
Tempesta has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Snowy has joined #ruby
Timba-as has joined #ruby
lubekpl has joined #ruby
einarj has joined #ruby
dseitz has quit [Ping timeout: 248 seconds]
roshanavand has joined #ruby
william3 has quit [Remote host closed the connection]
Domaldel has quit [Remote host closed the connection]
william3 has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
darkf has quit [Quit: Leaving]
kknight has quit [Ping timeout: 245 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
kp666 has quit [Ping timeout: 264 seconds]
shock_one has quit []
alexherbo2 has joined #ruby
huyderman has joined #ruby
ocbtec has joined #ruby
mic_e has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
chipotle has joined #ruby
mic_e has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
jxs_ has joined #ruby
arup_r has quit [Remote host closed the connection]
howdoi has joined #ruby
kp666 has joined #ruby
Macaveli has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
doublemalt_ has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 250 seconds]
pandaant has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
ur5us has quit [Remote host closed the connection]
andrewvos has joined #ruby
jeanlinux has quit [Remote host closed the connection]
Zai00_ has joined #ruby
Zai00 has quit [Ping timeout: 256 seconds]
Zai00_ is now known as Zai00
Kryptonic has joined #ruby
dmolina has joined #ruby
srenatus has joined #ruby
Kryptonical has quit [Ping timeout: 252 seconds]
blackgoat_ has joined #ruby
evidex has joined #ruby
bruce__lee has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
william3 has quit [Remote host closed the connection]
jeanlinux has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
berserk_ren has quit [Ping timeout: 256 seconds]
william3 has joined #ruby
antgel has joined #ruby
andrewvos has quit [Ping timeout: 264 seconds]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeanlinux has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
baweaver has joined #ruby
raeoks has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
karapetyan has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
bluOxigen_ has joined #ruby
kknight has joined #ruby
kknight has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
berserk_ren has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
Timba-as has quit [Quit: Be back later ...]
adgtl has quit [Read error: Connection reset by peer]
adgtl has joined #ruby
platzhirsch has joined #ruby
last_staff has joined #ruby
marr has quit [Ping timeout: 256 seconds]
rAy has joined #ruby
rAy is now known as Guest63222
blackgoat_ has quit [Ping timeout: 252 seconds]
kknight has quit [Quit: Leaving]
Timba-as has joined #ruby
fedexo_ has quit [Ping timeout: 252 seconds]
benlieb has quit [Quit: benlieb]
wethu has joined #ruby
andrewvos has joined #ruby
kknight has joined #ruby
trinaldi has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruce__lee has quit [Changing host]
bruce__lee has joined #ruby
bruce__lee is now known as bruce_lee
adgtl_ has joined #ruby
jxs_ has quit [Remote host closed the connection]
adgtl has quit [Ping timeout: 245 seconds]
hamed_r has joined #ruby
codecop has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
LoneHerm_ has joined #ruby
jeanlinux has joined #ruby
jeanlinux has quit [Remote host closed the connection]
eGGsha has joined #ruby
chipotle has quit [Quit: cheerio]
platzhirsch has left #ruby [#ruby]
dionysus69 has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
c0m0 has joined #ruby
bkxd has joined #ruby
bluOxigen_ has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
anisha has joined #ruby
platzhirsch has joined #ruby
[dmp] has joined #ruby
jeanlinux has joined #ruby
CloCkWeRX has joined #ruby
pdoherty has joined #ruby
andrewvos has quit [Ping timeout: 250 seconds]
andrewvos has joined #ruby
Xeago has joined #ruby
<shevy> who is up for some spank-learning ruby!
<yorickpeterse> what?
krzkrzkrz has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
tvw has joined #ruby
<shevy> you learn ruby - and get spanked at the same time
maidy has joined #ruby
<yorickpeterse> hot
<shevy> yesterday I learned about .one?
<shevy> it's like trickling knowledge
<shevy> Ox0dea taught me .chars
<shevy> before that, I had string[0,0] == 'a' being replaced via string.start_with? 'a' - though it is longer, but I found the latter more readable
FooMunki has joined #ruby
<ljarvis> ugh ActiveSupport has scourned me. Was about to say you might be interested in .many?
chouhoulis has joined #ruby
roshanavand has joined #ruby
<shevy> hmm lemme see what it does
pawnbox has joined #ruby
bluOxigen_ has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
andrewvos has quit [Ping timeout: 256 seconds]
platzhirsch has quit [Quit: Leaving.]
roshanavand has quit [Ping timeout: 240 seconds]
arlek has joined #ruby
pawnbox has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
andrewvos has joined #ruby
blackgoat_ has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
<ljarvis> it's basically just .size > 1
Ebok has joined #ruby
<ljarvis> (but accepts a block)
vdamewood has joined #ruby
stannard has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<Xat`> hi guys
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
marr has joined #ruby
<Xat`> I just installed gems with bundle, but when I run : "gem list" , I don't have all gems listed
roshanavand has joined #ruby
stannard has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 240 seconds]
last_staff1 has joined #ruby
krzkrzkrz has quit [Ping timeout: 248 seconds]
DoubleMalt has joined #ruby
raeoks has joined #ruby
blackmesa has joined #ruby
jud has quit [Quit: Leaving]
maidy has quit [Ping timeout: 245 seconds]
guinea_panni has joined #ruby
binaryplease has quit [Ping timeout: 245 seconds]
guinea_panni has left #ruby [#ruby]
last_staff has quit [Ping timeout: 252 seconds]
last_staff1 is now known as last_staff
dionysus69 has joined #ruby
andrewvos has quit [Ping timeout: 240 seconds]
Sembei has joined #ruby
<zacts> hi rubyists
waka has quit [Ping timeout: 256 seconds]
<SkepBrain> hi
AlexJakeGreen has joined #ruby
chipotle has joined #ruby
mauricio has joined #ruby
gentlemanlike has joined #ruby
y2mq37 has quit [Ping timeout: 240 seconds]
waka has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
sgambino has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
binaryplease has joined #ruby
<xybre> Xat`: bundle list
adgtl_ has quit [Remote host closed the connection]
UtkarshRay has quit [Remote host closed the connection]
arlek has quit [Ping timeout: 256 seconds]
UtkarshRay has joined #ruby
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
dlitvak has joined #ruby
bronson has joined #ruby
kknight has quit [Quit: Leaving]
pacMakaveli has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
pawnbox has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
ElFerna has joined #ruby
JohnBat26 has joined #ruby
adgtl has joined #ruby
chipotle has quit [Quit: cheerio]
ruby-lang666 has joined #ruby
baweaver has joined #ruby
Ishido has joined #ruby
<ruby-lang666> Hi guys, I'm using Ruby on Rails with rack and I'm looking for a method to upload files which will be directly written to memory not first to a tempfile
<ruby-lang666> has anyone experience with accomplishing this?
<ddv> ruby-lang666: #rubyonrails
<ruby-lang666> oke thanks
rodfersou has quit [Quit: leaving]
ruby-lang666 has quit [Client Quit]
adgtl has quit [Ping timeout: 245 seconds]
blackgoat_ has quit [Quit: WeeChat 1.3]
chouhoulis has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 276 seconds]
aufi has quit [Ping timeout: 252 seconds]
Napear has quit [Quit: leaving]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adgtl has joined #ruby
Ebok has joined #ruby
Shaboum has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ziyadb has quit [Quit: Connection closed for inactivity]
adgtl has quit [Remote host closed the connection]
gentlemanlike has quit [Ping timeout: 245 seconds]
dlitvak_ has joined #ruby
raeoks has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
Guest63222 has quit [Remote host closed the connection]
rAy has joined #ruby
rAy is now known as Guest88631
dlitvak has quit [Ping timeout: 248 seconds]
gentlemanlike has joined #ruby
roshanavand has joined #ruby
Guest88631 has quit [Ping timeout: 276 seconds]
karapetyan has quit [Remote host closed the connection]
shredding has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
roshanavand has quit [Ping timeout: 248 seconds]
blaxter has quit [Ping timeout: 240 seconds]
<adaedra> Ruby on Rails with Rack? There's Ruby on Rails without Rack?
<shevy> oldschool rails!
sgambino has joined #ruby
dlitvak has joined #ruby
johnmilton has joined #ruby
binaryplease has quit [Quit: WeeChat 1.4]
RegulationD has joined #ruby
allcentury has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
binaryplease has joined #ruby
kith_ has quit [Quit: kith_]
aspiers_ is now known as aspiers
RegulationD has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
aufi has joined #ruby
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Alak has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
AlexJakeGreen has quit [Quit: Leaving]
kknight has joined #ruby
adgtl has joined #ruby
blaxter has joined #ruby
duckpuppy has joined #ruby
toretore has quit [Ping timeout: 272 seconds]
sandstrom has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has joined #ruby
gentlemanlike has quit [Ping timeout: 250 seconds]
joonty has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
konsolebox has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
platzhirsch has joined #ruby
zdman135 has joined #ruby
Xeago has quit [Remote host closed the connection]
adgtl has quit [Read error: Connection reset by peer]
adgtl has joined #ruby
Guest40514 has joined #ruby
shredding has joined #ruby
nodejunkie has quit [Ping timeout: 252 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
antoszka has joined #ruby
sandstrom has joined #ruby
Timba-as has quit [Quit: Be back later ...]
platzhirsch has quit [Quit: Leaving.]
Safi has joined #ruby
joonty has joined #ruby
pacMakaveli has quit []
ponga has quit []
<Xat`> xybre: thank you
Rickmasta has joined #ruby
<kknight> m upgrading ruby latest version , still it shows older version ehy?
<kknight> on typing ruby -v
<Xat`> do you have an idea about this issue ? http://pastie.org/10717728
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adgtl has quit [Ping timeout: 240 seconds]
KHEN has joined #ruby
<KHEN> hello, any live?
<KHEN> life
gregf has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
Safi has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
<ddv> nope
<shevy> kknight you probably have two different ruby versions, the first one being in $PATH
<KHEN> always one
binaryplease has quit [Quit: WeeChat 1.4]
<KHEN> do i install gem in my project folder?
swills has joined #ruby
blackmesa has joined #ruby
binaryplease has joined #ruby
wethu has quit [Quit: Leaving]
<KHEN> or does it not matter which folder i am in?
stardiviner has joined #ruby
ziyadb has joined #ruby
<djellemah> KHEN: usually gem install puts gems under ~/.gem/
binaryplease has quit [Client Quit]
blandflakes has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
<kknight> shevy: how to remove this path so that fresh ruby can be used?
chipotle has quit [Quit: cheerio]
<KHEN> i noticed my dir is empty, lol am confusing ruby with node
<KHEN> using ruby for sass
Xeago has joined #ruby
<shevy> kknight how did you install the new ruby version? and which one is the old one?
<KHEN> using Windows, and installed Ruby, do not think i Installed rails :s
<shevy> I myself use only one ruby version, all programs reside in /Programs/Name/Version so my ruby is at /Programs/Ruby/2.3.0/
<KHEN> i can install rails after Ruby ?
<KHEN> only using this for sass :P
binaryplease has joined #ruby
<kknight> and someone else has installed previuos version of both ruby and rails
<ddv> kknight: you keep ignoring people
<shevy> yeah, debian-based distributions often disappoint :-)
<kknight> ddv: from now onwards, now i have uninstall ruby and following the way given in link
<kknight> m uding gnome
<KHEN> installed Ruby for Sass but it states something about Ruby on Rails: https://github.com/twbs/bootstrap-sass#a-ruby-on-rails
<KHEN> only have Ruby, :s
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<kknight> still it shows same older version but when i type ruby -v it gives older version
<shevy> kknight you should find out where the two bin/ruby are at; I assume "ruby -v" finds the one at /usr/bin/ruby right? also have a look at echo $PATH
<KHEN> i got: Ruby 2.2.4p230
<KHEN> but no rails :S
<shevy> KHEN "gem install rails" # works for me
<KHEN> arr wasnt sure if its possible
<KHEN> am confused
<KHEN> thanks
<KHEN> woo i have rails
Safi has joined #ruby
s00pcan_ has quit [Ping timeout: 260 seconds]
dfinninger has joined #ruby
asmodlol has joined #ruby
<ddv> KHEN: are you on drugs?
blackmesa has quit [Ping timeout: 252 seconds]
<KHEN> yes
<ddv> lol
<KHEN> how do you know?
roshanavand has joined #ruby
<KHEN> want some?
gregf has joined #ruby
aryaching has quit []
synthroid has joined #ruby
<shevy> kknight quite a crazy path you got there! /home/ankit/.rvm/gems/ruby-2.2.1/bin: is the one with your new ruby? you can also provide the absolute path such as... "/home/ankit/.rvm/gems/ruby-2.2.1/bin/ruby -v"
Xeago has quit [Remote host closed the connection]
s00pcan has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
s00pcan has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
rizenine has joined #ruby
mauricio has quit [Remote host closed the connection]
swills has quit [Ping timeout: 245 seconds]
kknight has quit [Ping timeout: 260 seconds]
<KHEN> ddv you have abilities
krzkrzkrz has joined #ruby
<KHEN> this rails takes some time to install :s
Timba-as has joined #ruby
jzigmund has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
Safi has quit [Ping timeout: 245 seconds]
s00pcan_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
mlehrer has joined #ruby
william3 has quit [Remote host closed the connection]
jzigmund has quit [Client Quit]
jzigmund has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
patchedmonkey has joined #ruby
rbennacer has joined #ruby
s00pcan__ has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
william3 has joined #ruby
mondok has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
euphoriaa has joined #ruby
rbennacer has quit [Ping timeout: 252 seconds]
silicio has joined #ruby
stannard has joined #ruby
silicio has quit [Remote host closed the connection]
s00pcan has joined #ruby
celly has joined #ruby
s00pcan__ has quit [Read error: Connection reset by peer]
Shaboum has quit [Quit: WeeChat 1.4]
reassign has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
moeabdol has joined #ruby
celly has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 245 seconds]
antoszka has left #ruby ["+++ killed by SIGSEGV +++"]
freerobby has joined #ruby
Guest40514 has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
goodcodeguy has quit [Client Quit]
tvw has quit []
allcentury has quit [Ping timeout: 272 seconds]
jgpawletko has joined #ruby
tuelz has quit [Ping timeout: 264 seconds]
ramortegui has joined #ruby
jeanlinux has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
pandaant has quit [Remote host closed the connection]
atomical has joined #ruby
Pattrico has joined #ruby
floror has joined #ruby
KHEN has quit [Ping timeout: 264 seconds]
Ebok has joined #ruby
johnmilton has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 245 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
s00pcan has joined #ruby
troulouliou_div2 has joined #ruby
dmitch has joined #ruby
saneax is now known as saneax_AFK
Ebok has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
baweaver has joined #ruby
berserk_ren has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
aryaching has quit [Read error: No route to host]
JDiPierro has joined #ruby
ropeney has joined #ruby
cdg has joined #ruby
allcentury has joined #ruby
chouhoulis has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
aryaching has joined #ruby
hamed_r has quit [Read error: Connection reset by peer]
ropeney has quit [Client Quit]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby
goodcodeguy has joined #ruby
sgambino has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
sondr3 has joined #ruby
platzhirsch has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
berserk_ren has joined #ruby
SpleezeDos has quit [Quit: QUIT]
vondruch has quit [Remote host closed the connection]
Jardayn has joined #ruby
zdman135 has quit [Remote host closed the connection]
Spleeze has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
maikowblue has joined #ruby
nchambers is now known as DowntimeAbbey
ElFerna has joined #ruby
melter has quit [Ping timeout: 260 seconds]
jeanlinux has joined #ruby
DowntimeAbbey is now known as nchambers
kies^ has joined #ruby
aryaching has quit []
godzillaenlacasa has joined #ruby
chipotle has joined #ruby
godzillaenlacasa has quit [Client Quit]
M-shine has joined #ruby
ponga has joined #ruby
jeanlinux has quit [Ping timeout: 240 seconds]
dopamean1 has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
floror has quit [Quit: floror]
aryaching has joined #ruby
sankaber has joined #ruby
Zai00 has joined #ruby
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
vondruch has quit [Quit: Ex-Chat]
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
Jardayn has quit [Read error: Connection reset by peer]
krzkrzkrz has quit [Ping timeout: 245 seconds]
swills has joined #ruby
kies^ has quit [Ping timeout: 276 seconds]
vondruch has joined #ruby
melter has joined #ruby
M-Kodo has joined #ruby
babblebre has joined #ruby
blackmesa has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
cb_ has joined #ruby
krzkrzkrz has joined #ruby
unl0ckd has joined #ruby
JDiPierro has quit [Remote host closed the connection]
SkepBrain has quit [Quit: bye]
the_drow has quit [Quit: This computer has gone to sleep]
blackmesa has quit [Ping timeout: 256 seconds]
the_drow has joined #ruby
the_drow has quit [Remote host closed the connection]
ohaibbq has joined #ruby
ropeney has joined #ruby
Jardayn has joined #ruby
dfinninger has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cheerio]
p0p0pr37 has joined #ruby
hornairs has joined #ruby
Timba-as has quit [Quit: Be back later ...]
tuelz has joined #ruby
hornairs has quit [Client Quit]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
skade has joined #ruby
godzillaenlacasa has joined #ruby
karmatr0n has joined #ruby
dopamean1 has joined #ruby
chipotle has joined #ruby
M-mistake has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ss_much has joined #ruby
kimegede has joined #ruby
johnmilton has joined #ruby
silicio has joined #ruby
stannard has joined #ruby
M-shine has quit [Quit: node-irc says goodbye]
chipotle has quit [Ping timeout: 240 seconds]
TomPeed has joined #ruby
mhoungbo has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
M-mistake has quit [Quit: node-irc says goodbye]
Mojo_Nixon has joined #ruby
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
floatingpoint has joined #ruby
whippythellama has joined #ruby
Sucks has joined #ruby
idefine has joined #ruby
ICantCook has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
lurch_ has quit [Quit: lurch_]
tuelz has quit [Quit: WeeChat 1.5-dev]
nettoweb has joined #ruby
wprice has joined #ruby
Mojo_Nixon has quit [Quit: Textual IRC Client: www.textualapp.com]
zdman135 has joined #ruby
mostlybadfly has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
jeanlinux has joined #ruby
zast has joined #ruby
M-Kodo has quit [Remote host closed the connection]
mfb2 has joined #ruby
mhoungbo has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
random_user has joined #ruby
x77686d has joined #ruby
anisha has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 264 seconds]
hashrocket has joined #ruby
jeanlinux has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
random_user has quit [Client Quit]
momomomomo has joined #ruby
Pattrico has left #ruby [#ruby]
zdman135 has quit [Quit: Leaving...]
dlitvak_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Hammy_Work has joined #ruby
c_nick has joined #ruby
c_nick has left #ruby [#ruby]
M-shine has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
treehug88 has joined #ruby
reassign has quit [Ping timeout: 252 seconds]
armyriad has joined #ruby
<Bish> how stupid is stalling many (~100k) procs in a queue as a form of scheduling?
B1n4r10 has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ropeney has joined #ruby
platzhirsch has left #ruby [#ruby]
<chridal> I'm working on a deployment automation script for deploying our Rails app
<chridal> In that Gist in Deploy.rake line 8 I want to call that exports function which really belongs to SSHKit and needs to be done in the block in Sparrow.rb line 12
M-Kodo has joined #ruby
<chridal> When I yield that block in there shouldn't that work? Sort of like execute was being called from that context? What am I misunderstanding
mary5030 has joined #ruby
pihpah has quit [Ping timeout: 248 seconds]
pihpah has joined #ruby
reassign has joined #ruby
ready2 has quit [Ping timeout: 245 seconds]
crowell has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
crowell has joined #ruby
<ddv> chridal: never heard of capistrano?
<ddv> you are reinventing the wheel
<chridal> ddv: Yea, that's how I found out about SSHKit.
x77686d has quit [Ping timeout: 250 seconds]
<chridal> The thing about Capistrano though is that I feel like it was way too much stuff... All the plugins, the source code etc.
<chridal> I'm deploying Docker images on EC2 hosts
the_drow has quit [Quit: This computer has gone to sleep]
<chridal> So I wanted to create something light that I could easily customize and make my own.
<ddv> chridal: ok
<ddv> chridal: for Docker I tend to use my own script also
<chridal> ddv: But how can I get that block to execute properly?
dionysus69 has quit [Ping timeout: 240 seconds]
<ddv> :)
<chridal> I want to be able to extract that on server call so that I won't have to write it for every single function in my Rake task
sgambino has joined #ruby
x77686d has joined #ruby
<chridal> in my Rake file I meant.
dlitvak_ has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
<ddv> lol @ apeiros
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeanlinux has joined #ruby
<chridal> :-D
RegulationD has quit [Ping timeout: 260 seconds]
<chridal> Right now I am SSHing into all our EC2 instances and doing docker pull, docker stop and docker run manually which isn't great.
dfinninger has joined #ruby
<apeiros> ddv: it's on my business cards: reinventer of all the wheels
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<chridal> I just need to automate that and I prefer to not do it in shell script
valera has quit [Ping timeout: 250 seconds]
<chridal> I was hoping that I could sort of build some niceties into it as well over time such as fetching all the EC2 instances within a group etc.
ElFerna has quit [Ping timeout: 276 seconds]
codecop has joined #ruby
<chridal> I had a look at Centurion but that uses the Docker HTTP API which requires me to switch that over to HTTP instead of using a UNIX socket which I am not 100% comfortable with.
<chridal> Anyhow, I need some way to execute that function within that block. Any ideas?
chouhoulis has joined #ruby
jas02 has quit [Quit: jas02]
kknight has joined #ruby
dlitvak has joined #ruby
rdark has quit [Ping timeout: 245 seconds]
moeabdol1 has joined #ruby
the_drow has joined #ruby
sdothum has joined #ruby
fmcgeough has joined #ruby
Emmanuel_Chanel has joined #ruby
chouhoulis has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 248 seconds]
kies^ has joined #ruby
dmitch has joined #ruby
chouhoulis has joined #ruby
floror has joined #ruby
cb_ has quit [Remote host closed the connection]
the_drow has quit [Quit: Leaving]
VeryBewitching has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
ready has joined #ruby
reassign has quit [Ping timeout: 240 seconds]
M-mistake has joined #ruby
xMopxShell has quit [Ping timeout: 252 seconds]
yosafbridge has quit [Ping timeout: 250 seconds]
<djellemah> Bish: I know someone who put procs on a Queue. It wasn't for scheduling, and I don't know how many. He seemed to be quite pleased with it.
polishdub has joined #ruby
the_drow has joined #ruby
karapetyan has quit [Remote host closed the connection]
Canar has quit [Ping timeout: 240 seconds]
moeabdol2 has joined #ruby
karapetyan has joined #ruby
diego_k has quit [Ping timeout: 250 seconds]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
moeabdol1 has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
CustosLimen has quit [Ping timeout: 250 seconds]
raimumizu has quit [Ping timeout: 276 seconds]
snapcase has quit [Ping timeout: 252 seconds]
<VeryBewitching> G'day folks.
connor_goodwolf has quit [Ping timeout: 250 seconds]
sami_ has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has quit [Max SendQ exceeded]
tommylommykins has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has joined #ruby
M-shine has quit [Quit: node-irc says goodbye]
connor_goodwolf has joined #ruby
patteh has quit [Ping timeout: 240 seconds]
edulix has quit [Ping timeout: 256 seconds]
deavidsedice has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
sjums has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 276 seconds]
dyce has quit [Ping timeout: 276 seconds]
M-mistake has quit [Quit: node-irc says goodbye]
tabakhase has quit [Ping timeout: 250 seconds]
matti has quit [Ping timeout: 240 seconds]
bhorn1 has quit [Ping timeout: 248 seconds]
oz has quit [Ping timeout: 272 seconds]
ex0ns has quit [Ping timeout: 272 seconds]
dtordable has quit [Ping timeout: 245 seconds]
eregon has quit [Ping timeout: 245 seconds]
ljames has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 245 seconds]
eregon has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
g3funk is now known as braidn
kimegede has quit [Quit: Leaving...]
thumpba has joined #ruby
Canar has joined #ruby
infra-red has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 250 seconds]
devster31 has joined #ruby
Mr_Pancake has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
diegok has joined #ruby
decoponio has joined #ruby
droptone has joined #ruby
AnonRecluse13 has quit [Remote host closed the connection]
huyderman has quit [Remote host closed the connection]
oz has joined #ruby
reassign has joined #ruby
Roa has joined #ruby
edulix has joined #ruby
atomical_ has joined #ruby
AnonRecluse13 has joined #ruby
atomical has quit [Ping timeout: 256 seconds]
sami has joined #ruby
raimumizu has joined #ruby
floror has quit [Quit: floror]
matti has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thumpba has quit [Ping timeout: 252 seconds]
matti has quit [Changing host]
matti has joined #ruby
dlitvak_ has joined #ruby
thumpba_ has joined #ruby
the_drow has joined #ruby
sjums has joined #ruby
celly has joined #ruby
deavid has joined #ruby
the_drow has quit [Client Quit]
snapcase has joined #ruby
ElFerna has joined #ruby
ex0ns has joined #ruby
patteh has joined #ruby
dyce has joined #ruby
xMopxShell has joined #ruby
<havenwood> g'morn
CustosLimen has joined #ruby
aryaching_ has quit [Ping timeout: 276 seconds]
sandstrom has joined #ruby
tommylommykins has joined #ruby
dmitch has joined #ruby
I has joined #ruby
olblak has joined #ruby
cb_ has joined #ruby
cb_ has quit [Changing host]
cb_ has joined #ruby
dlitvak has quit [Ping timeout: 245 seconds]
tabakhase has joined #ruby
I is now known as Guest32200
Guest32200 has quit [Client Quit]
valera has joined #ruby
konsolebox has joined #ruby
dopie has joined #ruby
hays_ has joined #ruby
patronus has joined #ruby
baweaver has joined #ruby
yosafbridge has joined #ruby
dtordable has joined #ruby
<hays_> someone in here recommended celluloid.. is that person still around? Having trouble with the "supervise" method and #celluloid is crickets
thejoecarroll has joined #ruby
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
thumpba_ has quit [Ping timeout: 250 seconds]
snapcase has quit [Remote host closed the connection]
tommylom1ykins has joined #ruby
snapcase has joined #ruby
tommylommykins has quit [Read error: Connection reset by peer]
kies^ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kknight has quit [Ping timeout: 256 seconds]
ElFerna has quit [Ping timeout: 252 seconds]
ta has quit [Remote host closed the connection]
v0n has joined #ruby
Jardayn has joined #ruby
aufi has quit [Quit: Konversation terminated!]
baweaver has quit [Ping timeout: 250 seconds]
floror has joined #ruby
aufi has joined #ruby
aufi has quit [Client Quit]
infinity_ has joined #ruby
reassign has quit [Ping timeout: 256 seconds]
binaryplease has quit [Ping timeout: 272 seconds]
darkxploit has joined #ruby
mist has joined #ruby
idefine has quit [Remote host closed the connection]
mhoungbo has quit [Ping timeout: 272 seconds]
tvon has quit [Quit: tvon]
Gnut has joined #ruby
lapide_viridi has joined #ruby
dlitvak has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
<shevy> havenwood did you already bootstrap some coffee into your system
M-Kodo has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<havenwood> shevy: no I've been under the covers but... it's time!!
sandstrom has quit [Quit: My computer has gone to sleep.]
dlitvak_ has quit [Ping timeout: 252 seconds]
floror has quit [Quit: floror]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arashb has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 252 seconds]
<hays_> anyone here use Celluloid and know how the supervisor API works now
<darix> hays_: maybe look at other celluloid users like sidekiq?
Sembei has quit [Ping timeout: 245 seconds]
<hays_> darix: they don't seem to use it... also, I can't find anything in the codebase on their github, which makes me wonder if they are deriving it from somewhere else
sandstrom has joined #ruby
M-shine has joined #ruby
pawnbox has quit [Remote host closed the connection]
celly has quit [Remote host closed the connection]
<bjmllr> sidekiq v3 uses celluloid, v4 uses threads directly
dfinninger has quit [Remote host closed the connection]
davedev24 has quit [Remote host closed the connection]
cb_ has quit [Remote host closed the connection]
jgt4 has joined #ruby
tomchapin has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
chthon has joined #ruby
ropeney has joined #ruby
dlitvak_ has joined #ruby
blackmesa has joined #ruby
kknight has joined #ruby
silicio has quit [Read error: Connection reset by peer]
<hays_> ah hA!
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infinity_ has quit [Quit: Leaving]
<hays_> I found it. ok. more specific question. What is going on with this? TestServer.supervise args: [8502]
dlitvak has quit [Ping timeout: 245 seconds]
kirillzh has joined #ruby
<hays_> specifically what is an args: ? and how does it relate to the [8502] and the supervise method
pawnbox has joined #ruby
ropeney has quit [Client Quit]
Kryptonical has joined #ruby
M-Kodo has joined #ruby
chthon is now known as giannis
blackmesa has quit [Ping timeout: 240 seconds]
hashrocket has quit [Ping timeout: 250 seconds]
c355e3b has quit [Ping timeout: 252 seconds]
zipkid has quit [Ping timeout: 252 seconds]
giannis is now known as yannis
mostlybadfly has quit [Ping timeout: 240 seconds]
gmci has quit [Ping timeout: 240 seconds]
cstrahan has quit [Ping timeout: 240 seconds]
manveru has quit [Ping timeout: 250 seconds]
Lloyd has quit [Ping timeout: 250 seconds]
frankS2 has quit [Ping timeout: 250 seconds]
jlyndon has quit [Ping timeout: 250 seconds]
cbednarski has quit [Ping timeout: 250 seconds]
babblebre has quit [Ping timeout: 240 seconds]
<hays_> maybe this is a basic ruby question, but having trouble finding out what to look up about it
howdoi has quit [Ping timeout: 252 seconds]
Cihan has quit [Ping timeout: 252 seconds]
jmhmccr has quit [Ping timeout: 252 seconds]
ponga has quit [Ping timeout: 240 seconds]
cardoni has quit [Ping timeout: 240 seconds]
jhill_ has quit [Ping timeout: 240 seconds]
Bugboy1028 has quit [Ping timeout: 250 seconds]
craysiii has quit [Ping timeout: 250 seconds]
bove has quit [Ping timeout: 250 seconds]
twodayslate has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
x0f has quit [Ping timeout: 252 seconds]
ckrailo has quit [Ping timeout: 240 seconds]
mrsolo has quit [Ping timeout: 240 seconds]
sushii has quit [Ping timeout: 250 seconds]
acerna has quit [Ping timeout: 250 seconds]
jokester has quit [Ping timeout: 250 seconds]
weemsledeux has joined #ruby
kellabyte has quit [Ping timeout: 240 seconds]
rfv has quit [Ping timeout: 252 seconds]
glowcoil has quit [Ping timeout: 250 seconds]
ELLIOTTCABLE has quit [Ping timeout: 250 seconds]
ruurd has quit [Ping timeout: 250 seconds]
bttf has quit [Ping timeout: 250 seconds]
braderhart has quit [Ping timeout: 240 seconds]
lancetw has quit [Ping timeout: 240 seconds]
ziyadb has quit [Ping timeout: 252 seconds]
Didac has quit [Ping timeout: 260 seconds]
Kryptonic has quit [Ping timeout: 250 seconds]
hanmac1 has quit [Ping timeout: 250 seconds]
mark4 has quit [Ping timeout: 250 seconds]
ixti has joined #ruby
<ljarvis> hays_: it could be written like this: supervise({ args: [8502] }) # args is a hash key
evidex has quit [Remote host closed the connection]
scepticulous has quit [Ping timeout: 250 seconds]
cbednarski has joined #ruby
jlyndon has joined #ruby
zipkid has joined #ruby
cardoni has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cstrahan has joined #ruby
<hays_> ljarvis: ahh. ok.. yeah. I still get confused about when parens are needed, etc
SCHAAP137 has quit [Remote host closed the connection]
jmhmccr has joined #ruby
c355e3b has joined #ruby
ysz has joined #ruby
<ljarvis> hays_: they're rarely needed but required in some places. It's down to personal style
<ljarvis> I'd prefer to have them required myself, but many people love them being optional
bove has joined #ruby
twodayslate has joined #ruby
mostlybadfly has joined #ruby
manveru has joined #ruby
idefine has joined #ruby
braderhart has joined #ruby
ponga has joined #ruby
<hays_> clearly this is a pattern I should know.. where an object can be passed in some kind of hash
glowcoil has joined #ruby
jhill_ has joined #ruby
<hays_> as an initialization object
<ljarvis> yeah it's quite common, especially for configuration like your example
MiracleBlue__ has joined #ruby
howdoi has joined #ruby
Cihan has joined #ruby
kellabyte has joined #ruby
sushii has joined #ruby
chouhoulis has quit [Remote host closed the connection]
ckrailo has joined #ruby
acerna has joined #ruby
<ljarvis> it's worth mentioning that it's actually not possible to tell if the supervise method takes a hash or expects named parameters (which ruby 2+ supports)
ziyadb has joined #ruby
rdark has joined #ruby
rfv has joined #ruby
<ljarvis> (from your example) but it's probably a hash
Lloyd has joined #ruby
x0f has joined #ruby
shredding has quit [Ping timeout: 260 seconds]
gmci has joined #ruby
ysz has quit [Ping timeout: 240 seconds]
arthropododo has joined #ruby
Jardayn has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
Bugboy1028 has joined #ruby
baweaver has quit [Remote host closed the connection]
dlitvak has joined #ruby
RegulationD has joined #ruby
krzkrzkrz has quit [Quit: WeeChat 1.2]
lurch_ has joined #ruby
yannis has quit [Quit: Ex-Chat]
dionysus69 has joined #ruby
treehug88 has quit [Ping timeout: 256 seconds]
dlitvak_ has quit [Ping timeout: 240 seconds]
greynetic has joined #ruby
jeanlinux has quit [Remote host closed the connection]
Jardayn_two has joined #ruby
jeanlinux has joined #ruby
tvon has joined #ruby
Jardayn has quit [Ping timeout: 276 seconds]
ElFerna has joined #ruby
<shevy> does anyone remember, [a-z] in a regex, I think there was some shortcut for that ... :alphanumeric ? or something like that (can be upcased too, I don't mind)
duckpuppy has joined #ruby
carella_ has quit [Read error: Connection timed out]
hashrocket has joined #ruby
[Butch] has joined #ruby
LuckyABA has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
<ljarvis> huh?
<ljarvis> i mean.. that's not really a shortcut
jokester has joined #ruby
carella has joined #ruby
adgtl has joined #ruby
<ljarvis> but yeah it's :alnum:
babblebre has joined #ruby
<shevy> aha, thanks
idefine has quit [Remote host closed the connection]
<ljarvis> which is [A-Za-z0-9] iirc
mfb2 has quit [Read error: Connection reset by peer]
<ljarvis> so i guess it is a shortcut :)
ELLIOTTCABLE has joined #ruby
bttf has joined #ruby
frankS2 has joined #ruby
lancetw has joined #ruby
DEA7TH has joined #ruby
jeanlinux has quit [Ping timeout: 264 seconds]
selfadhesivefilm has joined #ruby
_ht has joined #ruby
gizmore has joined #ruby
<djellemah> >> def meth( hash ); hash; end; meth one: 1, two: 2, tre: 3 # hays_
<ruby[bot]> djellemah: # => {:one=>1, :two=>2, :tre=>3} (https://eval.in/517167)
craysiii has joined #ruby
M-mistake has joined #ruby
mrsolo has joined #ruby
<DEA7TH> In Scala, for mutable zero-argument methods, e.g. customer.destroy, it is conventional to call them with empty brackets: customer.destroy(). is this also the case for Ruby?
TomyLobo has joined #ruby
mjc__ has joined #ruby
<havenwood> DEA7TH: nope
<djellemah> hays_: in other words, when calling a method the () are optional and the {} denoting a hash are also optional.
mjc__ is now known as mic_
Jardayn_two has quit [Ping timeout: 276 seconds]
mic_ is now known as mjc_
dfinninger has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
jeanlinux has joined #ruby
dfinninger has joined #ruby
jeanlinux has quit [Remote host closed the connection]
<darix> djellemah: but the () can be required to help the parser at times
jeanlinux has joined #ruby
M-shine has quit [Quit: node-irc says goodbye]
<djellemah> darix: meth(:arg) == (meth :arg) :-O But that's not really helping the parser...
<darix> djellemah: more things like: foo a: b {}
DaniG2k has joined #ruby
<darix> because the {} can be a block or a hash and so on
kimegede has joined #ruby
M-mistake has quit [Quit: node-irc says goodbye]
<darix> already had cases where i had to use the () to make it treat my stuff in {} as a block not as a hash
codecop has quit [Remote host closed the connection]
hanmac has joined #ruby
<djellemah> or meth :arg, other_meth 1, 2
<darix> yeah
<darix> we had that thing here a few weeks ago
dlitvak_ has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ICantCook has joined #ruby
mfb2 has joined #ruby
Jardayn has joined #ruby
silicio has joined #ruby
quaristice has joined #ruby
amclain has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
Lloyd has quit []
lurch_ has quit [Quit: lurch_]
jeanlinux has quit [Ping timeout: 256 seconds]
Lloyd has joined #ruby
silicio has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 276 seconds]
jeanlinux has joined #ruby
joonty has quit [Ping timeout: 248 seconds]
celly has joined #ruby
stannard has joined #ruby
rakm has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
mary5030_ has joined #ruby
jgt4 has quit [Ping timeout: 260 seconds]
mary5030 has quit [Ping timeout: 248 seconds]
arlek has joined #ruby
mary5030_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
Snowy has quit [Remote host closed the connection]
mary5030 has joined #ruby
<Papierkorb> Is there a gem or template which lets you quickly set up a non-rails ruby daemon/service, comparable to the rails Application class?
maletor has joined #ruby
x77686d has quit [Quit: x77686d]
agentmeerkat has joined #ruby
<apeiros> not sure whether it fits your bill, but rack-server-pages maybe?
<Papierkorb> With configuration files, logger set up, initializer scripts?
DaniG2k has quit [Quit: leaving]
<Papierkorb> apeiros: Non-web too, just a daemon for anything but HTTP
duckpuppy has quit [Ping timeout: 240 seconds]
DmitryBochkarev has joined #ruby
goodcodeguy has joined #ruby
kirillzh has joined #ruby
<djellemah> Papierkorb: I did a plain tcp server with puma once. IIRC. brb
duckpuppy has joined #ruby
<Papierkorb> I built that myself for one of my services, and have been wondering if there's something for that already. The thing is pretty much modeled after rails configuration-wise (Even uses the rails-y 'config' gem), but is a XMPP bot
jgt4 has joined #ruby
kknight has quit [Remote host closed the connection]
dlitvak has joined #ruby
jeanlinux has quit [Remote host closed the connection]
darkxploit has quit [Quit: Leaving]
jeanlinux has joined #ruby
symm- has joined #ruby
kknight has joined #ruby
laith has quit [Ping timeout: 240 seconds]
Timba-as has joined #ruby
greynetic has quit [Quit: Textual IRC Client: www.textualapp.com]
dlitvak_ has quit [Ping timeout: 240 seconds]
greynetic has joined #ruby
vdamewood has quit [Quit: Life beckons.]
jeanlinux has quit [Ping timeout: 272 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
SCHAAP137 has joined #ruby
AMERICAN_PSYCHO has quit [Ping timeout: 256 seconds]
einarj has quit [Remote host closed the connection]
godzillaenlacasa has joined #ruby
c0m0 has quit [Ping timeout: 240 seconds]
jeanlinux has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
troulouliou_div2 has quit [Ping timeout: 250 seconds]
kknight has quit [Remote host closed the connection]
rsc___ has joined #ruby
Timba-as has quit [Quit: Be back later ...]
adgtl has quit [Remote host closed the connection]
kknight has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kinduff has joined #ruby
s00pcan has quit [Ping timeout: 256 seconds]
s00pcan_ has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adgtl has joined #ruby
goodcodeguy has joined #ruby
quaristice has joined #ruby
s00pcan has joined #ruby
moeabdol2 has quit [Ping timeout: 264 seconds]
s00pcan_ has joined #ruby
quaristice has quit [Read error: Connection reset by peer]
imperator has joined #ruby
mlehrer has quit [Quit: Leaving]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
aryaching has joined #ruby
adgtl has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
imperator has left #ruby ["Leaving"]
lubekpl has joined #ruby
imperator has joined #ruby
marxarelli|afk is now known as marxarelli
cats has quit [Quit: Meow.]
dfinninger has quit [Remote host closed the connection]
greynetic has quit [Quit: Textual IRC Client: www.textualapp.com]
dfinninger has joined #ruby
tvon has quit [Quit: tvon]
_ht has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
<imperator> well, this is interesting - got some valid, but compressed json that JSON.parse is refusing to parse
BLuEGoD has joined #ruby
<imperator> (and by compressed, i mean stripped of whitespace, not zipped)
Timba-as has joined #ruby
chouhoulis has joined #ruby
dlitvak_ has joined #ruby
davedev24 has joined #ruby
tvon has joined #ruby
Guest38 has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 245 seconds]
Jet4Fire has quit []
asdfsdf has joined #ruby
vondruch has quit [Ping timeout: 276 seconds]
asdfsdf has quit [Client Quit]
dfinninger has quit [Ping timeout: 276 seconds]
ta has joined #ruby
<kknight> havenwood i have installed ruby by chruby method
celly has quit []
ElFerna has joined #ruby
roshanavand has quit [Remote host closed the connection]
<havenwood> kknight: May it bring you peace.
<kknight> then for runnig ruby file i nnede to chruby ruby xyz.rb file
<tubbo> nope
<kknight> can;t be little short
<kknight> then?
<tubbo> chruby $VERSION, then you run the ruby command
<tubbo> or, you can do chruby-exec $VERSION -- $THE_RUBY_COMMAND
<tubbo> for a one-liner
idefine has joined #ruby
benlieb has joined #ruby
gizmore has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
<kknight> i used chruby 2.3.0
<kknight> then ruby dripper.rb
<kknight> but it didn;t work
<havenwood> kknight: Set 2.3 as the default Ruby for your home dir: echo ruby-2.3 > ~/.ruby-version
kirillzh has joined #ruby
idefine has quit [Remote host closed the connection]
<havenwood> kknight: (That just creates a ~/.ruby-version file and puts ruby-2.3 in it as the only line, if you're not familiar with shell.)
idefine has joined #ruby
kirillzh has quit [Max SendQ exceeded]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kknight> yes it works fr ruby -v
kirillzh has joined #ruby
<kknight> for .rb file runing it apply same?
ElFerna has quit [Ping timeout: 240 seconds]
<havenwood> kknight: For an interactive Ruby REPL try: irb
kirillzh has quit [Max SendQ exceeded]
roshanavand has joined #ruby
<havenwood> kknight: To run a line of Ruby code: ruby -e "puts 'hi'"
<havenwood> kknight: To run a Ruby file: ruby filename.rb
benlieb has quit [Ping timeout: 256 seconds]
arthurix has joined #ruby
kirillzh has joined #ruby
<havenwood> kknight: Since you're doing Rails, follow the rest of your guide then head to #rubyonrails land.
mdw has joined #ruby
atomical_ has quit [Ping timeout: 256 seconds]
agentmeerkat has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
kirillzh has quit [Client Quit]
atomical has joined #ruby
kirillzh has joined #ruby
roshanav_ has joined #ruby
arthurix_ has quit [Ping timeout: 272 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
idefine_ has joined #ruby
treehug88 has joined #ruby
idefine has quit [Ping timeout: 252 seconds]
speakingcode has quit [Ping timeout: 264 seconds]
cats has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
roshanav_ has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
benlieb has joined #ruby
mhoungbo has joined #ruby
speakingcode has joined #ruby
guardian has quit [Ping timeout: 260 seconds]
bb010g has joined #ruby
valera has quit [Ping timeout: 248 seconds]
infra-red has joined #ruby
polysics has joined #ruby
_ht has joined #ruby
benlieb has quit [Ping timeout: 260 seconds]
intrigueD has joined #ruby
benlieb has joined #ruby
dmolina has quit [Quit: Leaving.]
quakephil has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
dmolina has joined #ruby
camillo has joined #ruby
Alak has quit [Quit: Leaving.]
Alak1 has joined #ruby
<quakephil> Hi all. Ruby newb here. I'm making a lightweight API service, and have a working prototype with sinatra+thin, but then I heard about grape. Looking at it on github, and I'm not sure what I get with grape that I don't have without it, just with sinatra. Any thoughts?
<quakephil> Is it just more opinion/framework, or is there functionality that grape has that sinatra doesn't somehow?
sol_ has quit [Ping timeout: 240 seconds]
camillo is now known as sol_
kknight has quit [Ping timeout: 250 seconds]
infra-red has quit [Ping timeout: 260 seconds]
infra-red has joined #ruby
dmolina has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
JJM has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
kinduff has quit [Quit: Textual IRC Client: www.textualapp.com]
xMopxShell has quit [Ping timeout: 248 seconds]
anisha has joined #ruby
blackmesa has joined #ruby
Timba-as has quit [Quit: Be back later ...]
atomical_ has joined #ruby
atomical has quit [Ping timeout: 272 seconds]
darkf has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
theastrowolfe has joined #ruby
atomical has joined #ruby
Ebok has joined #ruby
baweaver has joined #ruby
Ebok has quit [Client Quit]
Ebok has joined #ruby
Ebok has quit [Client Quit]
rkoller has joined #ruby
jeanlinux has quit [Remote host closed the connection]
kimegede has quit [Quit: Leaving...]
ruby-lang has joined #ruby
dotix has joined #ruby
atomical_ has quit [Ping timeout: 240 seconds]
<ruby-lang> Hi I am learning Ruby and want to know more about Traversing through Hash
roshanavand has quit [Ping timeout: 272 seconds]
<ruby-lang> and why they use || in Hash looping
blaxter has quit [Quit: foo]
Zai00 has quit [Quit: Zai00]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
lucasb has joined #ruby
beawesomeinstead has quit [Ping timeout: 260 seconds]
thomasfedb has quit [Ping timeout: 240 seconds]
x77686d has joined #ruby
vcoinminer__ has quit [Ping timeout: 240 seconds]
bjeanes has quit [Ping timeout: 240 seconds]
golgaroth has quit [Ping timeout: 240 seconds]
<ruby-lang> any reference to Logical operator || in Ruby
mhoungbo has quit [Quit: Quitte]
<shevy> ruby-lang fake question?
beawesomeinstead has joined #ruby
ironcamel has quit [Ping timeout: 256 seconds]
ironcamel has joined #ruby
bjeanes has joined #ruby
replay has joined #ruby
replay has quit [Max SendQ exceeded]
golgaroth has joined #ruby
replay has joined #ruby
gizmore has joined #ruby
<eam> shevy: you sure || isn't for boolean or?
vcoinminer__ has joined #ruby
theery has joined #ruby
<baweaver> They mean each { |this| }
ruby-lang has quit [Ping timeout: 252 seconds]
<shevy> eam what else would he meant with "hash looping" really
scottymeuk has joined #ruby
<eam> hash looping sounds like drug slang
Jardayn has joined #ruby
laith has joined #ruby
aldodelgado has joined #ruby
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
JaTochNietDan has joined #ruby
mostlybadfly has joined #ruby
<baweaver> follow your nose eam
ruurd has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
floror has joined #ruby
panzi has joined #ruby
godzillaenlacasa has joined #ruby
<panzi> is it somehow possible to wrap the request methods in a requests rspec?
lemur has joined #ruby
dionysus69 has quit [Remote host closed the connection]
<benlieb> I frequently encrypt files in VI using the :x command. Is there a way to open such files in ruby, given that I know the "password"?
JaTochNietDan has left #ruby ["Textual IRC Client: www.textualapp.com"]
<benlieb> lol the : x command
dionysus69 has joined #ruby
yqt has joined #ruby
RegulationD has joined #ruby
baweaver has quit [Remote host closed the connection]
haylon has joined #ruby
dfinninger has joined #ruby
infra-re_ has joined #ruby
<Ox0dea> benlieb: Write a C extension wrapped around this? https://github.com/wjlandryiii/crackvim
roshanavand has joined #ruby
lemur has quit [Ping timeout: 276 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
<benlieb> Ox0dea: I already know the pw though
<Ox0dea> Oh, right.
xMopxShell has joined #ruby
RegulationD has quit [Remote host closed the connection]
infernix has quit [Ping timeout: 260 seconds]
konsolebox has quit [Remote host closed the connection]
nettoweb has joined #ruby
RegulationD has joined #ruby
<benlieb> I'm not a command line guru, but maybe ruby could call vim directly and somehow get the output?
infra-red has quit [Ping timeout: 240 seconds]
reactor16 has joined #ruby
<Ox0dea> Well, yeah, but that's slightly crazy.
<reactor16> anyone use railgun here ?
Alak1 has quit [Read error: Connection reset by peer]
<quakephil> benlieb: looks like its using zip type compression... have you tried pkzip/unzip directly?
<quakephil> s/compression/encryption/
<reactor16> is there way to define SOCKADDR_IN struct for using connect function in railgun windows post module ?
freerobby has joined #ruby
Alak has joined #ruby
theery has quit []
<Ox0dea> It also supports Blowfish encipherment, which Ruby's OpenSSL wrapper can do just fine.
william3 has quit [Remote host closed the connection]
jeanlinux has joined #ruby
william3 has joined #ruby
<eam> just call vim with a script to write to a new file
replay has quit [Remote host closed the connection]
patchedmonkey has quit [Ping timeout: 240 seconds]
infra-re_ has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dfinninger has quit [Remote host closed the connection]
trinaldi has quit [Quit: WeeChat 1.5-dev]
<eam> benlieb: ex encrypted_file -c ':set key=' -c ':w plaintext_file' -c ':q'
dfinninger has joined #ruby
amorbix has joined #ruby
<benlieb> eam: interesting, lemme look at that...
agentmeerkat has joined #ruby
<eam> I don't know if vim has a good way of passing in the secret -- worst case you can use expect to feed it into the terminal prompt
kknight has joined #ruby
<eam> mildly terrible
diegoviola has joined #ruby
<benlieb> eam: my idea is actually to set it in an env var. I have an app that has all "secrets" in env vars.
<lucasb> vim --cmd 'set key=ohhai' encfile # <-- this works for opening
sandstrom has joined #ruby
aldodelgado has quit [Quit: aldodelgado]
codecop has joined #ruby
momomomomo has joined #ruby
cats has quit [Quit: Meow.]
<benlieb> eam: i'm considering a method for this and future apps where I just have an encrypted file I can keep in source control with all my sensitive data, and then only have to maintain one env var. Not sure how viable it is tho
joonty has joined #ruby
<eam> benlieb: yeah if it'll read from env that's a good solution
<benlieb> just seems simpler
<eam> if you don't want the plaintext on disk you can probably popen it and read into memory too
<eam> or worst case use a fifo
yqt has quit [Ping timeout: 264 seconds]
<eam> be aware if you put the key into argv you're essentially sharing it with all local users on the system
<eam> env should be OK though
<eam> (provided you're careful)
PedramT has joined #ruby
<benlieb> lucasb: how can ruby get the file contents from that command?
infra-red has joined #ruby
<eam> benlieb: that's just the bit that sets the key (so it's not prompted)
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dotix has quit []
<eam> but because it puts the secret in argv it's insecure
rakm has joined #ruby
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
azure32 has joined #ruby
pawnbox has quit [Remote host closed the connection]
infra-re_ has joined #ruby
<azure32> good morning everyone
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jgt4 has quit [Ping timeout: 248 seconds]
<floatingpoint> is it a bad idea to use an initialize method as a driver for a program?
tvon has quit [Quit: tvon]
joonty has quit [Ping timeout: 272 seconds]
PedramT has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
arlek has quit [Ping timeout: 256 seconds]
panzi has quit [Quit: Konversation terminated!]
infra-red has quit [Ping timeout: 276 seconds]
goodcodeguy has joined #ruby
tvon has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
imperator has left #ruby ["Leaving"]
infra-re_ has quit []
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
kirun has joined #ruby
nofxx has joined #ruby
nettoweb has quit [Ping timeout: 272 seconds]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blt_ has quit [Quit: WeeChat 1.3]
<shevy> what kind of program?
baweaver has quit [Remote host closed the connection]
cats has joined #ruby
<floatingpoint> a program that makes some directories and things like that
ElFerna has joined #ruby
sneakers has joined #ruby
rodfersou has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sneakers has quit [Quit: back later]
pawnbox has quit [Remote host closed the connection]
sneakers has joined #ruby
Cohedrin has joined #ruby
Dimik has joined #ruby
ohaibbq has quit [Quit: Leaving...]
acidrainfall has joined #ruby
sneakers has quit [Client Quit]
ElFerna has quit [Ping timeout: 240 seconds]
tvon has quit [Quit: tvon]
sneakers has joined #ruby
<shevy> I usually call other methods from within def initialize
sgambino has joined #ruby
Macaveli has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
Macaveli has quit [Client Quit]
<shevy> main point for initialize is to handle input/ARGV given to the respective class, via .new()
ElFerna has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
sneakers has quit [Client Quit]
SenpaiSilver has joined #ruby
Macaveli has joined #ruby
dmolina has joined #ruby
sneakers has joined #ruby
idefine_ has quit [Remote host closed the connection]
sneakers has quit [Client Quit]
sneakers has joined #ruby
arlek has joined #ruby
sgambino has quit [Client Quit]
howdoi has quit [Quit: Connection closed for inactivity]
sneakers has quit [Client Quit]
<shevy> you can also define #new for a module :)
sneakers has joined #ruby
chouhoul_ has joined #ruby
sneakers has left #ruby [#ruby]
sgambino has joined #ruby
guardian has joined #ruby
anisha has quit [Quit: Leaving]
cdg has quit [Remote host closed the connection]
sneakers has joined #ruby
sneakers has left #ruby [#ruby]
dfinninger has quit [Remote host closed the connection]
mfb2 has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
<azure32> floatingpoint: I second what shevy said about calling other methods from initialize
zapata has joined #ruby
<floatingpoint> yeah
<floatingpoint> that's essentially what i'm doing
chouhoulis has quit [Ping timeout: 250 seconds]
synthroid has joined #ruby
dfinninger has joined #ruby
<floatingpoint> although, i also might use this code as a package, where its methods could be called from other pieces of code
idefine has joined #ruby
<shevy> well, Foo.new is a simply way to reuse it
<shevy> Foo.new('args','here')
dotix has quit [Remote host closed the connection]
ur5us has joined #ruby
<shevy> you can also define [] if you want to then you can omit the new :D Foo['args','here'] ... like Dir['*.rb']
dseitz has joined #ruby
<shevy> I think the most important point is rather how you intend to use this in the code you write, if it is easy to use, easy to remember
<azure32> then you might want to use a module instead of a class
jud has joined #ruby
dexter-tzu has quit [Ping timeout: 272 seconds]
d10n-work has joined #ruby
<azure32> if you want to reuse just individual methods, that is
jmdade has joined #ruby
idefine has quit [Remote host closed the connection]
<djellemah> floatingpoint: Yes, it's probably a bad idea. initialize is for setting up the initial state (ie the instance variables) of an instance. https://en.wikipedia.org/wiki/Constructor_%28object-oriented_programming%29#Ruby - although doing puts in initialize is pretty much exactly not the point.
idefine has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
f4cl3y has quit [Ping timeout: 250 seconds]
synthroid has joined #ruby
karapetyan has joined #ruby
idefine has quit [Read error: Connection reset by peer]
<azure32> floatingpoint: from my experience, its generally considered good practice to put groups of related methods you want to reuse into a module. Then you can just call include MyModule wherever you want to and then Module.method etc etc
yashinbasement has joined #ruby
papercode has quit [Remote host closed the connection]
papercode has joined #ruby
aef has quit [Ping timeout: 240 seconds]
A124 has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
Snowy has joined #ruby
lurch_ has joined #ruby
mjc_ has quit [Quit: Connection closed for inactivity]
<azure32> floatingpoint: hope that helps
mfb2 has joined #ruby
infernix has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
ss_much has quit [Quit: Connection closed for inactivity]
jeanlinux has quit [Read error: No route to host]
mdw has joined #ruby
Bloomer has quit [Remote host closed the connection]
papercode has quit [Remote host closed the connection]
papercode has joined #ruby
Coldblackice has joined #ruby
papercode has quit [Client Quit]
papercode has joined #ruby
asccigcc has joined #ruby
<floatingpoint> yeah i just talked to another dev about it too
idefine has quit [Remote host closed the connection]
<floatingpoint> probably just going to put the methods into a parent run() function
infernix has quit [Changing host]
infernix has joined #ruby
idefine has joined #ruby
<quakephil> I have a working prototype with sinatra+thin, but then I heard about grape. Looking at it on github, and I'm not sure what I get with grape that I don't have without it, just with sinatra. Is it just more opinion/framework, or is there functionality that grape has that sinatra doesn't somehow?
malconis has quit [Read error: Connection reset by peer]
sneakers has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has joined #ruby
bronson has joined #ruby
dotix has joined #ruby
dotix has joined #ruby
theastrowolfe has quit [Quit: Leaving]
Zai00 has joined #ruby
nettoweb has joined #ruby
kirillzh_ has joined #ruby
ss_much has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
amorbix has quit [Ping timeout: 260 seconds]
ReK2 has quit [Remote host closed the connection]
A124 has joined #ruby
dotix has quit []
rAy has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
rAy is now known as Guest3368
joonty has joined #ruby
blackgoat has joined #ruby
yqt has joined #ruby
rodfersou has quit [Quit: leaving]
yqt has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
<Synthead> "gem" installs binaries to ~/.gem/ruby/2.3.0/bin, but bundle installs them to ~/.gem/bin. How can I get bundle to install the binaries to ~/.gem/ruby/2.3.0/bin ?
aryaching has quit []
Xeago has joined #ruby
william3 has quit [Remote host closed the connection]
solars has quit [Ping timeout: 240 seconds]
doublemalt_ has joined #ruby
joonty has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 245 seconds]
william3 has joined #ruby
amorbix has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
dfinninger has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
karapetyan has joined #ruby
dfinninger has joined #ruby
baweaver has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
karapetyan has quit [Ping timeout: 248 seconds]
arlek has quit [Read error: Connection reset by peer]
arlek has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
melter_ has joined #ruby
mickey_mouse_3 has quit [Quit: Leaving]
einarj has joined #ruby
spider-mario has joined #ruby
piotrj has joined #ruby
<quakephil> Synthead: I'm thinking symlink, but there must be a better solution (I'm newb here)
<Synthead> quakephil: yeah
lxsameer has joined #ruby
azure32 has quit [Ping timeout: 240 seconds]
<quakephil> I don't even know if bundle _should_ install to the same place as gem, although I suppose why not
<Synthead> quakephil: I did bundle config --global bin "$HOME/.gem/ruby/2.3.0/bin" but it seems to ignore it
<Synthead> quakephil: bundle just manages gems, right?
JJM has joined #ruby
william3 has quit [Remote host closed the connection]
treehug88 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
frem has joined #ruby
yashinbasement has quit [Ping timeout: 264 seconds]
<shevy> hmm bundle can also install from github projects
uxp_ has quit [Read error: Connection reset by peer]
<adaedra> yep, bitbucket too.
piotrj has quit [Remote host closed the connection]
uxp has joined #ruby
<Synthead> but they're still gems
<shevy> gem is like a simple lego block; bundler is like minecraft :D
<adaedra> You finally catch up with the times? :p
<shevy> with bundler?
solars has joined #ruby
moshee has quit [Ping timeout: 240 seconds]
Guest3368 has quit [Remote host closed the connection]
<spk> what is your output `gem env | grep EXE`
yqt has joined #ruby
<spk> bundle should install on the `EXECUTABLE DIRECTORY`
piotrj has joined #ruby
x77686d has quit [Quit: x77686d]
<Synthead> spk: /home/fred/.gem/bin
agentmeerkat has quit [Ping timeout: 276 seconds]
<Synthead> spk: hmm, nice one
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<Synthead> spk: so if my exec dir is ~/.gem/bin, why do binaries get installed to ~/.gem/ruby/2.3.0/bin via gem?
<Synthead> spk: it looks like USER INSTALLATION DIRECTORY is set to this path
<Synthead> is there a way to change that?
<spk> this is strange
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<spk> and `bundle config` ?
ElFerna has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
sergey_makagon has joined #ruby
<Synthead> spk: no settings have been set for bundle
william3 has joined #ruby
<spk> ok maybe you have environment setting that force ~/.gem/bin
<spk> but I'm not sure
atomical_ has joined #ruby
Kruppe has joined #ruby
william3 has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
william3 has joined #ruby
mary5030_ has joined #ruby
intrigueD has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
<spk> Synthead: do you have bindir option on ~/.gemrc ?
intrigueD has joined #ruby
intrigueD has quit [Changing host]
intrigueD has joined #ruby
intrigueD has quit [Remote host closed the connection]
idefine has joined #ruby
<spk> `gem env | grep bindir`
atomical has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 256 seconds]
godzillaenlacasa has joined #ruby
LoneHerm_ has joined #ruby
<Synthead> spk: ah! I didn't, but my other host that seems to work has a .gemrc
baweaver has joined #ruby
dlitvak has joined #ruby
<Synthead> gem: "--user-install" is in there
antgel has quit [Ping timeout: 248 seconds]
<Synthead> bleh, it didn't seem to make a difference
piotrj has quit [Remote host closed the connection]
<spk> cool
piotrj has joined #ruby
sandstrom has joined #ruby
baweaver has quit [Remote host closed the connection]
x77686d has joined #ruby
dfinninger has quit [Remote host closed the connection]
Cohedrin has joined #ruby
<Synthead> ah fuck, I found out that bundle had installed things to /usr/bin on my good host
<Synthead> I really hate this shit tbh
LoneHerm_ has quit [Ping timeout: 240 seconds]
mary5030_ has quit [Remote host closed the connection]
<Synthead> leveraging local sudo privileges silently is very, very bad
mary5030 has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
<shevy> welcome to bundler!
laith has quit [Quit: leaving]
<eam> chmod 0 $(which sudo)
podman has joined #ruby
decoponio has quit [Quit: Leaving...]
baweaver has joined #ruby
laith has joined #ruby
dfinninger has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
dlitvak_ has joined #ruby
atomical has joined #ruby
benlieb has quit [Quit: benlieb]
amorbix has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 250 seconds]
wolffles has joined #ruby
atomical_ has quit [Ping timeout: 276 seconds]
dlitvak has quit [Ping timeout: 264 seconds]
laith has quit [Read error: Connection reset by peer]
ElFerna has joined #ruby
jgt4 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.3]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
momomomomo has quit [Quit: momomomomo]
idefine has quit [Read error: Connection reset by peer]
treehug88 has joined #ruby
idefine has joined #ruby
dmolina has quit [Quit: Leaving.]
stannard has quit [Remote host closed the connection]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stannard has joined #ruby
benlieb has joined #ruby
mic_e has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mic_e has quit [Read error: Connection reset by peer]
selfadhesivefilm has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
cdg has joined #ruby
<wolffles> str.split('').uniq.map{|letter| letter:str.count(letter)}#create hash using letter
Rickmasta has joined #ruby
<wolffles> im trying to return as a hash
dlitvak has joined #ruby
arlek has quit [Read error: Connection reset by peer]
underplank has joined #ruby
srenatus has quit [Quit: Connection closed for inactivity]
<underplank> HI all, I need to put a float into and xml file, and its needs two decimal places. How can I tell builder / ruby to display a particular float value with two decimal places, as a float.
scripore has joined #ruby
mhoungbo has joined #ruby
joonty has joined #ruby
<wolffles> haha nvm i got it
dlitvak_ has quit [Ping timeout: 256 seconds]
<lucasb> but anyway, str.chars.each_with_object(Hash.new(0)) {|l, h| h[l] += 1 }
<wolffles> str=woot; str.split('').uniq.map{|letter| Hash[letter,(str.count(letter))]}
<wolffles> is what i did :D
<wolffles> i like your way of getting the characters tho
<lucasb> underplank: maybe "%.2f" % num
<underplank> lucasb: that would give me a string correct? rather than a float?
<lucasb> yes
<underplank> yeah, I actually need a float. Or some way to get builder (XML lib) to display it to a precision
arlek has joined #ruby
swills has quit [Ping timeout: 250 seconds]
joonty has quit [Ping timeout: 240 seconds]
<lucasb> ah, so you want to truncate a float
sergey_makagon has quit []
<adaedra> &ri Float#round
<Cohedrin> wouldnt round work?
<Cohedrin> beat me
<Cohedrin> :(
<adaedra> Yeah, but I'm cheating with the bot.
selfadhesivefilm has joined #ruby
selfadhesivefilm has quit [Remote host closed the connection]
<lucasb> yeah, num.round(2) :)
baweaver has joined #ruby
agent_white has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
<underplank> ahh actually im really stupid, I can do the %.2f trick. xml doesnt really care.
idefine has quit [Read error: Connection reset by peer]
Snowy has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
codecop has quit [Remote host closed the connection]
idefine has joined #ruby
lapide_viridi has quit [Quit: Leaving]
pawnbox has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Ping timeout: 245 seconds]
JJM has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
acidrainfall has quit [Ping timeout: 240 seconds]
underplank has quit [Read error: Connection reset by peer]
idefine has quit [Remote host closed the connection]
weemsledeux has joined #ruby
hays_ has quit [Ping timeout: 252 seconds]
acidrainfall has joined #ruby
unl0ckd has quit [Quit: Bye!]
rizenine has quit [Remote host closed the connection]
atmosx has joined #ruby
idefine has joined #ruby
atmosx has quit [Client Quit]
atmosx has joined #ruby
antgel has joined #ruby
idefine has quit [Remote host closed the connection]
ESpiney_ has quit [Ping timeout: 245 seconds]
ta has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
troulouliou_dev has joined #ruby
ta has joined #ruby
rAy has joined #ruby
_ht has quit [Quit: Konversation terminated!]
rAy is now known as Guest59541
ReK2 has joined #ruby
last_staff has quit [Quit: last_staff]
mfb2 has quit [Remote host closed the connection]
mhoungbo has quit [Ping timeout: 250 seconds]
gizless has joined #ruby
ElFerna has quit [Ping timeout: 248 seconds]
gizmore has quit [Ping timeout: 252 seconds]
arlek has quit [Ping timeout: 256 seconds]
johnmilton has quit [Quit: Namaste]
piotrj has quit [Remote host closed the connection]
renderfu_ has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
piotrj has joined #ruby
B1n4r10 has quit [Ping timeout: 248 seconds]
lurch_ has quit [Quit: lurch_]
idefine has joined #ruby
amoeba has joined #ruby
binaryplease has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.4]
andrew_ has joined #ruby
al2o3-cr has joined #ruby
andr_____ has joined #ruby
gizless is now known as gizmore
dexter-tzu has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
floror has quit [Quit: floror]
mdw has quit [Quit: Sleeping Zzzzz]
elifoster has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
[Butch] has joined #ruby
floror has joined #ruby
synthroid has quit []
andrew_ has quit [Ping timeout: 252 seconds]
Azulinho has joined #ruby
floror has quit [Client Quit]
william3 has quit [Remote host closed the connection]
underplank has joined #ruby
JDiPierro has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
swills has joined #ruby
nofacade has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Diabolik has joined #ruby
stevemackinnon has joined #ruby
pandaant has joined #ruby
djcp has quit [Ping timeout: 240 seconds]
JJM has quit [Quit: Textual IRC Client: www.textualapp.com]
trinaldi has joined #ruby
mfb2 has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak_ has joined #ruby
azure32 has joined #ruby
floror has joined #ruby
underplank has quit [Read error: Connection reset by peer]
joonty has joined #ruby
mary5030 has quit [Remote host closed the connection]
johnmilton has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
johnmilton has quit [Max SendQ exceeded]
underplank has joined #ruby
johnmilton has joined #ruby
william3 has joined #ruby
yfeldblum has joined #ruby
pawnbox has joined #ruby
gizless has joined #ruby
joonty has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Quit: Leaving]
lucasb has quit [Quit: leaving]
gizmore has quit [Ping timeout: 240 seconds]
gizless has quit [Client Quit]
pawnbox has quit [Ping timeout: 264 seconds]
sgambino has joined #ruby
sgambino has quit [Client Quit]
Guest59541 has quit []
intrigueD has joined #ruby
william3 has quit [Remote host closed the connection]
underplank has quit [Ping timeout: 250 seconds]
sgambino has joined #ruby
sgambino has quit [Client Quit]
dlitvak has joined #ruby
trinaldi has quit [Quit: WeeChat 1.5-dev]
ElFerna has joined #ruby
idefine has joined #ruby
dlitvak_ has quit [Ping timeout: 256 seconds]
aaeron has joined #ruby
jottr has joined #ruby
<shevy> wolffles you are quite persistent - you must have been using ruby like 2 months by now :)
ramortegui has quit [Remote host closed the connection]
trinaldi has joined #ruby
x77686d has quit [Quit: x77686d]
idefine has quit [Remote host closed the connection]
<wolffles> yeah shevy! i passed the first part of my entrance exam . they liked my code and sent me information for the second part :3
melter_ has quit [Quit: Client exiting]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 276 seconds]
kirillzh_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgpawletko has quit [Quit: jgpawletko]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
idefine has joined #ruby
Alak has quit [Read error: Connection reset by peer]
mdw has quit [Quit: Sleeping Zzzzz]
d5sx43 has joined #ruby
moei has quit [Quit: Leaving...]
d5sx43 has quit [Client Quit]
x77686d has joined #ruby
ocbtec has quit [Quit: leaving]
dlitvak_ has joined #ruby
aaeron has quit [Quit: aaeron]
polishdub has quit [Quit: Leaving]
rizenine has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<al2o3-cr> >> "w""o""l""f""f""l""e""s"
<ruby[bot]> al2o3-cr: # => "wolffles" (https://eval.in/517250)
<azure32> are there any certification programs for ruby that are worth doing?
dlitvak has quit [Ping timeout: 264 seconds]
<wolffles> lol thats my name!
aaeron has joined #ruby
<wolffles> o.O there are logs of everything i type in the interwebs!
zenlot1 has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
pawnbox has joined #ruby
zenlot has quit [Ping timeout: 250 seconds]
rdark has quit [Ping timeout: 264 seconds]
<al2o3-cr> >> "w""o""l""f""f""l""e""s".reverse
<ruby[bot]> al2o3-cr: # => "selfflow" (https://eval.in/517258)
freerobby has quit [Quit: Leaving.]
mdw has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
baweaver has joined #ruby
<shevy> al2o3-cr lol
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofacade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> waffles is a good nick
akem has joined #ruby
<wolffles> http://logs.ryanbigg.com/p/wolffles?page=2 i found you radar
<al2o3-cr> hmmmmmm waffles
whippythellama has quit [Quit: WeeChat 1.4]
<shevy> azure32 probably not but if you can get matz to sign a t-shirt, that would be something
pawnbox has quit [Ping timeout: 240 seconds]
azure32 has quit [Ping timeout: 245 seconds]
mdw_ has joined #ruby
<shevy> seems wolffles likes that
<wolffles> my nick is wolf-fles cuz my name is wolfie
andr_____ has quit [Remote host closed the connection]
<al2o3-cr> wolffles: beer tap now :p
peteyg has joined #ruby
bluOxigen has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
bluOxigen_ has quit [Ping timeout: 240 seconds]
mdw has quit [Ping timeout: 252 seconds]
baweaver has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
piotrj has quit [Remote host closed the connection]
<Radar> wolffles: omg stalker
<wolffles> i should say the same for you >.>
shellie_ has quit [Remote host closed the connection]
<wolffles> everything i say is logged o.O
<Ox0dea> The future is now.
<wolffles> its the nsa all over again
<Ox0dea> Again? When did it stop?
blackgoat has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
<wolffles> nah i just mean the fear of being monitered
<wolffles> i got over the first fear
<Radar> wolffles: lol
baweaver has joined #ruby
spider-mario has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
bronson has joined #ruby
kirillzh_ has joined #ruby
bluOxigen_ has joined #ruby
helpa has joined #ruby
<al2o3-cr> i want waffles
<wolffles> i want beef stew going to the store :P
bluOxigen has quit [Ping timeout: 240 seconds]
wolffles has left #ruby [#ruby]
mfb2 has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
piotrj has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
* al2o3-cr is going insane
* al2o3-cr to much fumes
pdoherty has quit [Ping timeout: 252 seconds]
allcentury has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
azure32 has joined #ruby
aaeron has quit [Quit: aaeron]
mdw_ has quit [Ping timeout: 276 seconds]
scripore has quit [Quit: This computer has gone to sleep]
joonty has joined #ruby
binaryplease has joined #ruby
azure32 has quit [Read error: Connection reset by peer]
AndChat|92225 has joined #ruby
pandaant has quit [Remote host closed the connection]
AndChat|92225 has quit [Client Quit]
the_drow has quit [Quit: This computer has gone to sleep]
jgpawletko has joined #ruby
joonty has quit [Ping timeout: 240 seconds]
m4rCsi has joined #ruby
lxsameer has quit [Quit: Leaving]
piotrj has quit [Remote host closed the connection]
aaeron has joined #ruby
aaeron has quit [Client Quit]
kirillzh_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnmilton has quit [Ping timeout: 260 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mdw has quit [Quit: Sleeping Zzzzz]
mdw has joined #ruby
saneax_AFK is now known as saneax
aaeron has joined #ruby
jottr has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
symm- has quit [Ping timeout: 240 seconds]
kirillzh has joined #ruby
TomyLobo has quit [Ping timeout: 240 seconds]
finisherr has joined #ruby
kirillzh has quit [Max SendQ exceeded]
kirillzh has joined #ruby
sgambino has joined #ruby
haylon has left #ruby ["WeeChat 1.3"]
zeroDivisible has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
Azulinho has quit [Ping timeout: 240 seconds]
piotrj has joined #ruby
roshanavand has quit [Remote host closed the connection]
nofacade has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
kirun has quit [Quit: Client exiting]
xerophyte has joined #ruby
Bulo has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
pawnbox has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
treaki has joined #ruby
kknight has quit [Read error: Connection reset by peer]
toretore has joined #ruby
dlitvak_ has joined #ruby
azure32 has joined #ruby
binaryplease has quit [Ping timeout: 272 seconds]
shellie_ has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
euphoriaa is now known as euphoria
euphoria is now known as euphoriaa
aef has joined #ruby
Xeago has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
binaryplease has joined #ruby
lucasb has joined #ruby
piotrj has quit [Remote host closed the connection]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 240 seconds]
unl0ckd has joined #ruby
benlieb has quit [Quit: benlieb]
Xeago has quit [Ping timeout: 260 seconds]
jgt4 has quit [Ping timeout: 276 seconds]
symbol has joined #ruby
azure32 has quit [Ping timeout: 272 seconds]
ESpiney_ has joined #ruby
idefine has quit [Remote host closed the connection]
peterevjan has joined #ruby
minimalism has quit [Quit: minimalism]
solars has quit [Ping timeout: 264 seconds]
nofacade has quit [Ping timeout: 252 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
RegulationD has quit [Remote host closed the connection]
ropeney has joined #ruby
kknight has joined #ruby
dfinninger has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
reactor_ has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
reactor16 has quit [Ping timeout: 245 seconds]
peterevjan has quit [Remote host closed the connection]