<nine_milli__>
HI IS MICHALE MYERS THE REAL SUPERMAN?
nchambers has joined #ruby
gix has quit [Ping timeout: 252 seconds]
djellemah_ has joined #ruby
nine_milli__ has left #ruby ["Leaving"]
djellemah has quit [Ping timeout: 268 seconds]
mroutis has quit [Remote host closed the connection]
troulouliou_div2 has quit [Read error: Connection reset by peer]
<baweaver>
!badnick nine_milli__
<baweaver>
faster way to permaban trolls
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has joined #ruby
Hobbyboy has quit [Read error: Connection reset by peer]
Hobbyboy has joined #ruby
darkhanb has quit [Client Quit]
darkhanb has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil____ has joined #ruby
AJA4350 has quit [Quit: AJA4350]
cow[moo] has joined #ruby
wildermind has quit [Quit: Connection closed for inactivity]
kurko_ has quit [Read error: Connection reset by peer]
siaw23 has quit [Quit: siaw23]
kurko_ has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has joined #ruby
za1b1tsu has joined #ruby
asphyxia has joined #ruby
agent_white has quit [Quit: brb]
za1b1tsu has quit [Ping timeout: 252 seconds]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby
siaw23 has joined #ruby
siaw23 has quit [Client Quit]
SolarAquarion has quit [Read error: Connection reset by peer]
brkkyk has quit []
ghormoon has quit [Ping timeout: 245 seconds]
Hobbyboy has quit [Read error: Connection reset by peer]
Hobbyboy has joined #ruby
ghormoon has joined #ruby
mangold has joined #ruby
SolarAquarion has joined #ruby
ghormoon has quit [Excess Flood]
ghormoon has joined #ruby
kurko_ has quit [Read error: Connection timed out]
ghormoon has quit [Excess Flood]
ghormoon has joined #ruby
esrse has joined #ruby
kurko_ has joined #ruby
ghormoon has quit [Excess Flood]
ghormoon has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
ghormoon has quit [Ping timeout: 252 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
ghormoon has joined #ruby
mangold has joined #ruby
cagomez has joined #ruby
regedit has joined #ruby
kurko_ has quit [Ping timeout: 244 seconds]
kurko_ has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
nchambers has quit [Quit: WeeChat 2.2]
zwliew has joined #ruby
discopatrick has quit [Quit: Connection closed for inactivity]
mangold has joined #ruby
za1b1tsu has joined #ruby
johnny56 has quit [Ping timeout: 272 seconds]
za1b1tsu has quit [Ping timeout: 244 seconds]
braincrash has quit [Quit: bye bye]
johnny56 has joined #ruby
za1b1tsu has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
braincrash has joined #ruby
kurko_ has quit [Ping timeout: 252 seconds]
Dimik has quit [Ping timeout: 244 seconds]
kurko_ has joined #ruby
Sauvin has joined #ruby
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
roshanavand1 is now known as roshanavand
sanscoeur has joined #ruby
nchambers has joined #ruby
cagomez has quit [Remote host closed the connection]
eckhardt has joined #ruby
kurko_ has quit [Ping timeout: 252 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
kurko_ has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
meinside has joined #ruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
Puffball has quit [Remote host closed the connection]
mangold has joined #ruby
MoritaShinobu has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mangold has quit [Quit: This computer has gone to sleep]
Puffball has joined #ruby
kurko_ has quit [Ping timeout: 244 seconds]
kurko_ has joined #ruby
nchambers has quit [Ping timeout: 272 seconds]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #ruby
sanscoeur has quit [Ping timeout: 252 seconds]
mangold has joined #ruby
solocshaw has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
OrangeManBad has quit [Ping timeout: 264 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
roshanavand has quit [Remote host closed the connection]
zwliew has quit [Quit: Connection closed for inactivity]
OrangeManBad has joined #ruby
aupadhye has joined #ruby
roshanavand has joined #ruby
pragathoys has joined #ruby
pragathoys has quit [Quit: Going offline, see ya! (www.adiirc.com)]
doubledup has joined #ruby
pragathoys has joined #ruby
CrazyEddy has quit [Ping timeout: 245 seconds]
nchambers has joined #ruby
esrse has quit [Ping timeout: 272 seconds]
gix has joined #ruby
despai has joined #ruby
nchambers has quit [Ping timeout: 244 seconds]
pragathoys has quit [Quit: Going offline, see ya! (www.adiirc.com)]
pragathoys has joined #ruby
pragathoys has quit [Client Quit]
RougeR_ has quit [Ping timeout: 252 seconds]
despai has quit [Quit: ...]
dellavg_ has joined #ruby
aufi has joined #ruby
aufi has quit [Quit: Leaving]
aufi has joined #ruby
conta has joined #ruby
kurko_ has quit [Read error: No route to host]
MyMind has joined #ruby
Sembei has quit [Ping timeout: 252 seconds]
clemens3 has joined #ruby
kurko_ has joined #ruby
kurko_ has quit [Ping timeout: 240 seconds]
kurko_ has joined #ruby
regedit has quit [Quit: Connection closed for inactivity]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
nchambers has joined #ruby
clemens3 has quit [Remote host closed the connection]
clemens3 has joined #ruby
nchambers has quit [Ping timeout: 250 seconds]
lupine has quit [Ping timeout: 276 seconds]
marz_d`ghostman has quit [Quit: Page closed]
lupine has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
nchambers has joined #ruby
doubledup has quit [Ping timeout: 268 seconds]
nchambers has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
reber has joined #ruby
SuperL4g has joined #ruby
SuperLag_ has joined #ruby
hightower3 has joined #ruby
<hightower3>
Hey, I am looking at rspec tests where they invoke e.g. "post" to make a HTTP POST request, and then the response object is automatically available in the 'response' variable or method.
<hightower3>
How exactly is this 'response' defined and set? I would need to write a helper method which does the same thing essentially
SuperLag has quit [Ping timeout: 252 seconds]
Sup3rLurk has quit [Ping timeout: 268 seconds]
xfbs has joined #ruby
venmx has joined #ruby
alem0lars has quit [Remote host closed the connection]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
alem0lars has quit [Remote host closed the connection]
kaleido has quit [Remote host closed the connection]
c0san0stra has quit [Ping timeout: 272 seconds]
c0san0stra has joined #ruby
nchambers has joined #ruby
whysthatso has joined #ruby
<TvL2386>
hey guys. I know it's possible to use the tiny_tds gem to connect to a MSSQL Database from linux, but is it also possible to connect to a MSSQL database when running ruby on windows?
<TvL2386>
and how?
NL3limin4t0r has joined #ruby
CrazyEddy has joined #ruby
<NL3limin4t0r>
Is it possible to use *.so libraries in Ruby? I use a proprietary piece of software that has an API. However this API comes only as *.so library file (plus the Windows variant).
whysthatso has quit [Quit: whysthatso]
<hightower3>
but you have header files for it, right?
<NL3limin4t0r>
Not at the moment. I'll have to check if they are provided.
xfbs has quit [Quit: afk]
<NL3limin4t0r>
I currently wrote a small C program that acts like a daemon, opening a UNIX socket to which it listens. Incomming data is passed to the library and the response is passed back to the socket.
dachi has quit [Ping timeout: 252 seconds]
<NL3limin4t0r>
It works fine, but I was wondering if it could be done in Ruby itself.
ams__ has joined #ruby
<hightower3>
NL3limin4t0r, of course it could
nchambers has quit [Ping timeout: 246 seconds]
<NL3limin4t0r>
Let me phrase that differently. I was wondering if Ruby supports the intergration with *.so files without dirty hacks.
nchambers has joined #ruby
kurko_ has quit [Ping timeout: 252 seconds]
jespada has joined #ruby
nchambers has quit [Ping timeout: 252 seconds]
<al2o3-cr>
NL3limin4t0r: is the so file a ruby c extension? if so, then it's a simple require 'foo.so'. if not, then you'd have to use ffi or some such.
<NL3limin4t0r>
al2o3-cr: the so extension stands for Shared Object and is used in the Linux C and C++ languages. Windows uses dll for this.
kurko_ has joined #ruby
<al2o3-cr>
NL3limin4t0r: i'm aware and for mac dylib?
<NL3limin4t0r>
I have no clue about macs.
<al2o3-cr>
NL3limin4t0r: what i'm saying if it's not a ruby c extension you would have to use ffi to interact with said so file.
conta has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
jespada has quit [Quit: WeeChat 2.2]
mangold has quit [Quit: This computer has gone to sleep]
<NL3limin4t0r>
Ah, I can work with that. Didn't know about the ffi gem. ty
jespada has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
jespada has quit [Client Quit]
<al2o3-cr>
NL3limin4t0r: btw, there is also fiddle in the stdlib.
<al2o3-cr>
which is also libffi wrapper.
phaul has joined #ruby
mangold has joined #ruby
jespada has joined #ruby
justicefries has joined #ruby
gilfoyle has joined #ruby
jespada has quit [Client Quit]
AJA4350 has joined #ruby
jespada has joined #ruby
phaul has quit [Quit: bye]
phaul has joined #ruby
jespada has quit [Quit: WeeChat 2.2]
jespada has joined #ruby
OrangeManBad has quit [Ping timeout: 260 seconds]
Fusselgesicht has joined #ruby
jespada has quit [Quit: WeeChat 2.2]
nchambers has joined #ruby
gilfoyle has quit [Quit: Lost terminal]
OrangeManBad has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justicefries has joined #ruby
apparition has joined #ruby
conta has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
djellemah_ is now known as djellemah
<djellemah>
NL3limin4t0r: fiddle is (as usual for ruby's lesser-known std libraries) very competent but somewhat under-documented.
roshanavand has quit [Remote host closed the connection]
nchambers has quit [Ping timeout: 252 seconds]
za1b1tsu has quit [Ping timeout: 240 seconds]
mostlybadfly has joined #ruby
nezt0r has joined #ruby
mniip has quit [Ping timeout: 600 seconds]
ta_ has joined #ruby
za1b1tsu has joined #ruby
nchambers has joined #ruby
<NL3limin4t0r>
djellemah: I'll have a look ty for the suggestion.
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
m0nty0ne has joined #ruby
m0nty0ne has quit [Max SendQ exceeded]
m0nty0ne has joined #ruby
nezt0r has quit [Ping timeout: 252 seconds]
GDPR is now known as emerson
kapil____ has joined #ruby
B00gyman is now known as bougyman
GodFather has joined #ruby
bak1an has joined #ruby
voolik has joined #ruby
dachi has joined #ruby
roshanavand has joined #ruby
asphyxia has quit [Ping timeout: 252 seconds]
<dachi>
Hello
<dachi>
Do you think class variables are (@@) going to get deprecated, or do you think they're going to be used by gems like URI and others? Do you use them?
<dachi>
I mean ruby-3xx
Fusselgesicht has quit [Quit: leaving]
aupadhye has quit [Remote host closed the connection]
TheBloke has joined #ruby
jsc has joined #ruby
jsc is now known as status402
roshanavand has quit [Remote host closed the connection]
<dachi>
I was just saying that this is a pretty solid establishment and not going to be changed
<dachi>
But still I asked for your opinion
yokel has quit [Remote host closed the connection]
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bauruine has joined #ruby
spiette has joined #ruby
spiette has quit [Client Quit]
justicefries has joined #ruby
spiette has joined #ruby
kaleido has joined #ruby
conta has quit [Ping timeout: 244 seconds]
aufi has joined #ruby
egourlao has joined #ruby
roshanavand has joined #ruby
kirun has joined #ruby
conta has joined #ruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
rippa has joined #ruby
egourlao has quit []
<llua>
moo.
voolik has quit [Ping timeout: 245 seconds]
roshanavand has quit [Remote host closed the connection]
brkkyk has quit []
Deesl has joined #ruby
chouhoulis has joined #ruby
desperek has joined #ruby
ujjain has quit [Remote host closed the connection]
Dimik has joined #ruby
brendan- has joined #ruby
MoritaShinobu has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
orbyt_ has joined #ruby
ta_ has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 252 seconds]
<Inside>
\o
roshanavand has joined #ruby
sanscoeur has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #ruby
ivanskie has joined #ruby
cd has quit [Quit: cd]
mniip has joined #ruby
sanscoeur has quit [Ping timeout: 252 seconds]
eddof13 has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
status402 has quit [Quit: status402]
<havenwood>
dachi: It's unlikely they'll have their semantics fixed or that they'll be deprecated in Ruby 3. It would cause too many breaking changes.
<havenwood>
dachi: That said, they continue to be an anti-pattern to use. Just like with global variables, it's recommended to not use class variables, but they won't be removed anytime soon.
<havenwood>
"the use of class variables is not recommended (like global variables)" ~Matz
kurko_ has quit [Ping timeout: 252 seconds]
<dachi>
havenwood thanks, that's what I was thinking too
<ivanskie>
i gave up with my quest of making it work with net::ssh. can't beat it into submission. though it's just not meant for what i want obviously. ended up just doing Kernel.exec launching a cooked up ssh command.
TheBloke has joined #ruby
<desperek>
does somebody use cuba.rb?
<desperek>
well, cuba
<desperek>
how do i make 404/403 and all these
krawchyk has joined #ruby
AJA4350 has joined #ruby
<apeiros>
ivanskie: tried sshkit?
vondruch has quit [Ping timeout: 260 seconds]
za1b1tsu has quit [Quit: WeeChat 2.2]
za1b1tsu has joined #ruby
roshanavand has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
Nicmavr has joined #ruby
Inv1s1ble has joined #ruby
<eam>
ivanskie: I always shell out to ssh, there's unfortunately no other way to do fully featured ssh sessions
aufi has joined #ruby
<Inv1s1ble>
I've got a function that takes in two functions and I'm trying to figure out how to determine the correct function is called within rspec: https://bpaste.net/show/dfb33b2131ed
<eam>
every ssh library across all languages has some crucial feature they're missing
<Inv1s1ble>
What should I be doing to ensure the first lambda is called and the second isn't?
nowhere_man has quit [Ping timeout: 252 seconds]
<ivanskie>
yeah i had to find that out the hard way.. rather I assumed i could do it and went on.
<ivanskie>
but thats what i just ended up doing. just build the ssh command string then Kernel.exec into it.
<ivanskie>
sshkit looks cool for running rake commands on remotes after jumping through jumpbox tho.
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam>
I've not yet found an ssh library which can handle kerberos auth
<eam>
in any language, not just ruby
<ivanskie>
so i could do.. `$ app rake super-awesome-rake-task --app my-cool-app --env staging`. and it'd jump to right box and run the rake command within correct folder and envars, etc etc with pretty output. looks promising haha
im0nde has quit [Quit: im0nde]
dellavg_ has quit [Ping timeout: 264 seconds]
aufi has quit [Ping timeout: 272 seconds]
AJA4350 has quit [Quit: AJA4350]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nexraf1 has joined #ruby
eckhardt has joined #ruby
eckhardt has quit [Client Quit]
nowhere_man has joined #ruby
eddof13 has quit [Quit: eddof13]
nowhere_man has quit [Ping timeout: 252 seconds]
eckhardt has joined #ruby
<zenspider>
rawr
venmx has quit [Ping timeout: 268 seconds]
<zenspider>
eam: wow. I used kerberos once... in 1997. (really) I assume it hasn't gotten easier.
<ivanskie>
there's some hardware that uses kerberous auth to get into xml api
<ivanskie>
soap
* ivanskie
gets unpleasant shiver from the memories
<zenspider>
hah
<ivanskie>
though i've never had to ssh with that
nowhere_man has joined #ruby
SeepingN has joined #ruby
eddof13 has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
<ivanskie>
hey uhm how do you do this in ruby? namespace = 'aws:elasticbeanstalk:application:environment'
<ivanskie>
vars = {n['OptionName']: n['Value'] for n in settings
<ivanskie>
if n["Namespace"] == namespace}
<ivanskie>
settings.map {|n| n{'OptionName'] = n['Value'] if n==namespace }. ?
teardown has joined #ruby
clemens3 has quit [Ping timeout: 252 seconds]
Wojnar has quit [Ping timeout: 268 seconds]
wojnar_ has quit [Client Quit]
<ivanskie>
nevermind got it
funnel has quit [Ping timeout: 252 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
funnel has joined #ruby
Fusl has joined #ruby
teardown has quit [Quit: leaving]
<ivanskie>
nope dont got it
teardown has joined #ruby
<phaul>
ivanskie: paste the inspect of settings somewhere, it's not clear what the structure is
<phaul>
dpaste.de is recommended in the topic..
reber has quit [Remote host closed the connection]
warrshrike has joined #ruby
<warrshrike>
hey guys
<warrshrike>
are ruby objects 'unique'
<havenwood>
hi warrshrike
<havenwood>
warrshrike: what do you mean by "unique"?
<warrshrike>
i.e. i have a ruby linked list and I want to detect whether it has a circle
<phaul>
pff that old chestnut ..:)
<baweaver>
Object hash certainly is unique.
<havenwood>
SipHash13 ftw.
<warrshrike>
if i do keep a pointer to the head and start iterating and checking if if (node == head)
<warrshrike>
will this work?
<ivanskie>
i got it figured out. in that i didn't have to do the map at all
<baweaver>
ivanskie: You want to make a hash out of EBS data?
<ivanskie>
yeah i'm trying to get env vars.
<warrshrike>
havenwood: does that make sense?
<warrshrike>
also does equality work automatically for classes ala === javascript or does it have to be overloaded like c++
<ivanskie>
looks like in ruby sdk, it just stuffs them all into single option setting called 'EnvironmentVariables'. a comma separated list of assignments. as one string
<ivanskie>
which im now trying to convert to a hash.