SeepingN has quit [Quit: The system is going down for reboot NOW!]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
n0m4d1c has quit [Ping timeout: 246 seconds]
Yxhuvud has joined #ruby
jready has quit [Remote host closed the connection]
jready has joined #ruby
n0m4d1c has joined #ruby
harrycs has quit [Ping timeout: 276 seconds]
despai has quit [Read error: Connection reset by peer]
obzidian has quit [Remote host closed the connection]
despai has joined #ruby
weaksauce has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jready has quit [Ping timeout: 240 seconds]
n0m4d1c has quit [Ping timeout: 256 seconds]
<kapil___>
NL3limin4t0r_afk: thanks a lot
cats has quit [Ping timeout: 265 seconds]
cats has joined #ruby
gizmore|2 has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
cyberg has quit [Quit: Leaving]
ciscam has quit [Ping timeout: 260 seconds]
Yxhuvud has joined #ruby
ciscam has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
vutral|kali has quit [Quit: Lost terminal]
dang`r`us has left #ruby ["WeeChat 2.0.1"]
bmurt has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
skw has joined #ruby
hammer has joined #ruby
harrycs has joined #ruby
<mikhael_k33hl>
I'm trying to test a class within a module. How do I instantiate it? I'm getting an error: "./mirror_notification.rb:46:in `<main>': uninitialized constant Report (NameError)"
<havenwood>
mikhael_k33hl: If you have Merdule::Klass instantiate it with Merdule::Klass.new.
chouhoulis has quit [Remote host closed the connection]
skw has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
n0m4d1c has joined #ruby
<mikhael_k33hl>
havenwood: I'm getting an error: "uninitialized constant "#{ModuleName}" (NameError)
n0m4d1c_ has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
n0m4d1c_ has quit [Read error: Connection reset by peer]
n0m4d1c_ has joined #ruby
workmad3 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
n0m4d1c has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
konsolebox has quit [Ping timeout: 265 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
dinfuehr_ has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
despai has quit [Quit: ...]
hammer has quit [Ping timeout: 240 seconds]
sameerynho has quit [Ping timeout: 240 seconds]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
<mikhael_k33hl>
What text editors are you using guys? vim?
RougeR has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
<mozzarella>
neovim
samort7 has quit []
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
<mikhael_k33hl>
mozzarella: haha, love the caption "literally the future of vim", I'll give this one a try :)
harrycs has quit [Remote host closed the connection]
ramfjord has joined #ruby
harrycs has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
icarus has quit [Ping timeout: 260 seconds]
harrycs has quit [Remote host closed the connection]
netherwolfe__ has joined #ruby
harrycs has joined #ruby
moei has quit [Quit: Leaving...]
ramfjord has quit [Ping timeout: 246 seconds]
harrycs has quit [Remote host closed the connection]
ramfjord has joined #ruby
netherwolfe__ has quit [Ping timeout: 256 seconds]
hammer has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
n0m4d1c_ has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
hammer has quit [Ping timeout: 256 seconds]
Psybur has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
<weaksauce>
mikhael_k33hl spacemacs
ramfjord has quit [Ping timeout: 275 seconds]
alfiemax has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
mtkd has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
chrisgopher has quit [Remote host closed the connection]
<mr-robert>
but havenwood is!
<havenwood>
#!> SystemStackError: stack level too deep
<havenwood>
Oh, I'm a bad human REPL. I imagined the missing "}" in the wrong place.
<havenwood>
#=> [false, false, false]
cadillac_ has quit [Ping timeout: 240 seconds]
<havenwood>
Or maybe I'm a fine REPL but my stack is too small. I dunno!
Dimik has quit [Ping timeout: 264 seconds]
cadillac_ has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
redlegion has quit [Remote host closed the connection]
Yxhuvud has joined #ruby
redlegion has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
AJA4350 has quit [Quit: AJA4350]
Yxhuvud has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
vondruch has quit [Client Quit]
vondruch has joined #ruby
hammer has joined #ruby
cadillac_ has quit [Ping timeout: 276 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
cadillac_ has joined #ruby
workmad3 has joined #ruby
cagomez has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
arescorpio has quit [Quit: Leaving.]
Yxhuvud has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
vondruch has quit [Quit: vondruch]
cagomez has quit [Ping timeout: 256 seconds]
vondruch has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
char_var[buffer] has quit [Ping timeout: 264 seconds]
konsolebox_ has joined #ruby
arcturiaen_ has joined #ruby
alfiemax has joined #ruby
ReinH_ has joined #ruby
kireevco has quit [Ping timeout: 256 seconds]
ckrailo has quit [Ping timeout: 256 seconds]
ReinH has quit [Ping timeout: 256 seconds]
arcturiaen has quit [Ping timeout: 256 seconds]
ReinH_ is now known as ReinH
arcturiaen_ is now known as arcturiaen
^raz^ has joined #ruby
matti_ has joined #ruby
law_ has joined #ruby
raz has quit [Excess Flood]
konsolebox has quit [Write error: Connection reset by peer]
matti has quit [Remote host closed the connection]
colstrom has quit [Ping timeout: 261 seconds]
micalexander has quit [Ping timeout: 261 seconds]
reu has quit [Ping timeout: 261 seconds]
Evesy has quit [Ping timeout: 261 seconds]
shortdudey123 has quit [Ping timeout: 261 seconds]
agrecascino has quit [Ping timeout: 260 seconds]
Evesy_ has joined #ruby
reu has joined #ruby
shortdudey123 has joined #ruby
law has quit [Remote host closed the connection]
agrecascino has joined #ruby
mjacob_ has joined #ruby
alnewkir1 has joined #ruby
bheesham1 has joined #ruby
gremax has quit [Ping timeout: 266 seconds]
alnewkirk has quit [Ping timeout: 266 seconds]
mjacob has quit [Ping timeout: 266 seconds]
bheesham has quit [Ping timeout: 266 seconds]
c0ncealed1 has quit [Ping timeout: 246 seconds]
c0ncealed1 has joined #ruby
mozzarella has quit [Quit: WeeChat 2.0.1]
mozzarella has joined #ruby
MyMind has joined #ruby
Sembei has quit [Ping timeout: 265 seconds]
minimalism has joined #ruby
govg has joined #ruby
orbyt_ has quit [Ping timeout: 271 seconds]
oleo has quit [Quit: Leaving]
govg has quit [Remote host closed the connection]
govg has joined #ruby
sauvin has joined #ruby
chongtx has joined #ruby
anisha has joined #ruby
chongtxtx has quit [Ping timeout: 256 seconds]
moei has joined #ruby
ramfjord has joined #ruby
govg is now known as Guest41134
ramfjord has quit [Ping timeout: 256 seconds]
minimalism has quit [Quit: minimalism]
endemic has joined #ruby
Yzguy has quit [Quit: Zzz...]
Yzguy has joined #ruby
ryzokuken has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
stanford_AI has joined #ruby
<stanford_AI>
What's a low computation algorithm for finding the biggest common substring in two strings? Example "hello how are you?" and "tomorrow are yes" = "w are y"
luna_x[m] has joined #ruby
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
Yzguy has quit [Ping timeout: 240 seconds]
neuromanc_r has joined #ruby
iceskins[m] has joined #ruby
gremax has joined #ruby
phaul has joined #ruby
erlend has quit [Ping timeout: 276 seconds]
erlend has joined #ruby
armyriad has quit [Quit: Leaving]
hkais has joined #ruby
<dminuoso>
stanford_AI: That's a standard CS problem. Google for an algorithm.
<apeiros>
brosso: it shows "\x5e" as "^" the same way it will show "A" as "A" and not as "\x41"
amar has joined #ruby
<apeiros>
and normally you'll be quite happy about that, since otherwise strings would become rather illegible
<brosso>
canton7: I'm following a tutorial and it's just an example
<phaul>
apeiros: where's rubybot?
amar has quit [Remote host closed the connection]
<brosso>
apeiros: thank you
<apeiros>
phaul: good question
amar has joined #ruby
<apeiros>
what a skulker…
apparition has joined #ruby
<phaul>
:)
tvw has joined #ruby
dr3w_ has joined #ruby
ruby[bot] has joined #ruby
zautomata has joined #ruby
<apeiros>
probably got stranded on a netsplit or somesuch
<mnemon>
brosso: do you understand what you're doing? concatting 2byte strings input in Hex notation and not the strings C0DE and BA5E ? :P
amar has quit [Ping timeout: 256 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
donofrio has joined #ruby
brosso has quit [Read error: Connection reset by peer]
ben has joined #ruby
<ben>
hi, as a matter of style, is it a good idea to put a `then` at the end of lines that are `if <condition>`?
tomphp has joined #ruby
Burgestrand has joined #ruby
mtkd has joined #ruby
sundhell_away is now known as sundhell
<phaul>
I can only tell you what I do, ppl might disagree. If there is a single expression in the if (but we also have the else case) I write them on the same line and use 'then'. Otherwise I don't use then. same goes for case when. If it's single expression and there is no else case I use the postfix if.
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
hammer has quit [Ping timeout: 265 seconds]
<apeiros>
ben: I read this as your condition having multiple lines? if so, then the better idea is to extract the condition into either separate statements or a method
<ben>
apeiros: no, just "if foo then" vs "if foo" as a style question, for reasonably short "foo"s
<apeiros>
I prefer with "then", but due to company style guide, I stopped using it.
<apeiros>
or for your situation: it doesn't matter. just make sure you have a consistent style in whichever group of programmers you are.
Torstein has joined #ruby
<Torstein>
hello :)
<apeiros>
hi
<Torstein>
is Random platform independent, that is - if given a seed, it will give me the same random numbers independent of the platform?
ltt has quit [Client Quit]
maufart__ has joined #ruby
ur5us has quit [Remote host closed the connection]
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
John_Ivan has joined #ruby
<apeiros>
Torstein: those you can seed should, yes
<ben>
apeiros: the local style is unclear which is why I'm trying to get an idea for outside opinions. the group of programmers is me who doesn't use `then`, someone who seems to do so, and someone else who i mistakenly advised to avoid `then` before i noticed the other guy was using a lot of `then`
<apeiros>
throw a coin
karapetyan has joined #ruby
<apeiros>
IME the actual style you follow doesn't really matter. things you liked you'll dislike after doing differently long enough.
<Torstein>
do you think it extends even to ruby to javascript transpilers like opal?
<apeiros>
Torstein: no idea. but that's trivial to experimentally establish.
<ben>
apeiros: yeah, but i wouldn't want to throw a coin and then get stuck with a perfectly reasonable style that just happens to be the utter minority once we step outside our bubble
<ben>
:)
<Torstein>
I want to distribute my ruby to windows :/
<Torstein>
my ruby app*
<apeiros>
ben: then google "ruby code styleguide". there are a couple. but none come with # of people using the styleguide
<al2o3-cr>
ben: i sometimes use `then` when it's a one-liner
<ben>
which is why i hoped people in here might have some intuition for those numbers :P
<Torstein>
whats the question?
<phaul>
we could vote :)
<apeiros>
ben: I'd assume the majority skips the "then"
<apeiros>
I have no idea by what margin or whether it's even right :)
<ben>
Torstein: My question was "if foo" vs "if foo then" (when it's not a one-liner or w/e)
<al2o3-cr>
if it's not needed why use it.
AJA4350 has joined #ruby
<Torstein>
I just defer to the default rules from rubocop :P
<apeiros>
I used it because I found it more pleasant to read
<ben>
apeiros: before today I assumed it was like 99.99% skipping "then", so I'm rapidly recalibrating my expectations :)
Burgestrand has quit [Quit: Closing time!]
dionysus69 has quit [Read error: Connection reset by peer]
<al2o3-cr>
comes down to personal opinions really.
<ben>
al2o3-cr: i tend to agree
dionysus69 has joined #ruby
<phaul>
rubocop and such are such a PITA though.
<Torstein>
rubocop says no to use if foo then for multilines
<apeiros>
I hate at least 20 default settings of rubocop with passion 😂
<Torstein>
yeah, me too
<Torstein>
but lately I just ran rubocop -a, and it doesnt bother me as much as I thought it would
<Torstein>
only exception I got is line length
<Torstein>
(and block length for my specs)
alfiemax_ has quit [Remote host closed the connection]
<tbuehlmann>
except rubocop -a can generate invalid ruby code
<tbuehlmann>
so be careful
<phaul>
today I had argument name too short. x, y for 2d coordinates..
<Torstein>
:/
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
<Torstein>
yeah, there are some stupid errors
roshanavand has joined #ruby
<apeiros>
call them `eccs` and `why`
<Torstein>
I got a method containing only a case switch... it's 12 lines and "too long"
<apeiros>
(not sure what a proper phonetic spelling for x is in english)
<dminuoso>
phaul: rubocop is fine, just tweak rules.
<dminuoso>
The main problem is that rubocop is rather opioninated and too many idiots blindly listen to the defaults.
jeffreylevesque has quit [Ping timeout: 264 seconds]
<dminuoso>
adhering to whatever defaults Rubocopy has is more important than configuring Rubocop to enforce _your_ style
chouhoulis has joined #ruby
<phaul>
it should come with a disclaimer. Or no defaults at all
<apeiros>
no defaults would make it unusable for most
<apeiros>
almost nobody wants to go through a setup step which requires a hundred multiple choice questions to be answered
<phaul>
you could just answer a few that you care about, and use it fore those rules...
<apeiros>
ah, you mean for where no configuration exists, it simply shouldn't check at all?
<phaul>
yes
<dminuoso>
phaul: false-positives are fine.
<dminuoso>
If you get them, change the rule.
<apeiros>
ok, that makes sense
<apeiros>
phaul: maybe there's a config template for "disable all checks"
<phaul>
I admit I haven't looked into it much detail, I will investigate when I have time
<phaul>
I am going afk, need to get some lunch..
karapetyan has quit [Remote host closed the connection]
erlend has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 276 seconds]
erlend has joined #ruby
karapetyan has joined #ruby
Cavallari has joined #ruby
Cavallari1 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ltt has joined #ruby
yohji has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
Cavallari has quit [Ping timeout: 264 seconds]
Cavallari1 is now known as Cavallari
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troulouliou_divn has quit [Remote host closed the connection]
troulouliou_div2 has quit [Read error: Connection reset by peer]
troulouliou_div2 has joined #ruby
ltt has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 256 seconds]
ldnunes has joined #ruby
Mike11 has quit [Quit: Leaving.]
synthroid has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
sundhell is now known as sundhell_away
schneider has quit [Quit: WeeChat 2.0.1]
troulouliou_div2 has quit [Read error: Connection reset by peer]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
milanj has joined #ruby
sundhell_away is now known as sundhell
bmurt has joined #ruby
<milanj>
I want to dispatch on ruby version at runtime, is it possible to do that in "load time" or I need to do that at runtime ?
hammer has joined #ruby
karapetyan has quit [Remote host closed the connection]
<dminuoso>
milanj: What exactly is "load time"
karapetyan has joined #ruby
<milanj>
not sure how to call it in ruby context
hammer has quit [Ping timeout: 265 seconds]
<milanj>
compile -> load -> execute
<milanj>
I guess my question is it possible not to do it at runtime
hammer has joined #ruby
<dminuoso>
milanj: I can think of some mechanisms, but they are not really ruby related.
<dminuoso>
milanj: Ruby itself does not let you hook into the compilation process.
<apeiros>
?xy
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<apeiros>
milanj: what's the problem you're trying to solve by "dispatch in load time" (regardless of what it is actually supposed to mean)
<milanj>
anyway, I can look at RUBY_VERSION
<milanj>
that's good enough
hammer has quit [Ping timeout: 276 seconds]
mtkd has quit [Ping timeout: 256 seconds]
zautomata has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
milanj has left #ruby ["Leaving"]
vondruch has joined #ruby
rabajaj has quit [Quit: Leaving]
NL3limin4t0r_afk is now known as NL3limin4t0r
vondruch has quit [Client Quit]
vondruch has joined #ruby
<NL3limin4t0r>
ben: The Ruby style guide says the following: " Do not use then for multi-line if/unless."
<konsolebox_>
Yogui: do you have both /usr/local/bin/bundle and /usr/bin/bundle?
troulouliou_div2 has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
<Yogui>
yes i have both
<konsolebox_>
perhaps you just have to uninstall the one in /usr/local/bin
<Yogui>
is it with apt?
<konsolebox_>
with 'gem'
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Yogui>
Gem 'bundler' is not installed
<konsolebox_>
you ran that as root?
apeiros has quit [Ping timeout: 260 seconds]
<Yogui>
as the user it wouldn't run, so yes i ran gem uninstall bundler as root
gix- has quit [Quit: Client exiting]
<konsolebox_>
Yogui: what is your ruby version?
<Yogui>
never mind i mv'ed /usr/local/bin/bundle to something else
<konsolebox_>
well ok
<konsolebox_>
there's another why. it's by specifying -i
<Yogui>
konsolebox_ the system version seems to be 2.1.0 but the one set with rvm is 2.5.0
netherwolfe__ has joined #ruby
<Yogui>
ok it's installing everything anew
<Yogui>
i think i didn't read the nice warning the first time
<Yogui>
"Your user account isn't allowed to install to the system Rubygems"
<Yogui>
they told me to use the --path option right there :/
gix has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
<Yogui>
konsolebox_ by specifying -i on what command?
troulouliou_div2 has quit [Read error: Connection reset by peer]
yeticry has quit [Ping timeout: 240 seconds]
<konsolebox_>
Yogui: i don't have rvm so i'm not sure how it should be specified. but in my system if i had installed something in /usr/local, it would be 'gem uninstall -i /usr/local/lib64/ruby/gems/2.2.0 bundler'
hammer has joined #ruby
<Yogui>
good to know
<konsolebox_>
apparently i'm still using 2.2 even though i already have 2.5
yeticry has joined #ruby
<Yogui>
i'm not a ruby or raild dev myself, i just need it to host a redmine instance
<Yogui>
bundle install finished with success, but two warnings
Burgestrand has joined #ruby
<Yogui>
executable-hooks and gem-wrappers warn about the following: Ignoring executable-hooks-1.4.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.4.2
ryzokuken has joined #ruby
<Yogui>
oh and this one too: Warning: the running version of Bundler (1.13.6) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
<Yogui>
so i still have a permission problem
gix has quit [Quit: Client exiting]
ltt has joined #ruby
gix has joined #ruby
<konsolebox_>
you probably have to install a bundler for your user
sidx64 has joined #ruby
<Yogui>
yes i'm trying to: gem install bundler | ERROR: While executing gem ... (Gem::FilePermissionError) | You don't have write permissions for the /usr/local/rvm/gems/ruby-2.5.0@global directory.
<konsolebox_>
i'm not sure why it's still trying to install to /usr/local
troys has joined #ruby
<konsolebox_>
shouldn't it be in ~/.gem ?
Vaevictus has joined #ruby
<konsolebox_>
what do you get with `which gem`?
<Yogui>
"/usr/bin/gem"
sidx64_ has quit [Ping timeout: 276 seconds]
<konsolebox_>
do you get to have a ~/.gem directory?
aupadhye has left #ruby ["Leaving"]
chouhoulis has joined #ruby
<Yogui>
yes the user has a ~/.gem directory, if i understood the question correctly
<Vaevictus>
hey guys. I've got a project on my radar i want to start, and need suggestions: I want to implement a diagnostic for routing with a video game randomizer. I need to be able to express certain segments of the game's map via accessibility, based on collected equipment. i'm thinking maybe a DSL would be appropriate, but really haven't messed with anything along these lines
<konsolebox_>
Yogui: well that's just odd. as a normal user, `gem install bundler` should install bundler to ~/.gem
<Vaevictus>
an example would be noting that two chests in the Desert Palace are now open because you got the Book, or alternatively because you got the mirror and flute. (i.e. different entrance)
sidx64 has quit [Read error: Connection reset by peer]
<konsolebox_>
Yogui: perhaps you need to cleanup the gems in /usr/local. they might be influencing the behavior of 'gem'.
Cavallari has quit [Quit: Cavallari]
<Vaevictus>
i suppose i could just design a complex data structure
<Yogui>
maybe that's because $GEM_PATH points to that folder?
sidx64 has joined #ruby
<Yogui>
konsolebox_ ok, do you know how i can do that?
<konsolebox_>
hmm, i don't have that variable set. maybe
jrafanie has joined #ruby
<konsolebox_>
Yogui: it's quite difficult to make a suggestion as you're using rvm. do you get to upgrade ruby to 2.5.0 through it?
<Yogui>
yes
<Yogui>
i don't much care which version manager i'm using, i just understand that i needed one
<konsolebox_>
i believe each version of ruby use a different version of gem
<Vaevictus>
is rvm obsolete?
<konsolebox_>
so it's odd that you're using /usr/bin/gem
sidx64_ has joined #ruby
<konsolebox_>
too bad i really don't have any knowledge about rvm
<Yogui>
which one do you use, then?
<Vaevictus>
Yogui: did you add rvm to your .profile or whichever shell you're running?
alfiemax has joined #ruby
Burgestrand has quit [Quit: Closing time!]
<konsolebox_>
Yogui: if you run 'unset GEM_PATH; exec bash -l' as a normal user, do you still get to have a GEM_PATH variable set?
<Yogui>
Vaevictus not the user's .profile or .bashrc no
sidx64 has quit [Ping timeout: 240 seconds]
<Yogui>
konsolebox_yes
<Vaevictus>
Yogui: there's a thick layer of rust on my ruby and rvm knowledge, but iirc, that's required
<Vaevictus>
iirc, rvm overrides the default ruby environment varibles
<konsolebox_>
Yogui: i'm in Gentoo, and i don't need rvm or any other helper for managing multiple versions of Ruby. here we only do 'eselect ruby set ruby25' or something to change a version.
<Yogui>
argh
apeiros has joined #ruby
<Yogui>
also, i just stopped the running instance i had of redmine, and it won't start again thanks to today's fiddling
<Vaevictus>
konsolebox_: i always used rvm rather than eselect
<Yogui>
Vaevictus would you be able to help me fix my install?
<Vaevictus>
Yogui: of rvm or of ruby?
<Yogui>
no idea
<Yogui>
basically, while upgrading Debian from v8 to v9 i ran "bundle install" in the app directory but as root, not as the user
cschneid_ has joined #ruby
<Yogui>
of rvm, i guess
<Vaevictus>
that'd be for system ruby, probably not for rvm
<Vaevictus>
i'm not sure whether root would be using rvm
<Vaevictus>
as root, what do you get for "rvm list known" ?
<Yogui>
my understanding is that the system ruby is pretty much useless once you start using rvm?
<apeiros>
and with rvm, I ever only had 1 issue too, and that was when it unexpectedly started to automatically run stuff via bundler
hammer has joined #ruby
<apeiros>
but I can fully believe that rvm is more complex (and for most cases probably unnecessarily so) and hence more error prone
<dminuoso>
konsolebox_: Imagine your massive version manager was just a simple (effectively) 60 line shell script that just updated PATH..
<Vaevictus>
i kinda wish it didn't support multi-user installs
<Yogui>
i'm honestly lost in the manager labyrinth... between rvm, yarn, bundler and i don't know what else
<Vaevictus>
bundler is per project
<Yogui>
still
<Vaevictus>
rvm sets up the environment
<Yogui>
that's the one I can't install now
<Vaevictus>
?
tomphp has joined #ruby
<Yogui>
cd to the project then "gem install bundler": ERROR: While executing gem ... (Gem::FilePermissionError)You don't have write permissions for the /var/lib/gems/2.3.0 directory.
<Vaevictus>
Yogui: i don't think rvm should change the path
suukim has joined #ruby
<Vaevictus>
grepping for "rvm:" vs "rvm" is a problem
<konsolebox_>
did he add the 'source' already?
<Yogui>
yeah no there was no colon there
<dminuoso>
konsolebox_: I like software that is easy to reason about. When I can just randomly look at the source code and instantly understand how any of it works - then that's quality software.
<Yogui>
yes konsolebox_ at the end of the setup script they told me to run "source /home/redmine/.rvm/scripts/rvm", and i did
<Vaevictus>
Yogui: that's as the user after running the install script and fetching a new terminal?
<Yogui>
yes
<Vaevictus>
and your users name is "redmine" ?
<Yogui>
yes
<Vaevictus>
run the source command again and check the env again
<Yogui>
that's the only app running on this server
<Vaevictus>
and probably add that source command to .bashrc
<konsolebox_>
it should be made permanent. once you change to another login session, the environment would be reset
<Vaevictus>
(though it probably should have done that automatically
<konsolebox_>
Yogui: you did this? echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile
nowhereman_ has quit [Ping timeout: 256 seconds]
<Yogui>
Vaevictus ok now there are a few lines with rvm_bin_path etc
<Vaevictus>
without rvm_bin_path rvm isn't "in effect"
cadillac_ has quit [Read error: Connection reset by peer]
<Vaevictus>
so, do what konsolebox_ just said, or ensure that one way or another it's run when your user logs in
<NL3limin4t0r>
Don't forget that you have to mark your command shell as login shell to make it load from .bashrc and .bash_profile.
<Yogui>
ok
<Yogui>
oh the line was already there, has to be what NL3limin4t0r says
<Yogui>
NL3limin4t0r how do I enforce that?
<NL3limin4t0r>
But my guess is you probably already have that done, on gnome terminal go to preferences -> profiles, click edit go to command and check "run command as login shell"
hammer has quit [Ping timeout: 265 seconds]
<NL3limin4t0r>
on terminator it is about the same
cadillac_ has joined #ruby
<Yogui>
that's just a ssh shell
<NL3limin4t0r>
When I install rvm I needed to check that box to use the rvm commands. That's a while back though, things might have changed.
jcarl43 has joined #ruby
<Yogui>
yes when i login as my user and "env | grep rvm" there's nothing useful, so the env file isn't sources like it should
<konsolebox_>
oh yes, by default terminals run the shell in non-login mode
<NL3limin4t0r>
Easyly forgettable since you never have to change it again.
andikr has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NL3limin4t0r>
after checking the option make sure to restart your console
hammer has joined #ruby
<Yogui>
ok go it
<Yogui>
it shouldn't be placed in ~/.profile but rather ~/.bashrc
<Yogui>
logout/log back in now displays all rvm env vars
<Yogui>
(not "displays" but "sets")
hays_ has joined #ruby
hays_ has quit [Changing host]
hays_ has joined #ruby
clemens3_ has quit [Ping timeout: 260 seconds]
<Yogui>
gem install bundler still won't work though
rfoust has joined #ruby
<NL3limin4t0r>
It shouldn't try to install in /var/lib/gems/2.3.0 directory like you said before, but rather in ~/.rvm/gems/ruby-2.3.0
hammer has quit [Ping timeout: 276 seconds]
<konsolebox_>
Yogui: can you share the environment variables again?
<NL3limin4t0r>
seems like it's still trying to use the system ruby gem command
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
guille-moe has joined #ruby
alfiemax has joined #ruby
tdelam has quit [Remote host closed the connection]
<konsolebox_>
Yogui: what about the output of `which gem`?
jrafanie_ has joined #ruby
<Yogui>
that's /usr/bin/gem
atmosx has quit [Quit: WeeChat 1.4]
alfiemax has quit [Remote host closed the connection]
<konsolebox_>
hmm, shouldn't that be in ~/.rvm/bin?
<NL3limin4t0r>
yep, if I run it I get "/home/johwen/.rvm/rubies/ruby-2.4.1/bin/gem"
hammer has joined #ruby
amar_ has quit [Remote host closed the connection]
<Yogui>
my ~/.rvm/rubies is empty
<NL3limin4t0r>
depending on whats your default ruby installation
erlend has quit [Ping timeout: 256 seconds]
[Butch] has joined #ruby
<NL3limin4t0r>
does `rvm list` work?
<Vaevictus>
Yogui: you need to rvm install ruby
<Yogui>
which may be normal considering i just installed it
<Vaevictus>
which should give you a new gem
<Vaevictus>
iirc
jrafanie has quit [Ping timeout: 240 seconds]
sidx64_ has quit [Read error: Connection reset by peer]
<Yogui>
that's an impressive system though, able to compile a complete language on the fly
erlend has joined #ruby
hammer has quit [Remote host closed the connection]
hammer has joined #ruby
sidx64 has joined #ruby
<Vaevictus>
"rvm install 2.5.1"
<Vaevictus>
would install 2.5.1
<NL3limin4t0r>
yep and `use 2.5.1 --default` would mark it as default
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
cagomez has joined #ruby
sidx64 has quit [Max SendQ exceeded]
<NL3limin4t0r>
if that is succesfull try running your "gem" command again
<Yogui>
it's compiling
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
<Yogui>
which gem is now: /home/redmine/.rvm/rubies/ruby-2.4.1/bin/gem
<NL3limin4t0r>
just to make sure, just restart the terminal before running the gem install command
synthroid has quit [Remote host closed the connection]
<Yogui>
too late xD
<NL3limin4t0r>
np, does it do something?
<Yogui>
yeah, it is
<Yogui>
it's bundle installing stuff
<Yogui>
no warnings so far, no permission errors
nowhereman_ has joined #ruby
ltt has joined #ruby
<Yogui>
i am in COMPLETE AWE
<Yogui>
it works again
mlkkk has quit [Ping timeout: 268 seconds]
<Yogui>
the app runs, and within httpd no less
<Yogui>
THANK YOU peeps that was amazing
tomphp has joined #ruby
<NL3limin4t0r>
Yogui: (Y) curefull with root ;-)
<konsolebox_>
dminuoso: but can you do 'ruby22 pry', or 'ruby25 pry'? :)
<konsolebox_>
oops, that's `ruby22 $(which pry)`
cyberg has joined #ruby
<konsolebox_>
or, ruby22 -S pry
<Yogui>
yeah NL3limin4t0r i was so fed up with the debian upgrade and mysql that wouldn't start... started cutting corners i shouldn't have
amar has joined #ruby
obzidian has joined #ruby
guille-moe has quit [Ping timeout: 256 seconds]
tomphp has quit [Client Quit]
<Yogui>
for anyone who might run into a debian8 to debian9 (stretch) upgrade and mysql to mariadb problems, check if the slow log is enabled, that should do it
shinnya has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
orbyt_ has joined #ruby
hammer has quit [Remote host closed the connection]
hammer has joined #ruby
<NL3limin4t0r>
man rvm
<NL3limin4t0r>
xD, oops, this is not the terminal
<Yogui>
no that's ok i had the same feeling just now
<havenwood>
#>> No manual entry for rvm
<NL3limin4t0r>
havenwood: Guess you're not using rvm than.
<NL3limin4t0r>
Since it works fine in my terminal.
hammer has quit [Ping timeout: 276 seconds]
raynold has joined #ruby
<havenwood>
NL3limin4t0r: Did you install RVM with apt? :-O
amar has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 240 seconds]
<havenwood>
NL3limin4t0r: I think the apt folk wrote a manpage. It's indeed nice to have one!
s2013 has joined #ruby
<NL3limin4t0r>
havenwood: I honestly don't know. But when I run `which rvm` I get "/home/johwen/.rvm/bin/rvm" so I guess I just followed the instructions on the rvm install page.
<havenwood>
NL3limin4t0r: I like completely decoupling the installer from the switcher.
<NL3limin4t0r>
havenwood: Yeah, got a point there. I just like the ease of rvm. I don't really know shell code so I leave that to the developers of the version managers.
<tbuehlmann>
using chruby and ruby-install for a while now, couldn't be happier with it
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NL3limin4t0r>
Nice. I gotta go though. Have a nice they chat.
NL3limin4t0r is now known as NL3limin4t0r_afk
<NL3limin4t0r_afk>
they => day* (I'm losing focus xD, time to eat)
mikecmpbll has quit [Quit: inabit. zz.]
\void has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dr3w_ has quit [Read error: Connection reset by peer]
dr3w__ has joined #ruby
chouho___ has joined #ruby
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
chou_____ has joined #ruby
bmurt has joined #ruby
chouhoul_ has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
tcopeland has quit [Ping timeout: 240 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
chouhou__ has quit [Ping timeout: 276 seconds]
chouhoul_ has joined #ruby
<al2o3-cr>
that must of been killer to implemtent.
chouho___ has quit [Ping timeout: 256 seconds]
chouhou__ has joined #ruby
chouh____ has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouho___ has joined #ruby
<havenwood>
al2o3-cr: It's also a great project to contribute to if you want to learn about new Ruby features by implementing them in pure Ruby. The maintainers give fantastic feedback: https://github.com/oracle/truffleruby
chou_____ has quit [Ping timeout: 264 seconds]
<havenwood>
al2o3-cr: It's 51% Ruby! (Rubinius is 24.8% Ruby.)
chouh____ has joined #ruby
<al2o3-cr>
havenwood: i'll bare that i mind :)
<al2o3-cr>
seriously
chouhoulis has quit [Ping timeout: 256 seconds]
<al2o3-cr>
wow
<havenwood>
al2o3-cr: The specs are already written, so it's a joy to implement new features.
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 264 seconds]
<al2o3-cr>
havenwood: interesting, and congrats to the team from me too. :)
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhou__ has quit [Ping timeout: 256 seconds]
<al2o3-cr>
bookmarked, i'll take a proper look at this later.
chouho___ has quit [Ping timeout: 240 seconds]
chouh____ has quit [Ping timeout: 240 seconds]
<al2o3-cr>
whatever happened to streem?
<al2o3-cr>
no guilds are introduced is streem redundant
<al2o3-cr>
*now
<al2o3-cr>
nvm i'm getting mixed up with something else.
workmad3 has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
sidx64_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sparr has quit [Changing host]
sparr has joined #ruby
orbyt_ has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
sidx64 has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
<baweaver_away>
havenwood: can RVM install TruffleRuby? :D
baweaver_away is now known as baweaver
<havenwood>
baweaver: Right now you have to download the GraalVM, then point RVM at the languages/ruby bin: rvm mount path/to/graalvm/jre/languages/ruby -n truffleruby
ramfjord has joined #ruby
<baweaver>
You should make a magic installer script
<havenwood>
baweaver: It's the click through agreement that's currently blocking that step. I think there are plans to remove or get around that but last I heard it was the blocker.
<havenwood>
Now that there's a GraalVM 1.0, it's arguably fair game for ruby-install as well.
amar has joined #ruby
<havenwood>
The curlable download without click-through is a blocker for that as well.
<havenwood>
I could go ahead and get it working without that step live. That's probably worth doing.
<havenwood>
Maybe I'll take a stab at ruby-install support this weekend.
amar has quit [Remote host closed the connection]
venmx has quit [Ping timeout: 256 seconds]
amar has joined #ruby
rabajaj has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
^raz^ has quit [Changing host]
^raz^ has joined #ruby
^raz^ is now known as raz
<havenwood>
baweaver: I forgot, there's a step now between downloading Graal and the `rvm mount`: ./graalvm-1.0.0-rc1/Contents/Home/jre/lib/installer/bin/gu -c install org.graalvm.ruby
eckhardt has joined #ruby
pilne has joined #ruby
bmurt has joined #ruby
al2o3-cr is now known as fe203
fe203 is now known as fe2o3
cadillac_ has quit [Ping timeout: 265 seconds]
cadillac_ has joined #ruby
rawburtz has joined #ruby
hays_ has quit [Remote host closed the connection]