<cahoots>
hi, i'm trying to install a gem, thor, from a relative path. so i try "require_relative './gems/gems/thor-0.19.4/lib/thor.rb'", but then it tells me, "LoadError: cannot load such file -- thor/base". any ideas?
Azure has joined #ruby
helpa has quit [Remote host closed the connection]
helpa-bot has joined #ruby
postmodern has quit [Remote host closed the connection]
postmodern has joined #ruby
vondruch_ has joined #ruby
helpa-bot has quit [Remote host closed the connection]
nadir has joined #ruby
CustosLim3n has quit [Excess Flood]
vondruch has quit [Write error: Broken pipe]
hongkongphooy has quit [Remote host closed the connection]
CustosLimen has joined #ruby
helpa has joined #ruby
hongkongphooy has joined #ruby
AndrewIsHere has quit []
dcunit3d has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
<ineb>
cahoots: its messy the way you do it. use a gemfile, put your local gem there with "gem 'thor', :path => '/your/local/gem'" then require it in your app normally by "require 'thor'"
kent\n has quit [Quit: No Ping reply in 180 seconds.]
nobitanobi has joined #ruby
kent\n has joined #ruby
duckly has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
catbusters has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Ping timeout: 245 seconds]
csaunders has joined #ruby
ryan_notabot has quit [Ping timeout: 240 seconds]
latemus has quit [Ping timeout: 260 seconds]
nertzy has quit [Quit: Leaving]
outreachdan has joined #ruby
outreachdan has quit [Client Quit]
nertzy has joined #ruby
Bock has joined #ruby
JoshS has joined #ruby
rfoust has joined #ruby
duckpupp1 has joined #ruby
lagweezl1_away is now known as lagweezle
latemus has joined #ruby
duckpupp1 has quit [Ping timeout: 268 seconds]
mjora7 has joined #ruby
_whitelogger has joined #ruby
gusrub has joined #ruby
Puffball has quit [Remote host closed the connection]
iliketurtles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Puffball has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcao219 has joined #ruby
hndk has joined #ruby
SeepingN has joined #ruby
iliketurtles has joined #ruby
Rodya_ has joined #ruby
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
patarr has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
cerulean has joined #ruby
<cerulean>
guys you're gonna love my new ruby project
<cerulean>
it's a floppy disk reader
<cerulean>
File.open support for floppy disks
<cerulean>
bring back the memories of the 80s while slowly accessing slow files in a slow language
<cerulean>
if you want you can forkbomb yourself while you run it and see if you EVER get the files, LOL !
yogg-saron has joined #ruby
hinbody has quit [Ping timeout: 240 seconds]
<havenwood>
cerulean: What? No. That's not how things work at all. Learn the language rather than ranting about it.
hinbody has joined #ruby
<havenwood>
cerulean: Ruby has supported file access to floppy drives since 1995. You're way late. It was never slow.
<cerulean>
i know the language, and every day is april fools here, but i guess maybe i can share my blog post i made about my rails upgrade i made today .. tho i dont know if this is the place :P *silly happy face*
<cerulean>
yea floppy drives and ruby are fast, just joking
blipz has joined #ruby
<havenwood>
They read faster than I do.
<cerulean>
ive been optimizing ruby code for years, you gotta believe me, i dont honestly think it is slow. didnt know floppies werent slow with ruby tho
<cerulean>
its a short article
<cerulean>
if you use sprockets and wanna switch to webpack it might be kinda useful in addition to the existing docs
<havenwood>
cerulean: I saw in #rubyonrails. Rails 5, webapck, rgr.
<cerulean>
might be able to use it to update rails/webpacker docs
<cerulean>
thanks
jcao219 has quit [Ping timeout: 240 seconds]
<havenwood>
Always nice to hone Rails docs. Lots and lots of folk use em.
<cerulean>
yes, i usually never help (usually meaning never) with docs unless i need them personally. but since this was so hard and lasted 24 hours of upgrade. i decided to talk about what i went through in order to ease the transition for other sites. since there were only about 4-5 blog posts i could find including official docs and i was still relatively lost a long way, especially with weird chrome JS errors at e
<cerulean>
very corner. but they can all be conquered with the grail i have delivered there. lol
<cerulean>
i went to sleep while my site was STILL down lol, and then had to wake up and keep fixing for a foor 4-5 hours lol
<cerulean>
foor=good
<cerulean>
i knew it was gonna be too hard and i was too tired and didnt wanna push after a full 12 hour coding spree
<cerulean>
never had to do that before
<cerulean>
i simply wanted to add webpack quick and deploy something i made to production. didnt work out like that lol
aryaching has quit [Ping timeout: 240 seconds]
<cerulean>
there's probably a severe decline in the Ballmer peak when you turn into a zombie, lol
bkxd has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianx has quit [Remote host closed the connection]
<soanvig>
I'm new to IRC but it seems majority of people just have it open, and don't sit here 24/7 :)
jackrandom has quit [Remote host closed the connection]
<go|dfish>
soanvig: hello
blackwind_123 has quit [Ping timeout: 245 seconds]
<nobodyzxc>
soanvig: nobody answered
<soanvig>
nobodyzxc: :D
mooser has joined #ruby
jameser has joined #ruby
<soanvig>
I'm tired of Messenger-like communicators, and wanted to check something new. Well, if I have anything interesting about Ruby, I'll surely write/ask here
Silthias has quit [Ping timeout: 252 seconds]
Silthias1 has joined #ruby
<soanvig>
Once I had had a question about people's Ruby code style, but I forgot what was it about...
<toretore>
use tabs
<soanvig>
You mean what?
jameser has quit [Client Quit]
<soanvig>
Oh, in code style?
mooser has quit [Ping timeout: 260 seconds]
Silthias1 has quit [Ping timeout: 258 seconds]
Silthias has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xpitr>
most of ruby code is horribly wrong with 2-space space tabs :/
mikecmpbll has quit [Quit: inabit. zz.]
<j416>
what's a space tab o_O
soanvig has quit [Ping timeout: 268 seconds]
<ljarvis>
a tab that's travelling the universe
<xpitr>
<- i mean soft tab? or w/e its called. where people without actual tab key on their keyboards press space twice
<xpitr>
and seems to be all to common in ruby libs etc
<ljarvis>
so 2 spaces
<j416>
you mean two spaces
<ljarvis>
but yeah, that's very common in ruby land
<j416>
2 spaces seems common in ruby yeah
<ljarvis>
but not by pressing space twice
<j416>
I indent with 2 spaces when writing ruby
<j416>
seems normal
<ljarvis>
me too, but i do it by pressing tab
<xpitr>
i wanted to start a kickstarter campaign to send those poor coders a keyboard with tab key ...
<j416>
nod
<xpitr>
oh
<j416>
xpitr: it's not about tab key or not
<ljarvis>
^
<j416>
xpitr: it's about convention
<j416>
in ruby land, 2 spaces is common
<xpitr>
i know i know. i just hate that convention :p
<j416>
in other places, tabs are common
<ljarvis>
"people without an actual tab key on their keyboard" -- what kind of devil keyboard is that
<j416>
:D
<xpitr>
ruby keyboard apparently!
<ljarvis>
no, we press tab
<ljarvis>
but the editor knows we want 2 spaces
<ljarvis>
because we're not monsters
<xpitr>
real men use real tabs
nadir has joined #ruby
<ljarvis>
i'll ignore the gender specific comment, but the tabs vs spaces debate is long and unforgiving. Just use what you like and have fun :)
<xpitr>
aww man i was hoping to fire some stakes ;)
mostlybadfly has joined #ruby
<xpitr>
on the other hand, at least no one is trying to hard-enforce coding style like in golang (even though golang's perfect for me)
<ljarvis>
i wouldn't say it's hard-enforced since gofmt is optional. That said, I think having a tool like that is great and would welcome something like that for Ruby (if it was there from the beginning though)
<ljarvis>
if such a tool existed, it would undoubtedly remove all of those pesky tabs and replace them with 2 spaces :)
<xpitr>
i mean, most editors you'd use will integrate gofmt if you install any go specific plugins, packages and whatnot
<xpitr>
so its pretty preeetty enforcing
<ljarvis>
fair comment. I think that's good
<ljarvis>
to a degree anyway
<ljarvis>
Go is the perfect language for it though, imo it's simple and very boring. Very few nuances and almost always 1 way to do something. The opposite to Ruby, really
<j416>
^
<elomatreb>
rubocop can autoformat, but it allows you specify your own style
<j416>
didn't know it could
<j416>
cool
<j416>
I might use that when I get back to ruby
<j416>
s/when/if/
<ljarvis>
i've been meaning to build rubycop into our process at work for a long time :-/
<j416>
heh
<j416>
been there
tlaxkit has joined #ruby
<j416>
I think it's an unwinnable game
<j416>
ultimately there will be differing opinions
<ljarvis>
that's why i've been putting it off, because i would need to configure it quite a lot. We having a basic coding styleguide at work
<elomatreb>
It has a functionality that can generate exceptions for all existing files in a project, so you can start to enforce rules for new code and remove the exceptions as you refactor old stuff
<j416>
the style that gofmt uses is externally dictated, I think that's one reason why it works so well
<ljarvis>
you can dictate the style though, you just have to faff around with config for a while
<ljarvis>
which is.. annoying, but maybe worth it
<j416>
that's the issue; _you_ become the dictator
<j416>
which might work if you own the project
<j416>
otherwise you'll end up with multiple dictators
<ljarvis>
maybe that's not such a bad thing when you manage a team of developers though, at least trying to keep the style semi-consistent. Agreeing on that style can still be a democracy
soanvig has joined #ruby
soanvig has quit [Read error: Connection reset by peer]
<j416>
having the same style is important; agreed
<elomatreb>
Consistent style > "the right" style
<j416>
getting there is hell
<ljarvis>
right, agreed
soanvig has joined #ruby
esObe_ has joined #ruby
<soanvig>
Hi! Is there a way to display chat history?
jameser has joined #ruby
<j416>
soanvig: see the logs link in the topic
<soanvig>
Thanks!
<j416>
o/
soanvig has quit [Read error: Connection reset by peer]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe_ has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
t-recx has joined #ruby
esObe_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
ojab has quit [Ping timeout: 255 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
esObe_ has quit [Remote host closed the connection]
ledestin has joined #ruby
Guest96 has quit [Remote host closed the connection]
GodFather has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest96 has joined #ruby
GodFather has quit [Client Quit]
ledestin has quit [Client Quit]
GodFather has joined #ruby
JeanCarloMachado has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
User458764 has joined #ruby
soanvig has joined #ruby
JeanCarloMachado has joined #ruby
<soanvig>
Back to the tabs-spaces topic: It's more about that space width is known (character width), and tab's size is unknown.
<soanvig>
I can set tab size to "4 chars", other guy to "8 chars" (because he uses spaces and doesn't care about tab size), and my tabbed code will look awful on his configuration
<soanvig>
See github. They have pretty large tab size set on website.
JeanCarloMachado has quit [Ping timeout: 240 seconds]
psylentvoid has joined #ruby
<soanvig>
>> "test"
nobodyzxc has quit [Read error: Connection reset by peer]
<soanvig>
>> 1 + 1
nobodyzxc has joined #ruby
<soanvig>
Nevermind.
Qchmqs__ has joined #ruby
jackrandom has joined #ruby
Qchmqs__ is now known as Qchmqs
<Papierkorb>
soanvig: That is a misconception about tabs. Tabs do not have this issue, as tabs are only used for indention, not for alignment
<Papierkorb>
soanvig: on the other hand, someone decided that "2 spaces" is the perfect case and forced it upon everyone. I also use 2 spaces, but I don't like it.
<soanvig>
Papierkorb: I find soft tabs of size 2 perfectly readable, so I don't bother. On the other hand I prefer 4-spaces indent in HTML, due to it's low readability.
foli has joined #ruby
<soanvig>
Papierkorb: Of course tabs are not used for alignment, but the code may *look* badly with tabs. With spaces it will look the same on each configuration.
<Papierkorb>
It will not look badly, as the user chose to set the tabs to equal 8 spaces, or 4 spaces, or whatever. to the user it will look great.
<Mon_Ouie>
Maybe tabs should not be used for alignment, but they definitely are
<soanvig>
Papierkorb: This may the point actually...
<soanvig>
be the point*
duckpupp1 has joined #ruby
<soanvig>
What's bad about spaces anyway? They give more flexibility if one really wants to align line of code in specific way
<Papierkorb>
you don't use tabs for alignment anyway, so that's fine in any case
Silthias has quit [Ping timeout: 240 seconds]
<Papierkorb>
a modern text editor/IDE should be able to do the right thing and use spaces there
latemus is now known as muhfuhkar
Silthias has joined #ruby
<soanvig>
Presumably - yes. I couldn't get my Sublime Text to do this kind of operations (like proper indentantion of <variable = if \n else \n end>)
jameser has joined #ruby
<soanvig>
Then I need to do something like <2 tabs> (8 spaces) <backspace> (-1 space) to get indentation of 7 spaces.
<soanvig>
Maybe this is the bad example but You know what I mean
<Papierkorb>
you mean alignment?
<soanvig>
Yes
duckpupp1 has quit [Ping timeout: 252 seconds]
<Papierkorb>
You tell your editor that you want to align to 7 spaces. it should notice that when you're in a Hash or so, that you want the next line to be aligned accordingly
<Papierkorb>
The typing experience doesn't change at all
jameser has quit [Client Quit]
<soanvig>
The first line however needs to be made by hand.
<Papierkorb>
sounds like a configuration thing, almost all editors I tried do that automatically for the first line too
<Papierkorb>
just type `{`, hit enter, and it'll auto align
muhfuhkar is now known as latemus
<soanvig>
Yup, they do indent `{` thing, but sometimes I want to align blocks of code in unusual way. Then soft tabs works good, because I can "shorten" one of the tabs by one space, in example.
latemus has quit [Quit: leaving]
biberu has joined #ruby
binaryplease has joined #ruby
Guest96 has quit [Remote host closed the connection]
<soanvig>
Paperkorb: Well, thanks for the discussion. You made my journey more interesting. I'm leaving the bus now. Good bye!
soanvig has left #ruby ["WeeChat 1.6"]
Guest96 has joined #ruby
latemus has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
voltai[m] has joined #ruby
nobodyzxc has quit [Read error: Connection reset by peer]
nobodyzxc has joined #ruby
psylentvoid has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
bmurt has joined #ruby
ikoma has joined #ruby
esObe_ has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Yxhuvud has quit [Remote host closed the connection]
esObe_ has quit [Ping timeout: 260 seconds]
Yxhuvud has joined #ruby
nobodyzxc has left #ruby [#ruby]
User458764 has joined #ruby
johnny56_ has joined #ruby
nowhereman has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
lhambley has joined #ruby
skade_ has quit [Ping timeout: 252 seconds]
TomyLobo has joined #ruby
foli has quit [Ping timeout: 240 seconds]
foli has joined #ruby
barbos has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
Xiti has quit [Quit: Xiti]
milardovich has joined #ruby
Mon_Ouie has quit [Read error: No route to host]
Mon_Ouie has joined #ruby
lhambley has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 260 seconds]
Silthias has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
harfangk has joined #ruby
Rodya_ has joined #ruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
esObe_ has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
mooser has joined #ruby
esObe_ has quit [Ping timeout: 252 seconds]
tomphp has joined #ruby
Guest96_ has joined #ruby
Guest96 has quit [Ping timeout: 240 seconds]
skade_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Silthias has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
ikoma has quit [Ping timeout: 248 seconds]
User458764 has joined #ruby
duckpupp1 has joined #ruby
DLSteve has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
duckpupp1 has quit [Ping timeout: 268 seconds]
raul782 has quit [Ping timeout: 268 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
mooser has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 250 seconds]
sepp2k has joined #ruby
blackmes1 has joined #ruby
Xiti has joined #ruby
barbos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobodyzxc has joined #ruby
skade_ has quit [Ping timeout: 255 seconds]
barbos has joined #ruby
HoierM has joined #ruby
yeticry_ has joined #ruby
houhoulis has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
BSaboia has quit [Ping timeout: 258 seconds]
jeffaustin81 has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
skade_ has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
Xakotu has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
rakm has quit [Client Quit]
skade_ has joined #ruby
romank has joined #ruby
skade_ has quit [Ping timeout: 240 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
bsartek has quit [Quit: Quitte]
<fschuindt>
Folks, I am looping over gets (small CLI personal use gem), but I am getting ^M when I press enter and ^? when I press backspace. Any clue?
<pwnd_nsfw>
Not without any code
Xakotu has joined #ruby
<pwnd_nsfw>
Or demonstration, or yano. Relevant information. Can't read minds
<fschuindt>
I know it's related with TTY, the code is really just a loop over a gets.choomp case statement.
jusa has joined #ruby
Xakotu has quit [Client Quit]
skade_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
jusa has quit [Ping timeout: 252 seconds]
cschneid_ has joined #ruby
skade_ has quit [Ping timeout: 245 seconds]
romank has quit [Read error: Connection reset by peer]
patr0clu1 has quit [Quit: WeeChat 1.4]
dcunit3d has quit [Ping timeout: 240 seconds]
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]