Madplatypus has quit [Quit: Connection closed for inactivity]
cyphase has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
nando293921 has joined #ruby
yfeldblu_ has joined #ruby
ctp has joined #ruby
minimalism has joined #ruby
bkxd has joined #ruby
xentity1x has quit [Ping timeout: 248 seconds]
elifoster has joined #ruby
moneylotion has quit [Ping timeout: 260 seconds]
cyphase has quit [Ping timeout: 265 seconds]
glook has joined #ruby
glook is now known as Guest49305
arashb has joined #ruby
xall has quit [Quit: WeeChat 1.5]
Guest49305 has quit [Client Quit]
Naz has quit [Ping timeout: 265 seconds]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
minimalism has quit [Quit: minimalism]
toni_ has quit [Quit: Leaving]
cyphase has joined #ruby
arashb has quit [Ping timeout: 265 seconds]
minimalism has joined #ruby
Moosashi has quit [Quit: Moosashi]
moneylotion has joined #ruby
owen1_ has joined #ruby
bronson_ has quit [Read error: Connection reset by peer]
bronson has joined #ruby
jaguarmagenta has joined #ruby
alaibe has joined #ruby
bkxd has quit [Ping timeout: 272 seconds]
<owen1_>
i get 'ERROR: Failed to build gem native extension. current directory: /home/oren/t/bundler20161001-18486-1chzn0cnio4r-1.2.1/gems/nio4r-1.2.1/ext/nio4r /usr/bin/ruby2.3 -r ./siteconf20161001-18486-12oh97e.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
<owen1_>
when i run 'bundle update' . any ideas?
merlin2049er1 has quit [Quit: Leaving.]
cyphase has quit [Ping timeout: 252 seconds]
<matthewd>
owen1_: It sounds like you're using a system/distro-provided ruby, and don't have the package installed that contains the development headers
merlin2049er has joined #ruby
toretore has joined #ruby
bronson has quit [Read error: Connection reset by peer]
alaibe has quit [Ping timeout: 248 seconds]
<owen1_>
matthewd: i think i have ruby that came with my ubuntu (16.04) - ruby 2.3.1p112
bronson has joined #ruby
<owen1_>
matthewd: i think you are on to something. what's the easiest way to solve it
<matthewd>
Google says you need the ruby-dev package
<owen1_>
installing it now. thank you
cyphase has joined #ruby
Naz has joined #ruby
bronson has quit [Read error: Connection reset by peer]
Moosashi has joined #ruby
bronson has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
tdy has joined #ruby
merlin2049er has quit [Quit: Leaving.]
merlin2049er has joined #ruby
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
cyphase has quit [Ping timeout: 248 seconds]
merlin2049er has quit [Quit: Leaving.]
merlin2049er has joined #ruby
cyphase has joined #ruby
bronson has quit [Read error: Connection reset by peer]
jaguarmagenta has quit [Remote host closed the connection]
bronson has joined #ruby
jaguarmagenta has joined #ruby
Pumukel has joined #ruby
boogeyman has quit [Quit: bb]
Derperperd has quit [Quit: Derperperd]
monoprotic has quit [Read error: Connection reset by peer]
moneylotion has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cyphase has quit [Ping timeout: 265 seconds]
boogeyman has joined #ruby
matp has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has quit [Ping timeout: 265 seconds]
merlin2049er has quit [Quit: Leaving.]
merlin2049er has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
cyphase has joined #ruby
jaguarmagenta has joined #ruby
moneylotion has joined #ruby
spectrum has quit [Quit: Oh Shidd]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
cyphase has quit [Ping timeout: 248 seconds]
harai has joined #ruby
cyphase has joined #ruby
dtscode has joined #ruby
elifoster has quit [Read error: Connection reset by peer]
Velizar has quit [Quit: Velizar]
brendan- has joined #ruby
GodFather_ has joined #ruby
GodFather_ has quit [Read error: Connection reset by peer]
jcao219 has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Moosashi has quit [Quit: Moosashi]
aryaching has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
beecushman has joined #ruby
xentity1x has joined #ruby
Moosashi has joined #ruby
capitainIsh has joined #ruby
cyphase has joined #ruby
pabloh has quit [Quit: Leaving]
alaibe has joined #ruby
craigp has joined #ruby
symm- has joined #ruby
ichkv has joined #ruby
Pumukel has joined #ruby
FreeAssange has joined #ruby
alaibe has quit [Ping timeout: 244 seconds]
madgen has quit [Ping timeout: 264 seconds]
elifoster has quit [Quit: sleep]
AlphaAtom has joined #ruby
AlphaAtom has quit [Client Quit]
jphase has quit [Ping timeout: 265 seconds]
Pumukel has quit [Ping timeout: 252 seconds]
PickAndMix has joined #ruby
PickAndMix has left #ruby [#ruby]
Devalo has quit [Remote host closed the connection]
jaequery has joined #ruby
jphase has joined #ruby
Vile` has quit [Ping timeout: 272 seconds]
codelogix has joined #ruby
Devalo has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
tmtwd has quit [Ping timeout: 264 seconds]
anisha has joined #ruby
Moosashi has quit [Quit: Moosashi]
claudiuinberlin has joined #ruby
anaiden has joined #ruby
boogeyman has quit [Quit: bb]
codelogix has quit [Ping timeout: 264 seconds]
Moosashi has joined #ruby
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
beecushman has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Moosashi has quit [Client Quit]
idgimg has joined #ruby
arashb has joined #ruby
anaiden has quit [Quit: Leaving]
LoneHermit has joined #ruby
nankyokusei has joined #ruby
harfangk has joined #ruby
Alayde has joined #ruby
arashb has quit [Ping timeout: 248 seconds]
symm-_ has joined #ruby
CharlieLo has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
symm-_ has quit [Client Quit]
<idgimg>
Hello! I am a Ruby novice. I'm having a problem with rubygems on OS X, where many of my gems cause a ruby error when called. 'gem update' tells me that I don't have permission for the Ruby/Gems/ directory.
symm- has joined #ruby
Hyuk has joined #ruby
<idgimg>
This could also be related to the Homebrew package manager, but I'm not sure what part of things would be causing this. I've seen answers to this question say that I should ideally be using rvm for my gems instead of sudo, is this related?
CharlieLo has quit [Ping timeout: 272 seconds]
<Alayde>
Personally I'm a fan of RVM, and it should solve your problem as it places all of your gems in your home directory (~/.rvm/gems)
ec0 has joined #ruby
<idgimg>
That makes a lot of sense! So, how would I cleanly transition to this?
<Alayde>
more or less you just install rvm, install the version of ruby you need (e.g. `rvm install ruby-2.3.1`) and then install whatever gems you need
<idgimg>
Ah, so I did that today. I read through the basics, and best practices in the documentation. But it doesn't account for like, 'hey i fucked up now what'
face has quit [Remote host closed the connection]
tdy-err has quit [Quit: Connection closed for inactivity]
face has joined #ruby
jud has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gingray has joined #ruby
<harfangk>
installing rvm should automatically set your path to use gems in your ~/.rvm/gems path
<elastix>
in case I need to add a - every 3 characters
<matthewd>
elastix: You described a different problem from the one you're trying to solve. Again.
RegulationD has quit [Ping timeout: 264 seconds]
<elastix>
yes :( sorry this was what I expeceted
<matthewd>
I'm quite sure that there's an actual problem description there, which uses actual words, in a sensible order, to state the problem.
<matthewd>
You're actively choosing to reinterpret it for us, instead of copy & paste the real problem statement. That is unhelpful, and so you are unlikely to receive help in turn.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hanmac>
ugh that double "--" is problematic ... :/
AltLock has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.40/20160807101136]]
<matthewd>
elastix: Are there, or are there not, words that describe the problem you're supposed to be solving?
wldcordeiro has quit [Ping timeout: 244 seconds]
NTrash has quit [Quit: Konversation terminated!]
claudiuinberlin has quit []
symm- has quit [Quit: Leaving...]
wldcordeiro has joined #ruby
LoneHermit has joined #ruby
pragmaticus has quit [Ping timeout: 265 seconds]
Pumukel has quit [Ping timeout: 265 seconds]
NTrash has joined #ruby
Pupeno has joined #ruby
vitd has joined #ruby
LoneHermit has quit [Ping timeout: 272 seconds]
tristanp has joined #ruby
Pupeno has quit [Ping timeout: 248 seconds]
Devalo has joined #ruby
tristanp has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby
pawnbox has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 244 seconds]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest43 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
AlphaAtom has quit [Ping timeout: 244 seconds]
maloik25 has joined #ruby
Devalo has quit [Read error: Connection reset by peer]
prawnzy has joined #ruby
Devalo has joined #ruby
kotk has joined #ruby
kotk has quit [Client Quit]
nipher has joined #ruby
<zenspider>
hanmac: 1) don't just give away answers. teach. 2) you're making it too difficult. scan for what you want (numbers) and then treat them (pair and then join)
vitd has quit [Ping timeout: 265 seconds]
maloik has quit [Ping timeout: 265 seconds]
<hanmac>
zenspider: the input format is to complicated ... "'0 - 2" should be treated as one number, while "5--3" is not ... without more description it doesn't make any sense
prawnzy has quit [Ping timeout: 265 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
<zenspider>
hanmac: its numbers with junk around it. scan handles that just fine. you're just making it too complicated with delete and a complicated scan
<zenspider>
ie, scan(/\d/) solves the problem fine
<hanmac>
zenspider: not the last one
<zenspider>
yes, the last one too
bsrd has joined #ruby
<zenspider>
this is fairly plain map & reduce
aidalgol has quit [Quit: zZzZZzz]
bsrd has quit [Client Quit]
<zenspider>
elastix is still in here... otherwise I'd go into it more explictly
dionysus69 has joined #ruby
Pumukel has joined #ruby
<ytti>
&win 20
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
webus has quit [Quit: goodbye]
workmad3 has joined #ruby
_sfiguser has quit [Ping timeout: 252 seconds]
Ropeney has quit [Quit: Leaving]
Pumukel has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
sandelius has joined #ruby
jaiks has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
elastix has quit [Quit: elastix]
NTrash has joined #ruby
elastix has joined #ruby
Pankaj has joined #ruby
<Pankaj>
Hello there. I am new User Please reply
Novice201y has joined #ruby
<Novice201y>
Hello. What should I do to make Ruby 2.3.1 usable in IDE after compilation from from?
<Novice201y>
from source*
sandelius has quit [Client Quit]
workmad3 has quit [Ping timeout: 264 seconds]
hahuang62 has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
bobdobbs has joined #ruby
stamina has joined #ruby
elastix has quit [Quit: elastix]
jenrzzz has joined #ruby
_sfiguser has joined #ruby
hahuang62 has quit [Ping timeout: 265 seconds]
madgen has joined #ruby
workmad3 has joined #ruby
tx0ru4 has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
jcao219 has quit [Ping timeout: 264 seconds]
<Pankaj>
Hello is anybody there
Guest66898 has quit [Ping timeout: 272 seconds]
jonyijoe has joined #ruby
Guest66898 has joined #ruby
Pankaj has quit [Ping timeout: 248 seconds]
tx0ru4 has quit [Quit: Leaving]
jphase has quit [Ping timeout: 248 seconds]
<harfangk>
hi
<harfangk>
Novice201y which IDE are you using?
LoneHermit has joined #ruby
<Novice201y>
harfangk: RubyMine
<harfangk>
if it's rubymine, it has built in rvm/rvenv support so that'd be more convenient
<harfangk>
is there a reason you're directly compiling it from source
<harfangk>
if it works fine for you, then all is well
crameth has joined #ruby
jaiks has quit [Remote host closed the connection]
jaiks has joined #ruby
trampi has joined #ruby
tomphp has joined #ruby
jaiks has quit [Remote host closed the connection]
jaiks has joined #ruby
sandelius has joined #ruby
phil_r has joined #ruby
tomphp has quit [Client Quit]
sandelius has quit [Client Quit]
vuoto has quit [Quit: Lost terminal]
phil_r has quit [Quit: Leaving]
ec0 has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
bobdobbs` has joined #ruby
rafadc has joined #ruby
gingray has joined #ruby
Pupeno has quit [Remote host closed the connection]
sandelius has joined #ruby
bobdobbs has quit [Ping timeout: 265 seconds]
vitd has joined #ruby
Pupeno has joined #ruby
jphase has joined #ruby
rafadc has quit [Ping timeout: 265 seconds]
ichkv1 has joined #ruby
ichkv has quit [Ping timeout: 244 seconds]
ec0 has quit [Ping timeout: 272 seconds]
nankyokusei has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<Novice201y>
Could someone write me simple contoller that should be on https://devcenter.heroku.com/articles/getting-started-with-rails5 below "We will first create a controller called welcome for our home page to live:"? - I want to focus on something else now than Ruby code.
CharlieLo has joined #ruby
tomphp has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
<matthewd>
Novice201y: The generator does that for you
jaguarmagenta has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
sameerynho has joined #ruby
<zenspider>
I *love* it when someone wants help, has you pour over a thousand lines of output, and then doesn't answer basic questions.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
<zenspider>
aaand going to bed
lxsameer has quit [Ping timeout: 244 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
NuckingFuts has quit [Ping timeout: 264 seconds]
ac07682 has joined #ruby
nuck has joined #ruby
nuck is now known as Guest32525
Hyuk has joined #ruby
ichkv1 has quit [Ping timeout: 265 seconds]
Pumukel has joined #ruby
<ac07682>
Afternoon all
SpX has joined #ruby
workmad3 has joined #ruby
phoo1234567 has joined #ruby
jaguarmagenta has joined #ruby
lempa has quit [Ping timeout: 276 seconds]
lel has joined #ruby
Devalo has quit [Remote host closed the connection]
lel has quit [Client Quit]
faces has joined #ruby
lel has joined #ruby
tomphp has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
<tty1>
ac07682: good morning
face has quit [Ping timeout: 252 seconds]
<miqlas-H>
zenspider: yep, it is on Haiku, in chroot
<miqlas-H>
zenspider: sorry, i just had a talk with somebody, i haven't noticed your question.
yokel has quit [Ping timeout: 244 seconds]
genpaku has quit [Ping timeout: 276 seconds]
<miqlas-H>
And i thought the line "checking build system type... i586-pc-haiku" should answer plenty question.
blackmesa has quit [Quit: WeeChat 1.5]
yokel has joined #ruby
genpaku has joined #ruby
Xing has joined #ruby
Xing has quit [Client Quit]
workmad3 has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Remote host closed the connection]
Gasher has joined #ruby
jaguarmagenta has joined #ruby
pwnd_nsfw has joined #ruby
stamina has quit [Quit: WeeChat 1.5]
pwnd_nsfw` has quit [Ping timeout: 272 seconds]
Devalo has joined #ruby
claudiuinberlin has joined #ruby
agit0 has joined #ruby
CamonZ has joined #ruby
Devalo has quit [Remote host closed the connection]
Vile` has joined #ruby
<matthewd>
miqlas-H: Well the obvious observation is that the openssl headers it's built against seem to differ from the library it's finding at runtime
<miqlas-H>
oh, ok.
<miqlas-H>
matthewd: the log made in chroot. outside of chroot i was able to compile ruby withut problems.
nipher_ has joined #ruby
nipher has quit [Read error: Connection reset by peer]
<miqlas-H>
but in chroot i get the same problems all the time.
<miqlas-H>
lemme show you my chroot settings.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ahenne>
i'm trying to send a post request to make a deletion with the data-method delete attribute on a site but i'm getting a 500 error
<soahccc>
ahenne: Then check the logs :)
<Papierkorb>
?crosspost ahenne
<Papierkorb>
damn bot
sp_ has joined #ruby
<Papierkorb>
ahenne: Please, if you have to cross post a question, make it clear that you did, and where else you have posted the question. Otherwise this is considered rude.
<ahenne>
soahccc: basically i would like to make an extension that deletes posts automatically instead of you clicking on the delete button
Pumukel has joined #ruby
Xing has quit [Client Quit]
devmagpie has joined #ruby
Xing has joined #ruby
<soahccc>
ahenne: as I said, check the logs, my suspicion is that you miss the csrf token or something
vitd has joined #ruby
Xing has quit [Max SendQ exceeded]
Xing has joined #ruby
<ahenne>
soahccc: thanks i don't know how to check the logs but i get error messages in chrome and i am not the owner of the site or servers
loechel has joined #ruby
vuoto has quit [Quit: Lost terminal]
jenrzzz has joined #ruby
<soahccc>
ahenne: then we can't help you. it could literally be anything
blackwind_123 has quit [Ping timeout: 244 seconds]
Pumukel has quit [Ping timeout: 252 seconds]
lucasb_ has joined #ruby
Pumukel has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
blackwind_123 has joined #ruby
rafadc has joined #ruby
despai has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
ahenne has quit [Quit: Page closed]
prawnzy has joined #ruby
Pumukel has joined #ruby
rafadc has quit [Ping timeout: 252 seconds]
<_sfiguser>
which are the applications of "eval" ?
loechel has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
prawnzy has quit [Ping timeout: 244 seconds]
cibs has joined #ruby
last_staff has joined #ruby
last_staff has quit [Excess Flood]
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 252 seconds]
last_staff has joined #ruby
Pumukel has joined #ruby
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
zeroDi has joined #ruby
j3ll3 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tvw has joined #ruby
loechel has quit [Ping timeout: 252 seconds]
Hyuk has joined #ruby
rose has joined #ruby
Pumukel_ has quit [Ping timeout: 252 seconds]
<rose>
I've installed gtk3 gem, but when I run ruby -e "require 'gtk3'", I have the output: (null)-WARNING **:Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
AlphaAtom has joined #ruby
vuoto has joined #ruby
binaryplease has joined #ruby
rose__ has joined #ruby
bluOxigen has joined #ruby
Xing has quit [Quit: Leaving]
<hanmac>
!fixcon Pumukel
rose has quit [Ping timeout: 248 seconds]
<hanmac>
rose: that warning is normal, other (system installed) gtk applications from me does show that too
jaguarmagenta has joined #ruby
sp_ has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
jaguarmagenta has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vuoto has quit [Remote host closed the connection]
vitd has joined #ruby
banisterfiend has joined #ruby
Devalo has quit [Remote host closed the connection]
thbar has joined #ruby
Novice201y has joined #ruby
<Novice201y>
Hello. Do I need ruby to run rvm?
Pupeno has quit [Remote host closed the connection]
Devalo has joined #ruby
despai has quit [Read error: Connection reset by peer]
peteykun has quit [Quit: Leaving]
thbar_ has joined #ruby
despai has joined #ruby
bsrd has joined #ruby
sp_ has joined #ruby
thbar has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
Devalo has quit [Ping timeout: 272 seconds]
despai has quit [Quit: This computer has gone to sleep]
Pupeno has joined #ruby
sp_ has quit [Ping timeout: 265 seconds]
bsrd has quit [Quit: WeeChat 1.5]
<Novice201y>
Do i need ruby to run rvm, or can install ruby from rvm itself on new machine?
tk__ has quit [Quit: ばいばい]
conta has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb>
Novice201y: RVM is just a "ruby version manager". You can use anything you like to install ruby. Besides your distributions repository, there's also chruby, or rbenv
pawnbox has joined #ruby
<Novice201y>
Papierkorb: NICE
<Papierkorb>
And rvm also does some magic things to your shell, which is why I don't want to recommend using it anyway.
<Papierkorb>
Novice201y: If you're using a distribution more on the bleeding-edge spectrum, like ArchLinux, you should be fine just installing ruby from the repository
vitd has quit [Ping timeout: 252 seconds]
<hanmac>
i used rvm to build recent ruby-head stuff (good that it also rebuild my installed gems) ... but rvm is currently broken for my system :( (rubygems did broke rvm)
nankyokusei has joined #ruby
<Novice201y>
Papierkorb, hanmac TU
nando293921 has joined #ruby
zacts has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
fmcgeough has quit [Quit: fmcgeough]
thbar_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lucasb_>
use 2 spaces always. will be easier for others to read your code and help you
<matthewd>
_sfiguser: How is its behaviour differing from what you expect?
<_sfiguser>
lucasb_, i'm using two spaces...
<_sfiguser>
but when pasting it changes indentation
<apeiros>
I guess you use hard-tabs
vdamewood has joined #ruby
nadir has joined #ruby
jphase has quit [Ping timeout: 265 seconds]
rippa has quit [Ping timeout: 264 seconds]
<_sfiguser>
apeiros, what are hard tabs ?
Pupeno has quit [Remote host closed the connection]
<lucasb_>
>> puts "\t".ord
<_sfiguser>
lucasb_, i don't understand your answer
<_sfiguser>
sorry
AlphaAtom has joined #ruby
<lucasb_>
_sfiguser: it's ok. a hard tab is a character, different from space. don't worry, it's not important. you'll get the details with time and practice
despai has quit [Read error: Connection reset by peer]
elifoster has joined #ruby
zeroDi has joined #ruby
j3ll3 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
despai has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
<_sfiguser>
lucasb_, thanks... do you suggest to use spaced tabs ?
<_sfiguser>
i mean tabs composed by spaces ?
jphase has joined #ruby
<lucasb_>
_sfiguser: it's better to have a properly configured text editor. but if that's not possible, you can always press the space bar 2 times
dhk has quit [Quit: Leaving]
charliesome has joined #ruby
<_sfiguser>
lucasb_, i'm using vim
<_sfiguser>
and i've set ts=2 and sw=2
<_sfiguser>
for ruby files
<lucasb_>
:set et
<lucasb_>
expandtab
AngrySpam98 has joined #ruby
LoneHermit has joined #ruby
<AngrySpam98>
what is the point of ruby tho
harai has joined #ruby
<_sfiguser>
ok lucasb_
<_sfiguser>
i'll try
CHoltk has quit [Ping timeout: 272 seconds]
Hyuk has joined #ruby
j3ll3 has joined #ruby
Alayde has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
daemonwrangler has quit [Quit: ZNC 1.6.3+deb1+jessie0 - http://znc.in]
djbkd has joined #ruby
daemonwrangler has joined #ruby
djbkd has quit [Remote host closed the connection]
armyriad has quit [Quit: Leaving]
rafadc has quit [Ping timeout: 272 seconds]
armyriad has joined #ruby
jphase has quit [Ping timeout: 265 seconds]
lucast has joined #ruby
daemonwrangler has quit [Client Quit]
daemonwrangler has joined #ruby
Alayde has quit [Ping timeout: 272 seconds]
skweek has quit [Ping timeout: 248 seconds]
ponga has quit [Quit: Connection closed for inactivity]
<tty1>
Hey, is there a way for me to load a library dynamically.. In other words a user types in the name of some module name, and my program will pass that to require to load the module and then call methods (the names of the methods are predefined) within that module?
despai has quit [Client Quit]
<_srose_>
Maybe load(filename) ?
<Papierkorb>
_srose_: What's a "library"?
<_srose_>
Papierkorb: tty1 asked, not me.
hahuang62 has joined #ruby
<Papierkorb>
tty1: What's a "library"?
<Papierkorb>
_srose_: ah sorry, both your nicks have the same color in my client Oo
xubunto has joined #ruby
capitainIsh has joined #ruby
despai has joined #ruby
catphish has joined #ruby
hahuang62 has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
<catphish>
here's an interesting and confusing thing, File.stat returns a File::Stat which has blksize and blocks
<catphish>
however, while the block size is correct, 4096, the "blocks" are actually in units of 512 bytes
<catphish>
linux's stat command returns the same data, calling it calls it "blocks" and "io block"
jaguarmagenta has quit [Remote host closed the connection]
<tty1>
Papierkorb: a gem that is installed somewhere
<tty1>
Papierkorb: and thus can be loaded using require
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<Papierkorb>
tty1: Then `require`
kanyewezt has joined #ruby
<Papierkorb>
tty1: #require is not a "magic" command in ruby, you can just call it at runtime and it'll happily load whatever path you tell it
despai has quit [Read error: Connection reset by peer]
R\w\C has joined #ruby
<tty1>
Papierkorb: yea but after i call require how do i call stuff that is in the Module since I dnt know the name of the module before hand (only the name of the method)
despai has joined #ruby
<Papierkorb>
tty1: Then you have to "guess" based on the name, e.g. by transforming something like "foo_bar" to "FooBar" (String#gsub is your friend), and then looking that up through Kernel#const_get
sp_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<Papierkorb>
tty1: After you have the Module itself, you can call methods on it
dionysus69 has quit [Ping timeout: 272 seconds]
despai has quit [Client Quit]
R\w\C has quit [Client Quit]
<tty1>
Papierkorb: so basically the user has to provide both the name of the library (the argument passed to require) and the module name itself
beauby has quit [Read error: Connection reset by peer]
<elomatreb>
tty1: Usually files (and their containing directories) containing modules/classes follow a naming convention
<tty1>
Papierkorb: thats rather annoying, there has to be a better way
<Papierkorb>
tty1: Yes, if the name of the library is not sufficient to exactly guess the module name based on it
<tty1>
elomatreb: yes but it isnt garunteed
<tty1>
Papierkorb: this is basically going to be a plugin framework for a larger app.. there has to be a better way to do this
<elomatreb>
This is how Rails does it; so I'd assume there isn't a better way
<Papierkorb>
tty1: Well, if you do it this way you can just force developers of those libraries to abide by this rule.
<Papierkorb>
Document it and then enforce it
madgen has quit [Ping timeout: 244 seconds]
* elomatreb
wonders if one could use ObjectSpace monitoring here?
<tty1>
hmm actually i think i have an idea for a better approach
<tty1>
maybe..
<Papierkorb>
It's a perfectly reasonable thing to expect external developers to be able to read two lines of documentation saying "name the module properly or it will fail"
<Papierkorb>
tty1: Every other option is much more magic and thus more prone to errors
<elomatreb>
Or provide a mechanism that assumes the module name based on the file, but also allows the user to pass the module name if it differs
Guest43 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<Papierkorb>
tty1: You could of course use the `parser` gem to read the library source code and then guess which module could be the right one. That will quickly explode though. And this stuff will do two things: 1) Developers with brain will complain about this magic gimmicky stuff 2) Everyone else will be surprised that after a innocent code change the plugin doesn't work anymore
Jackneill has quit [Remote host closed the connection]
User458764 has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
despai has joined #ruby
nando293921 has quit [Ping timeout: 272 seconds]
beauby has joined #ruby
dagda1_ has joined #ruby
Rodya_ has quit [Ping timeout: 248 seconds]
xubunto has left #ruby [#ruby]
jphase has quit [Ping timeout: 265 seconds]
vdamewood has quit [Quit: Life beckons.]
bluOxigen has quit [Ping timeout: 265 seconds]
<tty1>
Papierkorb: i was thinking mroe along the lines of getting rid of the whole need for detecting the module name at all and instead they can writ ethe code in the root (outside of the module) and append the module to some shared array
<Papierkorb>
in the .register method you can then e.g. call some initialization handler in the plugins module, or notify other objects that there's a new plugin available
<tty1>
hmm
<Papierkorb>
That's basically like Roda or Sequel does it
DoubleMalt has joined #ruby
beauby has joined #ruby
skweek has joined #ruby
gingray has joined #ruby
JoshS has quit [Quit: Leaving]
tvw has quit [Remote host closed the connection]
nankyokusei has joined #ruby
despai has joined #ruby
tvw has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
magellanicloud has joined #ruby
nando293921 has joined #ruby
beauby has quit [Read error: Connection reset by peer]
beauby has joined #ruby
bsrd has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
Silthias has quit [Ping timeout: 252 seconds]
Silthias has joined #ruby
User458764 has joined #ruby
boogeyman has joined #ruby
User458764 has quit [Ping timeout: 272 seconds]
tty1 has quit [Read error: Connection reset by peer]