jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
drex has quit [Quit: leaving]
symm- has quit [Ping timeout: 272 seconds]
mesamoo has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 240 seconds]
jaguarmagenta has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
dc4 has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
<lupine> sure, ruby isn't sane enough to stop you
roamingdog has joined #ruby
rkazak has joined #ruby
<Illya> I was having some problems, but it was because I was putting it a module block, not sure why I was doing that. It's all fixed now though
<lupine> personally, I would avoid monkey-patching ::String, but that's a design thing
Oclair has joined #ruby
yfeldblum has quit [Remote host closed the connection]
ghr has joined #ruby
<Illya> yeah, I know it's an awful solution, but it's for one-use scripts (famous last words)
ftj has joined #ruby
roamingdog has quit [Ping timeout: 252 seconds]
felltir has quit [Remote host closed the connection]
macsteps has quit [Remote host closed the connection]
coffeecupp has quit [Quit: Lost terminal]
macsteps has joined #ruby
millerti has joined #ruby
millerti has quit [Client Quit]
dsaur has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
macsteps has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
rbennacer has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
millerti has joined #ruby
ghr has joined #ruby
astrobunny has quit [Ping timeout: 250 seconds]
aibot has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 240 seconds]
vdamewood has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
<darix> Illya: you publish it as a gem....
agentmeerkat has joined #ruby
spudowiar has joined #ruby
toretore has quit [Ping timeout: 260 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
yfeldblum has joined #ruby
agentmeerkat has quit [Ping timeout: 276 seconds]
cd-rum has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
`tim` has joined #ruby
carella has joined #ruby
ghr has joined #ruby
carella has quit [Ping timeout: 264 seconds]
bnjf has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 240 seconds]
bnjf has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
ghr has joined #ruby
wnd has quit [Excess Flood]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wnd has joined #ruby
JeanCarloMachado has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
solocshaw has joined #ruby
Rasi has quit [Quit: WeeChat 1.5]
Rasi has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
ur5us has joined #ruby
ghr has joined #ruby
aibot has joined #ruby
solocshaw has quit [Ping timeout: 258 seconds]
JeanCarloMachado has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
allcentury has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 240 seconds]
l4v2 has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
astrobunny has joined #ruby
JeanCarloMachado has quit [Ping timeout: 272 seconds]
nando293921 has joined #ruby
nando293921 has quit [Client Quit]
ghr has joined #ruby
nando293921 has joined #ruby
astrobunny has quit [Ping timeout: 244 seconds]
aryaching_ has quit [Remote host closed the connection]
pragmatism has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
dsaur has quit [Ping timeout: 272 seconds]
Arcaire has left #ruby [#ruby]
agentmeerkat has joined #ruby
ghr has joined #ruby
ekinmur has joined #ruby
agentmeerkat has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
n1x-nz has joined #ruby
ghr has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 276 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
arnonhongklay has joined #ruby
isberg has joined #ruby
ghr has joined #ruby
coffeecupp has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
isberg has quit [Client Quit]
opus has joined #ruby
opus is now known as Guest72374
jaguarmagenta has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 240 seconds]
Guest72374 has quit [Client Quit]
arnonhongklay has quit [Ping timeout: 276 seconds]
arnonhongklay has joined #ruby
wnd has quit [Excess Flood]
pawnbox has quit [Remote host closed the connection]
kent\n has quit [Quit: No Ping reply in 180 seconds.]
wnd has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
kent\n has joined #ruby
kent\n has joined #ruby
kent\n has quit [Changing host]
ghr has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
dsaur has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
coffeecupp has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
ghr has joined #ruby
dsaur has quit [Ping timeout: 276 seconds]
ghr has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
arnonhongklay has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
coffeecupp has joined #ruby
coffeecupp has quit [Client Quit]
coffeecupp has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
arnonhongklay has joined #ruby
enterprisey has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
spudowiar has quit [Quit: Leaving.]
dsaur has joined #ruby
ghr has joined #ruby
agentmeerkat has joined #ruby
nando293921 has quit [Quit: Lost terminal]
Danny_ has joined #ruby
nando293921 has joined #ruby
nando293921 has quit [Client Quit]
ghr has quit [Ping timeout: 240 seconds]
IggyGee has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
TheWhip has quit [Remote host closed the connection]
agentmeerkat has quit [Ping timeout: 276 seconds]
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
ghr has joined #ruby
carella has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
pontiki has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
carella has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
dsaur has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
TheWhip has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
ghr has joined #ruby
LoneHerm_ has joined #ruby
bkxd has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
pawnbox has joined #ruby
jaguarmagenta has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
gix has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
ghr has joined #ruby
xcesariox has joined #ruby
LoneHerm_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
gix has joined #ruby
Danny_ has quit []
xcesariox has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
xall has joined #ruby
Kerea has quit [Quit: leaving]
astrobunny has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
ghr has joined #ruby
alfiemax has quit [Ping timeout: 258 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
davedev2_ has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
ghr has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agentmeerkat has joined #ruby
bkxd has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
agentmeerkat has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Remote host closed the connection]
alfiemax has joined #ruby
ghr has joined #ruby
dsaur has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
harfangk has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
mistermocha has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
mistermocha has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
dionysus69 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
roamingdog has quit []
wldcordeiro has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
wldcordeiro has joined #ruby
matp has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
ghr has joined #ruby
hk238 has joined #ruby
alfiemax has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
dsaur has quit [Ping timeout: 252 seconds]
zenlot has quit [Ping timeout: 252 seconds]
zenlot has joined #ruby
elifoster has quit [Quit: out]
jaguarmagenta has joined #ruby
c0mrad3 has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
ghr has joined #ruby
arnonhongklay has joined #ruby
Robtop__ is now known as pwnd_nsfw
ghr has quit [Ping timeout: 240 seconds]
dsaur has joined #ruby
l4v2 has quit [Quit: l4v2]
coffeecupp has quit [Quit: Lost terminal]
astrobunny has joined #ruby
ghr has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Quit: dionysus69]
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
dionysus69 has joined #ruby
astrobunny has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 240 seconds]
xcyclist has joined #ruby
agentmeerkat has joined #ruby
ghr has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
ghr has quit [Ping timeout: 240 seconds]
agentmeerkat has quit [Ping timeout: 240 seconds]
carella has joined #ruby
ftj has joined #ruby
ghr has joined #ruby
greenhat_ has quit [Quit: ZNC - http://znc.in]
n1xnz has joined #ruby
carella has quit [Ping timeout: 264 seconds]
harfangk has quit [Quit: harfangk]
ghr has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
<shevy> hmmm ... if you have to work with frozen strings, and need to e. g. append to it, what would you rather use? the +'foo' variant or .dup ? or some other way?
n1x-nz has quit [Ping timeout: 250 seconds]
<pwnd_nsfw> shevy, +..
<pwnd_nsfw> What's your situation though?
<pwnd_nsfw> I don't understand, seems like a trivial question
ghr has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
<shevy> in general
dragon9783 has joined #ruby
arnonhon_ has joined #ruby
<pwnd_nsfw> ofc strings are immutable, but yeah, I'd just +
<pwnd_nsfw> or string interpolation
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
arnonhongklay has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
ghr has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
Mattx has joined #ruby
<Mattx> Hey people!
yfeldblu_ has quit [Remote host closed the connection]
<pwnd_nsfw> yooo
<Mattx> I want to combine a hash like this {:a=>[5, 10, 15], :b=>["open", "close"]}
<Mattx> and get something like this [{:a=>5, :b=>"open"}, {:a=>5, :b=>"close"}, {:a=>10, :b=>"open"}, {:a=>10, :b=>"close"}, {:a=>15, :b=>"open"}, {:a=>15, :b=>"close"}]
yfeldblum has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<Mattx> Is there any built in function for that? I'm looking for an elegant and quick solution, since you know the output could be huge depending on the input
<Mattx> just in case, I don't know the length of the input, there could be more keys or the arrays could be larger
<pwnd_nsfw> both arrays are of variable length?
<Mattx> yep, everything is of variable length
<pwnd_nsfw> Couldn't you just use map
<pwnd_nsfw> nested maps
<pwnd_nsfw> or
<pwnd_nsfw> even
<pwnd_nsfw> Well,.... yeah, map
<pwnd_nsfw> Or, since I'm shit programmer
<pwnd_nsfw> each
<Mattx> I'm thinking about doing it recursively
ghr has joined #ruby
<shevy> pwnd_nsfw hmm good idea, I have not thought about #{}
gareeoliz has joined #ruby
astrobunny has joined #ruby
<Mattx> [4] pry(main)> [1,2,3].product [4,5,6]
<Mattx> => [[1, 4], [1, 5], [1, 6], [2, 4], [2, 5], [2, 6], [3, 4], [3, 5], [3, 6]]
<Mattx> that's cool!
UnKnOwN| has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 240 seconds]
<pwnd_nsfw> Nice Mattx
arnonhon_ has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
ruby-lang561 has joined #ruby
PaulCapestany has joined #ruby
<ruby-lang561> hi
<ruby-lang561> what is an eager class?
ruby-lang561 has quit [Client Quit]
mistermocha has quit [Remote host closed the connection]
<pwnd_nsfw> One that just CANT wait
wuyin has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 252 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
PaulCape_ has quit [Ping timeout: 244 seconds]
bernardofire has joined #ruby
mistermocha has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ghr has joined #ruby
bernardofire has quit [Client Quit]
mistermocha has quit [Remote host closed the connection]
wuyin has joined #ruby
<shevy> lol
ghr has quit [Ping timeout: 240 seconds]
agentmeerkat has joined #ruby
phrozen77 has joined #ruby
ghr has joined #ruby
agentmeerkat has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
mtkd has joined #ruby
mp19uy has joined #ruby
<mp19uy> Hello, I'm new to ruby and I'm trying to understand what does this code do: https://gist.github.com/mp19uy/63f30f6fa8e3cfde68f470d31d588a16
chopin has joined #ruby
chopin is now known as Guest58829
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
<mp19uy> I don't get why there is a hash right before the line: path=File.join(filename), maybe it doesn't do anything
aries_liuxueyang has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<mp19uy> That gist come from this ruby script: https://github.com/jglovier/gifs/blob/gh-pages/script/build_site_index
rkazak has joined #ruby
Azure|dc has joined #ruby
PaulCape_ has joined #ruby
bkxd has joined #ruby
<mp19uy> I understand almost everthing on it, but I can't crack what that specific part does. Looking at the different version of the file in the github repo, I figured out is has something to do with YAML because that specific piece of code was added alongside "require ''yaml'"
Azure has quit [Ping timeout: 250 seconds]
mp19uy has quit [Quit: mp19uy]
ghr has joined #ruby
mp19uy has joined #ruby
PaulCapestany has quit [Ping timeout: 250 seconds]
<shevy> that hash is returned from the method
bkxd has quit [Ping timeout: 250 seconds]
<mp19uy> ohhh, great!
<mp19uy> thanks shevy
ghr has quit [Ping timeout: 240 seconds]
<mp19uy> is possible that the first parameter of that method (dir( isn't used at all?
<mp19uy> (that would be my second question)
<mp19uy> or it is used in some indirect way?
Guest58829 has quit [Ping timeout: 276 seconds]
<shevy> yeah
<shevy> if that really is the method
<shevy> then there is no point to mandate input of an argument that is not used within the method
ghr has joined #ruby
<mp19uy> thanks for the help
dsaur has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
mp19uy has left #ruby [#ruby]
bkxd has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
ghr has joined #ruby
DevMagpie has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 240 seconds]
jaguarmagenta has quit [Remote host closed the connection]
arnonhongklay has joined #ruby
arnonhongklay has quit [Client Quit]
DevMagpie has quit [Client Quit]
DevMagpie has joined #ruby
PaulCapestany has joined #ruby
jaguarmagenta has joined #ruby
dsaur has joined #ruby
PaulCape_ has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
Hobogrammer has quit [Quit: WeeChat 0.4.2]
UnKnOwN| has joined #ruby
astrobunny has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
bkxd has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
Devalo has joined #ruby
<phredus> hello, I want to install a Ruby Version Manager, chruby was recomende, is chruby cable of installing diferent version of ruby or does it just switch between installed versions?
JeanCarloMachado has quit [Ping timeout: 252 seconds]
Vinay_ has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
<Yzguy> rbenv is good
<Yzguy> rbenv can install diff versions and switch between them
<Vinay_> Hello.. This is Vinay here. I am trying to use 'win32ole' gem for visualstudio project file parsing
<postmodern> phredus, chruby switches, ruby-install installs, the both go together
ghr has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
<Vinay_> I created object dte = WIN32OLE.new("VisualStudio.DTE.9.0") and listed all methods using dte.ole_methods
kraken has joined #ruby
kraken is now known as Guest6530
Guest6530 is now known as kraken_
<Vinay_> now, I have all methods available with dte, but I do not know the usage of all these methods. How can I get the methods help?
<kraken_> is there any way for a case statement to have a case for "bob" or "cat"
<kraken_> I can't just do case "bob" || "cat"
agentmeerkat has joined #ruby
arch__ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<shevy> kraken_ does when 'bob','cat' not work?
nhhc has joined #ruby
Devalo has joined #ruby
<Vinay_> kraken_, case "BOB" when "BOB" puts "BOB" else puts "CAT" end
Sashimi has joined #ruby
agentmeerkat has quit [Ping timeout: 276 seconds]
<Vinay_> is that you are looking for?
<kraken_> nvm
<kraken_> shevy was right
<kraken_> I just didnt know the syntax
xall has quit [Ping timeout: 244 seconds]
ghr has joined #ruby
<Vinay_> How to get the help for object methods
<shevy> Vinay_ there are some workarounds
carella has joined #ruby
<shevy> source location and you can obtain the documentation too; also see how ri does it
<shevy> RDoc::RI::Driver.process_args
<Vinay_> ok. I tried wirble.
ghr has quit [Ping timeout: 240 seconds]
<phredus> postmodern: could you please explain a bit more I have never used a vesion manager and I am pretty new to ruby, also I know there is rvm rbenv chruby, which do you recomend and why? Thank you
deecross has joined #ruby
<postmodern> phredus, so ruby-install handles the downloading, compiling, installing of the rubies (really the ruby Makefiles handle this under the hood)
<Vinay_> Shevy, Could you please elaborate RDoc::RI::Driver.process_args?
kraken_ has quit [Quit: Leaving]
carella has quit [Ping timeout: 264 seconds]
<postmodern> phredus, once installed into the desired location (~/.rubies/ or /opt/rubies/), chruby can automatically detect them and switch to them
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<postmodern> phredus, chruby does this by loading bash/zsh hooks into your shell, so every time a command executes it checks if there's a .ruby-version file. Or you can explicitly invoke chruby to switch to another ruby.
<shevy> Vinay_ it depends on what you want to do. if you just want to obtain some documentation for a method, use ri from the commandline or pry and show-doc or whatever was the name
<phredus> postmodern: I use gentoo and ruby is part of the os, So chruby will install other stand alone ruby versions and not mess with my ruby at all?
ghr has joined #ruby
<Vinay_> ok. I also searched in http://ruby-doc.org/, but not getting the required information anywhere..
<postmodern> phredus, correct, i'm a huge fan of having a go-to system ruby, that just works
<phredus> postmodern: I am also reading https://github.com/postmodern/ruby-install#readme right now
arch__ has quit [Excess Flood]
<Vinay_> basically, I am trying to get help for win32ole methods
<postmodern> phredus, you use a ruby manager to switch to alternate rubies for various projects etc, as opposed to your everyday ruby
arch__ has joined #ruby
<phredus> postmodern: ok good I will give chruby a try, thank you
last_staff has joined #ruby
<Vinay_> there are few examples for excel parsing using win32ole, but not for visual studio projects
arch__ has quit [Remote host closed the connection]
interki has joined #ruby
deecross has quit [Remote host closed the connection]
Dimik has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
interki has quit [Remote host closed the connection]
interki has joined #ruby
interki has quit [Excess Flood]
ghr has quit [Ping timeout: 240 seconds]
interki has joined #ruby
interki has quit [Excess Flood]
interki has joined #ruby
interki has quit [Excess Flood]
interki has joined #ruby
bkxd has joined #ruby
dragon9783 has quit [Quit: Connection closed for inactivity]
ghr has joined #ruby
nankyokusei has joined #ruby
greenhat_ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Mattx has quit [Ping timeout: 258 seconds]
xall has joined #ruby
harfangk has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
deecross has joined #ruby
PaulCape_ has joined #ruby
ghr has joined #ruby
PaulCapestany has quit [Ping timeout: 272 seconds]
xall has quit [Ping timeout: 276 seconds]
ghr has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
rkazak has joined #ruby
ghr has joined #ruby
firstdayonthejob has joined #ruby
astrobunny has joined #ruby
bluOxigen has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
anisha_ has joined #ruby
User458764 has joined #ruby
ghr has joined #ruby
DevMagpie has quit [Quit: This computer has gone to sleep]
symm- has joined #ruby
DevMagpie has joined #ruby
agentmeerkat has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
multi_io has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Remote host closed the connection]
DevMagpie has quit [Client Quit]
PaulCapestany has joined #ruby
multi_io has joined #ruby
PaulCape_ has quit [Ping timeout: 250 seconds]
agentmeerkat has quit [Ping timeout: 252 seconds]
conta has joined #ruby
ghr has joined #ruby
floatingpoint has quit [Quit: Goodnight]
Sashimi has joined #ruby
rbennacer has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Devalo has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
Silthias has joined #ruby
ghr has joined #ruby
agent_wh1te has joined #ruby
agent_wh1te has quit [Client Quit]
agent_white has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
agent_white has quit [Client Quit]
malleable has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Illya has quit [Quit: Textual IRC Client: www.textualapp.com]
<interki> anyone have experience using bundler as a bsd port?
Yzguy has joined #ruby
dc4 has joined #ruby
Hyuk has joined #ruby
ghr has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
ramfjord has joined #ruby
agent_white has joined #ruby
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 240 seconds]
marr has joined #ruby
rbennacer has quit [Remote host closed the connection]
ghr has joined #ruby
Yzguy has quit [Quit: Zzz...]
Dimik has quit [Ping timeout: 244 seconds]
xall has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
depesz has joined #ruby
rippa has joined #ruby
Lord_of_Life has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
ghr has joined #ruby
astrobunny has joined #ruby
rbennacer has joined #ruby
harfangk has quit [Quit: harfangk]
ghr has quit [Ping timeout: 240 seconds]
yeticry has quit [Read error: Connection reset by peer]
astrobunny has quit [Ping timeout: 240 seconds]
rbennacer has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
matp has joined #ruby
PaulCapestany has joined #ruby
jaguarmagenta has joined #ruby
PaulCape_ has quit [Ping timeout: 260 seconds]
rbennacer has joined #ruby
ghr has joined #ruby
yeticry has joined #ruby
SilverKey has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
rbennacer has quit [Ping timeout: 244 seconds]
SilverKey has quit [Client Quit]
SCHAAP137 has joined #ruby
dsaur has quit [Ping timeout: 276 seconds]
spider-mario has joined #ruby
harfangk has joined #ruby
rbennacer has joined #ruby
Illya has joined #ruby
ghr has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
harfangk has quit [Quit: harfangk]
<jhass> interki: apparently not, but ask your question anyway
rbennacer has quit [Ping timeout: 260 seconds]
u0_a134 has joined #ruby
ghr has joined #ruby
u0_a134 is now known as fiifi
<interki> I think ive narrowed down that the port doesnt set an accessible location for the gems, as im researching its becomming more of a BSD/bundler issue then a ruby one so ill chase up there, but ty for responce
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<fiifi> need prep for a ruby interview
rbennacer has joined #ruby
<fiifi> any one?
PaulCape_ has joined #ruby
charliesome has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
maloik has joined #ruby
rikkipitt has joined #ruby
ghr has joined #ruby
n1xnz has quit [Quit: Computer says no]
Sashimi has joined #ruby
lxsameer has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
wigust_ has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
Silthias has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
wigust has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 258 seconds]
rbennacer has joined #ruby
blackgoat has joined #ruby
ghr has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
kirun has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
genpaku has quit [Ping timeout: 240 seconds]
genpaku has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
PaulCapestany has joined #ruby
Vinay_ has quit [Ping timeout: 250 seconds]
nofxx has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
astrobunny has joined #ruby
Dreamer3 has quit [Ping timeout: 258 seconds]
PaulCape_ has quit [Ping timeout: 272 seconds]
Dreamer3 has joined #ruby
rbennacer has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
axisys has joined #ruby
astrobunny has quit [Ping timeout: 276 seconds]
toretore has joined #ruby
darkxploit has joined #ruby
pLaToOn has joined #ruby
pLaToOn has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
zeroDi has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
dsaur has joined #ruby
agentmeerkat has joined #ruby
ghr has joined #ruby
dc4 has quit [Ping timeout: 244 seconds]
dsaur has quit [Ping timeout: 250 seconds]
carella has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
agentmeerkat has quit [Ping timeout: 272 seconds]
Darwinr has joined #ruby
<Darwinr> Hello
carella has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 240 seconds]
Darwinr has quit [Client Quit]
rbennacer has joined #ruby
antgel has joined #ruby
ponga has joined #ruby
rbennacer has quit [Ping timeout: 246 seconds]
fiifi has quit [Read error: Connection reset by peer]
Neobenedict has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
enocom has joined #ruby
enocom has left #ruby ["Textual IRC Client: www.textualapp.com"]
rbennacer has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
fiifi has joined #ruby
SteppenII has joined #ruby
ghr has joined #ruby
dc4 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
rbennacer has quit [Ping timeout: 276 seconds]
deecross has quit [Remote host closed the connection]
deecross has joined #ruby
blackgoat has quit [Ping timeout: 246 seconds]
chip_ has joined #ruby
rbennacer has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
ghr has joined #ruby
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
der-landgraf has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rbennacer has quit [Ping timeout: 250 seconds]
biberu has joined #ruby
ghr has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
astrobunny has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Xeago_ has joined #ruby
chrismytton has joined #ruby
beawesomeinstead has joined #ruby
sdothum has joined #ruby
jpinnix_______ has joined #ruby
sepp2k has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
tfitts has joined #ruby
zzak___ has joined #ruby
Travis-42 has joined #ruby
dukedave has joined #ruby
incomprehensibly has joined #ruby
frode15243 has joined #ruby
rflot has joined #ruby
mrsolo has joined #ruby
danzilio has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
deepak_ has joined #ruby
tomphp has joined #ruby
jaguarmagenta has joined #ruby
Xeago_ has quit [Remote host closed the connection]
ghr has joined #ruby
dc4 has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
User458764 has joined #ruby
pawnbox has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
jaguarmagenta has quit [Ping timeout: 276 seconds]
dsaur has joined #ruby
agentmeerkat has joined #ruby
conta has quit [Ping timeout: 264 seconds]
dsaur has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
carella has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
carella has quit [Ping timeout: 264 seconds]
UnKnOwN| has quit [Ping timeout: 260 seconds]
UnKnOwN| has joined #ruby
deecross has quit [Remote host closed the connection]
Xeago_ has joined #ruby
gareeoliz has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
gareeoliz has joined #ruby
gareeoliz has quit [Remote host closed the connection]
rbennacer has joined #ruby
Beverage has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Xeago_ has quit [Remote host closed the connection]
Wsewolod has quit [Ping timeout: 250 seconds]
Illya has quit [Quit: Textual IRC Client: www.textualapp.com]
rbennacer has quit [Ping timeout: 258 seconds]
Xeago_ has joined #ruby
ghr has joined #ruby
rbennacer has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 240 seconds]
moredhel has joined #ruby
PaulCapestany has joined #ruby
PaulCape_ has quit [Ping timeout: 240 seconds]
deecross has joined #ruby
saneax_AFK is now known as saneax
ghr has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
rbennacer has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
rbennacer has joined #ruby
Xeago_ has quit [Remote host closed the connection]
rikkipitt has quit [Remote host closed the connection]
allcentury has joined #ruby
ghr has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
rbennacer has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
hanmac has quit [Ping timeout: 272 seconds]
mexis_ has joined #ruby
im0b has joined #ruby
jmhmccr has joined #ruby
Xeago_ has quit [Remote host closed the connection]
der-landgraf has quit [Quit: WeeChat 1.5]
astrobunny has joined #ruby
codecop has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
der-landgraf has joined #ruby
allcentury has quit [Quit: WeeChat 1.2]
codecop has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
rbennacer has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
binaryplease1 has joined #ruby
Xeago_ has joined #ruby
malleable has quit [Quit: leaving]
binaryplease has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
ghr has joined #ruby
sepp2k has quit [Ping timeout: 258 seconds]
hanmac has joined #ruby
dsaur has joined #ruby
agentmeerkat has joined #ruby
luluapple has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
rbennacer has quit [Ping timeout: 240 seconds]
dsaur has quit [Ping timeout: 260 seconds]
agentmeerkat has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: Lost terminal]
binaryplease1 is now known as binaryplease
edwinvdgraaf has joined #ruby
rbennacer has joined #ruby
blackgoat has joined #ruby
postmodern has quit [Quit: Leaving]
ghr has joined #ruby
der-land1 has joined #ruby
gareeoliz has joined #ruby
der-landgraf has quit [Ping timeout: 276 seconds]
<interki> resolved, it was my experience that the freebsd port for bundler didn't create /etc/.bundle at install so didn't have write perms to that path.
ghr has quit [Ping timeout: 240 seconds]
rbennacer has quit [Ping timeout: 272 seconds]
saneax is now known as saneax_AFK
gareeoliz has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
rbennacer has joined #ruby
gareeoliz has joined #ruby
Hyuk has joined #ruby
IHB has joined #ruby
Illya has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<IHB> hey guys, hoping someone can help guide me in the right direction with this DSL that I'm building
<IHB> I need to replace nested module and class definitions which represent protobuf messages and enums, with DSL-provided blocks, but doing so with instance_eval loses the lexical scoping of constants, which means the nested classes can no longer reference the enum module constants
<IHB> what would be the best way to solve this?
<jhass> well, first I'd question if you really need to
Xeago_ has quit [Remote host closed the connection]
<jhass> second is whether you really need to instance_eval or if a context object yielding API wouldn't suffice
ghr has joined #ruby
<jhass> if both to these is "yes, otherwise I'll die", you could try to get a hold of the callee's Module.nesting and built an anonymous module/class in which you include everything you need to be callable plus everything in Module.nesting and then class_eval with it as context, or something into that venue
<IHB> jhass: I need a DSL in this case to be able to implement the abstraction that is needed. I'd very much prefer to use instance_eval, as using yielded objects would only add to line noise and these definitions don't need to access other unrelated objects
m0rph84 has joined #ruby
<IHB> I was hoping there was a better solution than Module.nesting, which I'm not even sure works with classes
<jhass> the other easier way is to not rely on relative constant resolution of course
<IHB> Would an example make what I'm trying to accomplish more clear?
ferr has joined #ruby
kent\n has quit [Quit: No Ping reply in 180 seconds.]
dionysus69 has joined #ruby
<jhass> I think I have a fairly clear picture
<jhass> I consider it an over engineered approach due to the issue you're facing
<IHB> The problem is, any other approach is not very ruby-like
ghr has quit [Ping timeout: 240 seconds]
<jhass> that's entirely subjective
<IHB> I've been working with protobuf the way that it is implemented by beefcake for years nwo
<IHB> *now
rbennacer has quit [Ping timeout: 276 seconds]
m0rph84 has left #ruby [#ruby]
<IHB> Having to look up a bunch of Messages::MessageName::Flag::FlagName, add them together and then set them to the flags for each message is simply far too verbose, non-ruby-like, and extremely un-DRY
<IHB> I would really like to be able to abstract enums and flags completely
<IHB> Especially since I need to reuse this kind of thing for many projects, and many messages in each project
Azure has joined #ruby
depesz has left #ruby ["WeeChat 1.5-dev"]
<jhass> I guess you could refer to them with symbols in the API and look them up if they have a well defined place
<IHB> I can't even do that without something horrible like Module.nesting
Azure|dc has quit [Ping timeout: 258 seconds]
rbennacer has joined #ruby
<jhass> or do a shadow system where they have to be defined using your API too
ghr has joined #ruby
<jhass> tbh next person who touches this will throw it away again though
kent\n has joined #ruby
<IHB> jhass: no one else will be touching any of these projects, I am the sole developer
<IHB> putting together a quick test case to clarify what I've like to do
<IHB> *I'd
<jhass> don't make the mistake of thinking future you will always have your opinion ;)
<jhass> thinking of future you as another developer you have to explain all this stuff to helps
gareeoliz has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 260 seconds]
<IHB> that really isn't something I need to worry about
<IHB> it's unlikely that another developer will ever work on any of these projects
<jhass> that's entirely besides my point
<IHB> but even if they had to, the abstraction would be intuitive and well worth using over raw class based stuff
<jhass> until it doesn't work 100%
<IHB> this is what I'm trying to accomplish: http://codepad.org/47DEtHOD
gareeoliz has joined #ruby
<IHB> this is a small abtraction which a lot of big abstractions are built on top of
<jhass> since you love symbols so much
<jhass> just keep everything in symbols
<jhass> including line 32
<IHB> the issue is that message fields need to be able to reference both constants in their class as well as upper level constants such as other enums or messages
astrobunny has joined #ruby
<IHB> even if I use symbols for those classes, I need to be able to hook them up to the classes
jokke has quit [Quit: WeeChat 1.5]
rbennacer has joined #ruby
fiifi has quit [Read error: Connection reset by peer]
jokke has joined #ruby
yqt has joined #ruby
isberg has joined #ruby
User458764 has joined #ruby
<jhass> isn't there already an external DSL for defining protobufs? and aren't there ruby libs that can read those? why define that stuff in Ruby code in the first place?
<IHB> Saves having to maintain external markup and perform precompilation
last_staff has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 276 seconds]
<IHB> the actual DSL for defining protobuf fields (the required method call in the paste) is provided by the beefcake gem
jaguarmagenta has joined #ruby
<IHB> I have monkeypatched support for the flags helper method into the beefcake gem
ghr has quit [Ping timeout: 240 seconds]
<jhass> idk, sorry but this still all feels like not invented here
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<IHB> I suppose what I could do, is hook up parent class/module reference using the define_protocol and message DSL methods, and the walk those references backwards and use that for constant lookup scope
Danielss89_ is now known as Danielss89
<IHB> jhass: I do not use external protobuf definitions, it's that simple
<IHB> for ruby-only protocols, they are a total waste and not convenient to have to precompile
<IHB> but I don't even use them for projects that use two different languages
<jhass> so instead you spend who knows how many man hours reinventing them as a internal DSL
<IHB> I define all protocol using metaprogramming
<IHB> you don't seem to be following
<IHB> languages already support defining protobuf with metaprogramming
rbennacer has quit [Ping timeout: 240 seconds]
<IHB> I am simply trying to extend the support that beefcake provides to allow more ruby-ish abstraction
<IHB> which will lead to far more DRY code
rbennacer has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
<jhass> yes and it's too verbose _for your taste_, so instead of using an _already existing_ implementation of a external, _more compact_ DSL with _existing widely used implementations_, you spend time on making your own
ghr has joined #ruby
fiifi has joined #ruby
<IHB> I think that having hundreds of lines like this is too verbose for almost anyones taste... Messages::ActionMessage::ActionFlag::Action1 | Messages::ActionMessage::ActionFlag::Action2 | Messages::ActionMessage::ActionFlag::Action3 | Messages::ActionMessage::ActionFlag::Action4
<jhass> I didn't counter that
<IHB> using external definitions would not solve this problem
<IHB> there is also no ruby library that does solve this problem as far as I am aware
dsaur has joined #ruby
fiifi has quit [Read error: Connection reset by peer]
<IHB> beefcake is supposed to be the most ruby-ish protobuf library
<IHB> but it falls terribly short
<IHB> and I've already had to monkeypatch it with a whole range of optimizations when it comes to encoding and decoding, and improvements when it comes to type conversion
ych has joined #ruby
<jhass> well, I've given the venues I'd pursue above, more specific hints would require hours spending on the actual code and you're locked into the path, so good luck!
UnKnOwN| has quit [Ping timeout: 264 seconds]
Mattx has joined #ruby
<IHB> if you really think there is an existing solution which I can use to be able to use protobuf without insane amounts of repeated code everywhere filling my code base with horrible line noise, then I'll be willing to scrap all the improvements to beefcake, all my existing usage across 10+ projects, and start switching to it
<IHB> but I do not believe such a thing exists, and unless you can provide me with it, I will still need to create it myself
UnKnOwN| has joined #ruby
LoneHerm_ has joined #ruby
fiifi has joined #ruby
dsaur has quit [Ping timeout: 258 seconds]
carella has joined #ruby
ftj has joined #ruby
symm- has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
nando293921 has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
nofxx has joined #ruby
carella has quit [Ping timeout: 260 seconds]
l4v2 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Es0teric has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.5]
ElFerna has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
symm- has quit [Ping timeout: 240 seconds]
PaulCape_ has joined #ruby
edwinvdgraaf has joined #ruby
PaulCapestany has quit [Ping timeout: 258 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gareeoliz has quit [Remote host closed the connection]
ghr has joined #ruby
rbennacer has joined #ruby
pawnbox has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GodFather_ has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
isberg has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 258 seconds]
Sashimi has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
ghr has quit [Ping timeout: 240 seconds]
deecross has quit [Remote host closed the connection]
deecross has joined #ruby
miqlas-H has joined #ruby
loocash has joined #ruby
dionysus69 has joined #ruby
rbennacer has joined #ruby
chip_ has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
atzorvas has quit [Remote host closed the connection]
bluOxigen has joined #ruby
ghr has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Quit: Leaving.]
yqt has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
blackmesa has joined #ruby
deecross has quit [Remote host closed the connection]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
rbennacer has joined #ruby
hk238 has joined #ruby
Miron has quit [Ping timeout: 250 seconds]
isberg has joined #ruby
deecross has joined #ruby
ghr has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
nerium has joined #ruby
der-land1 has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
Miron has joined #ruby
burgestrand has joined #ruby
Devalo has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
rbennacer has joined #ruby
isberg has quit [Quit: I'm out]
nerium has quit [Quit: nerium]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: WeeChat 1.5]
edwinvdgraaf has quit [Remote host closed the connection]
ghr has joined #ruby
dsaur has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
agentmeerkat has joined #ruby
UnKnOwN| has quit [Ping timeout: 260 seconds]
LoneHermit has joined #ruby
genpaku has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 240 seconds]
dsaur has quit [Ping timeout: 252 seconds]
carella has joined #ruby
rbennacer has joined #ruby
agentmeerkat has quit [Ping timeout: 246 seconds]
ftj has joined #ruby
chip_ has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
ftj has quit [Client Quit]
rbennacer has quit [Ping timeout: 240 seconds]
carella has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
conta has joined #ruby
JeanCarloMachado has joined #ruby
genpaku has joined #ruby
rbennacer has joined #ruby
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 240 seconds]
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ftj has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
QORRiE has joined #ruby
vjacob has joined #ruby
ghr has joined #ruby
ftj has quit [Client Quit]
ekinmur has joined #ruby
Sashimi has joined #ruby
rbennacer has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
Devalo has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 240 seconds]
pontiki has joined #ruby
yqt has joined #ruby
ghr has joined #ruby
QORRiE has quit [Quit: Exiting...]
Mattx has quit [Quit: Leaving]
l4v2 has quit [Quit: l4v2]
rbennacer has joined #ruby
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fujinuma has left #ruby ["Leaving"]
futilegames has joined #ruby
QORRiE has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
SteppenII has quit [Remote host closed the connection]
vjacob has quit [Quit: Leaving]
dsaur has joined #ruby
rbennacer has joined #ruby
JeanCarloMachado has joined #ruby
futilegames has quit [Quit: futilegames]
ghr has joined #ruby
carella has joined #ruby
codecop has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
dsaur has quit [Ping timeout: 258 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
rbennacer has joined #ruby
blackmesa has joined #ruby
codecop has joined #ruby
ghr has joined #ruby
jaguarmagenta has joined #ruby
astrobunny has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 250 seconds]
astrobunny has joined #ruby
carella has quit [Remote host closed the connection]
davedev24 has joined #ruby
spudowiar has joined #ruby
carella has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
jaguarmagenta has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
gareeoliz has joined #ruby
freerobby has joined #ruby
freerobby1 has joined #ruby
dn` has quit [Quit: dn`]
deecross has quit [Remote host closed the connection]
deecross has joined #ruby
ghr has joined #ruby
freerobby2 has quit [Ping timeout: 260 seconds]
rbennacer has quit [Ping timeout: 250 seconds]
freerobby has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
johnmilton has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
nando293921 has quit [Quit: Lost terminal]
nando293921 has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
chip_ has quit [Ping timeout: 264 seconds]
araujo has quit [Max SendQ exceeded]
dn` has joined #ruby
zeroDi has joined #ruby
araujo has joined #ruby
Devalo has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
tvw has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
ddfreyne has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
johnmilton has joined #ruby
agentmeerkat has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
ghr has joined #ruby
Ishido has joined #ruby
rbennacer has joined #ruby
blackmesa has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
dsaur has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
blaxter has joined #ruby
ghr has joined #ruby
Lord_of_Life has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
blaxter has quit [Client Quit]
agentmeerkat has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
circ-user-sZsTA has joined #ruby
dsaur has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
circ-user-sZsTA has quit [Remote host closed the connection]
hutch34 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
macsteps has joined #ruby
LoneHerm_ has joined #ruby
ghr has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
l4v2 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
l4v2 has quit [Client Quit]
aryaching has joined #ruby
kirun has quit [Ping timeout: 258 seconds]
pontiki has quit [Quit: Lost terminal]
mello has quit [Remote host closed the connection]
ghr has joined #ruby
perturbation has joined #ruby
macsteps has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
macsteps has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
ghr has joined #ruby
Devalo has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kirun has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
macsteps has quit [Remote host closed the connection]
macsteps has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
ponga has quit [Quit: Connection closed for inactivity]
loocash has quit [Quit: Leaving]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
macsteps has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
darkxploit has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 276 seconds]
houhoulis has joined #ruby
yqt has joined #ruby
ghr has joined #ruby
millerti has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
ramfjord has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Silthias has quit [Quit: Leaving.]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rikkipitt has joined #ruby
darkxploit has joined #ruby
dsaur has joined #ruby
ghr has joined #ruby
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
dsaur has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
darkxploit has quit [Max SendQ exceeded]
dsaur has joined #ruby
darkxploit has joined #ruby
ghr has joined #ruby
jaguarmagenta has joined #ruby
nando293921 has quit [Quit: Lost terminal]
nando293921 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 240 seconds]
jaguarmagenta has quit [Ping timeout: 244 seconds]
darkxploit has quit [Read error: Connection reset by peer]
nando293921 has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
nando294021 has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
nando294021 has quit [Client Quit]
nando293921 has joined #ruby
ghr has joined #ruby
rikkipitt has quit [Ping timeout: 244 seconds]
diegoviola has quit [Quit: WeeChat 1.5]
last_staff has joined #ruby
agentmeerkat has joined #ruby
gix has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 276 seconds]
gix has joined #ruby
_tpavel has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
_tpavel has quit [Read error: Connection reset by peer]
<IHB> it's interesting that Array lookups are considerably faster on instance variables than locals, but Hash lookups are faster on locals than instance variables
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
agentmeerkat has quit [Ping timeout: 264 seconds]
enterprisey has joined #ruby
dionysus69 has joined #ruby
Alice112 has joined #ruby
mistermocha has joined #ruby
flashpoint9 has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
flashpoint9 has quit [Client Quit]
flashpoint9 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
wigust_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
wigust has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
diegoviola has joined #ruby
ghr has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
xlegoman_ has joined #ruby
flashpoint9 has quit []
xlegoman_ is now known as xlegoman
ghr has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
UnKnOwN| has joined #ruby
mistermocha has joined #ruby
Alice112 has left #ruby [#ruby]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
spudowiar has quit [Quit: Leaving.]
C0deMaver1ck has quit [Quit: ZNC 1.6.3 - http://znc.in]
C0deMaver1ck has joined #ruby
ghr has joined #ruby
C0deMaver1ck is now known as Guest29491
Guest29491 is now known as C0deMaver1ck
rbr has joined #ruby
Rory has joined #ruby
Rory is now known as RoryO
ghr has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
nando293921 has quit [Quit: Lost terminal]
mistermocha has joined #ruby
JeremyM_ has joined #ruby
nando293921 has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
dsaur has left #ruby [#ruby]
mistermocha has quit [Read error: Connection reset by peer]
ghr has joined #ruby
mistermocha has joined #ruby
<binaryplease> Hi, I'm trying to run this script to request the header of websites, but get a lot of 503 (Service Unavaitible) responses. https://ptpb.pw/esHl What am I missing?
pawnbox has quit [Remote host closed the connection]
<binaryplease> Also netstat shows me a lot of http connecions being open
pawnbox has joined #ruby
RoryO has quit [Quit: RoryO]
mello has joined #ruby
genpaku has quit [Ping timeout: 244 seconds]
genpaku has joined #ruby
paayaw has joined #ruby
JeanCarloMachado has joined #ruby
<paayaw> hey
<paayaw> anyone home?
rikkipitt has joined #ruby
<jhass> ?anyone paayaw
<ruby[bot]> paayaw: Just ask your question, if anyone has, is or can, they will respond.
<binaryplease> Hi, I'm trying to run this script to request the header of websites, but get a lot of 503 (Service Unavaitible) responses. https://ptpb.pw/esHl What am I missing?
<paayaw> ok jhass
ghr has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
<paayaw> im doing some ruby and i just realized that u can perform arithmetic on string except multiplication(*)
<paayaw> i want to know how ruby does that under hood...my guess is it treats it as a loop
alfiemax has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
<jhass> >> "a" * 5
<ruby[bot]> jhass: # => "aaaaa" (https://eval.in/599934)
<jhass> works just as well
<jhass> the trick is, operators are just method calls too
<jhass> >> "a".*(5)
<ruby[bot]> jhass: # => "aaaaa" (https://eval.in/599935)
ghr has joined #ruby
dh64 has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
xcyclist has left #ruby [#ruby]
ruby-lang666 has joined #ruby
<ruby-lang666> hey, anybody there?
dgynn has joined #ruby
DoubleMalt has joined #ruby
<jhass> ?anyone ruby-lang666
<ruby[bot]> ruby-lang666: Just ask your question, if anyone has, is or can, they will respond.
<ruby-lang666> if anybody's here, I'm trying to make my own map method. it's working, but I can't get it to change my array without using ! in the call.
<ruby-lang666> def my_map self.my_each_with_index{|x| x = yield x} end
<paayaw> jhass i see...if i got u correctly...u r saying the "*" operator is the only math operator that handles srtrings...?
<jhass> ruby-lang666: x is a local variable, reassgning it will have no effect on self
<jhass> you have to use another array method, such as Array#[]=
<ruby-lang666> yeah, i tried using each_with_index and changing self[i] but that didn't help
<jhass> show your attempt of doing that
<jhass> paayaw: no
<jhass> sorry but not remotely what I said
<jhass> in the context of strings, * isn't even a math operator anymore
<jhass> just an operator
<ruby-lang666> def my_map self.my_each_with_index{|x,i| self[i] = yield x} end
<paayaw> jhass...ok
<jhass> ruby-lang666: looks good, assuming my_each_with_index works correct
<ruby-lang666> it works correctly, but it doesn't affect my_arr though. how would I go about using your solution?
binaryplease2 has joined #ruby
nanoz has joined #ruby
<jhass> ruby-lang666: that seems quite unlikely, I think you're confused over your test code or that doesn't work correctly
<ruby-lang666> no, my each_with_index works
<jhass> maybe make a gist of everything you got
<jhass> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<ruby-lang666> and i'm not using rspec, i'm just running it from the terminal right now
<jhass> just gist the terminal session "proving" your statements
<jhass> and the code
yqt has quit [Ping timeout: 244 seconds]
<ruby-lang666> i also commented my terminal output
mdw has joined #ruby
User458764 has joined #ruby
solocshaw has joined #ruby
<jhass> note that gists can be edited and have multiple files
<jhass> I don't see your code called in the example code
mistermocha has quit [Remote host closed the connection]
<ruby-lang666> i call it at the bottom
<ruby-lang666> p better_arr.map{|x| x * 2}
<jhass> also note that your my_each and my_each_with_index behave like map and map.with_index respectively, not .each and .each_with_index
mistermocha has joined #ruby
<jhass> .map does not call .my_map
<ruby-lang666> wow, that's the second time i've done that
rbr has quit []
<ruby-lang666> and they don't, they don't, they behave the same as my normal each calls
<ruby-lang666> they don't change the array itself
freerobby1 has quit [Quit: Leaving.]
<jhass> no.
<jhass> .each doesn't change any array
<jhass> it merely returns self
RoryO has joined #ruby
<jhass> unchanged
<ruby-lang666> each loops through the array, and does what is in the block
<ruby-lang666> that's what each does
<jhass> yes and it doesn't do anything with the blocks return values
<jhass> yours however does, making it behave like map
LoneHerm_ has joined #ruby
<ruby-lang666> it looks like map, but in every example i've tried it gives the same exact output as each. and i've tried multiple online each examples, all giving the same output
<ruby-lang666> how would you suggest I solve this? just yield x inside of my each method?
<jhass> yes
JeanCarloMachado has quit [Ping timeout: 246 seconds]
<jhass> an example that would show the difference is as simple as p [1, 2].each {|x| x ** 2 } vs p [1, 2].my_each {|x| x ** 2 }
mistermocha has quit [Ping timeout: 240 seconds]
l4v2 has joined #ruby
enterprisey has quit [Remote host closed the connection]
<ruby-lang666> does my each method look right now?
<jhass> no
<jhass> there's no need for arr = [] and it doesn't return self yet
conta has quit [Ping timeout: 264 seconds]
<ruby-lang666> yeah, i took that out in my code. i just forgot to do it in my gist
Sashimi_ has joined #ruby
l4v2 has quit [Client Quit]
<ruby-lang666> and i always thought map changed the array itself. does it only change the array itself if you use map!?
<ruby-lang666> if that's the case then i did it right the first time
<jhass> yes that's right
jaguarmagenta has joined #ruby
Sashimi has quit [Ping timeout: 250 seconds]
<jhass> Ruby's core convention for ! methods is: if there's a method ending in !, there's one that without a ! that returns a modified copy instead. The ! version returns nil if it made no changes
<jhass> self otherwise
antgel has quit [Ping timeout: 244 seconds]
<jhass> so .map is essentially arr = dup; arr.map!(&block); arr
ascarter has joined #ruby
<ruby-lang666> okay, thanks! do my each and each_with_index methods look good to you?
<jhass> they still don't return self
<jhass> ?tabs
<ruby[bot]> Ruby community standards recommend using 2 spaces as indentation (see https://github.com/bbatsov/ruby-style-guide#spaces-indentation and https://ukupat.github.io/tabs-or-spaces/).
<jhass> btw ^
<ruby-lang666> i have 2 space indentation in sublime, i guess i just didn't change it in the gisty
torandu has quit [Ping timeout: 260 seconds]
<ruby-lang666> but why would my each methods return self? they don't affect self
<shevy> evil tabster!
<jhass> also for x in y is internally rewritten to y.each do |x|, basically, so just use that directly
<ruby-lang666> and i know that part, i just can't use the each method for this exercise. only my own Enumerable methods
<jhass> they would because they mimic core ruby behavior and that's what core ruby does
<jhass> .upto and .times are other alternatives to for here
ghr has quit [Ping timeout: 240 seconds]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<ruby-lang666> i figured .times would be redundant because i would need to create a counter variable
Es0teric has quit [Remote host closed the connection]
<ruby-lang666> i have my each methods returning self now in my gist. is that what you meant?
anisha_ has quit [Quit: This computer has gone to sleep]
rikkipitt has quit [Remote host closed the connection]
torandu has joined #ruby
solocshaw has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
<jhass> yes ;)
ruby-lang666 is now known as mikethefish
<mikethefish> hey, it's me who you just helped. thanks a lot!
<mikethefish> now why exactly should they return self? I didn't notice a difference. and should i make all of my methods return self?
<jhass> mikethefish: http://devdocs.io/ruby~2.3/integer#method-i-times take another look, in particular what it yields ;)
AlexRussia has joined #ruby
<mikethefish> oh and that's cool! i didn't know it automatically counted the index. i'll update that next, thanks!
<jhass> mikethefish: no to the latter, the former I already answered, because Ruby core, which you reimplement here, does. It gives a well defined return value (opposed to leaking an implementation detail) as well
swills has quit [Remote host closed the connection]
<jhass> btw your sublime is probably just configured to display tabs as two spaces, opposed to truly using two spaces (the "Indent using Spaces" setting)
rikkipitt has joined #ruby
<mikethefish> i get that it's ruby core, maybe i just don't exactly understand what that means. i know i'm reimplementing ruby core, but is there any specific purpose to make sure i return the self value other than that?
<mikethefish> i'm just wondering if there's a certain security issue or something like that with that, or if it's just convention
<jhass> since you repeat your question a third time I would just repeat my answer a third time. If something in my answer is unclear I would prefer being asked to clarify that specific part.
<mikethefish> i changed the question. i understand what you said about it being ruby core and that it's the way they do it in ruby core. i am asking why it's used in ruby core and why i should use it (other than it just being ruby core)
<jhass> as I already said, to have a well defined return value opposed to leaking an implementation detail
ghr has quit [Ping timeout: 240 seconds]
<mikethefish> i see now, i just had a loop and not a specific return value. i'm sorry, i'm just fairly new to ruby and i have a lot to learn
<jhass> keep in mind every Ruby expression has a value and Ruby returns the last expressions value of a method as its return value
<mikethefish> yeah, i know that it returns the last expression. in my dumb mind, that's what made me think it was ok to just have the loop and no implicit return value
binaryplease2 has quit [Ping timeout: 258 seconds]
kavanagh has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
jenrzzz has joined #ruby
JeanCarloMachado has joined #ruby
nando293921 has joined #ruby
nando293921 has quit [Client Quit]
nando293921 has joined #ruby
malleable has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
smathy has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
ghr has joined #ruby
nhhc has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
hutch34 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
kavanagh has quit [Ping timeout: 240 seconds]
nanoz has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
nertzy has joined #ruby
kavanagh has joined #ruby
UnKnOwN| has quit [Read error: Connection reset by peer]
JeanCarl1Machado has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
UnKnOwN| has joined #ruby
ghr has joined #ruby
paayaw has quit [Quit: Page closed]
jaguarmagenta has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
mikethefish has quit [Quit: Page closed]
yqt has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
deecross has quit [Remote host closed the connection]
ghr has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
abonec has joined #ruby
ascarter has joined #ruby
pLaToOn has joined #ruby
<pLaToOn> moin
davedev2_ has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
hutch34 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
AlphaKitty has joined #ruby
<binaryplease> Hi, I'm trying to run this script to request the header of websites, but get a lot of 503 (Service Unavaitible) responses. https://ptpb.pw/esHl What am I missing?
<adam12> Sounds like you're being rate limited / overloading the server?
mistermocha has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
deecross has joined #ruby
<RoryO> You're blasting 100 connections as fast as possible to the server, it's probably rate limiting you to prevent you from doing exactly what you're doing.
torandu has quit [Ping timeout: 252 seconds]
Hobogrammer has joined #ruby
kavanagh has quit [Remote host closed the connection]
torandu has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
duoi has quit [Ping timeout: 250 seconds]
hmnhf has joined #ruby
RoryO has quit [Quit: RoryO]
spudowiar has joined #ruby
duoi has joined #ruby
symm- has joined #ruby
ghr has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
alfiemax has quit [Ping timeout: 246 seconds]
JeanCarl1Machado has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<fiifi> exit
fiifi has quit [Quit: leaving]
houhoulis has quit [Remote host closed the connection]
solars has quit [Ping timeout: 264 seconds]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
genpaku has quit [Ping timeout: 276 seconds]
Lord_of_Life has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
kavanagh has joined #ruby
genpaku has joined #ruby
jaguarmagenta has joined #ruby
kavanagh has quit [Remote host closed the connection]
Stazer has joined #ruby
Stazer has left #ruby [#ruby]
ghr has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
<drbrain> Also, Connection: close is bad
<drbrain> if you're making multiple requests to the same server you want to use persistent connections
<jhass> if you're (also) making requests to a lot of different servers you also want to pay attention to not run out of available connections (OS limit) though
<jhass> especially using persistent connections that can easily happen
jaguarmagenta has quit [Ping timeout: 252 seconds]
kavanagh has joined #ruby
ghr has joined #ruby
hmnhf has quit [Quit: Konversation terminated!]
kavanagh has quit [Remote host closed the connection]
hmnhf has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
der-landgraf has joined #ruby
solars has joined #ruby
hmnhf has quit [Client Quit]
kavanagh has joined #ruby
hmnhf has joined #ruby
hmnhf has quit [Client Quit]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
nando293921 has joined #ruby
ghr has joined #ruby
mistermocha has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
kavanagh has quit [Remote host closed the connection]
nhhc has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Lord_of_Life has joined #ruby
kavanagh has joined #ruby
rikkipitt has quit [Quit: Leaving...]
aryaching has joined #ruby
mistermocha has quit [Ping timeout: 276 seconds]
pmyjavec has joined #ruby
kavanagh has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
ghr has quit [Ping timeout: 240 seconds]
Madplatypus has joined #ruby
kavanagh has joined #ruby
kavanagh has quit [Remote host closed the connection]
ur5us has joined #ruby
LoneHermit has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
zacstewart has joined #ruby
ghr has joined #ruby
phantummm has joined #ruby
swills has joined #ruby
abonec has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 240 seconds]
kavanagh has joined #ruby
hirvi_ is now known as hirvi
Dimik has joined #ruby
ghr has joined #ruby
chestz has joined #ruby
malleabl1 has joined #ruby
malleable has quit [Disconnected by services]
chestz has quit [Client Quit]
malleabl1 is now known as malleable
phantummm has left #ruby ["WeeChat 1.4"]
mistermocha has joined #ruby
spudowiar has quit [Quit: Leaving.]
RoryO has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
phantummm has joined #ruby
naftilos76 has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 240 seconds]
phantummm has quit [Quit: WeeChat 1.4]
JeanCarloMachado has joined #ruby
RoryO has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
xlegoman has quit [Quit: xlegoman]
zacstewart has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
bb010g has joined #ruby
pontiki has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
<phredus> Hey guys, I've intalled chruby and I have used "ruby-install" to install a version of ruby I want. How do I activate and switch back and forth between the different versions?
<pontiki> phredus: `chruby <version>`, so like `chruby 2.3.0`
<jhass> if you installed it into ~/.rubies/version or /opt/rubies/version (iirc) chruby should pick it up automatically
<jhass> if not you have to add the path you installed it to to the RUBIES environment variable
<pontiki> if you also have the chruby auto script loaded, you can use the usual .ruby-version files
pmyjavec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has joined #ruby
<phredus> I did not specify a path so I am assuming it used the default path. and "chruby" returns "-bash: chruby: command not found"
<pontiki> phredus: you don't have the scripts loaded then
<pontiki> check your .profile or .bash_profile
malleable has quit [Quit: leaving]
<phredus> what am i looking for in the .profiles?
moei has joined #ruby
<phredus> .bashrc has: # Put your fun stuff here.
<phredus> export PATH=$HOME/bin:$PATH
<phredus> source /usr/local/share/chruby/chruby.sh
<phredus> export PATH=$HOME/Apps/bin:$PATH
<phredus> and I have restarted my terminal since making the entry
Devalo has quit [Remote host closed the connection]
<pontiki> try this: `type chruby | head -1`
<pontiki> you should see "function chruby"
<phredus> $ chruby | head -1
<phredus> -bash: chruby: command not found
<pontiki> you forgot "type"
<phredus> $ type chruby | head -1
<phredus> -bash: type: chruby: not found
<pontiki> enter the source path from your .bashrc
<phredus> sorry I dont know what you mean
ghr has quit [Ping timeout: 240 seconds]
<pontiki> this: `source /usr/local/share/chruby/chruby.sh`
<phredus> yes, but enter it where?
<pontiki> at the command line
<pontiki> do you use command line much?
roamingdog has quit [Remote host closed the connection]
tomphp has joined #ruby
<phredus> yes, about 20 years now, but I dont know what you mean by enter it, 1 inpout into a file or type it at the command line
spudowiar has joined #ruby
spudowiar has quit [Client Quit]
rkazak has joined #ruby
<pontiki> i never knew "enter" was that ambiguous when discussing command line things
<phredus> the problem is that the chruby installation did not create /usr/local/share/chruby/ ---> $ ls /usr/local/share/chruby/
<phredus> ls: cannot access /usr/local/share/chruby/: No such file or directory
<postmodern> phredus, how did you install chruby?
<phredus> look Im sorry if I offended you, if want to help I appreciate it. But lets not get into a pissing contest here, please.
* pontiki tags in postmodern, the master of the chruby!!
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> i'm not offended
ghr has joined #ruby
<pontiki> just confused
smathy has joined #ruby
<postmodern> phredus, depending on how you installed chruby (from a package manager or from source) it may be installed into /usr/local or /usr
<phredus> ok, good because that was not my intention. I was just not understanding what you wanted me to do. That is why I asked
smathy has quit [Client Quit]
<phredus> I used wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz
<phredus> tar -xzvf chruby-0.3.9.tar.gz
<phredus> cd chruby-0.3.9/
<phredus> sudo make install
<postmodern> phredus, ok then it should be installed into /usr/local/...
<postmodern> phredus, unless you have PREFIX set to something
<postmodern> echo $PREFIX
c0mrad3 has quit [Quit: Connection closed for inactivity]
kavanagh has quit [Remote host closed the connection]
<phredus> returns nothing
anisha_ has joined #ruby
<postmodern> ok good
anisha_ has quit [Client Quit]
kavanagh has joined #ruby
<postmodern> phredus, just curious what paths did you see when running `sudo make install`
mdw has quit [Quit: Sleeping Zzzzz]
<phredus> I did not notice, I could just run again if you think that may be the issue
hutch34 has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gorsuch has joined #ruby
<postmodern> phredus, yep, run it again and paste the output
ascarter has joined #ruby
<phredus> ok will do, thanks brb
enterprisey has quit [Remote host closed the connection]
houhoulis has joined #ruby
<phredus> # make install
<phredus> for file in `find etc lib bin sbin share -type f 2>/dev/null`; do cp $file /usr/local/$file; done
<phredus> for dir in `find etc lib bin sbin share -type d 2>/dev/null`; do mkdir -p /usr/local/$dir; done
<phredus> mkdir -p /usr/local/share/doc/chruby-0.3.9
<phredus> cp -r *.md *.txt /usr/local/share/doc/chruby-0.3.9/
kirun has quit [Quit: Client exiting]
ghr has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
QORRiE_ has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<postmodern> phredus, ok you should have a /usr/local/share/chruby directory
QORRiE has quit [Ping timeout: 276 seconds]
SCHAAP137 has quit [Ping timeout: 276 seconds]
<phredus> yes I do have /usr/local/share/chruby now
<phredus> contains 2 scripts auto.sh chruby.sh
<postmodern> phredus, ok, now follow the directions in the README on how to load chruby.sh and auto.sh into your bash config
<postmodern> phredus, you can either do this by adding them to ~/.bashrc or creating a /etc/profile.d/chruby.sh file (assuming your system loads additional things from /etc/profile.d/)
ghr has joined #ruby
QORRiE_ has quit [Quit: Exiting...]
<phredus> I di if what you are refering to is add this line "source /usr/local/share/chruby/chruby.sh" to .bashrc. however "chruby" gets$ chruby
<phredus> bash: chruby: command not found
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<postmodern> phredus, you also have to restart your shell, so it loads the new configuration
<postmodern> exec $SHELL
<phredus> done, please give a command to test it
<postmodern> chruby should now return successfully
kavanagh has quit [Remote host closed the connection]
kavanagh has joined #ruby
<phredus> while in the directory /usr/local/share/chruby $ chruby
<phredus> bash: chruby: command not found
ghr has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<phredus> I may be missing something quite simple here but I dont see it
<phredus> /usr/local/share/chruby $ sh chruby.sh retuns silence
<postmodern> phredus, did you add those lines to .bashrc and restart your shell?
<phredus> yes on my own and then per your instructions just to make sure
nhhc has quit [Remote host closed the connection]
<postmodern> phredus, it could be ~/.bashrc isn't being loaded for interactive shells
<postmodern> phredus, try adding the configuration to ~/.bash_profile
deecross has quit [Remote host closed the connection]
<phredus> same
chipotle has quit [Quit: cheerio]
<phredus> I can troubleshoot the bash issue later on my own, could you please help me determine whether or not chruby is working correctly
SCHAAP137 has joined #ruby
ghr has joined #ruby
<postmodern> phredus, it's not being loaded, so it's not working at all
pLaToOn has quit [Read error: Connection reset by peer]
<postmodern> phredus, try manually loading it with `source chruby.sh`
<phredus> what should the output of it loading correctly be?
<llua> nothing
bzb has joined #ruby
last_staff has quit [Quit: last_staff]
naftilos76 has quit [Quit: Αποχώρησε]
<postmodern> phredus, now try running chruby
<phredus> ok, if I run "sh /usr/local/share/chruby/chruby.sh" I get nothing, how do I test to see if it is working?
<phredus> postmodern: $ chruby
<phredus> bash: chruby: command not found
<postmodern> phredus, i said to run `source /usr/local/share/chruby/chruby.sh`
<postmodern> phredus, source loads the script into your current shell, sh just runs it in a sub-shell
<postmodern> source is how you load additional configuration files into your shell
<phredus> source /usr/local/share/chruby/chruby.sh returns nothing
<postmodern> phredus, ok now try running chruby
<phredus> $ chruby
<phredus> ruby-2.2.2
<shevy> you did it!
<phredus> success!!! Yay
<shevy> even an old ruby!!!
<postmodern> phredus, ok, now you just need to figure out how to load chruby in your shell configuration
<phredus> well that is the one I need and I installed using ruby-install
ghr has quit [Ping timeout: 240 seconds]
<postmodern> phredus, usually adding `source .../chruby.sh` to ~/.bashrc or /etc/profile.d/ works, but some distros do weird things to the bash configuration files
nofxx has joined #ruby
<phredus> yeah that may be the issue I use gentoo and it doesent always handle things like other distros do, thank you much for the help
rkazak has quit [Quit: Sleep.....ing....]
<postmodern> i've ran into minor variations where some distros only load .bashrc in non-interactive mode, where some load .bashrc and .bash_profile in interactive mode
ghr has joined #ruby
<phredus> chruby will install other versions of ruby and leave my main ruby wich is part of my os alone, I am not understanding how that switching back and forth work
<jhass> it's a matrix of distro/shell/terminal emulator IME
houhoulis has quit [Remote host closed the connection]
<postmodern> phredus, ruby-install installs rubies into ~/.rubies (for normal users) and /opt/rubies/ (when ran as root/sudo)
<postmodern> phredus, note that you have to restart your shell to see the new versions
<jhass> chruby system will switch back to your system ruby
<postmodern> phredus, /usr/bin/ruby should always be your default go-to ruby
<jhass> unless you're on RHEL 6 :P
<phredus> ok got that, how do I return to my os's ruby
<jhass> chruby system will switch back to your system ruby
DoubleMalt has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
<phredus> "chruby system" is a command?
<postmodern> yep
<phredus> postmodern: jhass: pontiki: Perfect, thank you guys for all the help I will read from here on and fine tune, happy 4th
<postmodern> :thumbsup:
<pontiki> have a great one
<phredus> I was suspicious at first but I think I'm liking this minimal chruby approach :)
floatingpoint has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
sepp2k has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
<postmodern> once you get it setup, you forget it's there. it's like a toothbrush
burgestrand has joined #ruby
jaguarmagenta has joined #ruby
mrodrigues has joined #ruby
JeanCarloMachado has joined #ruby
ghr has joined #ruby
kavanagh has quit [Remote host closed the connection]
kavanagh has joined #ruby
jaguarmagenta has quit [Read error: No route to host]
jaguarmagenta has joined #ruby
bzb has quit [Quit: Leaving]
ghr has quit [Ping timeout: 240 seconds]
moei has quit [Quit: Leaving...]
<phredus> postmodern: cool thanks
ghr has joined #ruby
kavanagh_ has joined #ruby
karapetyan has joined #ruby
spudowiar has joined #ruby
kavanagh has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 240 seconds]
TriOptimum has joined #ruby
roamingdog has joined #ruby
GodFather_ has quit [Ping timeout: 250 seconds]
Sashimi_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has joined #ruby
yfeldblum has joined #ruby
ghr has joined #ruby
roamingdog has quit [Ping timeout: 258 seconds]
ghr has quit [Ping timeout: 240 seconds]
gomix has quit [Ping timeout: 250 seconds]
LoneHermit has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
ghr has joined #ruby
Sashimi has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
JeanCarloMachado has joined #ruby
steve has quit [Ping timeout: 244 seconds]
<shevy> a toothbrush
cd-rum has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deecross has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
crdpink has joined #ruby
Devalo has joined #ruby
crdpink2 has quit [Ping timeout: 250 seconds]
kavanagh has joined #ruby
kavanagh_ has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
cd-rum_ has joined #ruby
cd-rum has quit [Ping timeout: 260 seconds]
gomix has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
spider-mario has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
deecross has quit [Ping timeout: 264 seconds]
TomyLobo has quit [Ping timeout: 264 seconds]
Devalo has quit [Ping timeout: 246 seconds]
biberu has quit [Read error: Connection reset by peer]
sepp2k has quit [Ping timeout: 240 seconds]
<lupine> chruby + ruby-install = god
<lupine> (thanks postmodern :p)
ghr has quit [Ping timeout: 240 seconds]
coffeecupp has joined #ruby
kavanagh has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
<nickjj> lupine, just wait until you discover docker
<nickjj> then you don't need any of that
<lupine> nickjj: I can say nothing polite in response to that
kavanagh has joined #ruby
<lupine> my production deployments are based around seriously good Debian packages ^^
gomix has quit [Ping timeout: 240 seconds]
<nickjj> lupine, me too, except they happen to be wrapped in docker too
<lupine> sad face
<nickjj> why? now you get the advantage of pure isolation in dev too, and your buddies on windows, osx or linux can all run the same code
pawnbox has joined #ruby
<lupine> (I've actually been coming around to containers a fair bit recently, but the fact remains that the standard of the existing base is absolutely rubbish)
<nickjj> existing base of what? most official images are running debian inside
gareeoliz has quit [Remote host closed the connection]
ghr has joined #ruby
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lupine> if a new release to Debian security doesn't trigger an automated rebuild and redeploy of your container based on debian, you are in trouble
floatingpoint has quit [Quit: Goodnight]
pawnbox has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Parko has joined #ruby
Parko1 has joined #ruby
Parko1 has quit [Client Quit]
<nickjj> lupine, that would be up to your team, it could be done
<nickjj> also don't forget the compromise would be sandboxed to within the container, so the host isn't at any real risk as long as you're not doing something silly
zenlot6 has joined #ruby
solars has quit [Ping timeout: 260 seconds]
zenlot has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
<lupine> nickjj: the host is irrelevant. the user's data is what matters
<lupine> and yes, the problems with docker are much more about the community and common practices than with the actual tech
<lupine> containers are cool. extant containers and practices with them are less so
<nickjj> if you stick with official images you should be ok, they tend to be maintained by the teams in charge of that specific tech
ghr has quit [Ping timeout: 240 seconds]
<Nilium> Practices like having 1gb base images and nobody thinking it's weird to copy an entire OS into a container when none of it is used
karapetyan has quit [Remote host closed the connection]
<lupine> that kind of thing, aye
karapetyan has joined #ruby
<Nilium> Sorry, you're not my coworkers, I shouldn't screech about that.
<lupine> the inability to actually verify downloaded images sanely is also a problem
<nickjj> Nilium, those are other people tho
<Nilium> That one's pretty spooky.
<nickjj> you can use alpine based images and end up with very small images (~5mb larger than not using docker)
<lupine> if you start from debootstrap and always keep to your own container image server and also manage all build triggers yourself, you can get places
<lupine> also split build fromdeploy containers
<nickjj> lupine, when was the last time you looked at security btw?
<nickjj> because you can sign images
<Nilium> Most of my images are scratch-based
karapetyan has quit [Remote host closed the connection]
shinnya has joined #ruby
<nickjj> i forgot what version introduced it, but it was a long time ago, well over 6 months
<Nilium> i.e., no base image
pawnbox has joined #ruby
ghr has joined #ruby
LoneHermit has joined #ruby
<lupine> nickjj: you can sign them, but the verification is a pig and not done by default and not reliable even when it's done
mistermocha has quit [Remote host closed the connection]
solars has joined #ruby
<lupine> anyway, i'm not saying "don't use them", I'm saying "here's what needs to be done to use them sensibly"
<nickjj> it's actually pretty easy to sign and ensure you pull signed images, but you are right in that it's disabled by default
<lupine> I don't enjoy development environments as Vagrantfiles either
nando293921 has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
JeanCarloMachado has quit [Ping timeout: 276 seconds]
dc4 has joined #ruby
<Nilium> I'm just hoping CoreOS's take on containers.. takes off I guess.
<Nilium> Mostly because of Jetpack on FreeBSD
ghr has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 240 seconds]
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
smathy has joined #ruby
JeanCarloMachado has joined #ruby
gomix has joined #ruby
ledestin has joined #ruby
tristanp_ has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
Yzguy has quit [Client Quit]
ghr has joined #ruby
Yzguy has joined #ruby
jaguarmagenta has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
zeroDi has quit [Quit: WeeChat 1.5]
ghr has quit [Ping timeout: 240 seconds]
macsteps has joined #ruby
cyphase has joined #ruby
roamingdog has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
Bugboy1028 has quit [Remote host closed the connection]
karapetyan has joined #ruby
diegoviola has joined #ruby
Rodya_ has joined #ruby
ghr has joined #ruby
karapetyan has quit [Remote host closed the connection]
Bugboy1028 has joined #ruby
dc4 has quit [Ping timeout: 252 seconds]
xlegoman has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
Oog has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
roamingdog has quit [Remote host closed the connection]
kavanagh has quit [Quit: That's all folks!]
ghr has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
LoneHermit has quit [Remote host closed the connection]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennace_ has joined #ruby
anth0ny_ has joined #ruby
dc4 has joined #ruby
Arcaire has joined #ruby
deecross has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
<anth0ny_> I’m trying to install “vagrant-berkshelf” but it throws an error about not being able to install “rack” due to my ruby version. Oddly, my version should be acceptable (it is higher than needed). Can anyone provide advice? For the record, I know nothing about Ruby. http://pastie.org/pastes/10898061/text?key=ledbhrklfoool8nrwrfg
CybrGhost has joined #ruby
ghr has joined #ruby
xlegoman has quit [Quit: xlegoman]
spider-mario has quit [Remote host closed the connection]
gorsuch has left #ruby ["Killed buffer"]
ghr has quit [Ping timeout: 240 seconds]
Guest43 has joined #ruby
Guest43 has quit [Changing host]
Guest43 has joined #ruby
Fuzai has quit [Remote host closed the connection]
deecross has quit [Ping timeout: 264 seconds]
TriOptimum has quit [Quit: Leaving]
ghr has joined #ruby
<shevy> anth0ny_ what is your ruby version
mistermocha has joined #ruby
<shevy> ah
roamingdog has joined #ruby
<shevy> weird error indeed
<anth0ny_> yeah, I’m a bit clueless
symm- has quit [Ping timeout: 246 seconds]
<shevy> >= should mean "equal or higher than"
<shevy> if it would be ~= then I could understand the error perhaps
<shevy> do you have only one ruby version on your system?
<Yzguy> are you using rbenv or something
Neobenedict_ has joined #ruby
<Yzguy> 2.3.1 is not the default ruby version for mac
azor has quit [Quit: Connection closed for inactivity]
koooge has joined #ruby
<anth0ny_> Yzguy: I don’t believe I am using rbenv
<anth0ny_> is there any easy way to check?
LoneHerm_ has joined #ruby
<anth0ny_> shevy: I believe I only have one version
xlegoman has joined #ruby
<Yzguy> hrm
coffeecupp has quit [Ping timeout: 276 seconds]
<Yzguy> type "which ruby"
<shevy> I assume that bundler probably has found another ruby
<anth0ny_> “/usr/local/bin/ruby"
ghr has quit [Ping timeout: 240 seconds]
<anth0ny_> is there a way to see what the bundler would find?
<Yzguy> /usr/bin/ruby --version is where the system ruby is
<shevy> why bundler does not show the version and location of the ruby it found, beats me though
<Yzguy> did you install another version of ruby with brew or something
mistermo_ has joined #ruby
<anth0ny_> Yzguy: ah, there IS another version
<Yzguy> I think it's finding the system ruby for some reason
<anth0ny_> i installed ruby with brew. not sure how the 2.0.0 version stayed present
<Yzguy> well the 2.0.0 version is important for Mac stuff
<anth0ny_> oh, i didn’t know that it was included by default
<Yzguy> brew will install stuff into /usr/local/bin
<anth0ny_> so what is the typical method to upgrade the system’s ruby? is that a bad idea? or can I point bundler to the brew’s version of ruby?
<Yzguy> type "which gem"
<Yzguy> don't upgrade the system ruby
<anth0ny_> which gem points to the brew version
ICantCook has joined #ruby
spudowiar has quit [Quit: Leaving.]
<anth0ny_> (/usr/local/bin/gem)
<Yzguy> hm ok
<Yzguy> was trying to make sure it was using that, which it is so
karapetyan has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
<Yzguy> oh hm
ghr has joined #ruby
<Yzguy> vagrant comes with a packaged ruby i believe
<Yzguy> yep
<Yzguy> ~/.vagrant.d/gems/ruby
<anth0ny_> ahhh
tvw has quit []
<anth0ny_> so that’s likely the one that needs to be upgraded
<Yzguy> so it's prolly an issue with that ruby
<Yzguy> might just need to upgrade vagrant
macsteps has quit [Remote host closed the connection]
<shevy> cool
<shevy> so he then has 3 ruby versions? :-)
mistermocha has quit [Remote host closed the connection]
<Yzguy> I lied, the ruby is in /opt/vagrant/embedded/bin
<Yzguy> heh ya
<Yzguy> ruby 2.2.3p173 is my vagrant ruby version
<Yzguy> Vagrant 1.8.1
<Yzguy> would be cool if vagrant was rewritten in go or something
<Yzguy> to match all their other tools