esObe_ has quit [Remote host closed the connection]
GodFather has joined #ruby
swills_ has quit [Read error: Connection reset by peer]
swills_ has joined #ruby
ascio has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cfec0b8d has quit [Ping timeout: 240 seconds]
sepp2k has quit [Ping timeout: 260 seconds]
BabyMario has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
cibs has joined #ruby
olivi____ has joined #ruby
milardovich has quit [Remote host closed the connection]
montanonic has quit [Ping timeout: 246 seconds]
JoshS has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
olivi____ has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 264 seconds]
BabyMario has quit [Quit: bye]
maattdd has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
hutch34 has joined #ruby
Guest64581 has quit [Ping timeout: 246 seconds]
zeddan has quit [Ping timeout: 240 seconds]
_djbkd has quit [Quit: My people need me...]
Limix has quit [Read error: Connection reset by peer]
zeddan has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
Limix has joined #ruby
cagomez has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
jdm has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
kirun has quit [Quit: Konversation terminated!]
xenops has quit [Remote host closed the connection]
raspado has quit [Remote host closed the connection]
brent__ has quit [Remote host closed the connection]
Azure|dc is now known as Azure
raspado has joined #ruby
gnufied has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
Sam__ has joined #ruby
leitz has joined #ruby
Sam__ has quit [Client Quit]
raspado has quit [Ping timeout: 240 seconds]
oliv_____ has joined #ruby
pankaj has quit [Remote host closed the connection]
<leitz>
Using regular tests in Ruby 2.4.0, I'm testing an error raised if the file does not exist. The response is "Errno::ENOENT" but assert_raise(StandardError) and (SystemCallError) fail.
<leitz>
What should the assert_raise expect to see?
<leitz>
Duh, nevermind. I thought I had tested Errno::ENOENT. Probably mistyped it.
hutch34 has joined #ruby
jdm has quit [Remote host closed the connection]
Verity has joined #ruby
roamingdog has quit [Remote host closed the connection]
toretore has quit [Ping timeout: 260 seconds]
leitz has quit [Client Quit]
roamingdog has joined #ruby
oliv_____ has quit [Ping timeout: 246 seconds]
JeanCarloMachado has joined #ruby
hutch34_ has joined #ruby
ta_ has joined #ruby
qwertme has joined #ruby
halla has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
sarbs_ is now known as sarbs
halla has quit [Quit: ChatZilla 0.9.93 [Firefox 52.0.1/20170316213829]]
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
<Verity>
odd
<Verity>
my program doesnt work the same now
<Verity>
on linux
hutch34_ has quit [Ping timeout: 240 seconds]
ahrs has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 258 seconds]
catbusters has quit [Quit: Connection closed for inactivity]
JeanCarloMachado has joined #ruby
arescorpio has joined #ruby
rhyselsmore has joined #ruby
kegster has quit [Ping timeout: 245 seconds]
dysfigured has joined #ruby
yorickpeterse1 is now known as yorickpeterse
<dysfigured>
any linux users have any tips on parsing xprop? i want to make a script that will print _NET_DESKTOP_NAMES and highlight _NET_CURRENT_DESKTOP
<dysfigured>
actually, http://ix.io/pdr here's the output i want to parse. so there's a line that starts _NET_DESKTOP_NAMES that has an "array" of strings with the desktop names, and _NET_CURRENT_DESKTOP contains the index of which is the current
OO--OO has joined #ruby
<dysfigured>
this is day 0 of ruby things for me, i've only so far gotten a simple grasp on the syntax (i have a lot of experience with js though)
<OO--OO>
i have one query on regular expressions who can help?
<elomatreb>
dysfigured: You could read the file line-by-line, decide with a regex if it's the line you're interested in, then use another one to get the "array of strings"
<elomatreb>
OO--OO: Ask ahead, if anyone wants to help they will respond
<dysfigured>
OO--OO: i'm pretty decent with regex. you shouldn't ask to ask though. if you'd posted your actual question this message would be answer instead
OO--OO_ has joined #ruby
OO--OO_ has left #ruby [#ruby]
ta_ has quit [Remote host closed the connection]
OO--OO_ has joined #ruby
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
<OO--OO_>
how ?
alibby has joined #ruby
<elomatreb>
how what?
bmurt has joined #ruby
OO--OO has quit [Ping timeout: 264 seconds]
OO--OO_ is now known as OO--OO
cibs has quit [Ping timeout: 260 seconds]
<OO--OO>
how to you get the last section of a url eg.ccc -> http:/ aaa/bbb/ccc
<Nilium>
Wherefore?
JoshS has quit [Read error: Connection reset by peer]
jshjsh has joined #ruby
<OO--OO>
how do you get the ccc part of the url
cibs has joined #ruby
<dysfigured>
is there an eval bot in here?
<elomatreb>
>> "yes, but you need to be authed
<ruby[bot]>
elomatreb: # => /tmp/execpad-ee0f4210229d/source-ee0f4210229d:6:in `raise': exception object expected (TypeError) ...check link for more (https://eval.in/760191)
Kallis has quit [Read error: Connection reset by peer]
Kallis has joined #ruby
<allisio>
Does your browser not support URL fragments?
<Verity>
ill tyr it now?
alibby has quit [Quit: Leaving.]
<Verity>
its so easy w/ ruby
<Verity>
Verity: The other factor is that if you plan to use us as a source of counsel, then you're going to be better off using a platform that we use (and that you're likely to deploy on).
<Verity>
that was the advice
<Verity>
Disavowed, are you here
<Verity>
its not going too well
cibs has quit [Ping timeout: 258 seconds]
cibs has joined #ruby
alibby has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
enterprisey has quit [Ping timeout: 260 seconds]
cibs has quit [Ping timeout: 240 seconds]
t-recx has quit [Quit: t-recx]
cibs has joined #ruby
Channel6 has joined #ruby
alibby has quit [Quit: Leaving.]
alibby has joined #ruby
d^sh_ has quit [Ping timeout: 240 seconds]
HoierM has quit [Ping timeout: 246 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Limix has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
snickers has quit [Quit: Snickers]
kkh has quit [Ping timeout: 255 seconds]
despai has quit [Quit: This computer has gone to sleep]
duracrisis has joined #ruby
ta_ has joined #ruby
cibs has quit [Ping timeout: 264 seconds]
cibs has joined #ruby
roflmyeggo has joined #ruby
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
cibs has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
alibby has quit [Quit: Leaving.]
cibs has joined #ruby
weaksauce has quit [Read error: Connection reset by peer]
<dysfigured>
heh. i don't get the _ though. iinm, it's usually a throwaway variable.. which makes me think there's some destructuring going on?
astrobunny has joined #ruby
<allisio>
dysfigured: Open3.popen2 gives you access to the subprocess's input stream, but you don't need that; Ruby specifically uses `_` to indicate a syntactically necessary but otherwise unused variable.
<matthewd>
Yes, it's destructing the two-element array that popen2 returns
<dysfigured>
ahhhh ok
<matthewd>
Err, destructuring :)
<dysfigured>
yeah that
alibby has joined #ruby
<dysfigured>
some of the 'magic' in ruby syntax makes those things a bit less obvious
antoniobeyah has quit [Quit: Connection closed for inactivity]
IRCFrEAK has joined #ruby
<matthewd>
adam12: I can tell you that the author is.. very confident in his design decisions
IRCFrEAK has quit [K-Lined]
<matthewd>
adam12: I haven't actually tried to use it, though
alibby has quit [Client Quit]
<adam12>
matthewd: I think I saw you tagged in an issue in the repo
<dysfigured>
ok, what about not using a giant block of "if line matches this regex then do this"? in clojure there's like cond and condp which i think would be ideal here..
<matthewd>
Indeed :)
<adam12>
tbh, this is a tiny micro service that would be fine on webrick, but my curiosity has the best of me.
<dysfigured>
actuall cond doesn't really make sense because i'm not assigning to the same var.. still, i can't help thinking there's something nicer than a big block of if/elsif
<matthewd>
dysfigured: case line when /foo/; ..; when /bar/; ..; end ?
<dysfigured>
:| yup, i suppose that'd do it
<dysfigured>
thanks!
nofxxx has joined #ruby
Azure has quit [Read error: Connection reset by peer]
nofxxxx has quit [Ping timeout: 260 seconds]
Allonphone has joined #ruby
Azure has joined #ruby
IRCFrEAK has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
alibby has joined #ruby
Allonphone has quit [Client Quit]
<dysfigured>
man this is a lot tricker than i thought it would be.
IRCFrEAK has left #ruby [#ruby]
alibby has quit [Client Quit]
duderonomy has joined #ruby
duderonomy is now known as Guest58007
tw1sted_ has quit [Quit: No Ping reply in 180 seconds.]
larissa_ has quit [Ping timeout: 246 seconds]
larissa has joined #ruby
tw1sted has joined #ruby
BabyMario has quit [Quit: bye]
duckpupp1 has joined #ruby
Channel6 has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has quit [Quit: SymmetryROCKETLEAG]
jenrzzz has joined #ruby
duckpupp1 has quit [Ping timeout: 264 seconds]
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
IRCFrEAK has joined #ruby
cibs has joined #ruby
bocaneri has joined #ruby
charliesome has joined #ruby
IRCFrEAK has left #ruby [#ruby]
cibs has quit [Client Quit]
eclecticjohny has joined #ruby
Madper|Sleep is now known as Madper|eat
cibs has joined #ruby
ascio has joined #ruby
_tk421_ has joined #ruby
ascio has left #ruby [#ruby]
cibs has quit [Quit: Changing server]
jdm has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
cibs has joined #ruby
gix has quit [Ping timeout: 240 seconds]
Kallis has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has quit [Ping timeout: 240 seconds]
gix has joined #ruby
NightMonkey has quit [Ping timeout: 268 seconds]
blackwind_123 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
NightMonkey has joined #ruby
cajone has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
IRCFrEAK has joined #ruby
IRCFrEAK has left #ruby [#ruby]
cajone has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
casper_ has quit [Quit: Leaving]
agent_white has joined #ruby
<dysfigured>
is there anything like ramda.js for ruby?
<havenwood>
dysfigured: what is ramda.js?
<dysfigured>
it's like a general-purpose functional programming lib. it gives you curried versions of map reduce filter and dozens of others so you can compose them
<havenwood>
dysfigured: Ruby has curry and lazy versions of enumerable methods. There are some good functionally-oriented gems though.
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
arescorpio has quit [Quit: Leaving.]
_tk421_ has joined #ruby
<dysfigured>
thanks for the links
<havenwood>
you're welcome
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<agent_white>
You look nice today.
<agent_white>
All of you.
mcantor has quit [Ping timeout: 240 seconds]
tau has joined #ruby
<dysfigured>
no u
jdm has joined #ruby
_djbkd has joined #ruby
<agent_white>
dysfigured: Well, I _did_ wear matching socks today. Thank you for noticing.
<agent_white>
:)
hahuang61 has joined #ruby
pulkit4tech has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IRCFrEAK has joined #ruby
Rodya_ has quit [Remote host closed the connection]
charliesome has joined #ruby
montanonic has joined #ruby
_tk421_ has quit [Quit: Leaving]
_tk421_ has joined #ruby
mim1k has joined #ruby
roflmyeggo has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 256 seconds]
renchan has joined #ruby
minimalism has joined #ruby
igniting has quit [Ping timeout: 240 seconds]
duckpupp1 has joined #ruby
Limix has quit [Quit: Limix]
_djbkd has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 258 seconds]
mcantor has joined #ruby
kreantos has joined #ruby
igniting has joined #ruby
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
mcantor has quit [Ping timeout: 240 seconds]
govg_ has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
aufi has joined #ruby
govg has joined #ruby
patarr has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
certainty has joined #ruby
Ishido has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
sdwrage has quit [Quit: Leaving]
tau is now known as relentless-soul
govg has quit [Ping timeout: 264 seconds]
ledestin has joined #ruby
IRCFrEAK has quit [Ping timeout: 240 seconds]
muelleme has joined #ruby
relentless-soul has quit [Ping timeout: 240 seconds]
enterprisey_ has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
amclain has quit [Quit: Leaving]
hahuang61 has joined #ruby
cfec0b8d has joined #ruby
cfec0b8d has quit [Read error: Connection reset by peer]
cfec0b8d has joined #ruby
pahnin2 has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
<pahnin2>
Hi guys, just have a quick question, we have about 1000 lines of unused code, just wondering, will there be any significant effect on RAM if we remove this code from our 5000 lines code base
doublemalt_ has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
_djbkd has quit [Quit: My people need me...]
mcantor has joined #ruby
andikr has joined #ruby
<dminuoso>
pahnin2: No.
<pahnin2>
ok, thanks for the quick answer
<dminuoso>
pahnin2: Though it's hard to say without seeing the code. If those 1000 lines of code introduce a really freaking huge object..
tau has joined #ruby
<pahnin2>
it's a rails app, the code is spread across controllers models etc, I dont think they initiate any big objects
lightheaded has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 240 seconds]
pankaj_ has joined #ruby
<dminuoso>
pahnin2: What I would do is move that code into an extra branch.
lightheaded has joined #ruby
<dminuoso>
pahnin2: That way you get to keep the code intact but away from your production code where it could have impact on: being used accidentally and possible performance implications.
mcantor has quit [Ping timeout: 240 seconds]
<dminuoso>
And if you ever want to use that code, you just merge that branch into your current feature branch.
<pahnin2>
we are not worried about loosing code, we are just wondering if it is worth the effort to clean up
montanonic has quit [Ping timeout: 240 seconds]
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<dminuoso>
pahnin2: Just refactor the code a bit a time then. You can use fixup commits and once the final bit is removed (weeks or months from now) you can just git rebase -i --autosquash msater
<dminuoso>
Leaving dead code is not pretty but you don't have to remove it all at once either.
<dminuoso>
That will keep your log clean too.
<pahnin2>
cool
jgnagy has quit [Remote host closed the connection]
lightheaded has quit [Ping timeout: 258 seconds]
neuraload has joined #ruby
<pahnin2>
dminuoso: thanks for the help
pahnin2 has quit [Quit: Page closed]
doublemalt_ has joined #ruby
milardovich has quit [Remote host closed the connection]
cfec0b8d has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quest has joined #ruby
<quest>
Hello! anyone have some time to helpme out with something
lipoqil has quit [Quit: Connection closed for inactivity]
A124 has joined #ruby
kreantos has quit [Ping timeout: 268 seconds]
waltair has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has quit [Ping timeout: 268 seconds]
raspado has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
HoierM has joined #ruby
_tk421_ has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
shncgo has quit [Killed (Sigyn (Spam is off topic on freenode.))]
zeddan has joined #ruby
duckpupp1 has joined #ruby
solocshaw has joined #ruby
jaiks has joined #ruby
nadir has joined #ruby
anekant has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
zeddan_ has joined #ruby
zeddan has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
last_staff has quit [Quit: last_staff]
last_staff has joined #ruby
Kug3lis_ has quit [Ping timeout: 258 seconds]
mcantor has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
jaiks has quit [Quit: Leaving]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A124 has quit [Quit: '']
synthroi_ has joined #ruby
mcantor has quit [Ping timeout: 256 seconds]
olivi____ has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
olivi____ has quit [Remote host closed the connection]
jameser has joined #ruby
oliv_____ has joined #ruby
synthroid has quit [Ping timeout: 246 seconds]
A124 has joined #ruby
sepp2k has joined #ruby
oliv_____ has quit [Remote host closed the connection]
Kug3lis has joined #ruby
jameser has quit [Max SendQ exceeded]
despai has joined #ruby
jameser has joined #ruby
neuraload has joined #ruby
jameser has quit [Client Quit]
nocco has joined #ruby
nocco has quit [Client Quit]
patarr has joined #ruby
leito has quit [Read error: Connection reset by peer]
jameser has joined #ruby
Kug3lis_ has joined #ruby
jameser has quit [Client Quit]
olivi____ has joined #ruby
Kug3lis has quit [Ping timeout: 256 seconds]
jameser has joined #ruby
ddffg has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 258 seconds]
jameser has quit [Client Quit]
eclecticjohny has joined #ruby
eclecticjohny has quit [Client Quit]
nOwz has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
gdonald has quit [Read error: Connection reset by peer]
leito has joined #ruby
gdonald has joined #ruby
synthroid has joined #ruby
cajone has quit [Ping timeout: 240 seconds]
ddffg has joined #ruby
synthroi_ has quit [Ping timeout: 246 seconds]
synthroi_ has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
synthroid has quit [Ping timeout: 264 seconds]
Burgestrand has quit [Quit: Closing time!]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
mooser has joined #ruby
mooser has quit [Client Quit]
hahuang61 has joined #ruby
cajone has joined #ruby
harfangk has joined #ruby
Verity has quit [Quit: Leaving]
ramortegui has joined #ruby
olivi____ has quit [Remote host closed the connection]
knight33 has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
oliv_____ has joined #ruby
mcantor has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
kreantos has joined #ruby
cajone has quit [Ping timeout: 240 seconds]
polysics has joined #ruby
mcantor has quit [Ping timeout: 268 seconds]
neuraload has joined #ruby
jgnagy has joined #ruby
jgnagy has quit [Ping timeout: 260 seconds]
cajone has joined #ruby
last_staff1 has joined #ruby
__Yiota has joined #ruby
lacrymology has joined #ruby
oliv_____ has quit [Remote host closed the connection]
last_staff has quit [Ping timeout: 260 seconds]
last_staff1 is now known as last_staff
oliv_____ has joined #ruby
centrx has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oli______ has joined #ruby
oli______ has quit [Remote host closed the connection]
DLSteve has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
hutch34_ has joined #ruby
meshsmith has joined #ruby
last_staff has quit [Quit: last_staff]
iceden has quit [Ping timeout: 268 seconds]
gdonald has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
Chagel has joined #ruby
cpruitt has joined #ruby
kreantos has quit [Read error: Connection reset by peer]
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
cpruitt has quit [Client Quit]
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
TvL2386 has joined #ruby
rikkipit_ has joined #ruby
gnufied has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
rikkipitt has quit [Ping timeout: 240 seconds]
iceden has joined #ruby
ozcanesen has joined #ruby
crst_ has quit [Ping timeout: 240 seconds]
avrelaun has quit [Ping timeout: 256 seconds]
Pumukel has joined #ruby
Derperperd has quit [Quit: Together, we will make America strong again. We will make America wealthy again. We will make America proud again. We will make America safe again. And, yes, together, we will make America great again. Thank you, God bless you, and God bless America.]
Derperperd has joined #ruby
Derperperd has quit [Client Quit]
avrelaun has joined #ruby
Derperperd has joined #ruby
hogetaro has quit [Quit: Leaving...]
mcantor has joined #ruby
Derperperd has quit [Client Quit]
Derperperd has joined #ruby
ponzii has joined #ruby
despai has joined #ruby
roflmyeggo has joined #ruby
gusrub has joined #ruby
<ponzii>
Trying to install 2.4.1 on OS X Sierra via rbenv. Begins ok with "Installed openssl-1.1.0e to .... " but fails after installing everyting: "The Ruby openssl extension was not compiled."
jrafanie has joined #ruby
mcantor has quit [Ping timeout: 246 seconds]
hxegon_afk is now known as hxegon
Burgestrand has joined #ruby
misthonk has joined #ruby
<misthonk>
Hi all! Total noob to ruby here but I'm trying to create something that can request reports to Amazon.
Daneel has joined #ruby
<Daneel>
hi
<centrx>
ponzii: Sounds like you might need some build tools
<misthonk>
Got it to get reports just fine, but requesting has been an issue! reports = client.request_report('_GET_AMAZON_FULFILLED_SHIPMENTS_DATA_',start_date:2017-03-23T12:15:48,end_date: 2017-03-22T12:15:48) throws an error
<ponzii>
centrx: Like what? I installed 2.4.0 ok a couple of weeks ago.
<Daneel>
i am absolutly newby, i would like to use a peace of rubu code to know ip from fqdn
<misthonk>
Is there something obviously wrong with it? I'm suspecting the date format.
<Daneel>
what is the good function to use ?
gusrub has quit [Ping timeout: 258 seconds]
rikkipit_ has quit [Remote host closed the connection]
rikkipitt has joined #ruby
<centrx>
misthonk: The dates should probably be in quotes
<ponzii>
cetrx: If anything was missing wouldn't the build fail during configure?
rikkipitt has quit [Remote host closed the connection]
patarr has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
rikkipitt has joined #ruby
<centrx>
ponzii: Is there an actual error message or other log output of the build?
<misthonk>
centrx: Getting an excon error now, but that's correct, thanks! :)
rikkipit_ has joined #ruby
<ponzii>
centrx: Last 10 log lines:
<ponzii>
The Ruby openssl extension was not compiled.
<ponzii>
ERROR: Ruby install aborted due to missing extensions
<centrx>
ponzii: Sounds like it decided Apple's installed OpenSSL is broken and wants a custom installed one
<ponzii>
cetrx: But it starts by downloading a fresh copy of openssl. WTF?
rikkipit_ has quit [Client Quit]
<misthonk>
Hm, according to docs the format should be "request_report(report_type, opts = {})". I've set "client.request_report('_GET_AMAZON_FULFILLED_SHIPMENTS_DATA_',start_date:"2017-03-23T00:00:00",end_date:"2017-03-22T00:00:00")"
roflmyeggo has quit [Ping timeout: 246 seconds]
<Daneel>
Burgestrand, yes i am reading this from a moment but like a chiken discovering a knif. i never coded in ruby
<misthonk>
Now it does try it, but I'm getting InvalidParameterValue
<Burgestrand>
Daneel why do you want to do it in ruby?
_tk421_ has joined #ruby
<Daneel>
Burgestrand, because of pupper
<Daneel>
puppet*
<Burgestrand>
Daneel :)
<misthonk>
Daneel: puppet and chef, that's how they get ya ;)
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Daneel>
when i started with puppet i choosen to now know an evoluated language
<centrx>
ponzii: Search for the error message(s) online for hints
synthroi_ has quit [Remote host closed the connection]
<hxegon>
misthonk: Before I dig into this more, I'd *highly* recommend making wrapper classes for anything related to AWS. Generally you are only going to need a tiny subset of API functionality for a given service, so it really helps a lot in my experience
nobitanobi has joined #ruby
<misthonk>
hxegon: Makes a whole lot of sense, it's just that I'm trying to keep these tools as simple as possible and do the rest with bash. I just want a way of listing reports, requesting reports and getting them
<nobitanobi>
I have a question, when implementing the method `==` on a class, do you usually check if the given object is of the same class? Or you just check that the state is the same?
<misthonk>
I'll use awk to parse the results
duckpupp1 has quit [Ping timeout: 240 seconds]
<misthonk>
hxegon: But it's a bit tricky now since I don't get any output :D
cagomez has joined #ruby
meshsmith has quit [Remote host closed the connection]
<hxegon>
misthonk: I'd try inspecting the Peddler::XMLParser returned by #get_report_request_list
<hxegon>
also left a comment for the gist
<hxegon>
My thought is that #get_report_request_list isn't matching anything, but not sure why
choke has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
duckpupp1 has joined #ruby
<misthonk>
hxegon: I'm running excon in debug mode and I'm seeing the information that I want there
<misthonk>
checkign your response :)
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<misthonk>
hxegon: Hm, still nothing, odd
<elomatreb>
nobitanobi: I haven't done it much but I'd say so, since you'd get obscure errors if you tried to get the state of the other objects if it doesn't have the necessary methods
cdg has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<misthonk>
hxegon: It's not that I'm just lacking something like puts or so?
renchan has joined #ruby
<hxegon>
misthonk: that might be it haha, thought you were saying it didn't return anything
mcantor has quit [Quit: leaving]
synthroid has joined #ruby
teddysmoker has joined #ruby
<misthonk>
hxegon: it doesn't! Bah, I'm such a total noob at this.
duckpupp1 has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
Lord_of_Life has quit [Excess Flood]
lacrymology has quit [Ping timeout: 260 seconds]
<misthonk>
Added puts client.get_report_request_list and now I get "#<Excon::Response:0x007fff3c9c1768>"
<misthonk>
Bah
synthroi_ has joined #ruby
Lord_of_Life has joined #ruby
montanonic has joined #ruby
Rodya_ has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
<mnemon>
misthonk: what info are you looking for?
<mnemon>
(from the responses)
Pumukel has joined #ruby
<mnemon>
nobitanobi: I'd check for the state of the significant data, so for something like a String the actual chararray match and so on ... == match on the same class regardless of state/data doesn't seem like a very good idea.
<nobitanobi>
I wanted to check on state as well as class.
KnownSyntax has quit [Ping timeout: 240 seconds]
<mnemon>
ah, right, nvm :)
<misthonk>
mnemon: A list of reports
aufi has quit [Remote host closed the connection]
etehtsea has joined #ruby
JeanCarloMachado has quit [Read error: Connection reset by peer]
JeanCarloMachado has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mnemon>
you probably want to puts the .body if the response or something like that then :P
__Yiota has joined #ruby
<misthonk>
mnemon: .body?
[Butch] has joined #ruby
TvL2386 has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
[Butch] has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
__Yiota has joined #ruby
milardovich has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
HoierM has joined #ruby
renchan has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 258 seconds]
<adam12>
Has anybody build a microservice (over http) gem and accompanying client? I'm trying to decide if I should keep the client inside the gem. Would make keeping it in sync a lot easier.. thoughts?
centrx has joined #ruby
<adam12>
It's an internal library so it doesn't really matter from an OSS point of view.
t-recx has joined #ruby
jgnagy has joined #ruby
tau has joined #ruby
gusrub has joined #ruby
truenito has quit [Remote host closed the connection]
despai has joined #ruby
jgnagy has quit [Ping timeout: 256 seconds]
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
lacrymology has joined #ruby
ponzii has quit [Quit: [BX] iT's bEttEr tO bUrN oUt tHaN tO fAdE aWaY]
waltair has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Read error: Connection reset by peer]
centrx has quit []
cdg has joined #ruby
milardovich has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
waltair has joined #ruby
montanonic has joined #ruby
duckpupp1 has joined #ruby
enterprisey has joined #ruby
houhoulis has joined #ruby
shinnya has joined #ruby
hahuang61 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
yurikoles has joined #ruby
<yurikoles>
Hi there. I had updated ruby via homebrew to 2.4.1 and now gem binaries is in new place
<yurikoles>
There were befor in /usr/local/bin
<yurikoles>
and now there are in /usr/local/Cellar/ruby/2.4.1/bin
despai has quit [Quit: This computer has gone to sleep]
<hxegon>
yurikoles: Is this causing an issue, or are you just curious about why?
<yurikoles>
We have filed issue in Homebrew, but I wanted to ask is there any changes in ruby paths around 2.4.1?
<yurikoles>
It causes an issue since this path is not in PATH env var
<Verity>
Could someone please tell me how I managed to screw this up? It's supposed to build packets of size 10 bytes and it used to, I changed some variable naming schemes and it seems the behavior of the program maybe have changed?
<spiette>
omg, net/ssh is pita if you want it to accept the host key...
ahrs has joined #ruby
<spiette>
when net/ssh think "key" it use the full pem format instead of the fingerprint format used in known_hosts
cagomez has joined #ruby
olivi____ has joined #ruby
raspado_ has quit [Quit: Leaving...]
jgnagy has quit [Ping timeout: 260 seconds]
jobewan has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
maattdd_ has joined #ruby
<matthewd>
Verity: The problem is on line 24
AndrewIsHere has quit []
JeanCarloMachado has joined #ruby
<matthewd>
Verity: It's pretty subtle, so you might need the actual answer. But see if you can get there with the hint first.
<Verity>
ok, I'm trying now =)
<matthewd>
Verity: Bonus debugging suggestion: feed it a simple [predictable, non-repeating] input like the alphabet, and then look at what's coming out.
blackmesa has quit [Ping timeout: 260 seconds]
choke has quit [Ping timeout: 260 seconds]
hutch34_ has quit [Ping timeout: 260 seconds]
<Verity>
ok
<Verity>
is it an error in what I think ruby is doing, or my own logic?
<matthewd>
Probably somewhere in between
rhyselsmore has joined #ruby
<matthewd>
Use `p foo` to see the value of foo at a given place (it's a shortcut for `puts foo.inspect`)
pLaTo0n has left #ruby ["Leaving"]
<matthewd>
Check what's happening to SOH
Mon_Ouie has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]