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
kireevco has joined #ruby
Stalkr_ has joined #ruby
phoo1234567 has quit [Quit: Leaving]
armyriad has joined #ruby
acl_ has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
Shidash has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
endash has quit [Quit: endash]
Stalkr_ has quit [Ping timeout: 265 seconds]
merceris_ has quit [Quit: Computer has gone to sleep.]
moritzschaefer has quit [Ping timeout: 255 seconds]
rm_ has joined #ruby
ddv has joined #ruby
d34th4ck3r has joined #ruby
kireevco has quit [Quit: Leaving.]
bthesorceror has joined #ruby
jaygen has joined #ruby
jaygen has quit [Client Quit]
Shidash has quit [Ping timeout: 252 seconds]
Takle has quit [Ping timeout: 260 seconds]
acl_ is now known as isxek
apeiros has joined #ruby
linoespinoza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nitr_aka_anty has joined #ruby
* ashleah{K} is back (gone 00:01:42)
<benzrf> ashleah{K}: thx for the info
SCommette has quit [Quit: SCommette]
thesheff17 has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nitr_aka_anty has quit [Ping timeout: 260 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
tectonic has quit []
lethjakman has joined #ruby
kilk_ has left #ruby [#ruby]
bmurt has joined #ruby
vikfroberg has quit [Quit: vikfroberg]
oo_ has joined #ruby
sinkensabe has joined #ruby
Sakurazaki has joined #ruby
oo_ has quit [Remote host closed the connection]
zz_karupa is now known as karupa
<Sakurazaki> Hi, I'm trying to setup a new form like: <%= form_for @user, :url => user_path, html: {class: 'none'} do |f| %> but I keep getting: No route matches {:action=>"show", :controller=>"user"} missing required keys: [:id]
<Sakurazaki> this form should be POST-ing to /user so a new user is created, so I really don't know what I'm doing wrong
<Sakurazaki> can someone lend me a tip? thanks
sinkensabe has quit [Ping timeout: 240 seconds]
lethjakman has quit [Ping timeout: 240 seconds]
thesheff17 has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
feature_creep has joined #ruby
SCommette has joined #ruby
yubrew has joined #ruby
sski has joined #ruby
jamto11 has joined #ruby
Hanmac has joined #ruby
<Sakurazaki> I figured it out, but now I would accept some help with strong params. Based on the Ruby tutorial / docs I've done my strong params like this:
<Sakurazaki> params.require(:user).permit(:id, :email, :password, :name, :surname, :dob, :city, :province, :country) inside user_params
<Sakurazaki> but when in new I do @user = User.new(user_params) I get: param is missing or the value is empty: user
<ari-_-e> Sakurazaki: you might want to ask in the rails channel
TorpedoSkyline has joined #ruby
<Sakurazaki> hmmm yeah sure
yubrew has quit [Ping timeout: 252 seconds]
papercode has quit [Quit: WeeChat 0.4.3]
<Sakurazaki> what's the channel ari-_-e ?
<ari-_-e> #rubyonrails I think
<Sakurazaki> ok thanks
mikecmpbll has quit [Quit: i've nodded off.]
<Sakurazaki> sorry for bothering thought rails was covered here too
jamto11 has quit [Ping timeout: 255 seconds]
<ari-_-e> somebody might answer, but you're more likely to find people who know about that stuff in the rails channel
<Sakurazaki> yeah thanks, good day
Sakurazaki has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
oo_ has joined #ruby
chipotle has quit [Quit: cya]
lethe has joined #ruby
ctp has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby
tectonic has joined #ruby
hackeron has joined #ruby
hackeron_ has quit [Ping timeout: 255 seconds]
atraylen has quit [Ping timeout: 255 seconds]
Stalkr_ has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
linoespinoza has joined #ruby
hackeron has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
pwh has joined #ruby
shazaum has joined #ruby
Stalkr_ has quit [Ping timeout: 240 seconds]
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
hackeron has joined #ruby
einarj has joined #ruby
duggiefresh has joined #ruby
Hanmac1 has joined #ruby
dingus_khan has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
einarj has quit [Ping timeout: 255 seconds]
_808chris has joined #ruby
_808chris has quit [Client Quit]
agent_white has joined #ruby
diegoviola has joined #ruby
agent_white has left #ruby [#ruby]
agent_white has joined #ruby
tkuchiki has joined #ruby
bthesorceror has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
rm_ has quit [Read error: No route to host]
rm_ has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hgl has joined #ruby
duggiefresh has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
cpruitt has joined #ruby
toertore has quit [Quit: This computer has gone to sleep]
robustus has joined #ruby
<shevy> dumdedum
cpruitt has quit [Client Quit]
angusiguess has quit [Ping timeout: 264 seconds]
<pontiki> hey
jack_rabbit has joined #ruby
ari-_-e has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 252 seconds]
klaas_ has joined #ruby
serp` has joined #ruby
toastynerd has quit [Remote host closed the connection]
shazaum has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
bmurt has quit []
ziyadb has quit [Quit: Connection closed for inactivity]
klaas has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
GriffinHeart has joined #ruby
ari-_-e has joined #ruby
bthesorceror has joined #ruby
serp` has quit [Quit: serp`]
yubrew has quit [Ping timeout: 252 seconds]
isxek has quit [Read error: Connection timed out]
serp` has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
isxek has joined #ruby
isxek has quit [Client Quit]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
toastynerd has joined #ruby
except has quit [Ping timeout: 240 seconds]
Slavox is now known as Slavox|AFK
Tentra has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
crazymykl has quit [Read error: Connection reset by peer]
crazymykl has joined #ruby
Stalkr_ has joined #ruby
zorak_ has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
lethjakman has joined #ruby
alexju has joined #ruby
toastynerd has quit [Remote host closed the connection]
Stalkr_ has quit [Ping timeout: 260 seconds]
Aryasam has joined #ruby
Aryasam has quit [Client Quit]
lyanchih has joined #ruby
Shidash has joined #ruby
lethjakman has quit [Ping timeout: 264 seconds]
tylersmi_ has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
n0n3 has joined #ruby
hornairs has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
lyanchih___ has joined #ruby
lyanchih has quit [Ping timeout: 240 seconds]
lyanchih___ is now known as lyanchih
danijoo has joined #ruby
tectonic has quit []
dayepa has joined #ruby
dayepa has quit [Client Quit]
tylersmith has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
RaptorJesus has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
sepp2k1 has quit [Quit: Leaving.]
hamakn has joined #ruby
RaptorJesus has joined #ruby
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
dingus_khan has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
MatthewsFace has quit [Quit: This computer has gone to sleep]
bthesorceror has quit [Ping timeout: 264 seconds]
radic has quit [Ping timeout: 265 seconds]
lethjakman has joined #ruby
radic has joined #ruby
zorak_ has joined #ruby
seanewest has quit [Quit: seanewest]
FenixFyreX has quit [Quit: Object.send(:remove_const, :FenixFyreX)]
nitr_aka_anty has joined #ruby
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
poincare101 has joined #ruby
<poincare101> Is there some online code editor for Ruby that will let me run code (w/ syntax highlighting)? I'm trying to do a live presentation but I will not have my own machine...
nitr_aka_anty has quit [Ping timeout: 240 seconds]
<mozzarella> poincare101: http://ideone.com/
phutchins has joined #ruby
linoespinoza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<poincare101> mozzarella: issue w/ that is that the viewing window is very small and there are lots of ads, making it a cluttered interface
<poincare101> mozzarella: wait a second, it has changed quite a bit since I last used it
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
MatthewsFace has joined #ruby
dayepa has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
renderfu_ has joined #ruby
mary5030 has joined #ruby
charliesome has joined #ruby
yubrew has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 252 seconds]
sski has quit [Remote host closed the connection]
Jakey_Cloud___ has joined #ruby
sski has joined #ruby
george2 has joined #ruby
chipotle has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
Doppp has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
Hanmac has joined #ruby
xcv_ has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 260 seconds]
b1205 has quit [Ping timeout: 252 seconds]
absolutezeroff has quit [Quit: Leaving]
cout has quit [Read error: Connection reset by peer]
pwh has quit []
Hobogrammer_ has joined #ruby
jamto11 has joined #ruby
Stalkr_ has joined #ruby
tylersmith has joined #ruby
Slavox|AFK is now known as Slavox
Hobogrammer has quit [Ping timeout: 240 seconds]
bthesorceror has joined #ruby
r0ast has joined #ruby
serp` has left #ruby [#ruby]
agent_white has quit [Quit: bbl]
tylersmith has quit [Client Quit]
jamto11 has quit [Ping timeout: 245 seconds]
Stalkr_ has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
b1205 has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
dc has joined #ruby
TorpedoSkyline has joined #ruby
mercwithamouth has joined #ruby
balazs has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
dseitz has joined #ruby
Hanmac1 has joined #ruby
Slavox is now known as Slavox|AFK
Hanmac has quit [Ping timeout: 264 seconds]
andrewjanssen has joined #ruby
aspires has joined #ruby
gorpon has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
absolutezeroff has joined #ruby
koell has joined #ruby
bthesorceror has quit [Remote host closed the connection]
einarj has joined #ruby
braincrash has quit [Quit: bye bye]
ari-_-e has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
feature_creep has quit [Quit: feature_creep]
hornairs has quit [Quit: hornairs]
mehlah has quit [Quit: Leaving...]
einarj has quit [Ping timeout: 265 seconds]
braincrash has joined #ruby
ari-_-e has joined #ruby
Kricir has joined #ruby
hornairs has joined #ruby
gorpon has quit [Ping timeout: 252 seconds]
dc_ has joined #ruby
Vivekananda has joined #ruby
uTosTan has quit [Ping timeout: 240 seconds]
r0ast has quit [Remote host closed the connection]
Cache_Money has joined #ruby
dc has quit [Ping timeout: 255 seconds]
r0ast_ has joined #ruby
gorpon has joined #ruby
Slavox|AFK is now known as Slavox
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poincare101 has quit [Quit: poincare101]
Mongey has joined #ruby
darkswordchris has joined #ruby
r0ast has joined #ruby
<darkswordchris> Hello. Has anyone here used Ruby in Visual Studio previously, or know how it is done? I can't seem to get it right.
r0ast has quit [Client Quit]
r0ast_ has quit [Client Quit]
r0ast has joined #ruby
r0ast has quit [Client Quit]
<arrubin> Why would one wish to do that?
Hanmac1 has quit [Ping timeout: 265 seconds]
St_Marx has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
RaptorJesus has quit [Remote host closed the connection]
sptx00 has quit [Remote host closed the connection]
end_guy has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Connection reset by peer]
Boohbah has quit [Write error: Connection reset by peer]
<darkswordchris> There is a game creation engine called Unreal Engine XP. It uses RGSS (A custom implementation of Ruby) for scripting. I would like to create my own "wrapper" for the output game, to replace the default one.
GriffinHeart has joined #ruby
<darkswordchris> To do this, I need to able to use Ruby within C++
b1205 has quit [Ping timeout: 252 seconds]
<darkswordchris> I know this is possible, as I have seen things like this http://stackoverflow.com/questions/626333/embedding-a-ruby-interpreter-in-a-c-app I just can't seem to get it set up correctly.
sski has quit [Remote host closed the connection]
sski has joined #ruby
r0ast has joined #ruby
CodeBunny has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
anaeem1_ has joined #ruby
Kricir has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
St_Marx has joined #ruby
sski has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
tacos1de has joined #ruby
<darkswordchris> No one?
Takle has joined #ruby
<benzrf> darkswordchris: use mruby!
<darkswordchris> Alright, I'll give it a try, thanks.
Boohbah has joined #ruby
bthesorceror has joined #ruby
aspires has quit []
Hanmac has joined #ruby
Stalkr_ has joined #ruby
r0ast has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
grizzles has joined #ruby
<grizzles> I have a miscellaneous ruby app with no instructions on how to start it
<grizzles> it has a Rakefile
darkswordchris has quit [Ping timeout: 240 seconds]
<grizzles> Im not a ruby man
<grizzles> is there an standard ./configure;make type incantation I can use?
d34th4ck3r has quit [Quit: zzz]
dhaivat has joined #ruby
Stalkr_ has quit [Ping timeout: 276 seconds]
SBoolean has quit [Remote host closed the connection]
<pontiki> no, grizzles, ruby doesn
<pontiki> 't work that way
omosoj has joined #ruby
end_guy has joined #ruby
<grizzles> shoot :/
krz has joined #ruby
armyriad has joined #ruby
r0ast has joined #ruby
except has joined #ruby
Atttwww has quit []
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
omosoj has quit [Quit: Leaving]
r0ast has quit [Ping timeout: 255 seconds]
hermanmunster has quit [Read error: Connection reset by peer]
hermanmunster has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
mzagaja has joined #ruby
mzagaja has left #ruby [#ruby]
oo_ has quit [Remote host closed the connection]
aspires has quit []
nopolitica has joined #ruby
benzrf is now known as benzrf|offline
RaptorJesus has joined #ruby
nopolitica has quit [Client Quit]
Cache_Money has quit [Quit: Cache_Money]
fschuindt has joined #ruby
trhodes_ has quit [Ping timeout: 264 seconds]
anaeem1_ has joined #ruby
fschuindt has quit [Client Quit]
mr_snowf1ake has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
trhodes_ has joined #ruby
gorpon has quit [Ping timeout: 264 seconds]
xcesariox has joined #ruby
yubrew has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
nitr_aka_anty has joined #ruby
isxek has joined #ruby
danijoo has joined #ruby
sinkensabe has joined #ruby
dingus_khan has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
nitr_aka_anty has quit [Ping timeout: 252 seconds]
dingus_khan has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
dhaivat has quit [Quit: dhaivat]
b1205 has joined #ruby
freerobby has quit [Quit: Leaving.]
Kricir has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
xcv has joined #ruby
rm_ has quit [Remote host closed the connection]
havenwood has joined #ruby
rm_ has joined #ruby
b1205 has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
dhaivat has joined #ruby
aspires has quit []
xcv has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
aspires has joined #ruby
Stalkr_ has joined #ruby
d34th4ck3r has joined #ruby
rm__ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 260 seconds]
aspires has quit [Client Quit]
hornairs has quit [Quit: hornairs]
oo_ has joined #ruby
hornairs has joined #ruby
bthesorceror has quit [Remote host closed the connection]
Stalkr_ has quit [Ping timeout: 260 seconds]
nopolitica has joined #ruby
kies has quit [Ping timeout: 276 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
jxf has joined #ruby
hornairs has quit [Quit: hornairs]
oo_ has quit [Ping timeout: 276 seconds]
phinfonet has quit []
kireevco has joined #ruby
aspiers_ has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
b1205 has joined #ruby
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
x1337807x has joined #ruby
r0ast has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
dhaivat has quit [Quit: dhaivat]
kies has joined #ruby
tkuchiki has quit [Remote host closed the connection]
r0ast has quit [Ping timeout: 240 seconds]
dhaivat has joined #ruby
tkuchiki has joined #ruby
sinkensabe has joined #ruby
absolutezeroff has quit [Read error: Connection reset by peer]
dhaivat has quit [Client Quit]
kireevco has quit [Quit: Leaving.]
aneong has joined #ruby
CodeBunny has quit [Ping timeout: 252 seconds]
Asher has quit [Ping timeout: 264 seconds]
nopolitica has quit [Remote host closed the connection]
dumdedum has joined #ruby
aneong has quit [Ping timeout: 265 seconds]
dhaivat has joined #ruby
Asher has joined #ruby
grizzles has quit [Ping timeout: 240 seconds]
run_kmc has joined #ruby
aganov has joined #ruby
run_kmc is now known as Guest70391
luckyruby has joined #ruby
djbkd has joined #ruby
Guest70391 has quit [Client Quit]
phansch has joined #ruby
KLVTZ has joined #ruby
banjara has joined #ruby
Tentra has joined #ruby
dhaivat has quit [Quit: dhaivat]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
JasmeetQA has joined #ruby
jack_rabbit has quit [Quit: Leaving]
yubrew has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
kies has quit [Ping timeout: 252 seconds]
yakko has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
Wolland has joined #ruby
GriffinHeart has joined #ruby
Tentra has quit []
whyy has joined #ruby
franzip has joined #ruby
Royalb15 has quit [Quit: Leaving]
yubrew has quit [Ping timeout: 252 seconds]
why_away has joined #ruby
tengopreguntas has joined #ruby
tengopreguntas has left #ruby [#ruby]
tengopreguntas has joined #ruby
<tengopreguntas> does anybody know a way to print all the unicode chracterst that match a unicode character property. let's say all chars that match \p{Latin}
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Ping timeout: 260 seconds]
dmarr has quit [Quit: Goodbye]
whyy has quit [Ping timeout: 260 seconds]
rm__ has quit [Remote host closed the connection]
rm_ has joined #ruby
<pontiki> wouldn't that depend on the font you use as well?
koell has quit [Read error: Connection reset by peer]
koell has joined #ruby
dmarr has joined #ruby
kies has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
qwyeth has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
yakko has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
dseitz has quit [Ping timeout: 240 seconds]
jack_rabbit has joined #ruby
subraminion has joined #ruby
lyuzashi has quit [Quit: Lingo - http://lingoirc.com]
oo_ has joined #ruby
mengu has joined #ruby
dseitz has joined #ruby
yfeldblum has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grizzles has joined #ruby
tagrudev has joined #ruby
kilk_ has joined #ruby
kilk__ has joined #ruby
kilk_ has quit [Client Quit]
mary5030 has joined #ruby
vikfroberg has joined #ruby
rm_ has joined #ruby
b1205 has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 252 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ari-_-e> tengopreguntas: you can look that sort of thing up on the unicode website
<ari-_-e> tengopreguntas: http://www.unicode.org/charts/
<tengopreguntas> ari-_-e: well, i need it in my code, so i can create a translation table
<ari-_-e> what sort of translation table?
heftig has quit [Quit: Quitting]
<tengopreguntas> replace all accented letters with the transliterated version,,, let's say Äáà with a
<tengopreguntas> but only the ones who belong to a certain group, since i found a gem to do this, but it will replace all other chinese characters let's say
rkazak has joined #ruby
JBreit has joined #ruby
<tengopreguntas> ari-_-e: thank you for the website, it is very usefull
rm_ has quit [Ping timeout: 260 seconds]
armyriad has quit [Ping timeout: 240 seconds]
<ari-_-e> tengopreguntas: well, if you had programmatic access, how would you implement this?
<tengopreguntas> what you mean
<tengopreguntas> by programmatic access
<ari-_-e> you said you need it in your code
<ari-_-e> if you had it in your code
<ari-_-e> how would you do this
oo_ has quit [Remote host closed the connection]
maletor has joined #ruby
r0ast has joined #ruby
JBreit has left #ruby [#ruby]
<tengopreguntas> well, i will loop through the whole list, print the ascii equivalent,
oo_ has joined #ruby
<ari-_-e> how would you find the ascii equivalent?
<tengopreguntas> and running against any string containing any set of characters
<tengopreguntas> with the transliterate method
<RubyPanther> tengopreguntas: unicode_utils gem might help
Wayneoween has quit [Ping timeout: 240 seconds]
<tengopreguntas> i think i am using that one
n0n3 has quit []
Wayneoween has joined #ruby
<tengopreguntas> RubyPanther: well, i was using that one, but i think i need something else, unidecoder, or Iconv
balazs has quit [Ping timeout: 264 seconds]
<tengopreguntas> ari-_-e: so, i don't know if i answered your questions,or where you wanted to get with that..
Platini has quit [Remote host closed the connection]
<ari-_-e> tengopreguntas: so yeah, you'll probably need a gem or something which gives lets you query the unicode data
r0ast has quit [Ping timeout: 276 seconds]
<tengopreguntas> haha. oh my..
SilverKey has joined #ruby
lethjakman has joined #ruby
<ari-_-e> I would think that unicode_data could do this...
<ari-_-e> unicode_utis
<ari-_-e> unicode_utils
kies has quit [Ping timeout: 265 seconds]
<ari-_-e> apparently not
tylersmith has joined #ruby
<tengopreguntas> could do that? print the list or do the transliteration?
<ari-_-e> I doubt anything you find will be able to get a list, but I would think that you should be able to query the script of a particular character
<ari-_-e> the data probably isn't organized for getting a list
maletor has quit [Quit: Computer has gone to sleep.]
SilverKey has quit [Quit: Halted.]
bal has joined #ruby
GriffinHeart has joined #ruby
yubrew has joined #ruby
subraminion_ has joined #ruby
subraminion_ has quit [Remote host closed the connection]
subraminion_ has joined #ruby
hermanmunster has quit [Remote host closed the connection]
agjacome has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
subraminion has quit [Ping timeout: 276 seconds]
<ari-_-e> heh, you could check if /\p{Latin}/ matches that character
yubrew has quit [Ping timeout: 255 seconds]
lethjakman has quit [Ping timeout: 252 seconds]
kiri has joined #ruby
<ari-_-e> tengopreguntas: ^
Xeago has joined #ruby
<tengopreguntas> in perl, {Script=Latin} does it.
<tengopreguntas> ari-_-e: but how can i loop throught the whole set now
relix has joined #ruby
xcesariox has joined #ruby
xcesariox has quit [Max SendQ exceeded]
gwb3 has joined #ruby
mengu has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
toastynerd has joined #ruby
vikfroberg has quit [Quit: vikfroberg]
<ari-_-e> tengopreguntas: why do you need to? can't you just transliterate each character which is a latin character?
jprovazn has joined #ruby
kiri_ has joined #ruby
Morkel has joined #ruby
hermanmunster has quit [Remote host closed the connection]
alem0lars has joined #ruby
<ari-_-e> also, how does it help to transliterate only latin characters? if there are non-latin characters then it will still need to be represented as unicode, right?
hermanmunster has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
hermanmunster has quit [Read error: Connection reset by peer]
hermanmunster has joined #ruby
aneong has joined #ruby
banjara1 has joined #ruby
armyriad has joined #ruby
tengopreguntas has quit [Ping timeout: 260 seconds]
banjara has quit [Ping timeout: 252 seconds]
dawkirst has joined #ruby
ta has quit [Remote host closed the connection]
klaut has joined #ruby
subraminion_ has quit [Read error: Connection reset by peer]
subraminion__ has joined #ruby
aneong has quit [Ping timeout: 260 seconds]
amundj has joined #ruby
subraminion___ has joined #ruby
anarang has joined #ruby
subraminion__ has quit [Ping timeout: 240 seconds]
amundj has quit [Ping timeout: 260 seconds]
cout has joined #ruby
dayepa has quit [Quit: dayepa]
lemur has joined #ruby
RaptorJesus has quit [Quit: Leaving]
dawkirst_ has joined #ruby
trhodes_ has quit [Ping timeout: 264 seconds]
thomasxie has joined #ruby
lemur has quit [Remote host closed the connection]
michael_lee has joined #ruby
tectonic has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
JPascal has joined #ruby
tengopreguntas has joined #ruby
jamto11 has joined #ruby
trhodes_ has joined #ruby
KLVTZ has quit [Quit: {K}angaroo {L}eague on a {V}endetta for {T}errifying {Z}ebras]
noop has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
mengu has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
jamto11 has quit [Ping timeout: 260 seconds]
r0ast has joined #ruby
aneong has joined #ruby
subraminion___ has quit [Remote host closed the connection]
andikr has joined #ruby
subraminion___ has joined #ruby
r0ast has quit [Ping timeout: 264 seconds]
ta has joined #ruby
duncannz has joined #ruby
akonny has joined #ruby
fabrice31 has joined #ruby
IceDragon has quit [Quit: Space~~~]
wallerdev has quit [Quit: wallerdev]
aneong has quit [Remote host closed the connection]
wallerdev has joined #ruby
tectonic has quit []
yacks has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
<tengopreguntas> ari-_-e: how do i do that? sorry, i got disconnected
banister has joined #ruby
isxek has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0a1/20140601030204]]
yubrew has quit [Ping timeout: 240 seconds]
ayaz has joined #ruby
claymore has joined #ruby
rkazak has left #ruby [#ruby]
Macaveli has joined #ruby
Hobogrammer_ has quit [Ping timeout: 276 seconds]
yacks has joined #ruby
rghose1 has joined #ruby
ndrei has joined #ruby
Platini has joined #ruby
oo_ has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
<ari-_-e> tengopreguntas: just iterate through each character and transliterate it if it's latin?
except has quit [Quit: gn]
franzip has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
franzip has joined #ruby
tengopreguntas has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
franzip has quit [Quit: ...]
subraminion___ has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
lsmola has joined #ruby
ta has quit [Read error: Connection reset by peer]
why_away is now known as whyy
jackneill has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
armyriad has joined #ruby
Squarepy has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
ta has joined #ruby
zybi1 has quit [Remote host closed the connection]
soasme has joined #ruby
tengopreguntas has joined #ruby
timonv has joined #ruby
mikecmpbll has joined #ruby
likemike has joined #ruby
subraminion___ has joined #ruby
<likemike> hello what would be the good game for turning some data into a simple xml ?
subraminion___ has quit [Remote host closed the connection]
subraminion___ has joined #ruby
toastynerd has quit [Remote host closed the connection]
<Wolland> likemike: JSON has to_xml method
mercerist has joined #ruby
<Wolland> so does Hash
bricker`LA has joined #ruby
pskosinski has joined #ruby
<Hanmac> Wolland: and where does this to_xml method come from? not from JSON as far as i know ... except you might use rails and addons
timonv has quit [Ping timeout: 252 seconds]
hermanmunster has quit [Remote host closed the connection]
<Wolland> You are correct. rails :(
<Mon_Ouie> Nokogiri allows you to build XML
timonv has joined #ruby
r0ast has joined #ruby
kies has joined #ruby
lemur has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
nvrch has joined #ruby
yubrew has joined #ruby
wallerdev has quit [Quit: wallerdev]
r0ast has quit [Ping timeout: 264 seconds]
subraminion____ has joined #ruby
subraminion___ has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 255 seconds]
lemur has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
wm3|away has joined #ruby
Port3M5[Work] has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
dayepa has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
armyriad has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
whyy has quit [Remote host closed the connection]
whyy has joined #ruby
lemur has quit [Remote host closed the connection]
schaary|afk is now known as schaary
oo_ has quit [Remote host closed the connection]
kies has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
whyy has quit [Ping timeout: 240 seconds]
momomomomo has quit [Remote host closed the connection]
Matip has joined #ruby
<Matip> Hi
<Matip> is there a way to zip using the same value always?
<Matip> for example, ["foo", "bar"] zip with 1 => [["foo", 3], ["bar"]
<Matip> whoops, last part: [["foo", 1], ["bar", 1]]
<Matip> that, without using .map
ephemerian has joined #ruby
gizmore has joined #ruby
<Wolland> Matip: [1,2,3].zip(["a"].cycle)
djbkd has quit [Ping timeout: 240 seconds]
Gadgetoid has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
roolo has joined #ruby
<Matip> exactly that! .cycle
<Matip> thanks
<Wolland> np
mijicd has joined #ruby
klaut has quit [Remote host closed the connection]
dc_ has quit []
spider-mario has joined #ruby
kaspergrubbe has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
elaptics`away is now known as elaptics
niko has left #ruby [#ruby]
Gadgetoid has joined #ruby
chrisseaton has joined #ruby
anthony has joined #ruby
ta has quit [Remote host closed the connection]
anthony is now known as Guest55568
einarj has joined #ruby
kies has joined #ruby
whyy has joined #ruby
joonty has joined #ruby
why_away has joined #ruby
Shidash has quit [Ping timeout: 276 seconds]
timonv has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti!]
marr has joined #ruby
whyy_ has joined #ruby
whyy has quit [Ping timeout: 240 seconds]
tengopreguntas has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 264 seconds]
Wolland has quit []
whyy_ has quit [Read error: Connection reset by peer]
Guest55568 has quit [Quit: Leaving]
Port3M5[Work] has joined #ruby
whyy has joined #ruby
why_away has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
oo_ has quit [Remote host closed the connection]
rdark has joined #ruby
why_away has joined #ruby
oo_ has joined #ruby
rampert has joined #ruby
whyy has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
xcv has joined #ruby
dawkirst_ has quit [Quit: Leaving...]
oo_ has quit [Ping timeout: 252 seconds]
LekeFly has joined #ruby
d0lph1n98 has joined #ruby
Hanmac1 has joined #ruby
etqqkoiflwhb has joined #ruby
<etqqkoiflwhb> anyone, can we bind an object to a block in ruby? like http://underscorejs.org/#bind, or is instance_eval the only option?
Xeago has joined #ruby
jheg_ has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
d0lph1n98 has left #ruby [#ruby]
dangerousdave has joined #ruby
blacksails has quit [Quit: Computer has gone to sleep.]
blacksails has joined #ruby
ta has joined #ruby
oo_ has joined #ruby
kies has joined #ruby
blacksails has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
jamto11 has joined #ruby
kiri_ has quit [Quit: Leaving]
kiri has joined #ruby
<banister> etqqkoiflwhb instance_exec
timonv has joined #ruby
<ari-_-e> etqqkoiflwhb: just make a new block which calls instance_eval/exec
<ari-_-e> I'm pretty sure that's what underscore's bind method does, anyway
<ari-_-e> or, the analogous thing, anyway
yubrew has joined #ruby
charliesome has joined #ruby
nhhagen has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
jxf has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
r0ast has joined #ruby
DouweM has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
ra4king has quit [Remote host closed the connection]
r0ast has quit [Read error: Connection reset by peer]
wm3|away is now known as workmad3
r0ast_ has joined #ruby
ra4king has joined #ruby
<etqqkoiflwhb> ari-_-e: yep, did that, underscore's bind binds a function to an object, value of self remains to whatever it was set to, irrespective of where its called
andrewlio has joined #ruby
<ari-_-e> etqqkoiflwhb: what I mean is that underscore returns a function which calls the apply method on the given function with the given object
<ari-_-e> which would be analogous to making a new block in ruby which calls instance_eval/exec
<robert_> so, I can use Class.new to create a new class at runtime, fine; but how do "named" classes get their names?
<workmad3> robert_: a bit of 'magic' in the ruby parser
ponga has quit [Remote host closed the connection]
<robert_> So you can't do something similar without a C extension?
<etqqkoiflwhb> ari-_-e: cool, thanks
<ari-_-e> robert_: you can probably set its name: "cls.name = 'Whatever'"
ponga has joined #ruby
<workmad3> robert_: the 'magic' happens when you assign a class to a constant, not when you use 'class Foobar'
havenwood has quit [Remote host closed the connection]
<workmad3> >> Foo = Class.new; Foo.name
<eval-in_> workmad3 => "Foo" (https://eval.in/157736)
r0ast_ has quit [Ping timeout: 252 seconds]
<ari-_-e> workmad3: really? interesting
<workmad3> >> a = Class.new; a.name
<eval-in_> workmad3 => nil (https://eval.in/157737)
<workmad3> >> a = Class.new; Bar = a; a.name
<eval-in_> workmad3 => "Bar" (https://eval.in/157738)
<ari-_-e> workmad3: interesting
kobi_ has joined #ruby
oo_ has quit [Remote host closed the connection]
decoponio has joined #ruby
klaut has joined #ruby
<workmad3> ari-_-e: yeah, so I guess it's really more in the VM and core code than the parser :)
<robert_> >> a = Class.new; Bar = a; foo = Bar.new(); foo
<eval-in_> robert_ => #<Bar:0x40f464ac> (https://eval.in/157739)
<robert_> oh, okay. so it is name.
oo_ has joined #ruby
<ari-_-e> and I guess you can't set the name manually
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kobi_> hi, I'm trying to join #rails channel but I get some msg "opic for ##namespace is: You've tried to join an unavailable channel. The channel you may be attempting to join may be in a different namespace (try ##channel)"... but I do see nicknames. Any idea how I join rails channel ? ty
<workmad3> >> Class.new{def self.name; "foobar"; end;}.new
<eval-in_> workmad3 => #<#<Class:0x409ce380>:0x409ce31c> (https://eval.in/157740)
<workmad3> >> Class.new{def self.name; "foobar"; end;}.name
<eval-in_> workmad3 => "foobar" (https://eval.in/157741)
<workmad3> ari-_-e: sort of... ;)
<ari-_-e> workmad3: hah
<ari-_-e> kobi_: the rails channel is #rubyonrails
chrisseaton has quit []
<kobi_> ari-_-e, thank you!
<workmad3> kobi_: #rails should shunt you over to #rubyonrails unless you're not identified with nickserv
diegoviola has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 255 seconds]
ponga has quit [Ping timeout: 265 seconds]
<workmad3> kobi_: ah, ignore that... looks like the shunting is broken atm...
banister has joined #ruby
tvw has joined #ruby
whyy has joined #ruby
DaniG2k_ has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
why_away has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
AlSquire has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
sigurding has joined #ruby
heftig has joined #ruby
obs has joined #ruby
kobi_ is now known as survili
JPascal has quit []
<robert_> bleh
fgo has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<robert_> workmad3: I'm trying to do something like that, where you have fragments of ruby segregated into smaller, more manageable files, buuut IT'S NOT WORKING, lol.
lemur has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Wolland has joined #ruby
<robert_> bleh, lol
banister has joined #ruby
pagioss has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
<ari-_-e> robert_: looks like there's something wrong at the top?
<ari-_-e> something with quotes, looks like
<Wolland> single ' vs `
<Wolland> ?
lemur has quit [Ping timeout: 240 seconds]
<Wolland> on line 7?
<ari-_-e> something like that
<robert_> no?
<robert_> that isn't shell.
<ari-_-e> hm?
<ari-_-e> do you not see the error?
<robert_> that's code stand-in for open()'d files on the server this is actually running on.
<robert_> and the error is incidental
pabloh has joined #ruby
frosgy has joined #ruby
<robert_> ari-_-e: Services.rb:109:in `block in <class:Services>': undefined method `name=' for Services::Service1:Class (NoMethodError)
<robert_> that's what I'm trying to debug, lol
sk87 has joined #ruby
<ari-_-e> robert_: line 109 is end :-/
shredding has joined #ruby
<Wolland> undefined local variable or method `pathname' for Services:Class (NameError)
<Wolland> line 84
<Wolland> you have missing single 's
<canton7> sIdisLIfd_{k987
<Hanmac1> robert_: classes has a name method but no name= method
sk87 has quit [Client Quit]
frogssgy has quit [Ping timeout: 240 seconds]
<ari-_-e> robert_: I think it'd be good if the code you've uploaded doesn't have incidental errors
<canton7> grr hexchat stealing focus
<ari-_-e> lets us focus on the real error
<robert_> ari-_-e: I know, but you can't run the code, because it doesn't exhibit the issues because you can't glob a directory and load rub code on the web, so I have to improvise..
<robert_> ruby*
Vivekananda has quit [Read error: Connection reset by peer]
nfk has joined #ruby
Squarepy has joined #ruby
yacks has joined #ruby
kyb3r_ has joined #ruby
d34th4ck3r has quit [Quit: zzz]
oo__ has joined #ruby
GriffinHeart has joined #ruby
pskosinski has joined #ruby
blackmesa has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
why_away has joined #ruby
banjara has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banjara1 has quit [Read error: No route to host]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrisseaton has joined #ruby
byteoverfl0w has joined #ruby
banister has joined #ruby
mengu has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 245 seconds]
akonny has quit [Quit: akonny]
yubrew has joined #ruby
k03ll has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
koell has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
Lutece has joined #ruby
aspiers_ has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
r0ast has joined #ruby
tengopreguntas has joined #ruby
dEPy has joined #ruby
m8 has joined #ruby
Guest51158 has joined #ruby
yenic has joined #ruby
<Guest51158> Hi,does anyone know RUBY devs in South Africa?
<Lutece> Looking to hire someone?
<Guest51158> Yeah
<robert_> ari-_-e: https://eval.in/157759.. FINALLY.
ponga has joined #ruby
banisterone has joined #ruby
<Guest51158> I'm based in Midrand
r0ast has quit [Ping timeout: 252 seconds]
sigurding has quit [Read error: Connection reset by peer]
<Guest51158> we're looking for a team of Ruby Devs
havenwood has joined #ruby
<Guest51158> Of wich I need senior people
<dEPy> Anyone can tell me how to do this stuff better? => https://gist.github.com/depy/b87a140a1ec58b1da5e8 ?
<dEPy> This lives in one of the modules
<dEPy> and this module is included in a Task class ( so self is Task instance)
<ari-_-e> robert_: so yeah, I was wrong when I said that you could set name on a Class
JPascal has joined #ruby
k03ll has quit [Quit: So say we all!]
<ari-_-e> robert_: as we discussed, the act of setting the class to a constant sets its name
<robert_> but then why's it work here?
oo__ has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
ponga has quit [Ping timeout: 252 seconds]
<ari-_-e> robert_: it doesn't... that's what the error is about...
dangerousdave has joined #ruby
<ari-_-e> there's no name= method
oo_ has joined #ruby
<robert_> >> a = Class.new; Bar = a; foo = Bar.new(); foo.name
<eval-in_> robert_ => undefined method `name' for #<Bar:0x40a3e400> (NoMethodError) ... (https://eval.in/157760)
<robert_> oh, herp
<robert_> >> a = Class.new; Bar = a; foo = Bar.new(); foo
<eval-in_> robert_ => #<Bar:0x41606418> (https://eval.in/157761)
jheg_ has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Remote host closed the connection]
<robert_> oh, so then I'm actually not setting it correctly?
pskosinski has quit [Remote host closed the connection]
<ari-_-e> robert_: you're doing .name =
banjara1 has joined #ruby
<ari-_-e> line 90
pskosinski has joined #ruby
pskosinski has quit [Remote host closed the connection]
dc has joined #ruby
banjara has quit [Ping timeout: 276 seconds]
<dEPy> tnx apeiros, a bit better and more readable
<ari-_-e> apeiros: factor out the ?: ?
<apeiros> ari-_-e: upcoming, yes
<apeiros> also forgot to replace some copy & pasted names
<ari-_-e> def price_service; (fixed_price? ? FixedPriceService : PriceService); end
<robert_> oh, okay. yeah, I'm just doing it wong..
GriffinHeart has quit [Remote host closed the connection]
<apeiros> dEPy: updated
GriffinHeart has joined #ruby
<dEPy> apeiros: tnx, even better :)
fgo has joined #ruby
moritzschaefer has joined #ruby
shredding has quit [Quit: shredding]
mengu has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
brunops has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
thomasxie has quit [Quit: Leaving.]
charliesome has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
mengu__ has joined #ruby
etqqkoiflwhb has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
mengu has quit [Read error: No route to host]
fgo has joined #ruby
roolo has quit [Quit: Leaving...]
duncannz has quit [Ping timeout: 252 seconds]
narendraj has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Ping timeout: 252 seconds]
narendraj has quit [Remote host closed the connection]
klaut has quit [Read error: Connection reset by peer]
hgl has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
ctp has joined #ruby
sptx00 has joined #ruby
yenic has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0.1/20140506152807]]
phansch has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
Matip has quit [Quit: Leaving]
claymore has joined #ruby
aspiers_ has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 276 seconds]
<Guest51158> RUBY GUYS IN SOUTH AFRICA?
<Guest51158> .
<Guest51158> .
<Guest51158> .
<Guest51158> .
<DefV> STOP SHOUTING
<Guest51158> .
<dEPy> With this attitude you'll get noone
<Guest51158> .LOL! Just asking
<dEPy> Are you like 15 years old or something?
<DefV> what's with the points?
<Guest51158> just to get some people to see the question. were urgently looking for people
Guest51158 has quit [Quit: if you know anyone admin @ alteram .co .za]
<DefV> oh god
timonv has quit [Remote host closed the connection]
<DefV> whatever you do, don't go work for that guy
<matti> ;S
nvrch has quit [Quit: nvrch]
<DefV> love their site thoug: http://alteram.co.za
<DefV> stock photo's all the time
<matti> DefV: But they listen.
<matti> ;]
<DefV> finally! most other companies just ignore their clients, as we all know
Xeago has joined #ruby
charliesome has joined #ruby
akemrir has joined #ruby
sepp2k has joined #ruby
fgo has joined #ruby
yubrew has joined #ruby
hgl has joined #ruby
Takle has joined #ruby
timonv has joined #ruby
Takle has quit [Remote host closed the connection]
phutchins has joined #ruby
fgo has quit [Ping timeout: 276 seconds]
yubrew has quit [Ping timeout: 255 seconds]
xcv has quit [Remote host closed the connection]
chrisseaton has quit []
Takle has joined #ruby
karupa is now known as zz_karupa
phutchins has quit [Ping timeout: 255 seconds]
obs has quit [Remote host closed the connection]
chrisseaton has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
maximski has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
narendraj has joined #ruby
jamto11 has joined #ruby
phoo1234567 has joined #ruby
narendraj has quit [Remote host closed the connection]
obs has joined #ruby
narendraj has joined #ruby
lyanchih has joined #ruby
havenwood has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
narendraj has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
narendraj has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
jamto11 has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
matchaw has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
r0ast has joined #ruby
yfeldblum has joined #ruby
mengu__ has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
brunops has joined #ruby
narendraj has quit [Remote host closed the connection]
r0ast has quit [Ping timeout: 252 seconds]
narendraj has joined #ruby
sigurding has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
narendraj has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
fgo has joined #ruby
dangerousdave has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Remote host closed the connection]
gigetoo has joined #ruby
tkuchiki_ has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
roolo has joined #ruby
MrBoolean has joined #ruby
narendraj9 has joined #ruby
claymore has joined #ruby
why_away has quit [Remote host closed the connection]
hermanmunster has joined #ruby
tkuchiki has quit [Ping timeout: 276 seconds]
tkuchiki_ has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
moritzschaefer has quit [Ping timeout: 264 seconds]
etqqkoiflwhb has joined #ruby
subraminion____ has quit [Quit: Lingo - http://lingoirc.com]
subraminion has joined #ruby
blacksails has joined #ruby
chrisseaton has quit [Ping timeout: 245 seconds]
eka has joined #ruby
eka has quit [Client Quit]
eka has joined #ruby
fabrice31 has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
chrisseaton has joined #ruby
blacksails has quit [Client Quit]
shredding has joined #ruby
bluOxigen has joined #ruby
Armand_ has joined #ruby
mcroun has joined #ruby
<mcroun> hello!
<Armand_> Hey. I need Ruby DEVS in Johannesburg. DO you know of anyone?
whyy has joined #ruby
oo_ has quit [Remote host closed the connection]
<mcroun> nope
fabrice31 has joined #ruby
<Armand_> Cool, Thanks
<mcroun> take care
whyy has quit [Read error: Connection reset by peer]
<rghose1> can anyone tell me if omniauth can handle logouts as well?
oo_ has joined #ruby
whyy has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
ringarin has joined #ruby
Takle has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 240 seconds]
mehlah has joined #ruby
claymore has joined #ruby
oo_ has quit [Remote host closed the connection]
<DaniG2k_> where the hell did the sunspot channel go?
oo_ has joined #ruby
chipotle has quit [Ping timeout: 260 seconds]
frobrob has joined #ruby
xcv has joined #ruby
<Lutece> rghose1: this looks like what you are after
<Lutece> get '/logout', :to => 'sessions#destroy'
<Lutece> got it from here:
<Lutece> Not sure if that helps
yubrew has joined #ruby
fgo has quit [Remote host closed the connection]
mercerist has quit [Remote host closed the connection]
tesuji has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
<rghose1> aah I see, the route was not defined, hence the problem
tkuchiki has joined #ruby
<rghose1> thanks @Lutece
oo_ has quit [Remote host closed the connection]
<Lutece> Nps
DouweM has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
gancl has joined #ruby
m8 has quit [Quit: Sto andando via]
oo_ has joined #ruby
m8 has joined #ruby
gancl has quit [Client Quit]
gancl has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dANOKELOFF has joined #ruby
ldnunes has joined #ruby
seanewest has joined #ruby
lkba has joined #ruby
Takle has joined #ruby
lyanchih has quit [Quit: lyanchih]
<shwouchk> Hello
St_Marx has quit [Remote host closed the connection]
ponga has joined #ruby
yfeldblum has joined #ruby
<Lutece> Hi
feature_creep has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
gancl has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
seanewest has quit [Quit: seanewest]
<shwouchk> Suddenly, I get errors trying to run rake. one of the lines is: dlopen(/Users/kosta/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/psych.bundle, 9): Library not loaded: /usr/local/lib/libyaml-0.2.dylib - does the ruby-2.1.1/lib/ruby/2.1.0 make sense? if not, what could cause it? mixup in PATH? upgrading something I shouldn't have? something else? Also, I see now that I don't even have libyaml-0.2 available on my system, neither
<shwouchk> in ports nor in brew. what gives?
DaniG2k has quit [Quit: leaving]
<DaniG2k_> exit
<DaniG2k_> oops
DaniG2k_ has quit [Quit: leaving]
maximski has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
r0ast has joined #ruby
banisterone has quit [Read error: Connection reset by peer]
doev has joined #ruby
fauzanqadri has joined #ruby
danshultz has quit [Remote host closed the connection]
roadt has joined #ruby
r0ast has quit [Ping timeout: 276 seconds]
danshultz has joined #ruby
tanmay_ has joined #ruby
tanmay__ has joined #ruby
<tanmay_> how to get current user in custom helper in rails ?
hermanmunster has quit [Remote host closed the connection]
<Lutece> You mind describing that a little better? tanmay_?
hermanmunster has joined #ruby
maximski has joined #ruby
<tanmay_> I have written custom helper file and calling one of the method of that helpr from some controller. how to access current user in custom helper?
<Armand_> Hey. I need Ruby DEVS in Johannesburg. Do you know of anyone?
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
fgo has joined #ruby
<maloik> You're likely to have better luck on a job board
danshultz has quit [Ping timeout: 255 seconds]
<ari-_-e> Armand_: I'm thinking of a word that describes what you're doing, do you know the word I'm thinking of?
r0ast has joined #ruby
<tanmay_> Normaly when we call any helper method from that controller then we get current_user .
<gizmore> tanmay_: i think current_user should work in helper too
<gizmore> if not, maybe just pass it as parameter
<tanmay_> :( its saying undefined current_user
lobstah has quit [Ping timeout: 264 seconds]
<gizmore> tanmay_: maybe you don´t call it from a controller or view?
vikfroberg has joined #ruby
<fauzanqadri> you need to included them to the controller tanmay
hermanmunster has quit [Ping timeout: 276 seconds]
<tanmay_> @fauzanqadri Okay. Trying
paulfm has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<tanmay_> @fauzanqadri should I include it inside class ?
JasmeetQA has quit [Read error: Connection reset by peer]
jackneill has quit [Remote host closed the connection]
frobrob has quit [Ping timeout: 264 seconds]
<fauzanqadri> @tanmay_ yapp, make sure your helper is module
mjsmith2 has joined #ruby
r0ast has quit [Remote host closed the connection]
<ddv> Armand_: Johannesburg is too unsafe for Ruby developers
<ddv> ari-_-e: recruiting?
aspiers_ has joined #ruby
<ari-_-e> ddv: no
paulfm has quit []
<tanmay_> @fauzanqadri undefined local variable or method `current_user' for a:Module
SBoolean has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
Soda has joined #ruby
<fauzanqadri> where did u defined the `current_user` method tanmay_
Soda has quit [Remote host closed the connection]
<Hanmac1> tanmay_ you defined it as instance method but you called it as class method ... you might need to look for module_function
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
Lutece has quit [Ping timeout: 272 seconds]
AlSquire has quit [Ping timeout: 252 seconds]
mark_locklear has joined #ruby
fabrice31 has quit [Remote host closed the connection]
sumark has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
ponga has quit [Ping timeout: 260 seconds]
yubrew has joined #ruby
tanmay_ has quit [Ping timeout: 240 seconds]
tanmay__ has quit [Ping timeout: 252 seconds]
sumark has joined #ruby
tanmay_ has joined #ruby
tanmay__ has joined #ruby
<Armand_> Yeah I am recruiting
<Armand_> Joahnnesburg is not unsafe
moritzschaefer has joined #ruby
<Armand_> Johannesburg is awesome!!!! I'm white and been living here all my life
<Armand_> lol
<Armand_> I'm still alive
<tanmay_> @fauzanqadri want to access current_user var in A helper within function X. Calling X from Y controller. @Hanmac1 its class method
<tanmay_> I have defined self.method_name
benzrf|offline is now known as benzrf
paulfm has joined #ruby
timonv has quit [Remote host closed the connection]
whyy has quit [Remote host closed the connection]
soasme has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 240 seconds]
paulfm has quit [Client Quit]
whyy has joined #ruby
AlSquire has joined #ruby
<fauzanqadri> try just `method_name`
sigurding has quit [Quit: sigurding]
phutchins has joined #ruby
nhhagen has quit [Remote host closed the connection]
r0ast has joined #ruby
sambao21 has joined #ruby
bmurt has joined #ruby
why_away has joined #ruby
whyy has quit [Ping timeout: 240 seconds]
malkomalko has joined #ruby
Takle has quit [Remote host closed the connection]
sigurding has joined #ruby
r0ast has quit [Remote host closed the connection]
paulfm has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
blueOxigen has joined #ruby
<rghose1> any idea how omniauth logouts might work with gitlab?
<rghose1> it does a DELETE request on resources
nemesit|znc has quit [Ping timeout: 252 seconds]
franzip has joined #ruby
balazs has joined #ruby
<tanmay_> @fauzanqadri it worked. directly called method
<tanmay_> thx
<fauzanqadri> ;)
workmad3 is now known as wm3|away
shevy has joined #ruby
freerobby has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
nemesit|znc has joined #ruby
jheg_ has joined #ruby
timonv has joined #ruby
why_away has quit [Remote host closed the connection]
yfeldblum has joined #ruby
whyy has joined #ruby
setra has joined #ruby
robertodecurnex has joined #ruby
maximski has quit []
jamto11 has joined #ruby
lobstah has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whyy has quit [Ping timeout: 252 seconds]
yacks has quit [Ping timeout: 264 seconds]
hornairs has joined #ruby
shevy has quit [Remote host closed the connection]
tesuji has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
whyy has joined #ruby
havenwood has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
feature_creep has quit [Quit: feature_creep]
dblessing has joined #ruby
bluOxigen has joined #ruby
freerobby has quit [Quit: Leaving.]
hornairs has quit [Client Quit]
garndt has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
anaeem1_ has quit [Remote host closed the connection]
r0ast has joined #ruby
yfeldblum has joined #ruby
sepp2k has quit [Quit: Leaving.]
bluOxigen has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 272 seconds]
Armand_ has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
ponga has joined #ruby
danshultz has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
danshultz has quit [Remote host closed the connection]
blacksails has joined #ruby
danshultz has joined #ruby
fabrice31 has joined #ruby
vpretzel has joined #ruby
r0ast has quit [Ping timeout: 252 seconds]
angusiguess has joined #ruby
hermanmunster has joined #ruby
sambao21 has joined #ruby
mary5030 has joined #ruby
moritzschaefer has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
fgo has joined #ruby
bthesorceror has joined #ruby
andrewjanssen has joined #ruby
etqqkoiflwhb has joined #ruby
<bmurt> anyone know how to spoof/force an exception for Mechanize's ResponseErrorCode?
ephemerian has quit [Quit: Leaving.]
blacksails has quit [Quit: Computer has gone to sleep.]
hermanmunster has quit [Ping timeout: 240 seconds]
<bmurt> im trying to implement an email notification, but not sure how to test that the notification aspect works: https://gist.github.com/bmurtagh/a83e6c7b5067a4cbfcad
ephemerian has joined #ruby
blacksails has joined #ruby
brasten has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
sambao21 has quit [Ping timeout: 260 seconds]
jheg_ has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
moritzschaefer has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
blacksails has quit [Ping timeout: 245 seconds]
Ankhers has joined #ruby
duggiefresh has joined #ruby
horsecowdog has joined #ruby
whyy has quit [Remote host closed the connection]
havenwood has joined #ruby
horsecowdog has quit [Client Quit]
whyy has joined #ruby
ephemerian has quit [Quit: Leaving.]
banister has joined #ruby
ephemerian has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
nhhagen has joined #ruby
n_b has quit [Ping timeout: 245 seconds]
GriffinHeart has quit [Remote host closed the connection]
alem0lars has quit [Quit: Going AFK...]
nhhagen_ has joined #ruby
doodlehaus has joined #ruby
NukePuppy has joined #ruby
n_b has joined #ruby
claymore has joined #ruby
yubrew has joined #ruby
why_away has joined #ruby
whyy has quit [Read error: Connection reset by peer]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
qwyeth has joined #ruby
vikfroberg has quit [Quit: vikfroberg]
nhhagen has quit [Ping timeout: 276 seconds]
cpruitt has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
mjsmith2 has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
nhhagen has joined #ruby
Dingus has joined #ruby
dc has quit []
timonv has quit [Ping timeout: 240 seconds]
andrewjanssen has quit [Quit: Leaving...]
thesheff17 has quit [Ping timeout: 265 seconds]
thesheff17 has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
andrewjanssen has joined #ruby
malkomalko has quit []
phutchins has quit [Quit: Lost terminal]
deavidsedice has quit [Ping timeout: 252 seconds]
phutchins has joined #ruby
Stalkr_ has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
SCommette has joined #ruby
sambao21 has joined #ruby
cpruitt has quit [Quit: cpruitt]
nhhagen has quit [Remote host closed the connection]
rghose1 has quit [Ping timeout: 260 seconds]
sambao21 has quit [Client Quit]
zwerg is now known as dschooh
vt102 has joined #ruby
fgo has joined #ruby
cpruitt has joined #ruby
deavid has joined #ruby
benzrf|offline is now known as benzrf
wm3|away is now known as workmad3
jack_rabbit has quit [Ping timeout: 245 seconds]
meatherly has joined #ruby
lyanchih has joined #ruby
phansch has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
centrx has joined #ruby
nhhagen has joined #ruby
sambao21 has joined #ruby
chipotle has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
tjr9898_ has joined #ruby
lw has joined #ruby
vikfroberg has joined #ruby
phansch has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
fauzanqadri has quit [Ping timeout: 240 seconds]
tjr9898_ has joined #ruby
anaeem1_ has joined #ruby
endash has joined #ruby
djcp has joined #ruby
djcp has left #ruby [#ruby]
tjr9898_ has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
naterubin has quit [Read error: Connection reset by peer]
tjr9898_ has quit [Remote host closed the connection]
dschooh has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
mikesplain has joined #ruby
fgo has joined #ruby
davedev24_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
davedev24_ has joined #ruby
<segfalt> bmurt: You mean from a testing suite, like RSpec?
Zenigor has joined #ruby
Notte has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
sailias has joined #ruby
redondo has quit [Ping timeout: 240 seconds]
feature_creep has joined #ruby
ffranz has joined #ruby
hamakn has quit [Remote host closed the connection]
silkfox has joined #ruby
LadyRainicorn has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
mijicd has quit [Remote host closed the connection]
LadyRainicorn has quit [Read error: Connection reset by peer]
<bmurt> segfalt: nah, i was just changing the URL to a bad page
shredding has quit [Quit: shredding]
havenwood has quit []
<bmurt> because the ResponseReadError gets hit when attempting to read the body from the server
<bmurt> i'm unsure if it was possible to "piggy-back" exceptions, but this is working now
jamto11 has joined #ruby
<bmurt> just less info will be obtained via the email notification
<segfalt> Oh, I see, you wanted to create your own instance of ResponseReadError with test data.
<segfalt> you'd have to look at the constructor for that class to see how it's built, it seems to have custom data (#body_io)
sambao21 has quit [Read error: Connection reset by peer]
<segfalt> then raise Mechanize::ResponseReadError.new(args, to, constructor)
coderhs has joined #ruby
<segfalt> shoot, gotta run.
rghose1 has joined #ruby
<bmurt> ahh ok
<bmurt> thanks for the info segfalt
naterubin has joined #ruby
snath has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
narendraj9 has quit [Quit: Connection closed for inactivity]
Stalkr_ has quit [Quit: Textual IRC Client: www.textualapp.com]
lemur has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has quit [Changing host]
nhhagen has quit [Remote host closed the connection]
thejoecarroll has quit [Quit: ZNC - http://znc.in]
mary5030 has quit [Remote host closed the connection]
thejoecarroll has joined #ruby
shredding has joined #ruby
mengu has quit [Remote host closed the connection]
kevind has joined #ruby
shredding has quit [Client Quit]
tjr9898_ has joined #ruby
SCommette has quit [Quit: SCommette]
Kricir has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
tjr9898_ has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 240 seconds]
LexicalScope has joined #ruby
LexicalScope has quit [Client Quit]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
tjr9898__ has joined #ruby
mengu has joined #ruby
roolo has quit [Read error: Connection reset by peer]
JPascal has quit []
mailo has joined #ruby
yubrew has joined #ruby
hamakn has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<tanmay_> How to convert multilevel hash into single level hash ? convert hash of hash into hash
<tanmay_> ?
sambao21 has quit [Quit: Computer has gone to sleep.]
<centrx> tanmay_, Is there a rule for the conversion?
<tanmay_> nop
<tanmay_> just want all key value pair at one level so that I can compare two hash and get the difference
<tanmay_> just like model.changes
subraminion has quit [Quit: Computer has gone to sleep.]
<centrx> How deep is the multilevel hash? Is it always the same depth?
<tanmay_> yep
<tanmay_> two levels
SBoolean has quit [Ping timeout: 245 seconds]
<tanmay_> deep
Ankhers has quit [Ping timeout: 272 seconds]
subraminion has joined #ruby
<centrx> tanmay_, Does the first level ever have a value that is not a hash, or is it mixed?
yubrew has quit [Ping timeout: 240 seconds]
redondo has joined #ruby
<centrx> Something like this: multihash.map { |k,v| v.to_a }.flatten.to_h
<centrx> maybe flatten(1)
nhhagen has joined #ruby
t0rc has joined #ruby
t0rc has left #ruby [#ruby]
Takle has joined #ruby
luksaur has joined #ruby
fabrice31 has quit [Remote host closed the connection]
lw has quit [Quit: s]
yubrew has joined #ruby
anaeem1__ has joined #ruby
vpretzel_ has joined #ruby
MrBoolean has quit [Quit: Leaving...]
Ankhers has joined #ruby
nhhagen has quit [Remote host closed the connection]
gattuso has joined #ruby
dik_dak has joined #ruby
anaeem1_ has quit [Ping timeout: 264 seconds]
survili has quit [Quit: Leaving]
vpretzel has quit [Ping timeout: 264 seconds]
lmickh has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<tanmay_> @centrx trying
tagrudev has quit [Remote host closed the connection]
mary5030 has joined #ruby
lmickh has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
mengu has quit []
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
subraminion has quit [Quit: Lingo - http://lingoirc.com]
jobewan has joined #ruby
renderful has joined #ruby
kenneth has joined #ruby
why_away has quit [Ping timeout: 252 seconds]
jhulten has joined #ruby
xcv has quit [Remote host closed the connection]
SBoolean has joined #ruby
lw has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
failshell has joined #ruby
vpretzel_ is now known as vpretzel|1388
renderfu_ has quit [Ping timeout: 240 seconds]
lmickh has joined #ruby
end_guy has quit [Ping timeout: 272 seconds]
silkfox has quit [Ping timeout: 252 seconds]
SBoolean has quit [Ping timeout: 245 seconds]
bean has joined #ruby
ogawa has joined #ruby
vikfroberg has quit [Quit: vikfroberg]
dangerousdave has quit [Read error: Connection reset by peer]
end_guy has joined #ruby
dangerousdave has joined #ruby
SCommette has joined #ruby
oo_ has joined #ruby
banjara1 has quit [Quit: Leaving.]
treehug88 has joined #ruby
brasten has quit [Quit: brasten]
Squarepy has quit [Ping timeout: 252 seconds]
Ankhers has quit [Ping timeout: 272 seconds]
dangerou_ has joined #ruby
toastynerd has joined #ruby
ogawa has quit [Quit: Leaving...]
pwh has joined #ruby
aganov has quit [Quit: Leaving]
djcp has joined #ruby
Ankhers has joined #ruby
djcp has left #ruby [#ruby]
andrewjanssen has quit [Quit: Leaving...]
dangerousdave has quit [Ping timeout: 276 seconds]
silkfox has joined #ruby
yfeldblum has joined #ruby
Royixc_ has joined #ruby
nhhagen has joined #ruby
vpretzel|1388 is now known as vpretzel|optomca
Royixc_ has quit [Max SendQ exceeded]
mark_locklear has quit [Ping timeout: 240 seconds]
Royixc_ has joined #ruby
oo_ has quit [Remote host closed the connection]
ixti has joined #ruby
toastynerd has quit [Remote host closed the connection]
Royixc_ has quit [Max SendQ exceeded]
Royixc_ has joined #ruby
Xeago has joined #ruby
arrubin has joined #ruby
andrewjanssen has joined #ruby
banister has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
cearls has joined #ruby
amargherio has joined #ruby
chipotle has quit [Quit: cya]
Xeago has quit [Read error: Connection reset by peer]
eka has joined #ruby
chrisja has joined #ruby
hermanmunster has joined #ruby
Ankhers has quit [Remote host closed the connection]
nhhagen_ has joined #ruby
andikr has quit [Remote host closed the connection]
nszceta has joined #ruby
fgo has quit [Remote host closed the connection]
terrellt has joined #ruby
SBoolean has joined #ruby
byteoverfl0w has quit [Quit: Leaving... have a good one...]
toastynerd has joined #ruby
nhhagen has quit [Ping timeout: 265 seconds]
hermanmunster has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
nhhagen_ has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
tjr9898__ has quit [Remote host closed the connection]
oo_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
bal has quit [Quit: bal]
tjr9898_ has joined #ruby
sambao21 has joined #ruby
toastynerd has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
anaeem1__ has quit [Ping timeout: 240 seconds]
lmickh has quit [Remote host closed the connection]
nszceta has quit []
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
sambao21 has joined #ruby
tkuchiki has joined #ruby
vt102 has quit [Quit: Leaving]
acrussell has joined #ruby
g0bl1n has joined #ruby
kiri has quit [Remote host closed the connection]
nszceta has joined #ruby
GriffinHeart has joined #ruby
rayners has joined #ruby
maletor has joined #ruby
Lutece_ has joined #ruby
noop has quit [Ping timeout: 265 seconds]
nvrch has quit [Quit: nvrch]
nszceta has quit [Client Quit]
braincrash has quit [Ping timeout: 240 seconds]
lethe has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
bean has quit [Quit: bean]
enebo has joined #ruby
maletor has quit [Client Quit]
toretore has joined #ruby
nszceta has joined #ruby
learner has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
tacos1de has quit [Remote host closed the connection]
bean has joined #ruby
SBoolean_ has joined #ruby
GriffinHeart has quit [Ping timeout: 245 seconds]
tacos1de has joined #ruby
maximski has joined #ruby
SBoolean has quit [Ping timeout: 252 seconds]
pwh has quit []
sambao21 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
dEPy has quit [Quit: Lingo - http://lingoirc.com]
nowthatsamatt has joined #ruby
geggam has joined #ruby
endash has quit [Quit: endash]
Beoran_ has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
j_mcnally has joined #ruby
sski has joined #ruby
b00stfr3ak has joined #ruby
momomomomo has quit [Quit: momomomomo]
banister has joined #ruby
acrussell has left #ruby [#ruby]
Squarepy has joined #ruby
top4o has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
tjr9898_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
shredding has joined #ruby
sptx00 has quit [Read error: Connection reset by peer]
sptx00 has joined #ruby
vosloco has joined #ruby
cearls has quit []
tjr9898__ has joined #ruby
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
Macaveli has quit [Ping timeout: 252 seconds]
Beoran_ has joined #ruby
tengopreguntas has quit [Ping timeout: 260 seconds]
eka has quit [Read error: Connection reset by peer]
tjr9898_ has quit [Ping timeout: 240 seconds]
eka has joined #ruby
Kricir has joined #ruby
coderhs has joined #ruby
wldcordeiro has joined #ruby
anaeem1 has joined #ruby
Lutece_ has quit [Quit: WeeChat 0.4.3]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
anaeem1 has quit [Remote host closed the connection]
LadyRainicorn has quit [Read error: Connection reset by peer]
Rainicorn has joined #ruby
Lutece has joined #ruby
subbyyy has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 264 seconds]
tanmay_ has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Remote host closed the connection]
tanmay__ has quit [Ping timeout: 276 seconds]
nszceta has quit []
coderhs has quit [Ping timeout: 252 seconds]
phinfonet has joined #ruby
sski has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sski has joined #ruby
krz has quit [Read error: Connection reset by peer]
Eyes has quit [Quit: Leaving]
sinkensabe has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
aspires has joined #ruby
blandflakes has joined #ruby
dANOKELOFF has quit []
franzip has quit [Quit: ...]
benzrf|offline is now known as benzrf
sski has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
dumdedum has quit [Quit: foo]
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
oo_ has quit [Remote host closed the connection]
<vosloco> Has anyone else run into a problem with the restclient gem when using openssl version 1.0.1? I get a "tlsv1 alert protocol version" error when trying to make get requests over https.
Stalkr_ has quit [Quit: Leaving...]
TorpedoSkyline has joined #ruby
tanmay_ has joined #ruby
tanmay__ has joined #ruby
<vosloco> Seemed to work fine until I updated openssl.
phansch has quit [Quit: WeeChat 0.4.3]
seanewest has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
seanewest has quit [Client Quit]
tjr9898__ has quit [Remote host closed the connection]
dodosan has joined #ruby
stantona has joined #ruby
sinkensabe has quit [Remote host closed the connection]
tjr9898__ has joined #ruby
sinkensabe has joined #ruby
mijicd has joined #ruby
hgl has quit [Ping timeout: 276 seconds]
jds has joined #ruby
aspiers_ has quit [Ping timeout: 252 seconds]
Rainicorn has quit [Read error: Connection reset by peer]
tanmay_ has quit [Ping timeout: 255 seconds]
LadyRainicorn has joined #ruby
tanmay__ has quit [Ping timeout: 264 seconds]
seanewest has joined #ruby
Kricir has joined #ruby
fgo has joined #ruby
<balazs> hi, can someone please show my an example with "combination" that uses a block of code ?
setra has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Ping timeout: 255 seconds]
speakingcode has joined #ruby
Rollabunna has joined #ruby
Morkel_ has joined #ruby
nszceta has joined #ruby
SCommette has quit [Quit: SCommette]
Eyes has joined #ruby
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
<vosloco> balazs: is this what you are looking for? http://www.ruby-doc.org/core-2.1.2/Array.html#method-i-combination
ramow has joined #ruby
sputnik13 has joined #ruby
<ramow> Hi, is there a simple way to get all the chars of the UTF-8 table in Ruby?
closer has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 260 seconds]
NivenHuH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hoelzro> ramow: I assume you mean all of the Unicode characters. What do you need them for?
ephemerian has quit [Quit: Leaving.]
kireevco has joined #ruby
anarang has quit [Quit: Leaving]
LadyRainicorn has quit [Ping timeout: 252 seconds]
<balazs> vosloco: that's what I was looking at, but all of those examples are the "combination(n) → Enumerator" type
closer has joined #ruby
dawkirst has joined #ruby
heftig has quit [Quit: Quitting]
Xeago has joined #ruby
SCommette has joined #ruby
tjr9898__ has quit [Remote host closed the connection]
<vosloco> balazs: Yeah, I guess you said "block" in your question.
akemrir has quit [Quit: WeeChat 0.4.3]
Takle has quit [Remote host closed the connection]
<C0deMaver1ck> would anyone be willing to go code review a small event library I wrote?
<C0deMaver1ck> My first time, don't want to be doing something stupid
danman has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
LadyRainicorn has joined #ruby
<C0deMaver1ck> only 25 loc
ikaros has joined #ruby
jhulten has quit [Remote host closed the connection]
<balazs> vosloco: so what is the use for the variable in the block ?
<balazs> for example "[ 'a', 'b', 'c', 'd' ].combination(2) { |n| n }" seems to return 1 long combinations
tvw has quit []
sambao21 has joined #ruby
ti-wali has joined #ruby
snath has joined #ruby
<vosloco> balazs: I have never used combination in a block. let me try it real quick.
voodoofish340 has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
jhass|off is now known as jhass
<davidcelis> >> [ 'a', 'b', 'c', 'd' ].combination(2) { |n| n }
<eval-in_> davidcelis => ["a", "b", "c", "d"] (https://eval.in/157905)
dangerousdave has joined #ruby
<davidcelis> >> [ 'a', 'b', 'c', 'd' ].combination(2) { |n| puts n }
<eval-in_> davidcelis => a ... (https://eval.in/157906)
lethe has joined #ruby
<davidcelis> cool.
JokesOnYou77 has quit [Quit: Ex-Chat]
mark_locklear has joined #ruby
learner has joined #ruby
Hobogrammer has joined #ruby
tanmay_ has joined #ruby
tanmay__ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
<balazs> I see, so the variable is one combination
sambao21 has quit [Ping timeout: 245 seconds]
obs has quit [Remote host closed the connection]
<vosloco> that looks to be a good example.
kaspergrubbe has joined #ruby
blackmesa has joined #ruby
<vosloco> I just ran it with irb like this [ 'a', 'b', 'c', 'd' ].combination(2) { |n| pp n }
deric_skibotn has joined #ruby
LadyRainicorn has quit [Ping timeout: 252 seconds]
<ramow> hoelzro: generate random string with utf8 chars
<balazs> gotcha, thanks.
sigurding has joined #ruby
workmad3 has joined #ruby
<hoelzro> ramow: well, what kind of characters? letters, numbers, printable?
lethe has quit [Ping timeout: 265 seconds]
Lucky__ has joined #ruby
<ramow> hoelzro: no matter
doev has quit [Ping timeout: 252 seconds]
<hoelzro> why not just generate random bytes, then?
<hoelzro> why Unicode characters?
tanmay__ has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
tanmay_ has quit [Ping timeout: 264 seconds]
lethjakman has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
alem0lars has joined #ruby
bluenemo has quit [Remote host closed the connection]
moritzschaefer has quit [Ping timeout: 276 seconds]
Rollabunna has quit [Remote host closed the connection]
xcv has joined #ruby
<ramow> hoelzro: i need to generate random utf8 strings for a parser's spec
alem0lars has quit [Read error: No route to host]
alem0lars has joined #ruby
anaeem1 has joined #ruby
finster has left #ruby [#ruby]
wallerdev has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<hoelzro> so you need sample data? or you are generating the strings each time the test runs?
toastynerd has joined #ruby
timgauthier has joined #ruby
<ramow> hoelzro: I generate the strings each time the test runs
anaeem1 has quit [Remote host closed the connection]
aneong has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<hoelzro> so these strings, are they just sample data for your parser?
maletor has joined #ruby
anaeem1_ has joined #ruby
<hoelzro> because depending on your parser, you'll almost definitely generate a failing input every time
<hoelzro> there are a lot of Unicode characters
<ramow> yep
<ramow> there are also sample datas but they need to be random
andrewjanssen has joined #ruby
subbyyy has quit [Ping timeout: 260 seconds]
timonv_ has quit [Remote host closed the connection]
mg^ has joined #ruby
bean has quit [Quit: bean]
davedev24_ has quit []
<hoelzro> well, you could just generate random numbers between 0 and the maximum Unicode codepoint
ringarin has quit [Quit: Leaving]
<hoelzro> and then check if it's valid, then convert that to a character
<hoelzro> and build strings out of that
<hoelzro> still sounds odd to me, though
b1205 has joined #ruby
aneong has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 252 seconds]
Megtastique has joined #ruby
duggiefresh has quit [Remote host closed the connection]
rghose1 has quit [Ping timeout: 252 seconds]
LadyRainicorn has joined #ruby
kaspergrubbe has joined #ruby
jxf has joined #ruby
JPascal has joined #ruby
alvaro_o has joined #ruby
moritzschaefer has joined #ruby
ta has quit [Remote host closed the connection]
ryanleesipes has joined #ruby
dwts has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
maximski has quit []
lyanchih has quit [Ping timeout: 240 seconds]
tacos1de has quit [Remote host closed the connection]
Ankhers has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
tacos1de has joined #ruby
Ankhers has joined #ruby
grizzles has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
blackmesa has joined #ruby
fgo has joined #ruby
pasties has joined #ruby
endash has joined #ruby
Notte has quit [Remote host closed the connection]
postmodern has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
einarj has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 252 seconds]
anaeem1_ has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
SBoolean_ has quit [Ping timeout: 260 seconds]
hermanmunster has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
Notte has joined #ruby
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
jhulten has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
armyriad has quit [Read error: Connection reset by peer]
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
timonv has joined #ruby
s3ri0us has joined #ruby
carraroj has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
meatherly has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
ta has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Notte has quit [Ping timeout: 276 seconds]
<vosloco> Anyone know much about how ruby uses openssl?
stantona has joined #ruby
armyriad has joined #ruby
brandonjmckay has joined #ruby
lolmaus has joined #ruby
<vosloco> I am having a problem with the restclient gem now that I upgraded to openssl 1.0.1.
j_mcnally has quit [Remote host closed the connection]
kirun has joined #ruby
akonny has joined #ruby
JPascal has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramow has quit [Quit: Page closed]
s3ri0us has quit [Read error: Connection reset by peer]
vpretzel|optomca has quit [Read error: Connection reset by peer]
meatherl_ has joined #ruby
anaeem1_ has joined #ruby
stantona has quit [Ping timeout: 252 seconds]
ponga has quit [Read error: Connection reset by peer]
<segfalt> vosloco: What do you mean how? It's linked against your system openssl lib.
ponga has joined #ruby
<vosloco> I get a "tlsv1 alert protocol version" error when trying to make get requests over https.
rayners has quit [Ping timeout: 276 seconds]
<vosloco> segfalt: here is the full error. OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version
<rurban_> Because tlsv1 is too old?
goleldar has joined #ruby
<vosloco> so why is it trying to use it?
toretore has quit [Read error: Connection reset by peer]
<rurban_> You are using SSLv3 and the other party is TLSv1 which is too insecure to be used
maximski has joined #ruby
vpretzel|optomca has joined #ruby
<vosloco> would that show up in the ssl cert info?
shredding has quit [Quit: shredding]
lw has quit [Quit: s]
bean has joined #ruby
klaut has quit [Remote host closed the connection]
chrisseaton has quit []
ffranz has quit [Quit: Leaving]
subbyyy has joined #ruby
lw has joined #ruby
<rurban_> The issue is actually with certain SSLv3 servers that don't understand the TLSv1.1 handshake and are closing the connection. This unfortunately can't be fixed on the client without disabling TLSv1.1, or forcing an SSLv3 connection.
<balazs> Having a brainfart; what's an elegant way of creating an array with 1 .. 10000 in it ?
<workmad3> balazs: (1..10000).to_a
duggiefresh has joined #ruby
<balazs> thanks
GriffinHeart has joined #ruby
<jhass> depending on your usecase you might be able to avoid the .to_a and thus the allocation even
<workmad3> balazs: although you might be able to deal with just the range 1..10000, depending on what you need it for ;)
<workmad3> Qheh
<rurban_> I was wrong, the SSLv3 is too old for TLS v1.1
robertodecurnex has quit [Ping timeout: 252 seconds]
Hobogrammer has quit [Ping timeout: 255 seconds]
anon_911 has joined #ruby
nszceta has quit []
SilverKey has joined #ruby
<balazs> workmad3: thanks !
<vosloco> So it is the other way around. the server I am connecting to is using sslv3 and I am using TLS v1.1
djbkd has joined #ruby
ffranz has joined #ruby
reset has joined #ruby
bthesorceror has quit []
<vosloco> rurban? is that what you are saying?
Spami has joined #ruby
djbkd has quit [Remote host closed the connection]
rippa has joined #ruby
wallerdev has joined #ruby
djbkd has joined #ruby
JPascal has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
AlSquire has quit [Ping timeout: 252 seconds]
seanewest has quit [Quit: seanewest]
timonv has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
terrell_t has joined #ruby
terrell_t has quit [Read error: Connection reset by peer]
andrewjanssen has quit [Quit: Leaving...]
sinkensabe has joined #ruby
terrell_t has joined #ruby
timonv has joined #ruby
saarinen has joined #ruby
tris has joined #ruby
DouweM has quit [Ping timeout: 252 seconds]
phansch has joined #ruby
andrewjanssen has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
terrell_t has quit [Remote host closed the connection]
dseitz has joined #ruby
terrellt has quit [Ping timeout: 252 seconds]
relix has joined #ruby
terrell_t has joined #ruby
ixti has quit [Ping timeout: 276 seconds]
Azure has quit [Quit: Blue Sky Fish]
tylersmith has joined #ruby
stantona has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
workmad3 is now known as wm3|away
vpretzel_ has joined #ruby
danijoo has joined #ruby
terrell_t has quit [Read error: Connection reset by peer]
St_Marx has joined #ruby
terrellt has joined #ruby
tectonic has joined #ruby
terrellt has quit [Remote host closed the connection]
toretore has joined #ruby
Takle_ has joined #ruby
vpretzel|optomca has quit [Ping timeout: 264 seconds]
alem0lars has quit [Quit: alem0lars]
wm3|away has quit [Ping timeout: 240 seconds]
kilk__ has quit [Quit: Leaving]
chrisseaton has joined #ruby
duggiefresh has quit []
duggiefresh has joined #ruby
timfoo has quit [Ping timeout: 260 seconds]
timfoo has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 265 seconds]
paulfm has joined #ruby
vpretzel_ is now known as vpretzel|opto
silkfox has quit [Ping timeout: 264 seconds]
Morkel has quit [Ping timeout: 252 seconds]
Hobogrammer_ has joined #ruby
danshultz has quit [Remote host closed the connection]
datafirm has joined #ruby
norm has joined #ruby
<norm> is there any reason i can't override / monkeypatch Timeout.timeout?
danshultz has joined #ruby
Morkel has joined #ruby
datafirm has quit [Remote host closed the connection]
danshultz has quit [Read error: Connection reset by peer]
SBoolean has joined #ruby
atmosx has joined #ruby
datafirm has joined #ruby
b1205 has quit [Quit: leaving]
<norm> nevermind, got it
mikecmpbll has joined #ruby
<jhass> Note that Timeout.timeout is inherently thread unsafe
<norm> yeah
happytux has joined #ruby
<happytux> hi
<happytux> hi
danshultz has joined #ruby
carlyle has joined #ruby
shevy has joined #ruby
rezzack has quit [Quit: Leaving.]
havenwood has joined #ruby
top4o has quit [Ping timeout: 240 seconds]
predator117 has quit [Ping timeout: 245 seconds]
blueOxigen has joined #ruby
Wolland has joined #ruby
silkfox has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
predator117 has joined #ruby
elaptics is now known as elaptics`away
mrsolo has joined #ruby
Megtastique has quit []
tectonic has quit []
ponga has quit []
davedev24_ has joined #ruby
nanoyak has joined #ruby
mrsolo has left #ruby [#ruby]
timonv has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
<shwouchk> Hello
Takle has joined #ruby
sinkensabe has joined #ruby
setra has joined #ruby
<jhass> hi
Takle_ has quit [Ping timeout: 252 seconds]
TMM has joined #ruby
Spaceghostc2c is now known as pipework
Ankhers has quit [Remote host closed the connection]
ta has quit [Ping timeout: 245 seconds]
<TMM> hi! does anyone know of any decent Ruby courses in English in The Netherlands (preferably around Amsterdam)?
vifino has joined #ruby
akonny has quit [Quit: akonny]
brunops_ has joined #ruby
sinkensabe has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
brunops has quit [Ping timeout: 252 seconds]
seanewest has joined #ruby
elaptics`away is now known as elaptics
carraroj has quit [Ping timeout: 252 seconds]
<dRbiG> is CSV working for anybody within pry session?
pasties has quit [Ping timeout: 245 seconds]
<jhass> pretty sure it is
<dRbiG> i'm getting '(pry) output error: #<NoMethodError: undefined method `table' for #<Object:0x00000001044600>>' while trying CSV.table
<dRbiG> which works just fine within irb :S
<shwouchk> In a certain project directory (octopress) , runnint 'rake' gives an error about libyaml and missing psych. part of the error message is as follows: dlopen(/Users/kosta/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/psych.bundle, 9): Library not loaded: /usr/local/lib/libyaml-0.2.dylib -- now, it seems weird that ruby-2.1.1 would have ruby-2.1.0 subdirs - is this normal or did something bad happen with my installation? in
<shwouchk> addition, why is it looking for libyaml-0.2? I don't have that version (only 0.16) in either of macports or homebrew?
tylersmith has quit []
banjara has joined #ruby
<jhass> shwouchk: the 2.1.0 in the paths is the ABI version, not the Ruby version
dwts has joined #ruby
meatherl_ has quit [Remote host closed the connection]
<shwouchk> jhass: ABI?
carlyle has quit [Quit: Leaving...]
nanoyak has quit [Quit: Computer has gone to sleep.]
<jhass> application binary interface, basically the C API version
fgo has quit [Ping timeout: 264 seconds]
<shwouchk> aha
<shwouchk> jhass: ah, ruby changes the C core only in major-minor versions?
nszceta has joined #ruby
Wolland has quit []
<Hanmac1> shwouchk: ruby stdlib has yaml stuff but it needs libyaml for that ... there is a reason why a recent paket-management is better than osx-shit
Hanmac1 is now known as Hanmac
<jhass> shwouchk: I guess only as needed but not in patch releases
ta has joined #ruby
<dRbiG> jhass: maybe I have some plugin that breaks something somewhere then :S
Megtastique has joined #ruby
<jhass> yep, would be my guess too
<Hanmac> dRbiG: ruby version?
<jhass> dRbiG: anything for `$ CSV` ?
sk87 has joined #ruby
doev has joined #ruby
<eam> shwouchk: the libyaml version is the SONAME, not the version
<dRbiG> it's one of the plugins; i've disabled all and now CSV works fine
<Hanmac> banister: see? pry is breaking csv ;P
<shwouchk> Hanmac1: well, I'm using the OS I'm using, no point in calling it crap (perhaps it is, but so is windows, together taking >90% of the desktop OS marketshare), since it doesn't get us anywhere
<shwouchk> jhass: I see
mijicd has quit [Remote host closed the connection]
ari-_-e has quit [Quit: Leaving]
yfeldblum has joined #ruby
sk87 has quit [Client Quit]
<shwouchk> eam: oh.
terrellt has joined #ruby
Lucky__ has quit [Read error: Connection reset by peer]
<dRbiG> ok, seems it's a problem with awesome_print
ponga has joined #ruby
<eam> shwouchk: I imagine brew info libyaml will show you 0.1.6? But it'll be SONAME=libyaml-0.2
yfeldblu_ has joined #ruby
dangerou_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
TMM has left #ruby ["Ex-Chat"]
<shwouchk> eam: how to check the soname, other than finding the .so files?
<shwouchk> eam: regardless, I have libyaml installed by ports, although I can't find it where rake claims it should be..
anon_911 has quit [Ping timeout: 240 seconds]
<eam> shwouchk: I'm a little rough on OSX's dynamic linker, but ultimately there's a linker path where an object asks for an object by name "libyaml-0.2" and it's not finding it
rdark has quit [Quit: leaving]
<eam> in linux that'd be readelf -d to look at the dynamic bits
x1337807x has joined #ruby
<eam> probably otool for osx? But I'm not clear on the details
dangerousdave has quit [Ping timeout: 240 seconds]
McFreely has joined #ruby
<eam> not sure what ldconfig -v
qwyeth has quit [Remote host closed the connection]
<eam> is on osx, but that may help if you can find it
<shevy> shwouchk don't worry, Hanmac uses ubuntu, which is even worse than osx
<Hanmac> shwouchk: i mean an recent package system (i dont know if brew is good enough i used mac-ports) would install all depencies if you like install ruby, it would install yaml in the correct version for you too
carlyle has joined #ruby
ta has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
terrellt has quit [Ping timeout: 260 seconds]
<Hanmac> shevy: hm but when i say "apt-get build-dep ruby" it does install all i need to build ruby myself
terrellt has joined #ruby
<shevy> can you specify the version?
top4o has joined #ruby
Lucky__ has joined #ruby
top4o has quit [Client Quit]
<shevy> hmmm
<shevy> why are there 3 sha1's?
<shevy> sha1 "25a60fa0c77710616018e9b5b013916579147338" => :mavericks
<shevy> sha1 "311062934d4bd12ef9881f568dbca21d22bbc8c6" => :mountain_lion
Ankhers has joined #ruby
mehlah has quit [Quit: Leaving...]
akonny has joined #ruby
r0ast has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgrevich has quit [Quit: ZNC - http://znc.in]
yfeldblu_ has quit [Remote host closed the connection]
<shwouchk> ok, thanks everyone
blueOxigen has quit [Ping timeout: 252 seconds]
<shwouchk> turns out I accidentally uninstalled a brew installed libyaml when I thought that nothing depended on it. Then when the error came, I installed the ports version which put it in another place
marr has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
r0ast has quit [Client Quit]
<shwouchk> I don't know why ruby didn't just recognize the other version (since the package version and soname are the same), but reinstalling the brew version instead of the ports one fixed the problem
<eam> shwouchk: I just did some looking, I think OSX may not have search paths at all
<eam> check out dyld(1) "DYNAMIC LIBRARY LOADING"
ta has joined #ruby
<eam> apparently every library reference is to a fully qualified path
atmosx has quit [Quit: Lost in trance]
yfeldblu_ has joined #ruby
ikaros has quit [Quit: Ex-Chat]
shevy has quit [Quit: ""]
sambao21 has quit [Quit: Computer has gone to sleep.]
mehlah has joined #ruby
havenwood has quit [Remote host closed the connection]
Ankhers has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
sambao21 has joined #ruby
havenwood has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
djbkd has quit [Remote host closed the connection]
<shwouchk> eam: oh, I see...
akonny has quit [Quit: akonny]
ta has quit [Remote host closed the connection]
djbkd has joined #ruby
<shwouchk> eam: so probably if I installed ruby from homebrew, it has to work with whatever libs from homebrew, and if I built it by hand, it has to work with the same paths forever... Thats why the rake message told me to rebuild it! thanks!
seanewest has quit [Quit: seanewest]
benlieb has joined #ruby
saarinen has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
lkba has joined #ruby
happytux has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
paulfm_ has joined #ruby
dangerousdave has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
nszceta has quit [Read error: Connection reset by peer]
dfinly has joined #ruby
nszceta has joined #ruby
noop has joined #ruby
paulfm has quit [Ping timeout: 276 seconds]
nanoyak has joined #ruby
Arkaniad has joined #ruby
McFreely has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
nanoyak has quit [Client Quit]
McFreely has joined #ruby
pietr0 has joined #ruby
nanoyak has joined #ruby
shevy has quit [Client Quit]
pwh has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
sheperson has joined #ruby
brunops_ is now known as brunops
wm3|away has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
wm3|away has quit [Client Quit]
testcore has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
testcore has quit [Quit: [BX] BitchX is as BitchX does]
andrewjanssen has quit [Ping timeout: 255 seconds]
shermablanca has joined #ruby
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
echevemaster has joined #ruby
<shermablanca> hello
aneong has joined #ruby
testcore has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
silkfox has quit [Ping timeout: 240 seconds]
frem_ has joined #ruby
shevy has joined #ruby
<shermablanca> anyone have experience with sunspot solr
tjr9898_ has quit [Ping timeout: 252 seconds]
maximski has quit [Ping timeout: 252 seconds]
tectonic has joined #ruby
andrewjanssen has joined #ruby
maximski has joined #ruby
jonno11 has joined #ruby
nanoyak has joined #ruby
skane has joined #ruby
Emmanuel_Chanel has joined #ruby
nanoyak has quit [Client Quit]
jackneill has joined #ruby
theman11 has joined #ruby
hermanmunster has joined #ruby
theman11 has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
shevy has quit [Remote host closed the connection]
chrisseaton has quit []
nanoyak has joined #ruby
Squarepy has quit [Quit: Leaving]
Gil has joined #ruby
Gil has quit [Remote host closed the connection]
Gil has joined #ruby
nanoyak has quit [Client Quit]
sambao21 has joined #ruby
treehug88 has quit [Ping timeout: 252 seconds]
treehug8_ has joined #ruby
hermanmunster has quit [Ping timeout: 252 seconds]
brain_shim has joined #ruby
hashbangchris has joined #ruby
saarinen has quit [Quit: saarinen]
moritzschaefer has quit [Ping timeout: 252 seconds]
chrisseaton has joined #ruby
fgo has joined #ruby
heftig has joined #ruby
nanoyak has joined #ruby
vpretzel|opto is now known as vpretzel
fgo has quit [Ping timeout: 255 seconds]
nanoyak has quit [Client Quit]
aneong has left #ruby [#ruby]
jheg_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
dangerousdave has quit [Read error: Connection reset by peer]
ExceptionlCatch has joined #ruby
dangerou_ has joined #ruby
chrisseaton has quit []
dangerou_ has quit [Max SendQ exceeded]
dangerousdave has joined #ruby
x1337807x has joined #ruby
ta has joined #ruby
<ExceptionlCatch> i'm using ruby's net/imap and its working great, i am just really confused over the idle() method
Rahul_Roy has joined #ruby
<ExceptionlCatch> i can't seem to call any imap methods from within it
endash has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
endash has joined #ruby
chrisseaton has joined #ruby
GriffinHeart has joined #ruby
wallerdev has joined #ruby
<Morrolan> Idle will probably block until the server receives a new message.
claymore has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
nszceta has quit []
yfeldblu_ has quit [Remote host closed the connection]
saarinen has joined #ruby
<ExceptionlCatch> Morrolan: yep i don't mind the blocking, it waits, until a new email arrives and then responds with the messageID, but when i imap.fetch(messageID) then it reports a deadlock
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Ping timeout: 240 seconds]
<Morrolan> Oh, I see.
sinkensabe has joined #ruby
Notte has joined #ruby
nanoyak has joined #ruby
saarinen has quit [Client Quit]
tjr9898_ has joined #ruby
klaut has joined #ruby
<ExceptionlCatch> and i haven't created any threads in my script, but i'm starting to think that i should pass the messageIDs out of idle
<ExceptionlCatch> to elsewhere and then process them
nanoyak has quit [Client Quit]
IceDragon has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
LACP has quit [Ping timeout: 240 seconds]
jeregrine_ has joined #ruby
rampert has quit [Remote host closed the connection]
vali has quit [Ping timeout: 240 seconds]
jonno11 has quit [Read error: Connection reset by peer]
dangerousdave has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 240 seconds]
stnly has quit [Ping timeout: 252 seconds]
sivoais has joined #ruby
LACP has joined #ruby
jonno11 has joined #ruby
stnly has joined #ruby
sheperson_ has joined #ruby
renderful has quit [Remote host closed the connection]
vali has joined #ruby
sheperson has quit [Ping timeout: 260 seconds]
sheperson_ is now known as sheperson
mercerist has joined #ruby
heftig has quit [Quit: Quitting]
SilverKey has quit [Quit: Cheerio!]
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
havenwood has quit [Ping timeout: 272 seconds]
JPascal has quit [Quit: Textual IRC Client: www.textualapp.com]
bean has quit [Quit: bean]
claymore has joined #ruby
dawkirst has quit [Quit: Leaving...]
mary5030 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
sheperson has quit [Ping timeout: 264 seconds]
JPascal has joined #ruby
banister has joined #ruby
seanewest has joined #ruby
paulfm has joined #ruby
yfeldblum has joined #ruby
paulfm_ has quit [Read error: Connection reset by peer]
markmarkmark has joined #ruby
djbkd has joined #ruby
sheperson has joined #ruby
SCommette has quit [Quit: SCommette]
marr has joined #ruby
endash has quit [Read error: Connection reset by peer]
endash has joined #ruby
end_guy has quit [Read error: Connection reset by peer]
sptx00 has quit [Remote host closed the connection]
testcore has quit [Write error: Connection reset by peer]
tacos1de has quit [Write error: Connection reset by peer]
Lutece has quit [Write error: Connection reset by peer]
end_guy has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
SCommette has joined #ruby
sptx00 has joined #ruby
ferr has joined #ruby
akemrir has joined #ruby
Lutece has joined #ruby
mailo has quit [Quit: Leaving...]
happytux_ has joined #ruby
<happytux_> hi
<happytux_> So I want to write a lengthy command in a Rakefile (system('...')) in multiple lines.
<happytux_> Currently I do this by concatenating the strings for each line so there is no extra indentation/space.
timonv has quit [Remote host closed the connection]
<happytux_> Is there a more elegant approach? I also have to comment some lines of the command.
toastynerd has quit [Remote host closed the connection]
<jhass> why don't you use the multiple arguments form?
Takle_ has joined #ruby
mary5030 has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
testcore has joined #ruby
mary5030 has quit [Remote host closed the connection]
hashbangchris has quit [Quit: mt]
tacos1de has joined #ruby
<jhass> system('/usr/bin/something',[enter]'first_arg',[enter]....
danshultz has quit [Remote host closed the connection]
mary5030 has joined #ruby
Hawk555 has joined #ruby
shermablanca has quit [Remote host closed the connection]
freeone3000 has joined #ruby
danshultz has joined #ruby
ylluminate has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
subbyyy has joined #ruby
tectonic has quit []
neoice has joined #ruby
aspires has quit []
<Hawk555> is there a channel for the twitter gem?
dfinly has quit [Quit: Farewell]
SilverKey has joined #ruby
<centrx> system('command', *args)
SJr has joined #ruby
rezzack has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
klaut has quit [Ping timeout: 276 seconds]
<happytux_> jhass: oh nice
ylluminate has quit [Client Quit]
<happytux_> thanks
<happytux_> OK, another issue now
<happytux_> The CI::Reporter::RSpec formatter uses the deprecated formatter interface not supported directly by RSpec 3. To continue to use this formatter you must install the `rspec-legacy_formatters` gem, which provides support for legacy formatters or upgrade the formatter to a compatible version. Formatter added at: [...]/vendor/bundle/ruby/1.9.1/gems/rspec-core-3.0.0/exe/rspec:4:in `<main>'
klaut has joined #ruby
JPascal has quit [Quit: Textual IRC Client: www.textualapp.com]
oso96_2000 is now known as oso|away
JPascal has joined #ruby
klaut_ has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
<happytux_> Suddenly I get this nice scary message. All major/minor versions are locked, just the patch version is not locked. I guess they changed something in RSpec between two patch versions which significantly changes behaviour. This shouldn't happen...
Demerzel has joined #ruby
noop has quit [Ping timeout: 252 seconds]
gattuso has quit [Ping timeout: 260 seconds]
<Demerzel> howdy folks!
<^conner> I've got an odd rspec issue... I can run bundle exec rspec and it works fine with a single spec, if I add a second spec file, I can run either one directly with bunlde exec rspec <./spec/<filename> but if I run just bundle exec rspec, I get an odd error
<happytux_> So I added that legacy gem and it is installed, but I still get this damn message and the task fails.
benzrf is now known as benzrf|offline
aspires has joined #ruby
<happytux_> ^conner: What kind of odd error?
<Demerzel> can someone help me see the error of my ways in this operator overloading example? https://gist.github.com/sjaveed/8e7b4b1ac99b9ed2b6cc
<^conner> which looks to me like it's striping the leading '.' off one of the spec files cannot load such file -- /spec/hyperctl_sysfs_spec.rb (LoadError)
<^conner> happytux_, ^
oo_ has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
vt102 has joined #ruby
maletor has joined #ruby
Notte has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 240 seconds]
LnL has joined #ruby
<jhass> Demerzel: well, what error message do you get?
<^conner> happytux_, I thought it might have something to do with rspec-core 3, so I downgraded to 2.99 and it still does it... I'm scratching my head
<Demerzel> @jhass sorry just realized i'd left that out of the gist - added the results of using the class
klaut has quit [Ping timeout: 276 seconds]
mark_locklear has joined #ruby
<jhass> Demerzel: .dup, by default does a shallow copy
<Demerzel> @jhass basically if I add two Money objects to give a third, I get the right result in the third but the first Money object gets unexpectedly changed
<Demerzel> @jhass I've tried it with clone but same result
<Demerzel> also this is ruby 2.1.2
<jhass> .clone by default too gives a shallow copy
Squarepy has joined #ruby
<Demerzel> ah
<Demerzel> ok
Takle_ has quit [Ping timeout: 264 seconds]
<Demerzel> that explains it
<jhass> you can for example implement the initialize_copy method
LnL has left #ruby [#ruby]
claymore has quit [Ping timeout: 255 seconds]
gattuso has joined #ruby
moritzschaefer has joined #ruby
claymore has joined #ruby
j_mcnally has joined #ruby
banjara has quit [Quit: Leaving.]
<^conner> happytux_, I think I see the problem... I think loading fakefs in one spec file is messing up the other
<Demerzel> @jhass that initialize_copy method looks to be money ... forgive the pun
beneggett has quit [Ping timeout: 252 seconds]
cpruitt has quit [Quit: cpruitt]
sambao21 has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
subbyyy has joined #ruby
<happytux_> ^conner: both got the same task name?
coderhs has joined #ruby
skane has quit [Quit: skane]
sambao21 has joined #ruby
<^conner> happytux_, I think rspec literally can not load the second spec file because it's getting the fakefs view of the filesystem
<Demerzel> @jhass looks like initialize_copy is the underlying method that dup will use but clone is meant to be overridden
<jhass> the default implementation of clone calls it too though
<Demerzel> @jhass just read about Marshal dump/load to do a deep copy too
<jhass> well, the default implementations of initialize_dup and initialize_clone do iirc ;)
stantona has quit [Remote host closed the connection]
<Demerzel> @jhass very cool - thank you kind sir, you are a scholar and a gentleman
stantona has joined #ruby
tectonic has joined #ruby
DEA7TH has joined #ruby
Lutece has quit [Quit: WeeChat 0.4.3]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Client Quit]
<DEA7TH> I want to use this method: http://apidock.com/rails/Array/in_groups
<DEA7TH> But apparently, it's part of Rails, rather than just core Ruby
<DEA7TH> so I require'd a bunch of Rails stuff, including ActiveRecord, but it still doesn't work
JPascal has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Shidash has joined #ruby
<DEA7TH> how do I use it in a standalone .rb script, which isn't otherwise associated with Rails or web applications?
pwh has quit []
shermablanca has joined #ruby
<happytux_> ^conner: you could enforce a task dependency so that the task comes before the fakefs view. Isn't there a more elegant way for the fakefs? Some kind of reference which can be passed to a system invocation instead setting this globally?
sheperson has quit [Ping timeout: 252 seconds]
<freeone3000> DEA7TH: It looks like it's an Array mixin, you could just add it in.
<Demerzel> DEA7TH: re-open Array in your script and stick the source of this method there
<jhass> DEA7TH: it's part of ActiveSupport, active_support/core_ext/array/grouping.rb
locriani has quit [Quit: Leaving...]
toastynerd has joined #ruby
<^conner> happytux_, that sort of defeats the purpose of mocking the entire filesystem...
<^conner> happytux_, I'm testing code that messes with sysfs
<jhass> DEA7TH: do you need the fill with feature though?
bean has joined #ruby
<DEA7TH> fill with?
<^conner> happytux_, and I'm trying to use shared_context to setup various different sysfs trees that reflect different (real) hardware states
<jhass> DEA7TH: look at the docs you linked
freeone3000 has left #ruby ["Konversation terminated!"]
<DEA7TH> Demerzel: Is there a more elegant way? can I just import it
fgo has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DEA7TH> jhass: I don't think so. I just need to implement mergesort, so I need to split an array into two equal parts and minimize boilerplate in the process of doing that.
SBoolean has quit [Ping timeout: 260 seconds]
mercerist has joined #ruby
benzrf|offline is now known as benzrf
pwh has joined #ruby
<DEA7TH> so basically I need: [1,2,3,4,5] -> [[1,2], [3,4,5]]
Hanmac1 has joined #ruby
<jhass> well, I'd just def split(array); mid = array.size/2; [array[0...mid], array[mid..-1]]; end; and a, b = split array
wallerdev has quit [Quit: wallerdev]
nanoyak has joined #ruby
<DEA7TH> yeah I know, but I'd like to use the in_groups method if possible
bitsandbooks has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
<jhass> (21:33:50) jhass: DEA7TH: it's part of ActiveSupport, active_support/core_ext/array/grouping.rb then
timonv has joined #ruby
<DEA7TH> also I did require 'active_support' and it still didn't work
fgo has quit [Ping timeout: 240 seconds]
LnL has joined #ruby
nanoyak has quit [Max SendQ exceeded]
<DEA7TH> Ah
LnL has left #ruby [#ruby]
<DEA7TH> I required the full path and now it works! :)
LnL has joined #ruby
<jhass> note that that method fills with nils by default
nanoyak has joined #ruby
<DEA7TH> (i.e. require 'active_support/core_ext/array/grouping.rb')
<jhass> you can strip the .rb
SBoolean has joined #ruby
<DEA7TH> yeah, if it doesn't work I'll reimplement it. I mainly wanted to learn how to cope with that category of problem/.
sinkensabe has quit [Remote host closed the connection]
<^conner> happytux_, it looks like it's a method scoping issue with the shared_contexts being in another file... unless I load fakefs unviersally I seem to be seeing the un-monkeypatch core methods
alem0lars has joined #ruby
setra has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
<^conner> happytux_, anyways... this is definitely my own doing... not the rspec-core 3.0.0 upgrade
dingus_khan has joined #ruby
lethe has joined #ruby
jhulten_ has joined #ruby
jhulten has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
danshultz has quit [Remote host closed the connection]
Azure has joined #ruby
danshultz has joined #ruby
claymore has joined #ruby
elaptics is now known as elaptics`away
pixie79 has joined #ruby
yfeldblum has joined #ruby
lethe has quit [Ping timeout: 255 seconds]
tectonic has quit []
eka has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 276 seconds]
shinobi_one has joined #ruby
eka has joined #ruby
<pixie79> Hi all, I have the following array, ["name", "rm", "ip", "127.0.0.1", "port", "6379", "name", "rz", "ip", "127.0.0.1", "port", "6379"]. What is the best way to change this into an array of hashes, i.e 0=>name='rm', 0=>ip='127.0.0.1', 1=>name='rz'
djbkd has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 252 seconds]
rostam has quit [Remote host closed the connection]
FL1SK has quit [Ping timeout: 276 seconds]
rostam has joined #ruby
Hanmac has joined #ruby
pablo_ has joined #ruby
<eam> a frequently asked question!
flExxiz has joined #ruby
<pixie79> I am not sure how to a convert ["name", "rm"] to be a key pair i.e key=name value=rm but also split at name to make each new hash
<pixie79> i guessed so
<flExxiz> Dutch people here ?
timonv has quit [Remote host closed the connection]
<pixie79> i did a google search but could not frame the question right to find the answer i was after
decoponio has quit [Quit: Leaving...]
Hanmac1 has quit [Ping timeout: 245 seconds]
ctp has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
benlieb has quit [Ping timeout: 255 seconds]
pabloh has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
banjara has joined #ruby
|RicharD| has joined #ruby
<|RicharD|> hi I have a number like this: => 1.754524762469491e-05
<|RicharD|> How I can show with the corrects 0 before ?
toastynerd has joined #ruby
carraroj has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.3]
aneong has joined #ruby
Takle has joined #ruby
jonno11 has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
yorik19841 has joined #ruby
banjara has quit [Ping timeout: 240 seconds]
VinDoKi has joined #ruby
bitsandbooks has quit [Quit: My laptop has gone to sleep. Zzzzzz…]
yorik19841 has left #ruby [#ruby]
bitsandbooks has joined #ruby
lemur has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bitsandbooks has quit [Max SendQ exceeded]
cpruitt has joined #ruby
paulfm has quit []
bitsandbooks has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
bitsandbooks has quit [Max SendQ exceeded]
doev has quit [Quit: Verlassend]
bitsandbooks has joined #ruby
<pixie79> ok - i managed the first part, my array items now make a key/value pair but i need to take each set in to their own group - https://gist.github.com/pixie79/5e97ad7f8ae0c01eb5fc
benlieb has joined #ruby
ExceptionlCatch has left #ruby [#ruby]
<pixie79> at the moment h['name'] only has the second value as the first was over written, instead i think i need h['item'][0]['name']
renderful has joined #ruby
andrewjanssen has joined #ruby
nszceta has joined #ruby
saarinen has joined #ruby
paulfm has joined #ruby
maestrojed has joined #ruby
lemur has quit [Ping timeout: 252 seconds]
benzrf is now known as benzrf|offline
sheperson has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
ferr has quit [Quit: Lost terminal]
aspires has quit []
<ponga> hi centrx
<centrx> Cowabunga cowaponga!
<jhass> |RicharD|: String#% or Kernel#sprintf
<ponga> i like your rhyme
<pixie79> thanks
<|RicharD|> example with String#% ?
<jhass> >> "%.10f" % 1.754524762469491e-05 # |RicharD|
<eval-in_> jhass => "0.0000175452" (https://eval.in/157969)
dhaivat has joined #ruby
<|RicharD|> thank you
<ponga> centrx: is your speech bot built in ruby
<ponga> i saw you spitting random combinations of words
<centrx> That's outrageous!
nszceta_ has joined #ruby
<centrx> Maldonado homey's parameter's corkscrew.
<centrx> That's a serious insult
<centrx> Ted Letterman's pot, eccentricity's locksmiths.
<ponga> centrx i really hope that sentence was run by a script, not your hand
<jhass> ponga: ask him what he thinks of PHP
sheperson has quit [Quit: sheperson]
nszceta has quit [Ping timeout: 240 seconds]
<centrx> PHP is an abomination and a scourge on the face of the broadcasters entwining furnace's.
hashbangchris has joined #ruby
<ponga> jhass: i loved that but is that automated all the time?
sambao21 has joined #ruby
<jhass> I think there's a threshold on it
jheg_ has quit [Ping timeout: 252 seconds]
<jhass> like not more than once in 6 hours or so
<ponga> hmm
<ponga> so he reacts like that with word 'PHP ' printed in channel?
vali has quit [Ping timeout: 240 seconds]
<ponga> interesting
locriani has joined #ruby
<jhass> seems so
oso|away has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
sigurding has quit [Ping timeout: 265 seconds]
<ponga> and his random word spitting, i wonder if that's automated too
<ponga> i saw him doing that in other channel too..
tjr9898_ has joined #ruby
wallerdev has joined #ruby
shermablanca has quit []
shermablanca has joined #ruby
aneong has left #ruby [#ruby]
mercerist has quit [Quit: Computer has gone to sleep.]
jheg has joined #ruby
danshultz has joined #ruby
sivoais has quit [Ping timeout: 260 seconds]
sambao21 has quit [Client Quit]
stnly has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
timonv has quit [Remote host closed the connection]
hermanmunster has joined #ruby
jackneill has quit [Remote host closed the connection]
LACP has quit [Ping timeout: 240 seconds]
aspiers_ has joined #ruby
nszceta has joined #ruby
nszceta_ has quit [Read error: Connection reset by peer]
tjr9898_ has quit [Ping timeout: 276 seconds]
hashbangchris has quit [Quit: mt]
sigurding has joined #ruby
coffeina has joined #ruby
tjr9898_ has joined #ruby
hermanmunster has quit [Ping timeout: 252 seconds]
TorpedoSkyline has quit [Ping timeout: 240 seconds]
bitsandbooks has quit [Quit: Goodbye!]
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
sheperson has joined #ruby
renderful has quit [Quit: Leaving...]
frem_ has quit [Ping timeout: 276 seconds]
TorpedoSkyline has joined #ruby
<Demerzel> got another question - this time dealing with yield
sambao21 has joined #ruby
terrell_t has joined #ruby
<Demerzel> most examples i've seen online seem to deal with single variable yields - i'm trying multi-variable yield like so: https://gist.github.com/sjaveed/8e7b4b1ac99b9ed2b6cc
Azure has quit [Quit: My MBP went to sleep.]
dseitz has quit [Quit: out]
wald0 has quit [Quit: Lost terminal]
<Demerzel> i've noticed if i yield(var1, var2) i have to consume them in my block in the reverse order - i want to make sure this is expected behavior and not a side-effect
<Demerzel> the gist shows this in money.rb#23 for the yield statement and test-money.rb#9 for the usage
<wallerdev> they should come in order
dhaivat has quit [Quit: dhaivat]
<jhass> >> def foo; yield :a, :b; end; foo {|a, b| p a, b }
<eval-in_> jhass => :a ... (https://eval.in/157973)
<jhass> sounds like your testing is flawed
yalue has quit [Quit: Leaving]
<Demerzel> hmmm
jprovazn has quit [Quit: Odcházím]
<Demerzel> ok i'll dig deeper
<Demerzel> it didn't feel right either
<wallerdev> yeah i see the issue
<jhass> self.wad.each {|amount, currency
<wallerdev> keys come before values with each
<wallerdev> and currency is the key
<Demerzel> oh crap
<Demerzel> wallerdev: thanks! i can't believe it was such a silly mistake
<wallerdev> happens to everyone haha
terrellt has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
<Demerzel> wallerdev: tip o' the hat to you, good sir!
* wallerdev tips fedora
<wallerdev> lol
<Demerzel> :-)
chipotle has quit [Client Quit]
benzrf|offline is now known as benzrf
Loaft has joined #ruby
sigurding has quit [Quit: sigurding]
saarinen has quit [Quit: saarinen]
GriffinHeart has joined #ruby
Azure has joined #ruby
vadzimt has joined #ruby
Bosox20051 has joined #ruby
endash has quit [Ping timeout: 276 seconds]
shiggity_ has joined #ruby
lethjakman has quit [Ping timeout: 255 seconds]
devdazed has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
tyfighter has joined #ruby
vali has joined #ruby
oso|away has joined #ruby
oso|away is now known as oso96_2000
pwh has quit []
sivoais has joined #ruby
stnly has joined #ruby
shermablanca has quit []
devdazed has joined #ruby
sheperson_ has joined #ruby
GriffinHeart has quit [Ping timeout: 276 seconds]
sheperson has quit [Ping timeout: 276 seconds]
sheperson_ is now known as sheperson
xibalba has quit [Excess Flood]
TDJACR has quit [Ping timeout: 255 seconds]
fgo has quit [Ping timeout: 255 seconds]
xibalba has joined #ruby
xibalba has left #ruby [#ruby]
<shiggity_> is using .map faster than doing .each do ? If so - why/how?
LACP has joined #ruby
<banister> shiggity_ they're not the same thing
<shiggity_> Well not exactly - but they are both are ways to iterate through a collection, sometimes they are certainly interchangeable in behavior
ponga has quit []
gr33n7007h has joined #ruby
<shiggity_> i guess im saying is it always faster if you can rewrite an iteration to use map instead of each?
<jhass> shiggity_: map uses each internally, they're really not the same thing
<eam> shiggity_: certainly not
mark_locklear has quit [Ping timeout: 245 seconds]
seanewest has quit [Quit: seanewest]
mercerist has joined #ruby
<wallerdev> maps are faster since you can use geolocation to find the elements quicker
maximski has quit []
<shiggity_> geolocation eh
mercerist has quit [Client Quit]
LadyRainicorn has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
<shiggity_> i was under the presumption that if the order doesn’t matter, then use map instead of each
<gr33n7007h> wallerdev, haha
<wallerdev> whered you hear that?
<wallerdev> that sounds really random and wrong lol
BeanDip has joined #ruby
<shiggity_> right?
Zenigor has quit [Remote host closed the connection]
<shiggity_> i’m trying to figure out why I should use map
<shiggity_> i use it in JS
<wallerdev> you use map to transform values
mercerist has joined #ruby
<shiggity_> but not really in ruby
<eam> shiggity_: when you want to return a second array of things
<wallerdev> like if you wanted to add 1 to every element in an array
<shiggity_> gotcha
<shiggity_> ok
<wallerdev> >> [1, 2, 3].map { |x| x + 1 }
<eval-in_> wallerdev => [2, 3, 4] (https://eval.in/157975)
ari-_-e has joined #ruby
<benzrf> shiggity_: nice nick
<benzrf> ಠ_ಠ
<shiggity_> ah ok
phinfonet has quit [Read error: Connection reset by peer]
<shiggity_> thats helpful
<shiggity_> i guess i should use map in places where i was doing each_with_index
<shiggity_> and then adjusting the array by that index
<shiggity_> more efficient to map?
bmurt has quit []
TDJACR has joined #ruby
<centrx> shiggity_, More efficient, but more importantly it's easier to write and easier to read
toertore has joined #ruby
<shiggity_> right
<shiggity_> here’s another random question
<shiggity_> if I have to sort and uniq a collection
<shiggity_> does order matter?
<shiggity_> efficiency wise?
<shiggity_> i guess it depends on how substantial the amount of duplication is eh?
carlyle has quit [Remote host closed the connection]
vpretzel has quit [Quit: Adios!]
mercerist has quit [Client Quit]
<Mon_Ouie> Efficiency-wise you can implement a sorting algorithm that gets rid of duplicates all at once quite easily (probably not going to be more efficient than Array#sort though)
<Demerzel> shiggity_: i would think sort first and uniq second since uniq typically requires a sort
<Mon_Ouie> uniq doesn't require a sort, it creates a Hash table
<Demerzel> shiggity_: of course that depends on if the built-in sort marks the array as sorted in a way that the built-in uniq can check
mercerist has joined #ruby
<Mon_Ouie> uniq is O(n), sort is O(n*log(n))
<shiggity_> i see…
phinfonet has joined #ruby
<Demerzel> Mon_Ouie: huh that makes sense
armyriad has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
<shiggity_> would default Array#sort do this default ‘marking as sorted’?
<shiggity_> Demerzel
sambao21 has quit [Quit: Computer has gone to sleep.]
moritzschaefer has quit [Ping timeout: 265 seconds]
<Mon_Ouie> Ruby arrays don't have such an annotation
<Demerzel> shiggity_: Mon_Ouie's answer seems to indicate the uniq doesn't require a sort so you'd like be better off doing a uniq
toretore has quit [Ping timeout: 276 seconds]
<Demerzel> s/like/likely/
<Mon_Ouie> Well, *he* wants the final array to be sorted
<Demerzel> uniq first, sort later
<Demerzel> right
g0bl1n has quit [Ping timeout: 252 seconds]
<luckyruby> I'm trying to read the first 4 characters in a file using open('file.txt') {|io| io.gets}[0,4]. The first line in the file is "AUSD06022014212056PCR". The code returns "AUS". I'm expecting "AUSD". I suspect it has something to do with the file. Does there exist some weird character that is invisible to a text editor but is considered a character in ruby?
<Mon_Ouie> So I'd guess uniq.sort but the best way to know still is to just try it
ctp has joined #ruby
<shiggity_> Yeah
<shiggity_> Thanks guys
<luckyruby> :set invlist in vim doesn't show anything unusual on that part of the file.
sambao21 has joined #ruby
<Mon_Ouie> io.read(4)
aspires has joined #ruby
FL1SK has joined #ruby
banjara has joined #ruby
<luckyruby> Mon_Ouie: "\xEF\xBB\xBFA" is what it returns
toastynerd has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
paulfm has quit []
<matled> % printf "\xEF\xBB\xBFA" | file - => /dev/stdin: UTF-8 Unicode (with BOM) text, with no line terminators
jpierre03 has quit [Read error: Connection reset by peer]
linguini has joined #ruby
<matled> luckyruby: you probably want to remove the BOM (byte order mark)
sheperson has quit [Quit: sheperson]
<benlieb> I have an old rails app on 1.8.7 and would like to upgrade soon
<luckyruby> matled: how do I do taht?
<benlieb> should I go all the way up to 2?
<luckyruby> benlieb: yea
<benlieb> luckyruby: are there known incompatibilities with 1.8.7? Or should it be smooth?
lethjakman has joined #ruby
<Demerzel> benlieb: i'd recommend moving up to 1.9 and then 2
<matled> luckyruby: mh, File.read / File.open appears to do that for me already
<shiggity_> 1.9.3 is sturdy as hell
braincrash has joined #ruby
<matled> luckyruby: what does File.open(...).gets.inspect give you?
<luckyruby> benlieb: if you use FasterCSV, you'll need to change that to CSV
endash has joined #ruby
frem_ has joined #ruby
nszceta has quit []
meatherly has joined #ruby
<luckyruby> matled: "AUSD06022014212056PCR\r\n"
endash has quit [Client Quit]
<linguini> LC_TIME=en_US ruby -rdate -e 'puts Date.parse("06/01/2014")' # 2014-01-06 :-/
<happytux_> Why doesn't work this in Rake?:
banjara has quit [Ping timeout: 240 seconds]
<happytux_> system('php /usr/local/bin/composer', ['arg1', 'arg2', 'arg3', ...])
zorak_ has quit [Ping timeout: 240 seconds]
<matled> luckyruby: so that looks good. calling #[0,4] on that string should give you AUSD
<happytux_> no implicit conversion of Array into String
<happytux_> So the method signature expects a string as second/n argument.
feature_creep has quit [Quit: feature_creep]
SBoolean has quit [Remote host closed the connection]
<shiggity_> can you pass a space separated list? ‘arg1 arg2 arg3’ ?
<matled> luckyruby: oh, that's interesting. I can reprocude your problem here...
<luckyruby> oh? how'd you manage that?
<matled> #inspect with utf-8 in the locale doesn't escape the bom :(
<matled> so it's just invisible
<ari-_-e> happytux_: you probably need to put the composer path an argument
<Mon_Ouie> happytux_: it's 'arg1', 'arg2', 'arg3'
tectonic has joined #ruby
<Mon_Ouie> (Also what ari-_-e said)
moritzschaefer has joined #ruby
<ari-_-e> happytux_: the command you're really executing is php - everything else is an argument to that
x1337807x has joined #ruby
seanewest has joined #ruby
papercode has joined #ruby
alexju has quit [Remote host closed the connection]
thumpba__ has joined #ruby
Gil has quit [Remote host closed the connection]
<happytux_> ok
<happytux_> ari-_-e: yes, I want to pass an array with arguments to be passed to that command.
<happytux_> Now I do this:
<happytux_> system('php /usr/local/bin/composer', ['arg1', 'arg2', 'arg3', ...].join(' '))
<happytux_> Or is this wrong?
<ari-_-e> huh?
jpierre03 has joined #ruby
<matled> luckyruby: not sure if there is a good way to do this. you can open the file with 'r:bom|utf-8' according to stackoverflow, but it probably expects a bom at that point. you can also just strip the bom if present (e.g. #sub(/\A\xEF\xBB\xBF/, ""))
<ari-_-e> happytux_: you need to either pass the whole thing as a single string, in which case the shell will be invoked and will tokenize for you, or you need to pass the arguments as separate parameters to system
<Mon_Ouie> That's going to look for a command called 'php /usr/local/bin/composer', but that command does not exist
<happytux_> ari-_-e: I would like to pass them separately - how?
<Mon_Ouie> It's also only going to pass one argument to it, which will be "arg1 arg2 arg3" (which is different from 3 separate arguments)
<ari-_-e> maybe tokenize is the wrong word - it separates the arguments
<wallerdev> probably want, system('php', '/usr/local/bin/composer', *argsArray)
lw has quit [Quit: s]
dEPy has joined #ruby
<happytux_> oh damn
<happytux_> system('php', '/usr/local/bin/composer', 'arg1', 'arg2', 'arg3', ...)
<happytux_> this should be right then?
<ari-_-e> happytux_: yes
thumpba has quit [Ping timeout: 245 seconds]
<luckyruby> matled: how does that BOM get introduced into the file usually?
<happytux_> ari-_-e: so this would pass to command php the arguments '/usr/local/bin/composer', 'arg1', 'arg2', 'arg3', right?
<ari-_-e> happytux_: yes
<happytux_> luckyruby: crappy editor / windows editor when editing an UTF-8 file?
<matled> luckyruby: whoever wrote that file added that. some libraries of programming languages will do that, some editors, ...
yfeldblu_ has joined #ruby
Morkel has quit [Quit: Morkel]
timgauthier has joined #ruby
<luckyruby> open('luckyruby.txt', "r:bom|utf-8") {|io| io.gets}[0,4] seems to work
iLeoable has joined #ruby
<iLeoable> Hello?
<luckyruby> thanks for all the help!
coderhs has quit [Ping timeout: 252 seconds]
<iLeoable> I would like some help...
<shiggity_> nice
<luckyruby> I def wouldn't have been able to figure that out on my own
NukePuppy has quit [Ping timeout: 240 seconds]
claymore has quit [Quit: Leaving]
<iLeoable> I was trying to install Gitorious on my Dreamhost Shared server. I ran rake db:migrate RAILS_ENV=production after configuring the files...
claymore has joined #ruby
<iLeoable> I used thist page http://wiki.dreamhost.com/Gitorious
<iLeoable> When I ran it, it said (in /home/gitnovel/www) Sphinx cannot be found on your system. You may need to configure the following settings in your config/sphinx.yml file: * bin_path * searchd_binary_name * indexer_binary_name For more information, read the documentation: http://pat.github.com/ts/en/advanced_config.html rake aborted! ./db/migrate//20130808143416_add_type_and_data_to_web_hooks.rb:6: odd number list for Hash da
<ari-_-e> happytux_: when you call system like that, it passes those arguments to the program directly
zorak has joined #ruby
<ari-_-e> if the program were written in ruby, you would access them with ARGV
<iLeoable> Hello?
cpruitt has quit [Quit: cpruitt]
charliesome has joined #ruby
<iLeoable> Rake gave me this ./db/migrate//20130808143416_add_type_and_data_to_web_hooks.rb:6: odd number list for Hash data_template = {url: "<URL>"}.to_yaml
yfeldblum has quit [Ping timeout: 240 seconds]
<happytux_> ari-_-e: thanks
<shiggity_> Sphinx is a fulltext binary search library isn’t it?
<wallerdev> yes
<iLeoable> Yes
jheg has quit [Ping timeout: 252 seconds]
<iLeoable> It quits the Database migration process....
<iLeoable> How do I monkey fix the code?
ldnunes has quit [Quit: Leaving]
cpruitt has joined #ruby
coffeina has quit [Quit: Wychodzi]
dhaivat has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
kyb3r_ has joined #ruby
bricker`LA has quit [Ping timeout: 255 seconds]
onewheelskyward has joined #ruby
SegFaultAX has quit [Excess Flood]
dblessing has quit [Read error: Connection reset by peer]
g0bl1n has joined #ruby
SegFaultAX has joined #ruby
dblessing has joined #ruby
vpretzel has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
dblessing has quit [Client Quit]
saarinen has joined #ruby
alem0lars has quit [Quit: alem0lars]
happytux_ has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
diegoviola has joined #ruby
frogssgy has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
carlyle has joined #ruby
Zenigor has joined #ruby
agent_white has joined #ruby
<agent_white> Afternoon folk
shiggity_ has left #ruby [#ruby]
<wallerdev> afternoon
shinobi_one has quit [Quit: shinobi_one]
dik_dak has quit [Quit: Leaving]
shinobi_one has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
yubrew has quit [Remote host closed the connection]
frosgy has quit [Ping timeout: 245 seconds]
NukePuppy has joined #ruby
carlyle has quit [Ping timeout: 255 seconds]
sandbags has joined #ruby
bricker`LA has joined #ruby
balazs has quit [Ping timeout: 264 seconds]
jackjackdrpr has joined #ruby
claymore has quit [Quit: Leaving]
dEPy has quit [Quit: Computer has gone to sleep.]
<apeiros> therubyracer still the best way to run js in ruby?
claymore has joined #ruby
Zenigor_ has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
mary5030_ has joined #ruby
Takle has joined #ruby
afast has joined #ruby
mary5030_ has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
mary5030_ has joined #ruby
doodlehaus has joined #ruby
pontiki has joined #ruby
mikesplain has quit [Ping timeout: 264 seconds]
ctp has quit [Quit: Textual IRC Client: www.textualapp.com]
sepp2k has joined #ruby
Zenigor has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
saarinen has quit [Quit: saarinen]
atraylen has joined #ruby
sandbags has quit []
anaeem1_ has quit [Remote host closed the connection]
duggiefresh has quit []
doodlehaus has quit [Ping timeout: 255 seconds]
dEPy has joined #ruby
jmurray has joined #ruby
Demerzel has quit [Read error: Connection reset by peer]
vifino has quit [Quit: Me sais Laptop sleepy.]
fgo has joined #ruby
failshel_ has joined #ruby
seanewest has quit [Quit: seanewest]
flExxiz has left #ruby [#ruby]
sailias has quit [Quit: Leaving.]
dEPy has quit [Read error: Connection reset by peer]
dEPy has joined #ruby
SegFaultAX has quit [Quit: ZNC - http://znc.in]
tectonic has quit []
terrell_t has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
terrellt has joined #ruby
seanewest has joined #ruby
NukePuppy has quit [Ping timeout: 264 seconds]
claymore has quit [Quit: Leaving]
failshell has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
jpierre03 has quit [Ping timeout: 264 seconds]
failshel_ has quit [Ping timeout: 252 seconds]
Takle has quit [Remote host closed the connection]
havenwood has joined #ruby
havenn has joined #ruby
kirun has quit [Quit: Client exiting]
shiggity_ has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
learner has quit [Remote host closed the connection]
dhaivat has quit [Quit: dhaivat]
shiggity_ has quit [Client Quit]
locriani has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
<agent_white> "./server.rb:35: [BUG] Segmentation fault at 0x00000000000000" :(
locriani has joined #ruby
ajf- has joined #ruby
<ajf-> Hi, it's been a while since I've used Ruby, is there a different package than RVM (Ruby Version Manager) used now ?
<toertore> rbenv
<toertore> chruby
<pontiki> rvm is still in use
<pontiki> plus others
<pontiki> choices!!
xcv has quit [Remote host closed the connection]
havenwood has quit []
mary5030_ has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
<xybre> RVM is still current. There's a couple of "competing" tools, but they require a lot more work to do basic things or can't do them at all.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
<postmodern> xybre, chruby does ruby switching just fine
<xybre> That's one feature out of like 4 major features I use RVM for.
dEPy has quit [Quit: Lingo - http://lingoirc.com]
nanoyak has joined #ruby
shiggity_ has joined #ruby
<havenn> ajf-: RVM is 20,000+ lines of shell code, so you can imagine it does multiple things. Options like chruby and ruby-install do one thing well.
<ajf-> havenn: which is ?
skinny_much has quit [Ping timeout: 240 seconds]
Hawk555 has quit [Ping timeout: 260 seconds]
nicksloan has left #ruby [#ruby]
<havenn> ajf-: chruby switches rubies, ruby-install installs rubies, etc
<ajf-> I'm reading the docs
<xybre> they require you to already have ruby installed.
<postmodern> xybre, `ruby-install ruby` done :)
<xybre> If you have Ruby installed.
ylluminate has joined #ruby
sethn has joined #ruby
<postmodern> xybre, i don't follow? both chruby and ruby-install are shell scripts
sethn has left #ruby [#ruby]
<agent_white> Hey folks, got a segfault issue goin on with an http-server I'm writing. Here's my server, https://github.com/jakenotjacob/Dishd/blob/master/server.rb , here's my client I wrote to test threading https://gist.github.com/jakenotjacob/211806c8917f3f1fb78b, and here's my segfault. https://gist.github.com/jakenotjacob/2f19e50fc2a8a8c3faad
<agent_white> Sorry for the wall of text :D
<xybre> postmodern: My mistake, RVM 2 is supposed to be, which is equally ridiculous.
skinny_much has joined #ruby
tectonic has joined #ruby
csfrancis has quit [Ping timeout: 252 seconds]
xcv has joined #ruby
akonny has joined #ruby
csfrancis has joined #ruby
ryanleesipes has quit [Quit: Leaving]
moritzschaefer has quit [Ping timeout: 265 seconds]
McFreely has quit [Quit: Lingo - http://lingoirc.com]
<havenn> xybre: So you're okay with tens of thousands of lines of shell and don't want to replace that with Ruby? :O
afast has quit [Remote host closed the connection]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<xybre> I don't want to have to install Ruby in order to install Ruby havenn.
<pontiki> agent_white: you are aware you can put multiple files in a gist?
<agent_white> pontiki: Eeep! I forgot.
<wu_> thin --threaded is decent, FWIW
<xybre> I'm okay with something that gets the job done, and Bash isn't a great language, and I'd rather there was another option, but Bash is readily available on most modern systems.
<havenn> xybre: Tens of thousands of lines of shell scare me more than bootstrapping Ruby.
<wu_> ruby is in virtually any distribution's packagemgr
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has joined #ruby
<xybre> It makes it mostly pointless.
kaleido has joined #ruby
kaleido has joined #ruby
kaleido has quit [Changing host]
<xybre> I might prefer Ruby to Bash, but it defeats the purpose.
<havenn> xybre: or... a simple shell script :)
<xybre> Cool then I'll use postmodern'ms script.
banjara has joined #ruby
<xybre> All 4 of them.
<toertore> xybre: what is it that requires ruby?
<xybre> toertore: RVM 2
<toertore> oh
<havenn> toertore: RVM2 plans to ship with a statically linked precompiled binary to then install any other Rubies (JRuby if binary isn't available for some reason).
<toertore> yeah they had a steam locomotive and then they strapped some rockets on it to make it better
mjsmith2 has quit [Read error: Connection reset by peer]
<wu_> it's a complement to compile ruby in ruby, or go in go, but installing ruby with ruby is verboten?
<xybre> Sorry I'm having a bad day, I'm probably being more compative than usual :/
<frem_> Ooh. If RVM2 supports jruby, it'll work on Windows.
jpierre03 has joined #ruby
<frem_> (I realize I'm like the only person who cares about this)
<eam> havenn: you have to run tens of thousands lf lines of shell to bootstrap ruby, so you can't get around it really :)
armyriad has joined #ruby
<wu_> what about that 'miniruby' that ruby bootstraps itself with. maybe that's enough?
<havenn> wu_: mruby
<wu_> ruby has always compiled on Windows w/ GCC going back to at least 15 years ago, for me.
<eam> fact of life as long as ruby is built with gnu autotools
<pontiki> agent_white: what if params.last never matches '\r\n' ?
jhulten_ has quit [Remote host closed the connection]
<xybre> Problem with shipping a binary (or god forbid JRuby) is that there's a hell of a lot of platforms to support and significantly less than bash supports.
<xybre> You'd be better off making a repo of all those possible builds and writing a bash script that downloads them. It'd be less effort and less code.
andrewjanssen has joined #ruby
<havenn> xybre: i think RVM2's goal is beyond RVM1's scope -- setting up an entire environment, not just ruby
<xybre> Ruby's interpreter boot time is really slow also (Jruby even slower of course) so it will create a discernable delay any time RVM would be used.
banjara has quit [Ping timeout: 255 seconds]
<agent_white> pontiki: Hmmm... not sure. I'll test that now!
<xybre> Bash on the other hand has one of the fastest "boot" times of any interpreter I've tested.
<havenn> xybre: RVM2 would almost always be an MRI binary
rezzack has quit [Quit: Leaving.]
<xybre> havenn: MRI binary?
<wu_> matzrubyinterpreter?
toastynerd has joined #ruby
<xybre> How could RVM2 == MRI?
yfeldblu_ has quit [Remote host closed the connection]
jhulten has joined #ruby
<havenn> xybre: SM Framework (RVM folk) have been working on statically linked precompiled binaries of MRI. Eventually hopefully shippable by ruby-core.
chipotle has joined #ruby
<wu_> it's often ash/dash/etc on mingw/boot-CDs/minimal-container-boootstrap-envs etc, not bash
bean has quit [Remote host closed the connection]
chrisseaton has quit [Ping timeout: 260 seconds]
<frem_> wu_: Ruby *compiles* on Windows, but I've always had to use JRuby to get anything done on Windows. More binary gems seem to have jruby versions than windows-compatible versions.
* havenn pulls his hair out contemplating dash support
<xybre> havenn: Just, as opposed to dynamically linked? What does that mean for RVM though?
chrisja_ has joined #ruby
<agent_white> pontiki: I guess that's something I need to look at, but I'm just getting down the basics for now before moving into dealing with bad http clients :)
<agent_white> pontiki: Just getting some guidance from #learnprogramming on writing this bugger!
<wu_> agent_white: any reason you don't want to start with Rack, and an existing threaded server, besides learning expreience?
<havenn> xybre: RVM is already selectively installing the binaries when you request an available one. The point regarding RVM2 is that you download a single binary (that doesn't need to dynamically link) and it *just works*.
<wu_> they've churned thru years of minor protocol/API related bugfixes already
<agent_white> wu_: Nope! Just re-inventing the wheel for learning :)
kilk_ has joined #ruby
<xybre> havenn: Just works on what? And won't the much larger binary be slower to boot? (maybe faster to execute though..)
<xybre> what = platform
timonv has joined #ruby
hermanmunster has joined #ruby
<pontiki> agent_white: my point being that you may have a pseudo-infinite loop there
moritzschaefer has joined #ruby
<xybre> Is there a companion to chruby that manages gemsets? I don't see anythign about gemsets on the readme.
<agent_white> pontiki: Yeah I tried it without the "\r\n"'s and it hung forver :)
<havenn> xybre: chgems
toastynerd has quit [Ping timeout: 240 seconds]
<agent_white> pontiki: That's probably the segfault eh? Cause after that I added back in the \r\n's and send a request, and it segfaulted 10 seconds later.
chrisja has quit [Ping timeout: 264 seconds]
<pontiki> that's kind of what i'm thinking
mijicd has joined #ruby
<agent_white> Ahhh!
<xybre> havenn: Thanks. Okay, and then there's an installer too?
agent_white has quit [Remote host closed the connection]
zybi1 has joined #ruby
<havenn> xybre: but you can use ruby-build or compile yourself with chruby too
jhass is now known as jhass|off
agent_white has joined #ruby
feature_creep has joined #ruby
<havenn> xybre: or RVM even supports installing with chruby as the switcher, see MRVM which ships with RVM (though seldom used I think)
SCommette has quit [Quit: SCommette]
<wu_> ooh, zsh is supported already
fgo has joined #ruby
<xybre> I already have ruby-version and ruby-gemset files, right now I can run two commands and have them working, I'm tryign to figure out how many steps I ahve to jump through to get a similar featureset.
<havenn> xybre: hem, good question
timonv has quit [Ping timeout: 252 seconds]
freezey has joined #ruby
<havenn> oops, time to fly - later!
havenn has quit []
hermanmunster has quit [Ping timeout: 276 seconds]
<xybre> I mean worst case scenario, on a fresh system I 1. install RVM 2. tell RVM what Ruby to install 3. tell RVM to switch to the Ruby and gemset specified in a given directory.
<xybre> And 1 is a single command to copy/paste.
yfeldblum has joined #ruby
dhaivat has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
garndt has quit [Quit: Connection closed for inactivity]
gregf has quit [Quit: WeeChat 0.4.3]
shiggity_ has quit [Quit: shiggity_]
<dont-panic> someone's trying to get me to learn java over ruby.... should I listen?
<toertore> do what you want
<RubyPanther> dont-panic: if you're not sure, then yes, listen
vadzimt has quit [Quit: Textual IRC Client: www.textualapp.com]
yubrew has joined #ruby
<RubyPanther> java is better for unsure people than Ruby
<toertore> if you want to learn java, learn java. if you want to learn ruby, learn ruby.
<dont-panic> Can ruby do stuff with midi relatively easily?
SCommette has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
riotjones has quit [Ping timeout: 240 seconds]
<dont-panic> One of the projects I want to work on will involve music libraries, haven't really looked into if ruby handles those well
<RubyPanther> Ruby you have to know to do the right thing, Java tries to make sure you do the right thing. Uncertainly in Ruby almost guarantees you'll write crap.
<pontiki> wat?
<RubyPanther> pontiki: http://en.wikipedia.org/wiki/File:2013_Wat_Phumin_Nan.jpg that is what a wat is.
nanoyak has quit [Quit: Computer has gone to sleep.]
<pontiki> i've been to several
<dont-panic> yeah. I've had a few instances while learning where I was completely stumped. One was writing a splat subtraction method on rubymonk.com... Couldn't figure it out for the life of me
<pontiki> but that's a wat, not a wat?
<RubyPanther> Hmm, odd that you would use the word that way, then.
nanoyak has joined #ruby
<wu_> ruby is full of wonkiness like splats. instead of just functions, there's functions, lambdas, procs, methods, blocks
<wu_> any sane programmer skips right past it to a language with a more sane theoretifcal background - Standard ML, eg
<RubyPanther> wu_: Wrong. There are no functions, only methods.
<dont-panic> I like that it has more options, but sometimes that confuses the hell out of me lol
yubrew has quit [Ping timeout: 252 seconds]
carlyle has joined #ruby
<toertore> any confusion can be corrected with learning
chrisja_ has quit [Quit: leaving]
<dont-panic> I still have a bunch of crap to do in lua too. too much to do, too little free time
GriffinHeart has joined #ruby
benzrf|offline is now known as benzrf
<banister> agree that block/lambda/proc distinction is a bit of a clusterfuck tho
<ari-_-e> there's no such thing as a "block"
<ari-_-e> "block" is a syntax construct
<ari-_-e> there is no "block" object
<eam> well that's a thing
<RubyPanther> and if you don't know the difference between lambdas procs and blocks, you won't try to make use of the differences, and so you really won't need to know. Just learn what a proc is, and assume the others are the same.
<ari-_-e> if you objectify a block, you get a Proc
<dont-panic> {|i| i} <-- block??
<RubyPanther> ari-_-e: There is no "block object" but there are indeed blocks. When you want a object, you instantiate a Proc
<dont-panic> ->{|i| "#{i} might be a stabby lamda?"}
<toertore> a block is just syntax sugar for passing a proc
<apeiros> toertore: nope
<ari-_-e> RubyPanther: my point is that "block" is not a distinct concept
<pontiki> "we'll just put a few stabby little lambdas over here"
<apeiros> but it's similar
sambao21 has quit [Quit: Computer has gone to sleep.]
<ari-_-e> or is at least not in the same category as proc/lambda
<RubyPanther> There are real differences between blocks and procs. You just don't need to know about them unless you're doing advanced insanity like optimization. But ignoring the difference isn't the same as believing there to be no difference
geggam has quit [Remote host closed the connection]
<eam> the syntax for declaring a variable local to a block is confusing -- I know several experienced ruby folks who didn't know how
<apeiros> eam: ; ?
<eam> 1.times { |x| # but what if I want a local y,z? }
<apeiros> eam: it actually stopped being necessary the moment it was introduced
g0bl1n has quit [Quit: Ex-Chat]
<wu_> 1.8->1.9 made block local variables work properly
<pontiki> someone is going to say "there are no variable declarations in ruby" soon
Zenigor_ has quit [Remote host closed the connection]
<crome> eam: |;x|
<eam> apeiros: it's still necessary so one doesn't stomp on outer scope
<eam> crome: right
<apeiros> wu_: if you don't specify it explicitly, then only arguments, I guess that's what eam's after
carlyle has quit [Ping timeout: 255 seconds]
comma8 has joined #ruby
<RubyPanther> eam: That is because it is poor design in an OO system to try to shoehorn encapsulation without an object. They "don't know how" because they probably write higher quality code than that...
<wu_> at least Ruby is fixable. unlike JS's broken scoping ;)
<apeiros> eam: yeah, but tbh, most common occurrence was arguments passed in. I don't think I've ever needed ;
<eam> wu_: agree
<toertore> eam: it's called a closure ;)
<crome> why is js scoping broken?
<wu_> crockford says it is, mainly
<RubyPanther> You can dislike/hate JS, but it sure ain't "broke"
<apeiros> toertore: your nick is distoerted? :)
<eam> apeiros: I think the common occurance is people just assume they won't make a mistake and reuse a variable name
<mozzarella> is the new js's scoping alright?
<mozzarella> or is it still the same?
<eam> which is ... mostly true
GriffinHeart has quit [Ping timeout: 265 seconds]
<ari-_-e> RubyPanther: is def get_proc(&p); p; end a legitimate way to get a Proc from a block?
<toertore> apeiros: backup, must have been disconnected
<apeiros> eam: I don't assume! :(
<apeiros> ;-)
amargherio has quit [Remote host closed the connection]
<toertore> js scoping works fine, as long as you understand how it actually works
<eam> haha
maroloccio has quit [Quit: WeeChat 0.4.3]
<RubyPanther> ari-_-e: usually not
<crome> there is nothing wrong with js scoping, it just gets confusing quickly
<eam> I really do wish ruby declared variables though
<ari-_-e> RubyPanther: why not?
akonny has quit [Quit: akonny]
<toertore> js scoping is actually very simple
<toertore> and easy to understand
<Mon_Ouie> def proc(&block); block; end is already in Ruby
<RubyPanther> ari-_-e: tenderlove has a video about it, anybody remember which one?
<banister> ari-_-e so what do you call the thing passed to each here?: each { |v| v.to_s }
feature_creep has quit [Quit: feature_creep]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
<banister> Mon_Ouie 'alut
toertore has quit [Quit: Leaving]
<Mon_Ouie> 'alut
toretore has joined #ruby
<banister> Mon_Ouie have you looked into swift? what's your opinion?
<toretore> there we go. myself again
<toretore> I HATE INTERNET EXPLORER SO SO SO SO SO SO MUCH
codabrink has quit [Remote host closed the connection]
<benzrf> swift looks like scala
<dont-panic> use linux
<benzrf> like the scala to objc's java
<benzrf> p:
<wu_> ies4linux in WINE
<eam> ocaml and java's bastard child
<RubyPanther> ari-_-e: declaring the &block guarantees the worst case performance, there is an optimized way that is much better for the best case where you don't use the block
<benzrf> dont-panic: i'd just like to interject for a moment
<benzrf> what you're referring to as 'linux' is actually gnu/linux
<benzrf> or as i've taken to calling it, gnu plus linux
<wu_> nah, busybox all the way. no GNUtilities
<benzrf> :^)
<dont-panic> or you could go so far as to say unix
shevy has joined #ruby
<dont-panic> linux,bsd,osx = unix
<ari-_-e> banister: I call it a syntax which assigns an implicit context to that each call such that "yield" will call the code specified by the block syntax
jobewan has quit [Ping timeout: 260 seconds]
<dont-panic> osx is pretty much just bsd
<banister> ari-_-e lol
<banister> ari-_-e give your brain a rest and just call it a block :)
<RubyPanther> gnu/linux is a silly name because nobody installs linux, and then GNU tools, people instead install a distro. So it makes more sense to go from "linux" to "fedora/slackware/whatever" than to GNU/Linux
<ari-_-e> banister: I did call it a block
<ari-_-e> banister: but it's not an object
<banister> ari-_-e i dont think anyone said it was an object?
<wu_> LFS users proabbly DL a GNU CoreUtils tarball
<Mon_Ouie> Blocks aren't objects, procs are
<banister> Mon_Ouie i love it when you lay down the knowledge
<RubyPanther> Why are the CLI tools automatically more important than the desktop environment, too? Doesn't that depend on the user? Why not call it Gnome/Linux or KDE/Linux?
<ari-_-e> banister: people are conflating the concepts of "block" with the concepts of "proc/lambda/etc"
<ari-_-e> that's all I'm pointing out
<dont-panic> blocks don't get asigned to var's, they just kinda happen right
lmickh has joined #ruby
<dont-panic> its like throw away code that still exists
<shevy> yeah
<wu_> call it GnomeGTKGLibXlibGLibCGNU/Linux then, RubyPanther
<shevy> more like additional arguments to every method dont-panic
<banister> ari-_-e a block is a lightweight syntax for passing an anonymous function to a method, so long as people know that (which most people do), it's reasonable enough to talk about them in the same breath as lambdas/procs
<toretore> X/Linux, now that's a cool name
<shevy> toretore I prefer Fuck/Linux
bhaak has quit [Ping timeout: 245 seconds]
<dont-panic> or in my case awesome/linux
<eam> RubyPanther: the idea that linux should be gnu/linux is because of the development toolchain (aka gcc, libc)
<dont-panic> not ever linux has gcc installed
<shevy> I hate the name awesome, there is even a wm that has it as its name and it is more like crapsome than awesome
<eam> those are far more fundamental than a display toolkit (which might not even be used)
<eam> dont-panic: 100% of linux kernels are compiled on gcc
<shevy> what about llvm
<eam> whether it's installed post-build is irrelevant
shiggity_ has joined #ruby
<dont-panic> shevy: totally disagree. awesome is by far the best wm I've ever used
m8 has quit [Quit: Sto andando via]
<wu_> clang/llvm/hurd ? shudder
<shevy> dont-panic sure in 1990
<dont-panic> eam: doesn't mean you need gcc. go grab puppy linux. that doesn't have gcc by default
<Mon_Ouie> Does RMS insist on calling BSDs GNU/BSD for the same reason then?
<eam> dont-panic: doubt it
<dont-panic> 4.2.1 didn't
<eam> the userland compiler != the compiler you used to build your kernel
<eam> don't confuse the two
<dont-panic> the new version might
<shevy> puppy is for small installations isn't it? like 50MB only
fgo has joined #ruby
<dont-panic> is 300mb and it stays in ram
<shevy> wheee that's almost as big as archlinux
SilverKey has quit [Quit: Halted.]
<RubyPanther> ari-_-e: Proc.new without a block will use the block from the method, but &block causes the block to have a Proc instantiated every time, even if you don't use it. So in def foo(&block) there is already an object wrapping the block but in def foo ; Proc.new if condition end now there is only a wrapper if condition is true
<dont-panic> its also not built from a specific distro, its built from the ground up
<dont-panic> I seem to remember trying to use make in puppy only to find out I had to go find a gcc package and bunch of other utils and it was a pain
vpretzel has quit [Ping timeout: 260 seconds]
yakko_ has joined #ruby
<eam> folks are working on getting the linux kernel building on llvm, I believe that work is unfinished
yakko has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
ehc has joined #ruby
vpretzel has joined #ruby
<RubyPanther> don't conflate blocks and procs being different with being separate all the time, because they're only separate sometimes. And a block wrapped in a proc... is just a proc, at least if you're using it for anything
blandflakes has quit [Quit: Page closed]
fgo has quit [Ping timeout: 264 seconds]
moritzschaefer has quit [Ping timeout: 265 seconds]
endash has joined #ruby
<RubyPanther> eam: The development toolchain causing the name to get added would be pretty silly, I've never heard of an application having a different name (VC++/TrueCrypt) when you compile for a different platform
xcv has quit [Remote host closed the connection]
<toretore> isn't it mostly because most of the tools that come with a linux installation are gnu?
<RubyPanther> or if you compile emacs with cc, would it be called Intel C++/emacs
coderhs has joined #ruby
benlieb has quit [Quit: benlieb]
VinDoKi has quit [Remote host closed the connection]
Gil has joined #ruby
deepy has quit [Ping timeout: 240 seconds]
<eam> RubyPanther: silly or not, that's why gnu/linux exists as a term
<RubyPanther> yeah, the toolchain is the real claim, but for desktops that leaves most users running Gnome/Linux because that is their toolchain. It even has its own stdlib replacement (glib)
<shevy> long live kde!
<eam> glib is not a libc replacement
<eam> glib and glibc are very different
<RubyPanther> Yes, glib is a stdlib replacement. They are different, yes, I did not claim it was drop-in, just that is used instead
<eam> it isn't used instead
deepy has joined #ruby
deepy is now known as Guest54253
<RubyPanther> except... it is? You clearly don't write C that uses it, if you claim that.
<toretore> RubyPanther: with linux distros' dependence on shitty shell scripts that use gnu tools i think it's a fair claim for most users
jhulten has quit [Remote host closed the connection]
<RubyPanther> toretore: so then it becomes systemd/linux ;)
<toretore> hah
<shevy> man, linux will never leave behind shell scripts
<RubyPanther> <3 GNU, but sorry lol
<eam> RubyPanther: one of us is extremely ignorant of what glib is :)
<shevy> I am gonna help you out guys
<toretore> is it you eam?
<eam> toretore: probably not
<toretore> oh
<shevy> there we go!
<RubyPanther> eam: And another stdlib replacement that also isn't drop-in is apache apr
<agent_white> I am ignorant of glib! Come at me!
<shevy> agent_white glib has its root in gnome
<shevy> agent_white glibc has its root in hell
failshell has joined #ruby
<RubyPanther> shevy: No, in gimp
<agent_white> isn't gnome helll?
<dont-panic> lol
<katlogic> Both are part of same heretic faith
andrewlio has quit [Quit: Leaving.]
<eam> RubyPanther: you said "replacement" -- in fact those libraries *use* and *depend* on libc
<shevy> gimp is worse than hell
<katlogic> That is, horrible coding style and blobness
<shevy> I mean, just to pick a name that rhymes with pimp alone ...
<eam> you cannot use them without it
<toretore> but kde still sucks
<shevy> "hey man I am gonna pimp me some images"
<agent_white> green is my pepper
<shevy> toretore what about kde konsole
Gil has quit [Ping timeout: 240 seconds]
<eam> RubyPanther: readelf -d /lib64/libglib-2.0.so.0|grep libc
<RubyPanther> eam: I'm sure you can come up with the counter-argument without my help, since you claim to know so much about it. ;) Tell us why it is besides the point ;)
<toretore> "look, i can control the terminal transparency and colors so i can see my shitty anime backgrounds while coding"
<eam> 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
<shevy> now now
<shevy> how comes busybox exists how comes dietlibc exists
ti-wali has quit [Remote host closed the connection]
<eam> shevy: now dietlibc is a replacement :)
dingus_khan has quit []
<RubyPanther> shevy: because C didn't come with a stdlib, and the GNU one sucks too bad to use directly
<toretore> any sufficiently experienced developer will conclude that every single tool sucks
<dont-panic> I'm still hoping I can find someone who I can send a file containing 'cat /dev/urandom' and have them send me back wallpaper covered in the contents for my office
<toretore> and will have started rewriting half of them before giving up
jmurray has quit [Quit: jmurray]
<RubyPanther> toretore: hopefully they suck in different ways, though
<shevy> toretore first thing I usually do is set my desktop background to black without images, for every desktop environment / wm :(
<agent_white> shevy: Mine is black as well :( I use i3, so I see no point in having one.
<toretore> i change my icon pack to something cool like an xmen theme
Squarepy has quit [Quit: Leaving]
<RubyPanther> eam: If you can only conceive of "replacement" as meaning "drop-in replacement" then that is just a failure of language
<toretore> x men themed waste basket
<toretore> so cool
<eam> RubyPanther: it doesn't replace anything about it at all
<shevy> agent_white I just am fad up with backgrounds that look cool, but when you want to get real work done, those things all just distract
failshell has quit [Ping timeout: 240 seconds]
<eam> the functions it provides are complementary
<shevy> like kde eye candy, that may be super fancy but also it is super useless
<dont-panic> agent_white: you ever used awesome? if so you like i3 better?
<eam> RubyPanther: seriously, just stop
<agent_white> shevy: Oh! I just cannot see my backgrounds at all with tiling wm's... so I see no point.
djbkd has quit [Ping timeout: 260 seconds]
<RubyPanther> eam: Ah, now you're getting closer! You're attaching "replace" to the wrong thing. The thing being replaced is the library that the application developer is using.
<agent_white> dont-panic: I switched to i3 after using awesome, actually :) Literally, just for the ability to resize my panes. Besides that, I like awesome a lot more for it's keybindinds. I never configured anything after installing it.
batman___ has joined #ruby
<RubyPanther> Just like if you replace a car with a bicycle, the car is still a car and the bicycle is still a bicycle, you're just using a different one.
batman___ is now known as Meatchicken
<toretore> RubyPanther is perhaps the best troll i've ever seen. so subtly annoying to his targets while never going out of character
<toretore> ;)
<eam> toretore: he's pretty good
<RubyPanther> Probably means he's not a "troll" and you're just name-calling.
tjr9898_ has quit [Remote host closed the connection]
<toretore> the best trolls are those that are not intentionally trolling
<dont-panic> you can resize panes in awesome by using mod+right click, or you can use mod+h or mod+l I think
<eam> the thing is, if you just stop and let his statements stew in their own absurdity the entire thing is defused
tjr9898_ has joined #ruby
<RubyPanther> The best trolls are pejoratives, I think you might be mistaken on multiple levels there.
<agent_white> dont-panic: Wait really? Hm. I'll have to go back to see... but now after tinkering i3 I may have to stick with it for now :)
HoloIRCUser2 has joined #ruby
<shevy> toretore he was banned from #ruby-lang
<Meatchicken> I am writing a tracker by implementing BEP 3(http://www.bittorrent.org/beps/bep_0003.html). What would be the best way to write unit tests for this?
<shevy> unfortunately he was unbanned again :(
<agent_white> I enjoy both the same, pretty much.
<Meatchicken> I can test it by using an actual torrent client
<Meatchicken> but is there a better way?
<Meatchicken> Using minitest/testunit
jhulten has joined #ruby
<toretore> reminds me of a friend of mine, who will argue against you on any conceivable subject
<eam> toretore: no he won't
<dont-panic> agent_white: yeah, mod + left click moves windows around, mod + rightclick resizes all windows touching whatever corner you grab
sambao21 has joined #ruby
rezzack has joined #ruby
<agent_white> dont-panic: If I would've known of the mod+rightclick, I think I would've stuck with it.
<toretore> "this apple is red" "no it isn't. 'red' is just a name for a certain wavelength and the way our eyes perceive it"
<shevy> lol
<agent_white> dont-panic: Cause moving windows around each other is a fucking pain in the ass in i3... it lacks that mod+leftclick I loved.
<RubyPanther> toretore: How annoying he assumes that knowledge is incomplete! If only he would acknowledge that you've Solved some subjects, then he could just listen to you be wrong and not try to improve on the ideas
<shevy> toretore that is not very subtle at all
<apeiros> looking for the proper name of this transformation: I have a value which is within min/max A and transform it to fit within min/max B. E.g. A: 0..255 -> B: 0..1 - example transformations: 0 -> 0, 128 -> 0.5, 255 -> 1
<shiggity_> ”whats up?” “the sky”
<dont-panic> agent_white: the only real issue I have with awesome is that terminator will shrink or resize really small as soon as you open it and you have to manually resize... not all the time, just sometimes
<toretore> "your perception of red may be different from mine WOW"
djbkd has joined #ruby
<eam> toretore: "what is your relative velocity?"
moritzschaefer has joined #ruby
<agent_white> dont-panic: I noticed that too!! But I just recently switched to xterm for my default console, luckily ;P
wldcordeiro has quit [Quit: Leaving]
<shevy> apeiros how about ... "binary transform" ... or "yes/no transform" ... or "swiss cheese transform" (poking holes into thingies) ... hmm or ... "RGB-downscale transform"
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
<wallerdev> why transform when you can transpile
<RubyPanther> Is red a property of the apple, or of the viewer, that is a traditional philosophical question that is _known_ to not be "solved" to not have a right answer. So he's right; stating an apple "is" red is claiming that this known dispute is solved for one side.
feature_creep has joined #ruby
<agent_white> shevy: "poking holes into thingies" -- Hey that's something I'd say.
<apeiros> shevy: I don't think any of those are a fit
djbkd has joined #ruby
<agent_white> s/thingies/shitters
<toretore> RubyPanther: it is a property of the apple. it reflects the wavelength that we define as red
mary5030 has joined #ruby
<dont-panic> agent_white: I would use xterm, but I haven't messed with it much. I like terminator b/c I can turn off the scrollbar and title bar and in awesome that will make my terminal a completely black window with no border
treehug8_ has quit []
<eam> RubyPanther: The simulacrum is never that which conceals the truth - it is the truth which conceals that there is none. The simulacrum is true.
banjara has joined #ruby
toastynerd has joined #ruby
<eam> -- Kurt Cobain
ffranz has quit [Quit: Leaving]
<RubyPanther> toretore: sloppy, sloppy, you claimed it was a property of the apple, but then resorted to your own process of having defined the apple as the evidence; you actually argue that it is a property of your beliefs, not the apple, but you state what you argued wrong
pablo_ has quit [Remote host closed the connection]
<agent_white> dont-panic: Aye exactly! I just switched after I had minor issues with seeing character sets, etc. And figured I may as well have a terminal that doesn't mess around with stuff. DOwnside is it was a PAIN IN THE ASS to configure.
snath has quit [Ping timeout: 276 seconds]
<toretore> RubyPanther: is the apple apple-shaped?
<dont-panic> alright, my car isn't going to move itself, and this splif isn't going to smoke itself. be back later
<agent_white> ;D
<RubyPanther> toretore: Unknown
<dont-panic> agent_white: the thing with the ~ when you copy and paste or something?
<dont-panic> a friend of mine was having that issue
lw has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
<agent_white> dont-panic: Ah nah not that, I think it was something else with seeing utf-8 characters or something else... I honestly can't remember now. But it was a simple fix I went over-the-top with to recover from :P
<toretore> RubyPanther: so then nothing is known, unless you can ask every possible observer
<RubyPanther> toretore: To Plato, the apple is an imperfect reflection of the perfect state of apple-ness, and is only apple-like in shape, perhaps not perfectly apple shaped. I think that is a load of crap, but it is an unsolved dispute.
spider-mario has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
<agent_white> Why didn't Plato just eat the apple?
<RubyPanther> Stephenson's book "Anathem" is based on that, and competing, themes
<agent_white> I would've instead of talking about it.
<toretore> RubyPanther: but the definition of apple-ness is defined in the context of the projection that we perceive
mary5030 has quit [Ping timeout: 240 seconds]
<toretore> thus, it is apple-shaped
<RubyPanther> toretore: The idea that asking each observer would help is a whole different thing; do we in fact create reality from the set of our perceptions of what it is? Some people believe it to be so. It is unsolved, though.
<agent_white> This is why my buddies who majored in philosophy now work at pizza shops.
Avahey_ has joined #ruby
HoloIRCUser2 is now known as haoke0905
<shiggity_> bullshit
banjara has quit [Ping timeout: 252 seconds]
<agent_white> "Why do it while we can just sit and talk about it."
<shiggity_> philosopohy is awesome
<agent_white> s/while/when
haoke0905 has quit [Remote host closed the connection]
<RubyPanther> agent_white: Probably because philosophy is an abstract subject with no modern occupation associated.
<agent_white> It's cool to think outside the box. But I'm a pragmatist.
<toretore> RubyPanther: so you think there is a possibility that reality doesn't exist outside of our perceptions?
saarinen has joined #ruby
<toretore> there's no royal stipend for philosophers?
toastynerd has quit [Ping timeout: 276 seconds]
<shevy> agent_white lol
<shiggity_> philosophy majors are among the best performers on the LSAT, like comp sci, physics, math and economics majors
<agent_white> ;D
<shevy> who
<shevy> so we should pick philosophy majors rather than math majors?
<RubyPanther> toretore: Well, who cares what I think? More important to me is the fact that those questions are unanswered; they are known unknowns.
xanandu has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
<shiggity_> no im saying it has value
<toretore> shiggity_: that's because you can write whatever the hell you want and nobody can say it's wrong
<agent_white> RubyPanther: Because it doesn't teach you what to do with the thoughts other than how to think about them.
<shevy> RubyPanther you sound like Rumsfeld
<shiggity_> for some, it may be a better choice
arrubin has quit []
<agent_white> RubyPanther: I think that you need a supplement activity to use your philosophy-brains with.
<shiggity_> anywho
<agent_white> In my friends case, making pizza!
<shiggity_> lol
<shevy> nothing wrong with pizza
<shevy> except for those not baked in a real stone oven
<RubyPanther> shevy: You don't have to like Rumsfeld to appreciate the humor and indeed utility of Rumsfeldian Logic. I know I certainly don't!
<agent_white> I love pizza. Especially since he's a rebel so it's like anarchy pizza.
<agent_white> I feel so disobedient when eating it. Like I might even put extra parmesan on it.
<toretore> RubyPanther: do you know if rumsfeld was actually quoting a work of philosophy when he said that?
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> agent_white but there are so many bad pizzas, lately I had an indian-style pizza, they did not have an oven, just some micro-wave-like thing where they put the dough with some cheese on it
<shiggity_> Hey Ruby pros, I’m looking for advice to a fledgling ruby developer — how do I make myself hireable?
<RubyPanther> agent_white: How can you even know what choices you have as to what to do with your thoughts if you do not first understand how to think about them? How could you even approach the problem from that end?
<shevy> agent_white yeah, that is often required, some pizza just don't have enough cheese or tomato or anything else but the dough
<RubyPanther> toretore: He was, but I forget who
meatherly has quit [Remote host closed the connection]
<agent_white> RubyPanther: I don't think unless I do first. Why think before doing? If you don't do you don't know.
<shevy> eam why have you stopped arguing with RubyPanther :(
dhaivat has quit [Quit: dhaivat]
<RubyPanther> It is a standard quadrant analysis of knowledge, not anything special
<shiggity_> Open source contributions? ruby gems? how do you make yourself marketable as a ruby dev?
<shevy> shiggity_ without rails?
<shevy> you could compete with the perl/python sysadmin folks
snath has joined #ruby
danman has quit [Quit: danman]
<shiggity_> shevy: right now i’m a ruby developer. played with rails, but not nearly as comfy as normal ruby.
<agent_white> shevy: Wtf was it one of those little pizzas you get at the grocery?!
<agent_white> Or did they fire it up like subway-stylie in that overkill microwave?
<shiggity_> yeah, sysadmin /devops seems like one angle..
<RubyPanther> agent_white: That works for breathing, and other autonomous bodily functions, but I'm not convinced you can "do" conscious things without some sort of intent. Mistaken intent works fine, but you need some sort of intent.
Azure has quit [Remote host closed the connection]
<agent_white> RubyPanther: True. But I think your intent is transformed better once you do.
VinDoKi has joined #ruby
Azure has joined #ruby
<agent_white> I could think about all the different ways to write some crazy operating system, but it won't matter until I get my hands dirty as fuck.
<toretore> RubyPanther: looks like it was paraphrasing nassim taleb, author of black swan, which makes sense
<agent_white> All this philosophy makes me hungry for pizza.
<RubyPanther> shiggity_: If you want to make yourself marketable, create a non-db interface to arel so that people can use relational algebra to create seaches of arbitrary object relationships
<shiggity_> right why didnt i think of that
<RubyPanther> toretore: lol thanks for looking that up, that is awesome
<agent_white> shiggity_: Hahah :D
<toretore> RubyPanther: "In his 2007 book The Black Swan: The Impact of the Highly Improbable, Nassim Nicholas Taleb tells of a presentation on uncertainty he was requested to give to the United States Department of Defense shortly before Rumsfeld's speech."
<RubyPanther> shiggity_: Well, the easy stuff is already done, and projects do NOT WANT contributions unless they're attached to a bug report
yubrew has joined #ruby
<RubyPanther> toretore: I'm sure the use of quadrant analysis in information theory predates that though
<toretore> yeah
<toretore> it does
<agent_white> RubyPanther: What do you do for a living btw?
<shiggity_> RubyPanther: I read Nassim taleb’s book ‘fooled by randomness’ it’s awesome.
dhaivat has joined #ruby
maestrojed has joined #ruby
<agent_white> RubyPanther: Just curious, you seem like a smart cookie if you read that stuff my buddy does.
zybi1 has quit [Remote host closed the connection]
<shiggity_> RubyPanther: yeah.. Just now starting to learn to use rspec so I’m not the best test maker just yet
<RubyPanther> agent_white: Mostly database and point of sale consulting
<agent_white> Ahhhh! Damn.
<shevy> agent_white hmm no, the little pizzas are usually ok, we have a lot of these groceries from turkiye people (turkish people); that pizza that was awful felt like synthetic cheese warmed up on a dough in some kind of ... open microwave-oven or something; it only had some metal bars on the bottom to warm up the "pizza" thing... it was so awful ... but quite cheap, 7 euro + a pepsi; a real pizza here costs aroun
<shevy> d 10-14 euro in a restaurant, and only a bit less for take-away
<toretore> turkiye people
<RubyPanther> agent_white: I focus on things that are broken most of the time, that I can get paid to support, and then fix so they don't have to call me ;)
<toretore> like dr oetker
<shevy> ewww
<shevy> dr oetker is awful
<agent_white> RubyPanther: That sounds like fun, I bet you see some interesting stuff :)
<shevy> all those ready-made pizzas are awful
Megtastique has quit []
<RubyPanther> shevy: I paid $35 for a pizza 6 months ago, and my wife is still talking about how good it was
predator217 has joined #ruby
<shevy> wtf
<shevy> $35
brandonjmckay has quit [Quit: Leaving.]
<toretore> shevy: depends
<agent_white> shevy: Jesus... There's a few places around here that have pre-made calzones that are awesome. Made by those goddamned Boulder (Colorado) hippies.
<shevy> you want a pizza, not a car
<toretore> some are decent
<shiggity_> how many downloads would you say makes a gem popular/successful/what-have-you?
<shevy> shiggity_ +50k
<shiggity_> interesante
<agent_white> shiggity_: Why not contribute to some stuff? Like shoes?
<shiggity_> just released my first gem 2 weeks ago. 1k downloads :)
yubrew has quit [Ping timeout: 260 seconds]
<shevy> shiggity_ I think what is most useful is people who report back to you or contribute to
<shiggity_> Good idea. I remember looking at shoes a few times...
<shiggity_> shevy: definitely
<shevy> shiggity_ you need to deduct bot-downloads too
<agent_white> shiggity_: Shoes actually has a "bug" out there that's actually just a need for some tests to be written...
<shevy> on a new gem push, I very quickly get around 70 downloads; I am quite sure that none of these are from real people
dhaivat has quit [Client Quit]
<agent_white> RubyPanther: I thought that was going to 404...
Zenigor has joined #ruby
<shiggity_> shevy: Interesting…
<shevy> there is a research institute for pizzas?
<agent_white> ^^
<shiggity_> agent_white: thanks for the tip
mijicd has quit [Remote host closed the connection]
kevind has quit [Quit: kevind]
<toretore> that is not a pizza
<shevy> god that is so insanely expensive
<shevy> you get like a computer for 3x of these pizzas
<RubyPanther> It is one of the busiest pizza places in town, long wait on friday/saturday
tyfighter has quit [Quit: tyfighter]
<agent_white> I'm going to make a cheeseburger research institution. "Please send all cheeseburgers to PO BOX 999 for our Q&A dpt. to inspect."
predator117 has quit [Ping timeout: 255 seconds]
seanewest has quit [Quit: seanewest]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
coderhs has quit [Ping timeout: 245 seconds]
<RubyPanther> I'm a wild mushroom enthusiast, a lot of people will pick some fancy wild mushrooms and bring them in and get a special pizza made with them. Now THAT is pizza research! Also some people will bring in veggies from their garden.
<shevy> lol
seanewest has joined #ruby
lethe has joined #ruby
dodosan has quit [Remote host closed the connection]
dodosan has joined #ruby
dhaivat has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
iLeoable has quit [Quit: Page closed]
andrewjanssen has quit [Quit: Leaving...]
carlyle has joined #ruby
Arkaniad has quit [Ping timeout: 260 seconds]
<shiggity_> agent_white: I’ll take a look at that shoes test request, looks like they are using VCR eh? Interesting. I’ve heard about that but haven’t used before.
lethe has quit [Ping timeout: 260 seconds]
frem_ has quit [Ping timeout: 240 seconds]
t0rc has joined #ruby
superscott[8] has joined #ruby
freezey has quit []
|RicharD| has quit [Quit: Sto andando via]
carlyle has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 276 seconds]
tyfighter has joined #ruby
klaut_ has quit [Remote host closed the connection]
katlogic is now known as nagger
t0rc has left #ruby ["WeeChat 0.4.3"]
Dingus has quit [Quit: Leaving]
carlyle has joined #ruby
<^conner> I'm trying to understand the rspec mocks 3.0 replacement for stubs
SCommette has quit [Quit: SCommette]
<^conner> how do I declare the number of times I expect a stub method to be invoked?
j_mcnally has joined #ruby
l3kn has joined #ruby
Olipro has quit [*.net *.split]
hermanmunster has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<crome> .should_receive(:stuff).exactly(x).times
coderhs has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
fgo has joined #ruby
cpruitt has quit [Quit: cpruitt]
mercerist has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
NinoScript has quit [Quit: NinoScript]
chrisseaton has joined #ruby
<^conner> crome, I finally found it, it's not in the stubs docs section, it's under message expectations: https://relishapp.com/rspec/rspec-mocks/v/3-0/docs/message-expectations
fgo has quit [Ping timeout: 264 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<^conner> crome, they syntax you used is disabled by default under rspec 3
<crome> oh, you also mean the new syntax
<^conner> 3.0.0 came out today
<^conner> the old syntax generates an error message that you have to manually enable the old syntax
<^conner> it's a new gem so I figured I'd use the non-deprecated syntax ;)
<crome> ^conner: yeah, one of the apps I work on is not very up to date :|
<shevy> I need a lazy way to do testing in ruby
TorpedoSkyline has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
iLeoable has joined #ruby
luckyruby has quit [Quit: Leaving...]
<iLeoable> Hello?
<iLeoable> I need help very badly
NinoScript has joined #ruby
<^conner> crome, expect(Hyperctl::Sysfs).to receive(:disable_core).with(core_id).once
<iLeoable> I ran rake db:migrate RAILS_ENV=production on my Gitorious installation and It gave me a error
TorpedoSkyline has quit [Client Quit]
<iLeoable> Can someone help me?
<^conner> crome, I'm not sure if that's a readability improvement but it does work
<iLeoable> And this is the result http://pastebin.com/raw.php?i=qRhQ51Vp
Olipro has joined #ruby
<RubyPanther> shevy: Lazy as in run when needed, or as in, you don't have to do much work?
danman has joined #ruby
happytux has joined #ruby
<happytux> hi
sleepee has joined #ruby
<happytux> It is possible and if, how can I list all variables currently available in a ruby/rake script?
<happytux> I am interested in the topmost variables.
mikecmpbll has quit [Quit: i've nodded off.]
<iLeoable> Can anybody help me?
<happytux> iLeoable: hi
<l3kn> iLeolable: I think the problem is that your ruby version does not support the new hash syntax {key: value}
<iLeoable> happytux: Hi... I ran rake db:migrate RAILS_ENV=production on my Gitorious installation and It gave me a error
<iLeoable> I am using ruby 1.8
rm_ has joined #ruby
<iLeoable> Should I install ruby 1.9?
jonno11 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ari-_-e> yes
NinoScript has quit [Quit: NinoScript]
<iLeoable> Ok I do that now
<^conner> iLeoable, I would suggest that you use a test environment before making changes to production systems.
<^conner> iLeoable, otherwise, random changes might make the situation worse and/or harder to debug
<^conner> just my 2cents
Zenigor has quit [Remote host closed the connection]
<iLeoable> Ok I will do that
alex2 has joined #ruby
<alex2> Hi
<sleepee> whats up guys. noobie mcnoobster here. quick question. what's a good way to get documentation for 3rd party gems i install? for example, if anybody's familiar with python's help() function, i'd love to know if something like that is available for ruby.
<shevy> RubyPanther well both; I want to keep testing to a minimal, so I don't need 100% testing, but I want to test certain components in some of my projects, especially to ensure that they work even after rewrite or refactoring
<alex2> How list all keywords / method names ?
<shevy> happytux well there is object.instance_variables
<alex2> I’m writing syntax file for Kakoune.
<shevy> happytux, there also is Kernel.local_variables
<ari-_-e> sleepee: perhaps the ri command?
<^conner> alex2, #inspect
<ari-_-e> I don't know how much you'll get about your gems though
<shevy> alex2 interactively you could get tab-completion for a method name, like: Kernel.<PRESS_TAB_NOW>
dodosan has quit [Remote host closed the connection]
<sleepee> i'll give it a shot. basically i'm looking for sort of a man page for methods
<shevy> from ruby itself, I guess you can get it via Kernel.methods.sort ?
<shevy> sorry
<shevy> I meant sleepee
<alex2> not interactively
<ari-_-e> sleepee: ruby doesn't have an equivalent of help() because it doesn't store documentation strings in objects like python does
<alex2> ^conner: Array.inspect ?
timonv has joined #ruby
<alex2> for example
<ari-_-e> sleepee: ri gives you the same stuff you find online
<^conner> alex2, sorry, #methods
<^conner> end of the day here... mind is going
<shevy> catch the mind!
<sleepee> ahhh.. well.. then how do you guys go about picking up new gems?
<sleepee> you use ri?
<shevy> picking up new gems?
<shevy> you can do gem search
<sleepee> i mean learning
Authenti1ator has joined #ruby
<shevy> aha
<shevy> I always go for the online documentation
<RubyPanther> sleepee: online API documents
<shevy> if it has none then I won't use it :)
<ari-_-e> sleepee: you could look into pry also - it's a better irb that lets you look up source code of methods and stuff
<^conner> i typically use gem search first
<^conner> then go to rubygems.org to look for docs
<alex2> ^conner: how list all objects ?
<RubyPanther> if they're not there, it is probably the wrong gem to use ;)
M-Technic has joined #ruby
<shevy> sleepee sometimes you can also search at https://www.ruby-toolbox.com/
<alex2> Array, Hash, etc.
<^conner> alex2, lookup Objectspace
<sleepee> checking it out right now.
Authenti1ator has quit [Client Quit]
Authenticator has joined #ruby
banjara has joined #ruby
kilk_ has quit [Ping timeout: 240 seconds]
<alex2> ^conner: hum
toastynerd has joined #ruby
<sleepee> i had seen that ruby-toolbox site before and i had forgotten about it. i was looking for it all day today. thanks!
timonv has quit [Ping timeout: 264 seconds]
pietr0 has quit [Quit: pietr0]
gigetoo has quit [Ping timeout: 240 seconds]