<leftylink>
I used to have the patience to set it up
<leftylink>
these days... not sure?
al2o3-cr has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
davidw_ has quit [Ping timeout: 245 seconds]
arahael4 has joined #ruby
<yoshie902a>
I’m doing some meta programming and wondering if there is a way to see the code that it’s creating. Is this possible?
arahael3 has quit [Ping timeout: 265 seconds]
DaRock has joined #ruby
hutch1 has quit [Ping timeout: 245 seconds]
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagax has quit [Remote host closed the connection]
twe4ked has quit [Read error: Connection reset by peer]
twe4ked has joined #ruby
mre- has joined #ruby
murarisumit has joined #ruby
poontangmessiah has quit [Ping timeout: 245 seconds]
mre- has quit [Ping timeout: 276 seconds]
murarisumit has quit [Ping timeout: 245 seconds]
sagax has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Fernando-Basso has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
Intelo has quit [Read error: Connection reset by peer]
dasher00 has quit [Ping timeout: 245 seconds]
hutch1 has joined #ruby
bluetown has joined #ruby
x77686d has quit [Quit: x77686d]
hiroaki has quit [Ping timeout: 245 seconds]
x77686d has joined #ruby
skyikot has joined #ruby
r29v has joined #ruby
AJA4350 has quit [Quit: AJA4350]
yoshie902a has left #ruby [#ruby]
Esa_ has quit []
drincruz has joined #ruby
r29v has quit [Quit: r29v]
gix has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 276 seconds]
hutch1 has quit [Ping timeout: 264 seconds]
galaxie has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
<baweaver>
havenwood: what was your magic fizzbuzz seed?
<havenwood>
baweaver: I have a few depending on what you want the starting array to be!
<baweaver>
whatever the biggest size was you got to
<havenwood>
baweaver: A short one in a loop is: 1.upto(100).each_slice(15).flat_map { |a| srand 6898176339; a.map { |n| [nil, 'Fizz', 'Buzz', 'FizzBuzz'].freeze.sample || n } }
<havenwood>
baweaver: sec, checking on biggest
<havenwood>
baweaver: 24 consecutive results with 76_780_826_960 without a 25+ found up to 295_731_899_514
<havenwood>
baweaver: The starting array for 24 is: [*[nil] * 53, *['Fizz'] * 27, *['Buzz'] * 14, *['FizzBuzz'] * 6].freeze
<havenwood>
it'll take beyond the heat death of the universe to find 100, so i'll probably give up
<havenwood>
that, or get very, very lucky
<havenwood>
baweaver: i kinda like the 15 cycle
<havenwood>
it's a shame you can't actually get a seed for 100 in a row
<havenwood>
i wonder if there's a 25 before 1_000_000_000_000
murarisumit has joined #ruby
<havenwood>
i just like the 15 looping variant, which is luckily easy to find for whatever starting array :)
ur5us has quit [Remote host closed the connection]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mre- has joined #ruby
mre- has quit [Ping timeout: 240 seconds]
xco has quit [Quit: xco]
murarisumit has quit [Ping timeout: 268 seconds]
cesario has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cesario has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brool has quit [Ping timeout: 245 seconds]
jmcgnh_ has joined #ruby
jmcgnh has quit [Ping timeout: 258 seconds]
jmcgnh_ is now known as jmcgnh
jmcgnh has quit [Excess Flood]
sputnik13 has joined #ruby
jmcgnh has joined #ruby
poontangmessiah has joined #ruby
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claw has quit [Ping timeout: 276 seconds]
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
<cesario>
baweaver : who are you?
sputnik13 has joined #ruby
poontangmessiah has quit [Remote host closed the connection]
cesario has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cesario has joined #ruby
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
cesario has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has joined #ruby
<baweaver>
Ex manager went by cesario, pinged him and found out he goes by jcesario on IRC
claw has joined #ruby
MrCrackPot has joined #ruby
banisterfiend has joined #ruby
alfiemax has joined #ruby
jmcgnh_ has joined #ruby
jmcgnh has quit [Ping timeout: 276 seconds]
jmcgnh_ is now known as jmcgnh
DaRock has quit [Ping timeout: 240 seconds]
murarisumit has joined #ruby
_whitelogger has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
chalkmonster has joined #ruby
fphilipe has joined #ruby
sauvin has joined #ruby
Tempesta has quit [Quit: See ya!]
ur5us has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
ur5us has joined #ruby
fphilipe_ has joined #ruby
fphilipe has quit [Ping timeout: 276 seconds]
ur5us has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
queip has quit [Ping timeout: 276 seconds]
Tempesta has joined #ruby
kyrylo has joined #ruby
<kyrylo>
Hey there! Does anyone know why `obj.method(:foo)` raises a NameError when `obj.respond_to?(:foo) #=> true`. I cannot think of a scenario but a user of my library reports such a bug
<kyrylo>
That method is defined on a Rails model, fwiw
Mrgoose84 has joined #ruby
<baweaver>
waitasec, I didn't know I could define the english ops
<baweaver>
Where was the method method anyways?
<baweaver>
was looking for that and respond_to?
<baweaver>
"Returns true if obj responds to the given method. Private and protected methods are included in the search only if the optional second parameter evaluates to true."
<karstenk>
"Could not find gemnasium-gitlab-service-0.2.6 in any of the sources" cause its yanked by debian. How to workaround?
<kyrylo>
👍
cesario has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has joined #ruby
<havenwood>
kyrylo: i was actually thinking because for some reason the @attributes intermittently had or didn't have the key. i don't have a concrete hypothesis - just thought if @attributes.key?('foo') #=> true one sec and not the next it would explain.
<havenwood>
I guess you could skip the `gem install -g` since it just references the gemspec and you're not doing development.
<havenwood>
karstenk: to just clone and build the gem: git clone https://github.com/gemnasium/gemnasium-gitlab-service.git && cd gemnasium-gitlab-service && gem build gemnasium-gitlab-service.gemspec && gem install gemnasium-gitlab-service-*.gem
<havenwood>
karstenk: (rake install just does the gem install/build step in one)
queip has quit [Ping timeout: 268 seconds]
Intelo has joined #ruby
Intelo has quit [Read error: Connection reset by peer]
queip has joined #ruby
schne1der has joined #ruby
dbugger has joined #ruby
DaRock has joined #ruby
Fischmiep has joined #ruby
<karstenk>
havenwood Thanks that installation seemed to work, but I get still the error: Could not find gemnasium-gitlab-service-0.2.6 in any of the sources
<karstenk>
seems not to find the installation
<havenwood>
karstenk: what command gives that error?
<karstenk>
sudo -u git -H bundle install --deployment --without development test mysql aws kerberos
<karstenk>
This problem seem to be present in all versions dependend to gemnasium-gitlab-service . Opened an issue, but hoping still to find a workaround with your help havenwood
<karstenk>
I upgraded to buster and so I needed to upgrade to ruby 2.4 cause of openssl. That causes my gitlab problems and trys to fast forward
<karstenk>
Iam exactly on the installation guide except ruby version and now stuck with that bundle install command
<havenwood>
karstenk: mm, i see. looking at the install guide.
<havenwood>
karstenk: using the apt ruby + apt gems is messing you up here since the gemnasium package was yanked
<karstenk>
:-(
<havenwood>
karstenk: options include using `sudo gem install` versions of gems with your apt ruby or installing ruby another way (happy to show a few to choose from)
<havenwood>
karstenk: apt publishes a subset of gems. many folk opt to instead simply use rubygems for gems, which makes all gems available but not via apt packages.
<havenwood>
karstenk: err, these instructions show building ruby yourself?
bitwinery has quit [Quit: Leaving]
<karstenk>
yes
<karstenk>
but Ive installed ruy with another guid cause I need ruby >2.3
<havenwood>
karstenk: show your?: bundle config
<havenwood>
karstenk: mind sanity checking a few things? what is your?: gem which bundler
<karstenk>
Exception `Errno::ENOENT' at /usr/local/lib/ruby/2.4.0/fileutils.rb:1220 - No such file or directory @ rb_file_s_lstat - /usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/gemnasium-gitlab-service-0.2.6
Fischmiep has quit [Ping timeout: 250 seconds]
<havenwood>
karstenk: i'm too tired to read the instructions you were following. maybe someone with fresher eyes can weigh in. the default `gem env gempath` or env var `GEM_PATH` point to where RubyGems will try to load gems. The `gem env gemdir` or `GEM_HOME` is where Ruby will install gems.
alfiemax has quit [Remote host closed the connection]
AJA4350 has joined #ruby
<havenwood>
/usr/local/lib/ruby/gems/2.4.0 is in your gempath and you seem to be installing to /usr/local/lib/ruby/gems/2.4.0/gems/gemnasium-gitlab-service-0.2.6 so i don't see what the problem is
BH23 has joined #ruby
<havenwood>
karstenk: oh, it's not in your bundle
<havenwood>
karstenk: i'm tired
<havenwood>
someone else should probably help!
skyikot has quit [Ping timeout: 260 seconds]
<havenwood>
karstenk: is gemnasium-gitlab-service in your Gemfile?
<havenwood>
that's easier
cesario has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
karstenk: add a gem directive to Gemfile: gem 'gemnasium-gitlab-service', github: 'gemnasium/gemnasium-gitlab-service'
<havenwood>
karstenk: then: bundle
<havenwood>
karstenk: technically, you shouldn't use that if ^ format until bundler 2.0+
<ruby[bot]>
hd1: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
murarisumit has quit [Ping timeout: 265 seconds]
<havenwood>
karstenk: ah, right. the --deployment flag means it'll refuse with this error. you can simply first: bundle --no-deployment
<havenwood>
karstenk: then the --deployment flag will work once again
<havenwood>
karstenk: have the mkmf.log handy?
<havenwood>
oops, meant that ^ for hd1
cgfbee has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 265 seconds]
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
yasumi2136 has joined #ruby
cgfbee has joined #ruby
alem0lars has quit [Remote host closed the connection]
<karstenk>
havenwwod ive changed now to 2.5 debian default version of ruby, made your steps again, but also with bundler 1.15 or 2.1.0 all results in Could not find gemnasium-gitlab-service-0.2.6 in any of the sources
alfiemax has quit [Remote host closed the connection]
jmcgnh has quit [Ping timeout: 265 seconds]
murarisumit has joined #ruby
alem0lars has joined #ruby
jmcgnh has joined #ruby
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
<havenwood>
karstenk: what's the current error?
<havenwood>
karstenk: oh, you mean it's not in the sources with that, gotcha
alem0lars has quit [Read error: Connection reset by peer]
Fernando-Basso has joined #ruby
dviola has quit [Quit: WeeChat 2.6]
<havenwood>
karstenk: show your Gemfile and Gemfile.lock? Maybe someone here can spot what's wrong.
<havenwood>
karstenk: i'd have thought it'd work to point that gem to github, but i gotta run. happy to look with fresh eyes in the morning if someone hasn't helped. with the Gemfile and Gemfile.lock it should be reproducible.
alfiemax has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
ur5us has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
ur5us has joined #ruby
akosednar has quit [Ping timeout: 245 seconds]
akosednar has joined #ruby
akosednar has quit [Changing host]
akosednar has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Fischmiep has joined #ruby
cesario has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fischmiep has quit [Ping timeout: 265 seconds]
Fernando-Basso has quit [Remote host closed the connection]
cesario has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
dasher00 has joined #ruby
xco has joined #ruby
queip has quit [Ping timeout: 276 seconds]
cesario has joined #ruby
queip has joined #ruby
cesario has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has quit [Read error: Connection reset by peer]
DaRock has quit [Read error: Connection reset by peer]
fphilipe_ has joined #ruby
Fischmiep has joined #ruby
alfiemax has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
banisterfiend has quit [Client Quit]
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
andikr has quit [Ping timeout: 268 seconds]
andikr has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
rafadc_ has joined #ruby
involans has joined #ruby
ellcs has quit [Ping timeout: 276 seconds]
rafadc has quit [Ping timeout: 258 seconds]
banisterfiend has joined #ruby
rafadc_ has quit [Read error: Connection reset by peer]
pep7 has joined #ruby
pep7 has joined #ruby
pep7 has quit [Changing host]
rafadc has joined #ruby
BH23 has quit [Ping timeout: 276 seconds]
blackmesa1 has quit [Ping timeout: 246 seconds]
reber has quit [Remote host closed the connection]
Swyper has joined #ruby
ellcs has joined #ruby
DaRock has joined #ruby
Swyper has quit [Ping timeout: 252 seconds]
murarisumit has quit [Ping timeout: 245 seconds]
x77686d has quit [Quit: x77686d]
Swyper has joined #ruby
absolutejam has quit [Ping timeout: 258 seconds]
andikr has quit [Ping timeout: 265 seconds]
Swyper has quit [Remote host closed the connection]
yasumi2136_ has joined #ruby
absolutejam has joined #ruby
BH23 has joined #ruby
yasumi2136 has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has joined #ruby
ellcs has quit [Remote host closed the connection]
ellcs has joined #ruby
rafadc_ has joined #ruby
rafadc has quit [Ping timeout: 240 seconds]
rafadc_ has quit [Read error: Connection reset by peer]
blackmesa1 has joined #ruby
rafadc has joined #ruby
xco has quit [Quit: xco]
x77686d has joined #ruby
poontangmessiah has joined #ruby
blackmesa1 has quit [Ping timeout: 245 seconds]
involans has quit [Quit: involans]
jrafanie has joined #ruby
fphilipe_ has joined #ruby
karstenk has quit [Remote host closed the connection]
chalkmonster has joined #ruby
donofrio has joined #ruby
alfiemax has quit [Remote host closed the connection]
andikr has joined #ruby
vondruch has quit [Ping timeout: 265 seconds]
eclm has joined #ruby
alfiemax has joined #ruby
hutch1 has joined #ruby
x77686d has quit [Quit: x77686d]
djdduty has quit [Ping timeout: 245 seconds]
x77686d has joined #ruby
andikr has quit [Ping timeout: 245 seconds]
fphilipe_ has quit [Read error: Connection reset by peer]
fphilipe_ has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fischmiep has joined #ruby
hutch1 has quit [Ping timeout: 250 seconds]
lucasb has joined #ruby
ravenous_ has joined #ruby
x77686d has quit [Quit: x77686d]
Fischmiep has quit [Ping timeout: 265 seconds]
alfiemax has quit [Remote host closed the connection]
schne1der has quit [Ping timeout: 276 seconds]
yasumi2136_ has quit [Remote host closed the connection]
ravenous_ has quit [Ping timeout: 252 seconds]
queip has quit [Ping timeout: 246 seconds]
troulouliou_div2 has joined #ruby
akem-lnvo has joined #ruby
murarisumit has joined #ruby
skyikot has joined #ruby
drincruz has joined #ruby
blackmesa1 has joined #ruby
queip has joined #ruby
murarisumit has quit [Ping timeout: 246 seconds]
andikr has joined #ruby
akem_lnvo has joined #ruby
alfiemax has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem-lnvo has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
Rapture has joined #ruby
murarisumit has joined #ruby
drincruz has quit [Quit: WeeChat 2.6]
blackmesa1 has quit [Ping timeout: 250 seconds]
drincruz has joined #ruby
Technodrome has joined #ruby
fig-le-deunch has joined #ruby
Fraeon has quit [Ping timeout: 245 seconds]
Fraeon has joined #ruby
queip has quit [Ping timeout: 240 seconds]
mre- has joined #ruby
queip has joined #ruby
yann-kaelig has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
etupat has joined #ruby
jacksoow has quit [Read error: Connection reset by peer]
jacksoow has joined #ruby
spacesuitdiver has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has joined #ruby
<etupat>
Hello folks! I am pretty new to Ruby (I'm a JS Dev) but tasked with modifying a script. It's a pretty simply modification-- I think it will only involve 5 LoC. However, I am unsure what is wrong with my solution. Was hoping a kind soul could assist. Current code block is just 12 lines, and I think I'd only need to add the 5 LoC shown in this pastebin. https://pastebin.com/wsMYhCkS
<ruby[bot]>
etupat: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
grilix has joined #ruby
<etupat>
ruby[bot]: I don't feel comfortable using gists
jottr has joined #ruby
pep7 has quit [Quit: Leaving]
queip has quit [Ping timeout: 240 seconds]
akem__ has joined #ruby
skyikot has quit [Ping timeout: 260 seconds]
queip has joined #ruby
akem_lnvo has quit [Ping timeout: 245 seconds]
x77686d has joined #ruby
hutch1 has joined #ruby
skyikot has joined #ruby
SeepingN has joined #ruby
Fraeon has quit [Ping timeout: 240 seconds]
<TheBrayn>
why not?
chalkmonster has joined #ruby
nisstyre has joined #ruby
nisstyre has left #ruby ["WeeChat 2.5"]
xco has joined #ruby
<etupat>
Because I don't want to save my company's code to gist
<etupat>
Pastebin at least disappears and isn't associated with my github account
<etupat>
And pastebin is perfectly readable for small snippets
Fraeon has joined #ruby
<etupat>
In fact, this is the first time I've heard a complaint about it :P
<etupat>
I think the problem is just my script is having some weird background issues where it's not logging basic stuff. (I also realized my .map statement needs to be a object.each do |k,v| sort of thing)
Esa_ has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
phaul has quit [Quit: :wq]
phaul has joined #ruby
phaul has quit [Client Quit]
schne1der has joined #ruby
phaul has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
<phaul>
ruby[bot]: is a bot and it was thaught about telling ppl off many years ago when you could create anonymous gists easily without registering.. These days the topic recommends dpaste.de
<phaul>
I would say just ignore the bot for now, Im happy to look at your snippet. Others on the channel might think differently though
hd1 has quit [Remote host closed the connection]
Fraeon has quit [Ping timeout: 245 seconds]
nahra` has quit [Quit: ERC (IRC client for Emacs 26.2)]
ellcs has joined #ruby
absolutejam has quit [Ping timeout: 268 seconds]
<adam12>
Pastebin just looks like a wall of text for me usually. Unless I'm completely idle, I don't bother looking at them. Time is valuable, and having to drill through someones unfamiliar, completely similar looking code just isn't enjoyable.
<phaul>
etupat: on line 40 what was the intention? Isn't that just a dead bit of code? It's not part of any conditional.
Fraeon has joined #ruby
jrafanie has joined #ruby
<phaul>
etupat: also assigning a value to local variable is suspect there, the result of the block would go to the map, the value assignment is also a no-op.
DaRock has quit [Ping timeout: 276 seconds]
<phaul>
etupat: the if statement if the condition is false would evaluate to nil. but the nils will still be there in the resulting array
donofrio has quit [Ping timeout: 240 seconds]
<phaul>
and finally to_h probably expects an array of pair of things which your block doesn't provide
nahra has joined #ruby
<phaul>
if you would just want to transofrm the stored values in a hash I recommend you look up #transform_values
<etupat>
phaul: Awesome, thank you for that documentation I am checking it out now
xco has joined #ruby
chalkmonster has joined #ruby
<phaul>
I think using that would solve your issues. One thing to point out is that even in .each your assignment just modifies a local variable that has no effect on the hash
<etupat>
phaul: Ahh, I see. I will attempt to put into place a transform then.
arne_ has joined #ruby
<arne_>
are there cool ncurses programs written in rubeeeeh?
<adam12>
arne_: Yast2 from SuSE I think.
<arne_>
i am wondering and planning to do something with ruby, that's why i ask
suukim has joined #ruby
<arne_>
(and maybe decide to not use ruby for the cli)
Fraeon has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
Fraeon has joined #ruby
murarisumit has quit [Ping timeout: 245 seconds]
<adam12>
arne_: It's not ncurses but the tty collection of gems are quite nice too. Depends on what you're building I guess.