havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
jenrzzz has quit [Ping timeout: 265 seconds]
NickNAck has joined #ruby
AJA4351 has joined #ruby
shirak has quit [Ping timeout: 265 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<Intelo> I get session cookie shared from s.site.com to n.s.site.com but when the later sends ajax call in browser to b.s.site.com, the cookies is not passed
NL3limin4t0r_afk has quit [Ping timeout: 246 seconds]
poontangmessiah has quit [Remote host closed the connection]
jsaak has quit [Quit: leaving]
NL3limin4t0r_afk has joined #ruby
gp has quit [Read error: Connection reset by peer]
barg has quit [Ping timeout: 240 seconds]
barg has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
Esa_ has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
poontangmessiah has joined #ruby
hiroaki has quit [Ping timeout: 268 seconds]
<Intelo> issue was credentials:include was needed. Solved
sergioro has joined #ruby
drincruz has quit [Ping timeout: 276 seconds]
teardown has joined #ruby
Intelo has quit [Ping timeout: 240 seconds]
cthu| has joined #ruby
etupat has quit [Remote host closed the connection]
cthulchu_ has quit [Ping timeout: 250 seconds]
etupat has joined #ruby
Swyper has joined #ruby
etupat has quit [Ping timeout: 240 seconds]
NickNAck has quit [Remote host closed the connection]
poontangmessiah has quit [Remote host closed the connection]
sergioro has quit [Quit: leaving]
sergioro has joined #ruby
Technodrome has joined #ruby
AJA4350 has joined #ruby
golevka has joined #ruby
BTRE has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BTRE has joined #ruby
Technodrome has joined #ruby
Swyper has quit [Remote host closed the connection]
gix has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
etupat has joined #ruby
wildtrees has quit [Quit: Leaving]
sergioro has quit [Quit: leaving]
etupat has quit [Remote host closed the connection]
AJA4351 has joined #ruby
druonysus has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
nubie has joined #ruby
etupat has joined #ruby
druonysus has quit [Client Quit]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
druonysus has quit [Quit: druonysus]
ur5us has quit [Ping timeout: 240 seconds]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
etupat has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 276 seconds]
druonysus has quit [Client Quit]
ur5us_ has joined #ruby
druonysus has joined #ruby
ur5umaritus has joined #ruby
MzrE has joined #ruby
MzrE2 has joined #ruby
kyrylo has joined #ruby
Swyper has quit [Remote host closed the connection]
AJA4351 has joined #ruby
ur5us_ has quit [Ping timeout: 276 seconds]
Swyper has joined #ruby
jenrzzz has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
BTRE has quit [Read error: Connection reset by peer]
yoshie902a has joined #ruby
etupat has joined #ruby
<yoshie902a> I am using textmate to run some code, but it executes from the wrong path, so my gems, etc are not there. Is there a way to put something in the file or edit text mate to execute my code in the path with all the installed gems ,etc?
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renich has joined #ruby
duderonomy has joined #ruby
ravenousmoose has joined #ruby
jaequery has joined #ruby
etupat has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
ravenousmoose has quit [Ping timeout: 252 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
etupat has joined #ruby
Swyper has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Swyper has quit [Remote host closed the connection]
etupat has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
etupat has joined #ruby
crella133 has joined #ruby
<havenwood> yoshie902a: You can set env vars in Textmate preferences.
<havenwood> ?crosspost Intelo
<ruby[bot]> havenwood: I don't see no Intelo, whom should I tell about crosspost?
<yoshie902a> havenwood: how?
eljimmy has quit [Quit: This computer has gone to sleep]
<yoshie902a> what would I do?
<yoshie902a> what is the env variable I would set?
<yoshie902a> and what value?
<yoshie902a> havenwood: ^
<havenwood> yoshie902a: Typically PATH and GEM_PATH.
<crella133> To deep copy an array, even if the array is a property of a Class, use 'array.compact'. Is it right?
<yoshie902a> havenwood: I have values there b/c of rvm
<havenwood> yoshie902a: How'd you install Ruby?
<havenwood> crella133: No—just look at the Array#compact docs.
<havenwood> crella133: Is that a homework question?
<yoshie902a> GEM_PATH /Users/a/.rvm/gems/ruby-2.6.3/gems
etupat has quit [Remote host closed the connection]
<yoshie902a> PATH: /Users/a/.rvm/bin/rvm-auto-ruby:/Users/a/.rvm/bin:$PATH
<havenwood> yoshie902a: Set those env vars in Textmate. https://macromates.com/blog/2014/defining-a-path/
<yoshie902a> I know how to change them in text mate, I just don’t know what I change them too
<havenwood> crella133: That's not in the ballpark of being right.
<yoshie902a> do I prepend another path?
<yoshie902a> to the folder I want to execute the code? the main issue is just finding the gems
<havenwood> yoshie902a: They're probably unset in Textmate. Do they work if you open `mate` from command line? I don't have Textmate istalled.
<havenwood> yoshie902a: Search for Textmate help with PATH and Rubies.
ur5us has joined #ruby
<yoshie902a> I set the PATH and TM_RUBY variables b/c of RVM
<yoshie902a> but GEM_PATH was not
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
<yoshie902a> The main issue, is if I move where the ruby file is saved, the execution path I think changes, as it does not know the gems
etupat has joined #ruby
<havenwood> yoshie902a: literally search for: textmate rvm https://rvm.io/integration/textmate
<yoshie902a> havenwood: I don’t think I am being clear. Let me try again
<havenwood> yoshie902a: wrappers unfortunately don't have their own RVM page. they're frequently the solution with RVM.
edwardly has quit [Ping timeout: 268 seconds]
<havenwood> yoshie902a: A wrapper is a shim that will set env vars then call Ruby. You can use a wrapper from Textmate or whatever else you want. There's more on wrappers in other sections of RVM docs like cron, upstart, etc.
ur5umaritus has quit [Ping timeout: 276 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
<yoshie902a> havenwood: can you use rvm-auto-ruby and if not available use the wrapper?
bkuhlmann has joined #ruby
etupat has quit [Remote host closed the connection]
<havenwood> yoshie902a: it should be available. try the former and if not use the latter.
<havenwood> yoshie902a: TM_RUBY as rvm-auto-ruby should work, iir - been ages since I've used TM
<havenwood> ¯\_(ツ)_/¯
<yoshie902a> does which gem give me the file path of the gems I am using for a specific folder?
<havenwood> yoshie902a: no, `which gem` is the first `gem` in your PATH.
<havenwood> yoshie902a: That's the gem command itself.
<havenwood> yoshie902a: You can check: gem env
<havenwood> yoshie902a: gem env gemdir
<havenwood> yoshie902a: Or a specific gem, say a gem called yoshie902a: gem which yoshie902a
<havenwood> yoshie902a: Or gem executables: echo "$(gem env gemdir)/bin"
<havenwood> yoshie902a: See `gem env` and `rvm info` for general info.
<havenwood> Just released a video showing off the new Square gem. :) https://youtu.be/tPSa_9jk6S4
BTRE has joined #ruby
<yoshie902a> gem env gives me a ton of paths, I assume Gem PATHS is the one I need? but it gives me two paths listed, so which one is the one that is the one used for my directory?
<yoshie902a> /Users/a/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0
<yoshie902a> /Users/a/.rvm/gems/ruby-2.6.3
<yoshie902a> in text mate, I have my GEM_Path set to the first, but it does not seem to execute my code
<havenwood> (Just a basic intro to the fact the gem exists., but proud I managed to get the words out.)
<havenwood> yoshie902a: $GEM_PATH or `gem env gempath` are the paths where Ruby will look for gems.
etupat has joined #ruby
<yoshie902a> that’s what I thought I need, and I think it’s set correctly, but does not seem to work :(
<yoshie902a> not sure how to trouble shoot
<havenwood> yoshie902a: Does hardcoding to a wrapper work?
<havenwood> yoshie902a: Try that first.
<yoshie902a> if I use a wrapper, how to I add the gems to it?
<yoshie902a> I see how to create it, but don’t understand how to install the gems to it
<havenwood> yoshie902a: A wrapper is just a shim to make sure you're using a particularly RVM and gemset. It'll use the gems that are there.
<yoshie902a> so I create the wrapper from that folder?
bkuhlmann has left #ruby [#ruby]
<havenwood> yoshie902a: You follow RVM instructions to create a wrapper then use that wrapper as your Ruby.
<havenwood> yoshie902a: I don't recall. Someone using Textmate contemporarily might be able to share settings. I'd suggest following RVM or Textmate instructions explicitly. Did you try the RVM instructions for Textmate?
bkuhlmann has joined #ruby
<yoshie902a> yes, it was a huge head ache when I did it
<yoshie902a> I tried creating a wrapper, I think it failed
<havenwood> yoshie902a: Did you try just starting textmate from the terminal so it can inherit env?
<havenwood> yoshie902a: I recall it just working. I don't use either tool these days.
hyperreal has quit [Ping timeout: 268 seconds]
<yoshie902a> havenwood: text mate works when the file is in the same folder as gem set, but not when not
<yoshie902a> the issue is a have a number of save templates for testing code, and they are saved seperately from my projects
<yoshie902a> it’s ok, I’ll continue to play with it. thank you!
<yoshie902a> havenwood: ^
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkuhlmann has quit []
bkuhlmann has joined #ruby
dr_mdma_md has quit [Quit: Connection closed for inactivity]
MzrE2 has quit [Read error: Connection reset by peer]
MzrE has quit [Read error: Connection reset by peer]
lineus_ has joined #ruby
lineus has quit [Ping timeout: 276 seconds]
kent\n has quit [Read error: Connection reset by peer]
yoshie902a has left #ruby [#ruby]
<brool> #> Hash[[1,2],[3,4]]
<brool> is there a bot in here
kent\n has joined #ruby
<brool> why does Hash[[1,2],[3,4]] => {[1,2]=>[3,4]} but Hash[[[1,2],[3,4]]] => {1=>2, 3=>4} ?
<Rudolph> &>> Hash[[1,2],[3,4]]
<rubydoc> # => {[1, 2]=>[3, 4]} (https://carc.in/#/r/7z0l)
<havenwood> &>> [[1,2],[3,4]].to_h # brool
<rubydoc> # => {1=>2, 3=>4} (https://carc.in/#/r/7z0m)
<brool> now i'm even more confused
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> brool: The old Hash::[] syntax takes several different argument types. One is: Hash[ [ [key, value], ... ] ] → new_hash
<brool> so it's like the outer [] are just like parens
<brool> except they're brackets
<havenwood> brool: Instead, use the more modern #to_h.
<brool> ok
* brool throws Hash[] in the Trash[]
<brool> yeet
<havenwood> hah
<Rudolph> Hash[].to_trash
<brool> that just turns it into trash
<brool> now you've got trash, i hope you're happy
<Rudolph> oh dear you're right
<havenwood> Trash[Hash[]]
<brool> NO
<brool> oh god why
<havenwood> haha
<Rudolph> my code was trash before, so its ok
* brool runs away
<brool> why was this made with brackets instead of parens???
<havenwood> brool: It's a class method ::[]
<havenwood> brool: Just a strange thing
<brool> do all class methods use brackets or just when they're defined as the [] operator?
<Rudolph> so its _kind_ of like Hash.[]() right?
<Rudolph> brool: operator overloading
<brool> wHy WoUlDn"t It juSt bE A ReGulAr MetHoD
<Rudolph> the hash class has a method that looks like: def self.[](args)
<havenwood> &>> module Brool; def self.[]; 42 end end; Brool[]
<rubydoc> # => 42 (https://carc.in/#/r/7z0n)
<brool> whoever came up with that has successfully implemented the one thing in ruby that is basically unreadable and ugly
<brool> everything was fine until i found out about this, now i have to find another programming language
<havenwood> brool: I don't see it used much these days, since we have #to_h.
<brool> havenwood: no, this is unforgivable
Azure has quit [Read error: Connection reset by peer]
<havenwood> brool: And #to_h now takes an optional block, which makes it even more useful.
* brool prays for Crystal
<havenwood> &>> 3.times.to_h { |n| [n, n] }
<rubydoc> # => {0=>0, 1=>1, 2=>2} (https://carc.in/#/r/7z0o)
Azure has joined #ruby
<brool> oh it's on enumerator
<brool> neat
nubie_ has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nubie has quit [Ping timeout: 240 seconds]
<crella133> Code:: bseq = [3, 4.5, 2.4]; dobj = Math::cos(bseq); pp dobj
<crella133> What's the easiest way to get a list of {cos(3), cos(4.5), cos(2.4)}? Is it possible to modify the 'Math::cos' method in order to let it support Array computing?
druonysus has quit [Quit: druonysus]
bkuhlmann has quit []
<brool> crella133: bseq.map{|n| Math::cos(n)} ?
<crella133> …… I often forget something after learning some other thing.
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
<brool> <3 map
xall has joined #ruby
druonysus has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
<crella133> How can a Class refused to be 'new'ed if its 'initialize' method have checked a wrong argument? Is it to create a method wrapper for creating the Class?
bacchist has quit [Read error: Connection reset by peer]
dr_mdma_md has joined #ruby
eljimmy has joined #ruby
bacchist has joined #ruby
eljimmy has quit [Client Quit]
golevka has quit [Read error: Connection reset by peer]
crella133 has quit [Quit: crella133]
eljimmy has joined #ruby
crella133 has joined #ruby
crella133 has quit [Client Quit]
Esa_ has joined #ruby
dr_mdma_md has quit []
cd has quit [Quit: cd]
Esa_ has quit []
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
druonysus has quit [Remote host closed the connection]
druonysus has joined #ruby
brool has quit [Ping timeout: 276 seconds]
druonysus has quit [Remote host closed the connection]
etupat has quit [Remote host closed the connection]
ravenousmoose has joined #ruby
bsdbandit-01 has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
crella133 has joined #ruby
etupat has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
druonysus has quit [Remote host closed the connection]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
dr_mdma_md has joined #ruby
ExoUNX has quit [Quit: later fam...]
bacchist has quit [Ping timeout: 240 seconds]
bacchist has joined #ruby
crella133 has quit [Quit: crella133]
etupat has quit [Remote host closed the connection]
druonysus has quit [Remote host closed the connection]
ravenousmoose has quit [Ping timeout: 264 seconds]
Tricon has joined #ruby
renich has quit [Read error: Connection reset by peer]
SuperLag has joined #ruby
Tricon has quit [Quit: leaving]
sauvin has joined #ruby
phaul_ has joined #ruby
phaul_ has quit [Ping timeout: 268 seconds]
ur5us_ has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
Tricon has joined #ruby
sandstrom has joined #ruby
conta has joined #ruby
<havenwood> No clue what crella133 really meant, but here's my answer :P https://gist.github.com/havenwood/2b8ec33e743917678769ce3b4ae899f1
Nicmavr has joined #ruby
donofrio has quit [Remote host closed the connection]
Intelo has joined #ruby
suukim has joined #ruby
jenrzzz has joined #ruby
conta has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
MrCrackPot has quit [Ping timeout: 250 seconds]
MrCrackPot has joined #ruby
schne1der has joined #ruby
MrCrackPotBob has joined #ruby
xall has quit [Ping timeout: 240 seconds]
MrCrackPot has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
conta has joined #ruby
andikr has joined #ruby
_whitelogger has joined #ruby
chalkmon1 has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
chalkmonster has quit [Ping timeout: 240 seconds]
schne1der has quit [Ping timeout: 268 seconds]
sandstrom has quit [Ping timeout: 276 seconds]
Intelo has quit [Ping timeout: 240 seconds]
Intelo has joined #ruby
orbyt_ has joined #ruby
xco has joined #ruby
xall has joined #ruby
xall has quit [Client Quit]
Intelo has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has joined #ruby
Intelo has joined #ruby
conta has quit [Ping timeout: 268 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
conta has joined #ruby
ur5us_ has joined #ruby
ur5umaritus has joined #ruby
conta has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 246 seconds]
ur5us_ has quit [Ping timeout: 268 seconds]
akemhp has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
<al2o3-cr> ☕☕good morning my little rublets ☕☕
wilkir has left #ruby ["ERC (IRC client for Emacs 26.3)"]
xall_ has joined #ruby
ur5umaritus has quit [Ping timeout: 250 seconds]
AJA4351 has joined #ruby
xall_ has quit [Client Quit]
xall has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
alfiemax has joined #ruby
chalkmonster has joined #ruby
chalkmon1 has quit [Ping timeout: 265 seconds]
galaxie_ has joined #ruby
galaxie has quit [Ping timeout: 260 seconds]
conta has joined #ruby
akemhp_ has joined #ruby
clemens3 has joined #ruby
conta has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
akemhp has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
akem__ has joined #ruby
conta has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
akemhp_ has quit [Ping timeout: 264 seconds]
ur5us_ has quit [Ping timeout: 245 seconds]
Intelo has quit [Read error: Connection reset by peer]
Intelo_ has joined #ruby
AJA4351 has joined #ruby
Intelo_ is now known as Intelo
conta has quit [Ping timeout: 264 seconds]
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
sandstrom has joined #ruby
conta has joined #ruby
conta has quit [Ping timeout: 252 seconds]
sergioro has joined #ruby
conta has joined #ruby
dionysus69 has quit [Quit: dionysus69]
DTZUZO has quit [Ping timeout: 252 seconds]
schne1der has joined #ruby
dionysus69 has joined #ruby
ellcs has joined #ruby
conta has quit [Ping timeout: 240 seconds]
dbugger has joined #ruby
mikecmpbll has joined #ruby
AJA4351 has joined #ruby
Intelo has quit [Remote host closed the connection]
MrCrackPotBob has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
conta has joined #ruby
Intelo has joined #ruby
Intelo has quit [Max SendQ exceeded]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 246 seconds]
petru has quit [Ping timeout: 240 seconds]
ellcs has quit [Ping timeout: 252 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
DTZUZO has joined #ruby
AJA4351 has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
phaul_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.6]
ur5us_ has joined #ruby
Fernando-Basso has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
al2o3-cr has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
DTZUZO has joined #ruby
nubie_ has quit [Quit: Leaving]
DTZUZO has quit [Ping timeout: 268 seconds]
AJA4351 has joined #ruby
DTZUZO has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
ur5us_ has quit [Remote host closed the connection]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
kyrylo has joined #ruby
Mrgoose845701915 has quit [Quit: Ping timeout (120 seconds)]
Mrgoose845701915 has joined #ruby
DTZUZO has quit [Ping timeout: 276 seconds]
DTZUZO has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
bsdband33 has joined #ruby
akemhp_ has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has quit [Ping timeout: 240 seconds]
akemhp_ has quit [Max SendQ exceeded]
bsdbandit-01 has quit [Ping timeout: 268 seconds]
akem__ has quit [Ping timeout: 268 seconds]
akemhp has joined #ruby
akemhp_ has joined #ruby
phaul_ has quit [Ping timeout: 252 seconds]
DTZUZO has joined #ruby
sergioro has quit [Quit: leaving]
akemhp has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Quit: WeeChat 2.6]
DTZUZO has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
DTZUZO has joined #ruby
phaul_ has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
asdf_ has joined #ruby
asdf_ has left #ruby [#ruby]
DTZUZO has quit [Ping timeout: 240 seconds]
akemhp_ has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
akemhp has joined #ruby
DTZUZO has quit [Ping timeout: 250 seconds]
DTZUZO has joined #ruby
akemhp_ has joined #ruby
dr_mdma_md has quit []
akemhp has quit [Ping timeout: 245 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
DTZUZO has joined #ruby
dr_mdma_md has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
AJA4351 has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
bvdw has joined #ruby
al2o3-cr has quit [Client Quit]
NL3limin4t0r_afk is now known as NL3limin4t0r
al2o3-cr has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
DTZUZO has joined #ruby
gnufied has quit [Ping timeout: 268 seconds]
al2o3-cr has quit [Quit: WeeChat 2.6]
DTZUZO has quit [Ping timeout: 268 seconds]
bsdbandit-01 has joined #ruby
DTZUZO has joined #ruby
akem__ has joined #ruby
al2o3-cr has joined #ruby
bsdband33 has quit [Ping timeout: 245 seconds]
akemhp_ has quit [Ping timeout: 245 seconds]
AJA4351 has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
MrCrackPot has joined #ruby
DTZUZO has joined #ruby
<mikecmpbll> is there any way with minitest to flag a test as an "allowed fail"? so that the failure is reported as usual in output but it doesn't affect the return code of the test process
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
tobiasvl has quit [Ping timeout: 250 seconds]
DTZUZO has quit [Ping timeout: 245 seconds]
teclator has joined #ruby
suukim has quit [Quit: Konversation terminated!]
yann-kaelig has joined #ruby
gregf_ has joined #ruby
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 246 seconds]
queip has joined #ruby
phaul_ has quit [Ping timeout: 276 seconds]
DTZUZO has joined #ruby
shirak has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4350 has joined #ruby
gregf_ has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 276 seconds]
GodFather has joined #ruby
shirak has quit [Ping timeout: 276 seconds]
DTZUZO has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
<al2o3-cr> mikecmpbll: ping zenspider
GodFather has quit [Ping timeout: 245 seconds]
DTZUZO has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
DTZUZO has joined #ruby
Swyper has quit [Remote host closed the connection]
AJA4351 has joined #ruby
nima_m has joined #ruby
Swyper has joined #ruby
tvl has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
tvl is now known as tobiasvl
GodFather has joined #ruby
conta has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 265 seconds]
phaul_ has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
bsdband54 has joined #ruby
lucasb has joined #ruby
ElFerna has joined #ruby
phaul_ has quit [Ping timeout: 276 seconds]
DTZUZO has joined #ruby
conta has joined #ruby
bsdbandit-01 has quit [Ping timeout: 240 seconds]
Intelo has joined #ruby
jenrzzz has joined #ruby
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
akemhp_ has joined #ruby
bsdbandit-01 has joined #ruby
AJA4351 has joined #ruby
bsdband54 has quit [Read error: Connection reset by peer]
akem__ has quit [Ping timeout: 268 seconds]
phaul_ has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
shirak has joined #ruby
Technodrome has joined #ruby
bsdband34 has joined #ruby
Technodrome has quit [Client Quit]
bsdbandit-01 has quit [Ping timeout: 265 seconds]
bsdband34 has quit [Read error: Connection reset by peer]
bsdband77 has joined #ruby
akemhp has joined #ruby
kyrylo has joined #ruby
Swyper has quit [Remote host closed the connection]
akemhp_ has quit [Ping timeout: 240 seconds]
shirak has quit [Ping timeout: 246 seconds]
tobiasvl has quit [Ping timeout: 252 seconds]
AJA4351 has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
akemhp has quit [Ping timeout: 265 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Fernando-Basso has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
crella133 has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
<crella133> Code:: a = Hkk.new; puts a
<crella133> Hkk is a empty class. How can I write the code so that running 'puts a' will return 'Hi I am hkk'? Is it to re-defining '.to_s; method of Hkk? I test it by re-defining '.to_s' method, but besides printing 'Hi I am hkk', ruby also prints the instance of a like '<Hkk:0x0000...04baff0?'
<havenwood> &>> class Hkk; def to_s; 'Hi I am hkk' end end; puts Hkk.new
<rubydoc> # => Hi I am hkk... check link for more (https://carc.in/#/r/7z6k)
<havenwood> crella133: #puts will print just the #to_s and return: nil
<crella133> &>> system 'ruby -v'
<rubydoc> # => ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]... check link for more (https://carc.in/#/r/7z6l)
vondruch has quit [Ping timeout: 246 seconds]
<al2o3-cr> &>> system 'w'
<crella133> Thanks, it works.
<rubydoc> # => nil (https://carc.in/#/r/7z6m)
lebigsquare has joined #ruby
crella133 has quit [Quit: crella133]
cd has joined #ruby
chalkmon1 has joined #ruby
queip has quit [Ping timeout: 252 seconds]
chalkmonster has quit [Ping timeout: 276 seconds]
queip has joined #ruby
skx86 has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lebigsquare has quit []
DTZUZO has joined #ruby
vondruch has joined #ruby
jacksoow has quit [Read error: Connection reset by peer]
jacksoow has joined #ruby
jenrzzz has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
nima_m has quit [Quit: Connection closed for inactivity]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bacchist has quit [Quit: Lost terminal]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
conta has quit [Ping timeout: 240 seconds]
drincruz has quit [Ping timeout: 240 seconds]
Intelo has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
schne1der has joined #ruby
etupat has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
kyrylo has joined #ruby
chalkmon1 has quit [Quit: WeeChat 2.6]
Intelo has joined #ruby
queip has quit [Ping timeout: 268 seconds]
ElFerna has quit [Ping timeout: 268 seconds]
Intelo has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
queip has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
al2o3-cr has quit [Quit: WeeChat 2.6]
al2o3-cr has joined #ruby
cthulchu_ has joined #ruby
XXOOXX has joined #ruby
bsdbandit-01 has joined #ruby
etupat has quit [Remote host closed the connection]
bsdband83 has joined #ruby
cthu| has quit [Ping timeout: 264 seconds]
bsdband77 has quit [Read error: Connection reset by peer]
bsdbandit-01 has quit [Ping timeout: 252 seconds]
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
XXOOXX has quit [Ping timeout: 276 seconds]
etupat has joined #ruby
dr_mdma_md has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
AJA4351 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
drincruz_ has joined #ruby
andikr has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
vondruch has quit [Quit: vondruch]
Esa_ has joined #ruby
sandstrom has quit [Ping timeout: 276 seconds]
Intelo has joined #ruby
akemhp has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 264 seconds]
AJA4351 is now known as AJA4350
etupat has quit [Remote host closed the connection]
drincruz_ is now known as drincruz
etupat has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
kyrylo has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
AJA4351 has joined #ruby
JohanP has joined #ruby
AJA4350 has quit [Ping timeout: 252 seconds]
AJA4351 is now known as AJA4350
jacksoow has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
jacksoow has joined #ruby
bvdw has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
orbyt_ has joined #ruby
rippa has joined #ruby
orbyt_ has quit [Client Quit]
x0f has quit [Ping timeout: 246 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
chalkmonster has joined #ruby
alfiemax has quit [Remote host closed the connection]
SeepingN has joined #ruby
alfiemax has joined #ruby
chalkmon1 has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
chalkmonster has quit [Ping timeout: 265 seconds]
Intelo has quit [Ping timeout: 265 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
x0f has joined #ruby
etupat has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 265 seconds]
<havenwood> Square is hiring remotely for a Rubyist position with CI/CD expertise, if anyone is interested! https://www.smartrecruiters.com/Square/743999698616470
<havenwood> If you love CI/CD and want to be a remote tech lead, let me know—happy to put in a referral.
dinfuehr has joined #ruby
clemens3 has quit [Quit: WeeChat 1.6]
greengriminal has joined #ruby
dr_mdma_md has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
kyrylo has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
poontangmessiah has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
kyrylo has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
lucasprag has joined #ruby
<lucasprag> hi? first time using IRC, is it working?
chalkmonster has joined #ruby
chalkmon1 has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
<lucasprag> heey, hello
lucasprag has left #ruby [#ruby]
etupat has joined #ruby
jaequery has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
<havenwood> halloooo
AJA4350 has quit [Ping timeout: 268 seconds]
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
ravenousmoose has joined #ruby
ravenousmoose has quit [Client Quit]
ravenousmoose has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
poontangmessiah has quit [Read error: Connection reset by peer]
poontangmessiah_ has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sphinxo has joined #ruby
<sphinxo> that it supports generating a page with the list of the events
<sphinxo> but I can't seem to get it to work
<sphinxo> I'm setting all of event_list_name, event_list_per_page, event_list_page_layout
jaequery has joined #ruby
<sphinxo> I've got event_list_page_layout set to a layout that just prints the whole "page"
Intelo has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
AJA4350 has joined #ruby
chalkmon1 has joined #ruby
chalkmonster has quit [Ping timeout: 265 seconds]
akemhp_ has joined #ruby
brool has joined #ruby
sandstrom has joined #ruby
akemhp has quit [Ping timeout: 268 seconds]
akem__ has joined #ruby
akemhp_ has quit [Ping timeout: 265 seconds]
Fernando-Basso has quit [Quit: Leaving]
Intelo has quit [Ping timeout: 245 seconds]
akemhp_ has joined #ruby
akem__ has quit [Ping timeout: 240 seconds]
jinie has quit [Ping timeout: 268 seconds]
laudecay has joined #ruby
jinie has joined #ruby
chalkmonster has joined #ruby
chalkmon1 has quit [Ping timeout: 276 seconds]
<laudecay> hi so what's the diff between class instance and class variables? i'm in rails, i'm string-constructing certain http headers, but i don't want it to reconstruct them every single time i get a request (there's a new applicationcontroller object for each request)
ElFerna has joined #ruby
kyrylo has joined #ruby
<laudecay> rubocop is complaining and saying i need to change these variables to class instance variables and i don't know why
<phaul> laudecay: there is a ~ 1hr youtube lecture I always recommmend on this topic, if you have an hour...
<laudecay> currently it's looking like unless defined? @@header_string (define @@header_string) end, then i have the before_action function that actually sets the headers to these strings underneath it
<laudecay> i do not have an hour unfortunately :/
<laudecay> my main question is will the class instance variables be recomputed on each request, if i'm just putting the construction outside a function in application_controller.rb?
sandstrom has quit [Ping timeout: 245 seconds]
bsdband83 has quit [Read error: Connection reset by peer]
<laudecay> my boss seems to think yes but i think it's just when the application_controller.rb file is run the first time, then it's the same @header_string every time a request comes in and a new instance gets created
<laudecay> phaul: do you know? i can watch the video but i'm under a real time crunch to get this code out
<laudecay> the CI takes forever :/
sandstrom has joined #ruby
<phaul> I changed my mind I wouldn't recommend that for this question any more
<phaul> it's much broader topic explaining the ruby object model
<phaul> You should watch it some time but not in this time pressure
kyrylo has quit [Ping timeout: 240 seconds]
<laudecay> oh i have a decent understanding of object models in general- class instance just doesn't get inherited to subclasses right?
<laudecay> but it would only be computed once?
AJA4351 has joined #ruby
<phaul> I don't know. you can ask the rails channel too
<phaul> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<laudecay> fair ok thank you!
bsdband74 has joined #ruby
greengriminal has quit [Quit: Leaving]
<phaul> just tell them that the question is asked at both channels ;)
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
davor has quit [Ping timeout: 265 seconds]
davor has joined #ruby
<laudecay> phaul: is there a ruby repl thing
<laudecay> i assume yes it's interpreted right
<phaul> yes and yes
<phaul> irb
<laudecay> dope thx
<phaul> the standard one
<phaul> pry the cool one
<phaul> with synatx highlight and stuff
tricon has quit [Ping timeout: 240 seconds]
akemhp has joined #ruby
akemhp_ has quit [Ping timeout: 264 seconds]
dinfuehr has quit [Ping timeout: 264 seconds]
tricon has joined #ruby
dinfuehr has joined #ruby
<laudecay> cooool
<laudecay> ok so i see class instances don't inherit, which, ungood
shirak has joined #ruby
akemhp_ has joined #ruby
kyrylo has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
shirak has quit [Ping timeout: 265 seconds]
kyrylo has quit [Ping timeout: 252 seconds]
akemhp_ has quit [Ping timeout: 240 seconds]
Milos has quit [Read error: Connection reset by peer]
Black has joined #ruby
poontangmessiah_ has quit [Quit: Leaving]
Benett has quit [Ping timeout: 245 seconds]
Black is now known as Benett
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
Swyper has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 276 seconds]
etupat has quit [Ping timeout: 240 seconds]
sauvin has quit [Remote host closed the connection]
x0f has joined #ruby
bsdband74 has quit [Read error: Connection reset by peer]
AJA4350 has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
dionysus70 is now known as dionysus69
Benett has quit [Quit:  ]
etupat has joined #ruby
Benett has joined #ruby
etupat has quit [Remote host closed the connection]
AJA4350 has joined #ruby
howdoi has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
etupat has joined #ruby
wildtrees has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
Swyper has quit [Remote host closed the connection]
yann-kaelig has joined #ruby
shirak has joined #ruby
<VSpike> If I use rspec mocks to mock a public method of an instance of a class, will internal calls to that method from other methods in the class hit the mock, or not?
Swyper has joined #ruby
ur5us has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
ur5us_ has joined #ruby
duderonomy has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
duderonomy has quit [Client Quit]
kyrylo has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
gix has joined #ruby
kyrylo has quit [Ping timeout: 268 seconds]
nowhereman has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
dr_mdma_md has quit [Quit: Connection closed for inactivity]
AJA4350 has joined #ruby
etupat has quit [Remote host closed the connection]
duderonomy has quit [Client Quit]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
jaequery has quit [Client Quit]
john2496 has joined #ruby
jenrzzz has joined #ruby
john2496 has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
AJA4351 has joined #ruby
jaequery has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
ElFerna has quit [Quit: WeeChat 1.9.1]
jaequery has quit [Client Quit]
etupat has joined #ruby
jaequery has joined #ruby
jaequery has quit [Client Quit]
TomyLobo has joined #ruby
jaequery has joined #ruby
etupat has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
jaequery has joined #ruby
Omnilord has joined #ruby
NotSatoshi has joined #ruby
<NotSatoshi> I am writing a spider program and getting annoyed with Watir... Are there better libraries for automating browser interactions?
AJA4351 has joined #ruby
cloaked1 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<al2o3-cr> NotSatoshi: selenium, capybara
cloaked1 has quit [Remote host closed the connection]
<NotSatoshi> al2o3-cr: thanks
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
<al2o3-cr> mechanize to an extent
ravenousmoose has joined #ruby
<al2o3-cr> ok, np.
beegrrl has joined #ruby
ravenousmoose has quit [Ping timeout: 246 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
jcalla has quit [Quit: Leaving]
chalkmonster has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
kyrylo has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
chalkmonster has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 265 seconds]
dbugger has quit [Ping timeout: 250 seconds]
kyrylo has quit [Ping timeout: 265 seconds]
skx86 has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
GodFather has joined #ruby
laudecay has quit [Ping timeout: 246 seconds]
<NotSatoshi> al2o3-cr: capybara is so focused on tests... hard to find much information on how to use it outside of tests
AJA4351 has joined #ruby
<al2o3-cr> NotSatoshi: yeah, not really used it, just throwing you ideas
AJA4351 is now known as AJA4350
lucasb has quit [Quit: Connection closed for inactivity]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yann-kaelig has quit [Quit: yann-kaelig]
SeepingN has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
laudecay has joined #ruby
laudecay is now known as Guest86675
Swyper has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 276 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
jaequery has joined #ruby
ellcs has joined #ruby
jaequery has quit [Client Quit]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
jaequery has joined #ruby
poontangmessiah has joined #ruby
skx86 has joined #ruby
cthu| has joined #ruby
cthulchu_ has quit [Ping timeout: 245 seconds]
beegrrl has quit [Remote host closed the connection]
<dostoyevsky> Did I install ruby correctly? I am trying to install `gem install sqlite3' but I get <<implicit declaration of function ‘RBIGNUM’>> -- shouldn't a proper installation of ruby-2.6.5 have that macro?
Swyper has joined #ruby
<dostoyevsky> (On ubuntu 16)
<havenwood> dostoyevsky: sudo yum install ruby-full
<havenwood> apt**
etupat has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
<dostoyevsky> havenwood: I've installed ruby with `# snap install ruby --classic'
bvdw has joined #ruby
<dostoyevsky> with apt I only got ruby 2.3
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
Azure|dc has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> dostoyevsky: Can you switch to a newer Ruby snap?
<havenwood> dostoyevsky: Gems often maintain recent versions to only support recent Rubies.
<havenwood> dostoyevsky: Oh, you say you're using the 2.6.5 snap?
<dostoyevsky> yeah
drincruz has quit [Ping timeout: 240 seconds]
nowhereman has quit [Ping timeout: 276 seconds]
<havenwood> dostoyevsky: show error logs?
<havenwood> dostoyevsky: Is libsqlite3-dev installed?
<dostoyevsky> of course
ravenousmoose has joined #ruby
etupat has quit [Remote host closed the connection]
<dostoyevsky> `./internal.h:#define RBIGNUM(obj) (R_CAST(RBignum)(obj))'
<havenwood> dostoyevsky: Latest versio of sqlite3?
<havenwood> sqlite3 gem*
<havenwood> dostoyevsky: 1.4.1?
<havenwood> or installing a older one from a gemfile?
<havenwood> dostoyevsky: Install logs are super helpful so we don't have to ask these things.
<havenwood> dostoyevsky: I've seen similar errors with an old Ruby and new sqlite3 gem. Dunno what's going on in your case.
ravenousmoose has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
<dostoyevsky> https://pastebin.com/eYQzJhF4 <- these are the errors for `gem install sqlite3'
<ruby[bot]> dostoyevsky: as I told you already, please use https://gist.github.com
<havenwood> dostoyevsky: versio of sqlite?
<havenwood> grr, my "n" key is broken
<dostoyevsky> havenwood: do you see anything in that logfile indicating a problem with sqlite3? I only see: : warning: implicit declaration of function ‘RBIGNUM’
<havenwood> dostoyevsky: just wanting to confirm versions of sqlite3 gem and Ruby
etupat has joined #ruby
<havenwood> dostoyevsky: i have't had a chance to look closely - multitasking
<dostoyevsky> 1.3.11 of sqlite3 ... they said one should try that one if one has that RBIGNUM ... in some issues on github
<dostoyevsky> but I think I have narrowed the error down
<havenwood> dostoyevsky: does 1.4.1 install fail?
<havenwood> dostoyevsky: sanity check your: gem ennv
<dostoyevsky> Same error
<havenwood> gem env
<havenwood> dostoyevsky: `gem env` shows the snap Ruby version you expect
<dostoyevsky> what's fascinating: $ ruby -v # ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux] // $ find / -name 'ruby.h' 2>/dev/null # /snap/ruby/160/include/ruby-2.6.0/ruby/ruby.h
<dostoyevsky> and this looks totally broken
Nicmavr has quit [Ping timeout: 245 seconds]
<dostoyevsky> headers from 2.6.0 but ruby executable from 2.6.5 ... and I already checked ruby 2.6.5 does have a definition of RBIGNUM (I pasted it like 10 mins ago)
dinfuehr has quit [Ping timeout: 276 seconds]
dinfuehr has joined #ruby
akemhp has joined #ruby
<dostoyevsky> I've downloaded 2.6.0 now too and can find `./internal.h:#define RBIGNUM(obj) (R_CAST(RBignum)(obj))' in the same place... maybe internal.h is not part of the actual ruby api..
<dostoyevsky> Compiling ruby now and installing it into a temp dir to see what the real api should look like
JohanP has quit [Quit: ERC (IRC client for Emacs 26.3)]
dinfuehr has quit [Ping timeout: 240 seconds]
<dostoyevsky> I can see in the changelog of ruby 2.2: struct RBignum is hidden. [Feature #6083] Use rb_integer_pack and rb_integer_unpack instead.
AJA4351 has joined #ruby
Azure has joined #ruby
dinfuehr has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Nicmavr has joined #ruby
etupat has quit [Remote host closed the connection]
<havenwood> dostoyevsky: the ABI number for 2.6.5 is 2.6.0
schne1der has quit [Ping timeout: 240 seconds]
<dostoyevsky> Yeah, the snap version of ruby is broken...
etupat has joined #ruby
<dostoyevsky> If I compile sqlite3 with my own compiled version of ruby it works
shirak has quit [Ping timeout: 268 seconds]
<dostoyevsky> # sudo apt-add-repository ppa:brightbox/ruby-ng && sudo apt-get update && sudo apt-get install ruby2.6 ruby2.6-dev && gem install sqlite3 # SUCCESS!!
jenrzzz has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
Guest86675 has quit [Ping timeout: 245 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 264 seconds]
AJA4351 is now known as AJA4350
<al2o3-cr> dostoyevsky: just get a rolling dist, like arch :P
<dostoyevsky> al2o3-cr: my other servers run on arch ;-)
<al2o3-cr> good choice ;)
poontangmessiah has quit [Remote host closed the connection]
<dostoyevsky> But had some bad experiences where nginx broke because I wanted to install something like zlib-dev but I had to upgrade the system for it... #archlinux told me I shouldn't use archlinux
<dostoyevsky> I guess my favorite linux distribution is OpenBSD
<al2o3-cr> dostoyevsky: lol, no shit.