Exuma has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ElFerna has quit [Remote host closed the connection]
ElFerna has joined #ruby
sagax has quit [Remote host closed the connection]
sagax has joined #ruby
brool has joined #ruby
ElFerna has quit [Remote host closed the connection]
ElFerna has joined #ruby
ElFerna has quit [Remote host closed the connection]
BTRE has quit [Remote host closed the connection]
BTRE has joined #ruby
nerdius has quit [Quit: Konversation terminated!]
nerdius has joined #ruby
Exuma has joined #ruby
queip has quit [Ping timeout: 276 seconds]
mat_bug_ has quit [Read error: Connection reset by peer]
involans has quit [Quit: involans]
queip has joined #ruby
BTRE has quit [Remote host closed the connection]
BTRE has joined #ruby
cmptr has joined #ruby
<cmptr>
Am I able to ask bundle questions here?
<cmptr>
I'll just ask it and see what happens. I ran bundle in my project directory, and got a message saying "The following files may not be writable, so sudo is needed". After the command finished, I ran sudo bundle and got this "Don't run bunderl as root. Bundler can ask for sudo if needed, and installing your bundle as root will break this applicaiton for all non root users on this machine"
<cmptr>
Do I have anything to worry about? Is there a way to undo the last command by removeing what sudo bundle did?
s3nd1v0g1us has joined #ruby
drnerdius has joined #ruby
gix has quit [Ping timeout: 245 seconds]
drnerdius has quit [Read error: Connection reset by peer]
drnerdius has joined #ruby
nerdius has quit [Ping timeout: 248 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
<b0nn>
Trying to understand colons, what does this mean 'post :approve_access_request, on: :member'
greengriminal has joined #ruby
Exuma has joined #ruby
<kaleido>
it's a symbol
<mozzarella>
b0nn: same as post(:approve_access_request, { :on => :member })
Swyper has quit [Remote host closed the connection]
<b0nn>
oh, ok
brool has quit [Ping timeout: 276 seconds]
s3nd1v0g1us has quit [Quit: WeeChat 2.4]
Exuma has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
greengriminal has quit [Quit: This computer has gone to sleep]
bambanx has quit [Quit: Leaving]
Tempesta has quit [Quit: AdiIRC is updating to v3.6 Beta Build (2019/08/11 UTC) 64 Bit]
Tempesta has joined #ruby
AJA4350 has quit [Quit: AJA4350]
rainmanj_ has quit []
rainmanjam has joined #ruby
falconfox has joined #ruby
falconfox has quit [Client Quit]
rainmanjam has quit []
rainmanjam has joined #ruby
falconfox has joined #ruby
falconfox has quit [Ping timeout: 245 seconds]
poontangmessiah has quit [Remote host closed the connection]
donofrio has quit [Remote host closed the connection]
poontangmessiah has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
falconfox has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
falconfox has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 258 seconds]
reber has joined #ruby
titanbiscuit has quit [Quit: ZNC 1.7.3 - https://znc.in]
titanbiscuit has joined #ruby
hays has quit [Ping timeout: 245 seconds]
poontangmessiah has quit [Remote host closed the connection]
hays has joined #ruby
Inline has quit [Quit: Leaving]
noizex has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
suukim has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
cmptr has quit [Quit: WeeChat 2.3]
poontangmessiah has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
corellian has joined #ruby
drnerdius has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
cd has quit [Ping timeout: 276 seconds]
poontangmessiah has quit [Remote host closed the connection]
kyrylo has quit [Read error: Connection reset by peer]
e has quit [*.net *.split]
mnemon has quit [*.net *.split]
spectra has quit [*.net *.split]
sepp2k has quit [*.net *.split]
_whitelogger has joined #ruby
jinie has quit [Ping timeout: 272 seconds]
<NL3limin4t0r>
🙋 back from vacation
jinie has joined #ruby
sh7d_ has quit [Quit: meh]
sh7d has joined #ruby
<muhaha>
Guy, can anyone help? I want to write simple script that will use ominauth package. It should read csv file for three strings(string per column) and will do OmniAuth::AuthHash.new and prints output to other file as another column. I am completly untuoched by ruby.
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Iambchop>
?goal muhaha
<muhaha>
Iambchop: I need to precreate identities for Gitlab migration to different tenand (it will generate new hash, which is not pairable with older users)
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
<NL3limin4t0r>
muhaha: If you don't have much experience in Ruby I'd start having a look at how to read and write from CSV and worry about omniauth later.
<muhaha>
NL3limin4t0r nvc, I dont need csv.. I just care only about how is OmniAuth::AuthHash.new string generated, It takes strings as input, so I can pretty simulate this, but I dont know what hash function does it use
<muhaha>
*nmv
involans has joined #ruby
za1b1tsu has joined #ruby
involans_ has joined #ruby
<NL3limin4t0r>
Are you sure it takes strings as arguments? Looking at the code it seems it inherits the constructor from ::Hashie::Mash which takes a shash as argument.
<Iambchop>
key part there is setting extern_uid to the ldap dn before calling GitLab.create_user
<Iambchop>
not sure what the extern_uid format is for oauth azure
<muhaha>
it should work like this OmniAuth::AuthHash.new(uid: "12345", provider: "azure_oauth2", info: "{nickname:'-john+gitlab-ETC%.git@gmail.com',name:'John',email:'john@mail.com',address:{locality:'locality',country:'country'}}"), isnt it? That will generate extern_uid
<muhaha>
huh, I am not suprise, support for CE version of Gitlab is really bad :/
<muhaha>
*suprised
<muhaha>
But I guess that after mass migration of users from github, gitlab lacks of devs,ops.., so there is no resources for nonenterprise customers
reber has joined #ruby
<ytti>
i'm skeptical of mass migration of github to gitlab
<ytti>
i feel like gitlab is more winning users from internal csv, subversion etc systems
<ytti>
instead of github
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
tsujp has joined #ruby
tsujp has quit [Client Quit]
drnerdius has quit [Quit: Konversation terminated!]
drnerdius has joined #ruby
tsujp has joined #ruby
<Iambchop>
muhaha: you're migrating from one gitlab to another with the same id provider, from one id provider to another with the same gitlab, or to a new gitlab and id provider?
<muhaha>
Iambchop: from one gitlab to another gitlab with different id provider ( its azure_oauth2, but under different realm/tenant, so username will be different, -> extern_uid too...)
<havenwood>
fredolinhares: It's somewhat similar to making a regular gem, you just compile mruby with your mgems instead of just requiring at runetime.
<havenwood>
fredolinhares: If you run into particular issues cutting your mgem, let us know or mruby folk have a Gitter chat here: https://gitter.im/mruby/mruby
<fredolinhares>
havenwood: I have a small 2D game engine in C++, I want to turn it in an engine for mruby. I feel coding in Ruby is easier than C++.
falconfox has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
hiroaki has joined #ruby
brool has joined #ruby
gix has joined #ruby
<havenwood>
fredolinhares: Awesome
jenrzzz has quit [Ping timeout: 246 seconds]
falconfox has joined #ruby
poontangmessiah has quit [Read error: Connection reset by peer]
fredolinhares has quit [Quit: WeeChat 1.9.1]
poontangmessiah has joined #ruby
deepredsky has joined #ruby
leitz has quit [Ping timeout: 248 seconds]
falconfox has quit [Ping timeout: 258 seconds]
suukim has quit [Quit: Konversation terminated!]
falconfox has joined #ruby
troulouliou_div2 has joined #ruby
<glosoli>
hey, is there a way to do a reassignment to hash key, while capturing it's original value ?
conta1 has joined #ruby
sgen has quit [Ping timeout: 250 seconds]
dviola has quit [Quit: WeeChat 2.5]
al2o3-cr has joined #ruby
al2o3-cr has quit [Client Quit]
al2o3-cr has joined #ruby
bitwinery has joined #ruby
leitz has joined #ruby
sauvin has quit [Ping timeout: 244 seconds]
conta1 has quit [Quit: conta1]
also_uplime has joined #ruby
conta1 has joined #ruby
drincruz_ has quit [Read error: Connection reset by peer]
drincruz_ has joined #ruby
jenrzzz has joined #ruby
<also_uplime>
im comiling a ruby (via rvm) for a linux of type unknown/libc-2.28/x86_64/ruby-2.6.3 and am getting the message "Install: build-essential libreadline zlib1g libyaml libc6 libgdbm ncurses". I've definitely got ncurses, readline, yaml, zlib, and gdbm. does it just spit out a static list if it can't any of them?
<havenwood>
glosoli: Yes, but there's not a single Hash method that does it so you'll need to use two method calls.
<also_uplime>
also, is libc6 just a libc, and is build-essential just for a cc?
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
jenrzzz has quit [Ping timeout: 258 seconds]
deepredsky has quit [Ping timeout: 246 seconds]
<glosoli>
havenwood I see a bit lost, trying to think of a way to update nested properties within a hash (at first occurrence they don't exist)
chainz has left #ruby [#ruby]
ramfjord has joined #ruby
<havenwood>
also_uplime: RVM has configurable settings for how to treat package manager deps: https://rvm.io/rvm/autolibs
<havenwood>
also_uplime: By default, it will try to install deps via your package manager.
<havenwood>
also_uplime: What autolib mode are you in?
eddof13 has joined #ruby
<havenwood>
glosoli: Give one example?
muhaha has joined #ruby
deepredsky has joined #ruby
<also_uplime>
the default
falconfox has quit [Ping timeout: 246 seconds]
<havenwood>
also_uplime: yeah, build-essential is for the cc
<also_uplime>
ok cool
<also_uplime>
thanks
<havenwood>
also_uplime: You can ignore the missing deps and use the available ones with: rvm autolibs read
<havenwood>
you're welcome
<glosoli>
havenwood have a list of items, grouped by the date, I want them to store in hash, i.e. dates = {"2010-01-01": {}, "2010-02-01": {}} this nested hash under the date can have several keys which I need to get updated once I am looping through file, i.e. dates = {"2010-01-01": {magic_items: 2}, "2010-02-01": {}}, where magic_items is something that can be found during processing of a file
AJA4350 has quit [Ping timeout: 245 seconds]
troulouliou_div2 has quit [Ping timeout: 248 seconds]
<havenwood>
glosoli: And what's the change you're making to the Hash?
<glosoli>
havenwood incrementing magic_items during occurrence, there can be different types of items as well
falconfox has joined #ruby
muhaha has quit [Ping timeout: 248 seconds]
<havenwood>
glosoli: Ah, so you want to increment the value for any `:magic_items` keys?
<glosoli>
yep
leitz has quit [Ping timeout: 244 seconds]
<havenwood>
glosoli: Is it ever nested deeper than one level?
sgen has joined #ruby
<glosoli>
havenwood no
muhaha has joined #ruby
<havenwood>
glosoli: What version of Ruby do you need it to work on? (Wanting to use recent methods.)
cd has joined #ruby
<glosoli>
havenwood most recent one is good enough
<havenwood>
glosoli: dates.transform_values { |value| value[:magic_items] += 1 if value.key?(:magic_items); value }
<havenwood>
glosoli: Hash#transform_values was added in Ruby 2.4.
<glosoli>
ah, nice, thanks!
falconfox has quit [Ping timeout: 268 seconds]
ellcs1 has joined #ruby
conta1 has quit [Ping timeout: 258 seconds]
falconfox has joined #ruby
maxdoubt has joined #ruby
jenrzzz has joined #ruby
leitz has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
<havenwood>
woo: It looks like you have a package manager installed Ruby?
<woo>
havenwood: yes.
ur5us has joined #ruby
<havenwood>
woo: Is the rubygems package on the latest version available via apt?
<havenwood>
woo: (Assuming that's your package manager?)
fredolinhares has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
<havenwood>
woo: I'd suggest reinstalling RubyGems or installing a newer version.
AJA4350 has quit [Ping timeout: 246 seconds]
<woo>
havenwood: it is.
<woo>
havenwood: ok, thank you.
<havenwood>
woo: You can install a newer version of RubyGems than what ships with your Ruby. But if you just want to go to newer everything, Brightbox and Fullstaq both maintain up-to-date packages.