djbkd has quit [Remote host closed the connection]
jgnagy has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
segmond has joined #ruby
jameser has quit [Client Quit]
nowhere_man has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
shinnya has joined #ruby
quobo has joined #ruby
jshjsh has joined #ruby
JoshS has quit [Ping timeout: 255 seconds]
rkazak has quit [Quit: Sleep.....ing....]
GinoMan2440 has quit [Ping timeout: 260 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AKPWD has joined #ruby
shinnya has quit [Ping timeout: 245 seconds]
amclain has quit [Quit: Leaving]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
nofxxx has joined #ruby
GinoMan2440 has joined #ruby
nofxxxx has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
jgt2 has joined #ruby
JoshS has joined #ruby
jshjsh has quit [Ping timeout: 268 seconds]
jgt2 has quit [Ping timeout: 260 seconds]
eightlimbed has quit [Ping timeout: 245 seconds]
Bock has joined #ruby
blackwind_123 has quit [Ping timeout: 255 seconds]
blackwind_123 has joined #ruby
Phanes has joined #ruby
<Phanes>
so has anyone figured out how basic dependency tree installation can be accomplished yet?
<Phanes>
or are we all passing around docker containers
blackwind_123 has quit [Ping timeout: 260 seconds]
Ansible has joined #ruby
<PorcoRex>
Phanes, could you give some context to your question?
<Ansible>
Hello
<Phanes>
i had a missingf depdendency during installation of gitlab's rubygem dependencies and now ive got a lock file that is reporting missing things that aren't missing, and im in ruby dependency management hell and want to clear all of the lock files and try to build again
<Ansible>
Hey Phanes
<Phanes>
and then when i am done i am never touching ruby again
<Ansible>
haha, yeah, I've never been so turned off before as I have since working with Ruby/Rails
<Ansible>
Have to hold my nose
<Phanes>
i can't say my thoughts i just want to fix it so i can not be messing with ruby
<PorcoRex>
Phanes, ok. But in the meantime, what error are you getting? And how does Ruby exactly interacts with Docker containers?
<Phanes>
PorcoRex, the going joke is that because this issue is so prevelant with so many projects with ruby deps that people who make ruby projects just pass vm appliances instead of bundles
<Phanes>
i know im never gonna get this time back in my life but i need to get through the ruby section of this. do you know how i can clear any previous build attempts and lockfiles so everything is regenerated?
<PorcoRex>
Phanes, I had a similar problem before. Did you try following the output "running `bundle update omniauth-google-oauth2` should fix the problem." ?
<Phanes>
it is...in the paste
AnoHito has quit [Read error: Connection reset by peer]
<Phanes>
no it did not fix the issue
AnoHito has joined #ruby
<Phanes>
that effort starts on line 266
<PorcoRex>
Phanes, right, but did you try updating omniauth-google-oauth2 ?
<Phanes>
are you trolling me or are you really this stupid?
<PorcoRex>
Phanes, I assure you sir. I'm really this stupid.
<Phanes>
i believe it
<Phanes>
does any sadist here know how i can clear out any associated gemfile.locks in a bundle install?
<PorcoRex>
Any takers?
<Phanes>
this is seriously the most broken dependency mgmt system i've ever seen
benlieb has joined #ruby
<PorcoRex>
Phanes, I hope what you're doing is a hobby project, because if it isn't, you'll certainly not find a solution in time.
<Phanes>
why is that
<Phanes>
Your lockfile was created by an old Bundler that left some things out. <-- how do i clear out any existing lockfiles?
<Phanes>
it doesn't seem to check if they need regenerated
<PorcoRex>
Phanes, you can remove them, but the you'll say I'm dumb because removing lockfiles is not the smartest thing to do.
<PorcoRex>
So if I recommend removing them I would be dumb, and in turn you would be dumb as well.
jane_booty_doe has joined #ruby
<Phanes>
if have any constructive instructions at all, i mean any, please actually say them instead of grasping on to that fleeting feeling of being smart by witholding information after antagonizing someone by pretending not to know what they're trying to do
<PorcoRex>
Phanes, can we start this all over again? No hard feelings?
<PorcoRex>
Gee... That's a pretty long error Phanes.
jamesaxl has joined #ruby
<Ansible>
Yeah, I can't believe adults choose to use rails
<Phanes>
PorcoRex, final error is "fatal: No live threads left. Deadlock?" but tracing it back it looks like omniauth-google-oauth2 is failing to install due to a lockfile in place from a previous build attempt where there were missing deps.
mim1k has joined #ruby
cfec0b8d has joined #ruby
<PorcoRex>
Phanes, no, that's not it.
<Phanes>
ok so what is it
<PorcoRex>
Phanes, "Downloading omniauth-google-oauth2-0.4.1 revealed dependencies not in the API or the lockfile (omniauth-oauth2 (>= 1.3.1), jwt (~>
<PorcoRex>
1.5.2))."
latemus has joined #ruby
<PorcoRex>
Phanes, can we have that complete Gemfile line?
<Phanes>
what line number is that
nanoz has joined #ruby
<PorcoRex>
Phanes, 260-
<Phanes>
the gemfile is intact in the paste
nanoz has quit [Changing host]
nanoz has joined #ruby
<PorcoRex>
Phanes, how about the Gemfile.lock?
AnoHito_ has joined #ruby
<Phanes>
L967
<PorcoRex>
Gee, that's scrappy. Alright...
<Phanes>
ok so those two deps are missing and are for omniauth-google-oauth2, and bundle update omniauth-google-oauth2 is failing to install them
^mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
troys is now known as troys_
<PorcoRex>
Phanes, I didn't say that. Did you try and fail to bundle update that gem?
<Phanes>
yes there were previous attempts
AnoHito has quit [Ping timeout: 260 seconds]
<PorcoRex>
Ok... Let's check it...
mim1k has quit [Ping timeout: 255 seconds]
<PorcoRex>
Phanes, what version of bundler are you using?
nanoz has left #ruby ["Leaving"]
<Phanes>
1.15.1
gnarf has quit [Ping timeout: 255 seconds]
shinnya has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
zeroDivisible has quit [Ping timeout: 255 seconds]
taurgal has quit [Ping timeout: 260 seconds]
jane_booty_doe has quit [Quit: Leaving]
ytti_ has quit [Ping timeout: 255 seconds]
tohuw has quit [Ping timeout: 255 seconds]
mathys has quit [Remote host closed the connection]
ytti has joined #ruby
mathys has joined #ruby
Rabbit_ has quit [Ping timeout: 255 seconds]
Rabbit_ has joined #ruby
<PorcoRex>
Phanes, could you try using bundler v1.15.0.pre.3 instead?
<Phanes>
am i able to just delete ./.bundle/ and let this generate?
<Phanes>
*regenerate
akkad has joined #ruby
<PorcoRex>
No.
<Phanes>
at some point ruby/bundle generated these lockfiles in an incomplete fashion somewhere in what is assumed by me to be a staging point for temporary data not yet realized. surely there is a way to freshen that?
<PorcoRex>
You assume way too much. Locks are intended to lock versions.
Ansible has left #ruby [#ruby]
Axy has quit [Ping timeout: 260 seconds]
<PorcoRex>
Phanes, there is a new patch version for the state_machines-activerecord gem. Version 0.4.0 is from May 2016 while version 0.4.1 if newer. Do you think you could update it?
<PorcoRex>
is*
Mia has joined #ruby
Kneecaps has left #ruby [#ruby]
bkxd has joined #ruby
<PorcoRex>
Phanes, sir?
<PorcoRex>
Phanes, sir, where you able to solve your problem?
jackjackdripper has quit [Quit: Leaving.]
<Phanes>
sorry one moment, was wiping that directory away and extracting a new archive for gitlab
etehtsea has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
<Phanes>
gem install state_machines-activerecord?
<Phanes>
it is now installed
<PorcoRex>
¿Version 0.4.1?
<Phanes>
0.4.1
<PorcoRex>
Ok. Can we see the error log?
<Phanes>
there is no error log yet
<Phanes>
we installed state_machines-activerecord
<PorcoRex>
I'll wait for it, no worries.
<Phanes>
im going to run the bundle install line again
<Phanes>
between re-extracting the source dir we were running bundle against and the state_machines-activerecord gem it seems to be going further
<PorcoRex>
I'm not too bright. Does that mean good or bad?
belmoussaoui has quit [Remote host closed the connection]
belmoussaoui has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
<MarkBilk>
hanmac: I ran that too. Didn't help.
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
belmoussaoui has joined #ruby
cschneid_ has joined #ruby
bkxd has joined #ruby
ixti has quit [Ping timeout: 255 seconds]
cschneid_ has quit [Ping timeout: 260 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 268 seconds]
chalkmonster has quit [Quit: Daddy's flown, 'cross the ocean.]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
Rich_Morin_ has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 260 seconds]
mostlybadfly has joined #ruby
Rich_Morin has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicesignal has quit [Remote host closed the connection]
ecuanaso has joined #ruby
nicesignal has joined #ruby
warrshrik has joined #ruby
<warrshrik>
hey
<warrshrik>
so this code
<warrshrik>
if !(File.exist?("#{Base}#{appname}/#{appname}.yml")) puts "File doesnt exist!" File.open("#{Base}#{appname}/#{appname}.yml", "w") do |file| file.write(YAML::dump(cflArray(appname))) end end
<warrshrik>
if .yml doesnt exist the File.open code is destined to run
<warrshrik>
but it errors out
<warrshrik>
file doesnt exist it says
belmoussaoui has quit [Quit: belmoussaoui]
<warrshrik>
i want it to make new file!
<warrshrik>
how to fix?
nankyokusei has joined #ruby
belmoussaoui has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<warrshrik>
please help
nankyokusei has quit [Ping timeout: 240 seconds]
<warrshrik>
hey
<warrshrik>
will File.write work
<konsolebox>
warrshrik: yes you can just use File.write
<konsolebox>
warrshrik: maybe you should also make sure that the directory where the file would be created exists and is writable
ascarter has joined #ruby
<warrshrik>
konsolebox: yup that fixed it
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
jgnagy has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aswen has joined #ruby
aswen has quit [Client Quit]
sepp2k has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
jgt2 has joined #ruby
roshanavand has quit [Quit: roshanavand]
troys_ is now known as troys
jgt2 has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
haylon has joined #ruby
mikecmpbll has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
konsolebox has joined #ruby
DLSteve has joined #ruby
konsolebox has quit [Remote host closed the connection]
mochiyoda_ has joined #ruby
spk has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
ecuanaso has joined #ruby
mochiyoda has quit [Ping timeout: 260 seconds]
zacts has quit [Ping timeout: 260 seconds]
spk has joined #ruby
zacts has joined #ruby
opencw has quit [Quit: Quantumcommunicationsarray offline]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zacts has quit [Ping timeout: 260 seconds]
vuoto has joined #ruby
jgnagy has quit [Remote host closed the connection]
<sajinmp>
apeiros: After adding a special character to the space after S or A, I can split it and make it to hash but I was wondering if there is a better way.
<apeiros>
oh hi darix! been a while :D
cdg has joined #ruby
polysics_ has quit [Ping timeout: 240 seconds]
<apeiros>
sajinmp: does your text only consist of A-Za-z?
<apeiros>
or can it contain other characters?
lxsameer has joined #ruby
<sajinmp>
Just A-Za-z, space and newline
cdg has quit [Read error: Connection reset by peer]
<apeiros>
needs slightly different processing, but mostly the same. map it to add the weight and get a [key, values] array, then call to_h on the result
zacts has quit [Ping timeout: 255 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt2 has joined #ruby
rohitpaulk has quit [Ping timeout: 255 seconds]
jusa has joined #ruby
zacts has joined #ruby
jusa has quit [Ping timeout: 255 seconds]
jgt2 has quit [Ping timeout: 240 seconds]
belmoussaoui_ has joined #ruby
belmoussaoui has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
cdg_ has joined #ruby
herbmillerjr has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
tristanp has joined #ruby
doublemalt__ has quit [Ping timeout: 260 seconds]
herbmillerjr has quit [Remote host closed the connection]
Some-body_ has joined #ruby
DarthGandalf has quit [Ping timeout: 240 seconds]
Some-body_ is now known as DarthGandalf
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
haylon has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
adgtl has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rapha has joined #ruby
<rapha>
hi!
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rapha>
why would "ruby -r blah/blah.rb" work, but "irb -r blah/blah.rb" complain "LoadError: cannot load such file -- blah/blah.rb"?
<rapha>
(the file in question requires pathname and ostruct and contains one OpenStruct - i don't see what would be problematic about that)
jdawgaz has quit [Client Quit]
mtkd has quit [Ping timeout: 255 seconds]
tristanp has quit [Remote host closed the connection]
mtkd has joined #ruby
warrshrik has quit [Ping timeout: 260 seconds]
ltem has quit [Quit: Leaving]
cdg_ has quit [Remote host closed the connection]
sepp2k has joined #ruby
adgtl has joined #ruby
Phanes has left #ruby ["Leaving"]
psychicist__ has quit [Ping timeout: 260 seconds]
CacoS has quit [Remote host closed the connection]
marr has joined #ruby
<rapha>
okay i just tried the same with a file containing "puts 'blah'" and it doesnt work either. wtf?
<apeiros>
rapha: ruby -e 'puts $LOAD_PATH' and in irb, run the same code. compare the output.
<rapha>
apeiros: same exact output, save for irb's '=> nil' ... bad?
Bob8989 has joined #ruby
<apeiros>
is blah/blah.rb part of an installed gem?
<rapha>
apeiros: nope. and like i wrote above, "irb -r" doesn't work with a file _only_ containing "puts 'blah'" either.
<apeiros>
well, for plain files, the only relevant info is $LOAD_PATH
<apeiros>
so if they're truly the same, I'm at a loss why it'd work with ruby but not irb
<rapha>
actually i'm not sure if it does work with ruby. should i see the output produced by "puts 'blah'" when doing "ruby -r test.rb"?
<apeiros>
I'd not name it test.rb
<Mon_Ouie>
Are you giving an input file to Ruby? Or code to run with -e?
<rapha>
apeiros: same if it's named "meh.rb"
<rapha>
Mon_Ouie: an input file containing "puts 'meh'"
<Mon_Ouie>
Otherwise ruby is just going to be waiting for input
<apeiros>
Mon_Ouie: oh, stuck on stdinput?
<rapha>
aha
<apeiros>
didn't think of that
<rapha>
indeed! once i press enter, i get /home/jrs/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- meh.rb (LoadError) again.
<rapha>
which is what i originally wanted to fix with irb..
<apeiros>
rapha: let me guess, the file is in the same working directory as where you start irb/ruby?
<apeiros>
. (working directory) is not part of $LOAD_PATH, which is why it's not found. you can temporarily add it via -I (upcase i): ruby -I. -rblah/blah
<rapha>
apeiros: yes, but the error remains the same once i put it into a subdir.
<apeiros>
d'uh
<rapha>
o_O
<apeiros>
the subdir is also in the working directory
<rapha>
omg
<rapha>
i'm sorry to have gotten on your nerves with something so profane :(
<apeiros>
relative paths, how do they work? :-p
<rapha>
:P
<apeiros>
anyway, your require must be relative to one path in $LOAD_PATH. that's the whole magic.
<apeiros>
(or part of an installed gem, but that's another story)
<rapha>
apeiros: the -I trick works just fine in this specific case. I just needed a Rake task to give me a console of my Sinatra app.
jackjackdripper1 has joined #ruby
ecuanaso has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
<rapha>
apeiros: oh, do you know a trick to suppress a single command's return value in pry?
<apeiros>
;
<rapha>
hah! perfect! thank you!
mathys has quit [Remote host closed the connection]
mathys has joined #ruby
Rich_Morin_ has joined #ruby
Rich_Morin has quit [Ping timeout: 255 seconds]
Rich_Morin_ is now known as Rich_Morin
GinoMan2440 has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
patr0clus has joined #ruby
jgt2 has joined #ruby
cfec0b8d has quit [Quit: Leaving]
Rich_Morin has quit [Ping timeout: 240 seconds]
jgt2 has quit [Ping timeout: 245 seconds]
Rich_Morin has joined #ruby
matthewhill has joined #ruby
matthewhill has quit [Client Quit]
Lyubo1 has quit [Ping timeout: 260 seconds]
fusta has quit [Quit: Leaving]
Rich_Morin has quit [Ping timeout: 240 seconds]
Lyubo1 has joined #ruby
stupidsenpai has joined #ruby
stupidsenpai has quit [Client Quit]
Rich_Morin_ has joined #ruby
agent_white has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
tristanp has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
hays has joined #ruby
bkxd has joined #ruby
hays_ has quit [Ping timeout: 245 seconds]
mathys has quit [Remote host closed the connection]
mathys has joined #ruby
Rich_Morin__ has joined #ruby
Rich_Morin_ has quit [Ping timeout: 268 seconds]
tristanp has quit [Remote host closed the connection]
Rich_Morin__ has quit [Ping timeout: 260 seconds]
armguy has quit [Remote host closed the connection]