apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
dc____ has joined #ruby
Y_Ichiro_ has joined #ruby
whitewalrus has quit [Remote host closed the connection]
Spami_ has joined #ruby
Su7 has joined #ruby
diegovio1 has joined #ruby
dserodio_ has joined #ruby
nifty___ has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
hoelzro has joined #ruby
yakko_ has joined #ruby
jpinnix____ has joined #ruby
nighter_ has joined #ruby
<Radar> Life is meaningless anyway
joshingly_ has joined #ruby
a______ has joined #ruby
jxport_ has joined #ruby
cbetta__ has joined #ruby
<Radar> Nothing matters in the grand scheme of things
emdub has joined #ruby
ltd has joined #ruby
ndrst_ has joined #ruby
acalewin_ has joined #ruby
bcavileer_ has joined #ruby
tadejm___ has joined #ruby
bjeanes__ has joined #ruby
Mars`` has joined #ruby
starkhallo has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
DarkFoxDK_ has joined #ruby
lectrick_ has joined #ruby
matled- has joined #ruby
rkalfane_ has joined #ruby
thesheff17_ has joined #ruby
kyote_ has joined #ruby
Takle_ has quit [Remote host closed the connection]
trollface has joined #ruby
bogeyd6_ has joined #ruby
bmurt has joined #ruby
northfurr has joined #ruby
KnownSyntax_ has joined #ruby
rfv_ has joined #ruby
kaichanvong___ has joined #ruby
braincra- has joined #ruby
ramblinpeck__ has joined #ruby
natewalck_ has joined #ruby
<northfurr> Anyone know how I can ignore deprecation warning regarding using “:should” in rspec?
nobitanobi has quit [Read error: Connection reset by peer]
TDJACR_ has joined #ruby
lupine_85 has joined #ruby
Inhaling_ has joined #ruby
olleromo___ has joined #ruby
[[[j4jackj]]] has joined #ruby
nobitanobi has joined #ruby
cnj_ has joined #ruby
_5kg_ has joined #ruby
george2_ has joined #ruby
sfr^^ has joined #ruby
caveat- has quit [Disconnected by services]
lfox_ has joined #ruby
troter_ has joined #ruby
BackEndCoder_ has joined #ruby
mist__ has joined #ruby
ggherdov__ has joined #ruby
caveat- has joined #ruby
jrhorn425 has joined #ruby
tvl has joined #ruby
ashleah_ has joined #ruby
chihhsin_ has joined #ruby
Seich_ has joined #ruby
Tranquility__ has joined #ruby
comma8|BNC has joined #ruby
jackyalcine has joined #ruby
bmurt has quit []
hanjianwei has quit [Ping timeout: 258 seconds]
gsd_ has joined #ruby
_lexjm has quit [*.net *.split]
FracV has quit [*.net *.split]
Spami has quit [*.net *.split]
rkalfane has quit [*.net *.split]
gsd has quit [*.net *.split]
starkhalo has quit [*.net *.split]
diegoviola has quit [*.net *.split]
j_mcnally has quit [*.net *.split]
spastorino has quit [*.net *.split]
mary5030 has quit [*.net *.split]
Takle has quit [*.net *.split]
a___ has quit [*.net *.split]
thejamespinto has quit [*.net *.split]
centrx has quit [*.net *.split]
Tuxero has quit [*.net *.split]
dideler has quit [*.net *.split]
r4v5 has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
radic_ has quit [*.net *.split]
weems has quit [*.net *.split]
bogeyd6 has quit [*.net *.split]
mbwe has quit [*.net *.split]
Hanmac has quit [*.net *.split]
MeltedLux has quit [*.net *.split]
chihhsin has quit [*.net *.split]
dc__ has quit [*.net *.split]
j4jackj has quit [*.net *.split]
braincrash has quit [*.net *.split]
_5kg has quit [*.net *.split]
armyriad has quit [*.net *.split]
_cake has quit [*.net *.split]
matled has quit [*.net *.split]
mist has quit [*.net *.split]
jalcine has quit [*.net *.split]
mgorbach has quit [*.net *.split]
benzrf has quit [*.net *.split]
emdub_ has quit [*.net *.split]
apeiros has quit [*.net *.split]
ltd_ has quit [*.net *.split]
hoelzro_ has quit [*.net *.split]
anekos_ has quit [*.net *.split]
jxport has quit [*.net *.split]
Paradox has quit [*.net *.split]
acalewin has quit [*.net *.split]
Guest85414______ has quit [*.net *.split]
joshingly has quit [*.net *.split]
cnj has quit [*.net *.split]
KnownSyntax has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
Tranquility_ has quit [*.net *.split]
george2 has quit [*.net *.split]
dserodio has quit [*.net *.split]
ndrst has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
TDJACR has quit [*.net *.split]
sfr^ has quit [*.net *.split]
epochwolf has quit [*.net *.split]
l3kn has quit [*.net *.split]
musicmatze has quit [*.net *.split]
Seich has quit [*.net *.split]
zz_jrhorn424 has quit [*.net *.split]
koell has quit [*.net *.split]
tessi_zz has quit [*.net *.split]
nifty__ has quit [*.net *.split]
CJD14______ has quit [*.net *.split]
rkjaer has quit [*.net *.split]
yo61 has quit [*.net *.split]
lectrick has quit [*.net *.split]
olleromo__ has quit [*.net *.split]
cbetta_ has quit [*.net *.split]
natewalck has quit [*.net *.split]
bcavileer has quit [*.net *.split]
vcoinminer______ has quit [*.net *.split]
bjeanes has quit [*.net *.split]
ggherdov_ has quit [*.net *.split]
rfv has quit [*.net *.split]
tadejm__ has quit [*.net *.split]
Zackio has quit [*.net *.split]
ramblinpeck_ has quit [*.net *.split]
HashNuke has quit [*.net *.split]
jeregrine has quit [*.net *.split]
halfdan has quit [*.net *.split]
ballPointPenguin has quit [*.net *.split]
thesheff17 has quit [*.net *.split]
troter has quit [*.net *.split]
jpinnix___ has quit [*.net *.split]
ikanobori has quit [*.net *.split]
kyote has quit [*.net *.split]
lupine has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
Klumben has quit [*.net *.split]
skarn has quit [*.net *.split]
Mars` has quit [*.net *.split]
lfox has quit [*.net *.split]
ashleah has quit [*.net *.split]
comma8 has quit [*.net *.split]
nighter has quit [*.net *.split]
Su7_ has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
Dwarf has quit [*.net *.split]
tris has quit [*.net *.split]
NameNotFound has quit [*.net *.split]
kireevco has quit [*.net *.split]
rimenes has quit [*.net *.split]
dopiee has quit [*.net *.split]
Pulpie has quit [*.net *.split]
doodlehaus has quit [*.net *.split]
WildBamboo-Josh has quit [*.net *.split]
nanoyak has quit [*.net *.split]
Synthead has quit [*.net *.split]
zorak8 has quit [*.net *.split]
jbueza has quit [*.net *.split]
Nahra has quit [*.net *.split]
axsuul has quit [*.net *.split]
Jamo has quit [*.net *.split]
felixjet has quit [*.net *.split]
InhalingPixels has quit [*.net *.split]
BraddBitt has quit [*.net *.split]
pandaant has quit [*.net *.split]
RealMarc has quit [*.net *.split]
end_guy has quit [*.net *.split]
St_Marx has quit [*.net *.split]
tanath has quit [*.net *.split]
DrCode has quit [*.net *.split]
cnj_ is now known as cnj
acalewin_ is now known as acalewin
george2_ is now known as george2
DarkFoxDK_ is now known as DarkFoxDK
Mars`` is now known as Mars`
matled- is now known as matled
ballPointPenguin has joined #ruby
kaichanvong___ is now known as kaichanvong
SouL_ has quit [Ping timeout: 251 seconds]
lupine_85 is now known as lupine
comma8|BNC is now known as comma8
lfox_ is now known as lfox
cbetta__ is now known as cbetta_
skarn has joined #ruby
dideler has joined #ruby
skarn is now known as Guest43064
olleromo___ is now known as olleromo__
halfdan_ has joined #ruby
musicmatze has joined #ruby
kobain has joined #ruby
kyote_ is now known as kyote
ramblinpeck__ is now known as ramblinpeck_
yo61_ has joined #ruby
Hanmac has joined #ruby
joshingly_ is now known as joshingly
jpinnix____ is now known as jpinnix___
kobain has quit [Max SendQ exceeded]
rfv_ is now known as rfv
troter_ is now known as troter
ixti has quit [Quit: WeeChat 1.0]
kobain has joined #ruby
lectrick_ is now known as lectrick
jeregrine has joined #ruby
rkjaer has joined #ruby
CJD14______ has joined #ruby
natewalck_ is now known as natewalck
HashNuke has joined #ruby
sepp2k has joined #ruby
epochwolf has joined #ruby
bjeanes__ is now known as bjeanes
thesheff17_ is now known as thesheff17
ikanobori has joined #ruby
Tranquility__ is now known as Tranquility_
nifty___ is now known as nifty__
bcavileer_ is now known as bcavileer
armyriad has joined #ruby
anekos_ has joined #ruby
kobain has quit [Max SendQ exceeded]
BlkDynmt has quit [Quit: BlkDynmt]
kobain has joined #ruby
yo61_ is now known as yo61
mgorbach has joined #ruby
tjr9898 has joined #ruby
r4v5 has joined #ruby
sepp2k1 has quit [Ping timeout: 240 seconds]
kobain has quit [Max SendQ exceeded]
Guest85414______ has joined #ruby
tessi_zz has joined #ruby
NameNotFound has joined #ruby
MeltedLux has joined #ruby
Dwarf has joined #ruby
l3kn has joined #ruby
tris has joined #ruby
MiracleBlue_ is now known as MiracleBlue
tris has quit [Max SendQ exceeded]
MeltedLux has quit [Max SendQ exceeded]
Dwarf has quit [Max SendQ exceeded]
kobain has joined #ruby
MeltedLux has joined #ruby
tris has joined #ruby
koell has joined #ruby
kobain has quit [Max SendQ exceeded]
diegovio1 is now known as diegoviola
kobain has joined #ruby
MiracleBlue has quit [Changing host]
MiracleBlue has joined #ruby
vcoinminer______ has joined #ruby
Zackio has joined #ruby
kobain has quit [Max SendQ exceeded]
lolmaus has quit [Ping timeout: 272 seconds]
kobain has joined #ruby
Dwarf has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
axsuul has joined #ruby
narcan has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
[[[j4jackj]]] is now known as j4jackj
ndrei has joined #ruby
voodoofish1 has joined #ruby
fbernier has quit [Ping timeout: 271 seconds]
volty has quit [Quit: Konversation terminated!]
Inhaling_ has quit []
voodoofish has quit [Ping timeout: 270 seconds]
Wolland has joined #ruby
fgo has joined #ruby
Photism_ has joined #ruby
frog0909_ has joined #ruby
tlarevo_ has joined #ruby
skip_freely has quit [Quit: skip_freely]
Alina-malina has quit [Read error: Connection reset by peer]
amitchellbullard has quit [Read error: Connection reset by peer]
andrewcarter_ has quit [Read error: Connection reset by peer]
pusewicz_ has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
pusewicz_ has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
Davey has quit [Excess Flood]
andrewcarter_ has joined #ruby
amitchellbullard has joined #ruby
dideler has quit [Ping timeout: 240 seconds]
tlarevo has quit [Ping timeout: 240 seconds]
msx has quit [Ping timeout: 240 seconds]
Photism2 has quit [Ping timeout: 240 seconds]
frog0909 has quit [Ping timeout: 240 seconds]
moritzs has joined #ruby
bruno- has joined #ruby
sdegutis_ has quit [Quit: Leaving...]
Cheezebox has joined #ruby
a______ has quit [Ping timeout: 260 seconds]
zorak8 has joined #ruby
<multi_io> can gem list --local tell you where it found the gems in the filesystem?
<shevy> multi_io don't think so
<multi_io> shevy: hm, ok
Davey has joined #ruby
sleepee has joined #ruby
<multi_io> can "require" tell you from where it loaded the require'd source?
bruno- has quit [Ping timeout: 250 seconds]
emocakes has quit []
<shevy> multi_io not quite... there is ... source_location tho
<Radar> multi_io: `gem env` will show you the paths where gems are installed.
<Radar> northfurr: I think there's instructions on how to do that on the deprecation message itself.
<multi_io> shevy, Radar ok thanks
manzo has joined #ruby
lolmaus has joined #ruby
emocakes has joined #ruby
PanPan has joined #ruby
GriffinHeart has joined #ruby
_lexjm has joined #ruby
nfk has quit [Quit: yawn]
davispuh has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
Rollabunna has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
emocakes has quit [Client Quit]
d2dchat has joined #ruby
freerobby has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
PanPan has quit [Remote host closed the connection]
dblessing has joined #ruby
dapz has joined #ruby
easier has joined #ruby
tobyo3 has left #ruby ["WeeChat 0.3.8"]
<multi_io> is rake distributed with ruby?
yfeldblu_ has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
<multi_io> I built/installed ruby-1.9.3-p547 (the latest 1.9.3) with rbenv, and now I have ~/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/rake/...
Rollabunna has joined #ruby
BlkDynmt has joined #ruby
oso96_2000 is now known as oso|away
<multi_io> well, looks like it
yfeldblum has quit [Ping timeout: 246 seconds]
<Radar> multi_io: yes it is
Cheezebox has quit [Remote host closed the connection]
bmurt has joined #ruby
Cheezebox has joined #ruby
Lewix has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
cajone has left #ruby [#ruby]
Lewix has joined #ruby
cougarten_ has quit [Ping timeout: 255 seconds]
fgo has quit [Remote host closed the connection]
davasaurous has joined #ruby
baum has quit [Ping timeout: 250 seconds]
davasaurous has quit [Client Quit]
davasaurous has joined #ruby
baum has joined #ruby
dblessing has quit [Quit: dblessing]
Cheezebox has quit [Ping timeout: 258 seconds]
sevenseacat has joined #ruby
jackyalcine is now known as jalcine
Wolland has joined #ruby
<multi_io> so, apparently rake 0.9.2.2 came with that ruby 1.9.3-p547
<multi_io> now, I did a 'gem install rake' in that rbenv / ruby1.9.3-p547 installation (before I knew rake was already in there)
<multi_io> now, gem list --local reports two installed rakes: rake (10.3.2, 0.9.2.2)
pu22l3r has joined #ruby
fabrice31 has joined #ruby
AlexRussia_ has joined #ruby
teddyp1cker has joined #ruby
<multi_io> when I require 'rake', it still only gets the older version (0.9.2.2) ??
pushnell has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
<pushnell> Hey folks … noob question. I’m setting up a ruby/rails environment for the first time on Ubuntu. I see that `ri Hash` returns “Nothing known about Hash”. How can I install the rdocs for ruby 1.9.3?
grokdancer has joined #ruby
<pushnell> This is Ubuntu 14.04
<multi_io> the 0.9.2.2 is installed in ~/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/rake/
<pushnell> (I promise to RTFM thoroughly!)
<multi_io> the 10.3.2 is installed in ~/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rake-10.3.2/
<multi_io> the latter doesn't seem to be in $:
<multi_io> strange
fgo has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
grokdancer has quit [Client Quit]
teddyp1cker has quit [Ping timeout: 272 seconds]
whitewalrus has joined #ruby
<shevy> pushnell ubuntu must have put them somewhere
tvw has quit []
binaryhat_ has quit [Quit: Leaving]
binaryhat has joined #ruby
<shevy> multi_io when something is installed in gems/ directory then it means that it was installed as an add-on through rubygems.org (almost always)
kaspergrubbe has quit [Remote host closed the connection]
<pushnell> shevy: yeah, Ubuntu has 1083 packages which match “ruby” … trying to find what I need. Also not sure if best done through a package or if I need a gem of some sort.
<shevy> pushnell there is no gem that has the ruby docu as far as I know
<pushnell> shevy: k, thanks, that helps :)
<shevy> in normal compilation from source, there is this step:
<shevy> make[1]: Leaving directory '/Depot/Temp/ruby-2.1.2'
<shevy> Generating RDoc documentation
<shevy> Parsing sources...
Takle has joined #ruby
<shevy> 19% [185/962] ext/openssl/ossl_pkcs7.c
tectonic has joined #ruby
<shevy> and so forth. this generates all the RDoc documentation
<multi_io> shevy: OK, yeah, I did install rake 10.3.2 via gem install
<multi_io> how do I get that into the load path ($:) ?
trollface is now known as Paradox
bmurt has quit []
<shevy> moment
<multi_io> I mean, should I have to add that to the load path?
<shevy> no
<shevy> but I wanted to first check on something above
<shevy> ok
<shevy> multi_io problem is that the home dir is not in the path by default
<shevy> I don't know how to easily get them registered for ruby to search through
<northfurr> are arguments passed into a ruby method stored into an array?
<shevy> I think there is some GEM constant you can set
<shevy> multi_io but the best would be to not have to modify anything :)
<shevy> northfurr logically that depends on how you call that method
<shevy> >> def foo(i); puts i.class; end; foo 'hi there'
<eval-in_____> shevy => String ... (https://eval.in/193312)
<shevy> >> def foo(i); puts i.class; end; foo [1,2]
<eval-in_____> shevy => Array ... (https://eval.in/193313)
skip_freely has joined #ruby
serena has joined #ruby
<northfurr> can you suggest how to write a method that sums no set amount of numbers that are passed to it?
PanPan has joined #ruby
serena has left #ruby [#ruby]
lazyguru has joined #ruby
thomaslnx has joined #ruby
<shevy> I don't get your sentence
<shevy> "sums no set" ? what does that mean?
<easier> do you mean any set?
Takle has quit [Ping timeout: 246 seconds]
<multi_io> northfurr: def sum(*numbers)
<gr33n7007h> northfurr, def foo(*nums); [*nums].inject(:+); end
<shevy> ahh that is what he means
catbusters_ has joined #ruby
<shevy> varargs
<multi_io> [*nums] == nums
<multi_io> ?
fgo has quit [Remote host closed the connection]
<gr33n7007h> multi_io, yep, silly me
<gr33n7007h> >> def foo(*nums); nums.inject(:+); end; foo 1,2,3,4,5
<eval-in_____> gr33n7007h => 15 (https://eval.in/193314)
gccostabr has quit [Quit: ZZZzzz…]
zeroNones has joined #ruby
grenierm has joined #ruby
catbusters_ has quit [Client Quit]
KLVTZ has joined #ruby
Scotteh has joined #ruby
<gr33n7007h> >> class Array; def sum; self.inject(:+); end; end; [2,34,56,78].sum
<eval-in_____> gr33n7007h => 170 (https://eval.in/193315)
tlarevo_ has quit [Remote host closed the connection]
Rollabunna has quit [Read error: Connection reset by peer]
benzrf has joined #ruby
thomaslnx has left #ruby ["Saindo"]
tlarevo has joined #ruby
chihhsin_ has quit [Quit: leaving]
catbusters_ has joined #ruby
chihhsin has joined #ruby
<multi_io> shevy: my $: is ["/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/site_ruby/1.9.1", "/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/site_ruby/1.9.1/x86_64-linux", "/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/site_ruby", "/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/vendor_ruby/1.9.1", "/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/vendor_ruby/1.9.1/x86_64-linux", "/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/vendor_ruby", "/home/olaf/.rbe
<multi_io> so there are all kinds of directories from the rbenv-managed ruby installation in there
bruno- has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<multi_io> but not the one where the gem-installed rake is located, which is ~/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/
zeroNones has joined #ruby
<multi_io> isn't that strange?
grenierm has quit [Quit: grenierm]
catbusters_ has quit [Client Quit]
tlarevo has quit [Ping timeout: 272 seconds]
cirn0 has joined #ruby
catbusters_ has joined #ruby
teamplayer has joined #ruby
catbusters_ has quit [Client Quit]
Cecen_ has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
KnownSyntax_ is now known as KnownSyntax
<Cecen_> Does anyone have any suggestions on something I can read quickly to brush up on Ruby well enough to make an interviewer think I know what I'm talking about?
<Cecen_> I have a few books, but it's too much/too in-depth for skimming :[
<sevenseacat> thats a scary idea
teamplayer has quit [Remote host closed the connection]
catbusters_ has joined #ruby
greenride has joined #ruby
cirn0 has quit [Ping timeout: 272 seconds]
HelperW___ has joined #ruby
catbusters_ has quit [Client Quit]
bmurt has joined #ruby
KnownSyntax has quit []
KnownSyntax has joined #ruby
freerobby has quit [Quit: Leaving.]
<sevenseacat> i would suggest actually learning what you're talking about
HelperW___ has quit [Ping timeout: 272 seconds]
amystephen has quit [Quit: amystephen]
_shrine has quit [Ping timeout: 250 seconds]
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emocakes has joined #ruby
qualiabyte has joined #ruby
freerobby has joined #ruby
charliesome has joined #ruby
manzo has quit [Ping timeout: 272 seconds]
davasaurous has quit [Remote host closed the connection]
MonsieurApple has left #ruby ["https://oc.tc"]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
jhass is now known as jhass|off
Alx08-ru has joined #ruby
AlexRussia_ has quit [Ping timeout: 255 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
hfp has quit [Quit: bye]
hfp_work has quit [Quit: bye]
diegoviola has joined #ruby
d2dchat has quit [Remote host closed the connection]
moritzschaefer has joined #ruby
hfp_work has joined #ruby
Jarboe has joined #ruby
Adran has quit [Quit: Este é o fim.]
KC9YDN has quit [Quit: beebop]
moritzs has quit [Ping timeout: 272 seconds]
pu22l3r has quit [Remote host closed the connection]
Guest43064 has quit [Changing host]
Guest43064 has joined #ruby
Guest43064 is now known as skarn
axsuul has quit [Read error: No route to host]
dayepa has joined #ruby
axsuul has joined #ruby
voodoofish1 has quit [Ping timeout: 272 seconds]
greenride has quit [Ping timeout: 255 seconds]
mocfive has quit [Remote host closed the connection]
narcan has joined #ruby
mocfive has joined #ruby
Adran has joined #ruby
dayepa has quit [Ping timeout: 272 seconds]
w09x_ has joined #ruby
arup_r has joined #ruby
awkwords has joined #ruby
<awkwords> trying to jam some stuff into a hash, i cant get my syntax right..
<awkwords> @authorized_repo_list = {}
<awkwords> @authorized_repo_list = {:name"#{repo['name']} => repo['clone_url'] }
<awkwords> err thats all messed up
jottr_ has quit [Ping timeout: 258 seconds]
<awkwords> but you get what im trying to do
pu22l3r has joined #ruby
mocfive has quit [Ping timeout: 255 seconds]
krz has joined #ruby
<sevenseacat> thats.... also scary
<sevenseacat> i honestly dont know what that is trying to do
<awkwords> i got a a handle on repo with goes through a page and needs to grab the #{name} as the key and make the #{value} clone_url
w09x has quit [Ping timeout: 260 seconds]
machete has quit [Ping timeout: 245 seconds]
j_mcnally has joined #ruby
pu22l3r has quit [Ping timeout: 258 seconds]
machete has joined #ruby
<fennec> okay so
<fennec> do you want a list of hashes, each of which contains name => string and somethingelse => string?
<fennec> or do you want a hash of names to URLs?
<fennec> or what?
bmurt has quit []
<awkwords> names to urls
davasaurous has joined #ruby
pu22l3r has joined #ruby
<fennec> i would personally suggest not calling it a list if it's a hash. people will expect an Array, not a Hash, if it's called that.
<fennec> as for the hash, it's just {repo[:name] => repo[:url]}
<fennec> or {repo['name'] => repo['clone_url']} or whatever the field is
HelperW___ has joined #ruby
davasaur_ has joined #ruby
<fennec> brace. key, rocket, value. key, rocket, value. close brace. nothing more than that. no need to go into string-interpolation mode or anything.
<awkwords> oic
fgo has joined #ruby
<awkwords> works like a champ fennec thanks
davasaurous has quit [Ping timeout: 260 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
davasaur_ has quit [Ping timeout: 260 seconds]
HelperW___ has quit [Ping timeout: 272 seconds]
machete has quit [Ping timeout: 258 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Scotteh has quit [Ping timeout: 250 seconds]
saarinen has joined #ruby
machete has joined #ruby
saarinen has quit [Client Quit]
saarinen has joined #ruby
KLVTZ has quit [Ping timeout: 258 seconds]
fabrice31 has joined #ruby
Alx08-ru is now known as AlexRussia
stnly has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 250 seconds]
davasaurous has joined #ruby
flagg0204 has joined #ruby
moritzschaefer has quit [Ping timeout: 272 seconds]
braincra- has quit [Quit: bye bye]
Cheezebox has joined #ruby
<multi_io> what does require 'foo' actually do?
<multi_io> I thought it scans all directories in $: for foo.rb and loads the first one it finds.
teddyp1cker has joined #ruby
<multi_io> apparently not.
fgo has quit [Remote host closed the connection]
<sevenseacat> why apparently not?
braincrash has joined #ruby
<multi_io> my $: is: ["/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/bundler-1.7.3/lib", "/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/site_ruby/1.9.1", "/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/site_ruby/1.9.1/x86_64-linux", "/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/site_ruby", "/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/vendor_ruby/1.9.1", "/home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/vendor_ruby/1.9.1/x86_64-linux",
<sevenseacat> !gist because that's too long for a single message
<helpa> http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<sevenseacat> also a lot easier to read
<multi_io> when I run require 'bundler', it loads it from /home/olaf/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/bundler-1.7.3/lib/bundler.rb
<sevenseacat> seems legit, thats the first thing in your load path
josh has joined #ruby
josh is now known as Guest33041
<multi_io> (according to Bundler.method(:bundle_path).source_location)
<multi_io> hm, what the hell
<multi_io> you're right :P
<multi_io> so installing that gem extended $: ?
<multi_io> is that a common technique?
skip_freely has quit [Quit: skip_freely]
teddyp1cker has quit [Ping timeout: 260 seconds]
<sevenseacat> i suspect it was something in rbenv that did it.
<multi_io> haaa
<sevenseacat> its shims or whatever it calls them
<multi_io> wait, that first element in $: only gets added by the require 'bundler' call itself
<multi_io> before that, it wasn't there.
<sevenseacat> hmm, i see the same behaviour
<multi_io> >> $:.map{|p| p File.exists? "#{p}/bundler.rb" }
<eval-in_____> multi_io => false ... (https://eval.in/193327)
<multi_io> all false, before the require
* sevenseacat waits for someone with mad ruby-fu to come and explain it in two lines
BlkDynmt_ has joined #ruby
Cheezebox has quit [Remote host closed the connection]
absolutezeroff has joined #ruby
BlkDynmt has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
sleepee has quit [Ping timeout: 272 seconds]
oivoodoo_ has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
saarinen has quit [Quit: saarinen]
northfurr has quit [Quit: northfurr]
Guest33041 has quit [Quit: Leaving]
davasaurous has quit [Remote host closed the connection]
greenride has joined #ruby
sleepee has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
josh__01 has joined #ruby
voodoofish has joined #ruby
teamplayer has joined #ruby
amystephen has joined #ruby
awkwords has quit [Quit: leaving]
amystephen has quit [Client Quit]
diegoviola has quit [Remote host closed the connection]
absolutezeroff has quit [Quit: absolutezeroff]
w09x has joined #ruby
davasaurous has joined #ruby
w09x_ has quit [Ping timeout: 246 seconds]
HelperW___ has joined #ruby
CookieJar has joined #ruby
fgo has joined #ruby
sinkensabe has joined #ruby
fgo has quit [Read error: Connection reset by peer]
fgo has joined #ruby
diegoviola has joined #ruby
maestrojed has joined #ruby
greenride has quit [Ping timeout: 258 seconds]
HelperW___ has quit [Ping timeout: 250 seconds]
teamplayer has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 255 seconds]
fgo has quit [Ping timeout: 258 seconds]
w09x_ has joined #ruby
charliesome has quit [Quit: zzz]
tcrypt has joined #ruby
zettam has quit [Read error: Connection reset by peer]
w09x has quit [Ping timeout: 260 seconds]
xenomorph is now known as {xenomorph}
tcrypt has quit [Remote host closed the connection]
oivoodoo_ has quit [Remote host closed the connection]
rimenes has joined #ruby
yacks has joined #ruby
InhalingPixels has joined #ruby
tkuchiki has joined #ruby
hamakn has joined #ruby
charliesome has joined #ruby
ner0x has quit [Quit: Leaving]
wallerdev has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_2_NelimarLopez has joined #ruby
joshingly has quit []
joshingly has joined #ruby
_2_NelimarLopez has quit [Client Quit]
w09x_ has quit []
davasaurous has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
tjr9898 has quit [Ping timeout: 250 seconds]
nanoyak has joined #ruby
davasaurous has joined #ruby
Ulrike_Rayne has quit [Quit: ZNC - http://znc.in]
RustyShackleford has joined #ruby
nuck has quit [Quit: Nuck Off]
freerobby has quit [Quit: Leaving.]
UKn0Me has quit [Ping timeout: 245 seconds]
nuck has joined #ruby
tlarevo has joined #ruby
mattmcclure_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
fgo has joined #ruby
Guest80615 has quit [Read error: Connection reset by peer]
josh__01 has quit [Quit: Leaving]
Spami_ has quit [Quit: This computer has gone to sleep]
mattmcclure_ is now known as mattmcclure
pu22l3r_ has joined #ruby
jayne has joined #ruby
gsd_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
siwica has joined #ruby
pasv_ has joined #ruby
zorak8 has quit [Ping timeout: 255 seconds]
yakko_ has quit [Ping timeout: 260 seconds]
arup_r has quit [Quit: Leaving.]
diegoviola has quit [Quit: WeeChat 1.0]
klmlfl has joined #ruby
freerobby has joined #ruby
bluOxigen has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
teamplayer has joined #ruby
tlarevo_ has joined #ruby
pu22l3r has joined #ruby
mocfive has joined #ruby
MasterPiece has joined #ruby
tlarevo has quit [Ping timeout: 255 seconds]
siwica has quit [Ping timeout: 260 seconds]
HelperW___ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
pu22l3r has quit [Ping timeout: 258 seconds]
mocfive has quit [Remote host closed the connection]
nobitanobi has joined #ruby
duncannz has joined #ruby
mocfive_ has joined #ruby
teamplayer has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
HelperW___ has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
axsuul has quit [Read error: No route to host]
elfo222 has quit [Ping timeout: 245 seconds]
rikai has quit [Ping timeout: 272 seconds]
teddyp1cker has quit [Ping timeout: 250 seconds]
BlkDynmt_ has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
Spami_ has joined #ruby
gsd has joined #ruby
yacks has quit [Ping timeout: 258 seconds]
axsuul has joined #ruby
GriffinHeart has joined #ruby
matled has quit [Remote host closed the connection]
matled has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
fgo has quit [Remote host closed the connection]
<pizzaops> Is there a reason this returns nil no matter what? Is it because I need to return after the end of the loop?
maestrojed has joined #ruby
GriffinHeart has quit [Ping timeout: 250 seconds]
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
Ulrike_Rayne has joined #ruby
emmesswhy has joined #ruby
Jarboe has quit []
RustyShackleford has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
greenride has joined #ruby
greenride has joined #ruby
pu22l3r has joined #ruby
davasaurous has quit [Remote host closed the connection]
gaboesquivel has joined #ruby
davasaurous has joined #ruby
bruno- has joined #ruby
davasaurous has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 272 seconds]
easier has quit [Ping timeout: 250 seconds]
davasaurous has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
dingus_khan has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
emmesswhy has quit [Quit: Leaving]
dkphenom has joined #ruby
ta has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Remote host closed the connection]
Alina-malina has joined #ruby
<dkphenom> im new to ruby, and can't figure this out, maybe someone can help, I need to create an array with n copies of seperate objects passed to it...
mostlybadfly has quit [Quit: Connection closed for inactivity]
sigurding has joined #ruby
qohelet_ has joined #ruby
qohelet_ has quit [Client Quit]
maestrojed has quit [Quit: Computer has gone to sleep.]
yeticry has quit [Read error: Connection reset by peer]
i0n has joined #ruby
<i0n> so i have a class with a instance variable i need to access in another class... i do require_relative 'myfile.rb'
<i0n> set a attr_accessor :instance_variable
teddyp1cker has joined #ruby
<i0n> and attr_reader in the other class
<i0n> is this the right way to pass variables between classes?
yeticry has joined #ruby
rkalfane_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
mocfive_ has quit [Remote host closed the connection]
mocfive has joined #ruby
<dkphenom> anyone?
toretore has joined #ruby
kyb3r_ has joined #ruby
<Hanmac> dkphenom:
<Hanmac> >> ["a", "b", "c"] * 3
<eval-in_____> Hanmac => ["a", "b", "c", "a", "b", "c", "a", "b", "c"] (https://eval.in/193331)
<Hanmac> like that?
apeiros_ is now known as apeiros
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<dkphenom> @hanmac, not quite, something like Array.new(n) { |x| x << obj }
<dkphenom> but my condition inside { } is wrong :/
<dkphenom> i want them to be separate objects, not coipes to the same obj
<dkphenom> if that makes sense...
<Hanmac> did you try that? Array.new(n) { obj.dup }
mocfive has quit [Ping timeout: 260 seconds]
HelperW___ has joined #ruby
sinkensabe has joined #ruby
<dkphenom> oh man
<dkphenom> im so dumb!
<dkphenom> thanks hanmac
<dkphenom> im a ruby newb :/
qohelet_ has joined #ruby
W0rmDr1nk has joined #ruby
rkalfane has joined #ruby
sinkensabe has quit [Remote host closed the connection]
MasterPiece has quit [Quit: Leaving]
HelperW___ has quit [Ping timeout: 272 seconds]
MasterPiece has joined #ruby
MasterPiece has quit [Remote host closed the connection]
MasterPiece_ has joined #ruby
AlexRussia_ has joined #ruby
mocfive has joined #ruby
AlexRussia has quit [Remote host closed the connection]
<Hanmac> damm i need to find a gems constellation where Gem A does need gem B and gem B does also need gem A but both as runtime dependency
<apeiros> Hanmac: force the situation and create those two gems?
<Hanmac> hm yeah ok that would be possible too, but i wanted to see if there is already something like that ...
mofai has joined #ruby
oleo__ has quit [Quit: Verlassend]
<Hanmac> for sample "test-unit" <> "power_assert" have a one with different types ... like "test-unit" does runtime depend of "power_assert" and "power_asset" does development depend on "test-unit"
<Hanmac> "hoe" and "minitest" does have one with each other as development dependency
<Hanmac> and "hoe-gemspec2" is the funniest because it does have itself as development dependency ;D
MasterPiece_ has quit [Changing host]
MasterPiece_ has joined #ruby
MasterPiece_ is now known as MasterPiece
chipotle has quit [Quit: cya]
GriffinHeart has joined #ruby
decoponio has joined #ruby
starkhallo has quit [Ping timeout: 246 seconds]
qohelet_ has quit [Quit: qohelet_]
iam3fun has joined #ruby
Channel6 has quit [Quit: Leaving]
qohelet_ has joined #ruby
binaryhat has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
tagrudev has joined #ruby
GriffinHeart has quit [Ping timeout: 258 seconds]
Juzdan has joined #ruby
binaryhat has joined #ruby
apeiros has quit [Remote host closed the connection]
lazyguru has quit [Quit: ZNC - http://znc.in]
qohelet_ has quit [Client Quit]
apeiros has joined #ruby
i0n has quit [Ping timeout: 255 seconds]
danijoo_ has quit [Read error: Connection reset by peer]
jxf has joined #ruby
Juzdan has quit [Remote host closed the connection]
mijicd has joined #ruby
mijicd has quit [Remote host closed the connection]
danijoo has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
Juzdan has joined #ruby
ValicekB has quit []
mijicd has joined #ruby
mijicd has quit [Remote host closed the connection]
aganov has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
greenride has left #ruby [#ruby]
mijicd has joined #ruby
RustyShackleford has joined #ruby
Juzdan has quit [Ping timeout: 260 seconds]
aagdbl has joined #ruby
mijicd has quit [Client Quit]
bruno- has quit [Ping timeout: 272 seconds]
<multi_io> so, why is there a "gem build" command when you could also do it with a Rakefile?
<multi_io> as an additional alternative?
ht__th has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
<multi_io> i.e. you can build the gem in a Rakefile task, using a gemspec defined in the Rakefile, right?
<multi_io> is that frowned upon?
pabloh has joined #ruby
lazyguru has joined #ruby
abuzze has quit [Remote host closed the connection]
bal has joined #ruby
InhalingPixels has joined #ruby
abuzze has joined #ruby
hanjianwei has joined #ruby
_tpavel has joined #ruby
amundj has joined #ruby
tobago has joined #ruby
tobago has quit [Changing host]
tobago has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
Tomme has joined #ruby
sparrovv has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
nuck has quit [Excess Flood]
mr-foobar has joined #ruby
abuzze_ has joined #ruby
sinkensabe has joined #ruby
Adran has quit [Ping timeout: 258 seconds]
Kruppe has quit [Ping timeout: 258 seconds]
MasterPiece has quit [Ping timeout: 258 seconds]
xiphias has quit [Ping timeout: 258 seconds]
relix has joined #ruby
MasterPiece has joined #ruby
xiphias has joined #ruby
mocfive has quit [Remote host closed the connection]
amundj has quit [Ping timeout: 258 seconds]
nuck has joined #ruby
mocfive has joined #ruby
cougarten_ has joined #ruby
bigkevmcd has joined #ruby
cnj has quit [Ping timeout: 258 seconds]
WormDrink has quit [Ping timeout: 258 seconds]
amundj has joined #ruby
abuzze has quit [Ping timeout: 272 seconds]
jxf has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
jxf has joined #ruby
cnj has joined #ruby
abuzze_ has quit [Ping timeout: 260 seconds]
hanjianwei has quit [Read error: Connection reset by peer]
Adran has joined #ruby
davasaurous has quit [Remote host closed the connection]
Envek has quit [Ping timeout: 250 seconds]
Kruppe has joined #ruby
mocfive has quit [Ping timeout: 272 seconds]
davasaurous has joined #ruby
cougarten_ has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
dumdedum has joined #ruby
fabrice31 has joined #ruby
BBBThunda has joined #ruby
WormDrink has joined #ruby
Wolland_ has joined #ruby
<tagrudev> certainty ping
rikai has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
HelperW___ has joined #ruby
zettam has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
jack_rabbit has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dumdedum has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
txdv has quit [Read error: Connection reset by peer]
klaut has joined #ruby
HelperW___ has quit [Read error: No route to host]
HelperW___ has joined #ruby
krisquigley has joined #ruby
voodoofish has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Read error: Connection reset by peer]
klaut has quit [Client Quit]
axsuul has quit [Read error: Connection reset by peer]
voodoofish has joined #ruby
cornfeedhobo has quit [Ping timeout: 260 seconds]
sparrovv has quit [Remote host closed the connection]
cornfeedhobo has joined #ruby
sparrovv has joined #ruby
axsuul has joined #ruby
emocakes has quit []
aagdbl has quit [Quit: Leaving]
mary5030_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
sparrovv has quit [Ping timeout: 260 seconds]
emocakes has joined #ruby
bruno- has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
tjr9898_ has quit []
anicet is now known as juni0r
yottanami has joined #ruby
<yottanami> How can I find filename of a class !?
dumdedum has joined #ruby
nayena has joined #ruby
nayena has left #ruby [#ruby]
GriffinHeart has quit [Ping timeout: 250 seconds]
axsuul has joined #ruby
arup_r has joined #ruby
hamakn has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 255 seconds]
AxonetBE has joined #ruby
p0sixpscl has joined #ruby
narcan has joined #ruby
lolmaus has quit [Remote host closed the connection]
dc____ has quit [Remote host closed the connection]
ValicekB has joined #ruby
alex88 has joined #ruby
AlexRussia_ has quit [Remote host closed the connection]
AlexRussia_ has joined #ruby
<Hanmac> yottanami: classes does not have file names
<Hanmac> yottanami: the only thing you can do is : FooClass.instance_method(method_name).source_location ... but that might return nil
jack_rabbit has quit [Ping timeout: 272 seconds]
oivoodoo_ has joined #ruby
mityaz has joined #ruby
<certainty> tagrudev: pong
synergyz has quit [Remote host closed the connection]
apeiros has joined #ruby
fabrice31 has joined #ruby
<yottanami> Hanmac: Why nil ?
<arup_r> I am sometime getting `nil` as workplace param value. That caused error when `nil.id` comes into place.. I want to prevent it.. How good can I handle this ? https://gist.github.com/aruprakshit/b1f20d481a24ca3ac6d7
<Hanmac> yottanami: source_location does not work for compiled methods
krisquigley has quit [Remote host closed the connection]
<Hanmac> arup_r: did you try #rubyonrails ? for me it does look like your params might be wrong
davasaurous has quit []
fgo has quit [Remote host closed the connection]
davasaurous has joined #ruby
<arup_r> It is Rubyish,, not Railsh. I am asking for smart handling..
fgo has joined #ruby
shredding has joined #ruby
<sevenseacat> 'i have a problem with graceful degradation of a rails scope... but its nothing to do with rails i swear'
mkaesz has joined #ruby
tvw has joined #ruby
<toretore> arup_r: you don't handle it. it is the responsibility of the caller to give you the correct arguments
<toretore> workplace in this case is not optional
<toretore> thus if you get nil that's an error from the caller side
sk87 has joined #ruby
<arup_r> toretore: you got my point. Just give me a moment,. I will update Gist with more code..
fgo has quit [Ping timeout: 250 seconds]
<toretore> you should have pasted all the code in the first place
w1xz has joined #ruby
tvl is now known as tobiasvl
<arup_r> Current user don't get assigned or owned any workplace.. so that's causing error.. But I need to handle it..
<arup_r> I can do explicit `nil` chekc.. But will that be a good idea ?
kaspergrubbe has joined #ruby
<toretore> yes
<toretore> of course
choke has joined #ruby
<toretore> if you expect nil, you have to be explicit
drager has quit [Changing host]
drager has joined #ruby
<toretore> your fetch_office_* should NOT expect nil
Heartbroken has quit [Quit: pai pai...]
<arup_r> Inside User model method.. I need to check the `nil` presence.. Will it be a good idea ?
<toretore> no
<toretore> no no no
<toretore> before
linojon has joined #ruby
<arup_r> If nil..then you want me not to call the model method right ?
<toretore> yes
rikai has quit [Ping timeout: 246 seconds]
<arup_r> Then what should I send from the interactor method ?
abuzze has joined #ruby
<toretore> what
<arup_r> sorry **return** ?
<toretore> what
<toretore> you mean run?
<arup_r> Yes...
<toretore> that's your problem
choke has quit [Ping timeout: 250 seconds]
<toretore> why do you have a possible nil there in the first place?
<arup_r> It is an odd case
siwica has joined #ruby
<arup_r> If a user is created.. but not assigned to any workplace..
<toretore> ok, so why would you ever be running this on such a user?
linojon has quit [Ping timeout: 272 seconds]
halfdan_ is now known as halfdan
<arup_r> It is a report out of many in a Dashboard..
robbyoconnor has joined #ruby
<arup_r> so we can't hide it..
<arup_r> Need to handle it..
<toretore> meaning?
Heartbroken has joined #ruby
<toretore> what is the contract of the run method? what is it expected to return?
<arup_r> suppose we have a Dashboard.. where A, B, C , D kind of reports are getting displaced
davasaurous has quit []
<arup_r> those reports are giving monthly or yearly data.. as per the need
anarang has joined #ruby
<arup_r> there this report is currently giving error as per the reason mentioned above
codecop has joined #ruby
<toretore> why is it running this report on a user with no workplace?
Wolland_ is now known as Wolland
<toretore> you have to be more explicit about how each piece of code is expected to behave
<arup_r> It is a general report.. it fires on the currently logged in User
<toretore> from where?
timonv_ has quit [Ping timeout: 250 seconds]
<arup_r> from UI
<toretore> do you not control this code?
<arup_r> I am controlling
<toretore> ok, so you wrote the calling code?
<arup_r> But I am currently working a maintainer
<arup_r> Joined this project 4 months back
<arup_r> Now seeing this error..
<arup_r> No idea.. How well I can fix this.. So asked her
<toretore> you're still not answering my questions
mattmcclure has quit [Quit: Connection closed for inactivity]
<toretore> *why* is this being called for a user with no workplace?
<arup_r> Humm.. Let me think to answer this...
user111 has joined #ruby
LiohAu_ has joined #ruby
wpp has joined #ruby
<arup_r> Actually those all 5 reports on a page runs when currently logged in user comes to the page..
<arup_r> then controller sends param as it is set to the model...
<arup_r> to fetch data
<arup_r> But as per the current code.. "if no workplace" thing is not handled in the codebase
<arup_r> It assumed all users should be assigned to atleast one workplace.. But that's wrong..
<arup_r> toretore
<arup_r> Am I clear ?
andrewlio has joined #ruby
<toretore> ok, so you've found the source of the mistake
a__ has joined #ruby
<toretore> now correct it
<user111> I want to pass an parameter to a rspec testfile. something like this: rspec a_spec.rb parameter is that possible?
<arup_r> humm
yottanami has quit [Ping timeout: 260 seconds]
axsuul has quit [Ping timeout: 258 seconds]
arup_r has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
maasha has joined #ruby
<user111> rspec -h shows nothing like that
armyriad has quit [Ping timeout: 255 seconds]
armyriad has joined #ruby
a__ has quit [Ping timeout: 258 seconds]
mist__ is now known as mist
kalusn has joined #ruby
charliesome has quit [Quit: zzz]
terlar has joined #ruby
qba73 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
ta has joined #ruby
<maasha> Hi, I am trying to identify bottle necks form a ruby-prof: https://gist.github.com/maasha/45db7b8fa3c53eb98759
<maasha> Correct me if I am wrong, but this is it: 99.89% 10.89% 342.584 37.364 0.000 305.221 1 Range#each ?
charliesome has joined #ruby
bruno- has joined #ruby
<maasha> And is there a way to identify that Range#each call in the source?
N1cXP8ChUBFe3 has joined #ruby
atmosx has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
yottanami has joined #ruby
HelperW has joined #ruby
ptrrr has joined #ruby
GriffinHeart has joined #ruby
j_mcnally has quit [Quit: さよなら]
bruno- has quit [Ping timeout: 260 seconds]
HelperW___ has quit [Ping timeout: 246 seconds]
Blue_Ice_ has quit [Ping timeout: 245 seconds]
agjacome has joined #ruby
_lazarevsky has joined #ruby
Juanchito has joined #ruby
<_lazarevsky> good morning all
<_lazarevsky> I've got a quick question
enriclluelles has joined #ruby
<_lazarevsky> I wanna send an http GET request and would like to extract a parameter called "balls" from it
txdv has joined #ruby
FracV_ has joined #ruby
ramfjord has joined #ruby
dopiee has joined #ruby
fbernier has joined #ruby
ARCADIVS has joined #ruby
jbueza has joined #ruby
felixjet has joined #ruby
WildBamboo-Josh has joined #ruby
Nahra has joined #ruby
20WABIUE7 has joined #ruby
20WABI930 has joined #ruby
mbwe1 has joined #ruby
tanath has joined #ruby
fold has joined #ruby
hfp has joined #ruby
Jamo has joined #ruby
BraddBitt has joined #ruby
DrCode has joined #ruby
pandaant has joined #ruby
end_guy has joined #ruby
Pulpie has joined #ruby
hfp has quit [Max SendQ exceeded]
Nahra has quit [Max SendQ exceeded]
fold has quit [Max SendQ exceeded]
terlar has quit [Quit: WeeChat 1.0]
DrCode has quit [Max SendQ exceeded]
tanath has quit [Max SendQ exceeded]
Nahra has joined #ruby
hfp has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
DrCode has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
zettam_ has joined #ruby
fold has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
armyriad has joined #ruby
MiracleBlue has quit [Changing host]
MiracleBlue has joined #ruby
terlar has joined #ruby
user111 has quit [Quit: Page closed]
ionelmc has quit [Ping timeout: 272 seconds]
bedouin_ has quit [Ping timeout: 272 seconds]
dukedave has quit [Ping timeout: 272 seconds]
ceej has quit [Ping timeout: 272 seconds]
evrei has joined #ruby
nifty__ has quit [Changing host]
nifty__ has joined #ruby
FracV_ is now known as FracV
jpinnix___ has quit [Changing host]
jpinnix___ has joined #ruby
ggherdov__ has quit [Changing host]
ggherdov__ has joined #ruby
paolooo has joined #ruby
cbetta_ has quit [Changing host]
cbetta_ has joined #ruby
bcavileer has quit [Changing host]
bcavileer has joined #ruby
bjeanes has quit [Changing host]
bjeanes has joined #ruby
tadejm___ has joined #ruby
tadejm___ has quit [Changing host]
lectrick has quit [Changing host]
lectrick has joined #ruby
thesheff17 has quit [Changing host]
thesheff17 has joined #ruby
kyote has quit [Changing host]
kyote has joined #ruby
rfv has quit [Changing host]
rfv has joined #ruby
ramblinpeck_ has quit [Changing host]
ramblinpeck_ has joined #ruby
natewalck has joined #ruby
natewalck has quit [Changing host]
olleromo__ has joined #ruby
olleromo__ has quit [Changing host]
troter has quit [Changing host]
troter has joined #ruby
Tranquility_ has quit [Changing host]
Tranquility_ has joined #ruby
comma8 has quit [Changing host]
comma8 has joined #ruby
ballPointPenguin has quit [Changing host]
ballPointPenguin has joined #ruby
halfdan has quit [Changing host]
halfdan has joined #ruby
jeregrine has joined #ruby
yo61 has quit [Changing host]
yo61 has joined #ruby
jeregrine has quit [Changing host]
rkjaer has quit [Changing host]
rkjaer has joined #ruby
HashNuke has joined #ruby
CJD14______ has joined #ruby
HashNuke has quit [Changing host]
CJD14______ has quit [Changing host]
Guest85414______ has quit [Changing host]
Guest85414______ has joined #ruby
vcoinminer______ has quit [Changing host]
vcoinminer______ has joined #ruby
whitewalrus has quit [Changing host]
whitewalrus has joined #ruby
pusewicz_ has quit [Changing host]
pusewicz_ has joined #ruby
andrewcarter_ has quit [Changing host]
andrewcarter_ has joined #ruby
amitchellbullard has quit [Changing host]
amitchellbullard has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
joshingly has quit [Changing host]
joshingly has joined #ruby
ionelmc has joined #ruby
zettam has quit [Ping timeout: 258 seconds]
_tpavel has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
yottanami has left #ruby [#ruby]
tectonic has quit []
dukedave has joined #ruby
maasha has quit [Changing host]
maasha has joined #ruby
cougarten_ has joined #ruby
Heartbroken has quit [Changing host]
Heartbroken has joined #ruby
anarang has quit [Changing host]
anarang has joined #ruby
_lazarevsky has quit [Changing host]
Juanchito has quit [Changing host]
_lazarevsky has joined #ruby
Juanchito has joined #ruby
paolooo has quit [Changing host]
paolooo has joined #ruby
ionelmc has quit [Changing host]
ionelmc has joined #ruby
dukedave has quit [Changing host]
dukedave has joined #ruby
bedouin_ has joined #ruby
sigurding has quit [Quit: sigurding]
_tpavel has joined #ruby
ceej has joined #ruby
Takle has joined #ruby
arup_r has joined #ruby
rdark has joined #ruby
paolooo has quit [Ping timeout: 246 seconds]
eugenk has joined #ruby
ashleah_ is now known as ashleah
elaptics`away is now known as elaptics
fgo has joined #ruby
Jake232 has joined #ruby
eugenk has left #ruby [#ruby]
N1cXP8ChUBFe3 has quit [Quit: Leaving]
melik_ has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
rikai has joined #ruby
chth0n has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
kedare has joined #ruby
Xeago has joined #ruby
elfo222 has joined #ruby
Morkel has joined #ruby
awestroke has joined #ruby
realDAB has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
einarj has joined #ruby
cougarten_ has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
thomasxie has joined #ruby
matadon has joined #ruby
<matadon> Anybody know how to get the argument list for the current method *without* using the splat operator?
<matadon> Not the names of the args, but the set of arguments passed to a method.
<j416> matadon: what is the problem you are trying to solve?
<matadon> Either that, or a tracer that can dump "class.method (args)" for a subset of classes? :)
thomasxie has left #ruby [#ruby]
cougarten_ has joined #ruby
ephemerian has joined #ruby
realDAB has quit [Quit: realDAB]
BlkDynmt has joined #ruby
marr has joined #ruby
shredding has quit [Quit: shredding]
marr is now known as Guest4960
Seraff has joined #ruby
atomi has quit [Quit: Changing server]
cougarten has joined #ruby
timgauthier has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
<apeiros> matadon: there is no way. you could use Method#parameters + Kernel#local_variable_get to get the current values of arguments of the current method. but that's about it.
<apeiros> matadon: also generally if you're interested in answers, it's good etiquette to respond to follow up questions.
mike32 has joined #ruby
cougarten_ has quit [Ping timeout: 258 seconds]
Waheedi has joined #ruby
adironduck has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
abuzze has quit [Ping timeout: 272 seconds]
AndChat| has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
krisquigley has joined #ruby
<_lazarevsky> hey guys
<_lazarevsky> I was wondering if I could get some help real quick?
cougarten has quit [Ping timeout: 250 seconds]
arup_r has quit [Remote host closed the connection]
bruno- has joined #ruby
abuzze has joined #ruby
<_lazarevsky> uri = URI('http://localhost:3000') -> Net::HTTP.get(uri) <- I run these two commands and am forwarded to Processing by Rails::WelcomeController#index as */* (WHICH DOES NOT EVEN EXIST!!!!)
<_lazarevsky> however, when I try the same uri from a browser, my request is forwarded to the appropriate controller
<_lazarevsky> what's up with that?
ptrrr has quit [Quit: ptrrr]
tkuchiki has joined #ruby
<apeiros> _lazarevsky: you may want to ask that in #rubyonrails
<_lazarevsky> there's no activity thgere
<_lazarevsky> but ok thanks
Wolland_ has joined #ruby
<apeiros> oh so you're a cross-poster. nice.
fgo has quit [Ping timeout: 245 seconds]
<_lazarevsky> :P
<_lazarevsky> that made my chuckle
<_lazarevsky> kudos
<matadon> apeiros: Sorry, stepped away for a bit. Hmm… that's a pity. Feels like an odd thing to be missing — will see if the core team would mind a patch (or if it was deliberately left out of set_trace_func for a reason).
<apeiros> I'm tempted to /kick _lazarevsky :-P
Spami has joined #ruby
wolf__ has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
Wolland has quit [Ping timeout: 272 seconds]
<_lazarevsky> apeiros: may I ask you a real quick question though
<apeiros> people who cross post without informing that they're cross-posting generally land on my mental ignore
<apeiros> but sure, you can ask. maybe I even answer.
<_lazarevsky> apeiros: Why is uri = URI('http://localhost/ping:3000') not valid? (getting Errno::ECONNREFUSED: Connection refused - connect(2)) but uri = URI('http://localhost:3000') works just fine?
<_lazarevsky> can you spot the error?
nichtdiebohne has joined #ruby
<_lazarevsky> i'm trying to programatically access my website from a cron script..
<_lazarevsky> thanks, and I do apologise for cross posting
<_lazarevsky> or rather for not letting you know. lesson learned
Spami_ has joined #ruby
Spami has quit [Ping timeout: 250 seconds]
<_lazarevsky> apeiros: think I found it
<_lazarevsky> apeiros: I believe there's a port attribute that I can use
Xeago has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
matadon has quit [Quit: Leaving.]
<apeiros> port should be after server/host. not at the end.
<apeiros> otherwise port 80 is used and the :3000 is part of PATH_INFO
SouL has joined #ruby
AlSquire has joined #ruby
arup_r has joined #ruby
joined has joined #ruby
Tomme has quit [Ping timeout: 250 seconds]
wolf__ has quit [Quit: Leaving]
gvenkat has joined #ruby
GriffinHeart has quit [Ping timeout: 258 seconds]
<_lazarevsky> apeiros: what do you mean after server/host?
qualiabyte has quit [Quit: Leaving]
Xeago has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0]
<gr33n7007h> _lazarevsky, he means http://localhost:3000/ping/
<apeiros> _lazarevsky: http://en.wikipedia.org/wiki/Uniform_resource_locator#Syntax see position of "port"
<_lazarevsky> oh shit
<_lazarevsky> i'm an idiot! :(
<_lazarevsky> sorry guys
KFBR393 has joined #ruby
charliesome has quit [Quit: zzz]
tkuchiki has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
mike32 has quit [Remote host closed the connection]
shredding has joined #ruby
parduse has quit [Ping timeout: 240 seconds]
parduse has joined #ruby
emocakes__ has joined #ruby
iam3fun has quit [Ping timeout: 260 seconds]
ClarusCogitatio has joined #ruby
cmxu has joined #ruby
aspiers has joined #ruby
Beoran_ has quit [Ping timeout: 245 seconds]
oponder has joined #ruby
emocakes has quit [Ping timeout: 258 seconds]
mike32 has joined #ruby
threesixes has quit [Remote host closed the connection]
moritzschaefer has joined #ruby
sevenseacat has quit [Remote host closed the connection]
mike32 has left #ruby [#ruby]
Unknown2 has joined #ruby
a has joined #ruby
Unknown2 has quit [Client Quit]
mike32 has joined #ruby
a is now known as Guest77594
zettam has joined #ruby
Ulrike_Rayne has quit [Quit: ZNC - http://znc.in]
aspiers has quit [Ping timeout: 245 seconds]
EasyCo has quit [Quit: Connection closed for inactivity]
zettam_ has quit [Ping timeout: 246 seconds]
timonv_ has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
Spami_ has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Excess Flood]
Spami has joined #ruby
robbyoconnor has joined #ruby
joined has quit [Remote host closed the connection]
Guest4960 has quit []
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Guest4960 has joined #ruby
charliesome has joined #ruby
Guest4960 has quit [Client Quit]
timgauthier is now known as timgauthier_isaw
Tomme has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr123 has joined #ruby
marr123 has quit [Remote host closed the connection]
Beoran_ has joined #ruby
tvw has quit []
LiohAu_ is now known as LiohAu
ptrrr has joined #ruby
Ulrike_Rayne has joined #ruby
hamakn has joined #ruby
emocakes has joined #ruby
emocakes has quit [Max SendQ exceeded]
emocakes has joined #ruby
lifenoodles has joined #ruby
emocakes__ has quit [Ping timeout: 272 seconds]
narph has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
majoh has quit [Quit: bam bam bam bam]
majoh has joined #ruby
timonv^ has joined #ruby
Seraff has quit [Remote host closed the connection]
nichtdiebohne has quit [Ping timeout: 255 seconds]
timonv_ has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
Takle has joined #ruby
bruno- has joined #ruby
adironduck has quit [Quit: adironduck]
sprihodko has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
mercwith1mouth has quit [Ping timeout: 272 seconds]
timgauthier has joined #ruby
timgauthier has quit [Max SendQ exceeded]
bruno- has quit [Ping timeout: 272 seconds]
timgauthier has joined #ruby
W0rmDr1nk has quit [Ping timeout: 258 seconds]
sectionme has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
linojon has joined #ruby
ests has joined #ruby
cougarten has joined #ruby
jhass|off is now known as jhass
w1xz has quit [Ping timeout: 272 seconds]
GriffinHeart has joined #ruby
HelperW has quit [Remote host closed the connection]
HelperW has joined #ruby
anaeem1 has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
<GeorgesLeYeti> Is there any function to make (a-1 > 0) ? a-1 : 0
Spami has quit [Ping timeout: 260 seconds]
<GeorgesLeYeti> It returns 0 if the value is negative otherwise it returns the value
GriffinHeart has quit [Ping timeout: 258 seconds]
lkba has joined #ruby
<Wolland_> GeorgesLeYeti max
<Wolland_> [a-1,0].max
<GeorgesLeYeti> Wolland_: You right didn't though about that. Ty
<Wolland_> np, i am sure there are other ways, but at least it's more readable imo
<GeorgesLeYeti> yes
Spami has joined #ruby
pu22l3r has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.0]
fgo has joined #ruby
Takle has quit [Remote host closed the connection]
shock_one has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
AxonetBE has quit [Read error: Connection reset by peer]
Takle has joined #ruby
AxonetBE has joined #ruby
Ulrike_Rayne has quit [Quit: ZNC - http://znc.in]
Ulrike_Rayne has joined #ruby
timonv^ has quit [Remote host closed the connection]
KFBR393 has left #ruby [#ruby]
fabrice31 has quit [Remote host closed the connection]
jhass is now known as jhass|off
Muz_ is now known as Muz
Envek has joined #ruby
timonv_ has joined #ruby
tvw has joined #ruby
dideler has joined #ruby
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
linojon has quit [Ping timeout: 250 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
jhass|off is now known as jhass
<Hanmac> because Net::HTTP does not forward itself?
kaspergrubbe has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 250 seconds]
dingus_khan has quit [Remote host closed the connection]
eivindml has joined #ruby
nettoweb has joined #ruby
skip_freely has joined #ruby
zettam has quit [Ping timeout: 258 seconds]
kaspergrubbe has joined #ruby
Takle has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0/20140825202822]]
timgauthier is now known as timgauthier_isaw
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Morkel has quit [Ping timeout: 258 seconds]
tachibana has joined #ruby
Morkel has joined #ruby
bruno- has joined #ruby
Aaaal has joined #ruby
awestroke has quit [Remote host closed the connection]
timgauthier has joined #ruby
timgauthier has quit [Max SendQ exceeded]
narcan has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sprihodko has quit [Quit: Lingo - http://www.lingoirc.com]
pushnell has quit [Quit: pushnell]
zettam has joined #ruby
duncannz has quit [Ping timeout: 260 seconds]
ests has quit [Quit: Bye]
linojon has joined #ruby
DaniG2k has joined #ruby
gccostabr has joined #ruby
<DaniG2k> guys is there a way to curl a page from ruby that requires ssl auth?
<DaniG2k> can I pass it an id_rsa file or something?
snath has quit [Ping timeout: 250 seconds]
linojon has quit [Ping timeout: 246 seconds]
Advocation has joined #ruby
<txdv> yes you can
manzo has joined #ruby
<DaniG2k> txdv: how would you suggest I do so?
sigurding has quit [Quit: sigurding]
<txdv> now thats the difficult part
linojon has joined #ruby
mostlybadfly has joined #ruby
<jhass> id_rsa sounds like SSH, not SSL
mofai has quit [Ping timeout: 272 seconds]
<DaniG2k> right sorry
<jhass> so SSH or client certs?
<DaniG2k> i need to curl some pages that require my id_rsa.pub key
<jhass> that makes no sense
<jhass> curl is a http tool, id_rsa.pub should be your public ssh key
Takle has quit [Remote host closed the connection]
<DaniG2k> hmm
<DaniG2k> I can curl from a bash shell
<jhass> show
<DaniG2k> I want to basically be able to do it from a rails script
<siwica> I am using grape to develop a REST API and need to store some objects on the server. Is there some database I easily dump objects in and read them in the next request without having to much to worry about database design?
<Hanmac> apeiros: gemtree now has a -b option to allow the arrows to be combine if possible like this http://i.imgur.com/JGJqx5J.png VS http://i.imgur.com/12krVxe.png
LiohAu has quit [Quit: LiohAu]
Ulrike_Rayne has quit [Quit: ZNC - http://znc.in]
GriffinHeart has joined #ruby
<Wolland_> DaniG2k: are you talking about client certificate?
<DaniG2k> yes
<DaniG2k> in order to open the page I need to use a certificate
<Wolland_> well, that's what it's called, not ssh
<DaniG2k> my bad
<DaniG2k> i see that openuri can open https pages so it should be ok
AndChat| has joined #ruby
<DaniG2k> i just need to figure out how to pass a certificate
<DaniG2k> so that I don't get OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Guest77594 has quit [Ping timeout: 272 seconds]
matchaw has joined #ruby
Ulrike_Rayne has joined #ruby
fold has quit [Ping timeout: 246 seconds]
pabloh has quit [Quit: Saliendo]
Logiztik_ has quit [Ping timeout: 245 seconds]
GriffinHeart has quit [Ping timeout: 255 seconds]
lkba has quit [Ping timeout: 272 seconds]
zettam_ has joined #ruby
<Wolland_> what are you using to connect?
kaspergrubbe has quit [Remote host closed the connection]
zettam has quit [Ping timeout: 258 seconds]
Logiztik_ has joined #ruby
Deele has joined #ruby
shredding has quit [Quit: shredding]
jhass is now known as jhass|off
a__ has joined #ruby
<DaniG2k> i think
KC9YDN has joined #ruby
<DaniG2k> i was getting confused
Macaveli has joined #ruby
<DaniG2k> i will just need user/pass for this
<DaniG2k> using basic auth
<DaniG2k> Wolland_: thanks
Wolland_ has quit [Remote host closed the connection]
jhass|off is now known as jhass
Wolland has joined #ruby
adironduck has joined #ruby
linojon has quit [Quit: linojon]
<siwica> I am building a REST API with grape and want to share a bunch of objects between the individual requests. What is the easiest way to achieve this?
joonty has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
Takle has joined #ruby
jhass is now known as jhass|off
emocakes__ has joined #ruby
dennus has joined #ruby
jhass|off is now known as jhass
emocakes has quit [Ping timeout: 246 seconds]
Wolland has quit [Ping timeout: 255 seconds]
timonv_ has quit [Remote host closed the connection]
dblessing has joined #ruby
dblessing has quit [Client Quit]
siwica has quit [Ping timeout: 255 seconds]
endash has joined #ruby
chipotle has joined #ruby
oivoodoo_ has quit [Remote host closed the connection]
marr has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
marr is now known as Guest25615
Guest25615 has quit [Client Quit]
timonv_ has joined #ruby
phoo1234567 has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
timonv_ has quit [Read error: Connection reset by peer]
ta has joined #ruby
phoo1234567 has joined #ruby
tadejm___ has quit [Quit: Connection closed for inactivity]
fabrice31 has joined #ruby
InhalingPixels has joined #ruby
Takle has quit [Remote host closed the connection]
bruno- has joined #ruby
timonv_ has joined #ruby
oivoodoo has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
vesuvious has joined #ruby
<Hanmac> shevy did you see another new options for gemtree ;P
ixti has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 272 seconds]
sprihodko has joined #ruby
jottr_ has joined #ruby
bogeyd6_ has quit [Ping timeout: 246 seconds]
LiohAu_ has joined #ruby
sigurding has joined #ruby
krisquigley has quit [Remote host closed the connection]
Ironhetch has joined #ruby
fsapo has joined #ruby
20WABI930 is now known as noopq
Tomme has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 255 seconds]
<Ironhetch> How does this help?
a__ has quit [Ping timeout: 250 seconds]
* wasamasa is confused
a__ has joined #ruby
<Ironhetch> Wasamasa what's on mind?
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> you've joined just a minute ago and the very first thing you write is "How does this help?"
ndrei has joined #ruby
<Ironhetch> I meant what's the advantage of ruby?
<Hanmac> the language syntax ... imo its much more nicer than php or C++ in most of the cases
catphish has joined #ruby
Aaaal has quit [Quit: Aaaal]
<wasamasa> you can write pretty nice code with it
<shevy> Ironhetch you don't code in ruby, you write poetry and it does stuff afterwards
ldnunes has joined #ruby
<Hanmac> shevy hm for poetry you could also use the language "Shakespeare" for that ;P
Ironhetch has quit [Ping timeout: 246 seconds]
<shevy> yeah
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> but Shakespear is not very terse
<shevy> and does not do much at all
<shevy> it's like brainfuck
vt102 has joined #ruby
Aaaal has joined #ruby
timonv_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
snath has joined #ruby
chipotle_ has joined #ruby
krz has quit [Quit: WeeChat 1.0]
shlerp has quit [Quit: ZNC - http://znc.in]
timonv_ has joined #ruby
fgo has quit [Remote host closed the connection]
rimenes has joined #ruby
anaeem1 has quit [Ping timeout: 272 seconds]
anaeem1 has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle_ has quit [Client Quit]
SouL has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Ping timeout: 250 seconds]
<shevy> Hanmac I need a minimal IRB
<shevy> something you can quickly embed into a larger program
yfeldblum has joined #ruby
Takle has joined #ruby
<catphish> i'm trying to execute this code on thin, but thin seems to want to buffer everything: http://paste.codebasehq.com/pastes/8r99qahxjb5k0ldv15 other webservers seem happy to stream, but i also need multithreading
marr has joined #ruby
aclearman037 has joined #ruby
pu22l3r has joined #ruby
a__ has quit [Ping timeout: 245 seconds]
lolmaus has joined #ruby
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
dingus_khan has joined #ruby
chipotle has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
chipotle has quit [Max SendQ exceeded]
fennec has quit [Quit: This computer has gone to sleep]
xwrt777 has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
<shevy> Hanmac I just wrote a silly script called open.rb - now I will simply call "open bla.xls" and it will open it in .xls... if it is a .cgi file then it will load open firefox... and so forth
Takle has quit [Remote host closed the connection]
dingus_khan has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
KingOfKarlsruhe has quit [Quit: ZNC - http://znc.in]
krisquigley has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
lolmaus has joined #ruby
fgo has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
<jhass> shevy: it contains exec(['xdg-open']+ARGV) ?
<shevy> nope
<shevy> can't rely on system tools
DaniG2k has quit [Quit: leaving]
<jhass> ?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
Takle has quit [Ping timeout: 272 seconds]
xwrt777 has quit [Ping timeout: 255 seconds]
klaut has joined #ruby
no-ob has joined #ruby
paulfm has joined #ruby
sk87 has joined #ruby
Morkel has quit [Quit: Morkel]
britneywright has joined #ruby
Klumben has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Juzdan has joined #ruby
oivoodoo has quit [Remote host closed the connection]
UKn0Meh has joined #ruby
fgo has quit [Remote host closed the connection]
endash has quit [Quit: endash]
LekeFly has joined #ruby
johnhamelink has joined #ruby
sigurding has quit [Ping timeout: 246 seconds]
pasv_ has quit [Ping timeout: 255 seconds]
Xeago_ has joined #ruby
Takle has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
no-ob has quit [Remote host closed the connection]
pasv has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
pasv is now known as Guest77659
shock_one has joined #ruby
aspires has joined #ruby
timonv_ has quit [Remote host closed the connection]
endash has joined #ruby
fennec has joined #ruby
doritostains has joined #ruby
Cheezebox has joined #ruby
dangerousdave has joined #ruby
pu22l3r has joined #ruby
shredding has joined #ruby
gaussblurinc1 has joined #ruby
no-ob_ has joined #ruby
dangerousdave has quit [Client Quit]
lolmaus_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
Tomme has joined #ruby
lolmaus has quit [Ping timeout: 272 seconds]
sumark has quit [Remote host closed the connection]
MasterPiece has quit [Changing host]
MasterPiece has joined #ruby
lolmaus_ has quit [Client Quit]
cmxu has joined #ruby
sumark has joined #ruby
Advocation has quit [Quit: Advocation]
oivoodoo has joined #ruby
<Hanmac> shevy did you see at my gemtree what the newest option can do?
lolmaus has joined #ruby
jaygen_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevenseacat has joined #ruby
g0bl1n has joined #ruby
oivoodoo has quit [Remote host closed the connection]
oivoodoo has joined #ruby
jaygen has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
<shevy> Hanmac no idea
dangerousdave has joined #ruby
tobago has quit [Remote host closed the connection]
<shevy> do you use graphviz for those images?
anaeem1 has quit [Remote host closed the connection]
starless has joined #ruby
<Hanmac> shevy yes and no, it uses dot, but not the ruby-graphviz gem
kirun has joined #ruby
cirn0 has joined #ruby
evrei has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Client Quit]
sambao21 has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
<shevy> how can I make part of a regex optional?
starless has quit [Client Quit]
Takle has quit [Read error: No route to host]
<tobiasvl> ()?
Takle has joined #ruby
<tobiasvl> notoptional(optional)?notoptional
RaCx has joined #ruby
<shevy> oh with the ?
dblessing has joined #ruby
<tobiasvl> yes
<shevy> I tried with only the () haha
<shevy> yep it works, thanks tobiasvl
<jhass> (?:optional)? if you want to avoid a capture group
timonv_ has joined #ruby
cirn0 has quit [Ping timeout: 272 seconds]
cheeti has joined #ruby
livingstn has joined #ruby
<Hanmac> tobiasvl & jhass how do you two likes my gemtree stuff ? (for samples see recent images)
<tobiasvl> hm, looks interesting
fgo has joined #ruby
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
Cheezebox has quit [Remote host closed the connection]
no-ob_ has quit [Quit: leaving]
<Hanmac> hm currently 11 different config options ;P i think in the future i really need to make it to a repository with Readme files ;D
GriffinHeart has joined #ruby
Cheezebox has joined #ruby
easier has joined #ruby
relix has joined #ruby
ixti has quit [Ping timeout: 255 seconds]
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sgeo_ has quit [Read error: Connection reset by peer]
Guest60431 has quit [Quit: ZNC - http://znc.in]
oo_ has joined #ruby
LBRapid has joined #ruby
charliesome has quit [Quit: zzz]
mengu has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Juzdan has quit [Read error: Connection reset by peer]
Juzdan has joined #ruby
charliesome has joined #ruby
Cheezebox has quit [Ping timeout: 258 seconds]
GriffinHeart has quit [Ping timeout: 255 seconds]
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
tlarevo_ has quit [Remote host closed the connection]
blackjid has joined #ruby
a__ has joined #ruby
timonv_ has quit [Remote host closed the connection]
lolmaus has quit [Read error: Connection reset by peer]
centrx has joined #ruby
weems|mac has joined #ruby
weems|mac has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
centrx is now known as Guest73100
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
ixti has joined #ruby
lolmaus has joined #ruby
orolo has joined #ruby
erGoline has joined #ruby
hellangel7 has joined #ruby
douglasssssss has joined #ruby
dblessing has quit [Quit: dblessing]
<erGoline> hi :) I'm struggling with a problem using prawn gem, anyone has used it before and has a little time to help me? It's about conditional repetear
ptrrr has quit [Quit: ptrrr]
Hanmac has quit [Ping timeout: 272 seconds]
mercwith1mouth has quit [Ping timeout: 250 seconds]
mercwithamouth has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
Guest73100 has quit [Quit: The plan is programmed into every one of my one thousand robots]
sambao21 has quit [Quit: Computer has gone to sleep.]
cntrx has joined #ruby
cmxu has joined #ruby
cntrx has quit [Client Quit]
HelperW has quit [Ping timeout: 255 seconds]
<shevy> dont know if many have advanced knowledge of prawn
cntrx has joined #ruby
Advocation has joined #ruby
<shevy> I have never heard the term "conditional repeater" before
HelperW has joined #ruby
sambao21 has joined #ruby
<shevy> the best you can do is to simply ask the question and hope for the best (that is, that someone knows prawn sufficiently well to be able to answer your question)
oo_ has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
i0n has joined #ruby
amystephen has joined #ruby
<erGoline> shevy: tranks for the suggestion :)
bruno- has joined #ruby
sailias has joined #ruby
<erGoline> i need to know how to run a prawn repeater (http://prawnpdf.org/docs/0.11.1/Prawn/Repeater.html) conditionally, ex. different header for different pages
doodlehaus has joined #ruby
yalue has joined #ruby
elstif has joined #ruby
aspires has quit []
timonv_ has joined #ruby
Rollabunna has quit [Quit: Leaving...]
bmurt has joined #ruby
<erGoline> sorry, blank page :( this one is ok http://prawnpdf.org/docs/0.11.1/Prawn/Document.html#method-i-repeat
dblessing has joined #ruby
cntrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Hanmac has joined #ruby
spastorino has joined #ruby
cntrx has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
cntrx has quit [Client Quit]
joast has quit [Quit: Leaving.]
centrx has joined #ruby
oleo has joined #ruby
yfeldblum has joined #ruby
teamplayer has joined #ruby
bruno-_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
sylvanica has joined #ruby
_tpavel has quit [Quit: Leaving]
sylvanica is now known as slester
yfeldblum has quit [Ping timeout: 246 seconds]
fennec has quit [Quit: This computer has gone to sleep]
RaCx has quit [Quit: Computer has gone to sleep.]
silkfox has joined #ruby
ptrrr has joined #ruby
bruno-_ has quit [Ping timeout: 258 seconds]
teamplayer has quit [Remote host closed the connection]
jerius has joined #ruby
arup_r has quit [Remote host closed the connection]
terlar has quit [Quit: WeeChat 1.0]
Channel6 has joined #ruby
starkhallo has joined #ruby
<multi_io> why is there a "gem build" command when you could also do it with a Rakefile?
<multi_io> i.e. you can build the gem in a Rakefile task, using a gemspec defined in the Rakefile, right?
timonv_ has joined #ruby
<multi_io> is that frowned upon?
klaut has quit [Remote host closed the connection]
djstorm has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
fennec has joined #ruby
fennec has quit [Changing host]
fennec has joined #ruby
workmad3 has joined #ruby
<shevy> multi_io I can use gem without rake
RaCx has joined #ruby
gregf has quit [Ping timeout: 260 seconds]
<jhass> multi_io: really just different frontends to the same library call
Ankhers has joined #ruby
<multi_io> but if you're using gem build, it seems like gem is doing things that rake should do?
<multi_io> i.e. the responsibilities aren't clear
<waxjar> it's the other way round i think
<jhass> rake really just calls rubygems here
<waxjar> gem is the package manager, rake is.. idk what rake is really
<wasamasa> a build tool
<centrx> it's for cleaning your lawn
<multi_io> jhass: that's what I mean, so why even provide the gem build command-line frontend
<wasamasa> so, a more ruby-like make
<shevy> multi_io because gem does not want to depend on rake
<jhass> multi_io: as shevy said, so you can build gems without rake or manually calling the library
<multi_io> what if some of the files references in the gemspec aren't checked in, but must be created dynamically first?
i0n has quit [Quit: leaving]
<shevy> what do you mean "aren't checked in"?
<multi_io> then you'd have to do it all in rake
<shevy> what are you talking about
<shevy> a .gemspec is almost always like 10-20 lines
<shevy> it is also valid ruby code there
<multi_io> *files referenced
<shevy> Dir[]
<shevy> there you go.
<multi_io> I mean, what if some of those files have to be created dynamically
<shevy> you only need to tell gem what files you need to put it into your .gem archive
<Hanmac> i will make my own programming language and i will call it "OR" ... because it will be very difficult to google after that ;P
<jhass> multi_io: that doesn't invalidate the general case. You can always find a special case where one tool makes sense where the other doesn't
BlkDynmt has quit [Ping timeout: 260 seconds]
<multi_io> i.e. they're not there immediately after checking out the project, so "gem build" would fail then.
<shevy> multi_io look, all files that have to be part of the gem, must be published into the .gem file ok?
<jhass> Hanmac: name it \()/ then
BlkDynmt_ has joined #ruby
<shevy> so when you push that .gem file, it must contain whatever you wish to distribute
<Hanmac> jhass: hm that might be even better ... ;P
<shevy> gem build will not fail
<multi_io> if its files array references a non=existing file?
<shevy> then you forgot to generate them
<shevy> so you failed as a gem author
<multi_io> yeah, I have a rake task that generates them.
<wasamasa> lol
maasha has quit [Ping timeout: 246 seconds]
<shevy> good
<shevy> then invoke that task before
<waxjar> i'd have a pre-commit hook i think, something like that
<multi_io> so you'll have to run gem build through rake, not directly
<shevy> I don't have to use rake
<waxjar> that generates the files and checks them into the git repository
<waxjar> then Dir[] can do it's makes, or `git files` or whatever
<shevy> waxjar where do you use that pre-commit hook thing? is that part of ruby or git?
<multi_io> waxjar: that sucks
Takle has quit [Remote host closed the connection]
<waxjar> shevy: git
<multi_io> sort of
tvw has quit []
<waxjar> why?
realDAB has joined #ruby
<multi_io> because checking in redundant stuff is a bad idea in general
<multi_io> confuses users, who might be inclined to edit that file after checkout
mleone has joined #ruby
andrewcarter_ is now known as andrewcarter
mike32 has quit [Quit: Leaving]
<waxjar> generated_files/*.rb would fix that, i think
<jhass> multi_io: what's your problem here really? you can't seriously expect a tool drops functionality because it might interfere with your single usecase. If you want to prevent gem build for _your_ project, simply check for the files existence in your .gemspec
ta has quit [Remote host closed the connection]
<jhass> it's just ruby code after all
anarang has quit [Quit: Leaving]
<multi_io> I'm just wondering about design rationales here
<jhass> I think they have been explained
<jhass> if you can't grasp them that's not our issue
<multi_io> my use specific case is dynamically generated documentation (md) files
rgsteele has joined #ruby
<shevy> multi_io I have one ruby project where I need to check in several yaml files that reside on another part of the filesystem, before I can run gem build. My current solution is that I do not call gem directly but instead I wrote a wrapper script over gem, that will have all my special hooks (in this case, it simply copies the yaml files before running gem build & gem push)
easier has quit [Quit: easier]
<waxjar> multi_io: gem generates its own documentation when installed on the users end
Xeago_ has quit [Remote host closed the connection]
zeroNones has joined #ruby
Xeago has joined #ruby
<multi_io> waxjar: it's more complicated, I have a manually written readme as part of the documentation, and it includes code snippets and their output.
Xeago has quit [Remote host closed the connection]
<multi_io> which should be generated
<waxjar> i see
teamplayer has joined #ruby
Xeago has joined #ruby
<multi_io> I already did this several years ago and it worked, with a gemspec defined inside the Rakefile
teamplayer has quit [Client Quit]
<multi_io> I'm just trying to get up to speed on how this is supposed to be done these days in Ruby :)
bruno-_ has joined #ruby
<shevy> so your end users require to have rake available
<multi_io> no, not the consumers of the gem
AxonetBE has quit [Quit: AxonetBE]
freerobby has joined #ruby
Xeago has quit [Remote host closed the connection]
<multi_io> just anyone who wants to create the gem. he'd checkout, say "rake gem", and that creates the output readme from the manually written part and the included code samples (which it runs dynamically), and includes that in the gemspec.
GodPuppet has joined #ruby
poikon has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
mleone has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
doritostains has quit [Quit: doritostains]
<multi_io> I've been away from Ruby (at least larger-scale Ruby build systems) for some time, and I'm trying to wrap my head around how the workflows are supposed to be these days
bruno-_ has quit [Ping timeout: 245 seconds]
realDAB has quit [Quit: realDAB]
wpp has quit [Ping timeout: 258 seconds]
<jhass> you're overthinking this
<jhass> do what works for you
<multi_io> yeah, ok
<workmad3> multi_io: I'd suggest you make sure you list rake as a development dependency in the gemspec though
RaCx has quit [Read error: Connection reset by peer]
timonv_ has quit [Read error: Connection reset by peer]
keen_ has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
GriffinHeart has quit [Ping timeout: 246 seconds]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
GodPuppet has quit [Remote host closed the connection]
mleone has joined #ruby
<shevy> multi_io oh, if I want to create a .gem, then I want a .gemspec
mleone has quit [Read error: Connection reset by peer]
threesixes has joined #ruby
Macaveli has quit [Ping timeout: 255 seconds]
joast has joined #ruby
fsapo has quit [Ping timeout: 245 seconds]
dumdedum has quit [Ping timeout: 272 seconds]
mleone has joined #ruby
<multi_io> I was just a bit confused by the plethora of tools.
<shevy> there is only gem
<shevy> but if you want to get fancy, you can also include bundler
ffranz has joined #ruby
<jhass> shevy: one sentence. What does bundler do?
albedoa has joined #ruby
shredding has quit [Quit: shredding]
<multi_io> I've been doing Java stuff mostly in recent years, and there you don't have separate commandline frontends for "getting all the dependencies" or "building the jar". It would all be done via tasks in Gradle (Java build tool, Groovy-based, similar to rake)
<shevy> jhass it does an array of different things, from generating gemspec files to installing or uninstalling a bunch of different gems
<shevy> including the use of github based projects
terlar has joined #ruby
shredding has joined #ruby
gregf has joined #ruby
<jhass> it doesn't really generate gemspecs, it just has a command to spit out template for a gem
rafacv has joined #ruby
<workmad3> shevy: strictly speaking, bundler doesn't handle the gem install or uninstall either... it uses rubygems for that
<workmad3> shevy: bundler just takes over the dependency resolution
<multi_io> there was no bundler when I last looked at Ruby build systems. There was gem though, and rake.
jottr_ has quit [Ping timeout: 272 seconds]
<jhass> multi_io: bundlers primary focus is to ensure a consistent environment for an application, rendering things like gemsets obsolete
autochthon has joined #ruby
sambao21 has joined #ruby
<shevy> it seems to even have rake-like capabilities: bundle exec
jespada has joined #ruby
<workmad3> multi_io: bundler came into existence about 4 years ago now to handle the issues around resolving transitive dependencies for a stable environment
<jhass> everything beyond is just helpers nobody found another place for
ndrei has joined #ruby
<workmad3> shevy: that's not rake-like capabilities
tkuchiki has joined #ruby
<workmad3> shevy: that's purely a wrapper around setting RUBY_OPTS to automatically load bundler
<jhass> shevy: not at all. I suggest educating yourself more about bundler before speaking of it
Xeago has joined #ruby
<shevy> Here is the official documentation: "Execute a script in the context of the current bundle"
bruno-_ has joined #ruby
Smujo has joined #ruby
fgo has quit [Remote host closed the connection]
<shevy> so what is a script :>
<jhass> yes, what does that have to do with rake
<workmad3> shevy: any command
<shevy> jhass you call a script
rafacv has left #ruby [#ruby]
axsuul has joined #ruby
<workmad3> shevy: you can do 'bundle exec echo "shevy doesn't know what this does" ' if you want :P
<shevy> jhass rake is like a collection of scripts that may have interdependencies
<shevy> workmad3 where is the script?
<jhass> shevy: sounds like you didn't understand rake either
<workmad3> shevy: 'script' is a misnomer... it just takes an arbitrary shell command
<workmad3> shevy: or shell script
<workmad3> shevy: or any valid thing you could type into your command line
<shevy> that is the official documentation: http://bundler.io/v1.7/man/bundle.1.html
mr-foobar has quit [Quit: Leaving...]
<shevy> jhass so you say rake does not have interdependencies when you call commands?
<shevy> I guess the pickaxe lied to me :(
hellangel7 has quit [Remote host closed the connection]
Kricir has joined #ruby
<workmad3> shevy: as I said, 'bundle exec' is just a wrapper around setting up env vars to make sure ruby loads the bundle up
hellangel7 has joined #ruby
<workmad3> shevy: so that you can make sure the stuff in your Gemfile is used even if using a tool that isn't bundler-aware
<jhass> looking at tasks as being commands is just not right, that rake is often used purely for that doesn't make it it's primary focus
<shevy> who came up with a Gemfile by the way?
<workmad3> shevy: bundler did
albedoa has left #ruby ["Textual IRC Client: www.textualapp.com"]
silkfox has quit [Ping timeout: 272 seconds]
<shevy> hmm
jobewan has joined #ruby
<shevy> "bundle platform" # Could not locate Gemfile
<shevy> I guess I need me to find a Gemfile
<jhass> bundle init
<jhass> done
lxsameer has quit [Quit: Leaving]
linojon has joined #ruby
<shevy> now that works better
b00stfr3ak has joined #ruby
<shevy> Your platform is: x86_64-linux
<workmad3> shevy: you can also do 'bundle help platform' to get the docs about what a command (e.g. platform) will do
v0n has joined #ruby
dumdedum has joined #ruby
<workmad3> shevy: which doesn't need a Gemfile ;)
<shevy> yeah but it needs other stuff
<shevy> >bundle help platform
<shevy> man: can't set the locale; make sure $LC_* and $LANG are correct
<shevy> man: command exited with status 255:
<shevy> man: can't execute most: No such file or directory
<workmad3> shevy: ah... it needs your shell to be set up properly, yes :P
mary5030 has joined #ruby
freerobby has quit [Quit: Leaving.]
shackleford has joined #ruby
bbloom has quit [Ping timeout: 245 seconds]
theRoUS has quit [Changing host]
theRoUS has joined #ruby
dingus_khan has joined #ruby
milkohol has joined #ruby
failshell has joined #ruby
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
timonv_ has joined #ruby
jottr_ has joined #ruby
klmlfl has joined #ruby
Kricir has quit []
mengu has quit [Remote host closed the connection]
Ankhers has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
silkfox has joined #ruby
MasterPiece has quit [Quit: Leaving]
SouL has joined #ruby
dingus_khan has quit [Ping timeout: 246 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ankhers has joined #ruby
anaeem1 has joined #ruby
AlSquirrel has joined #ruby
IceDragon has joined #ruby
RaCx has joined #ruby
<certainty> http://www.youtube.com/watch?v=fe4fyhzS3UM .. doesn't get old
* certainty dances
linojon has quit [Quit: linojon]
aspiers has joined #ruby
charliesome has quit [Quit: zzz]
jkreeftmeijer has joined #ruby
Tomme has quit [Ping timeout: 272 seconds]
RaCx has quit [Client Quit]
AlSquire has quit [Ping timeout: 246 seconds]
lazyguru has quit [Ping timeout: 246 seconds]
jkreeftmeijer has left #ruby [#ruby]
matchaw has quit [Read error: Connection reset by peer]
matchaw has joined #ruby
Morkel has joined #ruby
RaCx has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
Channel6 has quit [Quit: Leaving]
treehug88 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
RaCx has quit [Client Quit]
sk87 has joined #ruby
dopie has joined #ruby
manzo has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
dopiee has quit [Ping timeout: 245 seconds]
DrCode has quit [Ping timeout: 264 seconds]
fgo has quit [Read error: No route to host]
linojon has joined #ruby
awestroke has joined #ruby
aspires has joined #ruby
lsone has joined #ruby
ndrei has joined #ruby
fgo has joined #ruby
aganov has quit [Quit: Leaving]
lemur has quit [Remote host closed the connection]
timonv_ has joined #ruby
kaspertidemann has joined #ruby
DrCode has joined #ruby
lemur has joined #ruby
Takle has quit [Remote host closed the connection]
Cheezebox has joined #ruby
cina has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
lemur has quit [Ping timeout: 272 seconds]
evrei_ has joined #ruby
apeiros has quit [Remote host closed the connection]
cirn0 has joined #ruby
Takle has joined #ruby
stunder has joined #ruby
cirn0 has quit [Ping timeout: 260 seconds]
pwestlund has joined #ruby
erGoline has quit []
robbyoconnor has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
Tricon has joined #ruby
bbloom has joined #ruby
Envek has quit [Quit: Good bye, see you soon!/]
dhmbdq has joined #ruby
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
Cheezebox has quit [Remote host closed the connection]
bal has quit [Quit: bal]
Cheezebox has joined #ruby
djstorm has joined #ruby
ndwhtlssthr has joined #ruby
ryanleesipes has quit [Ping timeout: 246 seconds]
Juzdan has quit [Remote host closed the connection]
renderful has joined #ruby
Juzdan has joined #ruby
claymore has joined #ruby
kyote has quit [Changing host]
kyote has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
<catphish> is fiber threadsafe?
<toretore> yes
tvw has joined #ruby
<toretore> and no
klaut has joined #ruby
Waheedi has quit [Quit: Waheedi]
<toretore> if you run two fibers in two different threads then you're basically just running two threads, which is not "thread safe"
<mikecmpbll> what's the recommended method to url encode?
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
Cheezebox has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 246 seconds]
<catphish> URI.encode i think
saarinen has joined #ruby
mercwith1mouth has quit [Ping timeout: 260 seconds]
<mikecmpbll> ah oops, just realised that's in stdlib
<mikecmpbll> derp
<catphish> lol
<mikecmpbll> cheers ;)
<catphish> toretore: i'm pretty confused by what you just said
<centrx> fiber helps reduce constipation
<toretore> catphish: "thread safe" can mean many things, be more specific
<catphish> oh, you mean it's not thread safe but its safe to keep one fiber on one threrad
Juzdan has quit [Ping timeout: 272 seconds]
<catphish> and a separate fiber on a separatethread?
qmfnp has joined #ruby
<toretore> no
<toretore> then you have two threads
kaspergrubbe has joined #ruby
<catphish> so, specifically, can i run 2 different fibers in 2 different threads?
<waxjar> i don't think you can
<waxjar> ah wait yes you can
dapz has joined #ruby
<waxjar> you just can't resume a fiber from a different thread
<waxjar> iirc
<toretore> you can, yes
<catphish> but you can't resume one from another thread? which is what i suspect i'm inadvertently doing
<Hanmac> good that the stuff i does depend on is not thread safe ... so i dont need to care if my stuff is thread safe too ...
BlkDynmt has joined #ruby
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
St_Marx has joined #ruby
<toretore> catphish: it will explicitly say that in the exception message if you try
ssvo has joined #ruby
<catphish> in my experience making ruby code thread safe isn't hard, its the dependencies where you normally run into trouble
lampd1 has joined #ruby
<toretore> >> f=Fiber.new{ nevergethere }; Thread.new{ f.resume }
<eval-in_____> toretore => (https://eval.in/193624)
BlkDynmt_ has quit [Ping timeout: 272 seconds]
LekeFly has quit [Ping timeout: 258 seconds]
^mg^ is now known as mg^
<catphish> >> FiberError: fiber called across threads
<eval-in_____> catphish => /tmp/execpad-2ad1f04a91cd/source-2ad1f04a91cd:2: syntax error, unexpected ':', expecting keyword_end ... (https://eval.in/193626)
workmad3 has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Remote host closed the connection]
the_f0ster has joined #ruby
dapz has quit [Ping timeout: 260 seconds]
BRMatt has joined #ruby
<catphish> toretore: that's the exception i get in your example (and from my own code), i also get a lot of "FiberError: double resume"
starkhallo is now known as starkhalo
<catphish> i suspect my rack web server doesn't work in the way i think it does
d2dchat has joined #ruby
<toretore> what are you trying to do?
ffranz has quit [Ping timeout: 246 seconds]
<toretore> >> f=Fiber.new{ nevergethere }; Thread.new{ f.resume }.join
<eval-in_____> toretore => (https://eval.in/193627)
<toretore> ah
<toretore> no threads
oivoodoo has quit [Remote host closed the connection]
yfeldblum has joined #ruby
a__ has quit [Ping timeout: 272 seconds]
saarinen has quit [Quit: saarinen]
maletor_ has joined #ruby
renderful has quit [Remote host closed the connection]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
kenneth has joined #ruby
andrewjanssen has joined #ruby
glacius has quit [Quit: WeeChat 0.3.8]
ffranz has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
<Hanmac> toretore: as you can see the bot is threadsafe ... means "safe from threads" ;D
einarj has quit [Ping timeout: 260 seconds]
qmfnp has joined #ruby
adironduck has quit [Quit: adironduck]
adironduck has joined #ruby
<centrx> "safe because it never uses threads"
adironduck has quit [Client Quit]
kaspergrubbe has quit [Read error: Connection reset by peer]
<catphish> toretore: i have a rack app, when a web request comes in, it creates a fiber, inside that fiber it makes another outbound http request, an instance of a class is returned to rack which resumes that fiber in order to stream the data from the http request out through rack
starless has joined #ruby
dingus_khan has joined #ruby
kaspergrubbe has joined #ruby
RaCx has joined #ruby
Takle has joined #ruby
mityaz has quit [Quit: Leaving]
kobain has joined #ruby
<catphish> so far this has been a very effective way to create a streaming rack proxy, but when i run it with a threaded web server, it seems that the thread that streams the data out to users is not the same as the thread that called my rack app
einarj has joined #ruby
mr-foobar has joined #ruby
maestrojed has joined #ruby
kobain has quit [Max SendQ exceeded]
jeremy04 has joined #ruby
<catphish> might try an evented rather than threaded web server model to overcome this for now
gsd has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
noopq has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
<jhass> Hanmac: well, you still can wrap a non thread safe library in a thread safe way and even make it thread safe that way. You probably just wouldn't gain any performance from that ;P
Advocation has quit [Quit: Advocation]
dingus_khan has quit [Ping timeout: 272 seconds]
<Hanmac> jhass: if you want to do it with my stuff (i mean the c++ one) be my guest and make a pull request from it ;P
vesuvious has quit [Ping timeout: 250 seconds]
<jhass> Hanmac: I already told you your C++ proactively prevents contributions ;)
Jinkins has joined #ruby
Jinkins_1 has joined #ruby
zeroNones has joined #ruby
h4b0 has joined #ruby
<h4b0> Guys I have problem with one test(capybara).I made autocomplete directive in angular with jquery-ui and it working fine on website, but i have problem with pass integration test(capybara). I use poltergeist as driver with phantomjs. Probably problem is that, i use watch(angular) function for input(model), which giving permission to autocomplete after written sign hash '#'.And this is funny cuz
<h4b0> when I break test with binding.pry and i manually write instructions that working fine :) In autocomplete i use source from json(ajax).. problem can be here too ;/ Problem is that capybara didn't see suggests ;/ http:/http://pastebin.com/ssvrP9iM - Test http://pastebin.com/DqQnvANa - watch function
<h4b0>
dumdedum has quit [Ping timeout: 255 seconds]
mjwhitta has joined #ruby
roolo has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
aspiers has quit [Ping timeout: 245 seconds]
mjwhitta has quit [Client Quit]
<yo61> Can anyone tell me how to tell YAML output to use folded blocks instead of literal blocks?
LekeFly has joined #ruby
<shevy> yaml output?
<shevy> I only use YAML.dump
<yo61> some_has.to_yaml
<yo61> Or indeed, YAML.dump
<shevy> what is a folded block compared to a literal block?
ryanleesipes has joined #ruby
dhmbdq has quit [Remote host closed the connection]
LekeFly has quit [Client Quit]
freeone3000 has joined #ruby
cornfeedhobo has quit [Ping timeout: 272 seconds]
<shevy> is that a binary dump?
<yo61> No, just a regular dump
<shevy> if I understand that correctly, the folded one has had "\n" lines removed, the other one does not
cornfeedhobo has joined #ruby
<yo61> Yes, that's pretty much the difference
<shevy> can't you just use YAML.dump, then simply .reject {|line| line == "\n"}, and YAML.dump it again?
ndrei has quit [Ping timeout: 245 seconds]
kireevco has joined #ruby
a__ has joined #ruby
<shevy> before storing the actual yaml
Eiam_ has joined #ruby
<shevy> >> YAML.dump("LWfz
<shevy>
<shevy> 1po2R")
<eval-in_____> shevy => /tmp/execpad-f52ae8f1d40e/source-f52ae8f1d40e:5: syntax error, unexpected tGVAR, expecting ')' ... (https://eval.in/193644)
Eiam has quit [Disconnected by services]
<shevy> hmm
Eiam_ is now known as Eiam
timonv_ has quit [Read error: Connection reset by peer]
anaeem1 has quit [Ping timeout: 255 seconds]
<shevy> works in my IRB
freerobby has joined #ruby
<shevy> # => "--- |-\npA\n \nYn7mow\n"
<toretore> catphish: yeah you never really know with threads
geggam has joined #ruby
<shevy> I used another string in my irb though haha
<toretore> catphish: you should be able to use em to do what you want
<catphish> toretore: i'm just putting together the simplest implementation of this problem to do some more testing
AmBienCeD has joined #ruby
kireevco has quit [Client Quit]
<toretore> which will resume the fiber in the same thread
anaeem1_ has joined #ruby
HelperW has quit [Ping timeout: 255 seconds]
dumdedum has joined #ruby
<catphish> toretore: strangely, EM webservers won't stream
<catphish> that's the first thing i tried
<yo61> What I'm actually doing is something like:
<catphish> it works, but they buffer all the output
sectionme has quit [Ping timeout: 245 seconds]
joelanders has joined #ruby
<toretore> all the ruby webservers are pretty opaque with regards to their implementation details
qhartman has quit [Quit: Ex-Chat]
<toretore> not very reusable
fgo has joined #ruby
<mikecmpbll> what's the most sensible way to initialize a hash with a bunch of keys, from an array of said keys?
<toretore> catphish: have you tried the one where you return a [-1 headers, readable] response?
<mikecmpbll> values to nil
<toretore> can't recall which one it is, think it's em based
moted has quit []
<mikecmpbll> actually nvm i don't need to do that.
<mikecmpbll> not my day today.
<catphish> toretore: i don't think so
moted has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
renderful has joined #ruby
<jhass> mikecmpbll: for completeness: keys.zip([]).to_h
robbyoconnor has joined #ruby
shock_one has joined #ruby
<Hanmac> jhass so what do you have against my c++ code? (because its a ruby binding) or do you think that its making it more thread safe is not worth the problems?
andrewjanssen has quit [Quit: Leaving...]
kaspergrubbe has quit [Read error: Connection reset by peer]
<mikecmpbll> jhass: ;)
maletor_ has quit [Quit: Computer has gone to sleep.]
<jhass> Hanmac: it's Hanmac code! j/k, I really don't have the time and motivation to dive deep into C++, wxWidgets and thread safety in those ;)
<toretore> catphish: some interesting stuff @ https://github.com/rack/rack/pull/481
<catphish> toretore: well i can't reproduce this problem in development, only seems to kill my production web servers :)
fgo has quit [Ping timeout: 250 seconds]
Eiam has quit [Ping timeout: 245 seconds]
milkohol has quit [Quit: Textual IRC Client: www.textualapp.com]
MaciejCzyzewski has joined #ruby
<catphish> this is a simplified version of the app: http://paste.codebasehq.com/pastes/z9e67isnl9fz0mlaak though i havent reproduced the problem with this version in development environment :(
milkohol has joined #ruby
<MaciejCzyzewski> Hi folks!
qonufx has joined #ruby
<Hanmac> jhass: hm imostly would use rubys thread functions ... because wx does have its own ... but i dont think its worth to port them to ruby
Advocation has joined #ruby
bdnelson has joined #ruby
jeremy04 has quit [Remote host closed the connection]
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
nobitanobi has joined #ruby
<toretore> catphish: fyi that's not going to be any more efficient than without fibers
<toretore> you're still blocking on each fiber.resume
<shevy> Hanmac have you released wxwidget bindings as a gem yet?
<Hanmac> shevy no but i am still developing
sevenseacat has quit [Quit: Leaving.]
<shevy> only gem releases count!
<catphish> toretore: actually, i could pass the whole code block into the Stream class!
<shevy> just push it
<catphish> and just execute is there
<shevy> and lemme test it
orolo has quit [Quit: This computer has gone to sleep]
<toretore> catphish: you still won't get any concurrency unless you use the webserver's own concurrency primitives
rippa has joined #ruby
<toretore> you need to yield back to the server at some point
flowerhack has joined #ruby
<catphish> toretore: the point of this code isn't to achieve concurrency, its to be able to stream data to the client instead of buffering it
<toretore> well then you need support for that in the server too :)
<catphish> toretore: yes :)
Sou|cutter has quit [Quit: WeeChat 0.4.3]
threesixes has quit [Remote host closed the connection]
Sou|cutter has joined #ruby
<toretore> which means you're going to have to use threads, callbacks or fibers depending on the implementation of the server
sailias1 has quit [Client Quit]
sailias has joined #ruby
mocchi has quit [Ping timeout: 245 seconds]
orolo has joined #ruby
renderful has quit [Remote host closed the connection]
<catphish> toretore: what just occurred to me though is that rather than passing fiber back to rack, i can pass some params and let all the code execute in the Stream#each
Juzdan has joined #ruby
<catphish> this avoids fibers and my original problem (i think)
<toretore> sure, it would be the same
<catphish> oh, actually it doesn't because by that point is would be too late to change the headers and response code :(
<toretore> the fiber here is not adding anything
<shevy> I suddenly read steroids rather than fiber
andrewjanssen has joined #ruby
Xaitec has joined #ruby
<toretore> what matters is what you'll replace `sleep 1` with
mocchi has joined #ruby
<catphish> in my real implementation, the fiber does an http request
<toretore> using?
grokdancer has joined #ruby
<catphish> net/http
shredding has quit [Quit: shredding]
<catphish> let me paste code, this is silly :)
<toretore> which will still block the server calling thread
arup_r has joined #ruby
Sou|cutter has quit [Client Quit]
GriffinHeart has joined #ruby
mattmcclure has joined #ruby
Sou|cutter has joined #ruby
<catphish> that's not a problem afaik
<toretore> but it defeats the purpose
<toretore> you're not gaining anything at all
<catphish> the purpose is to stream the response as it happens
<toretore> the fiber doesn't add that capability
kaspergrubbe has joined #ruby
Lewix has joined #ruby
Juzdan has quit [Ping timeout: 272 seconds]
<catphish> there must be a reason i did it this way :| i wish i remembered what it was
sepp2k has quit [Quit: Leaving.]
tlarevo has joined #ruby
momomomomo has joined #ruby
<toretore> your fiber at this point is just a function call as far as concurrency is concerned
choke has joined #ruby
<catphish> well i'll try moving the whole logic that generates the output into "each" method
Eiam has joined #ruby
Takle has quit [Remote host closed the connection]
sepp2k has joined #ruby
Juzdan has joined #ruby
fennec has quit [Quit: Leaving]
<catphish> yes, i just remembered why i do it this way!
GriffinHeart has quit [Ping timeout: 258 seconds]
<catphish> the only way to stream a response from net/http is to use a block form of http#request
cndiv has joined #ruby
bricker`work has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<catphish> so i'm certain i need fibers
kireevco has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
oponder has quit [Remote host closed the connection]
<toretore> you still don't, but ok ;)
<catphish> i'd love to know another way
<catphish> the requirement is that i need to 1) make an http request 2) return its headers to rack 3) stream its data to rack
<toretore> define stream
<catphish> i need each chunk of data received by net/http to be yielded to rack
Kricir has joined #ruby
<catphish> currently i do: response.read_body { |chunk| Fiber.yield(chunk) }
juco has joined #ruby
yfeldblum has joined #ruby
joonty has quit [Quit: Leaving]
<toretore> class Streamer; def each; req{|res| res.read_body{|c| yield c } } end end
troyready has joined #ruby
<toretore> just do the request inside the streaming each
<toretore> it will have the same effect
Takle has joined #ruby
pushnell has joined #ruby
jaygen has joined #ruby
lsone has quit [Ping timeout: 255 seconds]
<toretore> but, you could of course use a fiber
GeorgesLeYeti has quit [Quit: Quitte]
icarus has joined #ruby
<toretore> class Streamer; def each; f=Fiber.new{ req{|res| res.read_body{|c| Fiber.yield c } } }; while d=f.resume; yield d end; end end
<toretore> same thing
<toretore> just more complex
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lemur has joined #ruby
h4b0 has quit []
yfeldblum has quit [Ping timeout: 258 seconds]
rippa has joined #ruby
malcolmva has quit [Ping timeout: 245 seconds]
aspiers has joined #ruby
AndChat| has quit [Ping timeout: 258 seconds]
<catphish> toretore: i can't do the request inside the streaming each, because it's too late to give the headers to rack at that point :(
jaygen_ has quit [Ping timeout: 258 seconds]
linojon has quit [Quit: linojon]
Synthead has joined #ruby
ryanleesipes has quit [Ping timeout: 272 seconds]
<toretore> sure you can, it's exactly the same
<catphish> rack needs to be given the final headers along with the instance of the enumerable
<toretore> [200, headers, Stream.new]
BTRE has quit [Ping timeout: 240 seconds]
<catphish> ok... and where would the request get run?
waheguru has joined #ruby
<catphish> sorry if i'm being dim here!
<toretore> inside Stream#each
<toretore> of course, if you need to wait for a response before you can pass the headers to rack, that's different
<catphish> but then it can't provide "headers" and 200 that you just used previously
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
<toretore> but the problem still does not inherently need a fiber
linojon has joined #ruby
<toretore> there is no concurrency happening
HelperW has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
maloik_ has quit [Ping timeout: 250 seconds]
endash has quit [Quit: endash]
<toretore> the key point to realize is that the fiber in this case is nothing more than a function call
<toretore> replace "fiber" with "generator" and it's clearer
<catphish> toretore: i understand that in theory there's no concurrency, but because of the net/http and rack APIs, its a necessary hack :(
<toretore> or "iterator"
<toretore> nope, still not necessary ;(
Xaitec has quit [Remote host closed the connection]
<toretore> ;) i mean
<toretore> ;D ;D ;D ;D !!!!
RustyShackleford has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
diegoviola has joined #ruby
<catphish> is there an actual practical way i can avoid it?
<toretore> i just showed you
kaspergrubbe has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 260 seconds]
maloik has joined #ruby
<toretore> class Streamer; def each; req{|res| res.read_body{|c| yield c } }; end; end
<catphish> you said "of course, if you need to wait for a response before you can pass the headers to rack, that's different"
<catphish> which is exactly my problem
deric_skibotn has joined #ruby
<catphish> i need to pass the headers from the http response to rack
kaspergrubbe has joined #ruby
starless has quit [Quit: WeeChat 1.0]
thagomizer has joined #ruby
<waxjar> does #read_body return an enumerator when you do not give it a block?
tobago has joined #ruby
<waxjar> if so, could just do [req.code, req.headers, req.read_body]
ephemerian has left #ruby [#ruby]
roolo has quit [Quit: Leaving...]
<catphish> waxjar: i hope not, or i'm going to feel really stupid, i think because it's inside a "http.request do" block, that will not work, but i'll try it
<toretore> catphish: i am going to assume that by "wait for a response" here means "wait only for the headers to return"
garbanotas has quit [Read error: Connection reset by peer]
<catphish> toretore: precisely
garbanotas has joined #ruby
SDr has quit [Read error: Connection reset by peer]
sk87_ has joined #ruby
SDr has joined #ruby
SDr has quit [Changing host]
SDr has joined #ruby
bricker`work has quit [Read error: Connection reset by peer]
chth0n has quit [Ping timeout: 246 seconds]
<catphish> thanks for all the suggestions by the way
bricker`work has joined #ruby
sk87 has quit [Read error: Connection reset by peer]
<catphish> its helping me re-understand the problem, which i solved in this fiber manner way a long time ago
<nobitanobi> morning
RaCx has quit [Ping timeout: 258 seconds]
<waheguru> HI
<joelanders> driveby question: does 10.times {puts ("" + Random.new.bytes(1)).encoding} work as you expect?
<Hanmac> nobitanobi: gemtree now has a -b option to allow the arrows to be combine if possible like this http://i.imgur.com/JGJqx5J.png VS http://i.imgur.com/12krVxe.png
<waheguru> I want to create one rubyonrails application without using models but want to use table fields. is their anyway to do such
dingus_khan has joined #ruby
<waheguru> I want to create one rubyonrails application without using models but want to use table fields. is their anyway to do such
<wasamasa> HI
<nobitanobi> Hanmac: interesting?
<catphish> joelanders: that makes a horiffic mess :)
<jhass> joelanders: depends on what you expect I guess
klmlfl_ has joined #ruby
<jhass> waheguru: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
psyprus has joined #ruby
sparrovv has joined #ruby
<Hanmac> nobitanobi: newest changing of my Gemtree stuff https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a ... it already has more than 11 command line options
aspiers has quit [Ping timeout: 258 seconds]
RaCx has joined #ruby
mocfive has joined #ruby
<catphish> joelanders: in my case it is UTF-8 where possible, and binary when not
<nobitanobi> Hanmac: thanks for sharing that.
<nobitanobi> I will take a look
<joelanders> "" is always UTF-8, Random.new.bytes(1) is always ASCII-8BIT, I would expect the concatenation to always be UTF-8
<catphish> not sure why the default encoding is utf8 though
klmlfl__ has joined #ruby
LiohAu_ is now known as LiohAu
Juzdan has quit [Remote host closed the connection]
<catphish> joelanders: chars > 127 are not ascii and therefore likely not valid utf8
melik_ has joined #ruby
<catphish> so it falls back to binary
shock_one has joined #ruby
<joelanders> 10.times {puts (Random.new.bytes(1)).encoding} #<= always ASCII-8BIT
Juzdan has joined #ruby
BTRE has joined #ruby
klmlfl has quit [Ping timeout: 250 seconds]
<catphish> joelanders: your source code is likely utf8, so "" is UTF8
<catphish> and it tries to maintain that
kalusn has quit [Remote host closed the connection]
<catphish> when the appended character is valid ascii
malcolmva has joined #ruby
<catphish> whereas Random.new.bytes(1) is always binary
MissionCritical has quit [Ping timeout: 260 seconds]
<catphish> so, UTF8+binary = UTF8 (if valid)
dingus_khan has quit [Ping timeout: 272 seconds]
juco has quit [Remote host closed the connection]
<catphish> UTF8+binary = BINARY (when not valid UTF8)
<catphish> that is what i'd expect, and is what is happening, but i have no documentation to back this up
sk87_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgsteele has quit [Ping timeout: 250 seconds]
klmlfl_ has quit [Ping timeout: 246 seconds]
<joelanders> it's driving me insane
sparrovv has quit [Ping timeout: 260 seconds]
<catphish> joelanders: it shouldn't, just set the encodings appropriately
melik_ has quit [Ping timeout: 246 seconds]
fsapo has joined #ruby
<joelanders> catphish: like with "\x00".force_encoding('ASCII-8BIT') everywhere?
Juzdan has quit [Ping timeout: 250 seconds]
oponder has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mikecmpbll has quit [Ping timeout: 272 seconds]
W0rmDr1nk has joined #ruby
waheguru has quit [Remote host closed the connection]
W0rmDr1nk has quit [Changing host]
W0rmDr1nk has joined #ruby
<catphish> joelanders: well i don't know your actual scenario, but yes, that would make sense if you're defining binary in source code
rkalfane has joined #ruby
<catphish> "0.chr" might help you
<catphish> actually that's not binary either, so no
jottr_ has quit [Ping timeout: 272 seconds]
Synthead has quit [Remote host closed the connection]
kaspertidemann has quit []
rkalfane has quit [Client Quit]
Jackneill has joined #ruby
<joelanders> Random.new.bytes(1).force_encoding('UTF-8') + Random.new.bytes(1).force_encoding('ASCII-8BIT') #this raises
<toretore> the sleep loop is a bit hacky, but jsut to show that it's possible
<joelanders> "\x00".force_encoding('ASCII-8BIT') + "\x00".force_encoding('UTF-8') # this does not raise
ryanleesipes has joined #ruby
_musl_ has quit [Quit: WeeChat 0.4.3]
Synthead has joined #ruby
<toretore> joelanders: Randon.new.bytes being binary makes sense
musl has joined #ruby
<toretore> '' being utf-8 makes sens
<freeone3000> joelanders: Why would you expect it to raise for byte 0?
<joelanders> i guess i'm expecting some kind of class-based consistency, rather than it being dependent on values
<catphish> toretore: what is Request here?
<toretore> catphish: the http request
<toretore> i don't know exactly how you'd do it with net/http
<catphish> oh ok
<catphish> joelanders: raises?
LiohAu has quit [Quit: LiohAu]
<catphish> why on earth are you forcing a binary string to UTF8?
<eam> joelanders: but string encoding being valid is entirely dependent on the values
<catphish> joelanders: everything you've described makes sense, but i dont understand what you want to achieve
<eam> a valid utf8 string is dependent on the values of bytes it contains
<toretore> and why are you doing ''+Random.new.bytes(1)
<eam> >> 145.chr.force_encoding('UTF-8') +203.chr.force_encoding('ASCII-8BIT')
<eval-in_____> eam => incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError) ... (https://eval.in/193720)
MissionCritical has joined #ruby
kaspergrubbe_ has joined #ruby
<eam> because you can't have those two bytes in a valid utf8 string
<catphish> joelanders: as far as i can tell, ruby is trying its best to undo your mess, but you should make sure all strings are the right encoding to begin with
benzrf|offline is now known as benzrf
lsone has joined #ruby
<eam> joelanders: if you want to add together random byte sequences you can't have it encoded
<catphish> if you're making a binary string, define it as such, "" is not binary
<eam> because an encoding is, by definition, not encoded
<eam> er, a random string is
<toretore> catphish: to be fair, using a fiber to block the thread in this case is not a bad idea at all
robbyoconnor has quit [Ping timeout: 260 seconds]
<eam> and an encoded string is by definition not random
nettoweb has joined #ruby
<toretore> catphish: i.e. your original reasoning was sound
nettoweb has quit [Max SendQ exceeded]
musl has quit [Client Quit]
fgo has joined #ruby
<catphish> toretore: thanks, thats what i thought, until my webserver exploded it :(
g0bl1n has joined #ruby
musl has joined #ruby
robbyoconnor has joined #ruby
<joelanders> eam: ah ok
<catphish> joelanders: just make sure all strings are the right encoding at the start of their life and you'll be fine
saarinen has joined #ruby
<eam> life was better when languages simply dealt in byte arrays
<toretore> NO
<catphish> i also disagree
<toretore> URE WRONG
square-r00t has joined #ruby
<eam> #goisright
<catphish> besides, ruby strings are just byte strings with a tag on them
square-r00t has left #ruby ["i don’t know why i think pressing ctrl-c harder will help."]
<toretore> UTF-8 IS THE SAVIOR OF MANKIND
kaspergrubbe has quit [Ping timeout: 260 seconds]
<eam> catphish: no they're a lot more as evidenced by the above
lolmaus_ has joined #ruby
<catphish> eam: not at all, its only the methods that are advanced, the storage is very simple
<eam> "they're just this, except for the other stuff"
<catphish> you can just tell it everything is binary if you want and the methods will treat them as such
<eam> I think you just agreed with me ;-)
M-Technic has joined #ruby
<joelanders> like when I have a constant "\x00\x00\x04\x17\x27\x10\x19\x80", I actually need to say "\x00\x00\x04\x17\x27\x10\x19\x80".force_encoding('BINARY')?
<catphish> perhaps :)
Tomme has joined #ruby
<toretore> CHARACTERS NOT BYTES!!!!!
<catphish> joelanders: yes
lsone has quit [Ping timeout: 246 seconds]
bennylope has joined #ruby
<momomomomo> serialize everything
<toretore> i mean codepoints
<eam> toretore: characters are for interaction with humans and I don't want to do that
<shevy> you don't want to interact with humans
<shevy> you are so evil
<shevy> perl has made you that way I bet eam
<eam> wtf
<toretore> not for interaction, but for human communication which you inevitable will have to deal with ;)
nettoweb has joined #ruby
<catphish> i wish ruby had a better way to define a binary string
d2dchat has quit [Remote host closed the connection]
ramfjord has joined #ruby
<eam> shevy: perl has had better unicode support for a decade btw :)
<joelanders> doesn't python do something like u'blah'
<shevy> I liked ruby 1.8.x more too
<shevy> all those annoying encoding errors that we now have
<catphish> joelanders: consider [65,66,67,68,69].pack('c*')
<catphish> joelanders: much neater IMO
<shevy> eam did you know that Regexp.quote changes the encoding of the string you pass it to?
fgo has quit [Ping timeout: 250 seconds]
lolmaus has quit [Ping timeout: 272 seconds]
danijoo_ has quit [Read error: Connection reset by peer]
<toretore> haha mutability
<catphish> joelanders: pack always makes binary strings
<joelanders> catphish: and if I want to type it in hex, I have to do unpack then pack?
danijoo has joined #ruby
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<catphish> joelanders: no...
<catphish> [0x00, 0x00, 0x00].pack('c*')
<joelanders> apparently, there's also String#b
robbyoconnor has quit [Ping timeout: 250 seconds]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<joelanders> catphish: [facepalm]
<catphish> joelanders: also a good option :)
robbyoconnor has joined #ruby
<catphish> i like .b never knew about that :)
<jhass> I think it's fairly new
<jhass> 18>> "foo".b
<eval-in_____> jhass => undefined method `b' for "foo":String (NoMethodError) ... (https://eval.in/193734)
<catphish> but still, i don't like defining strings in \x00\x01 format
<jhass> 19>> "foo".b
<eval-in_____> jhass => undefined method `b' for "foo":String (NoMethodError) ... (https://eval.in/193735)
<jhass> 20>> "foo".b
<eval-in_____> jhass => "foo" (https://eval.in/193737)
<catphish> its much harder to read
<toretore> >> RUBY_VERSION
<eval-in_____> toretore => "2.1.2" (https://eval.in/193739)
<catphish> wfm in 2.1.2
elaptics is now known as elaptics`away
<catphish> >> RUBY_REVISION
<eval-in_____> catphish => 45877 (https://eval.in/193742)
<catphish> same rev :|
<joelanders> catphish: yeah I like that [0x00].pack('c*') stuff. i need to just clean up all my code and make all my binary strings like this
<catphish> eval-in_____ hates you :)
klaut has quit [Remote host closed the connection]
thumpba has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
<toretore> >>"foo".b
<eval-in_____> toretore => "foo" (https://eval.in/193743)
<catphish> err
LeoDee has left #ruby ["Leaving"]
chrishough has joined #ruby
<catphish> >>"binary".b
<eval-in_____> catphish => "binary" (https://eval.in/193744)
stunder has quit [Remote host closed the connection]
LiohAu_ has joined #ruby
cirn0 has joined #ruby
enriclluelles has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
Juzdan has joined #ruby
failshel_ has joined #ruby
patric100e99 has quit [Quit: leaving]
lsone has joined #ruby
patrick99e99 has joined #ruby
Takle has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
alex88 has quit [Quit: Leaving...]
orolo has joined #ruby
teddyp1c_ has joined #ruby
RaCx has joined #ruby
failshel_ has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
failshel_ has joined #ruby
RaCx has quit [Client Quit]
failshell has quit [Ping timeout: 258 seconds]
cirn0 has quit [Ping timeout: 272 seconds]
qhartman has joined #ruby
teddyp1cker has quit [Ping timeout: 258 seconds]
<joelanders> ok one more thing, when I force_encoding one string to UTF-8 and another string to ASCII-8BIT, then try to concatenate them, I get Encoding::CompatibilityError
RaCx has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
GriffinHeart has joined #ruby
wallerdev has joined #ruby
<freeone3000> joelanders: UTF-8 does not allow every ASCII-8BIT character.
Takle has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<joelanders> \x00 + \x00 should be alright?
agjacome has joined #ruby
rgsteele has joined #ruby
<joelanders> ok that works...
oivoodoo has joined #ruby
lkba has joined #ruby
fabrice31 has joined #ruby
<joelanders> freeone3000: yeah this is probably it, thanks
d2dchat has joined #ruby
jay has joined #ruby
jay is now known as rubyonrailed
pandaant has quit [Quit: Lost terminal]
kaspergrubbe_ has quit [Read error: Connection reset by peer]
<joelanders> freeone3000: does ASCII-8BIT allow every UTF-8 character?
<freeone3000> joelanders: Yes.
yfeldblum has joined #ruby
pandaant has joined #ruby
<joelanders> so a+b or b+a should work?
qba73 has quit []
<joelanders> freeone3000: one of them, i mean
<freeone3000> I'm not sure what the resulting encoding of the string would be.
wald0 has quit [Quit: Lost terminal]
melik_ has joined #ruby
<joelanders> freeone3000: that makes me feel better
<joelanders> freeone3000: :)
GriffinHeart has quit [Ping timeout: 258 seconds]
<jhass> joelanders: use pack to construct byte sequences, not +
<joelanders> freeone3000: I have an example where (b+a) and (a+b) both raise
kaspergrubbe has joined #ruby
siwica has joined #ruby
stunder has joined #ruby
<joelanders> freeone3000: I'm just being pedantic at this point, after spending this long trying to understand it
lsone has quit [Ping timeout: 245 seconds]
doritostains has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 246 seconds]
Cheezebox has joined #ruby
marlonandrade has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
sleepee has quit [Quit: Leaving]
lsone has joined #ruby
<freeone3000> joelanders: It's possible the resulting string is UTF-8, which would cause an illegal sequence to be generated both ways. Which is why you should use pack.
claymore has quit [Quit: Leaving]
rbenv has joined #ruby
claymore has joined #ruby
noopq has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
Akagi201 has quit []
<joelanders> freeone3000: ok
<joelanders> thanks all
joelanders has left #ruby ["WeeChat 0.3.2"]
yfeldblum has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
RaCx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<benzrf> >> 'f'.b
<eval-in_____> benzrf => "f" (https://eval.in/193745)
techsethi has joined #ruby
maestrojed has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
<eam> >> ["☃".b.each_char.to_a, "☃".each_char.to_a, "☃".each_byte.to_a]
spider-mario has joined #ruby
Wolland has joined #ruby
arup_r has joined #ruby
<eam> now why did that fail?
<jhass> eval-in has its hiccups
LiohAu_ has quit [Quit: LiohAu_]
AlexRussia_ has quit [Read error: Connection reset by peer]
<jhass> btw. each_char.to_a == chars, each_byte.to_a == bytes and so on
failshel_ has quit [Remote host closed the connection]
AlexRussia_ has joined #ruby
<eam> >> ["☃".b.each_char.to_a, "☃".each_char.to_a, "☃".each_byte.to_a]
<eam> >> 1
<eval-in_____> eam => 1 (https://eval.in/193757)
<eam> I bet there's some encoding issue
<jhass> >> "☃"
ramfjord has joined #ruby
<jhass> mmh, used to work
GinoMan has quit [Ping timeout: 272 seconds]
rockdon_ has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
rockdon_ is now known as rockdon|away
failshell has joined #ruby
<eam> >> x = "\xE2\x98\x83"; [x.b.each_char.to_a, x.each_char.to_a, x.each_byte.to_a]
oivoodoo has quit []
<eam> >> x = "\xE2\x98\x83"; [x.each_byte.to_a]
<eval-in_____> eam => [[226, 152, 131]] (https://eval.in/193760)
<eam> eval-in bot can't handle unicode =/
claymore has quit [Ping timeout: 260 seconds]
claymore has joined #ruby
7GHAA2KIH has joined #ruby
<jhass> >> "\xE2\x98\x83".codepoints
<eval-in_____> jhass => [9731] (https://eval.in/193761)
claymore has quit [Changing host]
claymore has joined #ruby
tcrypt has joined #ruby
<eam> >> "\xE2\x98\x83"
<eam> that should be "☃"
<jhass> yeah, something broke
<jhass> as said, used to work
Cheezebox has quit [Remote host closed the connection]
a__ has quit [Ping timeout: 272 seconds]
Cheezebox has joined #ruby
rockdon|away is now known as rockdon_
Xeago has quit [Remote host closed the connection]
rockdon_ has quit [Client Quit]
<jhass> you can change the id
ndrei has joined #ruby
maasha has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
<maasha> Guys, I have a problem. My app is too slow :o(. On the test data run time is ~1.5min for the non-forked version and 5-6 min for the forked version, where I would have expected ~45 secs.
sdegutis has joined #ruby
narph has quit [Quit: Connection closed for inactivity]
<maasha> test data, test script and profiles are here: ftp://ftp_20140915_588:R4r-EtqQejbG@ftp.dna.ku.dk
autochthon has quit [Quit: autochthon]
<sdegutis> How do you create a Ruby string from a C string?
douglasssssss has joined #ruby
<maasha> sdegutis: did you check README.EXT?
<sdegutis> Oh! Thanks I will.
<maasha> rb_str_new
Cheezebox has quit [Ping timeout: 260 seconds]
<sdegutis> rb_str_new_cstr()
<sdegutis> But thanks :)
<maasha> sdegutis: yeah, there are different useful flavors.
<sdegutis> +1
<sdegutis> i wrote my first singleton ruby method in C! woot.
<sdegutis> ok time to do it in python now
<maasha> .oO(nerd)
mocfive has quit [Remote host closed the connection]
<maasha> :o)
shosti has joined #ruby
<sdegutis> hmm
mocfive has joined #ruby
djbkd has joined #ruby
<sdegutis> I don't see a way to get the C string back out.
rippa has joined #ruby
<sdegutis> Oh, StringValue
<maasha> thats t
<maasha> *thats it
<maasha> Or StringValuePtr
<maasha> Or StringValueCStr
<sdegutis> StringValueCStr
<sdegutis> yeah that one is better for me
<sdegutis> but its really just rb_string_value_cstr
claymore has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
jeremy04 has joined #ruby
HelperW has quit [Quit: Computer has gone to sleep.]
claymore has joined #ruby
techsethi has quit [Quit: techsethi]
HelperW has joined #ruby
tkuchiki has joined #ruby
catphish has quit [Quit: Leaving]
cina has quit [Ping timeout: 245 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
<sdegutis> woot, Core::Keycodes.getkey(3)
<sdegutis> so exciting!
mocfive has quit [Ping timeout: 255 seconds]
codecop has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
shackleford has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
mercwith1mouth has quit [Ping timeout: 245 seconds]
stunder has quit [Quit: Screw you guys I'm going home]
lkba has joined #ruby
jottr_ has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
IceDragon has quit [Ping timeout: 255 seconds]
HelperW has quit [Ping timeout: 272 seconds]
<centrx> Overriding new, good idea or great idea?
IceDragon has joined #ruby
<jhass> strong reason needed idea
aspires has quit []
<jhass> but not insane since we got Object#allocate
jbueza has joined #ruby
doritostains has quit [Quit: doritostains]
claymore has quit [Quit: Leaving]
claymore has joined #ruby
poguez_ has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
yacks has quit [Ping timeout: 272 seconds]
apeiros has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
benlieb has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
fgo has joined #ruby
m8 has joined #ruby
djbkd has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
yacks has joined #ruby
jrhe_ has joined #ruby
iceden has joined #ruby
m8 has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
elstif has quit [Quit: Leaving.]
St_Marx has quit [Quit: Ex-Chat]
benlieb has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
bennylope has quit [Quit: My Tandy 1000 has gone to sleep. ZZZzzz…]
<benzrf> jhass: you mean Class#allocate
<jhass> eh, yes
zwischenzug has joined #ruby
<zwischenzug> kinda new to ruby, but wondering if there is a recipe for creating an object from a hash
agent_white has joined #ruby
<jhass> zwischenzug: kinda vague question
<Hanmac> zwischenzug: you are looking for OpenStruct
noopq has quit [Ping timeout: 250 seconds]
<zwischenzug> Person.new({name: "Joe",phone:5553928})
<agent_white> Afternoon folks
<zwischenzug> and it automatically sets the instance variables name, and phone
dc__ has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
jeremy04_ has joined #ruby
<jhass> inside rails look at activemodel
jeremy04 has quit [Read error: Connection reset by peer]
<jhass> else, just iterate over the hash and use instance_variable_set
<zwischenzug> not in rails
ndrei has quit [Ping timeout: 272 seconds]
<jhass> but maybe all you want is an OpenStruct
<jhass> impossible to say from that little information
benlieb has joined #ruby
<eam> what's the best way to open("f", O_WRONLY|O_CREAT|O_EXCL, S_IWUSR|S_IRUSR) in ruby? File/io docs aren't clear
<eam> I know I can: File.sysopen("f", "w", Integer("0600")) but how do I modify the rest of the open flags?
<eam> 2nd arg should be an integer, not "w"
<zwischenzug> i don't really understand the difference between openstruct and hash
claymore has quit [Quit: Leaving]
Cheezebox has joined #ruby
jeremy04_ has left #ruby [#ruby]
TheNet has joined #ruby
<Hanmac> zwischenzug: like i said use OpenStruct
agent_white has quit [Client Quit]
HelperW has joined #ruby
noopq has joined #ruby
postmodern has joined #ruby
Jake232 has joined #ruby
agent_white has joined #ruby
<eam> it appears mode can be an integer as well, though this isn't mentioned in the docs
jds_ has joined #ruby
RickyGreen has joined #ruby
cougarten has quit [Ping timeout: 250 seconds]
<RickyGreen> Hello :)
<agent_white> Allo!
<apeiros> eam: Integer("0600") == 0600
Gabri has joined #ruby
kaspertidemann has joined #ruby
<apeiros> >> Integer("0600") == 0600
<eval-in_____> apeiros => true (https://eval.in/193769)
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
noopq has quit [Ping timeout: 255 seconds]
benlieb has quit [Read error: Connection reset by peer]
<eam> apeiros: yeah sure, copied from somewhere it's a variable and not a literal
kaspergrubbe has joined #ruby
mocfive has joined #ruby
<eam> (string variable)
<apeiros> and the rest of the flags are probably available as constants on IO
dc___ has joined #ruby
dc__ has quit [Read error: Connection reset by peer]
<eam> File.sysopen("f", Fcntl::O_CREAT|Fcntl::O_EXCL, 0600)
<apeiros> e.g. O_EXCL is probably IO::EXCL
<eam> it's not documented that the second arg can be an integer
<eam> IO docs on the method all use "w", "r" etc
tvw has quit []
<RickyGreen> Been a long time since i've use IRC, Started to read Ruby on Rails 3 Tutorial by Michael Hartl, I've got to the github part but i'm struggling to set sublime text editor to my default editor. i'm running OSX 10.8.
<eam> my flags are coming in from json, which can't do octal constants
<eam> so I used a string for mode
<apeiros> eam: my docs do
benlieb has joined #ruby
<RickyGreen> If anyone could give me a pointer, that would be great, i'm a web designer so hopefully i should pick it up without a problem, i say that.. :P
<apeiros> === Open Mode
<apeiros> When mode is an integer it must be…
<apeiros> from IO.new, which IO.open references
jerius has quit []
<eam> apeiros: here?
noopq has joined #ruby
shredding has joined #ruby
freerobby has quit [Quit: Leaving.]
<eam> up in new, sigh
BRMatt has quit [Quit: Connection closed for inactivity]
<apeiros> well, you use IO.open, and IO.open says you should look there
<apeiros> "See ::new for a description of the fd, mode and opt parameters."
freerobby has joined #ruby
Gabri has quit [Client Quit]
jerius has joined #ruby
<eam> actually I looked at File.open which has nothing like that, then went to IO.sysopen, which has no docs
GriffinHeart has joined #ruby
<eam> I guess there's a "see, see" link
<eam> super annoying/confusing
<apeiros> huh?
<apeiros> File.open should display IO.open docs
<eam> there should be just one open method with all the docs
moritzschaefer has quit [Ping timeout: 250 seconds]
<eam> it's inane
<apeiros> as it's inherited directly. no redefinition
<eam> in any other language I go look up the docs for open()
<eam> is S_IWUSR defined anywhere?
<apeiros> na, rubys docs are not always as good as they should be. but I don't think you can blame them in this case.
TheNet has quit [Remote host closed the connection]
yxhuvud has quit [Remote host closed the connection]
<eam> it's the structure - there shouldn't be more than one definition for an open() method
<RickyGreen> Is there a channel for newbies?
<apeiros> eam: also http://www.ruby-doc.org/core-2.1.2/File.html#method-c-open says precisely the same: "See IO.new for a description of the mode and opt parameters."
nanoyak has joined #ruby
<apeiros> eam: the structure is as direct as can be.
<agent_white> RickyGreen: This is it? :)
<apeiros> you call File.open, you look up File.open.
<apeiros> if it is inherited, you get the superclass' definition.
tomgavin has joined #ruby
TheNet has joined #ruby
<apeiros> and yes, there should be as many docs on open as there are classes implementing it. that's OO.
momomomomo has joined #ruby
<RickyGreen> Agent_white, i need some help setting my editor up in terminal, could you help, i've not dealt with terminal before so i need to get into it :)
<agent_white> RickyGreen: What editor? And that's a bit more broad than just Ruby (more a question for your OS)... but I may be able to help?
d2dchat has quit [Remote host closed the connection]
bennylope has joined #ruby
sambao21 has joined #ruby
endash has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
treehug88 has quit [Ping timeout: 260 seconds]
<agent_white> RickyGreen: Feel free to PM me.
danijoo has joined #ruby
<RickyGreen> True, Sorry for the assumption, I'm on OS 10.8 and i use Sublime Text editor, i'm open to applications that would help me program ruby, i use sublime text editor to code HTML / CSS so i figured it's a decent place to start.
kaspergrubbe has quit [Read error: Connection reset by peer]
<RickyGreen> Well, i don't mind PM, thanks for your hospitality. :)
GriffinHeart has quit [Ping timeout: 272 seconds]
d2dchat has joined #ruby
Cheezebox has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
endash has quit [Client Quit]
reset has joined #ruby
shackleford has joined #ruby
mary5030 has quit [Remote host closed the connection]
Aaaal has quit [Quit: Aaaal]
troulouliou_dev has joined #ruby
mikeg has joined #ruby
Juzdan has quit [Remote host closed the connection]
Juzdan has joined #ruby
linojon has quit [Quit: linojon]
sambao21 has quit [Quit: Computer has gone to sleep.]
lsone_ has joined #ruby
stunder has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
rafacv has joined #ruby
lsone has quit [Read error: No route to host]
lsone has joined #ruby
lemur has joined #ruby
niklasb has joined #ruby
Juzdan has quit [Ping timeout: 255 seconds]
rafacv has left #ruby [#ruby]
atmosx has joined #ruby
mikecmpbll has joined #ruby
ramfjord has joined #ruby
lsone_ has quit [Ping timeout: 258 seconds]
diegoviola has quit [Quit: WeeChat 1.0]
Takle has joined #ruby
lsone has quit [Client Quit]
Juzdan has joined #ruby
lemur has quit [Ping timeout: 255 seconds]
linojon has joined #ruby
nobitano_ has joined #ruby
hellangel7 has quit [Remote host closed the connection]
b00stfr3ak has quit [Quit: leaving]
|splat| has left #ruby [#ruby]
b00stfr3ak has joined #ruby
cougarten has joined #ruby
sambao21 has joined #ruby
<shevy> so many mac users
diegoviola has joined #ruby
awestroke has quit [Remote host closed the connection]
<agent_white> SOH manee.
<shevy> pipework, look man looook! "<apeiros> na, rubys docs are not always as good as they should be"
<shevy> when I said that to pipework he would not want to believe me :(
dingus_khan has joined #ruby
nobitanobi has quit [Ping timeout: 258 seconds]
<pipework> shevy: They usually work fine for me. If they don't, source is open.
<shevy> that's why I keep on people to ask you for the docs - you always have the link ready :>
<apeiros> shevy: of course not. he's a ghost. we don't believe in ghosts, ghosts don't believe you.
<pipework> I think I get to benefit from being a native English speaker though, so I can bridge gaps in documentation easier than others.
Hobogrammer has joined #ruby
<apeiros> pipework: no amount of nativeness ever gaps "ri Kernel#select: see Kernel#select" :-p
<shevy> are you saying that the japanese are bad at writing english documentation
nfk has joined #ruby
Mars___ has joined #ruby
<shevy> you simply have to read it out aloud while wearing a japanese thinking hat
<agent_white> "What Would Matz Think"
<shevy> "file katana katana! -> chop off file -> remove file -> File.delete"
<shevy> precisely agent_white!
g0bl1n has quit [Quit: g0bl1n]
<shevy> when you think like matz
<shevy> you won't need any documentation at all
mary5030 has joined #ruby
m8 has joined #ruby
<eam> apeiros: not nearly as direct as it could be - each re-definition of open() could have no docs other than "go here"
jeremy04 has joined #ruby
<shevy> circular documentation pointers are a lot of fun
<eam> instead of a bunch of repetative fluff and then one line of "oh yeah look here"
<eam> parts of the docs are spread all over
<apeiros> eam: you misunderstand. there is no redefinition of open.
<apeiros> File.open *is* IO.open.
<shevy> but it looks like a File!
<pipework> apeiros: Without having used it, the documentation seems not optimal but would be enough for me, knowing how `man` works and what select(2) is.
<apeiros> and ruby docs used to not have docs of inherited methods. people were even more confused.
<eam> this is what a good open doc looks like: http://perldoc.perl.org/functions/open.html
freerobby has quit [Quit: Leaving.]
<shevy> eam you should have been there when ruby docu has used multiple html frames
<apeiros> pipework: that was part of your english discourse? fascinating :-p
dingus_khan has quit [Ping timeout: 272 seconds]
<pipework> apeiros: I don't know what you mean.
<eam> apeiros: I know. There's repetition in the docs
<eam> and it obscures wtf is going on
<eam> btw I'm pretty sure there's no way to get at mode constants in ruby
<eam> like at all
<eam> like S_IWUSR = 0200
<apeiros> eam: IMO perl docs are overall very good. but I don't agree with the issue you are having. but I doubt that any of us will change stance on this :)
<eam> I'm just complaining
<eam> if I was going to fix it I could totally document it
Tricon has quit [Quit: Leaving...]
fgo has joined #ruby
zoo-zed has joined #ruby
<apeiros> some of them are there. but I don't see anything which could be S_IWUSR.
yxhuvud has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
<apeiros> maybe it's not a portable flag? no idea. don't know S_IWUSR :-/
<agent_white> I think Ruby docs are awesome... least I haven't had any issues with them so far.
<agent_white> The examples are fantastic.
<eam> it's the user writable permissions bit
<eam> apeiros: compare open() in ruby doc to the perl one
<eam> er sorry agent_white
<apeiros> eam: ah, does are not defined indeed.
<shevy> agent_white especially the parts that are not documented
<apeiros> s/does/those/
MaciejCzyzewski has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<agent_white> eam: Oh wow... I take back what I said.
<eam> I might add S_* to fcntl
<shevy> agent_white look at this AWESOME documentation http://ruby-doc.org/stdlib-2.1.2/libdoc/optparse/rdoc/OptionParser/AC.html \o/
ndrei has joined #ruby
p0sixpscl has joined #ruby
<apeiros> eam: anyway, if you want to contribute - zzak is awesome at pushing doc patches
<eam> yeah he rules, if I have time I will
rafacv has joined #ruby
<eam> super trivial patch
mary5030 has quit [Ping timeout: 272 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MaciejCzyzewski has quit [Client Quit]
<apeiros> just time consuming :)
<agent_white> shevy: Yeah I've run into a few of those... not sure what the person who wrote the function was thinking.
* apeiros hates trivial but time consuming tasks :-(
<shevy> I guess it is old code
<shevy> those things in stdlib tend to be underdocumented
<agent_white> It's not required to document stdlib stuff?
<shevy> in 2000 I don't think it was!
dda has joined #ruby
jack_rabbit has joined #ruby
<agent_white> ._.
<eam> in ruby the docs are fine for like "eh good enough to make it run" but you'll stab yourself in the face trying to prove specific particular behavior
fgo has quit [Ping timeout: 246 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<eam> eg "just open a file" vs "open this file with exactly these parameters and behaviors"
HelperW has quit [Quit: Computer has gone to sleep.]
<pipework> apeiros: What did you mean earlier?
<shevy> is this again about the ruby parser
HelperW has joined #ruby
<agent_white> Hm. It would be good fun to contribute to the docs.
<shevy> that
jheg has joined #ruby
<shevy> or document your own stuff more
<shevy> so that when you contribute it, it'll be perfect
<apeiros> pipework: that knowledge about man is unrelated to being an english native speaker
a_ has joined #ruby
<agent_white> shevy: "How this function works: tears, hope, and magic."
fgo has joined #ruby
<shevy> and a lot of blood
<agent_white> LOTS
<shevy> and some occasional screaming
<agent_white> And possibly a few sacrificial goats.
MaciejCzyzewski has joined #ruby
jimmyhoughjr has left #ruby ["Textual IRC Client: www.textualapp.com"]
chrishou_ has joined #ruby
chrishou_ has quit [Client Quit]
chrishou_ has joined #ruby
jerius has quit []
HelperW has quit [Ping timeout: 245 seconds]
dumdedum has quit [Ping timeout: 250 seconds]
<pipework> apeiros: Well it's tangentially related, to me. Because I can bridge the gaps on the admittedly not user-friendly documentation.
<pipework> It's not a judgement about your grasp of the language.
diegoviola has quit [Quit: WeeChat 1.0]
rgsteele has quit [Ping timeout: 250 seconds]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
dc___ has quit [Remote host closed the connection]
jerius has joined #ruby
chrishough has quit [Ping timeout: 272 seconds]
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
Tomme has quit [Ping timeout: 245 seconds]
fgo has quit [Ping timeout: 250 seconds]
kaspertidemann has quit []
<eam> fun trivia: how do you guarantee that a shell is / and isn't, invoked in exec()
rgsteele has joined #ruby
qonufx has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
mikeg has quit [Remote host closed the connection]
MaciejCzyzewski has quit [Ping timeout: 260 seconds]
<eam> there's so much ugly magic baked into that method
p0sixpscl has quit [Read error: Connection reset by peer]
p0sixpsc_ has joined #ruby
p0sixpsc_ has quit [Max SendQ exceeded]
<apeiros> pipework: precisely
<shevy> pipework can even make up his own documentation in his mind
p0sixpscl has joined #ruby
<apeiros> eam: I'm actually curious to hear the answer to that
<pipework> shevy: Well, I understand context and what the method does.
lampd1 has quit [Remote host closed the connection]
jarto has joined #ruby
cocotton has joined #ruby
workmad3 has joined #ruby
gsd has joined #ruby
ephemerian has joined #ruby
<bricker`work> Agree/disagree: Private methods in modules should or should not be accessible from base modules when included
tlarevo has quit [Remote host closed the connection]
<apeiros> bricker`work: ¿que?
<pipework> disagree: Don't use base modules.
ephemerian has quit [Client Quit]
<bricker`work> er... confusing way to ask but you get it
<centrx> private methods, what a n00b
<apeiros> what's a "base module"?
<bricker`work> apeiros: self.included(base)
<pipework> apeiros: Probably the main mixin to get all the mixins.
<shevy> I guess he included a module
diegoviola has joined #ruby
fabrice31 has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
<eam> the only way to guarantee a shell is avoided, given cmd = %w{stuff to run} is: if cmd.length == 1 Kernel.exec([cmd[0], cmd[0]]) else Kernel.exec([cmd[0], cmd[0]], *cmd[1..-1])
<apeiros> bricker`work: oh, self.included anti-pattern. ugly.
<bricker`work> apeiros: the module into which the other module is included
<bricker`work> apeiros: no, that's not what I'm talking about... I just used that as an example]
<bricker`work> *sigh*
<eam> and the only way to guarantee a shell IS run is the above, prefixed with /bin/sh -c
aspires has joined #ruby
<centrx> ActiveSupport::Concern is nice
<eam> because for example exec "ls -l" won't invoke a shell
<pipework> Somewhat I guess.
rgsteele has quit [Ping timeout: 258 seconds]
<apeiros> bricker`work: yes, private methods should be part of what you get on inclusion of a module.
<apeiros> to actually answer your question
pu22l3r_ has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
rgsteele has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ephemerian has joined #ruby
stunder has quit [Ping timeout: 272 seconds]
<apeiros> gah, and of course it's still require "RMagick", not require "rmagick". (and to top it off, the module you get is Magick…)
<apeiros> (╯°□°)╯︵ ┻━┻)
pu22l3r has quit [Ping timeout: 246 seconds]
thumpba has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<apeiros> what's that ) doing there? go away!
jheg has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
<bricker`work> apeiros: it's the wall
<bricker`work> he threw the table so hard that it bent the wall
mary5030 has joined #ruby
robustus has joined #ruby
jheg has joined #ruby
chrishou_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> :)
chrishough has joined #ruby
cirn0 has joined #ruby
<agent_white> (ノ^_^)ノ|
klmlfl__ has quit [Remote host closed the connection]
<agent_white> Fixed yer wall
rgsteele has quit [Ping timeout: 258 seconds]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
klmlfl has joined #ruby
sepp2k has quit [Quit: Leaving.]
mdw has joined #ruby
sepp2k has joined #ruby
7GHAA2KIH has quit [Remote host closed the connection]
GinoMan has joined #ruby
RickyGreen has quit [Remote host closed the connection]
thumpba has quit [Ping timeout: 246 seconds]
nevans__ is now known as nevans
cirn0 has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
a_ has quit [Ping timeout: 272 seconds]
mattp_ has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
mikeg has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
TheNet has quit [Remote host closed the connection]
jbueza has joined #ruby
jbueza has quit [Client Quit]
coldkey21 has joined #ruby
Takle has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
Eiam has quit [Read error: Connection reset by peer]
Eiam has joined #ruby
benzrf is now known as benzrf|offline
a_ has joined #ruby
Pulpie has left #ruby [#ruby]
TheNet has joined #ruby
rgsteele has joined #ruby
jeremy04_ has joined #ruby
ht__th has quit [Remote host closed the connection]
jxf has quit [Quit: Leaving]
jbueza has joined #ruby
jbueza has quit [Client Quit]
jheg has quit [Read error: Connection reset by peer]
jeremy04 has quit [Ping timeout: 255 seconds]
jheg has joined #ruby
jespada has quit [Ping timeout: 250 seconds]
siwica has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dennus has quit []
siwica has joined #ruby
catphish has joined #ruby
Mars___ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Mars___ has joined #ruby
binaryhat has quit [Remote host closed the connection]
doritostains has joined #ruby
Tomme has joined #ruby
JoshGlzBrk has joined #ruby
binaryhat has joined #ruby
rdark has quit [Quit: leaving]
lemur has joined #ruby
bricker`work has quit [Ping timeout: 245 seconds]
diegoviola has quit [Quit: WeeChat 1.0]
Mars____ has joined #ruby
Cheezebox has joined #ruby
shevy has quit [Read error: Connection reset by peer]
pu22l3r_ has quit [Remote host closed the connection]
Mars___ has quit [Ping timeout: 272 seconds]
milkohol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
mary5030 has quit [Remote host closed the connection]
Synthbread has joined #ruby
shredding has quit [Quit: shredding]
lemur has quit [Ping timeout: 260 seconds]
absolutezeroff has joined #ruby
freerobby has joined #ruby
silkfox has quit [Ping timeout: 272 seconds]
silkfox has joined #ruby
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
qhartman has quit [Quit: Ex-Chat]
thumpba has joined #ruby
dennus has joined #ruby
doritostains has quit [Quit: doritostains]
mattp_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
dingus_khan has joined #ruby
milkohol has joined #ruby
fmcgeough has joined #ruby
yfeldblum has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
sinkensabe has joined #ruby
cina has joined #ruby
bMalum has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
thumpba has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
bMalum has quit [Client Quit]
dingus_khan has quit [Ping timeout: 272 seconds]
endash has joined #ruby
zettam_ is now known as zettam
treehug88 has joined #ruby
cocotton has quit [Remote host closed the connection]
Inhaling_ has joined #ruby
cocotton has joined #ruby
mattp_ has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
bMalum has quit [Client Quit]
gsd has joined #ruby
mattp_ has joined #ruby
chrishough has joined #ruby
rgsteele has quit [Ping timeout: 260 seconds]
bMalum has joined #ruby
linojon has quit [Quit: linojon]
threesixes has joined #ruby
jheg has quit [Quit: jheg]
fgo has joined #ruby
awestroke has joined #ruby
djbkd has quit [Remote host closed the connection]
m8 has quit [Read error: Connection reset by peer]
gvenkat has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
aspires has quit []
Advocation has quit [Quit: Advocation]
fgo has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
synergyz has joined #ruby
djbkd has quit [Remote host closed the connection]
dideler has quit [Ping timeout: 245 seconds]
gvenkat has joined #ruby
kristofferR has joined #ruby
TheNet has quit [Quit: Leaving...]
HelperW has joined #ruby
Mars____ has quit [Remote host closed the connection]
mrsolo has joined #ruby
Cheezebox has quit [Remote host closed the connection]
bennylope has quit [Quit: My Tandy 1000 has gone to sleep. ZZZzzz…]
_lexjm has joined #ruby
nanoyak has joined #ruby
paulfm has quit []
atmosx has quit [Ping timeout: 272 seconds]
Inhaling_ has quit [Remote host closed the connection]
lectrick is now known as pmarreck
InhalingPixels has joined #ruby
atmosx has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
HelperW has quit [Ping timeout: 255 seconds]
mozzarella has quit [Quit: WeeChat 0.4.3]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
mozzarella has joined #ruby
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparrovv has joined #ruby
noopq has quit [Ping timeout: 245 seconds]
BlkDynmt_ has joined #ruby
BlkDynmt has quit [Ping timeout: 255 seconds]
aspiers has joined #ruby
<Cork> is it possible to use named regex groups and still have more then one match in ruby?
Kricir has quit [Remote host closed the connection]
<Cork> the closest i've been able to find is .scan but it doesn't look like it support named groups
gregf has quit [Quit: WeeChat 1.0]
renderful has joined #ruby
RickyGreen has joined #ruby
Mars__ has joined #ruby
sepp2k has quit [Quit: Leaving.]
bricker`work has joined #ruby
Kricir_ has joined #ruby
GriffinHeart has joined #ruby
sambao21 has joined #ruby
shock_one has joined #ruby
jheg has joined #ruby
Eiam has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
dingus_khan has joined #ruby
andrewjanssen has joined #ruby
shock_one has quit [Client Quit]
sdegutis has quit [Quit: Leaving...]
shock_one has joined #ruby
benzrf|offline is now known as benzrf
dda has quit [Remote host closed the connection]
sepp2k has joined #ruby
eivindml has quit [Quit: Textual IRC Client: www.textualapp.com]
jack_rabbit has quit [Ping timeout: 258 seconds]
Jackneill has quit [Remote host closed the connection]
mityaz has joined #ruby
stunder has joined #ruby
arup_r has quit [Quit: Leaving.]
GriffinHeart has quit [Ping timeout: 255 seconds]
<Hanmac> OMG!!! apeiros did you know how named groups react for regexp in the form of /...|.../ ? ;P
<Hanmac> >> "abc".match(/a(?<name>b)?c|x(?<name>y)?z/)[:name]
<eval-in_____> Hanmac => "b" (https://eval.in/193834)
<Hanmac> >> "xyz".match(/a(?<name>b)?c|x(?<name>y)?z/)[:name]
<eval-in_____> Hanmac => "y" (https://eval.in/193835)
djbkd has joined #ruby
gregf has joined #ruby
shock_one has quit [Ping timeout: 255 seconds]
KC9YDN has quit [Ping timeout: 245 seconds]
KC9YDN-2 has joined #ruby
frode15243__ is now known as frode15243
nanoyak has quit [Read error: Connection reset by peer]
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frode15243 has quit [Changing host]
frode15243 has joined #ruby
nanoyak has joined #ruby
decoponio has quit [Quit: Leaving...]
klmlfl has quit [Ping timeout: 246 seconds]
lsone has joined #ruby
Splintor has joined #ruby
<Splintor> o/ allo
KC9YDN-2 has quit [Client Quit]
<RickyGreen> Anyone available to help me out with a query, im trying to get localhost working :(
LangeOortjes has quit [Remote host closed the connection]
tobago has quit [Remote host closed the connection]
wallerdev has joined #ruby
thumpba has joined #ruby
__arnold has joined #ruby
rezzack has joined #ruby
__arnold has left #ruby [#ruby]
rimenes has joined #ruby
<Hanmac> RickyGreen: you are missing gcc
agjacome has quit [Quit: leaving]
kenneth has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
jimms has joined #ruby
kyb3r_ has quit [Ping timeout: 246 seconds]
<centrx> RickyGreen, also gcc-4.2 is extremely old
<Hanmac> iSee you are on a Mac ... hm yeah thats does make everything more complicated
dennus has quit []
cocotton has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
snath has quit [Ping timeout: 246 seconds]
<RickyGreen> Okay, Sorry for newbie questions, i've just basically gone through every tutorial i found and ran the terminal commands, do you think it would be better to uninstall and start again, is that possible?
<Hanmac> centrx: its Mac stuff ... he should be happy that he got installed rvm ... hm monent !!! he got install ruby with rvm but then gcc got missing? ;D
sprihodko has quit [Quit: Computer has gone to sleep.]
spider-mario has quit [Read error: Connection reset by peer]
<Hanmac> hm it seems somewhere after installing ruby with rvm and trying to install the json gem he did deinstall some stuff again ...
lemur has joined #ruby
drusepth is now known as dru
<Hanmac> RickyGreen: you did de-install some stuff right?
marlonandrade has quit [Ping timeout: 245 seconds]
nobitano_ has quit [Remote host closed the connection]
<RickyGreen> Yes, i uninstall mysql.
ndrei has quit [Ping timeout: 272 seconds]
<RickyGreen> Because that was giving me an error, i googled that, possibly where i've made my boo-boo :(
TDJACR_ has quit [Quit: ZNC - http://znc.in]
TDJACR has joined #ruby
<Hanmac> hm yeah somewhere you did uninstall gcc stuff and now ruby does not find the compiler it was compiled with (ruby does that to have consistency)
Splintor has quit [Quit: Leaving]
yalue has quit [Quit: Leaving]
ndrei has joined #ruby
<RickyGreen> Okay, What's my options? :P
oivoodoo has joined #ruby
<Hanmac> hm my opinon ... install newest compiler and other libs and install newer version of ruby with rvm
Tricon has joined #ruby
<RickyGreen> Like this?
<RickyGreen> That's given me an error too :(
mferrier has joined #ruby
doritostains has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
snath has joined #ruby
<Hanmac> i said newer ruby, means 2.1.2 version ...
<RickyGreen> Sorry to bombard you with this newbie crap, i did post in #learnprogramming but no one has replied.
<RickyGreen> Argh, i did have 2.1.2
shosti has quit [Remote host closed the connection]
<RickyGreen> but i was following the Hartle tutorial and it wasn't doing what i wanted so i changed the gemfile to 2.0.0
<Hanmac> thats why in my opinion OSX is junk for developing software ... because you always need to patch something ...
skammer has joined #ruby
yfeldblu_ has joined #ruby
Waheedi has joined #ruby
nobitanobi has joined #ruby
PixelCrumbs has quit [Changing host]
PixelCrumbs has joined #ruby
<RickyGreen> is it possible fix this?
linojon has joined #ruby
JBreit has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
skammer has quit [Remote host closed the connection]
benlieb has joined #ruby
skammer has joined #ruby
nobitanobi has quit [Client Quit]
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickyGreen> Would you suggest to use VMware fusion and use windows for programming?
saarinen has quit [Quit: saarinen]
jaygen_ has joined #ruby
bMalum has quit [Ping timeout: 260 seconds]
fmcgeough has quit [Ping timeout: 255 seconds]
rimenes_ has joined #ruby
rimenes has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 260 seconds]
evenix has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<evenix> Hi all
evenix has quit []
nobitanobi has joined #ruby
awestroke has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 272 seconds]
MeltedLux has quit [Ping timeout: 272 seconds]
jaygen has quit [Ping timeout: 272 seconds]
<Hanmac> Windows ... for .... programming ... thats even worse ,P
MeltedLux has joined #ruby
<RickyGreen> I'm open to suggestions, Linux?
cocotton has quit [Remote host closed the connection]
<djbkd> if your system is up for it and you have patience to install them, VirtualBox + Vagrant + http://www.vagrantbox.es/ is quite pleasant to dev against
tectonic has joined #ruby
<Hanmac> Linux is the most best way ... hm i did get a working ruby installation with rvm running last time on OSX but that is nearly years ago ... hm but i can say i did use macports to install newer gcc compiler
<djbkd> pretty nice to be able to trash the entire system comfortably
maasha has quit [Ping timeout: 246 seconds]
saarinen has joined #ruby
saarinen has quit [Client Quit]
doritostains has quit [Quit: doritostains]
Asher has quit [Quit: Leaving.]
<RickyGreen> I had it working on this the other day.
Asher has joined #ruby
<RickyGreen> Using this.
skip_freely has quit [Ping timeout: 272 seconds]
<RickyGreen> But when i started on the Michael Hartle tutorial, all down hill from there lol.
Juzdan has quit [Remote host closed the connection]
Kricir_ has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Waheedi has quit [Ping timeout: 258 seconds]
shevy has joined #ruby
shosti has joined #ruby
sectionme has joined #ruby
Kricir has joined #ruby
Heartbroken has quit [Max SendQ exceeded]
Waheedi has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
gsd has joined #ruby
yfeldblum has joined #ruby
<shevy> we need to spread more love to the world
<shevy> more love
<shevy> and more ruby
cina has quit [Ping timeout: 272 seconds]
oleo has quit [Ping timeout: 272 seconds]
skammer has quit [Remote host closed the connection]
lazyguru has joined #ruby
Heartbroken has joined #ruby
skammer has joined #ruby
tjbiddle has joined #ruby
fabrice31 has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
Waheedi has quit [Ping timeout: 245 seconds]
oleo has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
Waheedi has joined #ruby
mary5030_ has joined #ruby
mengu has quit []
fgo has joined #ruby
MeltedLux has quit [Quit: ZNC - http://znc.in]
nobitano_ has joined #ruby
linojon has quit [Quit: enuf of this]
gattie has joined #ruby
MeltedLux has joined #ruby
mijicd has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
<shevy> who is with me
yetanotherdave has joined #ruby
Synthbread has quit [Ping timeout: 255 seconds]
<centrx> yeah!
<centrx> go rubby!
wallerdev has joined #ruby
Morkel has quit [Quit: Morkel]
mburns_ is now known as mburns
<Hanmac> first we need to reduce rails ... because less rails also means less ruby noobs ;P
nobitanobi has quit [Ping timeout: 255 seconds]
fgo has quit [Ping timeout: 258 seconds]
<shevy> we have to seduce sails?
g0bl1n has joined #ruby
<Hanmac> thats what you read ;P
Waheedi has quit [Ping timeout: 255 seconds]
codecop has quit [Remote host closed the connection]
shock_one has joined #ruby
<centrx> Susy on Sails
jheg has quit [Quit: jheg]
b00stfr3ak has quit [Ping timeout: 260 seconds]
mferrier has quit [Remote host closed the connection]
benlieb has quit [Read error: Connection reset by peer]
mferrier has joined #ruby
jbueza has joined #ruby
Waheedi has joined #ruby
cocotton has joined #ruby
<shevy> PngquantOptimizer: The old filesize of `test.png` was: 6650274
<shevy> PngquantOptimizer: The new filesize of `test.png` is: 2481595
<shevy> hmmmm
shosti has quit [Ping timeout: 260 seconds]
<shevy> pngquant kinda crunches down on .png files quite immensely
<shevy> I noticed that the original colours are not always the same though - one light green got a bit darker in the new image :(
jerius has quit []
lsone has quit [Quit: Textual IRC Client: www.textualapp.com]
jeremy04_ has quit [Ping timeout: 258 seconds]
shackleford has quit [Remote host closed the connection]
jottr has joined #ruby
bmurt has quit []
hiyosi has joined #ruby
elaptics`away is now known as elaptics
lsone has joined #ruby
freerobby has quit [Quit: Leaving.]
kireevco has quit [Quit: Leaving.]
shackleford has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
ryanleesipes has quit [Quit: Leaving]
momomomomo has quit [Quit: momomomomo]
phao has joined #ruby
aclearman037 has quit []
<phao> Hi. What is a good book to start learning ruby for web development?
freerobby has joined #ruby
Synthbread has joined #ruby
<wallerdev> might consider learning ruby as a language first before digging into web dev with it
<wallerdev> especially with all the magic in rails
oivoodoo has quit [Remote host closed the connection]
<phao> wallerdev, Ok. What is a book you'd recommend for that?
<wallerdev> not really sure whats good anymore, i learned ruby like 6 years ago haha
sambao21 has quit [Quit: Computer has gone to sleep.]
<thagomizer> Agile Web Development with Rails is still a classic
<phao> =)
sinkensabe has quit [Remote host closed the connection]
fsapo has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<thagomizer> If you know another language my recommendations are here: http://www.thagomizer.com/blog/2014/06/11/learn-to-code-part-two.html
<elaptics> ruby web development != rails
<thagomizer> You can get the basic syntax from Learn Ruby The Hard Way or Try Ruby or something
<phao> ok
<thagomizer> The language itself isn't that hard for most folks but learning the library takes a while
GriffinHeart has joined #ruby
<thagomizer> And I know that ruby web development does not have to equal rails but I'd bet the majority of folks using Ruby for Web Development are doing Rails.
shosti has joined #ruby
emocakes has joined #ruby
<wallerdev> yeah i dont think anything has near the support as rails
<wallerdev> unless you want to build a small site with a couple pages haha
livingstn has quit []
robbyoconnor has quit [Max SendQ exceeded]
Ankhers has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
mary5030_ has quit [Ping timeout: 250 seconds]
anaeem1_ has quit [Remote host closed the connection]
shackleford has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
rgsteele has joined #ruby
emocakes__ has quit [Ping timeout: 246 seconds]
parduse has quit [Ping timeout: 245 seconds]
<shevy> like a blog
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
<shevy> .cgi forever!
<shevy> oldschool in the house
GriffinHeart has quit [Ping timeout: 272 seconds]
parduse has quit [Client Quit]
mferrier has quit []
<ericwood> require 'cgi'
parduse has joined #ruby
<ericwood> boom, you're all set
oivoodoo has joined #ruby
shackleford has joined #ruby
oivoodoo has quit [Remote host closed the connection]
<phao> centrx, ok. Thanks.
Waheedi has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
g0bl1n has quit [Quit: g0bl1n]
patrick99e99 has quit [Quit: Lost terminal]
douglasssssss has quit [Quit: Textual IRC Client: www.textualapp.com]
rgsteele has quit [Ping timeout: 272 seconds]
BBBThunda has quit [Ping timeout: 272 seconds]
omosoj has joined #ruby
Waheedi has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
silkfox has quit [Ping timeout: 260 seconds]
patrick99e99 has joined #ruby
aspiers has joined #ruby
Takle has joined #ruby
BBBThunda has joined #ruby
<shevy> ericwood well cgi yes but the ruby cgi is kinda crappy
Tomme has quit [Ping timeout: 250 seconds]
<shevy> there are tiny enhancements like: https://rubygems.org/gems/cgi-exception
<shevy> but of course they were never included into ruby std cgi
_lexjm has quit [Ping timeout: 250 seconds]
<shevy> the world is not a first class citizen for core ruby :(
<shevy> erm
krisquigley has quit [Remote host closed the connection]
<shevy> *the www-world
mityaz has quit [Quit: See ya!]
<shevy> I knew I forgot something up there ...
momomomomo has joined #ruby
Seich_ is now known as Seich
Tomme has joined #ruby
mleone has quit [Ping timeout: 260 seconds]
<Lewix> hey centrx, did you take a look at Go
<Lewix> =)
failshel_ has joined #ruby
dc__ has joined #ruby
benlieb has joined #ruby
workmad3 has joined #ruby
Waheedi has quit [Quit: Waheedi]
eregon_ is now known as eregon
yfeldblum has quit [Remote host closed the connection]
nobitanobi has joined #ruby
failshell has quit [Ping timeout: 250 seconds]
skammer has quit [Quit: Textual IRC Client: www.textualapp.com]
mocfive has quit [Remote host closed the connection]
failshel_ has quit [Ping timeout: 272 seconds]
renderful has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
b00stfr3ak has joined #ruby
mocfive has joined #ruby
slester has quit [Quit: slester]
jheg has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
renderful has joined #ruby
tkuchiki has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mocfive_ has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
nobitano_ has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
cocotton_ has joined #ruby
andrewlio has quit [Quit: Leaving.]
easier has joined #ruby
jheg has quit [Client Quit]
Kricir has joined #ruby
benzrf is now known as benzrf|offline
saarinen has joined #ruby
rafacv has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 272 seconds]
cocotton has quit [Ping timeout: 258 seconds]
jaygen_ has quit [Ping timeout: 260 seconds]
cocotton_ has quit [Ping timeout: 258 seconds]
jaygen has joined #ruby
weems|mac has quit [Ping timeout: 272 seconds]
saarinen has quit [Client Quit]
toreto2 has joined #ruby
<centrx> rubby
n_blownapart has joined #ruby
jaygen_ has joined #ruby
<pipework> centrx: how novel
<centrx> better than goo
nanoyak has joined #ruby
fgo has joined #ruby
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
jaygen has quit [Ping timeout: 260 seconds]
fgo has quit [Ping timeout: 250 seconds]
bmz345 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Jinkins has quit [Quit: This computer has gone to sleep]
Jinkins_1 has quit [Quit: This computer has gone to sleep]
jkline has joined #ruby
mary5030 has joined #ruby
cmaxw______ is now known as cmaxw
havenwood has joined #ruby
coderdad has joined #ruby
mkaesz has quit [Remote host closed the connection]
jhc76 has joined #ruby
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
shosti has quit [Ping timeout: 255 seconds]
Juzdan has joined #ruby
mkaesz has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
ged has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
LiohAu_ has joined #ruby
dingus_khan has quit [Remote host closed the connection]
shackleford has quit [Remote host closed the connection]
BlkDynmt has joined #ruby
dblessing has quit [Quit: dblessing]
Juzdan has quit [Ping timeout: 258 seconds]
mkaesz has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
BlkDynmt_ has quit [Ping timeout: 272 seconds]
cirn0 has joined #ruby
KC9YDN has joined #ruby
agent_white has quit [Quit: leaving]
sailias has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sectionme has quit [Ping timeout: 255 seconds]
jack_rabbit has joined #ruby
britneywright has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
GriffinHeart has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
kireevco has joined #ruby
freerobby has joined #ruby
catphish has quit [Quit: Leaving]
lazyguru has left #ruby [#ruby]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
cirn0 has quit [Ping timeout: 250 seconds]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
shackleford has joined #ruby
kireevco1 has joined #ruby
benzrf|offline is now known as benzrf
icarus has quit [Remote host closed the connection]
kireevco1 has quit [Max SendQ exceeded]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
<shevy> I am back on i686
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco has quit [Read error: Connection reset by peer]
freerobby has quit [Client Quit]
narcan has joined #ruby
<benzrf> grose
<benzrf> i should come to a ruby con just to shill haskell
djstorm has quit [Ping timeout: 246 seconds]
GriffinHeart has quit [Ping timeout: 272 seconds]
<hydrajump> hi I'm trying to install a gem on ubuntu 14.04 called riemann-tools and I've installed ruby and ruby-dev via apt. I keep getting this error and I don't know why "ERROR: Failed to build gem native extension." Am i missing some dependency or is it because I have ruby 1.9 and not 2.x installed via apt-get?
cougarten_ has joined #ruby
Wolland has quit []
mary5030 has quit [Remote host closed the connection]
<ericwood> hydrajump: it's a missing dep that the gem is trying to compile against
<ericwood> do you have the full error message? it'll tell you what you need
<agent_white> hydrajump: `gem install GEMNAME --backtrace`
jaygen has joined #ruby
cougarten has quit [Ping timeout: 246 seconds]
weems_ has quit [Ping timeout: 246 seconds]
pahagon has joined #ruby
<hydrajump> ericwood: agent_white "make
<hydrajump> sh: 1: make: not found
<hydrajump> so i need to install make
pahagon has quit [Changing host]
pahagon has joined #ruby
<shevy> omg
Tomme has quit [Ping timeout: 255 seconds]
<shevy> try: apt-get install build-essential
m8 has quit [Quit: Sto andando via]
<shevy> but in the long run, switch to a better distribution
<agent_white> shevy: BABY STEPS
<shevy> also ubuntu tends to modify their ruby, for instance mkmf is usually not distributed
<hydrajump> thank you both. haha no love for ubuntu
saarinen has joined #ruby
skammer has joined #ruby
jaygen_ has quit [Ping timeout: 245 seconds]
<shevy> the problem is that some distributions cause extra work for other people
<ericwood> meh don't hate on the distro
<shevy> like - why does ubuntu not have dev tools installed by default and header files "because we are a server OS" or "because our users won't need that"
<ericwood> you'd have to do that with most
<shevy> not on slackware
<hydrajump> shevy: what dist do you suggest
<ericwood> probably arch
<shevy> hydrajump if gobolinux were still alive then I'd suggest gobolinux
<mozzarella> on most distributions it's not installed by default…
<shevy> appdirs beat default FHS layout any day
<havenwood> Fedora, openSUSE, Arch
<ericwood> yeah most don't include it by default tbh
<ericwood> the idea is you don't need them unless you're a dev
<ericwood> not everyone is a dev
<mozzarella> ^
peta_ has joined #ruby
<shevy> precisely this is the philosophy
<mozzarella> there's no problem with ubuntu
<ericwood> if you're a dev you install build-essential or whatevver and it's all good
<ericwood> so I wouldn't hold it against any distro for that
<shevy> what about removing mkmf from default ruby erichmenge
<shevy> *ericwood
<ericwood> oh I think their default ruby is silly
<ericwood> but if you're doing much serious ruby work you use ruby-install or the like to do it yourself
<momomomomo> default ruby isn’t silly, but you should manage your own if you need a different version; and definitely if you’re installing / updating gems
peta_ has quit [Remote host closed the connection]
lemur has joined #ruby
<hydrajump> I'm using docker and was putting together my own ruby base image for app deployment, but I just found this that uses 2.1 https://github.com/tscolari/docker-ubuntu-ruby-base/blob/master/Dockerfile
wchun has joined #ruby
<momomomomo> hydrajump: ok?
<ericwood> install 2.1 :D
bluenemo has joined #ruby
bluenemo has joined #ruby
Wolland has joined #ruby
Wolland has quit [Remote host closed the connection]
oivoodoo has joined #ruby
klmlfl has joined #ruby
jokke has quit [Ping timeout: 260 seconds]
skammer has quit [Quit: WeeChat 1.0]
Wolland has joined #ruby
jokke has joined #ruby
klmlfl has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
klmlfl has joined #ruby
klmlfl has quit [Read error: No route to host]
absolutezeroff has quit [Quit: absolutezeroff]
klmlfl has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
jmpf has joined #ruby
oivoodoo has quit [Ping timeout: 245 seconds]
lemur has quit [Ping timeout: 250 seconds]
Wolland has quit [Ping timeout: 258 seconds]
coderdad has quit [Remote host closed the connection]
LiohAu_ has quit [Quit: LiohAu_]
moted has quit []
fabrice31 has joined #ruby
ffranz has quit [Quit: Leaving]
treehug88 has quit []
w4tna has joined #ruby
weems_ has joined #ruby
skiabox has joined #ruby
skiabox has quit [Client Quit]
bruno- has quit [Ping timeout: 255 seconds]
bruno-_ has quit [Ping timeout: 255 seconds]
Kricir has quit [Remote host closed the connection]
shosti has joined #ruby
Kricir has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
dserodio_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
moted has joined #ruby
Lewix has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
dda has joined #ruby
jmpf has quit [Quit: leaving]
yfeldblum has joined #ruby
kaspertidemann has quit []
yfeldblum has quit [Remote host closed the connection]
zorak8 has joined #ruby
dda has quit [Client Quit]
jobewan has quit [Quit: Leaving]
yfeldblum has joined #ruby
Kricir has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Remote host closed the connection]
Mars___ has joined #ruby
moritzschaefer has joined #ruby
grokdancer1 has joined #ruby
grokdancer has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
Mars__ has quit [Ping timeout: 246 seconds]
RickyGreen has quit [Remote host closed the connection]
yfeldblum has joined #ruby
aspiers has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
geggam has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
willbarrettdev has quit [Remote host closed the connection]
kobain has joined #ruby
Jinkins has joined #ruby
Jinkins_1 has joined #ruby
F1skr has joined #ruby
Jinkins_1 has quit [Client Quit]
Jinkins has quit [Client Quit]
orolo has quit [Quit: This computer has gone to sleep]
d2dchat has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 255 seconds]
Sgeo has joined #ruby
fgo has joined #ruby
Juzdan has joined #ruby
kirun has quit [Quit: Client exiting]
Tricon has quit [Quit: Leaving...]
GriffinHeart has joined #ruby
freerobby has quit [Quit: Leaving.]
cougarten has joined #ruby
freerobby has joined #ruby
cougarten_ has quit [Ping timeout: 260 seconds]
Cheezebox has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
aspiers has joined #ruby
Juzdan has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
shackleford has quit [Remote host closed the connection]
mkaesz has joined #ruby
yfeldblum has joined #ruby
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
<shevy> hmmm
<shevy> when playing videos I now have a black screen - but I still hear the audio
Aaaal has joined #ruby
<agent_white> shevy: There is no issue, you're blind remember?
sectionme has joined #ruby
<shevy> it worked a few hours ago
renderful has quit [Remote host closed the connection]
endash has quit [Quit: endash]
<shevy> if you ever need someone to break a system
<shevy> call me
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
tkuchiki has joined #ruby
moritzschaefer has quit [Ping timeout: 272 seconds]
kireevco has joined #ruby
yfeldblu_ has joined #ruby
mkaesz has quit [Ping timeout: 255 seconds]
Cheezebox has quit [Remote host closed the connection]
nanoyak has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Remote host closed the connection]
nanoyak has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
sinkensabe has joined #ruby
qhartman has joined #ruby
<shevy> but on the bright side
sectionme has quit [Ping timeout: 272 seconds]
<shevy> I just found out why I have had some strange error
yfeldblum has joined #ruby
<shevy> when the binutils linker can not find some .so files
<shevy> I am still not entirely sure why, but I must compile the new binutils incorrectly
<momomomomo> #gnu
davasaurous has joined #ruby
emmesswhy has joined #ruby
ephemerian has quit [Quit: Leaving.]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> shevy: what error?
gsd has joined #ruby
nairys has joined #ruby
sinkensabe has quit [Ping timeout: 245 seconds]
bluenemo_ has joined #ruby
milkohol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`work has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
klmlfl has quit [Remote host closed the connection]
bluenemo has quit [Ping timeout: 255 seconds]
klmlfl has joined #ruby
mijicd has quit [Remote host closed the connection]
BTRRY has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
<shevy> eam certain programs can no longer find certain .so.{1-6} files
ndrei has joined #ruby
aspiers has quit [Ping timeout: 245 seconds]
klmlfl has quit [Ping timeout: 272 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
Synthead has quit [Remote host closed the connection]
lsone has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> This configure line for a new binutils works: --enable-shared --disable-werror
sparrovv has quit [Remote host closed the connection]
SegFaultAX has quit [Excess Flood]
<shevy> This one does not: --enable-gold=no --enable-shared --enable-ld --disable-nls --disable-werror --with-sysroot
_cake has joined #ruby
ptrrr has quit [Quit: ptrrr]
sparrovv has joined #ruby
klmlfl has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
rezzack has quit [Quit: Leaving.]
SegFaultAX has joined #ruby
_shrine has joined #ruby
babykosh has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
rezzack has joined #ruby
sparrovv has quit [Ping timeout: 272 seconds]
flowerhack has quit [Quit: Connection closed for inactivity]
Jake232 has quit [Ping timeout: 246 seconds]
thomasxie has joined #ruby
_cake has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
elfo222 has quit [Ping timeout: 255 seconds]
babykosh has quit [Quit: babykosh]
rikai has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
j_mcnally has joined #ruby
Spami has joined #ruby
thomasxie has left #ruby [#ruby]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
Wolland has joined #ruby
mleone has joined #ruby
mocfive_ has quit [Remote host closed the connection]
mocfive has joined #ruby
axsuul has quit [Ping timeout: 255 seconds]
elfo222 has joined #ruby
n_blownapart has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
mary5030 has joined #ruby
rikai has joined #ruby
siwica has quit [Ping timeout: 258 seconds]
Wolland has quit [Ping timeout: 260 seconds]
mary5030_ has joined #ruby
freeone3000 has quit [Quit: Konversation terminated!]
benlieb has joined #ruby
cndiv has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: Leaving]
benlieb has quit [Read error: Connection reset by peer]
mary5030 has quit [Read error: Connection reset by peer]
F1skr has quit [Ping timeout: 246 seconds]
emmesswhy has quit [Quit: Leaving]
skammer has joined #ruby
skammer has quit [Client Quit]
GriffinHeart has quit [Remote host closed the connection]
kireevco1 has joined #ruby
charliesome has joined #ruby
tectonic has joined #ruby
weems__ has joined #ruby
mikecmpb_ has joined #ruby
kireevco has quit [Ping timeout: 255 seconds]
b00stfr3ak has quit [Ping timeout: 255 seconds]
amundj_ has joined #ruby
Juzdan has joined #ruby
parduse has quit [Killed (tepper.freenode.net (Nickname regained by services))]
parduse has joined #ruby
GriffinHeart has joined #ruby
oponder_ has joined #ruby
parduse is now known as Guest37358
jds__ has joined #ruby
skammer has joined #ruby
jottr_ has joined #ruby
Beoran has joined #ruby
frog0909 has joined #ruby
cornfeedhobo_ has joined #ruby
Cheezebox has joined #ruby
phoo1234567 has quit [Quit: Leaving]
F1skr has joined #ruby
mostlybadfly_ has joined #ruby
djbkd has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LBRapid_ has joined #ruby
Juzdan has quit [Ping timeout: 272 seconds]
gvenkat_ has joined #ruby
klmlfl has quit [Remote host closed the connection]
oo_ has joined #ruby
binaryhat_ has joined #ruby
n_blownapart has joined #ruby
gvenkat has quit [Ping timeout: 246 seconds]
rimenes has joined #ruby
gccostab_ has joined #ruby
joshingly_ has joined #ruby
oo__ has joined #ruby
ionelmc_ has joined #ruby
joshingly_ has quit [Client Quit]
spastorino_ has joined #ruby
joshingly_ has joined #ruby
F1skr has quit [Client Quit]
Aaaal has quit [Quit: Aaaal]
joshingly_ has quit [Client Quit]
binaryhat_ has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
skammer has quit [Client Quit]
KnownSyntax_ has joined #ruby
skammer has joined #ruby
binaryhat_ has joined #ruby
pushnell has quit [Quit: pushnell]
mikecmpbll has quit [*.net *.split]
weems_ has quit [*.net *.split]
pahagon has quit [*.net *.split]
jhc76 has quit [*.net *.split]
jottr has quit [*.net *.split]
Synthbread has quit [*.net *.split]
rimenes_ has quit [*.net *.split]
MeltedLux has quit [*.net *.split]
binaryhat has quit [*.net *.split]
zoo-zed has quit [*.net *.split]
jds_ has quit [*.net *.split]
oponder has quit [*.net *.split]
cornfeedhobo has quit [*.net *.split]
spastorino has quit [*.net *.split]
LBRapid has quit [*.net *.split]
SCHAAP137 has quit [*.net *.split]
Hanmac has quit [*.net *.split]
Klumben has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
gccostabr has quit [*.net *.split]
mostlybadfly has quit [*.net *.split]
Beoran_ has quit [*.net *.split]
kedare has quit [*.net *.split]
ionelmc has quit [*.net *.split]
ValicekB has quit [*.net *.split]
dukedave has quit [*.net *.split]
amundj has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
joshingly has quit [*.net *.split]
KnownSyntax has quit [*.net *.split]
frog0909_ has quit [*.net *.split]
Zackio has quit [*.net *.split]
Dwarf has quit [*.net *.split]
koell has quit [*.net *.split]
vcoinminer______ has quit [*.net *.split]
tris has quit [*.net *.split]
tessi_zz has quit [*.net *.split]
l3kn has quit [*.net *.split]
NameNotFound has quit [*.net *.split]
LBRapid_ is now known as LBRapid
dukedave has joined #ruby
djbkd has joined #ruby
spastorino_ is now known as spastorino
mostlybadfly_ is now known as mostlybadfly
jhc76 has joined #ruby
joshingly has joined #ruby
<skammer> quit
skammer has quit [Client Quit]
shlant1 has joined #ruby
Cheezebox has quit [Ping timeout: 272 seconds]
skammer has joined #ruby
ionelmc_ is now known as ionelmc
Synthbread has joined #ruby
<shlant1> anyone know if rbenv binstub commands need to be run every deploy?
BTRRY is now known as BTRE
oo__ has quit [Remote host closed the connection]
Alina-malina has joined #ruby
MeltedLux has joined #ruby
Hanmac has joined #ruby
Klumben has joined #ruby
johnhamelink has joined #ruby
NameNotFound has joined #ruby
tessi_zz has joined #ruby
tris has joined #ruby
l3kn has joined #ruby
tris has quit [Max SendQ exceeded]
Klumben has quit [Max SendQ exceeded]
Alina-malina has quit [Max SendQ exceeded]
binaryhat_ has quit [Read error: Connection reset by peer]
vcoinminer______ has joined #ruby
tris has joined #ruby
sevvie has joined #ruby
koell has joined #ruby
oo_ has quit [Ping timeout: 272 seconds]
Alina-malina has joined #ruby
GinoMan has quit [Ping timeout: 250 seconds]
grokdancer1 has quit [Quit: Leaving.]
nanoyak has quit [Quit: Computer has gone to sleep.]
Klumben has joined #ruby
ixti has quit [Quit: WeeChat 1.0]
Dwarf has joined #ruby
nobitano_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mars___ has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 272 seconds]
mikecmpb_ has quit [Quit: i've nodded off.]
Mars__ has joined #ruby
ValicekB_ has joined #ruby
sectionme has joined #ruby