apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Spami has quit [Quit: This computer has gone to sleep]
djdarkbeat has joined #ruby
ctp_ has joined #ruby
iwishiwerearobot has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ctp_ has quit [Quit: ZNC - http://znc.in]
ctp_ has joined #ruby
devoldmx33 has joined #ruby
djdarkbeat has quit [Client Quit]
Beoran_ has joined #ruby
Kricir has quit [Remote host closed the connection]
bears_ has joined #ruby
vyorkin has quit [Quit: WeeChat 1.0.1]
iwishiwerearobot has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
ctp_ has quit [Client Quit]
bears_ has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
ctp_ has joined #ruby
fgo_ has quit [Quit: WeeChat 1.0]
<lessless> hello! anybody not sleeping here?
<jhass> lessless: you aren't
<havenwood> my brain parts are sleeping today but my fingers are awake
<lessless> I just can't! There a question bothering me
<lessless> is this a meaningless code: JSON.load(user) if user = REDIS.get(@token) ?
<lessless> or a code smell?
baweaver has joined #ruby
ghr has joined #ruby
Stoge88 has joined #ruby
kiyote23 has joined #ruby
<jhass> context? single line in a method?
baweaver has quit [Remote host closed the connection]
<lessless> yes
baweaver has joined #ruby
<jhass> I'd explode it to two lines personally, but actually a quite common thing to do I'd say
<jhass> you see it more often with more than one line in the if
beef-wellington has joined #ruby
<lessless> all right, than ruboop is just giving a false positive
wjimenez5271 has quit [Remote host closed the connection]
<jhass> rubocop's defaults are highly opinionated
<jhass> not many people actually (like to) follow them
<jhass> in my experience
aspires has joined #ruby
virtualize has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
wink_ndge has joined #ruby
<banister> jhass areyou a fan of rammstein?
<jhass> not really
<jhass> maybe a little bit like 8-10 years ago
<jhass> how come you ask?
spastorino has quit [Quit: Connection closed for inactivity]
triple_b has joined #ruby
klmlfl_ has joined #ruby
tier has joined #ruby
<banister> jhass because you're german, just curious
<banister> jhass the only german band (afaicr) to be famous outside of germany, while still singing in german
<jhass> kraftwerk?
<lessless> just wanted to say that :)
<banister> jhass while singing in german...kraftwerk are purely electronic music with no lyrics, no?
<jhass> no
<banister> ah, but mostly just eletronic though no?
<jhass> purely electronic yes
<banister> can you link me to a famous kraftwerk song that has german lyrics in it?
<jhass> and the lyrics are more, well voice is just another source of noise to turn into music ;)
<jhass> autobahn
hiyosi has joined #ruby
<banister> jhass thanks
<jhass> das model too
<jhass> I think there are more
<banister> jhass come on man, autobahn has barely any lyrics to speak of :)
<jhass> they actually quite regularly use voice as an instrument
klmlfl has quit [Ping timeout: 264 seconds]
<banister> ok, i'll restrict my question to "rock band" :)
<jhass> phew
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banister> jhass only other famous song with german lyrics i know is "99 balloons" ;)
<lessless> Germany is more famous for its electonic sounds actually
<jhass> but matches the "is german, must like rammstein, beer and weißwurst" thinking I guess ;P
ctp__ has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
<lessless> there are two major electronic schools: Berlin and London
<banister> jhass i don't htink so, most english-speakers wouldn't be able to type that weird B thing on their keyboards ;)
<lessless> Berlin is more machinery, cold and techy
olivier_bK has joined #ruby
<jhass> Frankfurt was quite big in the 90s too
mjuszczak has quit []
<lessless> capitals stands for whole country ;)
<lessless> *capital
penzur has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> ew, I disagree
<jhass> then Detroit is US?
<jhass> that's so ridiculous
<havenwood> Detroit?
mikepack has joined #ruby
<godd2> Detroit is in Michigain
asmodchan has joined #ruby
<jhass> strong influences in the 90s too
<havenwood> which is in the middle of nowhere
<havenwood> and not the capital, thankfully
<godd2> no, it's the capital of nowhere
jeanlinux has joined #ruby
<godd2> actually, thats probably be like, Tulsa or something
Kricir has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
wjimenez5271 has joined #ruby
n3phos has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0/20141125180439]]
jeanlinux has quit [Ping timeout: 264 seconds]
<sargas> If I define a method inside of a Proc, can it see the local variables there whenever I call it?
Mothore has joined #ruby
<sargas> or is it like a block, that once it is done executing its scope is gone?
<jhass> if you use define_method, yes
<jhass> since you pass a block to define method and that closures the locals
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
jenrzzz has joined #ruby
hornairs_ has joined #ruby
hornairs_ has quit [Client Quit]
davidstars has joined #ruby
_mtr has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
digdeep has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 244 seconds]
Kricir has quit [Remote host closed the connection]
spicerack has joined #ruby
D9 has joined #ruby
hornairs has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
mistergibson has joined #ruby
Shazaum has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
LouisRoR has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
adriancb has joined #ruby
klmlfl_ has quit [Ping timeout: 265 seconds]
triple_b has joined #ruby
ice9 has quit [Quit: Leaving.]
charliesome has joined #ruby
AlexRussia has joined #ruby
triple_b has quit [Client Quit]
adriancb has quit [Ping timeout: 256 seconds]
Mothore has quit [Quit: Be back later ...]
gsd has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
triple_b has joined #ruby
hornairs has joined #ruby
duncannz has quit [Ping timeout: 272 seconds]
AmirolAhmad has joined #ruby
tjsousa has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
veduardo has joined #ruby
rshetty has joined #ruby
SCHAAP137 has joined #ruby
JimmyNeutron has joined #ruby
procat has joined #ruby
davidstars has quit [Quit: Leaving]
it0a has joined #ruby
<sargas> jhass: would all subsequent calls to the methods I defined using define_method() have access to lambda's scope?
<jhass> why don't you just try it out?
<jhass> easy enough to do
econerd4ever has joined #ruby
procat has quit [Ping timeout: 255 seconds]
beneggett has quit [Read error: Connection reset by peer]
codeFiend has quit [Quit: codeFiend]
<sargas> jhass: you're right. I'll try it out
cleopatra has quit [Remote host closed the connection]
ninjazach has joined #ruby
phutchins has joined #ruby
<shevy> sargas that is the point of a proc, it remembers the context it was defined
<shevy> jhass Germany is famous for the Oktoberfest!
<jhass> sadly
<jhass> we're also famous for hitler I guess
<shevy> where was hitler born
<jhass> although he was from austria
<godd2> also famous for being Berliners
<shevy> ;)
<sargas> shevy: this is a new concept to me, Ruby makes extensive use of these callable objects that I can't wrap my mind around quite yet
<shevy> sargas yeah; well it fits the whole block usage
<shevy> and objects
SCHAAP137 has quit [Remote host closed the connection]
<shevy> sargas you can even make an object from a method http://ruby-doc.org/core-2.1.4/Method.html
<shevy> >> m = 42.method("+"); m.call(42)
<eval-in__> shevy => 84 (https://eval.in/233704)
<sargas> jhass: Brazil also has an Octoberfest, just not quite as big... or as long
rshetty has quit [Remote host closed the connection]
<shevy> eh
<shevy> Brazil is famous for Capoeira, Samba ... hmm ... and I dunno. the rainforest?
<jhass> sargas: sorry for that I guess
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arquebus has quit [Quit: Konversation terminated!]
tier has quit [Remote host closed the connection]
<shevy> or alcohol-driven cars hahaha
<sargas> and Soccer, until Germany beat the crap out of us...
<shevy> ah yes
<shevy> I forgot that completely hahaha
devoldmx33 has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<godd2> and crazy parades, shevy
<shevy> they lost like 20:0 or so
<sargas> sad day for me, happy day for jhass?
<shevy> sad day for me too, nobody except germans likes germany to win in soccer
<sargas> shevy: it was definitely possible, but they stopped at 7:1
<jhass> soccer is as important to me as... dunno... how many cents there are in shevy's pocket?
<shevy> I don't carry cents in my pocket, I hate cents
<jhass> and I don't even care!
<sargas> jhass: lol... you sure get your point across
<shevy> then why did you ask!
<jhass> I didn't
rshetty has joined #ruby
<sargas> I mentioned it was possibly a happy day for him when Germany won
<sargas> but he clearly doesn't care
<shevy> oh but he watched it
<jhass> did I? I don't even remember
<shevy> surely you must remember the famous wardance
<jhass> for what reason?
<sargas> shevy: so callable objects in Ruby would be: Procs and Methods?
dc has joined #ruby
marr has quit [Ping timeout: 240 seconds]
<shevy> sargas hmm you mean objects that respond to the method .call ?
Musashi007 has joined #ruby
ghr has joined #ruby
davedev24_ has quit []
<shevy> I am a bit confused about class Method
<shevy> what is the difference between Method and Proc?
<jhass> note that callable here doesn't mean the same thing as in for example python
pietr0 has quit [Quit: pietr0]
heftig has quit [Quit: No Ping reply in 180 seconds.]
patrick99e99 has quit [Ping timeout: 256 seconds]
iamninja has joined #ruby
<sargas> shevy: I guess... this is how the book I'm reading refers to them if I understand correctly
<jhass> shevy: what they represent
robustus has joined #ruby
<shevy> ok but a Proc has an associated action too, a method has as well
<sargas> any object you can store and use .call later
echooo has quit [Remote host closed the connection]
echooo has joined #ruby
<jhass> shevy: a method has an receiver, a proc does not
anibara has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<jhass> sargas: it's really just a regular method
<sargas> but both respond to #call()
<jhass> >> class Foo; def call; 42; end; end; Foo.new.call
<eval-in__> jhass => 42 (https://eval.in/233705)
<jhass> or even
oo_ has joined #ruby
<shevy> >> m = 42.method("+"); m.call(42)
<eval-in__> shevy => 84 (https://eval.in/233706)
ctp_ is now known as ctp
<jhass> >> class Foo; def call; 42; end; end; Foo.new.()
<eval-in__> jhass => 42 (https://eval.in/233707)
<shevy> >> m = Proc.new {|entry| entry + 42 }; m.call(42)
<eval-in__> shevy => 84 (https://eval.in/233708)
heftig has joined #ruby
<sargas> jhass: cool
<shevy> sargas did you see that matz is working on a new programming language?
tkuchiki has joined #ruby
<sargas> shevy: I thought he was working on cRuby
ghr has quit [Ping timeout: 240 seconds]
dc has quit [Ping timeout: 245 seconds]
<shevy> dunno why he is experimenting there
Daniel__^_^ has quit [Remote host closed the connection]
<shevy> perhaps ruby became too static!
<sargas> shevy: interesting idea. Why so much focus on input/output handling?
b3itz has joined #ruby
<shevy> I have no idea
<shevy> the syntax example was weird
<shevy> input | output ?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<b3itz> hey guys.. so i have a string such as "2014-11-26|192.168.220.048|192.168.240.011" and i need to extract (split) out of it the date, svrip, srcip and name them accordingly.. how do i do that? I'm assuming i need to use the split with a "|" delimiter
<shevy> that's like in a pipe right
<shevy> b3itz ok now you have an Array with 3 members
<sargas> Ruby is a kid that matured and took off... I guess Matz wanted to have a "new" child?
<shevy> dunno
<shevy> there is the path to ruby 3.0 still
<b3itz> shevy: no, a String
<jhass> b3itz: looks like CSV with a | as separator
<pontiki> hey, folks
<sargas> some people already tried adding type annotations to Ruby AFAIK... I don't know if that would be a good idea?
<b3itz> jhass: essentially is.
<b3itz> theyre iis logs
<jhass> sargas: it's a different language
<jhass> sargas: have a look at crystal
<jhass> b3itz: String#split then
<shevy> b3itz well when you applied .split you have it as Array
jimmyhoughjr has joined #ruby
<shevy> >> "2014-11-26|192.168.220.048|192.168.240.011".split '|'
<eval-in__> shevy => ["2014-11-26", "192.168.220.048", "192.168.240.011"] (https://eval.in/233716)
<b3itz> i see i see.. let me tinker for a minute
workmad3 has quit [Ping timeout: 258 seconds]
Hijiri has joined #ruby
<shevy> sargas if it would be optional then it's no problem right? because people who won't need it could ignore it. others could do typecasts early and guarantee a desired target format without having to maintain it on their own
SCHAAP137 has joined #ruby
<sargas> jhass: Crystal doesn't seem to have type annotation... in fact, it states that you never have to do it again!
<shevy> see the language nimrod/nim http://nimrod-lang.org/
<jhass> it's not true yet
Soda has joined #ruby
<jhass> and it has them
<shevy> apparently jhass likes crystal
<jhass> I do
<jhass> sargas: in fact it's statically typed
triple_b has joined #ruby
<shevy> I haven't tried crystal yet. I have tried nimrod ... it's ok but I personally found the docs not excellent, which is similar to ruby but somehow the ruby syntax was much easier for my brain to handle than nimrod
<sargas> jhass: so it figures the type when you define a variable/method, then it sticks with that type?
<shevy> case user_input
<shevy> of "":
<shevy> :)
<jhass> sargas: sort of
<shevy> while not eof(stdin): var line = stdin.readline
<zenspider> nimrod? a religious gem?
<jhass> it knows union types, so a variable can have more than one type
<jhass> and you can only call methods common to those types until you do a check for which type it actually has right now
<sargas> shevy: him (former nimrod) seems very different
StoneCypher has quit [Ping timeout: 260 seconds]
vroomanj_ has joined #ruby
lele has quit [Quit: Coyote finally caught me]
<sargas> jhass: smart, I will take a deeper look into it after I figure Ruby out
<jhass> it's still in early development anyway ;)
<jhass> lot's of things will probably still change
<sargas> Ruby is just too sexy for me to not use it
<jhass> yeah, I hope I can use crystal as an extension language for things that are just not efficient enough in ruby
<zenspider> is this the ruby-esque one or is that crystal?
<jhass> but a compiled language does have to give up a lot of ruby's dynamism
<sargas> jhass: man... being able to have Crystal extensions in Ruby. Does that sound cool?
<jhass> zenspider: crystal is the one with ruby-like syntax
apoorvparijat has joined #ruby
<zenspider> ah. no. nim looks kinda like ML... ish
<sargas> zenspider: with Python-like indentation
pwnz0r has joined #ruby
workmad3 has joined #ruby
econerd4ever has quit [Remote host closed the connection]
<sargas> jhass: thanks for the resource, much appreciated
<jhass> probably achievable dream-goal is to have a crystal macro that's a Ruby class that generates a crystal class that automatically defines the bindings
Soda has quit [Remote host closed the connection]
<jhass> currently that repo is more a PoC
<jhass> that you can write extensions for ruby in crystal at all
centrx has joined #ruby
<sargas> jhass: I'll look more into it...
<sargas> but 1st I need to understand Procs
oleo__ has joined #ruby
oleo is now known as Guest70108
chipotle has joined #ruby
pwnz0r has quit [Remote host closed the connection]
<jhass> chunks of code that save the context they're defined in and that you can pass around
patrick99e99 has joined #ruby
apoorvparijat has quit [Ping timeout: 256 seconds]
<jhass> there's not much more to them
<sargas> jhass: I'm liking where Rust is going though, no GC, lifetimes and stuff... but it is still a moving target...
<sargas> code I wrote last month doesn't compile today
tjsousa has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
it0a has quit [Quit: WeeChat 1.0.1]
<jhass> dunno, I think I actually like GC
Vile` has joined #ruby
<sargas> and LLVMs are still above my level of comprehension
<sargas> GC is fine for interpreted languages imo
AmirolAhmad has quit [Ping timeout: 265 seconds]
Guest70108 has quit [Ping timeout: 258 seconds]
AmirolAhmad has joined #ruby
djbkd has joined #ruby
<sargas> but having the full control of memory usage usually means more freedom
valeriansaliou has joined #ruby
fabrice31 has joined #ruby
<sargas> and more shooting yourself in the foot
<jhass> I'm willing to trade a little bit of freedom if it saves me from ^ and doesn't annoy me with memory leaks and free'ing stuff too early
<jhass> and doing that all the time manually really
<jhass> in the general case of course
anibara has quit [Quit: anibara]
Shazaum has quit [Quit: This computer has gone to sleep]
<jhass> programming languages are tools, no tools serves all usecases
bwr has quit [Quit: :q]
wjimenez5271 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 258 seconds]
gsd has joined #ruby
lele has joined #ruby
x1337807x has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
apoorvparijat has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
reset has joined #ruby
valeriansaliou has quit [Ping timeout: 272 seconds]
XxionxX has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
<XxionxX> I this the right way to do this?
<XxionxX> hash_names = [ "dog", "Nerf", "Batou", "indigo" ]
<XxionxX> hash_numbers = [ 1, 2, 3, 4 ]
<XxionxX> hash_array = Hash[hash_names.zip(hash_numbers)]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> XxionxX: for this example no, if you have constant values just define a hash literal
hamakn has quit [Remote host closed the connection]
Juanchito has quit [Quit: Connection closed for inactivity]
<sargas> jhass: I couldn't agree more, it is good to have enough tool on your toolbelt
<sargas> that you can do what you need to
<XxionxX> I know I can set the values of a hash, I was trying to figure out how to take 2 arrays and make them into a hash
<jhass> Then you found it, 2.1 also ships Array#to_h
rshetty has quit [Remote host closed the connection]
<XxionxX> jhass: Thanks, I will have to check that out
rshetty has joined #ruby
icbm has quit [Quit: Leaving]
<havenwood> >> %w[dog nerf batou indigo].map.with_index(1).to_h
AmirolAhmad has joined #ruby
<eval-in__> havenwood => {"dog"=>1, "nerf"=>2, "batou"=>3, "indigo"=>4} (https://eval.in/233719)
<jhass> still doesn't mean there's an even better way for your underlying problem btw
asmodlol has quit [Ping timeout: 245 seconds]
hmsimha has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
bricker`work has quit [Ping timeout: 252 seconds]
iwishiwerearobot has joined #ruby
<XxionxX> Sweet! Array#to_h was exactly what I was looking for.
aspires has quit []
<XxionxX> I'm glad I found the .zip method too though
<XxionxX> That's handy
<banister> XxionxX zip is k00
aspires has joined #ruby
<XxionxX> I'm still learning how to navigate the docpages, it's hard when I don't know what I am looking for
IrishGringo has joined #ruby
iwishiwerearobot has quit [Ping timeout: 250 seconds]
ghostmoth has joined #ruby
<banister> XxionxX use pry then and explore as you go along
<XxionxX> pry?
ghostmoth has quit [Client Quit]
aspires has quit []
<banister> XxionxX http://pryrepl.org
chipotle has quit [Quit: cheerio]
Kricir has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
econerd4ever has joined #ruby
aspires has joined #ruby
cantonic has joined #ruby
aspires has quit [Client Quit]
<XxionxX> banister That looks cool, I'll have to give it a try
<pontiki> make it a way of life
mjuszczak has joined #ruby
<pontiki> #pryeverywhere
AlSquire has quit [Quit: This computer has gone to sleep]
tier has joined #ruby
spicerack has joined #ruby
<XxionxX> so much information @_@ overload
claptor has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
ylluminarious has joined #ruby
<zenspider> eh. ruby's learning curve is pretty gentle, overall. I like that most of the time, the answer is in the question already
<zenspider> eg: Q:"how do I split a string into words?" A:"String#split"
<zenspider> it's pretty intuitive. I've found a LOT of my students and mentees just needed to learn to try it out and usually already had the answer in their head... or were very close
avrc has joined #ruby
<zenspider> other programming languages train you to go research ad nauseum before you try anytihng out. not so in ruby and other repl-strong languages
<zenspider> (like racket, my current fav)
chipotle has joined #ruby
koglinjg has joined #ruby
pedahzur has quit []
veduardo has quit [Ping timeout: 244 seconds]
<XxionxX> zenspider thanks for the tip! That Q&A thing is going to come in handy.
Kricir has quit [Remote host closed the connection]
ghr has joined #ruby
amclain has joined #ruby
neoxquick has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
<XxionxX> My brain has a tiny amount of RAM so lots of things tend to overwhelm me at first :P I just keep learning and soon it's all in my long term memory and I don't even think about it
Megtastique has quit []
<Hijiri> how much swap?
tokik has quit [Ping timeout: 260 seconds]
<XxionxX> LOTS, once I learn things I can access them quickly.
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hijiri> but swap is slow
<Hijiri> swap is like notebooks or something
allcentury has joined #ruby
<Hijiri> I don't think anyone uses notebooks to code
<Hijiri> I guess the internet is the internet
<XxionxX> Not for me, my brain treats everything like an SSD
rshetty has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
<Hijiri> RAM is still much faster than an SSD
deric_skibotn has quit [Ping timeout: 258 seconds]
gsd has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
<XxionxX> Yes, I agree the analogy is flawed
hmsimha has quit [Ping timeout: 252 seconds]
gsd has joined #ruby
narcan has joined #ruby
narcan has quit [Max SendQ exceeded]
<koglinjg> I have an object that sometimes responds to the "owner" method and I want to use respond_to to check if it does and do something, otherwise do something else. The problem is respond_to?(:owner) always returns false even when I have an object that I can call owner on
<pontiki> no model is perfect; some models are sometimes useful
b3itz has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
Mia has quit [Read error: Connection reset by peer]
<zenspider> koglinjg: then either you're not talking to what you think you are or the object is implemented poorly
AmirolAhmad has quit []
alekst has joined #ruby
econerd4ever has quit [Remote host closed the connection]
perturbation has quit [Quit: Leaving]
<zenspider> eg, if you implement method_missing, you should implement respond_to or respond_to_missing accordingly
econerd4ever has joined #ruby
gsd has quit [Client Quit]
brandon_ has quit [Ping timeout: 245 seconds]
<koglinjg> zenspider, I am doing this in irb, and I can run project.owner (which returns an owner id) and then project.respond_to?(:owner) and it returns false
ninjazach has quit [Ping timeout: 258 seconds]
<pontiki> is this in rails?
brandon_ has joined #ruby
conniemj_ has quit [Quit: (null)]
Megtastique has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<koglinjg> zenspider, it is an objectifiedHash from the gitlab api gem, https://github.com/NARKOZ/gitlab/blob/master/lib/gitlab/objectified_hash.rb
Kricir has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
mjmac has joined #ruby
rockdon has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
mloveless has joined #ruby
apoorvparijat has quit [Remote host closed the connection]
chance_ has joined #ruby
econerd4ever has quit [Ping timeout: 240 seconds]
chance_ has left #ruby [#ruby]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
pawprint has joined #ruby
<pawprint> how can i get more information on a particular gem without installing it?
<pawprint> info like its homepage
dain has joined #ruby
<jalcine> pawprint: look on http://rubygems.org
<jalcine> rtfm
<pawprint> thanks
<jalcine> :)
econerd4ever has joined #ruby
studiotate has quit [Ping timeout: 258 seconds]
allcentury has quit [Ping timeout: 244 seconds]
studiotate has joined #ruby
adriancb has joined #ruby
eka has joined #ruby
<eka> hi
allcentury has joined #ruby
<eka> what's the use of JSON.pretty_generate? just for outputting?
bkolden has quit [Quit: Leaving]
kish has joined #ruby
smoores has joined #ruby
krz has joined #ruby
smoores has left #ruby [#ruby]
kenneth has joined #ruby
pawprint has left #ruby ["Leaving"]
Photism has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 256 seconds]
blizzy is now known as blizzybot
blizzybot is now known as blizzy
blizzy is now known as blizzybot
olivier_bK has quit [Ping timeout: 260 seconds]
mjmac has quit [Ping timeout: 258 seconds]
Techguy305 has joined #ruby
blizzybot is now known as blizzy
patrick99e99 has quit [Ping timeout: 245 seconds]
blizzy is now known as blizzybot
Channel6 has joined #ruby
kapil__ has joined #ruby
rockdon has quit [Ping timeout: 258 seconds]
blizzybot is now known as blizzy
sarmiena_ has quit [Quit: sarmiena_]
kl has quit [Ping timeout: 252 seconds]
alekst has quit [Quit: Computer has gone to sleep.]
alekst has joined #ruby
ChoiKyuSang has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
boombadaroomba has joined #ruby
cleopatra has joined #ruby
AlbertoCG has quit [Ping timeout: 258 seconds]
lmickh has quit [Remote host closed the connection]
penzur has quit [Quit: WeeChat 1.0]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
rshetty has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 258 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeaye has left #ruby ["WeeChat 1.0.1"]
lucyinthesky has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
oo_ has joined #ruby
boombadaroomba has quit [Ping timeout: 252 seconds]
lemur has joined #ruby
procat has joined #ruby
rockdon has joined #ruby
kish has quit [Read error: Connection reset by peer]
mjmac has joined #ruby
linocisco has joined #ruby
kish has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
<linocisco> hi all
<linocisco> What is the best free IDE to run Ruby ? I tried Jedit and not good. RubyMine is not free
D9 has quit [Quit: Leaving]
<centrx> vim
<havenwood> emacs
<havenwood> linocisco: https://atom.io
alekst has quit [Quit: Computer has gone to sleep.]
<linocisco> havenwood, thanks let me see
TgMts has joined #ruby
<linocisco> centrx, i m on windows. not on linux or Mac
procat has quit [Ping timeout: 252 seconds]
<waxjar> sublime text, ftw
<linocisco> waxjar, answer to me?
<XxionxX> RubyMine?
<havenwood> linocisco: OS/distro?
<waxjar> yeah, it's not strictly speaking an IDE but neither are the others :)
Vile` has quit [Remote host closed the connection]
<havenwood> linocisco: LightTable is another free option.
<XxionxX> Nevermind, I missed the part about it not being free
<linocisco> havenwood, OS =WIndows 7, ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
<linocisco> havenwood, thanks let me see
<jerrett_> linocisco: vim
Vile` has joined #ruby
<waxjar> has light table gotten ruby support?
econerd4ever has quit [Remote host closed the connection]
<linocisco> jerrett_, does vim work on windows 7?
<jerrett_> emacs can be good, you can install http://www.emacswiki.org/Evil
econerd4ever has joined #ruby
<jerrett_> linocisco: yes
alekst has joined #ruby
<jerrett_> Also, linux works on your windows 7 hardware :D
<jerrett_> but Cream is a good Vim client for windows
<havenwood> linocisco: then Atom or LightTable would be good bets, i don't know of a good Win-specific editor
<waxjar> notepad :P
<havenwood> waxjar: yup
<linocisco> havenwood, thanks
<jerrett_> I actually used to use Netbeans which can be pretty good in ruby
<linocisco> jerrett_, thanks bro
<waxjar> havenwood: ooh cool, i gotta check that out
<jerrett_> i switched to vim when i was stuck on windows for a month and coudln't find a decent text editor
reset has quit [Quit: Leaving...]
<linocisco> jerrett_, really I have netbeans installed to be used with perl. if Netbeans works for ruby, i will try
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
marcules has quit [Ping timeout: 246 seconds]
<XxionxX> I like vim, it's hard at first but it gets easier the longer you use it
jenrzzz has quit [Ping timeout: 245 seconds]
<linocisco> jerrett_, there is more choice using linux
jlast has quit [Remote host closed the connection]
<jerrett_> indeed
<XxionxX> Come to the linux side...
jlast has joined #ruby
<linocisco> XxionxX, because vim has two complicated mode. edit mode and command mode. it is confusing. Most normal editing is easier with nano. but it has no colors
econerd4ever has quit [Ping timeout: 240 seconds]
duncannz has quit [Ping timeout: 240 seconds]
<linocisco> XxionxX, i wish I could. I was ubuntu guy. but here at work, windows 7 is office standard
<jerrett_> "complicated" mode
<jerrett_> seriously, checkout cream, i wasn't being sarcastic
<jerrett_> it's good
<XxionxX> linocisco I use a livecd or liveusb at my work
tokik has joined #ruby
<XxionxX> not that everyone can do that
<jerrett_> i'm confused, your work standard is windows 7, but it's a ruby shop?
tier has quit [Remote host closed the connection]
<linocisco> jerrett_, ruby is for personal career deveolopment for future.
<jerrett_> ah-ha
<XxionxX> you get used to the two modes of editing vim though
<jerrett_> three
chu has joined #ruby
<jerrett_> also, what in the world is matz up to.. https://github.com/matz/streem
tyll has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
nfk has quit [Quit: yawn]
duncannz has joined #ruby
CrazyM4n has quit [Ping timeout: 256 seconds]
alekst has quit [Quit: Computer has gone to sleep.]
allcentury has quit [Ping timeout: 250 seconds]
<jerrett_> window 1
<jerrett_> woops.
SCHAAP137 has quit [Remote host closed the connection]
<godd2> shevy my gem is up to 0.1.0 now: http://rubygems.org/gems/dare and the readme on the github repo is a little better
SCHAAP137 has joined #ruby
<waxjar> havenwood: did you just mean syntax highlighting, not any of that fancy evaluation stuff?
phutchins has quit [Ping timeout: 240 seconds]
<havenwood> waxjar: oh yeah, it's a plugin: https://github.com/darthdeus/LightTable-Ruby#readme
kenneth has joined #ruby
ghr has joined #ruby
<havenwood> waxjar: i was wondering if Ruby would get doc support and more of a first class eval in the latest big release, but doesn't seem so
mahtennek has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> godd2 \o/
<shevy> Fetching: opal-0.7.0.beta3.gem (100%)
<shevy> Successfully installed opal-0.7.0.beta3
uber_hulk has joined #ruby
<havenwood> waxjar: so yeah, i guess nevermind. i forgot it was a plugin. it's a bit janky.
<waxjar> havenwood: ah, i see. i've got a similar plugin for sublime, it's p good
ghr has quit [Ping timeout: 255 seconds]
<godd2> shevy yay!
razieliyo has quit [Read error: Connection reset by peer]
alekst has joined #ruby
<godd2> I'm still figuring out how rubydoc is parsing my documentation, so forgive any weirdness in the docs
alekst has quit [Client Quit]
<mahtennek> hi can anyone advise me how should I go around building web service API GET/PUT/POST/DELETE with thrift on ruby? any examples?
sargas has joined #ruby
_mtr has quit [Ping timeout: 260 seconds]
lucyinthesky has joined #ruby
triple_b has joined #ruby
<havenwood> mahtennek: oh, API-specific examples?
<mahtennek> havenwood: yup i have gotten this step. i would like to know if I could use sinatra to setup DSL routes
<mahtennek> yes
lw has quit [Quit: s]
<mahtennek> i am not sure if i could just add in Sinatra routes to Thrift server. would that work that way in serving the data?
allcentury has joined #ruby
valeriansaliou has joined #ruby
fabrice31 has joined #ruby
pu22l3r has quit [Ping timeout: 250 seconds]
Mothore has joined #ruby
pu22l3r has joined #ruby
goshdarnyou has joined #ruby
lucyinthesky has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
ajaiswal has joined #ruby
radic has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
valeriansaliou has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 258 seconds]
radic has joined #ruby
<havenwood> mahtennek: seems you could, dunno. this does look interesting, if you haven't looked at it yet: https://github.com/cerner/scrimp
jlast has joined #ruby
<mahtennek> havenwood: i have looked at scrimp too. but have yet to figure how does the sinatra dsl route come in?
<mahtennek> for instance, if i would want to do a simple login. I have the authentication of users with thrift service, looking at how i can bind that to sinatra
<havenwood> mahtennek: another i'm not familiar with: https://github.com/deees/thrift-rack-middleware
<mahtennek> havenwood: okay i am looking at it now. so i have to configure the hook_path?
<linocisco> atom is found nicer IDE
<linocisco> how to run ruby file?
<linocisco> how to run ruby file on Atom IDE?
studiotate has quit [Quit: Computer has gone to sleep.]
CrazyM4n has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<havenwood> linocisco: atom-runner or execute-as-ruby plugins
<havenwood> mahtennek: seems like it
jenrzzz has joined #ruby
<linocisco> havenwood, i can't find that option
<mahtennek> havenwood: there aren't any much examples out there besides the basic usage to thrift...
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> linocisco: Preferences > Packages
<shevy> godd2 yeah, rubydoc confuses me as well that's why my documentation looks weird. one day I'll master it though
<shevy> linocisco use notepad!
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iwishiwerearobot has joined #ruby
Lewix has joined #ruby
ghostmoth has joined #ruby
<linocisco> may be command line is the only option. edit and compose program using IDE editor for readility and run on command prompt will be easier. I can't find option to run inside IDE
<havenwood> linocisco: or Script looks like another plugin option that supports Ruby
<havenwood> linocisco: Atom has a ton of plugins. You can find the plugins tab in the preferences.
<havenwood> linocisco: but sure, use Pry
diegoviola has quit [Quit: WeeChat 1.0.1]
<havenwood> linocisco: you can go back and forth between Atom and Pry easily
<linocisco> havenwood, Pry =? new editor?
<havenwood> linocisco: gem install pry pry-doc
<havenwood> linocisco: a REPL
<havenwood> linocisco: http://pryrepl.org
ozzloy has joined #ruby
iwishiwerearobot has quit [Ping timeout: 260 seconds]
tokik has quit [Ping timeout: 258 seconds]
sevenseacat has joined #ruby
tokik has joined #ruby
escapement has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has joined #ruby
kish has quit [Read error: Connection reset by peer]
kish has joined #ruby
malcolmva has joined #ruby
chu has joined #ruby
sargas has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
kenneth has joined #ruby
<havenwood> linocisco: the script plugin does seem nice: https://github.com/rgbkrk/atom-script#readme
goodenough has joined #ruby
escapement has quit [Read error: Connection reset by peer]
<linocisco> havenwood, thanks for your generous support. let me check
beef-wellington has quit [Ping timeout: 258 seconds]
ohaibbq has quit [Remote host closed the connection]
Lucky__ has joined #ruby
ohaibbq has joined #ruby
<benzrf> use vim as editor
<benzrf> atom is bullshit
<benzrf> if you want supreme programmability just use Emacs
<benzrf> no need to reinvent the OS
jlast has joined #ruby
<mahtennek> havenwood: have you tried Thrift::ThinHttpServer before? I am getting a `<main>': uninitialized constant Thrift::ThinHTTPServer (NameError)
oo_ has quit [Remote host closed the connection]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
braincrash has quit [Quit: bye bye]
<havenwood> mahtennek: no i haven't. did you `require` it?
<mahtennek> havenwood: i require 'thrift' i tried to require 'thin' & 'rack' but both i am getting the same error
<havenwood> mahtennek: require 'thrift/thin_http_server'
roolo has joined #ruby
lw has joined #ruby
<Areessell> Check out second to last line havenwood: https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob_plain;f=lib/rb/lib/thrift.rb;hb=073f9eb9
<mahtennek> oh fantastic! that worked. require 'thrift/server/thin_http_server'
<Areessell> It soulda required it already
allcentury has quit [Ping timeout: 245 seconds]
<mahtennek> thanks. yeah it should required already
rshetty has joined #ruby
<mahtennek> that's weird though
gener1c_ has joined #ruby
braincrash has joined #ruby
<havenwood> Areessell: 'thrift/server/thin_http_server' versus 'thrift/thin_http_server' maybe?
<havenwood> oh, nvm
<Areessell> Perhaps mahtennek has an older version that maybe doesn't include that line
uber_hulk has quit [Ping timeout: 250 seconds]
<mahtennek> Areessell: I am running on Thrift 0.9.2
goodenough has quit [Remote host closed the connection]
gener1c has quit [Ping timeout: 244 seconds]
roolo has quit [Ping timeout: 272 seconds]
goodenough has joined #ruby
Avahey has joined #ruby
ringarin has joined #ruby
havenwood has quit [Remote host closed the connection]
dseitz has joined #ruby
ghr has joined #ruby
mloveless has joined #ruby
dc has joined #ruby
mloveless has quit [Remote host closed the connection]
goodenough has quit [Ping timeout: 240 seconds]
mloveless has joined #ruby
escapement has joined #ruby
unholycrab has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
_mtr has joined #ruby
goodenough has joined #ruby
escapement has quit [Client Quit]
havenwood has joined #ruby
Fezzler has joined #ruby
<unholycrab> so im using OptionsParser, and i want to expose an optional string option, supplying a default value if the option is not specified
escapement has joined #ruby
<unholycrab> obviously this will supply "null" if a value is not entered
<unholycrab> and i want to supply "iTerm" if none is entered
ramfjord has quit [Ping timeout: 245 seconds]
dc has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Remote host closed the connection]
<unholycrab> i see. i just have to define it outside of the opts.on
_mtr has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
Fezzler has quit [Client Quit]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uber_hulk has joined #ruby
kyb3r_ has joined #ruby
<Areessell> You got it, have it set to that before the opt.on block in actually run
<Areessell> Have you seen slop? https://github.com/leejarvis/slop
<Areessell> Scroll all the way to the bottom for a comparison between Slop and OptionParser
ta_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<unholycrab> no but im interested
jimmyhoughjr has quit [Write error: Connection reset by peer]
kenneth has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
ta has quit [Read error: Connection reset by peer]
AmirolAhmad has joined #ruby
SCHAAP137 has joined #ruby
<unholycrab> this is cool
<Areessell> It's very nice for option parsing. If you are making a command line application, I also recommend checking out Thor
electrical has joined #ruby
AmirolAhmad has quit [Client Quit]
shelling_ has joined #ruby
andrewstewart has joined #ruby
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
vcoinminer has joined #ruby
mjc_ has joined #ruby
rshetty has quit [Remote host closed the connection]
spicerack has quit [Ping timeout: 244 seconds]
<unholycrab> now thats what im talking about
<unholycrab> thanks Areessell
ton31337 has joined #ruby
ujjain has joined #ruby
Mattias has joined #ruby
oo_ has joined #ruby
<zenspider> unholycrab: depends... do you want it to default to iTerm ALWAYS, or only if they do --terminal?
jeregrine has joined #ruby
procat has joined #ruby
RoryHughes has joined #ruby
<zenspider> if the latter, then `options[:terminal] = terminal || "iTerm"` will suffice
kenneth has quit [Client Quit]
<zenspider> if the former, then yeah, just have options preset to have :terminal => "iTerm"
shortCircuit__ has joined #ruby
SegFaultAX has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
mjuszczak has quit []
mjuszczak has joined #ruby
procat has quit [Ping timeout: 252 seconds]
bricker`work has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
oo_ has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
ylluminarious_ has joined #ruby
rshetty has joined #ruby
ylluminarious` has joined #ruby
ARCADIVS has joined #ruby
lemur has quit [Read error: Connection reset by peer]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
lemur has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
sea_local has quit [Remote host closed the connection]
oo_ has joined #ruby
ringarin has quit [Ping timeout: 258 seconds]
sea_local has joined #ruby
Mothore has quit [Quit: Be back later ...]
ylluminarious has quit [Ping timeout: 245 seconds]
russt has quit [Quit: russt]
kish has quit [Read error: Connection reset by peer]
ylluminarious_ has quit [Ping timeout: 245 seconds]
kish has joined #ruby
bluenemo has joined #ruby
tobago has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
sea_local has quit [Ping timeout: 265 seconds]
studiotate has joined #ruby
russt has joined #ruby
mjuszczak has quit []
sea_local has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
AmirolAhmad has joined #ruby
jlast has joined #ruby
<unholycrab> thanks Areessell
<unholycrab> i may slopify my ruby script
goodenough has quit []
SCHAAP137 has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
kapil__ has quit [Quit: Connection closed for inactivity]
jlast has quit [Ping timeout: 258 seconds]
elvis452` has joined #ruby
kenneth has joined #ruby
lifenoodles has quit [Ping timeout: 244 seconds]
elvis4526 has quit [Remote host closed the connection]
lampd1 has joined #ruby
pu22l3r has joined #ruby
bluenemo has quit [Quit: Verlassend]
vinleod has joined #ruby
mahtennek has quit [Remote host closed the connection]
himsin has joined #ruby
jenrzzz has joined #ruby
mahtennek has joined #ruby
mjuszczak has joined #ruby
lw has quit [Quit: s]
mjuszczak has quit [Max SendQ exceeded]
yokel has joined #ruby
mjuszczak has joined #ruby
CrazyM4n has quit [Quit: Leaving]
oo_ has joined #ruby
lifenoodles has joined #ruby
Mongey has joined #ruby
ramfjord has joined #ruby
<shevy> I am contemplating subclassing from OpenStruct, as in "class Foo < OpenStruct", but somehow in the back of my mind, I remember that this may have disadvantages. I am unsure why. Speed penalty perhaps?
<waxjar> subclassing from Struct creates an extra class unnecessarily, don't know about OpenStruct though
Photism has joined #ruby
Channel6 has quit [Quit: Leaving]
IrishGringo has joined #ruby
o0oo0o has quit [Ping timeout: 250 seconds]
porfa has quit [Quit: porfa]
valeriansaliou has joined #ruby
fabrice31 has joined #ruby
<shevy> subclassing from Struct creates an unnecessary extra class?
ghr has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
mjuszczak has quit [Ping timeout: 260 seconds]
<waxjar> Struct.new returns a Class, which you immediately inherit from and never use
econerd4ever has joined #ruby
<waxjar> NewClass = Struct.new(:a,:b,:c) { def cool_method; end } is preferred
<XxionxX> Is there something wrong with my code? https://gist.github.com/XxionxX/99a0e543ad64faa2291f
<XxionxX> When I run it I keep getting this error: "syntax error, unexpected tPOW"
<XxionxX> I took the method direct from stackoverflow because I was trying to understand the splat operator :/
valeriansaliou has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
<shevy> hmm
<XxionxX> I can make the single splat work but the double splat throws an error
geggam has quit [Ping timeout: 272 seconds]
AmirolAhmad has quit [Remote host closed the connection]
AmirolAhmad has joined #ruby
<shevy> I don't know of a double splat
<shevy> actually
<shevy> the code works
<shevy> >> def foo(a, *b, **c); print [a, b, c]; end; foo(1,2,3)
<eval-in__> shevy => [1, [2, 3], {}]nil (https://eval.in/233761)
<shevy> so how can you have an error
pu22l3r has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
<XxionxX> That is why I am confused, it seems to be correct but I am getting an error
<mozzarella> using ruby 1.8
<XxionxX> using ruby 1.9.3
<shevy> yeah; the code works fine
<shevy> >> RUBY_VERSION
AmirolAhmad has quit [Remote host closed the connection]
<eval-in__> shevy => "2.1.3" (https://eval.in/233762)
amclain_ has joined #ruby
<mozzarella> it was introduced in ruby 2.0
<mozzarella> your version of ruby is too old
<XxionxX> Ah!
<XxionxX> there we go!
ylluminarious has joined #ruby
<XxionxX> I just used apt-get ruby or something
<XxionxX> and I got whatever the package manager gave me
<havenwood> XxionxX: debian or ubuntu?
<XxionxX> unbuntu
amclain has quit [Ping timeout: 258 seconds]
<XxionxX> I'm sure I can update it
<XxionxX> I just thought I was doing something wrong
iwishiwerearobot has joined #ruby
<XxionxX> Thanks mozzarella and shevy
Jelco has joined #ruby
<shevy> mozzarella you make me hungry
<havenwood> XxionxX: there're the Brightbox Ruby packages, which are kept up-to-date: https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng
<XxionxX> Should I always be using the most recent version of ruby?
ylluminarious` has quit [Ping timeout: 260 seconds]
<havenwood> XxionxX: yeah, 2.1.5 is ideal
ylluminarious has quit [Ping timeout: 240 seconds]
<XxionxX> havenwood I don't remember what I did to install ruby, it was a month ago at this point
<XxionxX> I assume it was an apt-get install because that is normally how I install software
kapil__ has joined #ruby
jlast has joined #ruby
<XxionxX> heavenwood: Would you happen to know if that would fix the old version and keep all of my gems?
econerd4ever has quit [Remote host closed the connection]
iwishiwerearobot has quit [Ping timeout: 265 seconds]
Morkel has joined #ruby
econerd4ever has joined #ruby
<shevy> default ruby on ubuntu does weird things with your gems; do a "gem env"
<havenwood> XxionxX: you can have multiple ruby versions installed with apt and switch between them with update-alternatives. like: sudo update-alternatives --config ruby
<shevy> the old gem directory will stay in place. you can backup it before you change version too, but I am quite sure it will remain the same
<shevy> does update-alternatives also work on ruby.h ?
bluehavana has joined #ruby
Musashi007 has joined #ruby
econerd4ever has quit [Ping timeout: 258 seconds]
<XxionxX> gem env? Is that a bash command? How do you switch between ruby versions? Is that the '--config ruby' you mentioned?
sigurding has joined #ruby
mjuszczak has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 264 seconds]
<havenwood> XxionxX: `gem` is the RubyGems executable that ships with Ruby. yeah, you can switch with update-alternatives.
kenneth has joined #ruby
<havenwood> shevy: i think so?
escapement has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexRussia has joined #ruby
kenneth has quit [Client Quit]
<XxionxX> Sorry for all the questions, I thought I had ruby all set up
codezomb has joined #ruby
bricker`work has quit [Ping timeout: 256 seconds]
keen___________ has joined #ruby
mary5030 has quit [Remote host closed the connection]
AlbertoCG has joined #ruby
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mary5030 has joined #ruby
ohaibbq has quit [Read error: Connection reset by peer]
<linocisco> I found comfortable with Komodo Edit
aewffwea has joined #ruby
ohaibbq has joined #ruby
econerd4ever has joined #ruby
klmlfl has joined #ruby
mjuszczak has joined #ruby
<XxionxX> dang nabbit! I knew I was going to mess up my gems doing that! -_-
JBreit has joined #ruby
dain has quit [Quit: dain]
econerd4ever has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 244 seconds]
IrishGringo has quit [Ping timeout: 244 seconds]
kish has quit [Read error: Connection reset by peer]
kish has joined #ruby
ozzloy has quit [Ping timeout: 256 seconds]
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
sea_local has quit [Remote host closed the connection]
econerd4ever has joined #ruby
wldcordeiro_ has joined #ruby
_maes_ has joined #ruby
Lewix has quit [Remote host closed the connection]
jcdesimp has quit [Quit: Leaving...]
sigurding has quit [Quit: sigurding]
mahtennek has quit [Remote host closed the connection]
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
jlast has quit [Ping timeout: 258 seconds]
Kricir has joined #ruby
sea_local has joined #ruby
<XxionxX> Well that was a lot easier than I thought it would be, 'sudo gem update'
Abhijit has joined #ruby
Stoge88 has joined #ruby
econerd4ever has quit [Remote host closed the connection]
triple_b has joined #ruby
Lewix has joined #ruby
oleo__ has quit [Quit: Verlassend]
hornairs has quit [Quit: hornairs]
wjimenez5271 has joined #ruby
mjuszczak has quit []
roolo has joined #ruby
ycodr has joined #ruby
_mtr has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
bansalakhil has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
bansalakhil has left #ruby [#ruby]
roolo has quit [Ping timeout: 250 seconds]
bricker`work has joined #ruby
_mtr has quit [Ping timeout: 240 seconds]
bansalakhil has joined #ruby
ghr has joined #ruby
kiyote23 has quit [Remote host closed the connection]
bansalakhil has quit [Quit: bansalakhil]
kiyote23 has joined #ruby
konsolebox has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
bansalakhil has joined #ruby
bansalakhil has quit [Client Quit]
<XxionxX> Would anyone happen to know how to create an alternative link to the old ruby1.9.1 in ubuntu?
sigurding has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<XxionxX> I need to be able to switch back for my old gems to work
<pontiki> sorry, XxionxX, i'm late to the convo; are you currently using a ruby version manager?
bansalakhil has joined #ruby
mroach has joined #ruby
jgrevich has quit [Quit: jgrevich]
<pontiki> ah, i see you are not
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
<XxionxX> I updated to ruby 2.1 and I'm not sure how to switch back when I need to
russt has quit [Quit: russt]
<pontiki> XxionxX: havenwood has given the answer, using update-alternatives
AmirolAhmad has joined #ruby
bansalakhil has left #ruby [#ruby]
<XxionxX> yes but when I 'update-alternatives --query ruby' it only displays ruby 2.1
procat has joined #ruby
<XxionxX> and 'sudo update-alternatives --config ruby' produces a 'warning: forcing reinstallation of alternative /usr/bin/ruby2.1 because link group ruby is broken'
mahtennek has joined #ruby
<XxionxX> I think I am missing something simple
<pontiki> ah, hmm. i fear i am not familiar enough with it
<XxionxX> From what I gather I need to make a link to the old ruby but I do not know how
kenneth has joined #ruby
linojon has quit [Quit: enuf of this]
<koglinjg> zenspider, I ended up making this pull request to the gitlab gem. This solved my issue, but is it the right way to do it? https://github.com/NARKOZ/gitlab/pull/96/files
<XxionxX> Thanks for trying though
AmirolAhmad has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
djbkd has quit [Remote host closed the connection]
<XxionxX> The closest I've got so far is 'update-alternatives --set ruby /usr/bin/ruby1.9.1' but it also throws an error :(
russt has joined #ruby
procat has quit [Ping timeout: 258 seconds]
sevenseacat has quit [Ping timeout: 240 seconds]
<XxionxX> wow, this update-alternatives requires me to know what files to slave to the ruby1.9.1 for me to set it
valeriansaliou has joined #ruby
<XxionxX> I have no idea what those files are
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
koglinjg has quit [Ping timeout: 246 seconds]
<pontiki> i wonder if the old ruby version was not part of the alternatives
<pontiki> it seems that update-alternatives is supposed to be run as part of an installation
<pontiki> part of the post-install hooks
chinmay_dd has joined #ruby
Kricir has quit [Remote host closed the connection]
Techguy305 has quit [Ping timeout: 255 seconds]
<havenwood> XxionxX: do you really need 1.9.3 at all? mind uninstalling and reinstalling brightbox 1.9.3 package?: http://brightbox.com/docs/ruby/ubuntu/
<havenwood> XxionxX: 2.1.5 can do everything 1.9.3 can, just better. :)
craigp has joined #ruby
<XxionxX> Well I was using the gosu and gosu tiled gem but I can't get it to install with 2.1
<XxionxX> I updated all of my other gems but those aren't working :/
<XxionxX> I would like to use the most up to date software but I'm suddenly having trouble all over
Megtastique has quit []
<XxionxX> and I was trying to be able to switch back and forth so I could bridge the problems in the interim
Megtastique has joined #ruby
CustosL1men has joined #ruby
<havenwood> XxionxX: i don't know why update-alternatives isn't working, i haven't run into that. i'm guessing if you reinstalled 1.9 from the brightbox package it'd start working, but maybe that defeats your purpose of gradual migration.
AlbertoCG has quit [Ping timeout: 256 seconds]
tagrudev has joined #ruby
oo_ has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
AlexRussia has joined #ruby
klmlfl has quit [Remote host closed the connection]
<havenwood> XxionxX: usually update-alternatives suffices to switch between apt ruby packages. in any case, chruby is a nice, simple Ruby version switcher: https://github.com/postmodern/chruby#readme
kenneth has joined #ruby
oo_ has joined #ruby
last_staff has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
kenneth has quit [Client Quit]
boombadaroomba has quit [Ping timeout: 244 seconds]
<XxionxX> omg @_@ I figured it out
<XxionxX> worked
<XxionxX> now I can switch if I need to
Soliah has quit [Quit: Soliah]
<havenwood> XxionxX: :)
kish has quit [Read error: Connection reset by peer]
<XxionxX> Not that I can with my newbskills, but if I wanted to make the gosu and gosu_tiled gems for ruby 2.1 would it be terribly difficult?
dseitz has joined #ruby
kish has joined #ruby
sinkensabe has quit [Remote host closed the connection]
russt has quit [Quit: russt]
sinkensabe has joined #ruby
russt has joined #ruby
valeriansaliou has joined #ruby
himsin has quit [Ping timeout: 252 seconds]
<havenwood> XxionxX: gosu should already work great on 2.1. what trouble did you run into?
valeriansaliou has quit [Client Quit]
<XxionxX> well that is weird, when I did a 'sudo gem install gosu' it threw an error
<havenwood> XxionxX: what was the error?
apoorvparijat has joined #ruby
surs has joined #ruby
<XxionxX> geez, idk now, it got buried. let me see if I can find it
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<havenwood> XxionxX: or try again: sudo gem install gosu
kenneth has joined #ruby
lolmaus has joined #ruby
himsin has joined #ruby
kenneth has quit [Client Quit]
<XxionxX> 'ERROR: Failed to build gem native extension.' and a lot more
<XxionxX> at least I can switch back and forth now
Musashi007 has quit [Quit: Musashi007]
<havenwood> XxionxX: baste a link to a gist?
<XxionxX> one sec
<havenwood> XxionxX: make sure you have installed the packages gosu depends upon: sudo apt-get install -y build-essential libsdl2-dev libsdl2-ttf-dev libpango1.0-dev libgl1-mesa-dev libfreeimage-dev libopenal-dev libsndfile-dev
<XxionxX> I think that is what it is telling me
iamninja has quit [Quit: ZZZzzz…]
<havenwood> XxionxX: it should be well tested on 2.1, i'd guess probably the majority of gosu users are on 2.1
Musashi007 has joined #ruby
<XxionxX> but '0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.'
<XxionxX> with that command
_mtr has joined #ruby
kenneth has joined #ruby
econerd4ever has joined #ruby
<havenwood> ah, mkmf, yeah you need the ruby2.1-dev package too - hem, how does that work for brightbox packages?
<havenwood> XxionxX: try?: sudo apt-get install -y ruby2.1-dev
surs has quit [Quit: leaving]
<XxionxX> Thanks for all the help
<havenwood> XxionxX: You're welcome.
surs has joined #ruby
fabrice31 has joined #ruby
<certainty> moin
<havenwood> eve
sinkensabe has quit [Remote host closed the connection]
<certainty> :D
_mtr has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Ping timeout: 260 seconds]
<XxionxX> That did the trick!
surs has joined #ruby
aZaFred has quit [Quit: Leaving]
econerd4_ has joined #ruby
AmirolAhmad has joined #ruby
<XxionxX> havenwood: Sweet! Full migration complete!
Musashi007 has quit [Quit: Musashi007]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
mloveless has quit []
fabrice31 has quit [Ping timeout: 265 seconds]
econerd4ever has quit [Ping timeout: 258 seconds]
kenneth has joined #ruby
valeriansaliou has joined #ruby
<certainty> does ruby 2.1 still have memory leaks?
AmirolAhmad has quit [Remote host closed the connection]
<godd2> certainty does ruby 2.0 have memory leaks?
anarang has joined #ruby
<certainty> godd2: not that i know of
JohnBat26 has joined #ruby
<certainty> i'm talking about mri here
<godd2> oh by still you meant that 2.1 had memory leaks before
<certainty> yeah
AmirolAhmad has joined #ruby
econerd4_ has quit [Remote host closed the connection]
kenneth has quit [Client Quit]
valeriansaliou has quit [Ping timeout: 244 seconds]
kenneth has joined #ruby
chrishough has joined #ruby
<havenwood> certainty: i think they fixed the GC stuff a few versions back. i'm looking forward to the new GC we get for Christmas.
iwishiwerearobot has joined #ruby
amclain_ has quit [Quit: Leaving]
<certainty> havenwood: ah ok thanks for the heads up. I'll keep an eye on it
agjacome has joined #ruby
kiyote23 has joined #ruby
aganov has joined #ruby
dc has joined #ruby
codecop has joined #ruby
nickjj has joined #ruby
kamil has joined #ruby
iwishiwerearobot has quit [Ping timeout: 245 seconds]
ht__th has joined #ruby
lemur has quit [Remote host closed the connection]
mistergibson has quit [Quit: Quitting ... be good to each other :)]
lemur has joined #ruby
<Fire-Dragon-DoL> oh, my nemesis is still online, are you a night own IceDragon?
kiyote23 has quit [Ping timeout: 252 seconds]
Megtastique has quit []
dc has quit [Ping timeout: 258 seconds]
sinkensabe has joined #ruby
ebbflowgo has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
<zenspider> certainty: memory leaks?
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
adac has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
himsin has quit [Quit: himsin]
anaeem1_ has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
lemur has joined #ruby
Takle has joined #ruby
<certainty> zenspider: i probably should've quoted the word memory leak. I was talking about the higher memory consumption that was interpreted as a leak when it was experienced. I was referring to: https://bugs.ruby-lang.org/issues/9607
<havenwood> certainty: yeah, i was assuming you meant the short-lived objects accidental promotion to old-gen
wjimenez5271 has quit [Remote host closed the connection]
<havenwood> thingy
maasha has quit [Ping timeout: 246 seconds]
AmirolAhmad has joined #ruby
Spami has joined #ruby
konsolebox has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
uber_hulk has quit [Quit: leaving]
ebbflowgo has quit [Read error: Connection reset by peer]
AlbertoCG has joined #ruby
ebbflowgo has joined #ruby
fabrice31 has joined #ruby
bal has quit [Quit: bal]
Xeago has joined #ruby
bal has joined #ruby
ebbflowgo has quit [Client Quit]
Areessell has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
bal has quit [Client Quit]
lele has quit [Quit: Coyote finally caught me]
renderful has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
bal has joined #ruby
lele has joined #ruby
kish has quit [Read error: Connection reset by peer]
jnollette has joined #ruby
kish has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
bal has quit [Quit: bal]
lampd1 has quit []
agit0 has joined #ruby
Lewix has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 250 seconds]
rkday has joined #ruby
uber_hulk has joined #ruby
jlast has joined #ruby
AlbertoCG has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
Sgeo has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
Snarkz has joined #ruby
charliesome has quit [Client Quit]
msgodf has quit [Remote host closed the connection]
sevenseacat has joined #ruby
msgodf has joined #ruby
himsin has joined #ruby
craigp has quit [Remote host closed the connection]
rkday has quit [Ping timeout: 250 seconds]
godd2 has quit [Remote host closed the connection]
cvtsx has joined #ruby
TgMts_ has joined #ruby
matled- has joined #ruby
anaeem1__ has joined #ruby
eka_ has joined #ruby
keen____________ has joined #ruby
evenh has joined #ruby
craigp has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
ixti has joined #ruby
tgandrews has joined #ruby
tyll_ has joined #ruby
vieq_ has joined #ruby
ddd_ has joined #ruby
ahri has joined #ruby
bears_ has joined #ruby
ahri is now known as Guest47224
tgandrews has quit [Client Quit]
<evenh> does anyknow know why this doesn't output 1166 and instead outputs 1165: http://pastebin.com/0j0mhN8C
bricker`work has quit [Quit: leaving]
s00pcan_ has joined #ruby
hs366 has joined #ruby
aef_ has joined #ruby
peterhu_ has joined #ruby
kish` has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tgandrews has joined #ruby
craigp has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
Takle has joined #ruby
evenh has left #ruby ["Textual IRC Client: www.textualapp.com"]
procat has joined #ruby
kish has quit [*.net *.split]
anaeem1_ has quit [*.net *.split]
anarang has quit [*.net *.split]
chinmay_dd has quit [*.net *.split]
keen___________ has quit [*.net *.split]
eka has quit [*.net *.split]
tyll has quit [*.net *.split]
TgMts has quit [*.net *.split]
JimmyNeutron has quit [*.net *.split]
_ixti_ has quit [*.net *.split]
kedare has quit [*.net *.split]
HOS_nerv has quit [*.net *.split]
red_horned_rihno has quit [*.net *.split]
matled has quit [*.net *.split]
matled- is now known as matled
dseitz has left #ruby ["Textual IRC Client: www.textualapp.com"]
red_horned_rihno has joined #ruby
Alina-malina has joined #ruby
JimmyNeutron has joined #ruby
pyx has joined #ruby
pyx has quit [Client Quit]
Takle has quit [Ping timeout: 258 seconds]
Abhijit has quit [Quit: Leaving]
nasta has joined #ruby
icedp has joined #ruby
procat has quit [Ping timeout: 256 seconds]
anarang has joined #ruby
bears_ has quit [Ping timeout: 244 seconds]
kiyote23 has joined #ruby
kedare has joined #ruby
chinmay_dd has joined #ruby
tzero has joined #ruby
CustosLimen has joined #ruby
HOS_nerv has joined #ruby
<pontiki> how do you know it should be 1166?
<pontiki> is this some well-known thing?
LouisRoR has joined #ruby
Macaveli has quit [Read error: No route to host]
doritostains has joined #ruby
XxionxX has left #ruby [#ruby]
Macaveli has joined #ruby
alex88 has joined #ruby
theotherstupidgu has joined #ruby
kiyote23 has quit [Ping timeout: 256 seconds]
chinmay_dd has quit [Ping timeout: 258 seconds]
lessless has joined #ruby
theotherstupidgu has quit [Client Quit]
agjacome has quit [Quit: leaving]
theotherstupidgu has joined #ruby
timonv_ has joined #ruby
chinmay_dd has joined #ruby
keen___________0 has joined #ruby
sigurding has joined #ruby
keen____________ has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
craigp has joined #ruby
mist_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
reset has joined #ruby
reset has quit [Client Quit]
rdark has joined #ruby
havenwood has quit [Remote host closed the connection]
jenrzzz has joined #ruby
agjacome has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
AmirolAhmad has joined #ruby
andikr has joined #ruby
razieliyo has joined #ruby
razieliyo has joined #ruby
Stalkr_ has joined #ruby
<dts|pokeball> test
mist_ is now known as mist
asmodchan has quit [Quit: Leaving]
livathinos has joined #ruby
mijicd has joined #ruby
oo_ has joined #ruby
_mtr has joined #ruby
mahtennek has quit []
<epitron> ^- anagram generator
<epitron> anyone got a better algorithm? :)
tokik has quit [Ping timeout: 244 seconds]
CustosL1men has quit [Quit: Leaving]
konsolebox has quit [Ping timeout: 264 seconds]
kish` has quit [Read error: Connection reset by peer]
kish has joined #ruby
Tranquility has joined #ruby
dts|pokeball has left #ruby [#ruby]
_mtr has quit [Ping timeout: 258 seconds]
mijicd has quit [Remote host closed the connection]
noop has joined #ruby
dts|pokeball has joined #ruby
rshetty has quit [Remote host closed the connection]
valeriansaliou has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
marr has joined #ruby
Macaveli has joined #ruby
rshetty has joined #ruby
SOLDIERz has joined #ruby
dts_ has joined #ruby
dts|pokeball has quit [Quit: Leaving]
dts_ has quit [Remote host closed the connection]
dts|pokeball has joined #ruby
valeriansaliou has quit [Ping timeout: 272 seconds]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
apeiros_ has joined #ruby
chthon has joined #ruby
rshetty has quit [Remote host closed the connection]
Takle has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dts_ has joined #ruby
dts_ has quit [Remote host closed the connection]
dts|pokeball has quit [Remote host closed the connection]
dts|pokeball has joined #ruby
wjimenez5271 has joined #ruby
roolo has joined #ruby
iwishiwerearobot has joined #ruby
LouisRoR has quit [Ping timeout: 258 seconds]
shortCircuit__ has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
rylev has joined #ruby
graf_ has joined #ruby
vinleod has joined #ruby
wjimenez5271 has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
iwishiwerearobot has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
rshetty has quit [Remote host closed the connection]
olivier_bK has joined #ruby
mistergibson has joined #ruby
zarubin has joined #ruby
hanmac1 has joined #ruby
decoponio has joined #ruby
rshetty has joined #ruby
davedev24_ has quit [Remote host closed the connection]
Abhijit has joined #ruby
Abhijit has quit [Changing host]
Abhijit has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
jarred has joined #ruby
theother1tupidgu has joined #ruby
theother1tupidgu has quit [Client Quit]
Axy has joined #ruby
Axy has joined #ruby
jmdade has joined #ruby
shortCircuit__ has joined #ruby
zarubin has quit [Quit: Leaving.]
jlast has joined #ruby
kiyote23 has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
SOLDIERz has joined #ruby
jlast_ has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
Deele has joined #ruby
valeriansaliou has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
tgandrews has quit [Ping timeout: 250 seconds]
kiyote23 has quit [Ping timeout: 255 seconds]
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
vinleod has quit [Excess Flood]
lemur has quit [Ping timeout: 258 seconds]
shortCircuit__ has quit [Ping timeout: 244 seconds]
LouisRoR has joined #ruby
rshetty has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
jheg has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vinleod has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
theotherstupidgu has quit [Ping timeout: 265 seconds]
tgandrews has joined #ruby
hmsimha has joined #ruby
mroach has quit [Read error: Connection reset by peer]
troulouliou_dev has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
Flcn has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
razieliyo has quit [Read error: Connection reset by peer]
shortCircuit__ has joined #ruby
razieliyo has joined #ruby
LouisRoR1 has joined #ruby
LouisRoR has quit []
mikepack has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
timonv_ has quit [Remote host closed the connection]
craigp has quit [Remote host closed the connection]
Spami has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
shortCircuit__ has quit [Ping timeout: 256 seconds]
kish has quit [Read error: Connection reset by peer]
kish has joined #ruby
craigp has joined #ruby
adac has quit [Ping timeout: 256 seconds]
lessless has joined #ruby
apeiros__ has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
startupality has joined #ruby
apoorvparijat has quit []
lolmaus has joined #ruby
picassoo has joined #ruby
TgMts_ has quit [Ping timeout: 255 seconds]
qba73 has joined #ruby
speakingcode has joined #ruby
ohaibbq has quit [Remote host closed the connection]
tgandrews has quit [Quit: This computer has gone to sleep]
russt has quit [Quit: russt]
ohaibbq has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
Pupeno has joined #ruby
rodfersou has joined #ruby
kl__ has joined #ruby
apeiros__ is now known as apeiros_
ohaibbq_ has joined #ruby
procat has joined #ruby
einarj has joined #ruby
ohaibbq has quit [Ping timeout: 258 seconds]
reinaldob has joined #ruby
rshetty has joined #ruby
wjimenez5271 has joined #ruby
adac has joined #ruby
timonv_ has joined #ruby
procat has quit [Ping timeout: 250 seconds]
porfa has joined #ruby
rurban_ has joined #ruby
shortCircuit__ has joined #ruby
tgandrews has joined #ruby
wjimenez5271 has quit [Ping timeout: 258 seconds]
Aova has quit [Quit: ZNC - http://znc.in]
Aova has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
lolmaus has joined #ruby
shortCircuit__ has quit [Ping timeout: 244 seconds]
codeitagile has joined #ruby
doritostains has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
mikecmpbll has joined #ruby
Soda has joined #ruby
oo_ has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
oo_ has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
elcheckito has quit [Quit: WeeChat 1.0.1]
hs366 has quit [Ping timeout: 245 seconds]
ohaibbq_ has quit [Quit: Leaving...]
jarred has quit [Quit: jarred]
Stoge88 has joined #ruby
dc has joined #ruby
ghr has joined #ruby
kiyote23 has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
bahamas has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
rurban_ has left #ruby ["Leaving"]
dc has quit [Ping timeout: 240 seconds]
iwishiwerearobot has joined #ruby
ChoiKyuSang has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
<lupine> hmm, upgrading a rails application, I'm getting 'invalid byte sequence in UTF-8 (ArgumentError)' moving from cukes 0.300ish to latest
<lupine> (and rails2.3 to 3.2)
<sevenseacat> thats a hell of a jump.
<lupine> there's a lot of jumps going on all at the same time
<lupine> I at least did the ruby1.8.7->1.9.3 separately
<sevenseacat> thats a really bad idea.
ChoiKyuSang has joined #ruby
<lupine> *shrug* the degree of coupling in rspec and cukes (especially early espec and cukes) to rails versions kind of makes it inevitable. I guess I could be more careful
<lupine> rspec1 -> rspec3 went alright, at least
shortCircuit__ has joined #ruby
kiyote23 has quit [Ping timeout: 272 seconds]
<bahamas> hello. what's a good ruby primer for someone with programming experience? (I've used Python, JavaScript, Lua, etc.) in the past
postmodern has quit [Quit: Leaving]
anaeem1__ has quit [Ping timeout: 264 seconds]
theotherstupidgu has quit [Ping timeout: 260 seconds]
theotherstupidgu has joined #ruby
studiotate has quit [Quit: Lingo - http://www.lingoirc.com]
picassoo has quit [K-Lined]
joonty has joined #ruby
shortCircuit__ has quit [Ping timeout: 260 seconds]
<lupine> a-ha, found it
<lupine> it's expecting my session_secret to be valid utf-8, mwahahaha
kamil has quit [Disconnected by services]
Peterman_ has joined #ruby
kamilc__ has joined #ruby
_mtr has joined #ruby
uber_hulk has quit [Quit: leaving]
linocisco has quit [Remote host closed the connection]
VictorBjelkholm has joined #ruby
CustosL1men has joined #ruby
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bahamas has joined #ruby
_mtr has quit [Ping timeout: 244 seconds]
Photism has quit [Quit: Leaving]
boombadaroomba has joined #ruby
jlast_ has quit [Ping timeout: 258 seconds]
Sharker has quit [Ping timeout: 250 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
St_Marx has joined #ruby
Sharker has joined #ruby
p0wn3d_mhs has joined #ruby
<jheg> bahamas The Programming Ruby book - DaveThomas is a good read
<jheg> I’m reading it from novice but it seems to target novice and people with programming experience too
shortCircuit__ has joined #ruby
<bahamas> jheg: I didn't mention this, but I'd prefer something shorter. I don't need hand holding. the Python tutorial is a good example of what I'm looking for, if you know it
boombadaroomba has quit [Ping timeout: 264 seconds]
<jheg> I don’t but maybe this will be a little more to the point - https://www.gotealeaf.com/books/ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
<eka_> bahamas: maybe you can peer trough The Well-Grounded Rubyist
kish has quit [Read error: Connection reset by peer]
kish has joined #ruby
kamilc__ has quit [Read error: Connection reset by peer]
kamilc__ has joined #ruby
<ddv> bahamas: are you autoexec?
shortCircuit__ has quit [Ping timeout: 245 seconds]
<bahamas> ddv: I don't have that nickname, if that's what you're asking
fgo has joined #ruby
<ddv> ok
<bahamas> eka_: I'll have a look at that. thanks!
avrc has quit [Quit: this channel is bakas]
Kamuela has joined #ruby
startupality has quit [Quit: startupality]
<Kamuela> am i the only one who finds ruby more expressive than python?
shredding has joined #ruby
<canton7> nope :)
<canton7> it's far more expressive imo
rshetty_ has joined #ruby
<wasamasa> it also allows one to add new syntax
rshetty has quit [Ping timeout: 260 seconds]
SOLDIERz has quit [Quit: Be back later ...]
davedev24_ has joined #ruby
<eka_> it's also more monkeypatching friendly :D
<bahamas> Kamuela: how do you define "expressive"?
VictorBjelkholm has quit [Ping timeout: 245 seconds]
<wasamasa> whether that's a good thing or not still remains to be decided
anaeem1__ has joined #ruby
Takle has quit [Remote host closed the connection]
<eka_> bahamas: did you see this? http://www.confreaks.com/videos/431-rubyconf2010-keynote-why-ruby old but good
ajaiswal has quit [Quit: Leaving]
joonty1 has joined #ruby
Xeago has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 256 seconds]
<bahamas> eka_: not yet
<eka_> bahamas: it's quite enjoyable
tkuchiki has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 264 seconds]
<bahamas> I'll have to download it. the browser player isn't working for me
tkuchiki has joined #ruby
joonty1 is now known as joonty
webgen has joined #ruby
wjimenez5271 has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: ciao.]
shortCircuit__ has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
agjacome_ has joined #ruby
agjacome_ has quit [Client Quit]
l3kn has quit [Ping timeout: 272 seconds]
tessi_zz has quit [Ping timeout: 272 seconds]
musicmatze has quit [Ping timeout: 260 seconds]
wjimenez5271 has quit [Ping timeout: 255 seconds]
asuka has quit [Ping timeout: 265 seconds]
<Kamuela> say you wanted to use cinch to make an IRC bot. the typical development cycle would be connect, test rules, stop execution, reconnect, etc. if you wanted to connect but somehow separate the rules execution from the basic bits of the bot, how would you approach that?
Juanchito has joined #ruby
jlast has joined #ruby
VictorBjelkholm has joined #ruby
<Kamuela> can you make ruby dynamically load ruby code from another source?
rylev has quit [Remote host closed the connection]
<avril14th> well
<avril14th> you can have ruby downloadfiles from somewhere
<avril14th> and you can have ruby load code dynamically
agjacome has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Remote host closed the connection]
tgandrews has quit [Quit: This computer has gone to sleep]
tokik has joined #ruby
Timgauthier has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
webgen has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
webgen has joined #ruby
shortCircuit__ has quit [Ping timeout: 250 seconds]
AugustoC has joined #ruby
startupality has joined #ruby
tessi_zz has joined #ruby
asuka has joined #ruby
l3kn has joined #ruby
<eka_> Kamuela: you want to build an IRC bot from scratch? there are some ruby frameworks available for that though
musicmatze has joined #ruby
<Kamuela> eka_: using cinch
himsin has quit [Quit: himsin]
<eka_> Kamuela: right :D
tgandrews has joined #ruby
ringarin has joined #ruby
georgesmith has joined #ruby
kiyote23 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
fabrice31 has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
webgen has quit [Ping timeout: 244 seconds]
rylev has joined #ruby
ajaiswal has joined #ruby
ajaiswal has quit [Client Quit]
webgen has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
mikepack has joined #ruby
kiyote23 has quit [Ping timeout: 264 seconds]
arclitgold has joined #ruby
duncannz has quit [Remote host closed the connection]
shortCircuit__ has joined #ruby
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Kamuela has quit [Quit: Leaving]
frem has quit [Quit: Connection closed for inactivity]
Shazaum has joined #ruby
bahamas has joined #ruby
Morkel_ has joined #ruby
mikepack has quit [Ping timeout: 258 seconds]
rylev has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
jdripper has joined #ruby
maasha has joined #ruby
kamilc__ has quit [Quit: Leaving...]
<maasha> hello
ghr has quit [Ping timeout: 255 seconds]
<maasha> I have a speed critical C function which is the bottleneck according to profiling. Can it be improved? https://gist.github.com/maasha/0520ce4ff6a319387de2
n1lo has joined #ruby
nasta has quit [Read error: Connection reset by peer]
<maasha> I don't dare ask in C - they always despise me
<canton7> I can see why ;) there's almost no information in that gist
jlast has quit [Ping timeout: 258 seconds]
<maasha> I thing that decreasing loops are faster than increasing (allows compiler to look into the future). Pointer magic might be better?
<apeiros_> you increment the bytes of a string?
<apeiros_> i.e. "abc" -> "bcd"?
<apeiros_> I see how this can go wrong with "\xff"
<canton7> maasha, the compiler is *significantly* smarter than you
<canton7> I cna almost guarentee that any sort of little micro-optimizations you try and make, the compiler's already thought of it
<maasha> canton7: *sigh* are you from #c as well ? ;o/
<canton7> nope, never been there
<maasha> apeiros_: I am incrementing values in an integer array.
TPBallbag has joined #ruby
<apeiros_> integer array? then why `StringValuePtr`?
<maasha> apeiros_: it works with type conversions. Are there other ways?
<apeiros_> I somewhat doubt it does what you expect from it in the first place…
shortCircuit__ has quit [Ping timeout: 255 seconds]
codeitagile has quit [Quit: Leaving.]
<apeiros_> my C ruby is not strong, though. so I doubt I can be of help. (that is - with reasonable effort on my part)
<claf> how about, stackoverflow
<maasha> apeiros_: but it does. I create a null string in ruby for use as a memory buffer (so that it gets allocated and GC'ed) and then I use it as a integer array in C.
SOLDIERz has joined #ruby
<maasha> it is a bit crufty but is really amazingly handy.
procat has joined #ruby
<apeiros_> maasha: when you said "integer array" I assumed "integer array in the ruby space"
<apeiros_> maasha: but in that case, "\xff" is on the table again
<maasha> apeiros_: no, in C space :o(
rshetty has joined #ruby
<maasha> in Ruby it is a string of "\0". In C it is what I make of it.
GeorgesLeYeti has joined #ruby
kish has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kish has joined #ruby
timonv^ has joined #ruby
livathin_ has joined #ruby
mikecmpbll has joined #ruby
procat has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
Mon_Ouie has joined #ruby
rshetty_ has quit [Ping timeout: 258 seconds]
livathinos has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
<maasha> It is way faster than NArrays
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mikepack has quit [Ping timeout: 244 seconds]
blizzy has quit [Ping timeout: 258 seconds]
asmodlol has joined #ruby
shortCircuit__ has joined #ruby
JBreit has quit [Ping timeout: 264 seconds]
wjimenez5271 has joined #ruby
grn has joined #ruby
DaniG2k has joined #ruby
AlbertoCG has joined #ruby
AlSquire has joined #ruby
<DaniG2k> hey guys, I'm trying to write a regex that matches quotation marks but ignores them if they're inside an HTML element
<DaniG2k> so
<DaniG2k> <a href="some url">Some text with a "quote" in here</a>
<DaniG2k> I should only be matching '"quote"'
<canton7> don't use regex to parse html
<apeiros_> DaniG2k: don't parse html with regex.
<DaniG2k> hmmmm well
jlast has joined #ruby
ringarin has quit [Ping timeout: 240 seconds]
<DaniG2k> the problem is that I'm substituting every " " for &ldquo;\1&rdquo;
<DaniG2k> in my content body
Peterman_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<DaniG2k> the problem is that it also affects html
Macaveli has joined #ruby
<DaniG2k> body.gsub(/"(.*?)"/, '&ldquo;\1&rdquo;')
<DaniG2k> it looks nicer for quotes
<DaniG2k> but not sure if it's affecting html as well
<apeiros_> DaniG2k: the problem is: you use regex to process html
jimms has joined #ruby
<apeiros_> so let me repeat: you. can't. use. regexen. with. html. period.
wjimenez5271 has quit [Ping timeout: 255 seconds]
<crome> hahaha
jlast_ has joined #ruby
psy_ has quit [Remote host closed the connection]
<ddv> famous so answer
<crome> couldn't resist
<DaniG2k> got it
Tranquility has quit [Quit: Connection closed for inactivity]
jlast has quit [Ping timeout: 258 seconds]
<apeiros_> crome: isn't that the same canton7 linked to?
<crome> apparently it is
<apeiros_> I really wish there was `gem install-debs some.gemspec`
<crome> I haven't checked his link
<ddv> crome: then we don't check your link
* apeiros_ loses since they checked both links
<ddv> yep :)
<crome> ddv: oh no, don't do that to me :'(
<ddv> (:
shredding has quit [Quit: shredding]
red_horned_rihno has quit [Ping timeout: 258 seconds]
<DaniG2k> I learned about define_method recently, ghost methods, eval and all sorts of class method stuff
<DaniG2k> metaprogramming is cool :D
shortCircuit__ has quit [Ping timeout: 265 seconds]
<ddv> just don't do something weird in your gems that effect my project
<DaniG2k> hahah
phutchins has joined #ruby
<crome> metaprogramming is what got me into ruby in the first place. and then when it was my job to code in ruby it became the feature of the language I tried to avoid using the most
red_horned_rihno has joined #ruby
<DefV> MemberLike.where(created_at => Time.current.beginning_of_year..Time.current). joins(:profile => :profile_identifiers).where(profile_identifiers: {identifier: => "drupal_qmusic_nl_user_id"})
<DefV> whoops
Peterman_ has joined #ruby
oleo has joined #ruby
charliesome has joined #ruby
_mtr has joined #ruby
theotherstupidgu has quit [Quit: leaving]
theotherstupidgu has joined #ruby
CustosL1men has quit [Ping timeout: 256 seconds]
kiyote23 has joined #ruby
Mia has joined #ruby
TPBallbag has quit [Remote host closed the connection]
_mtr has quit [Ping timeout: 272 seconds]
Axy has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Ping timeout: 260 seconds]
tokik has quit [Ping timeout: 272 seconds]
qba73_ has joined #ruby
shortCircuit__ has joined #ruby
anaeem1__ has quit [Ping timeout: 255 seconds]
kiyote23 has quit [Ping timeout: 258 seconds]
cleopatra has quit [Ping timeout: 255 seconds]
qba73 has quit [Ping timeout: 240 seconds]
jherbst has joined #ruby
kl__ has quit [Ping timeout: 264 seconds]
jlast_ has quit [Ping timeout: 258 seconds]
kl has joined #ruby
SCHAAP137 has joined #ruby
sigurding has quit [Quit: sigurding]
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tjsousa has joined #ruby
Spami has joined #ruby
vroomanj_ has quit [Ping timeout: 244 seconds]
CustosL1men has joined #ruby
asterite has joined #ruby
webgen has quit [Read error: Connection reset by peer]
webgen has joined #ruby
bahamas has joined #ruby
shortCircuit__ has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
webgen has quit [Ping timeout: 244 seconds]
webgen_ has joined #ruby
webgen_ is now known as webgen
ARCADIVS has quit [Quit: ARCADIVS]
valeriansaliou has quit [Quit: Be back later ...]
AlbertoCG has quit [Ping timeout: 255 seconds]
TPBallbag has joined #ruby
anaeem1_ has joined #ruby
claptor has quit [Quit: this channel is bakas]
rurban has joined #ruby
rurban has left #ruby [#ruby]
TPBallbag has quit [Remote host closed the connection]
kish has quit [Read error: Connection reset by peer]
kish has joined #ruby
c0rwin has joined #ruby
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
yalue has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
beef-wellington has joined #ruby
shortCircuit__ has joined #ruby
Morkel has quit [Ping timeout: 250 seconds]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
webgen has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 250 seconds]
sigurding has joined #ruby
webgen has joined #ruby
jlast has joined #ruby
livathin_ has quit []
yfeldblum has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
startupality has quit [Quit: startupality]
ghr has quit [Ping timeout: 255 seconds]
geilt has quit [Read error: Connection reset by peer]
ghr has joined #ruby
asterite has left #ruby [#ruby]
ht__th has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
shortCircuit__ has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
DaniG2k has quit [Ping timeout: 245 seconds]
startupality has joined #ruby
grn has quit []
wjimenez5271 has quit [Ping timeout: 264 seconds]
Shazaum has quit [Quit: This computer has gone to sleep]
aclearman037 has joined #ruby
spastorino has joined #ruby
axilla has joined #ruby
shredding has joined #ruby
kevinxu has joined #ruby
kevinxu is now known as Guest15210
Guest15210 has quit [Max SendQ exceeded]
krz has quit [Quit: WeeChat 1.0.1]
iamninja has joined #ruby
<shevy> any of you guys using sqlite + ruby?
tristanp has joined #ruby
x1337807x has joined #ruby
<canton7> I've done it in the past
russt has joined #ruby
dc has joined #ruby
workmad3 has joined #ruby
shortCircuit__ has joined #ruby
sailias has joined #ruby
krz has joined #ruby
asmodlol has quit [Ping timeout: 264 seconds]
asmodlol has joined #ruby
_mtr has joined #ruby
dc has quit [Ping timeout: 260 seconds]
toretore has joined #ruby
DaniG2k has joined #ruby
fmcgeough has joined #ruby
shortCircuit__ has quit [Ping timeout: 258 seconds]
ghr has quit [Ping timeout: 255 seconds]
jlast has quit [Ping timeout: 258 seconds]
rshetty has quit [Read error: Connection reset by peer]
sailias has quit [Client Quit]
kiyote23 has joined #ruby
elcheckito has joined #ruby
rshetty has joined #ruby
krz has quit [Ping timeout: 265 seconds]
rylev has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73_ has quit []
_mtr has quit [Ping timeout: 255 seconds]
DaniG2k has quit [Ping timeout: 250 seconds]
aclearman037 has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rylev has quit [Ping timeout: 265 seconds]
Timgauthier has joined #ruby
kiyote23 has quit [Ping timeout: 265 seconds]
TPBallbag has joined #ruby
ylluminarious has joined #ruby
paulfm has joined #ruby
<pontiki> not directly, shevy
procat has joined #ruby
Hobogrammer has quit [Ping timeout: 250 seconds]
psy_ has joined #ruby
<maasha> x-mas lunch initiating.
<maasha> oblivion - here I come.
<certainty> shevy: you mean together or both of them but in different projects?
<certainty> :D
IrishGringo has joined #ruby
mbeasley has quit [Quit: WeeChat 0.4.2]
shortCircuit__ has joined #ruby
dfinninger has joined #ruby
mbeasley has joined #ruby
triple_b has joined #ruby
troulouliou_dev has joined #ruby
procat has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
maoko has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
plukevdh has joined #ruby
plukevdh has quit [Remote host closed the connection]
eichenwald has joined #ruby
livingstn has joined #ruby
shortCircuit__ has quit [Ping timeout: 265 seconds]
georgesmith has quit [Read error: Connection reset by peer]
plukevdh has joined #ruby
renderful has joined #ruby
Soda has quit [Remote host closed the connection]
hmsimha has quit [Ping timeout: 252 seconds]
webgen has quit [Ping timeout: 258 seconds]
Takle has quit [Ping timeout: 260 seconds]
_br_ has joined #ruby
rshetty has quit [Remote host closed the connection]
kish has quit [Read error: Connection reset by peer]
renderful has quit [Ping timeout: 258 seconds]
kish has joined #ruby
plukevdh has quit [Quit: Textual IRC Client: www.textualapp.com]
rylev has joined #ruby
<shevy> certainty all possibilities!
<shevy> I thought of adding support to databases in my pseudo webframework
SOLDIERz has quit [Quit: Be back later ...]
<pontiki> pfft, no one will want to keep data around
<shevy> hehe
<waxjar> use Sequel, support for databases added! :D
bmichelsen has joined #ruby
<shevy> really?
<eka_> shevy: sequel +1
<shevy> ok ok
tier has joined #ruby
<pontiki> sequel ++
<pontiki> seriously
jherbst has joined #ruby
<hanmac1> shevy: is that thing you do awailable on a public git server?
troulouliou_dev has quit [Remote host closed the connection]
tjsousa has quit [Ping timeout: 250 seconds]
<shevy> hanmac1 I am superslow, I still haven't included git in my workflow. Imagine how long it'll take me to master git!
jlast has joined #ruby
shortCircuit__ has joined #ruby
DaniG2k has joined #ruby
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hanmac1> shevy hey even my rwx project doesnt have a soo good git workflow ...
oleo is now known as Guest38959
oleo__ has joined #ruby
adriancb has joined #ruby
Takle has joined #ruby
evanjs has joined #ruby
georgesmith has joined #ruby
dblessing has joined #ruby
Guest38959 has quit [Ping timeout: 260 seconds]
Klumben has joined #ruby
bmichelsen has quit [Quit: Bye!]
tristanp has quit [Remote host closed the connection]
shortCircuit__ has quit [Ping timeout: 260 seconds]
adriancb has quit [Ping timeout: 244 seconds]
spyderman4g63 has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
krzkrz has joined #ruby
bmichelsen has joined #ruby
droidburgundy has joined #ruby
Ionian has joined #ruby
<Ionian> are there any good ruby gem translator arounds?
<Ionian> that work?
aswen has joined #ruby
voltage_ has joined #ruby
<canton7> what's a ruby gem translator
<Ionian> I mean
<Ionian> A language translator
<Ionian> gem
<canton7> aah
voltage_ has left #ruby ["Leaving"]
<shevy> hehe
<aswen> Hi there, I wonder how I can let the optionparser show opts when no arguments are given (I want to have the same behaviour as -h in http://ruby-doc.org/stdlib-2.1.5/libdoc/optparse/rdoc/OptionParser.html
tgandrews has quit [Quit: This computer has gone to sleep]
theotherstupidgu has quit [Ping timeout: 244 seconds]
<eka_> aswen: if ARGV.size ==1 no params passed :P
hyperdrive has joined #ruby
Peterman_ has quit [Quit: Textual IRC Client: www.textualapp.com]
allcentury has joined #ruby
hyperdrive is now known as hdrv
<eka_> aswen: I think size should be == 0 :D
hdrv has quit [Changing host]
hdrv has joined #ruby
konsolebox has quit [Remote host closed the connection]
<apeiros_> yeah, == 0
<apeiros_> ruby does not include the program name in ARGV
<apeiros_> so: ARGV.empty?
Flcn has quit [Read error: Connection reset by peer]
<eka_> aswen: ^^^ that is better :D
hamakn has joined #ruby
<aswen> yeah, but i want to print the options helpteksts by doing opts in opt_parser
Flcn has joined #ruby
<eka_> apeiros_: I come from python and always forget about things like empty? nil? etc... :P
<aswen> I do have that now (if args.empty?
<aswen> opts
<aswen> end
<aswen> )
<aswen> oh crap
<aswen> puts opts
<aswen> ha!
<aswen> works
enebo has joined #ruby
Abhijit has quit [Remote host closed the connection]
sprihodko has joined #ruby
hdrv has quit [Client Quit]
<Ionian> shevy, do you know of any language translator module?
<aswen> thanks for helping me!
<eka_> anyone here uses Ohm? what to use for fixtures? pure ruby?
<jhass> p opts if ARGV.empty? # Long live the modifier-if!
<claf> ruby is like, a real languaeg
<workmad3> aswen: don't forget to 'exit' or 'exit!' in that case too ;)
<workmad3> aswen: unless it's valid to have no options... at which point, why are you printing out usage? :)
<aswen> yeah I hvae that, left it away in my paste to be quick ;-)
sailias has joined #ruby
tristanp has joined #ruby
<workmad3> aswen: :)
<aswen> it's not valid (in this case) to give no options
atomical has quit [Ping timeout: 258 seconds]
<shevy> Ionian not really. I use a custom german-english yaml file
sailias has quit [Client Quit]
hamakn has quit [Ping timeout: 265 seconds]
sailias has joined #ruby
<shevy> I once even had about 40 chinese/singaporean words
Techguy305 has joined #ruby
atomical has joined #ruby
<apeiros_> oh dear. Bundler.setup docs are outstanding.
<workmad3> apeiros_: I'm sensing some friday sarcasm there:P
<workmad3> bah, stupid flakey space bar
<shevy> I don't think it is sarcasm!
<shevy> he just loves bundler very much
<mbeasley> anyone have an idea why calling `file -Lb` on a file from a background worker using resque would cause a "Failed with exception of Interrupted system call" error *some* of the time?
<eka_> \msg frodsan hola
<shevy> though I concur with your workmad3, he just did not use enough !!! either way
<eka_> :P
<shevy> I'll give it a whip ...
<shevy> oh dear!!!!! Bundler.setup docs are outstanding!!!!!!!!!!!
<jhass> mbeasley: out of file descriptors maybe?
<sevenseacat> lol
<shevy> whatcha say workmad3
<jhass> mbeasley: underlying message would be interesting
<Ionian> Does anyone know any language translator?!!?
rdark has quit [Quit: leaving]
<jhass> Ionian: yes, opal for example
<workmad3> shevy: that many !s is obviously only possible when you're being absolutely sincere...
<Ionian> ok..
<workmad3> Ionian: translate.google.com ? :P
<jhass> he never specified human language ;)
<Ionian> Does anyone know any language(Not programming ones) translator?!!?
<shevy> hmm what ways do we have to keep data in a specific module (e.g. pertaining to that module)? constants defined in a module is one way ... can you access and manipulate instance variables defined in a module directly?
<workmad3> Ionian: translate.google.com
<shevy> Ionian what languages anyway
<shevy> Ionian http://dict.leo.org/ :>
<jhass> machine translation is still hard
<shevy> and don't forget the outstanding babelfish
kobain has joined #ruby
<Ionian> sigh
<mbeasley> jhass: it was extremely unverbose (is that a word?).
<Ionian> I want a ruby gem that you can translate from engligh to any language
<shevy> for sure it is now a real word
<Ionian> a ruby gem to do that
<shevy> if George Bush can coin new words, so can you
<Ionian> and none of you guys are helping ;-;
anaeem1 has joined #ruby
<jhass> mbeasley: my try to catch it and make it more verbose?
<shevy> Ionian and what if such a gem does not exist
<bhaak> what for? the translation will most likely be wrong
<workmad3> Ionian: that's because you're asking for stuff that doesn't really exist
<apeiros_> workmad3: why sarcasm? it's literally outstanding. in that it's not existent. puns… so nice :)
<apeiros_> (yes of course sarcasm)
<shevy> aha!!!!!!!!!
<mbeasley> jhass: alright. give me a bit. it's a very long running job.
<jhass> Ionian: would it wrap an API of something?
<workmad3> apeiros_: ah, it stands out due to its absence... I get ya
anaeem1 has quit [Read error: Connection reset by peer]
<apeiros_> workmad3: afaik outstanding can mean both, excellent and absent
jY has joined #ruby
<Ionian> jhass, yes
<jhass> apeiros_: but don't you just know what it does? :P
<Ionian> workmad3, Why wouldnt it?
tgandrews has joined #ruby
<workmad3> apeiros_: it can mean 'not done' more than 'absent'
<apeiros_> jhass: I do. I'm interested in what I don't know about it.
<jY> i have "web10-eu.manage.com"=>{"fqdn"=>"web10-eu.manage.com"}} how can i get the value out without knowing the key.. its always a single key/val in the array
<jhass> Ionian: did you decide on which something that would be?
<apeiros_> jhass: especially how require 'bundler/setup' and Bundler.setup relate to each other. I suspect the former is just Bundler.setup without arguments.
<jhass> I think so, yes
<jhass> let's just look at the code!
<workmad3> Ionian: because machine language translation is still an active research area, and solutions in the area are, on the whole, proprietary and shit
wolf4ood has joined #ruby
jerius has joined #ruby
<shevy> let's open source them but keep the other aspect
<Ionian> jhass, any something, Bing(not google, that costs money) or anything really
<shevy> Ping!
<shevy> (Pong)
mjuszczak has joined #ruby
<Ionian> wordmad3, wat
<shevy> wat wat
mjuszczak has quit [Max SendQ exceeded]
bahamas has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
<jhass> active (recent release), few k downloads
<jhass> seems like something to try out
mjuszczak has joined #ruby
<workmad3> https://rubygems.org/gems/google-translate for google-translate too
<shevy> come on Ionian
<shevy> the ball is with you now
mjuszczak has quit [Max SendQ exceeded]
<Ionian> wat
<workmad3> but don't expect stellar results from either backend ;)
MrIlyas has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<jhass> btw does anyone else dislike the font the new rubygems is using?
<Ionian> wow
<Ionian> Idk how to work this thing :S
<shevy> jhass I dislike the orange colour even more
<Ionian> jhass, I like it
<certainty> jhass: i dislike the entire look
<workmad3> jhass: I dislike the entire redesign
<certainty> heh
<workmad3> certainty: :D once again we're both sane
<jhass> I'm not sure I dislike it more than the old one
<certainty> workmad3: well great minds think alike
<jhass> but that l and i look the same...
mjuszczak has joined #ruby
<certainty> or insane minds, you judge
MrIlyas has quit [Max SendQ exceeded]
mjuszczak has quit [Max SendQ exceeded]
bahamas has quit [Client Quit]
MrIlyas has joined #ruby
MrIlyas has quit [Remote host closed the connection]
<apeiros_> sometimes github's code view is messed up
<workmad3> jhass: the old one had grown on me :)
<apeiros_> indents just go magically missing
anaeem1 has joined #ruby
<jhass> but we got syntax highlight in diffs now <3
mjuszczak has joined #ruby
dfas has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
Takle has quit [Remote host closed the connection]
<shevy> admit it
<apeiros_> jhass: hrmpf, but so require 'bundler/setup' gives us no way to add/remove groups
<shevy> you folks just dislike change
Takle has joined #ruby
<shevy> I'll issue a new colour request to rubygems.org
<shevy> for pink
* apeiros_ changes shevy
<yvehs> ouch
<workmad3> apeiros_: bundler/setup also doesn't require anything, iirc
<apeiros_> yvehs.rot13
<Ionian> These guys suck at documentation
<jhass> workmad3: since Bundler.setup doesn't, Bundler.require would
mjuszczak has joined #ruby
<workmad3> apeiros_: not like Bundler.require('some', 'groups')
<apeiros_> workmad3: huh? then Bundler.setup doesn't require anything either?
<apeiros_> ah
mjuszczak has quit [Max SendQ exceeded]
<apeiros_> yeah, that's fine with me
<shevy> Ionian well you could create your own gem that improves on the docs
valeriansaliou has joined #ruby
<apeiros_> I find Bundler.require bad
<shevy> Ionian documenting stuff is usually the by far most boring aspect
<certainty> agreed
<Ionian> yes but its essential
mjuszczak has joined #ruby
<workmad3> pfft, real programmers just read the source :P
<shevy> and when you make like massive changes to code, documentation can become outdated, so you have to keep track of what changed
Kricir has joined #ruby
_maes_ has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
anaeem1_ has joined #ruby
sevenseacat has quit [Remote host closed the connection]
<certainty> Ionian: and? :D
<shevy> workmad3, yeah, the bundler example above by jhass showed that
sinkensabe has quit [Remote host closed the connection]
<Ionian> I catn comprehend
<shevy> <jhass> let's just look at the code!
{xenomorph} has joined #ruby
<Ionian> gives me errors
mjuszczak has joined #ruby
Kricir has quit [Remote host closed the connection]
<shevy> and what are you doing
<shevy> what is: require 't2etranslator' giving you
<certainty> head ache
<shevy> lol
<Ionian> it gives me
{xenomorph} is now known as xenomorph
<shevy> yes?
<certainty> ui, stormy outside
<shevy> certainty well normal weather in germany!
<Ionian> Nothing
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lessless has joined #ruby
<workmad3> hahaha
<shevy> Ionian start irb; do it again
<Ionian> What should be the puts string?
<workmad3> just looked at the source for that t2etranslate
Takle has quit [Ping timeout: 258 seconds]
anaeem1 has quit [Ping timeout: 240 seconds]
<shevy> Ionian what puts string, who mentioned that
<Ionian> hold up
<workmad3> it constructs a google-translate URI with the text to translate and then parses the resulting HTML through nokogiri to pull out the translation
<shevy> I tell you two possibilities of outcomes
<shevy> (1) LoadError: cannot load such file -- t2etranslator
<shevy> (2) true
<workmad3> (assuming it all still works... hasn't been updated for a while)
<shevy> Nothing is not in the possible options unless I really forgot something
einarj has quit [Remote host closed the connection]
<Ionian> I got ture
<Ionian> true
<shevy> ture
<shevy> ok
<workmad3> Ionian: 'true' == 'required'
<shevy> let's try in irb the example
<shevy> T2etranslator.translate('love')
<shevy> that's a really strange API btw
valeriansaliou has quit [Ping timeout: 272 seconds]
<shevy> you should rewrite it Ionian
jY has left #ruby ["Linkinus - http://linkinus.com"]
<shevy> ?????
anaeem1_ has quit [Remote host closed the connection]
<shevy> almost looks like arabic letters to me
startupality has quit [Quit: startupality]
xenomorph is now known as {xenomorph}
jlast has joined #ruby
devdazed has joined #ruby
<workmad3> shevy: hehe, the default target language is tamil
<Ionian> I got
<Ionian> unintialized constand
<Ionian> Name error
eindoofus has joined #ruby
_beechnut has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
DivineEntity has joined #ruby
shredding has quit [Ping timeout: 258 seconds]
boombadaroomba has joined #ruby
rjc_ has joined #ruby
<shevy> yeah
<shevy> the guy who write this was an idiot
<shevy> class Translator
<jhass> haha
<jhass> click on the source code link
<shevy> Ionian, you can try Translator.translate('Love')
<shevy> but even then you will get an error
Techguy305 has quit [Ping timeout: 272 seconds]
<jhass> just don't use that gem, it should be yanked
<shevy> and btw if he uses translate.google.com anyway, you could just rewrite that thing in like 10 minutes or so
<Ionian> loooool
<Ionian> I cant though
<Ionian> im a noob
sigurding has quit [Quit: sigurding]
<shevy> nah
<shevy> it's just a matter of how much time spent
<jhass> Ionian: click on the source code link
tier has quit [Remote host closed the connection]
<jhass> tell me which gem that repository is for
icbm has joined #ruby
Takle has joined #ruby
<Ionian> source code link on the website?
surs has quit [Quit: leaving]
sigurding has joined #ruby
<workmad3> Ionian: on the rubygems page for the gem
<jhass> on rubygems.org
<Ionian> ok
<workmad3> (the gem got renamed, by the looks of things... new version is still broken though)
cassianoleal has joined #ruby
<Ionian> if this gem uses open_uri
<Ionian> I have the open-uri-redirection gem to fix
kamilc__ has joined #ruby
<shevy> workmad3 hehe
boombadaroomba has quit [Ping timeout: 272 seconds]
<Ionian> ok
<Ionian> im at github src
ndrei has joined #ruby
kish has quit [Read error: Connection reset by peer]
tier has joined #ruby
josephndenton has joined #ruby
Pupeno has quit [Remote host closed the connection]
kish has joined #ruby
Channel6 has joined #ruby
dfinninger has quit [Remote host closed the connection]
<Ionian> now wut
iwishiwerearobot has quit [Quit: >:(]
arietis has joined #ruby
dfinninger has joined #ruby
mjuszczak has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<bankair> Hi guys
Hanmac has quit [Ping timeout: 265 seconds]
<workmad3> Ionian: you read
<bankair> I'm encoutering a small rack middleware issue
bahamas has joined #ruby
<bankair> I swapped the web server of my application from thin to unicorn
mjuszczak has quit [Client Quit]
<bankair> An ActionDispatch:::ParamsParser#call exec time increased from 0.5 ms to 25 ms
mary5030 has joined #ruby
anarang has quit [Quit: Leaving]
<bankair> Any idea on that ? :)
dfinninger has quit [Ping timeout: 255 seconds]
<bankair> (I also changed my controllers to metal
<bankair> )
Ionian has quit [Ping timeout: 246 seconds]
bahamas has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
startupality has joined #ruby
procat has joined #ruby
AmirolAhmad has joined #ruby
skrite has joined #ruby
<shevy> hmm... can "var" be made optional in javascript?
<certainty> shevy: it changes meaning
<shevy> I find it quite distracting... var element = document.getElementById("header");
<ericwood> wait for ES6
<certainty> my js is rusty but i think without var you create a global
<ericwood> correct
<shevy> certainty ack
<tristanp> there's no real way around var, but it is helpful imo
<ericwood> you can put 'use strict' inside your closures to force a stricter mode that ignores all variable declarations without var
<tristanp> easier to read someone's code when you know where they're creating the variables
<ericwood> I typically do this...if you want to make something global you have to explicitly say "window.foo"
<ericwood> it's ES5's transitional stuff
<certainty> in which case it only works in browsers?
<shevy> tristanp but I already know; the = assignment gives me as a human being enough information for that
<certainty> or is that available even when not evaled in the browser?
<ericwood> idk how node, etc. handle it
<ericwood> if you're working with those you can just go ahead and use most ES6 features though
Kricir has joined #ruby
<shevy> in window.foo, window is a global?
<tristanp> shevy: '=' gets used when you change variables too
<tristanp> in node.js there is a global rather than window
rshetty has joined #ruby
<ericwood> in the browser window is the global "scope" (it's actually an object)
<skrite> hey all, i have rvm with two versions of ruby installed. Most of my code uses 1.8.7, but i have a need to run some scripts as 1.9. Is there a way in the script to select the ruby version?
rbennacer has joined #ruby
<ericwood> skrite: "rvm use 1.9"
Guest47224 has quit [Ping timeout: 265 seconds]
Hanmac has joined #ruby
<hanmac1> skrite: drop 1.8.7
it0a has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
tier has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
kedare has quit [Quit: WeeChat 1.0.1]
Mothore has joined #ruby
rbennacer has joined #ruby
<skrite> ericwood: thanks, hanmac1 dropping 1.8.7 will break a lot, a lot, a lot of website code.
<certainty> it's worth the hassle. we've went through that as well
DaniG2k has quit [Quit: leaving]
coreyfinley has joined #ruby
<hanmac1> skrite: do you still use Win95 or do did you manage to drop that too?
_mtr has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jshultz has joined #ruby
Spami has joined #ruby
<skrite> hanmac1: i am not writing anything new with 1.8.7 (just maintaining what exists), but there are three very large websites that i dont want to rewrite just to run a newer version of ruby. One of those "it isn't broken" kinda things
nasta has joined #ruby
tier has joined #ruby
davedev24_ has quit [Ping timeout: 258 seconds]
<skrite> so if i dont say rvm use 1.9 or somesuch, the version that is default will still be default, right?
<apeiros_> yes
<hanmac1> skrite: ruby1.8.7 is very much broken and will not get any updates
valeriansaliou has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<skrite> hanmac1: ah
cantonic has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Quit: Leaving]
<skrite> apeiros: thanks !
apeiros_ has joined #ruby
_mtr has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
einarj has joined #ruby
davedev24_ has joined #ruby
Pupeno has joined #ruby
einarj has quit [Remote host closed the connection]
<eka_> can I use vcr without webmock?
vinleod has joined #ruby
nrsk has joined #ruby
Takle has quit [Remote host closed the connection]
jeanlinux has joined #ruby
Takle has joined #ruby
coderhs has joined #ruby
rippa has joined #ruby
russt has quit [Quit: russt]
<coreyfinley> eka_: I believe it depends on your usage. I use it with out webmock when spec'ing API wrappers
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
apeiros_ has quit [Ping timeout: 272 seconds]
hornairs has joined #ruby
dfinninger has joined #ruby
<eka_> coreyfinley: will try just now... but I do a very simple test, that don't need mock... so I was wondering if I can left out the hook_into
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
CustosL1men has quit [Ping timeout: 245 seconds]
<coreyfinley> eka_: are you using it to spec functionality within your project, or are you attempting to record a cassette of an external service?
<eka_> coreyfinley: external service
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<eka_> coreyfinley: need to parse something from an external source... so...
<coreyfinley> eka_: Then I don't think you'll need webmock. Since you're not stubbing the response, you just want to record it.
Kabaka has quit [Ping timeout: 244 seconds]
<eka_> coreyfinley: yes... just tried and nothing got saved to disk... :P I'm using httparty
startupality has quit [Quit: startupality]
startupality has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
<eka_> coreyfinley: "And of course any library built on Net::HTTP, such as Mechanize, HTTParty or Rest Client." :P... looking on what's going on
mjuszczak has joined #ruby
studiotate has joined #ruby
snath has quit [Ping timeout: 260 seconds]
Photism has joined #ruby
Kabaka has joined #ruby
<eka_> coreyfinley: seems that webmock is needed... seems to be used internally or something... now the file is there
green-big-frog has joined #ruby
whoisjake has joined #ruby
sprihodko has quit [Quit: (null)]
Sharker has quit [Ping timeout: 250 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<green-big-frog> i found a bug on tryruby.org... http://snag.gy/ziirf.jpg
<green-big-frog> typo
tagrudev has quit [Remote host closed the connection]
<canton7> green-big-frog, contact them, then :)
<green-big-frog> who?
<canton7> tryruby.org
IrishGringo has quit [Ping timeout: 258 seconds]
<canton7> or whoever managed that website :P
<shevy> green-big-frog report here https://github.com/Sophrinix/TryRuby/issues
samuel02 has joined #ruby
<green-big-frog> ty
<canton7> aha nice find
<shevy> I am an experter googler!
<shevy> erm
<shevy> *expert
psy_ has quit [Read error: Connection timed out]
adamski2600 has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
theotherstupidgu has joined #ruby
FDj has joined #ruby
stunder has joined #ruby
adamski2600 has quit [Quit: leaving]
rshetty has quit [Remote host closed the connection]
bahamas has joined #ruby
ringarin has joined #ruby
chipotle has quit [Quit: cheerio]
Channel6 has quit [Quit: Leaving]
dfinninger has quit [Read error: Connection reset by peer]
bmichelsen has joined #ruby
dfinninger has joined #ruby
Sharker has joined #ruby
jobewan has joined #ruby
agit0 has quit [Read error: Connection reset by peer]
lyuben_ has joined #ruby
last_staff has quit [Quit: last_staff]
snath has joined #ruby
alex88 has quit []
tristanp has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 244 seconds]
dfinninger has quit [Remote host closed the connection]
kish has quit [Read error: Connection reset by peer]
kish has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
brasten has joined #ruby
fmcgeough has joined #ruby
dfinninger has joined #ruby
ndrei has quit [Read error: No route to host]
ndrei has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: ciao.]
aganov has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
tgandrews has joined #ruby
startupality has quit [Quit: startupality]
tkuchiki has joined #ruby
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
chu has joined #ruby
klmlfl has joined #ruby
IrishGringo has joined #ruby
jamesaxl has joined #ruby
diegoviola has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
lmickh has joined #ruby
lyuben_ has quit [Quit: This computer has gone to sleep]
Rodya_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Fire-Dragon-DoL has joined #ruby
startupality has joined #ruby
sigurding has quit [Quit: sigurding]
Ankhers has joined #ruby
jimms has quit []
rshetty has joined #ruby
TPBallbag has quit []
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
elcheckito has quit [Quit: WeeChat 1.0.1]
wjimenez5271 has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
Pupeno has quit [Remote host closed the connection]
Megtastique has joined #ruby
sigurding has joined #ruby
larissa has joined #ruby
AlbertoCG has joined #ruby
mjuszczak has quit []
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
optiz0r has left #ruby ["Leaving"]
bahamas has joined #ruby
melinda87_2 has joined #ruby
melinda87_2 has quit [Max SendQ exceeded]
wjimenez5271 has quit [Ping timeout: 245 seconds]
Hijiri has quit [Ping timeout: 250 seconds]
dfinninger has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 250 seconds]
c0rwin has quit [Ping timeout: 256 seconds]
linocisco has joined #ruby
veduardo_ has joined #ruby
St_Marx has quit [Remote host closed the connection]
gtrak has joined #ruby
<linocisco> hi all
_maes_ has joined #ruby
St_Marx has joined #ruby
devoldmx has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby
<coreyfinley> linocisco: hey
<linocisco> coreyfinley, do u know me?
<coreyfinley> eka_: My mistake. Glad you got it worked out.
dblessing has joined #ruby
porfa has quit [Quit: porfa]
havenwood has joined #ruby
<linocisco> C:\Users>gem install rake
<linocisco> ERROR: Could not find a valid gem 'rake' (>= 0), here is why:
<linocisco> Unable to download data from https://rubygems.org/ - SSL_connect retur
<linocisco> ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
porfa has joined #ruby
rylev has quit [Ping timeout: 265 seconds]
red_horned_rihno has quit [Read error: Connection reset by peer]
_cb1 has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
arrnas has joined #ruby
diegovio1 has joined #ruby
tristanp has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<shevy> weird error
<shevy> might be a connection problem
<shevy> normall it will work linocisco
aswen has quit [Ping timeout: 245 seconds]
<shevy> linocisco you could try to download it directly from your browser
<shevy> linocisco https://rubygems.org/gems/rake the download link there
<linocisco> yes. I dont know why . Even with faster connection at office, it doesnt work. Here at my home, I am using EDGE GSM internet
Takle has quit [Remote host closed the connection]
porfa has quit [Client Quit]
dc has joined #ruby
<linocisco> shevy, I am on windows 7 , how can I run and exact that tar ball file into?
Takle has joined #ruby
<shevy> linocisco have you downloaded it via your browser?
<linocisco> shevy, not yet. but I will get only .tgz where I dont know to place
<shevy> how can you get .tgz
<shevy> why do you say that
Cache_Money has joined #ruby
tristanp has quit [Ping timeout: 245 seconds]
rylev has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
lw has joined #ruby
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<shevy> download from the website I showed you
<shevy> you will have a .gem file
<linocisco> shevy, thanks
<shevy> install it by going to that directory and:
<shevy> gem install --ignore-dependencies ./rake*gem
dc has quit [Ping timeout: 244 seconds]
<shevy> you can omit the --ignore-dependencies perhaps
oleo__ is now known as oleo
ndrei has joined #ruby
Photism has quit [Quit: Leaving]
Takle has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
_mtr has joined #ruby
<linocisco> shevy, and then where should I put that .gem file?
tier has quit [Remote host closed the connection]
sambao21 has joined #ruby
diegovio1 has quit [Changing host]
diegovio1 has joined #ruby
diegovio1 is now known as diegoviola
<shevy> linocisco did you install it via gem install yet
<shevy> if you did, you have it in your base gem directory
<shevy> then you can start irb; and do require 'rake' and it will return true
<shevy> try that
linocisco has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<shevy> btw I have tried it on a win 8.1 box about 5 days ago and gem install worked perfectly well there
allcentury has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
dfinning_ has joined #ruby
hanmac1 has quit [Quit: Leaving.]
red_horned_rihno has joined #ruby
rpag has joined #ruby
_mtr has quit [Ping timeout: 244 seconds]
dh64 has quit [Quit: Konversation terminated!]
jaequery has joined #ruby
hyperdrive has joined #ruby
dfinnin__ has joined #ruby
dfinning_ has quit [Read error: Connection reset by peer]
rshetty has quit [Ping timeout: 272 seconds]
rshetty_ has joined #ruby
oleo has quit [Quit: Verlassend]
hyperdrive is now known as hdrv
hdrv has quit [Changing host]
hdrv has joined #ruby
oleo has joined #ruby
jdripper has quit [Quit: Leaving.]
allcentury has quit [Ping timeout: 244 seconds]
samuel02 has quit [Remote host closed the connection]
rubynewby has joined #ruby
allcentury has joined #ruby
bahamas has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ninjazach has joined #ruby
troyready has quit [Remote host closed the connection]
Techguy305 has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
msgodf has quit [Ping timeout: 258 seconds]
Daniel__^_^ has joined #ruby
<rubynewby> I'm trying to understand what the '&' means here https://paste.fedoraproject.org/159177/40255614/ and why I need it for the even? method but not the addition '+' method? Any tips appreciated
lw has quit [Quit: s]
jfran has joined #ruby
<canton7> rubynewby, look up Symbol.to_proc
Danishman has joined #ruby
<shevy> .reduce has one argument there, the symbol :+
<canton7> the & is taking the symbol :even?, and turning it into a proc which accepts and object, calls .even? on it, and returns the result
<coreyfinley> #map(&:even?) is the same as #map{|x| x.even?}
fmcgeough has quit [Quit: fmcgeough]
<canton7> #reduce and #inject were around before the Symbol.to_proc stuff was introduced - so they can accept some stuff as just a plain symbol
<canton7> they provide a bit of special extra behaviour, if you like, for historical reasons
<droidburgundy> ruby newb here... what should I look at first if I getting OptionParser::InvalidOption errors when running a rby script from a bash script but not if I run it from cli myself
fmcgeough has joined #ruby
<bahamas> hello. back regarding the vagrant plugin. doesn't the code here make sure that the rspec host is set to the same host as defined in the Vagrantfile? https://github.com/jvoorhis/vagrant-serverspec/blob/master/lib/vagrant-serverspec/provisioner.rb
<rubynewby> canton7, shevy, coreyfinley: Thanks for the answers. That really helps me get a better handle on what was going on:) Much appreciated
godd2 has joined #ruby
joonty has quit [Quit: Leaving]
<havenwood> droidburgundy: i'd guess something to do with shellword splitting or escaping messing up your option parameters
<havenwood> droidburgundy: show the code you're running?
sambao21 has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
rpag has quit [Quit: Leaving]
<havenwood> droidburgundy: and the error you're getting?
<droidburgundy> if i run via bash
arietis has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
treehug88 has joined #ruby
tier has joined #ruby
adriancb has joined #ruby
tjohnson has joined #ruby
<droidburgundy> error from bash is http://pastebin.com/kEnWw4tL
tobago has quit [Remote host closed the connection]
<jhass> ew, ruby 1.8
<droidburgundy> if i just type out the opts myself I can run the ruby script no prob
jaequery has joined #ruby
arietis has joined #ruby
brasten has quit [Ping timeout: 256 seconds]
<jhass> droidburgundy: "${ARGS[@]}" obviously makes it that they're passed as a single argument
kish has quit [Read error: Connection reset by peer]
ghostmoth has joined #ruby
kish has joined #ruby
brasten has joined #ruby
renderful has joined #ruby
hamakn has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 244 seconds]
troyready has joined #ruby
arietis has quit [Ping timeout: 245 seconds]
<havenwood> shell quoting is such fun >.>
<havenwood> $(printf "%q " "${ARGS[@]}")
<jhass> ruby -e 'p ARGV'
arietis has joined #ruby
aZaFred has joined #ruby
aZaFred has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tristanp has quit [Remote host closed the connection]
<droidburgundy> ._.
lolmaus has quit [Quit: Konversation terminated!]
tristanp has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<droidburgundy> i didn't realize that, when I was checking using ARGS they seemed to pass ok
roolo has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
roolo has joined #ruby
x1337807x has joined #ruby
roolo has quit [Client Quit]
VictorBjelkholm has quit [Remote host closed the connection]
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bluenemo has joined #ruby
charliesome has quit [Quit: zzz]
Cache_Money has quit [Quit: Cache_Money]
<ReinH> fwiw, "${ARGS[@]}" would be equivalent to $ARGS[*]
terlar has quit [Quit: WeeChat 1.0.1]
rbennacer has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 245 seconds]
gtrak has quit [Remote host closed the connection]
Prometheian has joined #ruby
Megtastique has quit []
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
russt has joined #ruby
rylev has quit [Remote host closed the connection]
<droidburgundy> yeah i dont truly get the difference
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
jeanlinux has joined #ruby
cassianoleal has quit [Quit: (null)]
Techguy305 has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker`work has joined #ruby
startupality has quit [Quit: startupality]
nateberkopec has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
jarjar_prime has joined #ruby
klmlfl has quit [Remote host closed the connection]
nateberkopec has quit [Client Quit]
jarjar_prime has left #ruby [#ruby]
jfran has quit [Read error: Connection reset by peer]
andikr has quit [Remote host closed the connection]
Techguy305 has joined #ruby
jfran has joined #ruby
mikepack has joined #ruby
jfran has quit [Read error: Connection reset by peer]
jfran has joined #ruby
<havenwood> droidburgundy: #bash is probably a better place to ask :)
Techguy305|2 has joined #ruby
AmirolAhmad has quit [Ping timeout: 250 seconds]
dc has joined #ruby
red_horned_rihno has quit [Ping timeout: 255 seconds]
nasta has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby
Techguy305 has quit [Ping timeout: 265 seconds]
<droidburgundy> thanks havenwood, I got it working finally
Parker0 has joined #ruby
Techguy305|2 has quit [Ping timeout: 256 seconds]
deric_skibotn has joined #ruby
ebbflowgo has joined #ruby
georgesmith has quit [Quit: georgesmith]
agent_white has joined #ruby
ghr has joined #ruby
<agent_white> Good mornin!
aspires has joined #ruby
Guest86742 has joined #ruby
rshetty_ has quit [Remote host closed the connection]
iamninja has quit [Quit: ZZZzzz…]
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
allcentury has joined #ruby
renderful has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
AmirolAhmad has joined #ruby
sigurding has joined #ruby
ebbflowgo has joined #ruby
econerd4ever has joined #ruby
mabahamo has joined #ruby
Klumben has quit [Ping timeout: 258 seconds]
mabahamo has left #ruby [#ruby]
red_horned_rihno has quit [Ping timeout: 258 seconds]
jaequery has quit [Read error: Connection reset by peer]
icotestin has joined #ruby
red_horned_rihno has joined #ruby
jheg has quit [Quit: jheg]
red_horned_rihno has quit [Max SendQ exceeded]
red_horned_rihno has joined #ruby
samuel02 has joined #ruby
_Andres has joined #ruby
wjimenez5271 has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
icotestin has quit [Ping timeout: 245 seconds]
jaequery has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
doritostains has joined #ruby
icotestin has joined #ruby
_mtr has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
michaeldeol has joined #ruby
krzkrz has quit [Quit: WeeChat 1.0.1]
<shevy> agent_white is back from the Matrix
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<agent_white> I am I am!
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
_mtr_ has joined #ruby
rylev has joined #ruby
noop has quit [Quit: Leaving]
icotestin has quit [Ping timeout: 255 seconds]
sailias has quit [Quit: Leaving.]
<agent_white> I think the mission today is to try to sandbawks rubee.
GeorgesLeYeti has quit [Quit: Leaving]
kish has quit [Read error: Connection reset by peer]
kish has joined #ruby
rylev has quit [Remote host closed the connection]
DLSteve_ has joined #ruby
aarwine has joined #ruby
wolf4ood has quit [Quit: (null)]
<aarwine> rbenv during install hardcodes #! lines with the path that the rbenv install went to. Is anyone familiar with a way to define that path?
DLSteve has quit [Ping timeout: 258 seconds]
IrishGringo has joined #ruby
bahamas has joined #ruby
Klumben has joined #ruby
triple_b has joined #ruby
wallerdev has joined #ruby
baroquebobcat has joined #ruby
samuel02 has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
peterhu_ is now known as peterhu
fandi has joined #ruby
Flcn has quit [Quit: Be back later ...]
sailias has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
<havenwood> aarwine: I'd suggest just switching from rbenv/ruby-build to chruby/ruby-install, which support switching to Rubies in arbitrary places and installing Rubies wherever you'd like.
karmatr0n has joined #ruby
jcutrell has joined #ruby
dfinnin__ has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Guest86742 has quit [Remote host closed the connection]
lw has joined #ruby
<bahamas> havenwood: hey. do you want to help me with that issue from yesterday regarding vagrant and serverspec?
<havenwood> aarwine: Also you can install Rubies before their definitions are added securely by providing an MD5 or SHA1/256/512. Package manager packages are used instead of shipping them separately like ruby-build does, a potential security nightmare since most are unaware they're doing it. The code is simpler. There are more considerations paid to security. No rehash. Etcetera.
<aarwine> havenwood: does it define a function over my cd?
<aarwine> :(
ebbflowgo has quit [Quit: ebbflowgo]
<havenwood> aarwine: no
<havenwood> aarwine: it does not hook cd
jakobhans has joined #ruby
bigkevmcd has joined #ruby
aspires has quit []
jakobhans has quit [Read error: Connection reset by peer]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
fabrice31 has joined #ruby
<bradland> aarwine: ruby-build (which I use to install single-versions of ruby on servers) accepts a path
pietr0 has joined #ruby
Megtastique has joined #ruby
<pipework> ruby-install is much nicer.
allcentury has quit [Ping timeout: 255 seconds]
<pipework> aarwine: I don't know why people think the overriding of cd is as big a deal as they say.
<pipework> You're probably not reading the open source software you use anyways, who cares whether code you never inspect does things on cd as opposed to anything else it can do.
<aarwine> pipework: because i'm an ops guy not a batshit crazy ruby guy
wald0 has joined #ruby
<pipework> aarwine: That has nothing to do with it.
<aarwine> we don't need monkey patching posix utilties
<havenwood> aarwine: It just properly sets env vars. There's optional .ruby-version auto-switching support which uses zsh preexec_functions or bash trap DEBUG (too bad bash doesn't have preexec_functions and chpwd_functions...): https://github.com/postmodern/chruby#auto-switching
<bradland> that’s dogma, not a reason
<pipework> If you aren't reading the software you're using, an argument against overriding cd is about philosophy, not security.
<aarwine> bradland: taht's the problem with overriding cd; it's dogma, it's doing something I don't expect
<aarwine> I'd like it to cd
<pipework> It does cd.
<aarwine> I didn't come here for a religious flame war.
<bradland> dogma is not associated with expectations
fabrice31 has quit [Ping timeout: 258 seconds]
<bradland> but yeah, try not to evangelize tools
<pipework> I don't think he meant that overriding cd is dogma. I think he meant that your distaste for it is dogma.
<bradland> use what you like, but the “it hooks cd and that’s bad mkay” stuff is toxic
Stalkr_ has joined #ruby
<aarwine> rbenv, chruby, rvm all try to seperate system rubies from app rubies. Why would we then put something that fucks with the system if our goal was seperation?
rjc_ has quit [Quit: Konversation terminated!]
ghr has quit [Ping timeout: 272 seconds]
<shevy> man
<bradland> “fucks with the system” is not a technical argument
<pipework> aarwine: Are you reading the source of the ruby manager's your running or anything else?
<shevy> reading the source code sometimes is much better than reading the documentation
<aarwine> Why do we need the app then to muddle with the system cd? It doesn't make any sense.
<pipework> aarwine: It's not a system cd.
<bradland> for convenience
<pipework> It's overriding a builtin for the shell as a function.
tristanp has quit [Remote host closed the connection]
<pipework> The 'system cd' is fine.
<bradland> if you do not like that trade-off, use something else
jakobhans has joined #ruby
<havenwood> pick your poison
<aarwine> Ok, let me rephrase, I'm not using rvm and you wont' convince me otherwise
<aarwine> So if you want to keep typing that's fine, I'll *plonk*
<bradland> super
Areessell has joined #ruby
_beechnut1 has joined #ruby
<pipework> At least that's an argument that doesn't pretend to be cogent and technical.
<aarwine> I'll likely be happy to debate it at home when I've had some drinks :X
<havenwood> aarwine: this is the entirety of chruby's auto-switching: https://github.com/postmodern/chruby/blob/master/share/chruby/auto.sh
klmlfl has joined #ruby
<havenwood> aarwine: this is the entire rest of the code: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh
<pipework> aarwine: Come back, it's a fun argument. I'm not firmly in the camp that overriding cd is perfectly always good, but the general opinion that it's bad is also bad.
<havenwood> aarwine: it's near the simplest thing that can possibly work, and it works great.
<pipework> Mmm, chruby and ruby-install. Small, simple, tested, clean.
<havenwood> :)
_beechnut2 has joined #ruby
_beechnut has quit [Ping timeout: 244 seconds]
<bradland> i will vouch for chruby. postmodern (the author) is a great rubyist
<bahamas> here are the relevant files and the error I'm getting https://bpaste.net/show/1c65986f09f9
<aarwine> havenwood: that does look simple
klmlfl has quit [Remote host closed the connection]
kenneth has joined #ruby
<bahamas> in a 'normal' serverspec directory layout, there is a file that contains 'set :backend, :ssh'. if I put that in a file, I get an error about undefined 'set'.
DrCode has quit [Ping timeout: 250 seconds]
klmlfl has joined #ruby
<bahamas> someone mentioned yesterday something about namespaces. I don't have a namespace, probably because I'm not using rake
_beechnut1 has quit [Ping timeout: 272 seconds]
<havenwood> bahamas: By namespace I just meant inside Vagrant, not in main.
<bahamas> unfortunately, I don't know enough ruby to know how else I could set that backend
jeanlinux has quit [Remote host closed the connection]
<havenwood> is there a Vagrant channel?
<bahamas> yeah
_beechnut has joined #ruby
blasius has joined #ruby
<havenwood> #vagrant, aha
surial has left #ruby ["Textual IRC Client: www.textualapp.com"]
<shevy> if I do this here in a ruby file
<shevy> require 'foo'
<shevy> require 'foo'
<bahamas> I'm trying in there as well
<shevy> will the second require be tried at all?
<havenwood> shevy: it will return `false` and not reload the code
<shevy> ah ok
<havenwood> bahamas: but you're having new errors now, yeah?
<bahamas> because I removed the 'set'.
_beechnut2 has quit [Ping timeout: 258 seconds]
<havenwood> it didn't belong where you had it
<bahamas> in the original layout, it was in a file. but the original layout is ran with rake
CustosL1men has joined #ruby
<bahamas> I hoped I would be able to use this plugin before becoming proficient in ruby
<havenwood> bahamas: I'd vote first getting the dependency and symlink Failures resolved. I think #vagrant will probably be the most adept at helping there.
<bradland> aarwine: have a look in to RBENV_ROOT
<havenwood> bahamas: We can halp with the Ruby part but #vagrant is probably best for their DSL.
mesamoo has joined #ruby
<bradland> it’s an environment variable which lets you set the install location for rbenv
DrCode has joined #ruby
<bradland> rbenv appears to work relative to that location in pretty much all cases
<bahamas> havenwood: which dependency failure?
<bradland> i can’t find any support for installing rubies to different locations
bmichelsen has joined #ruby
<aarwine> bradland: Yea, but I'm actually trying to build an artifact on a build server, so if I change that it will no longer be built int the workspace
andll has joined #ruby
<havenwood> bradland: Package XXX should be installed.
<havenwood> bradland: oops, sry - bahamas ^
<aarwine> I think my actual problem is with ruby-build because that's the piece that is hardcoding shebangs to versions
<bradland> aarwine: in that case, i’d probably hit ruby-build directly
klmlfl has quit [Remote host closed the connection]
jordsmi has joined #ruby
<aarwine> bradland: ^5
<bradland> you can pass a path to ruby-build
klmlfl has joined #ruby
<aarwine> OH GOSH
* havenwood coughs, **ruby-install**
max96at|off is now known as max96at
<bahamas> havenwood: that's serverspec DSL testing that the package should be installed
<bahamas> the actual problems are at the NameError line
Val__113 has joined #ruby
damic has joined #ruby
<bahamas> havenwood: btw, can you recommend a good intro to ruby for programmers? I don't need handholding
Flcn has joined #ruby
rshetty has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
rpag has joined #ruby
<bahamas> bradland: isn't that for people with no programming experience?
<aarwine> bahamas: +1 on thehardway
<havenwood> bahamas: The Ruby Programming Language or The Well-Grounded Rubyist, Second Edition jump right in.
<bradland> ostensibly, but everyone i’ve seen with no experience flails with the hard way books
<bradland> because they’re so fast
<havenwood> yeah, for beginners. and largely not idiomatic Ruby.
<pipework> I'm not a thehardway kind of guy. If you're looking to learn ruby, I'd suggest what havenwood linked.
<bradland> they’re written on the premise that you’ll repeat the sections until you “get it"
<bradland> which actually makes them work well for expereinced programmers, IMO
<bahamas> ok, so books are my only option. or I'll just look at the ruby reference
<bahamas> bradland: I don't want to be told what a class is and all that jazz
<havenwood> if you've done the Hard Way for Python, and want to learn Ruby like you're pretending it's Python... then it's spot on! :P
wald0 has quit [Quit: Lost terminal]
<pipework> bahamas: Books are generally authored for an audience not in the know.
Spami has quit [Quit: This computer has gone to sleep]
<j2p2> link inc
<bahamas> pipework: what do you mean?
Spami has joined #ruby
<bradland> best way for experienced programmers to learn ruby is, IMO, to take apart a simple gem or application
<bradland> and look at the source code
<pipework> bahamas: Reading references are more for the initiated.
<pipework> It helps to already know a big before a reference makes sense.
jenrzzz has quit [Ping timeout: 272 seconds]
<j2p2> there ya go
<pipework> s/big/bit/
chrishough has joined #ruby
Pupeno_ has joined #ruby
<bahamas> pipework: true. I take as a reference the python tutorial, which is not for beginner programmers. it's for people with programming experience
craigp has joined #ruby
<bahamas> I was hoping there was something like that for Ruby
Megtastique has quit []
Shazaum has joined #ruby
<bahamas> j2p2: that looks useful. thanks!
<j2p2> np!
Spami has quit [Client Quit]
rshetty has quit [Ping timeout: 244 seconds]
<havenwood> bahamas: for example, The Ruby Programming Language starts with a Sudoku solver implementation
Spami has joined #ruby
<bahamas> one question. is there a function that returns an object's attributes?
<pipework> bahamas: You'd have to write it. Also, they're called methods.
<havenwood> ls
Spami has quit [Client Quit]
<bahamas> pipework: I was referring to actual attributes that hold values. these don't exist in ruby?
Spami has joined #ruby
<havenwood> in the Pry REPL the `ls` command is handy for looking at objects
<bahamas> oh
LouisRoR1 has quit [Ping timeout: 272 seconds]
<bradland> bahamas: look in to Ruby’s reflection features
<pipework> bahamas: There's nothing really like 'attributes', there's instance variables. But yeah, pry has `ls`
<havenwood> bahamas: everything is accessible, just depends on what you mean
allcentury has joined #ruby
<bahamas> havenwood: I'm usually looking at an object to remember what methods it has
<bahamas> then I do help(obj.method)
<bradland> pry is great for that
<bahamas> I don't know if the latter is possible in ruby
Pupeno has quit [Ping timeout: 265 seconds]
<shevy> you can define a help method
<shevy> that should do that
<shevy> ironically I am now working on a class that will give me the comments of a method
AmirolAhmad has quit [Ping timeout: 265 seconds]
<bahamas> shevy: do ruby functions have docstrings?
geggam has joined #ruby
<bahamas> ah, the comments
<shevy> ruby has no docstring support
momomomomo has joined #ruby
<bahamas> ok. at least there's 'ls'
<bradland> bahamas: fire up an irb session and type String.methods
<shevy> bahamas you need to see ruby more like a language for poetry
<bradland> >> String.methods
<eval-in__> bradland => [:try_convert, :allocate, :new, :superclass, :freeze, :===, :==, :<=>, :<, :<=, :>, :>=, :to_s, :inspect, :included_modules, :include?, :name, :ancestors, :instance_methods, :public_instance_methods, : ... (https://eval.in/234083)
Spami has quit [Client Quit]
AmirolAhmad has joined #ruby
<bradland> although that list is pretty simplistic
<bradland> pry is really great, because it color codes the output of “ls”
<shevy> >> String.methods.size
<eval-in__> shevy => 100 (https://eval.in/234084)
<shevy> look bahamas! 100 methods for you to memorize!
<havenwood> >> ''.public_methods false
<eval-in__> havenwood => [:<=>, :==, :===, :eql?, :hash, :casecmp, :+, :*, :%, :[], :[]=, :insert, :length, :size, :bytesize, :empty?, :=~, :match, :succ, :succ!, :next, :next!, :upto, :index, :rindex, :replace, :clear, :chr, ... (https://eval.in/234085)
<bradland> pry lets you explore the namespace almost as if it were a filesystem
<bahamas> shevy: yeah, I don't memorize stuff like that :)
<bahamas> ok. I will give pry a try
<havenwood> >> 42.public_methods(false).size
<eval-in__> havenwood => 36 (https://eval.in/234086)
kenneth has quit [Ping timeout: 250 seconds]
econerd4ever has quit [Read error: Connection reset by peer]
econerd4ever has joined #ruby
<havenwood> bahamas: gem install pry pry-doc
maletor has joined #ruby
<havenwood> bahamas: then inside `pry`, check out `help`.
<havenwood> bahamas: then docs for each command, like: help gist
econerd4ever has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
econerd4ever has joined #ruby
mary5030 has quit [Remote host closed the connection]
<bahamas> btw, the page above says that 'require' is the equivalent of python's 'import'. my impression is that it's not exactly true. require imports all names in a module, no?
Rodya_ has quit [Read error: No route to host]
Megtastique has joined #ruby
mary5030 has joined #ruby
kenneth has joined #ruby
existensil has joined #ruby
IrishGringo has quit [Ping timeout: 258 seconds]
chthon has quit [Ping timeout: 244 seconds]
spacemud has joined #ruby
AmirolAhmad has quit []
ndrei has joined #ruby
boombadaroomba has quit [Ping timeout: 265 seconds]
hdrv has quit [Ping timeout: 244 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
yetanotherdave has joined #ruby
<bahamas> pry is nice. it has tab completion as well
<bradland> love pry
kenneth has quit [Ping timeout: 245 seconds]
kish has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
<wasamasa> bahamas: yes, ruby's module system is less well thought through
econerd4ever has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
<wasamasa> bahamas: you can require something absolutely or relatively and that's pretty much it
kish has joined #ruby
econerd4ever has joined #ruby
sambao21 has joined #ruby
<bahamas> I see. so you bring all the names into the new namespace
wjimenez_ has joined #ruby
kenneth has joined #ruby
_beechnut1 has joined #ruby
samuel02 has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<bahamas> are ruby symbols like atoms from erlang (if I remember correctly)?
Jackneill has joined #ruby
Soda has joined #ruby
green-big-frog is now known as frog|OFF
Mon_Ouie has joined #ruby
ramfjord has joined #ruby
wjimenez5271 has quit [Ping timeout: 250 seconds]
Snarkz has joined #ruby
AlexRussia has joined #ruby
wjimenez_ is now known as wjimenez5271
kirun has joined #ruby
_beechnut has quit [Ping timeout: 264 seconds]
<godd2> bahamas symbols are interned strings, so if that's what atoms in erlang are, then yes
baweaver has joined #ruby
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 250 seconds]
sarmiena_ has joined #ruby
<bahamas> I see
<pipework> Well, atoms are closer to variables, but in erlang they can only be assigned once.
<pipework> A literal, really.
Parker0 has joined #ruby
<godd2> ah so erlang atoms are for immutable references
<pipework> bahamas: No, ruby symbols are just like interned strings, they can't be assigned to anything except themselves.
andll has quit [Remote host closed the connection]
<pipework> godd2: They're the goto 'variable', but they can only be assigned once in a scope/context
baweaver has quit [Remote host closed the connection]
Parker0 has quit [Client Quit]
baweaver has joined #ruby
Parker0 has joined #ruby
Parker0 has quit [Remote host closed the connection]
<wallerdev> erlang talk? exciting!
<wallerdev> i knew i learned that language for something
* pipework worked at Ericsson for a time
laudo has joined #ruby
<bahamas> pipework: so why a symbol and not a string?
<pipework> bahamas: Because symbols are immutable and not GC'able (yet)
<bahamas> they are optimized?
<bahamas> I see
<pipework> Lookup isn't bad either, iirc.
<godd2> bahamas use symbols if you're using hashes, so that the keys are a) gauranteed to be unique, and b) efficient in memory
<bahamas> godd2: you mean use symbols as keys?
<pipework> godd2: That's not always true. If you're not dealing with user input as the keys to a hash in any form, use some symbols maybe.
<godd2> pipework yea, in the backend, symbols are integers
<bahamas> ah, that's what you mean
kenneth has quit [Ping timeout: 255 seconds]
Photism has joined #ruby
<wallerdev> yeah comparison of symbols is much faster than strings
<godd2> wallerdev I think that depends on the version of ruby and the length of the symbol/string
<rpag> something to consider on a case-to-case basis imo
<pipework> ^ quite
<eam> wallerdev: until recently symbols were much slower
<bahamas> does pry have any docs for object methods? like String.capitalize?
kenneth has joined #ruby
<wallerdev> really? haha
<pipework> I don't use symbols when the keys that are being used are generated and might grow a lot over any amount of time.
<wallerdev> yeah generating symbols sounds wrong
<bahamas> pipework: can you turn a string into a symbol? I mean one stored in a variable
<pipework> bahamas: #to_sym
<godd2> >> "hello".to_sym # don't use this
<eval-in__> godd2 => :hello (https://eval.in/234090)
<shevy> lol the comment is godly godd2
<rpag> YES
<rpag> shevy is here
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rpag> wurd up
<shevy> >> 22 + 20 # <-- don't believe this
<eval-in__> shevy => 42 (https://eval.in/234091)
baweaver has quit [Ping timeout: 258 seconds]
<pipework> godd2: What's wrong with #to_sym, do you mean like just write the literal for the symbol, or never use #to_sym?
<shevy> rpag I am playing around with prawn
<shevy> require "prawn/table" don't work :(
<rpag> what is prawn again
<eam> >> %# don't comment this #
<shevy> the pdf generator in ruby
<rpag> some pdf thing right
<eval-in__> eam => " don't comment this " (https://eval.in/234092)
<pipework> rpag: PDF generation.
<rpag> cool
<rpag> is it actively maintained?
<pipework> shevy: Be awesome and use phantomjs with it's rasterizers to make awesome PDFs.
<godd2> pipework symbols don't get garbage collected, so you're opening yourself up to a memory leak
<pipework> But you probably hate JS for reasons.
_beechnut has joined #ruby
<bahamas> so there's no CLI way to get docs for an object method, right?
<pipework> godd2: They aren't GCable yet.
<rpag> there is ri, yri, pry-doc.
<rpag> ? String#capitalize
<rpag> in pry ^
<pipework> But I use to_sym when the possible set of things I'm calling it on aren't going to expand over time.
<shevy> I don't want javascript
<bahamas> rpag: nice! thanks!
<godd2> pipework that's generally fine then, expecially if you need that dynamicism
<rpag> youre welcome
<pipework> shevy: You don't want good PDFs, clearly.
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`1ork has joined #ruby
porfa has joined #ruby
<shevy> pipework it's like living for 200 years but with constant cancerous growth
bricker`work has quit [Ping timeout: 245 seconds]
<shevy> we'll improve ruby code everywhere instead
<godd2> but shevy, ecma6 is getting keyword args. so its pretty much ruby now
<pipework> godd2: Sometimes I even use #to_sym on strings with spaces just to duck-type and intern instead of sometimes. I'm not sure if that's the best way to make sure that what I'm getting can be interned because I want it to be, and still behave like a symbol or string.
_beechnut1 has quit [Ping timeout: 245 seconds]
<godd2> pipework well you can always roll your own Flywheel pattern
<eam> are there any string values which cannot become symbols?
anaeem1 has joined #ruby
<godd2> oops, flyweight pattern: http://en.wikipedia.org/wiki/Flyweight_pattern
djdarkbeat has joined #ruby
<godd2> eam not to my knowledge
<pipework> godd2: Will look.
<godd2> >> :""
<eval-in__> godd2 => :"" (https://eval.in/234093)
<shevy> godd2 the syntax is awful. plus I don't use keywords in ruby either
<godd2> shevy I was being silly haha
<shevy> nah you are using a lot of javascript
nateberkopec has joined #ruby
<shevy> so you have to like it
<shevy> imagine the opposite - you would write a lot of javascript but hate it
renderfu_ has joined #ruby
<godd2> I don't like javascript. but I like writing ruby code that works in the browser
renderful has quit [Read error: Connection reset by peer]
anaeem1 has quit [Remote host closed the connection]
<shevy> yeah
<shevy> how about XML
<shevy> :-)
<rpag> >> (1..1.0/0).each { |x| x.to_s.to_sym }
<eval-in__> rpag => /tmp/execpad-0e6720b71b92/source-0e6720b71b92:2: [BUG] object allocation during garbage collection phase ... (https://eval.in/234095)
<godd2> its not even turing complete!
vvivv has joined #ruby
bricker`1ork is now known as bricker`work
<eam> >> (0..255).to_a.pack("c*").to_sym
<eval-in__> eam => :"\x00\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\e\x1C\x1D\x1E\x1F !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrs ... (https://eval.in/234096)
<godd2> a = "a"; 1000000.times {a.succ!.to_sym} # this might work too, but I dont wanna be mean to eval-in__
tristanp has joined #ruby
aspires has joined #ruby
kenneth has quit [Ping timeout: 264 seconds]
<godd2> eam now you need to try every permutation of every possible set of chars
<shevy> actually the {} for .pdf generation in prawn is quite nice
craigp has quit [Read error: Connection reset by peer]
<shevy> indent(50) { text('yo') }
<shevy> start_new_page
lmickh has quit [Remote host closed the connection]
<shevy> text 'Test', :align => :center, :color => RED
<shevy> I understand my own tests!
craigp has joined #ruby
<pipework> godd2: If you can use that thing that runs ruby in the browser with phantomjs, you might have some win there.
kenneth has joined #ruby
anaeem1_ has joined #ruby
xymbol has joined #ruby
<wallerdev> yeah i think someone else linked an interesting article about it
<godd2> pipework it does, thats how I got opal-rspec working
<pipework> godd2: ooh neat.
tristanp has quit [Ping timeout: 245 seconds]
<wallerdev> why do so many sites seem to pester you with inline popups these days
<godd2> wallerdev I think you're referring to this blog post at omniref: http://omniref.com/blog/blog/2014/11/12/making-ruby-faster/
<godd2> lol at the tags
<wallerdev> yup
<wallerdev> lol
<wallerdev> didnt notice that
<godd2> I had to do a double take
Shazaum has quit [Quit: This computer has gone to sleep]
<wallerdev> beards are cool these days though, pretty soon neckbeards will be cool too :p
jakobhans has quit [Read error: Connection reset by peer]
<godd2> it's ironic that the Amish dont use computers
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
<wallerdev> is it really?
<aarwine> wallerdev: $$$$
<godd2> pipework did you see my pong demo? http://mulleronrails.com/game.html
_beechnut1 has joined #ruby
<wallerdev> no defender
<wallerdev> lol
<godd2> AI is just a detail :P
vroomanj_ has joined #ruby
<wallerdev> cool stuff tho
_beechnut2 has joined #ruby
_beechnut has quit [Ping timeout: 244 seconds]
rbennacer has quit [Ping timeout: 264 seconds]
anaeem1_ has quit [Remote host closed the connection]
_beechnut has joined #ruby
_beechnut1 has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
Vile` has quit [Ping timeout: 265 seconds]
_beechnut2 has quit [Ping timeout: 258 seconds]
<agent_white> "eval within a binding where everything is a proxy object"
<agent_white> What does this mean? :D
anaeem1_ has joined #ruby
<godd2> agent_white what's the context
<agent_white> taken from http://viewsourcecode.org/why/redhanded/inspect/lessMethod_missingInMarkaby.html#comments -- _why speaking about sandboxing ruby.
porfa has quit [*.net *.split]
Jackneill has quit [*.net *.split]
chrishough has quit [*.net *.split]
CustosL1men has quit [*.net *.split]
Areessell has quit [*.net *.split]
jcutrell has quit [*.net *.split]
sigurding has quit [*.net *.split]
ghostmoth has quit [*.net *.split]
oleo has quit [*.net *.split]
timonv^ has quit [*.net *.split]
speakingcode has quit [*.net *.split]
peterhu has quit [*.net *.split]
radic has quit [*.net *.split]
banister has quit [*.net *.split]
quarcu has quit [*.net *.split]
momomomomo has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
djbkd has quit [*.net *.split]
lw has quit [*.net *.split]
_mtr has quit [*.net *.split]
agent_white has quit [*.net *.split]
mikepack has quit [*.net *.split]
arrnas has quit [*.net *.split]
rippa has quit [*.net *.split]
icbm has quit [*.net *.split]
{xenomorph} has quit [*.net *.split]
eichenwald has quit [*.net *.split]
mbeasley has quit [*.net *.split]
rodfersou has quit [*.net *.split]
Deele has quit [*.net *.split]
eka_ has quit [*.net *.split]
lele has quit [*.net *.split]
bluehavana has quit [*.net *.split]
ujjain has quit [*.net *.split]
jeregrine has quit [*.net *.split]
mjc_ has quit [*.net *.split]
ta_ has quit [*.net *.split]
heftig has quit [*.net *.split]
WillAmes has quit [*.net *.split]
Mekkis has quit [*.net *.split]
hfp has quit [*.net *.split]
mozzarella has quit [*.net *.split]
yeticry has quit [*.net *.split]
G has quit [*.net *.split]
camilasan has quit [*.net *.split]
_cb1 has quit [*.net *.split]
deric_skibotn has quit [*.net *.split]
klmlfl has quit [*.net *.split]
jordsmi has quit [*.net *.split]
blasius has quit [*.net *.split]
bluenemo has quit [*.net *.split]
x1337807x has quit [*.net *.split]
troyready has quit [*.net *.split]
treehug88 has quit [*.net *.split]
jshultz has quit [*.net *.split]
Hanmac has quit [*.net *.split]
skrite has quit [*.net *.split]
dfas has quit [*.net *.split]
enebo has quit [*.net *.split]
kl has quit [*.net *.split]
AlSquire has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
Jelco has quit [*.net *.split]
Mongey has quit [*.net *.split]
ctp has quit [*.net *.split]
unclouded has quit [*.net *.split]
iceden has quit [*.net *.split]
arrubin has quit [*.net *.split]
realli has quit [*.net *.split]
ramblinpeck_ has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
aspires has quit [*.net *.split]
nateberkopec has quit [*.net *.split]
Soda has quit [*.net *.split]
sambao21 has quit [*.net *.split]
existensil has quit [*.net *.split]
Pupeno_ has quit [*.net *.split]
jaequery has quit [*.net *.split]
russt has quit [*.net *.split]
devoldmx has quit [*.net *.split]
yalue has quit [*.net *.split]
phutchins has quit [*.net *.split]
lifenoodles has quit [*.net *.split]
malcolmva has quit [*.net *.split]
philwantsfish has quit [*.net *.split]
gigetoo has quit [*.net *.split]
RealMarc has quit [*.net *.split]
justinmcp has quit [*.net *.split]
Fraeon has quit [*.net *.split]
DrCode has quit [*.net *.split]
havenwood has quit [*.net *.split]
St_Marx has quit [*.net *.split]
Sharker has quit [*.net *.split]
p0wn3d_mhs has quit [*.net *.split]
vvivv has quit [*.net *.split]
ndrei has quit [*.net *.split]
spacemud has quit [*.net *.split]
geggam has quit [*.net *.split]
pietr0 has quit [*.net *.split]
baroquebobcat has quit [*.net *.split]
aZaFred has quit [*.net *.split]
snath has quit [*.net *.split]
theotherstupidgu has quit [*.net *.split]
_br_ has quit [*.net *.split]
mistergibson has quit [*.net *.split]
mist has quit [*.net *.split]
tyll_ has quit [*.net *.split]
vieq_ has quit [*.net *.split]
sea_local has quit [*.net *.split]
codezomb has quit [*.net *.split]
wink_ndge has quit [*.net *.split]
M-Technic has quit [*.net *.split]
max96at has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
tier has quit [*.net *.split]
_maes_ has quit [*.net *.split]
AlbertoCG has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
jobewan has quit [*.net *.split]
whoisjake has quit [*.net *.split]
jerius has quit [*.net *.split]
droidburgundy has quit [*.net *.split]
tessi_zz has quit [*.net *.split]
keen___________0 has quit [*.net *.split]
codecop has quit [*.net *.split]
hfp_work has quit [*.net *.split]
blackgoat has quit [*.net *.split]
xymbol has quit [*.net *.split]
maletor has quit [*.net *.split]
Val__113 has quit [*.net *.split]
wallerdev has quit [*.net *.split]
dc has quit [*.net *.split]
Prometheian has quit [*.net *.split]
fmcgeough has quit [*.net *.split]
FDj has quit [*.net *.split]
it0a has quit [*.net *.split]
procat has quit [*.net *.split]
marr has quit [*.net *.split]
ddd_ has quit [*.net *.split]
Beoran_ has quit [*.net *.split]
greenbagels has quit [*.net *.split]
drkyro has quit [*.net *.split]
pwh has quit [*.net *.split]
Tarential has quit [*.net *.split]
livcd has quit [*.net *.split]
wjimenez5271 has quit [*.net *.split]
Megtastique has quit [*.net *.split]
Flcn has quit [*.net *.split]
damic has quit [*.net *.split]
Mothore has quit [*.net *.split]
josephndenton has quit [*.net *.split]
evanjs has quit [*.net *.split]
n1lo has quit [*.net *.split]
Sgeo has quit [*.net *.split]
nickjj has quit [*.net *.split]
ycodr has quit [*.net *.split]
ozzloy has quit [*.net *.split]
hellome has quit [*.net *.split]
shanlar has quit [*.net *.split]
_beechnut has quit [*.net *.split]
Photism has quit [*.net *.split]
sarmiena_ has quit [*.net *.split]
dfinninger has quit [*.net *.split]
bmichelsen has quit [*.net *.split]
triple_b has quit [*.net *.split]
michaeldeol has quit [*.net *.split]
doritostains has quit [*.net *.split]
Kabaka has quit [*.net *.split]
livingstn has quit [*.net *.split]
fgo has quit [*.net *.split]
razieliyo has quit [*.net *.split]
tzero has quit [*.net *.split]
cvtsx has quit [*.net *.split]
atomi has quit [*.net *.split]
unholycrab has quit [*.net *.split]
sarlalian has quit [*.net *.split]
hgl has quit [*.net *.split]
fella6s has quit [*.net *.split]
webguynow has quit [*.net *.split]
craigp has quit [*.net *.split]
renderfu_ has quit [*.net *.split]
kirun has quit [*.net *.split]
yetanotherdave has quit [*.net *.split]
Klumben has quit [*.net *.split]
DLSteve_ has quit [*.net *.split]
tjohnson has quit [*.net *.split]
diegoviola has quit [*.net *.split]
stunder has quit [*.net *.split]
studiotate has quit [*.net *.split]
davedev24_ has quit [*.net *.split]
eindoofus has quit [*.net *.split]
jlast has quit [*.net *.split]
atomical has quit [*.net *.split]
aclearman037 has quit [*.net *.split]
beef-wellington has quit [*.net *.split]
Mia has quit [*.net *.split]
musicmatze has quit [*.net *.split]
decoponio has quit [*.net *.split]
dts|pokeball has quit [*.net *.split]
JimmyNeutron has quit [*.net *.split]
s00pcan_ has quit [*.net *.split]
wldcordeiro_ has quit [*.net *.split]
kapil__ has quit [*.net *.split]
elvis452` has quit [*.net *.split]
frog|OFF has quit [*.net *.split]
andrewstewart has quit [*.net *.split]
shelling_ has quit [*.net *.split]
Lucky__ has quit [*.net *.split]
mjmac has quit [*.net *.split]
rockdon has quit [*.net *.split]
brandon_ has quit [*.net *.split]
_JokerDoom has quit [*.net *.split]
psmolen has quit [*.net *.split]
sfr^ has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
_5kg has quit [*.net *.split]
aarwine has quit [*.net *.split]
vroomanj_ has quit [*.net *.split]
ramfjord has quit [*.net *.split]
kish has quit [*.net *.split]
karmatr0n has quit [*.net *.split]
red_horned_rihno has quit [*.net *.split]
ringarin has quit [*.net *.split]
coderhs has quit [*.net *.split]
kamilc__ has quit [*.net *.split]
devdazed has quit [*.net *.split]
kobain has quit [*.net *.split]
spyderman4g63 has quit [*.net *.split]
adac has quit [*.net *.split]
jmdade has quit [*.net *.split]
CustosLimen has quit [*.net *.split]
aef_ has quit [*.net *.split]
ixti has quit [*.net *.split]
pandaant has quit [*.net *.split]
marens has quit [*.net *.split]
anaeem1_ has quit [*.net *.split]
_Andres has quit [*.net *.split]
jfran has quit [*.net *.split]
brasten has quit [*.net *.split]
valeriansaliou has quit [*.net *.split]
matled has quit [*.net *.split]
jnollette has quit [*.net *.split]
ereslibre has quit [*.net *.split]
Mattias has quit [*.net *.split]
electrical has quit [*.net *.split]
braincrash has quit [*.net *.split]
Cork has quit [*.net *.split]
kenneth has quit [*.net *.split]
djdarkbeat has quit [*.net *.split]
kalusn has quit [*.net *.split]
bahamas has quit [*.net *.split]
_mtr_ has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
Daniel__^_^ has quit [*.net *.split]
veduardo_ has quit [*.net *.split]
DivineEntity has quit [*.net *.split]
ylluminarious has quit [*.net *.split]
axilla has quit [*.net *.split]
nfk has quit [*.net *.split]
arclitgold has quit [*.net *.split]
asuka has quit [*.net *.split]
l3kn has quit [*.net *.split]
AugustoC has quit [*.net *.split]
Juanchito has quit [*.net *.split]
ChoiKyuSang has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
RoryHughes has quit [*.net *.split]
vcoinminer has quit [*.net *.split]
gener1c_ has quit [*.net *.split]
virtualize has quit [*.net *.split]
foundcat has quit [*.net *.split]
Miron has quit [*.net *.split]
KnownSyntax has quit [*.net *.split]
rikai has quit [*.net *.split]
tristanp has quit [*.net *.split]
mesamoo has quit [*.net *.split]
Stalkr_ has quit [*.net *.split]
sailias has quit [*.net *.split]
fandi has quit [*.net *.split]
godd2 has quit [*.net *.split]
larissa has quit [*.net *.split]
asmodlol has quit [*.net *.split]
Aova has quit [*.net *.split]
icedp has quit [*.net *.split]
aewffwea has quit [*.net *.split]
ton31337 has quit [*.net *.split]
echooo has quit [*.net *.split]
Fusl has quit [*.net *.split]
Crazy_Atheist has quit [*.net *.split]
xlii has quit [*.net *.split]
adeponte has quit [*.net *.split]
julieeharshaw has quit [*.net *.split]
susmus has quit [*.net *.split]
rubynewby has quit [*.net *.split]
laudo has quit [*.net *.split]
maasha has quit [*.net *.split]
graf_ has quit [*.net *.split]
bricker`work has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
econerd4ever has quit [*.net *.split]
allcentury has quit [*.net *.split]
rpag has quit [*.net *.split]
hornairs has quit [*.net *.split]
vinleod has quit [*.net *.split]
coreyfinley has quit [*.net *.split]
paulfm has quit [*.net *.split]
reinaldob has quit [*.net *.split]
HOS_nerv has quit [*.net *.split]
yokel has quit [*.net *.split]
robustus has quit [*.net *.split]
gf3 has quit [*.net *.split]
sindork has quit [*.net *.split]
codehotter has quit [*.net *.split]
bl4ckdu5t has quit [Max SendQ exceeded]
kevr has quit [Max SendQ exceeded]
bl4ckdu5t has joined #ruby
kevr has joined #ruby
_whitelogger has joined #ruby
<godd2> bahamas of course! if you want to know more about ruby's object model, I highly recommend Metaprogramming Ruby
<godd2> it's not as advanced of a book as it looks
samuel02 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
econerd4ever has joined #ruby
o0oo0o has quit [Ping timeout: 250 seconds]
<bahamas> godd2: thanks. for now I don't feel like diving too deep, but at least I know it exists. I don't know how far I'll go with ruby
Hobogrammer has joined #ruby
fabrice31 has joined #ruby
kish has joined #ruby
jeff-ooh has joined #ruby
lw has quit [Read error: Connection reset by peer]
rpag is now known as lol
<pipework> godd2: Mmm, I love that book. I suggest it to new people after the first books to just learn the language, and tell them to just read the first half to learn the object model because actual metaprogramming stuff shows up in the second half.
wjimenez5271 has quit [Remote host closed the connection]
sailias has joined #ruby
lol is now known as Guest95964
sambao21 has joined #ruby
wjimenez5271 has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
yfeldblu_ has joined #ruby
<pipework> I find it a little sad that not many resources teaching ruby teach the object model and leave it for 'metaprogramming' to explain this very important thing about ruby.
momomomomo has quit [Quit: momomomomo]
fmcgeough has quit [Quit: fmcgeough]
yfeldblu_ has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
rodfersou has quit [Quit: leaving]
kenneth has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lw has joined #ruby
axilla has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
kalusn has quit [Remote host closed the connection]
<agent_white> https://ruby-hacking-guide.github.io/ has been helpful to me for understanding it.
kenneth has joined #ruby
asmodlol has quit [Ping timeout: 245 seconds]
thumpba has joined #ruby
<shevy> pipework but ruby has so good docs!
<agent_white> :'(
<shevy> :)
<shevy> we are the ruby hive, we keep the doc in our collective brain
asmodlol has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
lw_ has joined #ruby
hmsimha has joined #ruby
_mtr__ has joined #ruby
lw__ has joined #ruby
Xeago has joined #ruby
Guest49178 is now known as ixx
valeriansaliou has quit [Quit: Be back later ...]
thumpba has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
Kricir has joined #ruby
<agent_white> Where is the right spot to rescue exceptions on object instantiation?
karmatr0n has quit [Read error: Connection reset by peer]
<agent_white> As in... if I have "@sock = TCPSocket.new 'asdf', 9999" in the initializer, where do I rescue the exception if the host/port is invalid?
<agent_white> "raise ArgumentError.new("That hostname or port is not valid") if Errno::ECONNREFUSED" err... soemthing? :D
lw_ has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
eichenwald has quit [Quit: WeeChat 1.0.1]
karmatr0n has joined #ruby
timonv^ has quit [Remote host closed the connection]
renier_ has quit [Quit: Textual IRC Client: www.textualapp.com]
renier has joined #ruby
<godd2> it would be raise ArgumentError, "some description of the error" if some_condition; end
Kricir has quit [Client Quit]
<godd2> minus the ; end
Xeago_ has joined #ruby
kenneth has quit [Ping timeout: 258 seconds]
jamesaxl has joined #ruby
arrnas has quit []
lw has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
thumpba has quit [Remote host closed the connection]
Hijiri has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
lektrik has joined #ruby
kenneth has joined #ruby
rkday has quit [Ping timeout: 240 seconds]
lw_ has joined #ruby
lw__ has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 260 seconds]
ohaibbq has joined #ruby
<agent_white> godd2: Something like this? https://gist.github.com/jakenotjacob/3e878d7316c10b3104d1
St_Marx has quit [Remote host closed the connection]
lw has quit [Ping timeout: 272 seconds]
larissa has quit [Quit: Leaving]
Pumukel has joined #ruby
ylluminarious has quit [Ping timeout: 272 seconds]
<agent_white> Actually... that still creates the object even if the socket is invalid.
<agent_white> :(
<godd2> agent_white well rescue only happens if the error specified is raised
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
<godd2> (or if no error is specified, then if *any* exception is raised)
karmatr0n has quit [Ping timeout: 255 seconds]
triple_b has joined #ruby
<agent_white> godd2: Well it happened, just not as I expected it to.
Mia has quit [Read error: Connection reset by peer]
<godd2> is TCPSocket a class of your creation?
<agent_white> Nopenope, just using the socket library.
chrishough has quit [Remote host closed the connection]
valeriansaliou has joined #ruby
n1lo has quit [Quit: Leaving]
chrishough has joined #ruby
* agent_white has never dabbled in exception handling
<godd2> and it raises SocketError?
<agent_white> "Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 1233"
<agent_white> But yes, it raised a SocketError
<agent_white> well wait
st0mar has joined #ruby
momomomomo has joined #ruby
<godd2> it doesnt raise a SocketError
<agent_white> godd2: I updated my gist https://gist.github.com/jakenotjacob/3e878d7316c10b3104d1
pietlif has joined #ruby
kl has joined #ruby
anaeem1_ has quit [Quit: Leaving...]
<agent_white> It raises a socketerror if the hostname is invalid
lkba has joined #ruby
agit0 has joined #ruby
<godd2> it raises Errno::ECONNREFUSED
anaeem1_ has joined #ruby
<godd2> you can chain rescues
valeriansaliou has quit [Ping timeout: 245 seconds]
<godd2> to deal with different exceptions
<agent_white> Oh sweet!
<agent_white> "rescue SocketError || Errno::ECONNREFUSED" ?
hydrozen has joined #ruby
Mia has joined #ruby
maletor_ has joined #ruby
olivier_bK has joined #ruby
CustosL1men has joined #ruby
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
kenneth has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
karmatr0n has joined #ruby
<agent_white> godd2: Ahhh rad, thanks!
ohaibbq has quit [Read error: Connection reset by peer]
shanlar has quit [Read error: Connection reset by peer]
<godd2> and if you say rescue SocketError => e
webguynow has quit [Ping timeout: 240 seconds]
xymbol_ has joined #ruby
shanlar has joined #ruby
maletor has quit [Ping timeout: 264 seconds]
<godd2> then inside the rescue block you have an object stored in e and you can ask for e.message
ohaibbq has joined #ruby
lw has joined #ruby
JBreit has joined #ruby
<agent_white> I was JUST about to ask :P Sweet!
endless_walrus has joined #ruby
webguynow has joined #ruby
cleopatra has joined #ruby
yfeldblum has joined #ruby
xymbol has quit [Ping timeout: 264 seconds]
lw__ has joined #ruby
jordsmi has quit [Quit: Connection closed for inactivity]
bahamas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
St_Marx has joined #ruby
lw_ has quit [Read error: Connection reset by peer]
lw_ has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
lw has quit [Ping timeout: 240 seconds]
studiotate has joined #ruby
lw__ has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
o0oo0o has joined #ruby
jcutrell has quit [Quit: jcutrell]
<agent_white> godd2: Good idea to move that logic out into a "post_init" method to keep the initializer tidy?
kevr has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
Flcn has quit [Read error: Connection reset by peer]
Hijiri has quit [Quit: WeeChat 1.0.1]
xymbol_ has quit [Quit: Be back later ...]
kedibasi has joined #ruby
<shevy> hmm I am going to bundle some addons to prawn
<shevy> into a gem
momomomomo has quit [Quit: momomomomo]
<shevy> now the question: should the name of the gem be rather prawn_addons or prawn-addons ? the distinction is _ vs - not the name
michaeldeol has joined #ruby
<Guest95964> should be -
<shevy> yeah it's interesting, most on https://rubygems.org/search?utf8=%E2%9C%93&query=prawn are -
econerd4ever has joined #ruby
maestrojed has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Jackneill has quit [Remote host closed the connection]
vvivv has quit [Remote host closed the connection]
vvivv has joined #ruby
ndrei has quit [Quit: Lost terminal]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
ringarin has quit [Ping timeout: 255 seconds]
duncannz has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
x1337807x has joined #ruby
reinaldob has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
tgandrews has joined #ruby
anaeem1_ has joined #ruby
Morkel has quit [Quit: Morkel]
<pipework> shevy: They're not too terrible, but the docs aren't guides.
jenrzzz has joined #ruby
<shevy> in python they are!
ndrei has joined #ruby
sailias has quit [Quit: Leaving.]
jeff-ooh has quit [Remote host closed the connection]
timonv_ has joined #ruby
evanjs has quit [Remote host closed the connection]
jimms has joined #ruby
s00pcan_ has quit [Quit: leaving]
s00pcan has joined #ruby
baweaver has joined #ruby
bluenemo has quit [Quit: Verlassend]
doritostains has quit [Quit: doritostains]
maxd has joined #ruby
<maxd> hi
<maxd> What is the shortest and most elegant way for printing boolean true as 1 and false as 0 (variable given)?
tristanp has quit [Remote host closed the connection]
<shevy> probably a hash
theotherstupidgu has quit [Quit: Lost terminal]
Hijiri has joined #ruby
rkday has joined #ruby
decoponio has quit [Quit: Leaving...]
<j2p2> puts bool ? 1 : 0
<j2p2> :p
<shevy> hehe
<shevy> >> bool = true; bool ? 1 : 0
<eval-in__> shevy => 1 (https://eval.in/234139)
<shevy> >> bool = false; bool ? 1 : 0
<eval-in__> shevy => 0 (https://eval.in/234140)
<shevy> tada maxd delivered to you by j2p2
sambao21 has joined #ruby
blasius has quit [Remote host closed the connection]
tristanp has joined #ruby
baweaver_ has joined #ruby
sk87 has joined #ruby
lw_ has quit [Read error: Connection reset by peer]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has quit [Ping timeout: 240 seconds]
lw has joined #ruby
doritostains has joined #ruby
<maxd> thanks
diegoviola has quit [Ping timeout: 258 seconds]
<maxd> And how can I wrap this in erb?
<maxd> puts bool ? 1 : 0
<maxd> <%= bool ? 1 : 0 %>
diegovio1 has joined #ruby
craigp has quit [Remote host closed the connection]
diegovio1 is now known as diegoviola
<j2p2> looks right
xymbol_ has joined #ruby
iamninja has joined #ruby
baweaver has joined #ruby
yfeldblum has joined #ruby
sk87 has quit [Client Quit]
baweaver_ has quit [Remote host closed the connection]
<shevy> yeah
<shevy> simply wrap the ugly erb tags before and after it
<shevy> it will return that result though
<shevy> j2p2's example used puts
sk87 has joined #ruby
ndrei has quit [Read error: No route to host]
ndrei has joined #ruby
tristanp has quit [Remote host closed the connection]
xymbol_ has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
claudio_ has joined #ruby
blasius has joined #ruby
<maxd> thanks
kedibasi has quit [Remote host closed the connection]
jimms has quit [Ping timeout: 272 seconds]
<claudio_> Someone using Capistrano?
adac has quit [Ping timeout: 255 seconds]
<agent_white> !ask
<agent_white> D:
<agent_white> claudio_: "Don't ask if anyone uses it. Just ask your question about it."
<jhass> there's #capistrano
jamgood96 has joined #ruby
tristanp has quit [Ping timeout: 245 seconds]
<agent_white> ^ better answer
treehug88 has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
craigp has joined #ruby
yalue has quit [Quit: return 0;]
jheg has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<claudio_> But Capistrano is developed in Ruby
<jhass> Linux is developed in C
<jhass> do you ask ##c for your linux questions?
sigurding has quit [Quit: sigurding]
<shevy> YES
<jhass> and do you want to be like shevy?
<shevy> YES!
duncannz has quit [Read error: Connection reset by peer]
<shevy> well actually
<shevy> I don't use capistrano
djbkd has quit [Remote host closed the connection]
<shevy> claudio_ I guess nobody here uses capistrano
codecop has quit [Remote host closed the connection]
<waxjar> capistrano sounds like an overpriced fancy coffee
<shevy> hehe
<shevy> how about chocolino
<claudio_> Sorry friend, but there is not exactly one espefico group for my doubts. here has programmers who know many things. I believe you can have someone you know here. I need to know if you need to change the Capifile file for use by capistrano with prestashop. if someone can answer me I thank.
sankaber has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
Megtastique has quit []
<shevy> don't give up the hope
hyperdrive has joined #ruby
momomomomo has joined #ruby
lw_ has joined #ruby
lw_ has quit [Client Quit]
paulfm has quit [Quit: Goodbye]
<havenwood> claudio_: #prestashop maybe
<havenwood> with a dash of #capistrano
davedev2_ has joined #ruby
lw_ has joined #ruby
Takle has joined #ruby
Kamuela has joined #ruby
<Kamuela> can someone explain the concept of backticks in this example for me? http://stackoverflow.com/questions/690151/getting-output-of-system-calls-in-ruby
Photism has quit [Quit: Leaving]
lw has quit [Ping timeout: 256 seconds]
blaines has joined #ruby
<jhass> what puzzles you about them?
davedev24_ has quit [Ping timeout: 258 seconds]
badhatter has joined #ruby
lw_ has quit [Client Quit]
<havenwood> s/2.1.1/2.1.5
yetanotherdave has quit [Quit: Lost terminal]
<frem> claudio_: isn't prestashop a PHP application? Why do you want to use a rakefile with it?
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<godd2> who's that one ruby contributor with long dark brown curly hair and a goatee?
tjohnson has quit [Quit: Connection closed for inactivity]
skrite has quit [Remote host closed the connection]
<Kamuela> havenwood: so it's a built-in way of accessing a shell?
bl4ckdu5t has joined #ruby
bl4ckdu5t is now known as Guest23657
spyderman4g63 has quit []
geilt has joined #ruby
pika_pika has joined #ruby
<waxjar> godd2: avdii grim?
boombadaroomba has joined #ruby
<eam> godd2: "one"
<havenwood> Kamuela: here's a bit of reading: http://tech.natemurray.com/2007/03/ruby-shell-commands.html
L8D has joined #ruby
<godd2> waxjar yes!
lolmaus has joined #ruby
<L8D> Are Macbooks just the best laptops for Ruby developers these days?
Xeago_ has quit [Remote host closed the connection]
<L8D> or am I missing out on something?
diegoviola has quit [Ping timeout: 244 seconds]
ramfjord has quit [Read error: Connection reset by peer]
<jhass> the only ruby thing that's mac only that I'm aware of is pow
<jhass> so I'd say no
<godd2> agent_white when you have 30 minutes, here's a great talk on incorporating exception handling into your code: https://www.youtube.com/watch?v=T8J0j2xJFgQ
<L8D> pow?
<L8D> No I mean Macbooks have good displays, keyboards and OS X is unix
<jhass> and?
<jhass> none of that is exclusive to them
<L8D> and hardware-wise they're really good for development. And OS X is incredibly common in the ruby world
fabrice31 has joined #ruby
<jhass> I always wondered what makes hardware "really good for development"
<jhass> what properties are that? and why?
<L8D> it's a combination of the fact that OS X is popular, and the hardware is good
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lessless has joined #ruby
<jhass> Linux is popular on servers
<eam> jhass: cpu support for VT-x?
BTRE has quit [Quit: Leaving]
<L8D> jhass: there's no stupid shit going and no proprietary hard-to-get-to stuff underneath
<L8D> going on*
allcentury has quit [Ping timeout: 250 seconds]
<jhass> lol
<eam> L8D: apple isn't a good choice if you don't want hard-to-get-to stuff underneath
sk87 has joined #ruby
<L8D> eam: not phsyically
<jhass> I'd say apple stuff is exactly that
<waxjar> you're all biting :P
<eam> waxjar: it's delicious
<L8D> physically*
sankaber has quit [Ping timeout: 256 seconds]
<jhass> anyway, I see no reason for that $100-$200 extra, but it's your choice
<L8D> $100-$200 extra of what?
<jhass> compared to other vendors for the same hardware
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
Hijiri has quit [Ping timeout: 245 seconds]
<L8D> like what other vendors?
<eam> alienware
<wallerdev> alienware lol
<jhass> anything really
mjuszczak has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
<havenwood> L8D: sure. get a rMBP, they're lovely.
diegoviola has joined #ruby
iamninja has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 256 seconds]
<L8D> alienware has a bunch of overpriced shit gaming laptops
<L8D> according to amazon
<frem> The Apple Tax (tm) mostly applies if you're buying a high specced machine. Otherwise, no, the price is pretty similar to other machines with the same grade of components in them.
aclearman037 has quit [Quit: I'm out!]
iamninja has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
<frem> At least, that's what it looked like a year ago when I priced things out.
<wallerdev> yeah apple makes good quality laptops
yetanotherdave has joined #ruby
<wallerdev> but any laptop that runs linux or os x is great for ruby development
<wallerdev> only thing i wouldnt recommend is windows for ruby dev
<frem> I started ruby dev on windows. it's not that bad if you get a nice vagrant setup going.
<L8D> $900 for a 13 inch retina display, weighing like 2 pounds and a clean+usable keyboard and trackpad
<wallerdev> if youre running vagrant youre basically doing your ruby dev in linux arent you lol
<L8D> are there cheaper laptops that probide those features?
tejas-manohar has joined #ruby
<pipework> I like using vagrant via boot2docker and do my development inside docker.
<pipework> Faster stuff to work with.
<eam> well, not all portable computers are good for ruby development. I wouldn't recommend attempting it on a Compaq Portable II for example
kish has quit [Read error: Connection reset by peer]
kish has joined #ruby
<wallerdev> "portable" lol
<havenwood> L8D: you could pay a couple hundred bucks more for a Chromebook Pixel :P https://www.google.com/chrome/devices/google-chromebook-pixel/
djbkd has joined #ruby
<eam> I think ruby won't even run on a 286, it requires 32bit protected mode at a minimum
<eam> the Portable III ought to work ok though
<jhass> http://puri.sm/ looks interesting I guess
baweaver has quit [Remote host closed the connection]
<jhass> though a bit high on the price
brasten has quit [Quit: brasten]
<jhass> although I find it understandable at that production scale
kish has quit [Changing host]
kish has joined #ruby
ramfjord has joined #ruby
<eam> "no proprietary software applications required to operate this computer" <-- that must be a lie
<jhass> it's a best effort
wjimenez_ has joined #ruby
pandaant has quit [Remote host closed the connection]
<jhass> sort of like the fairphone
<havenwood> FSF certified: http://shop.gluglug.org.uk
<pipework> Actually, it's true. They aren't required.
<pipework> They're optional and probably shipped with the system though...
<jhass> they aim for that, but you can only so far
<eam> pipework: it ships with an nvidia card
<pipework> I wonder if firmware is software to them.
<havenwood> ^ and totoally out of stock >.>
<pipework> eam: Hardware is not software.
<jhass> pipework: it is
<eam> so sure, you can like not use the hardware you bought
sea_local has quit [Remote host closed the connection]
<eam> pipework: yeah but you can't use the gpu without binary blob drivers
<eam> (use properly)
<pipework> eam: Yes you can.
<eam> nuh huh
lektrik has quit [Quit: Leaving]
<pipework> It's not required to use the proprietary ones though.
<pipework> There's open source but not awesome drivers for nvidia.
hornairs has quit [Quit: hornairs]
lolmaus has quit [Ping timeout: 240 seconds]
<eam> pipework: I said gpu, not "can display non accelerated video"
Dopagod has quit [Ping timeout: 250 seconds]
wjimenez5271 has quit [Ping timeout: 258 seconds]
lemur has joined #ruby
<pipework> eam: I wonder if you're upset that it probably ships with those proprietary bits, when I see that they're saying that they aren't required for the computer to be used.
<pipework> It's like saying something's optional, but there.
<eam> pipework: I wonder why you think anyone's upset. Are you?
<zenspider> no! emacs!!!
<eam> zenspider: emacs will run great on the Portable III
<zenspider> or we could talk about... I dunno... ruby
<havenwood> The One True Editor.
<pipework> eam: You're not unhappy, disappointed, or worried?
<eam> (assuming you like, configure swap)
<pipework> You sound disappointed or unhappy about the claim.
maxd has left #ruby [#ruby]
reinaldob has joined #ruby
<eam> pipework: merely observing it as false
<zenspider> eam: dude. the portable was fantastic. at the time.
<pipework> eam: I don't think it is false.
<eam> zenspider: yeah I learned to program on the II
_mtr__ has quit [Ping timeout: 245 seconds]
<eam> not using ruby, naturally
<havenwood> So i see no mruby running on that BIOS...
<zenspider> and my powerbook 160 got me through college. mmmmm grayscale. I could push that machine
<jhass> and nvidia is actually actively releasing internal docs to the nouvou guys btw
_mtr has quit [Ping timeout: 260 seconds]
<eam> jhass: I'm optimistic :)
craigp has quit [Remote host closed the connection]
<Kamuela> reading
_mtr_ has quit [Ping timeout: 272 seconds]
<zenspider> and all of this talk is exactly why I use a mac.
* zenspider goes back to actually writing software
<eam> the minimum spec for ruby dev is actually somewhat interesting
<eam> a rpi would totally be adequate
tvw has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
<havenwood> eam: or a sports car like the BeagleBone Black
<havenwood> live a little!
wjimenez_ is now known as wjimenez5271
reinaldob has quit [Ping timeout: 244 seconds]
DonOtreply has joined #ruby
<eam> man that's like double the price, what am I made out of money
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lw has joined #ruby
mary5030 has quit [Remote host closed the connection]
lw has quit [Max SendQ exceeded]
BTRE has joined #ruby
mary5030 has joined #ruby
lw has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
baweaver has joined #ruby
<dts|pokeball> is there a ruby eval bot?
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> dts|pokeball: For testing things out or demonstration?
<dts|pokeball> uhhh either works tbh
<pipework> It's for demonstration, but yeah.
<pipework> >> :hi
<eval-in__> pipework => :hi (https://eval.in/234144)
<shevy> hmm when you guys are given something like "50 years"
mary5030 has quit [Ping timeout: 265 seconds]
<pipework> shevy: For what?
<jhass> dts|pokeball: meaning only use it for demonstration please
<shevy> without any more info... and you want to calculate the amount of days... do you include the flip years, or treat every year the same?
<dts|pokeball> who wrote it?
<shevy> "leap year"
<pipework> shevy: Depends on whether they mean calendar years or conceptual years.
L8D has left #ruby [#ruby]
<shevy> pipework hmm
<eam> shevy: 50 years at what era of time?
<pipework> 50 years in what timezone?
<shevy> present time!
<dts|pokeball> eval-in__ -h
<eam> do you want whole days or fractional days?
<havenwood> dts|pokeball: charliesome
<dts|pokeball> ty
<shevy> eam actually I must convert it into seconds eventually
davedev24_ has joined #ruby
<eam> shevy: so the reason I ask is that you actually can't do it with seconds granularity
<eam> at least not if you're using conventional solar time
<eam> you'd have to switch to TAI (and avoid pretty much every ruby time object)
valeriansaliou has joined #ruby
davedev__ has joined #ruby
<eam> unless you're OK with being some number of seconds off
<eam> like maybe up to two minutes
davedev2_ has quit [Ping timeout: 258 seconds]
<shevy> hmmmmmmmmmmmm
<dts|pokeball> havenwood, this guy? https://github.com/charliesome?tab=repositories
<jhass> maybe it's time shevy explains what he's actually needing that for ;)
<havenwood> dts|pokeball: yup
<icbm> shevy: Exact number depends on crazy lots of things. For an estimate just do 50 * 365.25 and round it.
<dts|pokeball> ty
<eam> what could possibly happen in 50 years
<jhass> two world wars?
<eam> time might end, you never know
kapil__ has quit [Quit: Connection closed for inactivity]
<shevy> icbm hmm yeah that seems at least simple
<pipework> Also, you'll have to nail down exactly how this time measurement has to work, because sometimes timezones change stuff and so their year on the calendar is different in calculation across the before and after change.
<eam> prepend every string representation of time with "like "
chrishough has joined #ruby
CpuID has joined #ruby
doritostains has quit [Quit: doritostains]
<pipework> 'approximately`
<zenspider> 365.242
davedev24_ has quit [Ping timeout: 258 seconds]
<wallerdev> honestly it all depends if an asteroid hits us or not
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
aswen has joined #ruby
<wallerdev> imagine how many calendars would have to change if that happened
tier has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 265 seconds]
Megtastique has joined #ruby
<icbm> Exact number of seconds: you'll need as inputs the calendar system (e.g. gregorian), a start date and time, a geopolitical location, the time-zone rules for that location, and a list of leap seconds.
Megtastique has quit [Max SendQ exceeded]
<zenspider> if we have a calendar changing event, we won't have calendars
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
* pipework would consider the use of tzinfo
Megtastique has joined #ruby
<zenspider> icbm: geopolitical _time_ and location. they change over time.
klmlfl has quit [Remote host closed the connection]
jerius has quit []
sk87 has joined #ruby
CpuID has quit [Client Quit]
<eam> problem with future times is we can't know how we'll represent time at that time
Kamuela has quit [Remote host closed the connection]
<eam> TAI++
<eam> but even TAI is defined by the space-time location of present day earth
lolmaus has joined #ruby
baweaver has quit [Remote host closed the connection]
<eam> can you imagine being a satellite with a 30 year mission and having to translate between time skew caused by earthquakes on a planet a million miles away
<wallerdev> ooh have you guys seen interstellar
<wallerdev> it deals with time stuff
jheg has quit [Quit: jheg]
<godd2> how much research has been done on the time dilation experienced by getting into a programming zone?
Soda has quit [Remote host closed the connection]
kenneth has joined #ruby
jakobhans has joined #ruby
<pipework> godd2: See Ballmer Peak
charliesome has joined #ruby
jakobhans has quit [Client Quit]
enebo has quit [Quit: enebo]
tgandrews has quit [Quit: This computer has gone to sleep]
<godd2> haha maybe that's just time dilation due to inebriation
Xiti` has joined #ruby
econerd4ever has quit [Remote host closed the connection]
rylev has joined #ruby
econerd4ever has joined #ruby
tejas-manohar has quit [Ping timeout: 246 seconds]
Xiti has quit [Ping timeout: 245 seconds]
doritostains has joined #ruby
timonv_ has quit [Remote host closed the connection]
aspires has quit []
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
geiltalasdair has joined #ruby
chrishough has joined #ruby
econerd4ever has quit [Ping timeout: 265 seconds]
valeriansaliou has joined #ruby
illium has joined #ruby
Xiti` has quit [Quit: Xiti`]
chrishough has quit [Client Quit]
chrishough has joined #ruby
rylev has quit [Ping timeout: 255 seconds]
max96at is now known as max96at|off
aspires has joined #ruby
CrazyM4n has joined #ruby
geilt has quit [Ping timeout: 244 seconds]
livingstn has quit []
wolf4ood has joined #ruby
econerd4ever has joined #ruby
<wolf4ood> hi all
TgMts has joined #ruby
Xiti has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
_beechnut has quit [Ping timeout: 245 seconds]
gsd has joined #ruby
<shevy> omg
samuel02 has quit [Remote host closed the connection]
<shevy> today I understood why .floor is called that way and why .ceil is called that other way
mjuszczak has quit []
it0a has quit [Ping timeout: 264 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
baweaver has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
valeriansaliou has quit [Quit: Be back later ...]
valeriansaliou has joined #ruby
wolf4ood has quit [Ping timeout: 244 seconds]
Azure has joined #ruby
phutchins has joined #ruby
valeriansaliou has quit [Ping timeout: 244 seconds]
Hijiri has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Vile` has quit [Ping timeout: 265 seconds]
eindoofus has quit [Ping timeout: 258 seconds]
jamgood9_ has joined #ruby
rkday has quit [Quit: Leaving]
blaines has quit [Quit: Textual IRC Client: www.textualapp.com]
Vile` has joined #ruby
workmad3 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
aswen has quit [Ping timeout: 245 seconds]
olekenneth has quit [Ping timeout: 245 seconds]
sk87 has joined #ruby
jamgood9_ has quit [Remote host closed the connection]
jamgood96 has quit [Read error: Connection reset by peer]
jamgood96 has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
tejas-manohar has joined #ruby
olekenneth has joined #ruby
badhatter has joined #ruby
snath has quit [Ping timeout: 264 seconds]
<j2p2> ...lol
djbkd has quit [Remote host closed the connection]
maxd has joined #ruby
<maxd> <% elsif @value.kind_of?(Boolean) -%>
<maxd> it fails
<maxd> it doesn't know Boolean
<j2p2> !!@value == @value
<j2p2> hacky but works
<pipework> maxd: There isn't a boolean class. You should depend on truthiness.
djbkd has joined #ruby
<pipework> Can you show more of the code around it?
<maxd> pipework: that is already the whole code snippet
<maxd> pipework: so I use this !! thing, alright
<shevy> pipework wants to see at the sexy characters around the code
<maxd> I just want it being short
TgMts has quit [Ping timeout: 244 seconds]
<maxd> lol :D
<j2p2> yeah
<j2p2> >> @value = true; !!@value == @value
<eval-in__> j2p2 => true (https://eval.in/234158)
<j2p2> >> @value = 10; !!@value == @value
<eval-in__> j2p2 => false (https://eval.in/234159)
<pipework> maxd: It can't be, because you can't have an elsif without an if.
<maxd> pipework: aha
<maxd> pipework: yes, an if is also there
<maxd> hehe
<maxd> thanks
treehug88 has joined #ruby
<pipework> Ooh, meeting.
brasten has joined #ruby
momomomomo has quit [Ping timeout: 250 seconds]
konsolebox has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has joined #ruby
kenneth has joined #ruby
lw_ has joined #ruby
lw has quit [Read error: Connection reset by peer]
snath has joined #ruby
rak_ has joined #ruby
rak_ has left #ruby [#ruby]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
momomomomo has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
wolf4ood has joined #ruby
<wolf4ood> how can i prevent to a Fixnum to be automatically promoted to Bignum when shifted?
<wolf4ood> like this (10 << 63)
<wallerdev> what would you prefer
<wolf4ood> to have a fixed type
Pupeno_ has quit [Read error: Connection reset by peer]
<wolf4ood> like java long
<wolf4ood> 64 bits
Pupeno has joined #ruby
dfinninger has quit [Remote host closed the connection]
<wallerdev> i guess you could use & instead
<wallerdev> not sure
doritostains has quit [Quit: doritostains]
mjuszczak has joined #ruby
<zenspider> minitest version 5.5.0 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2014/12/minitest-version-5-5-0-has-been-released.html
<jaequery> what ar some alternatives to sinatra?
yetanotherdave has quit [Quit: Lost terminal]
<jaequery> ive looked at padrino but their irc channel looks pretty much dead
<zenspider> rails!
<zenspider> haha
mjuszczak has quit [Client Quit]
<zenspider> so what if the irc channel is "pretty much" dead?
<zenspider> doesn't really mean a thing about the software
Guest95964 is now known as jesuschrist
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev> express is an alternative if you like javascript
Megtastique has quit []
<wallerdev> or PHP
jesuschrist is now known as Guest4013
doritostains has joined #ruby
mjuszczak has joined #ruby
IrishGringo has joined #ruby
maasha has quit [Quit: Page closed]
aspires has quit []
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<bricker`work> test test
<bricker`work> >> puts "test"
<eval-in__> bricker`work => test ... (https://eval.in/234160)
tejas-manohar_ has joined #ruby
Guest4013 is now known as gandhi
tejas-manohar_ has quit [Client Quit]
<bricker`work> I'm seeing a discrepency between JRuby and MRI in OpenSSL::Cipher, has anybody experienced this before?
karmatr0n has quit [Ping timeout: 255 seconds]
tejas-manohar has quit [Ping timeout: 246 seconds]
kenneth has joined #ruby
sk87 has joined #ruby
<bricker`work> The encrypted value is slightly different between the two, it looks like #final is returning extra stuff in JRuby.
<godd2> >> puts = 4; puts puts
<eval-in__> godd2 => 4 ... (https://eval.in/234161)
kiyote23 has joined #ruby
wolf4ood has quit [Quit: (null)]
Mothore has quit [Quit: Be back later ...]
yetanotherdave has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Inoperable has joined #ruby
Inoperable has left #ruby ["Rectified"]
timonv_ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
valeriansaliou has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Client Quit]
Inoperable has joined #ruby
jamgood96 has quit [Quit: Leaving...]
diegoviola has quit [Ping timeout: 250 seconds]
diegovio1 has joined #ruby
djbkd has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
fabrice31 has joined #ruby
treehug88 has quit []
Takle has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 265 seconds]
bmichelsen has joined #ruby
Takle has joined #ruby
mikepack has quit [Remote host closed the connection]
karmatr0n has joined #ruby
Megtastique has joined #ruby
bmichelsen has quit [Client Quit]
IrishGringo has quit [Ping timeout: 265 seconds]
Synthead has quit [Remote host closed the connection]
djbkd has joined #ruby
jobewan has quit [Quit: Leaving]
sankaber has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
samuel02 has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ebbflowgo has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
illium has quit [Quit: illium]
ebbflowgo has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 250 seconds]
ebbflowgo has joined #ruby
apeiros_ has joined #ruby
doritostains has quit [Quit: doritostains]
mloveless has joined #ruby
Takle has joined #ruby
Soda has joined #ruby
IrishGringo has joined #ruby
lw_ has quit [Quit: s]
matchaw has quit [Ping timeout: 265 seconds]
TgMts has joined #ruby
diegovio1 is now known as diegoviola
phutchins has quit [Ping timeout: 245 seconds]
devdazed has quit [Quit: Bye]
Takle has quit [Ping timeout: 260 seconds]
yetanotherdave has quit [Quit: Lost terminal]
renderful has quit [Remote host closed the connection]
tejas-manohar has joined #ruby
momomomomo has quit [Quit: momomomomo]
<tejas-manohar> yo
econerd4ever has quit [Remote host closed the connection]
<tejas-manohar> i haven't been able to find out how to get the body of a message w./ https://github.com/dcparker/ruby-gmail
<tejas-manohar> i found gmail.inbox.emails(:unread, :after => Date.today.prev_day)[0]
<tejas-manohar> but idk what property to put on it to get the body of the email
econerd4ever has joined #ruby