<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>
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.
<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>
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} ?
<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]
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
<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>
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]
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?
<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
<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
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