<feep[work]>
I have a file task that depends on a non-file task. I want the non-file task to run only if the file is out of date; instead, the file is always recreated.
dionysus69 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
Vonter has quit [Ping timeout: 246 seconds]
stomper2x has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
sagax has joined #ruby
mikecmpbll has joined #ruby
stomper2x has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
reset has quit [Quit: reset]
Vonter has joined #ruby
mikecmpbll has joined #ruby
rvalue has quit [Ping timeout: 264 seconds]
Vonter has quit [Ping timeout: 264 seconds]
drainpipe has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
rvalue has joined #ruby
Jonopoly has joined #ruby
mikecmpbll has quit [Ping timeout: 248 seconds]
drainpipe has quit [Ping timeout: 268 seconds]
gr33n7007h has quit [Quit: WeeChat 3.6]
mikecmpbll has joined #ruby
smp_ has joined #ruby
smp has quit [Ping timeout: 268 seconds]
smp_ is now known as smp
gr33n7007h has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
ccapndave has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
Stoffel has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 264 seconds]
Sankalp- is now known as Sankalp
mikecmpbll has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
rvalue has quit [Ping timeout: 264 seconds]
ccapndave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Velizar has joined #ruby
<Velizar>
I'm having trouble with the RVM Ansible plugin, it's taking too slow to import GPG keys. Also, does RVM have a specific chat somewhere?
moldorcoder7 has joined #ruby
drainpipe has joined #ruby
mikecmpbll has joined #ruby
drainpipe has quit [Ping timeout: 268 seconds]
feep[work] has quit [Ping timeout: 248 seconds]
rvalue has joined #ruby
D_A_N has joined #ruby
ccapndave has joined #ruby
ccapndave has quit [Client Quit]
finsternis has quit [Read error: Connection reset by peer]
jetchisel has quit [Ping timeout: 264 seconds]
Fleeno has joined #ruby
jetchisel has joined #ruby
stomper2x has quit [Ping timeout: 246 seconds]
<adam12>
Velizar: I don't think theres a specific chat for RVM.
drainpipe has joined #ruby
drainpipe has quit [Client Quit]
Fleeno has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
drainpipe has joined #ruby
drainpipe has quit [Client Quit]
drainpipe has joined #ruby
Fleeno has joined #ruby
some14u has joined #ruby
ccapndave has joined #ruby
Jonopoly has quit [Quit: WeeChat 3.0]
Fleeno has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
walez has quit [Read error: Connection reset by peer]
delsol has joined #ruby
walez has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<delsol>
so reading from the TCP socket sends the ACK.
<delsol>
writing sends the next packet.
<delsol>
how can I read 1 byte, HOLD the ACK, and send it with the next write?
hololeap has quit [Quit: Bye]
hololeap has joined #ruby
<adam12>
delsol: What's the device that interacts with this?
<adam12>
I've never seen the configuration of ACK, from Ruby anyways. I thought this was handled by the OS.
<delsol>
if I don't read from the socket....
<delsol>
it doesn't send the ACK
<delsol>
reading 1 byte, sends an ACK packet.
<adam12>
Right; the OS socket sends the ack when it believes the value is read into the buffer.
<delsol>
almost need .read_but_dont_ack(1)
<adam12>
Can you over-read, instead of just reading 1 byte?
<adam12>
You'd need to determine where the frame of whatever your sending ends, and maintain your own buffer perhaps.
<delsol>
then it hangs waiting for the rest of the bytes.
<delsol>
Oh, ALL the packets are freaking tiny
<delsol>
10 bytes here, 16 bytes there...
<delsol>
couple hundred bytes to save/insert/update a new PLU from scratch.
<adam12>
Classic.
<delsol>
basically, I think this scale's great great great great great 1980's serial port granddad set the format and message passing...
<delsol>
and everything since has been a hack on a cludge on a patch on an update with the occasional extra byte thrown in when 2 digits of decimal encoded as 1 hex byte wasn't enough expiration date.... (IE: 120 days is more than 99 so an extra Hex byte was added.)
<havenwood>
Ruby's Socket interface doesn't dip that low to customize ACK response, afaik. You could use a Ruby implementation of TCP but I actually don't know of a battle hardened one. You can find "fun" ones like this, but I do wonder if there's one used in prod floating around somewhere? https://github.com/larrylv/teeceepee/blob/master/tcp.rb
<delsol>
damn.
Vonter has quit [Ping timeout: 268 seconds]
ox is now known as oz
desnudopenguino has joined #ruby
aeris has quit [Remote host closed the connection]
wand has quit [Remote host closed the connection]
aeris has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
axisys has joined #ruby
stomper2x has joined #ruby
wand has joined #ruby
Fleeno has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stomper2x has quit [Ping timeout: 268 seconds]
Guimauve has joined #ruby
mekhami has joined #ruby
<mekhami>
with the VCR library, is there any way to just... print out a cassette response body? like in the interpreter or something? I am trying to compare my cassette with the live page to see if the layout has changed, but I am not a ruby dev and I don't really understand how to do it by reading the code
<adam12>
mekhami: During a test? Or just in general.
<mekhami>
i suppose i can do it in the test just the same
<mekhami>
hm, not sure. The test is all in one `VCR.use_cassette(foo)` block that doesn't seem to return/give access to the `interaction` that you're referring to
stomper2x has joined #ruby
<adam12>
mekhami: You need to configure it in your VCR.configure block.
<mekhami>
adam12:https://gist.github.com/mekhami/f267a29f28fec6e25f376c1037613229 this is in my spec_helper.rb file. What configuration do you mean that I need here?
<adam12>
mekhami: I was thinking: c.before_playback { |interaction| puts interaction.response.body }
<mekhami>
okay let me try that
<mekhami>
ahh damn it comes out as binary
<adam12>
Oh LOL. Is the cassette YML in gzip or something? LOL.
stomper2x has quit [Ping timeout: 252 seconds]
Velizar has quit [Quit: Konversation terminated!]
<mekhami>
no it's just `encoding: ASCII-8BIT
Vonter has joined #ruby
<mekhami>
and the string is `string: !binary` as well
<adam12>
Hmm.
<adam12>
I guess you'd have to unpack it. Are you sure it's supposed to be ASCII?
<mekhami>
it's what's in the cassette, and I have to assume it worked before =P
skuntee4 has joined #ruby
<adam12>
mekhami: What's the content type from the cassette headers?
<mekhami>
text/html
<adam12>
Bizzare. What are the few bytes of the response body? I wonder if there's a magic number in it.
<mekhami>
the start of the response body is `H4sIAAAAAAAAA+1921bbyrrm9c5TKJqjs+w`
<mekhami>
is there a way to just overwrite this cassette from the live html page? (I obviously assume there is but I don't know the API for that)
<adam12>
mekhami: At VCR.use_cassette, I think you can set `record: :all`.
<adam12>
Err, looks like it might be base64, not gzip. I think they are similar but not exact.
<mekhami>
yeah that didn't work
<mekhami>
it does work with gzip tho
<mekhami>
good call
stomper2x has joined #ruby
<mekhami>
adam12: thanks :) that was super helpful
<adam12>
mekhami: Cheers.
<mekhami>
when i add record: :all though, the rspec command hangs. not sure why.
<adam12>
mekhami: For just that one VCR.use_cassette call? I'm assuming it's making a network request or something that it can't finish..
<adam12>
This is a huge issue with VCR. I won't use it in most projects, unless under the strictest controls, as it becomes a huge liability in the future.
<adam12>
It's not VCR's fault, just that most people dont' architect the test around VCR to be repeatable in the future.
<mekhami>
yeah it's just one cassette call. good to know though. it seems useful but I've always found these tests to be flaky and expensive to maintain.
<mekhami>
i'm sure this is my local infrastructure and not something wrong with vcr though.
ccapndave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12>
More often than not, I push all HTTP interactions to an adapter of my own, and include a "substitute" that will stand in during tests. I then in a single file, test with VCR (maybe, depending on the circmstances) both the substitute and the real version. The substitute might use Faraday with it's mock, or Net::HTTP with Webmock. Or I might build a
<adam12>
HTTP server and have webmock send everything to it.
<adam12>
But VCR is generally a last reach now, because I've been burned too many times :P
<adam12>
Again, not VCR's fault, but most people get VCR to record something, then move on with their life. But they didn't realize it used an insane amount of remote state that we cant' replicate in the future.
stomper2x has quit [Quit: Leaving]
plujon has joined #ruby
grokify has joined #ruby
Fleeno has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Fleeno has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grokify has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
skuntee4 has joined #ruby
grokify has joined #ruby
skuntee4 has quit [Ping timeout: 246 seconds]
grokify has quit [Remote host closed the connection]
some14u has joined #ruby
walez has quit [Quit: Leaving]
desnudopenguino has quit [Quit: desnudopenguino]
desnudopenguino has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 252 seconds]
Fleeno has joined #ruby
Fleeno has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stomper2x has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
cuntor24 has joined #ruby
stomper2x has quit [Ping timeout: 252 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
gr33n7007h has joined #ruby
drainpipe has quit [Ping timeout: 268 seconds]
<bastelfreak>
good morning! I have a script that uses OpenSSL::PKCS7::sign to sign (and later on encrypt) some data. The output of OpenSSL::PKCS7::sign isn't identical across multiple invocations. I think that's because the PKCS#7 output contains the signing timestamp. Does someone know if I could somehow pass a timestamp (and reuse it)?