havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
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]
qwertme has quit [Quit: Textual IRC Client: www.textualapp.com]
ddffg has quit [Ping timeout: 256 seconds]
ahrs has joined #ruby
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)
<elomatreb> well
<elomatreb> And you need to know Ruby apparently
<dysfigured> >> s = 'http://aaa/bbb/ccc'; s.split('/').pop
<ruby[bot]> dysfigured: # => "ccc" (https://eval.in/760192)
<dysfigured> OO--OO: ^
marr has quit [Ping timeout: 260 seconds]
<dysfigured> not bad for my first day? maybe?
jameser has joined #ruby
<OO--OO> let me check it
zeddan has quit [Ping timeout: 260 seconds]
viuo has quit [Quit: leaving]
patarr has quit [Ping timeout: 268 seconds]
<OO--OO> yeah it's ok thanks
Verity has quit [Quit: Konversation terminated!]
OO--OO has quit [Quit: ChatZilla 0.9.93 [Firefox 52.0.1/20170316213829]]
slackR has joined #ruby
slackR has quit [Client Quit]
eclecticjohny has joined #ruby
<Radar> dysfigured: worth noting that File.basename("http://aaa/bbb/ccc") will also do the trick.
<Radar> >> File.basename("http://aaa/bbb/ccc")
<ruby[bot]> Radar: # => "ccc" (https://eval.in/760196)
<dysfigured> oo neat.
elifoster has joined #ruby
alibby has quit [Quit: Leaving.]
BabyMario has joined #ruby
thadtheman has quit [Ping timeout: 256 seconds]
rhyselsmore has quit [Ping timeout: 240 seconds]
planigan has quit [Remote host closed the connection]
planigan has joined #ruby
duckpupp1 has joined #ruby
houhoulis has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 264 seconds]
oliv_____ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
cibs has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
thadtheman has joined #ruby
Verity has joined #ruby
<Verity> can someone please tell me hwy my program doesnt work the same now
<allisio> Post code.
enterprisey has quit [Ping timeout: 240 seconds]
<dysfigured> how does basic irc etiquette escape so many people
znz_jp has quit [Remote host closed the connection]
<Verity> its the same code from before
<Verity> only now the packets are the sixe of the whole file
<Verity> instead of the size I needed
alibby has joined #ruby
<Verity> its so strange
<Verity> I thought switching to linux would be so great
<Verity> but its awful so far
<llua> surprise!
<Verity> lol
gnufied has quit [Ping timeout: 246 seconds]
znz_jp has joined #ruby
<allisio> "Switching"?
enterprisey has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
planigan has quit [Changing host]
planigan has joined #ruby
cajone has joined #ruby
cibs has joined #ruby
planigan has quit [Quit: leaving]
planigan has joined #ruby
Kallis has joined #ruby
<Verity> which part
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]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
olivi____ has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
rhyselsmore has joined #ruby
mim1k has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weaksauce has joined #ruby
MTecknology has left #ruby ["You saw me, but now you don't."]
NightMonkey has joined #ruby
mostlybadfly has joined #ruby
cibs has quit [Ping timeout: 256 seconds]
cibs has joined #ruby
euphoriaa has quit [Ping timeout: 260 seconds]
alibby has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cibs has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
meshsmith has quit [Ping timeout: 264 seconds]
naprimer has quit [Ping timeout: 268 seconds]
roamingdog has quit [Read error: Connection reset by peer]
cibs has quit [Ping timeout: 246 seconds]
euphoriaa has joined #ruby
cibs has joined #ruby
naprimer has joined #ruby
CloCkWeRX has left #ruby [#ruby]
roamingdog has joined #ruby
roamingdog has quit [Client Quit]
cibs has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
olivi____ has quit [Remote host closed the connection]
IRCFrEAK has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
cibs has joined #ruby
jenrzzz has joined #ruby
enterprisey has joined #ruby
marcdel has joined #ruby
libastral has quit [Ping timeout: 260 seconds]
IRCFrEAK has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 260 seconds]
gusrub has quit [Remote host closed the connection]
libastral has joined #ruby
zeddan has joined #ruby
gusrub has joined #ruby
IRCFrEAK has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
nofxxxx has quit [Ping timeout: 246 seconds]
nofxxxx has joined #ruby
marcdel has quit [Ping timeout: 258 seconds]
ta_ has joined #ruby
IRCFrEAK has quit [K-Lined]
gusrub has quit [Ping timeout: 258 seconds]
zeddan has quit [Ping timeout: 268 seconds]
alibby has quit [Quit: Leaving.]
<dysfigured> code review of my first ruby? http://ix.io/pdv
<bougyman> 30
<dysfigured> specifically, just the list function
<bougyman> well, you use backticks.
<bougyman> instead of popen3
<dysfigured> why would i use popen3?
<bougyman> you could do all of that in popen3 block.
<dysfigured> oh interesting
IRCFrEAK has joined #ruby
jdm has joined #ruby
TheMainFrame has quit [Ping timeout: 255 seconds]
Davey has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
<dysfigured> what i ideally want is to use xprop -spy which is a long running process that prints changes as they happen
Davey has joined #ruby
Davey has joined #ruby
Davey has quit [Changing host]
marcdel has joined #ruby
<dysfigured> but then i'd have to figure out how to print when xprop changes, instead of polling every second
TheMainFrame has joined #ruby
enterprisey has joined #ruby
<allisio> dysfigured: https://eval.in/760248
IRCFrEAK has left #ruby [#ruby]
<dysfigured> oh neat, thank you. can you explan the _, bit though?
raspado has joined #ruby
Limix has joined #ruby
<matthewd> dysfigured: That seems like an ideal use for popen
<matthewd> Oh, that's exactly what allisio showed. Ignore me being slow.
raspado has quit [Remote host closed the connection]
<matthewd> >> _, x = "a/b".split("/"); x
<ruby[bot]> matthewd: # => "b" (https://eval.in/760257)
<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.
<adam12> Anybody experiment with https://github.com/boazsegev/iodine at all?
<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.
<havenwood> dysfigured: http://dry-rb.org/
<havenwood> dysfigured: https://github.com/ruby-concurrency # immutable datastructures
Madper|eat is now known as Madper|Full
<dysfigured> http://dry-rb.org/gems/dry-monads/ this is nice
<havenwood> dysfigured: for fun: https://github.com/banister/funkify
tau has quit [Remote host closed the connection]
eboaz_ has quit [Ping timeout: 240 seconds]
eboaz has joined #ruby
<dysfigured> funkify looks great too
_tk421_ has quit [Quit: Leaving]
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
Guest58007 has quit [Quit: Textual IRC Client: www.textualapp.com]
rippa has joined #ruby
quest has quit [Client Quit]
pankaj_ has quit [Quit: Leaving]
quest has joined #ruby
jaruga has joined #ruby
<quest> ?:{
jaruga has quit [Client Quit]
jaruga has joined #ruby
muelleme has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
charliesome has joined #ruby
elifoster has quit [Quit: zzzzzzzzz]
spicerack has joined #ruby
spicerack has quit [Client Quit]
<quest> yo
mikecmpbll has joined #ruby
conta has joined #ruby
lightheaded has joined #ruby
Madper|Full is now known as Madper
certainty has joined #ruby
ddffg has joined #ruby
SuperLag has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
duckpupp1 has joined #ruby
SuperLag has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
oliv_____ has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
duckpupp1 has quit [Ping timeout: 246 seconds]
jdm has quit [Remote host closed the connection]
hurricanehrndz has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
mcantor has joined #ruby
oliv_____ has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
quest has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Bish has quit [Quit: leaving]
mcantor has quit [Ping timeout: 260 seconds]
last_staff1 has joined #ruby
gusrub has joined #ruby
last_staff has quit [Ping timeout: 256 seconds]
last_staff1 is now known as last_staff
gusrub has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
Arpanet69 has joined #ruby
workmad3 has joined #ruby
luckyruby has joined #ruby
TomyWork has joined #ruby
govg has joined #ruby
patarr has joined #ruby
enterprisey_ has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 240 seconds]
mark_66 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 264 seconds]
vondruch has joined #ruby
maattdd has joined #ruby
enterprisey has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snickers has joined #ruby
enterprisey has quit [Remote host closed the connection]
Burgestrand has joined #ruby
crst_ has joined #ruby
<crst_> Hi, how can I gem install rails 4 latest version?
Burgestrand has quit [Client Quit]
xenops has joined #ruby
A124 has quit [Quit: '']
astrobunny has quit [Remote host closed the connection]
tk422 has joined #ruby
tau has quit [Remote host closed the connection]
Burgestrand has joined #ruby
davorb has quit [Read error: Connection reset by peer]
_tk421_ has quit [Ping timeout: 240 seconds]
davorb has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
A124 has joined #ruby
hahuang61 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
A124 has quit [Client Quit]
duckpupp1 has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
mcantor has joined #ruby
tk422 has quit [Ping timeout: 256 seconds]
vali has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
mim1k has quit [Ping timeout: 268 seconds]
A124 has joined #ruby
_tk421_ has joined #ruby
mcantor has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
Bish has joined #ruby
jgnagy has joined #ruby
mikecmpbll has joined #ruby
maattdd_ has joined #ruby
A124 has quit [Client Quit]
toretore has joined #ruby
mim1k has joined #ruby
maattdd has quit [Ping timeout: 268 seconds]
jgnagy has quit [Ping timeout: 246 seconds]
A124 has joined #ruby
ta__ has joined #ruby
agent_white has quit [Ping timeout: 246 seconds]
ta_ has quit [Read error: Connection reset by peer]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
gnufied has joined #ruby
oliv_____ has joined #ruby
jinie has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
oliv_____ has quit [Ping timeout: 256 seconds]
esObe_ has joined #ruby
shncgo has joined #ruby
mhenrixon has joined #ruby
jesk has left #ruby ["WeeChat 1.5"]
pandaant has joined #ruby
mim1k has joined #ruby
marr has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
postmodern has quit [Remote host closed the connection]
flying has joined #ruby
lxsameer has joined #ruby
jenrzzz has joined #ruby
andikr has quit [Remote host closed the connection]
mhenrixon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nOwz has joined #ruby
charliesome has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
nowhere_man has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
thadtheman has quit [Ping timeout: 256 seconds]
Kug3lis has joined #ruby
mcantor has joined #ruby
dlitvak has joined #ruby
xenops has quit [Remote host closed the connection]
cfec0b8d has joined #ruby
naprimer has quit [Quit: Leaving]
mcantor has quit [Ping timeout: 246 seconds]
naprimer has joined #ruby
Arpanet69 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has joined #ruby
CloCkWeRX has joined #ruby
tau has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nocco has joined #ruby
thadtheman has joined #ruby
Arpanet69 has quit [Ping timeout: 268 seconds]
vedu has joined #ruby
<vedu> Hello. I am trying to send a simple post request but I get this error: Errno::ECONNREFUSED: Connection refused - connect(2) for nil port 443. Full code and error: https://gist.github.com/vedant1811/3056891ae7b93cec0721a1f668ae83e7
doublemalt__ has joined #ruby
Kug3lis has joined #ruby
<Burgestrand> vedu You're missing a forward-slash after your URI scheme, i.e. https:// not https:/
<Burgestrand> Might not be your actual problem, I don't know.
doublemalt_ has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
<Burgestrand> >> URI("'https:/www.google-analytics.com/collect").host
<vedu> Burgestrand: thanks. that was my problem
<ruby[bot]> Burgestrand: # => undefined method `URI' for main:Object (NoMethodError) ...check link for more (https://eval.in/760667)
<Burgestrand> vedu :)
patarr has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
nOwz has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 268 seconds]
xenops has joined #ruby
ta__ has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
nOwz has joined #ruby
Fernando-Basso has joined #ruby
alibby has joined #ruby
ta__ has joined #ruby
blackmesa has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
nocco has quit [Remote host closed the connection]
nocco has joined #ruby
pulkit4tech has joined #ruby
alibby has quit [Quit: Leaving.]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
ta__ has quit [Ping timeout: 260 seconds]
psychicist__ has joined #ruby
tau has quit [Remote host closed the connection]
nocco has quit [Ping timeout: 256 seconds]
ferr1 has joined #ruby
hahuang61 has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
duckpupp1 has joined #ruby
last_staff has quit [Quit: last_staff]
pandaant has quit [Remote host closed the connection]
nOwz has quit [Ping timeout: 264 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
Kug3lis_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mcantor has joined #ruby
Arpanet69 has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
Kug3lis has quit [Ping timeout: 258 seconds]
rhyselsmore has joined #ruby
last_staff has joined #ruby
Arpanet69 has quit [Ping timeout: 246 seconds]
maattdd_ has quit [Read error: Connection reset by peer]
mcantor has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Quit: Leaving.]
nocco has joined #ruby
AndroUser123 has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
<AndroUser123> hello
<AndroUser123> baweaver sup
nocco has quit [Remote host closed the connection]
raspado has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
neuraload has joined #ruby
hutch34_ has joined #ruby
cagomez has joined #ruby
AndroUser123 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Silthias has left #ruby [#ruby]
A124 has quit [Quit: '']
biberu has joined #ruby
mim1k has quit [Quit: Lost terminal]
hutch34_ has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 264 seconds]
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
<ponzii> installing capi-docs: /Users/<me>/.rbenv/versions/2.4.1/share/doc/ruby
<ponzii> installing rdoc: /Users/<me>/.rbenv/versions/2.4.1/share/ri/2.4.0/system
<ponzii> --prefix=/Users/<me>/.rbenv/versions/2.4.1
<ponzii> Configure options used:
<ponzii> --with-openssl-dir=/Users/<me>/.rbenv/versions/2.4.1/openssl
<ponzii> CC=clang
<ponzii> LDFLAGS=-L/Users/<me>/.rbenv/versions/2.4.1/lib
<ponzii> CPPFLAGS=-I/Users/<me>/.rbenv/versions/2.4.1/include
<ponzii> centrx: Nothing extra to go on.
rikkipit_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
despai has quit [Quit: This computer has gone to sleep]
rikkipit_ has joined #ruby
<ponzii> centrx: Earlier there's this: ../.././ext/openssl/extconf.rb:64: Ignore OpenSSL broken by Apple.
rikkipitt has quit [Ping timeout: 240 seconds]
byte512 has quit [Quit: Bye.]
<ponzii> .... and : ./.././ext/openssl/extconf.rb:64: Please use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl')
<Burgestrand> Daneel Resolv in standard library https://ruby-doc.org/stdlib-2.4.0/libdoc/resolv/rdoc/Resolv.html
charliesome has joined #ruby
<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
<centrx> hints/solutions
<Daneel> s/now/not/
byte512 has joined #ruby
<Daneel> Burgestrand, when i past the example from https://ruby-doc.org/stdlib-2.4.0/libdoc/resolv/rdoc/Resolv.html i get an error
<Daneel> <main>': uninitialized constant Resolv (NameError)
__Yiota has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
<Daneel> this docuement it not done for discovering
mcantor has joined #ruby
<Burgestrand> Daneel documentation typically assumes some basic level of knowledge, you'll need to do `require "resolv"` in your code
<Burgestrand> Daneel there are no puppet plugins or similar to do what you want?
lacrymology has quit [Ping timeout: 246 seconds]
<ponzii> centrx: Ruby installs on OS X theses days are a ****ing joke. Each time a different variant of SSL ****-up.
polysics has quit []
<Daneel> i was near i tested require but without "" :D
<ponzii> centrx: Python, by comparison, is a breeze to install. What is it with Ruby?
Burgestrand has quit [Quit: Closing time!]
<centrx> ponzii: I don't know, I've always used Ruby on Linux with no problems
lacrymology has joined #ruby
<misthonk> Scheit, it was the date format that was messed up!
Burgestrand has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Burgestrand has quit [Client Quit]
houhoulis has joined #ruby
cajone has quit [Ping timeout: 240 seconds]
truenito has joined #ruby
Wsewolod has joined #ruby
pulkit4tech has joined #ruby
cajone has joined #ruby
vali has quit [Ping timeout: 258 seconds]
aganov has quit [Remote host closed the connection]
aganov has joined #ruby
antoniobeyah has joined #ruby
yeticry has joined #ruby
User458764 has joined #ruby
patarr has joined #ruby
blackmesa has joined #ruby
waltair has joined #ruby
Pumukel has quit [Remote host closed the connection]
yeticry_ has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
<bhaak> I use rvm on OSX and Linux and don't remember any problems
ableto has joined #ruby
renchan has quit [Quit: Leaving...]
patarr has quit [Ping timeout: 258 seconds]
<misthonk> In ruby, if I want to set a variable from the command line, what would be the easiest way? Just need one.
Pumukel has quit [Ping timeout: 246 seconds]
snickers has quit [Ping timeout: 268 seconds]
mark_66 has quit [Ping timeout: 264 seconds]
olivi____ has quit [Remote host closed the connection]
<ljarvis> misthonk: X=foo ruby example.rb # in example.rb `puts ENV["foo"]
oded has quit [Quit: Konversation terminated!]
<ljarvis> er
<ljarvis> ENV["X"]
tercenya_ has quit [Remote host closed the connection]
<elomatreb> or ruby -e '$something = 'test'' script.rb I think
jaiks has joined #ruby
mark_66 has joined #ruby
<nofxxx> yeah env vars... -e pretty confuse for this
<elomatreb> I agree, but they specifically asked for setting a variable, although that may be a bad idea
<workmad3> if you're on the command line, why not `ruby example.rb foo` and then grab it with ARGV.first?
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
<misthonk> ljarvis: That makes sense, thanks!
oliv_____ has joined #ruby
hahuang61 has joined #ruby
patarr has joined #ruby
jaiks has quit [Quit: Leaving]
oliv_____ has quit [Remote host closed the connection]
<misthonk> aaargh, the amazon mws API is nuts. I get to request a report, but the ID is totally different from the actual one :/
lightheaded has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<misthonk> This thing with parsers, how does that work? I've added "parser = client.get_report_request_list" and "parser.parse" but no output.
snickers has joined #ruby
wnjuwl has joined #ruby
<hxegon> ?code misthonk
<ruby[bot]> misthonk: We can't help you without your code, please post it to https://gist.github.com
blackmesa has quit [Ping timeout: 258 seconds]
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]
[Butch] has joined #ruby
amclain has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
MrJoshua has joined #ruby
synthroid has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
milardovich has joined #ruby
synthroi_ has quit [Ping timeout: 246 seconds]
Elderfain has quit [Changing host]
Elderfain has joined #ruby
ledestin has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
TomyWork has quit [Remote host closed the connection]
__Yiota has quit [Client Quit]
tercenya has joined #ruby
Kug3lis_ has quit [Ping timeout: 258 seconds]
tolerablyjake has quit [Ping timeout: 246 seconds]
srl295 has joined #ruby
blackmesa has joined #ruby
gusrub has joined #ruby
dopamean_ has joined #ruby
Pumukel has quit [Remote host closed the connection]
bmurt has joined #ruby
gusrub has quit [Ping timeout: 264 seconds]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
Daneel has quit [Quit: tchitchaaa]
conta has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Remote host closed the connection]
wnjuwl has quit [Remote host closed the connection]
oliv_____ has joined #ruby
gusrub has joined #ruby
Lord_of_Life has quit [Changing host]
Lord_of_Life has joined #ruby
Lord_of_Life has joined #ruby
oliv_____ has quit [Remote host closed the connection]
__Yiota has joined #ruby
oliv_____ has joined #ruby
mark_66 has quit [Remote host closed the connection]
aredridel has quit [Ping timeout: 252 seconds]
ferr1 has quit [Quit: WeeChat 1.7]
aganov has quit [Quit: Leaving]
tvw has quit []
raspado has joined #ruby
TomyLobo2 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
raspado has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 260 seconds]
aredridel has joined #ruby
etehtsea has quit [Ping timeout: 264 seconds]
swills_ has quit [Read error: Connection reset by peer]
raspado_ has joined #ruby
olivi____ has joined #ruby
swills_ has joined #ruby
houhoulis has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
tercenya has quit [Remote host closed the connection]
User458764 has joined #ruby
tercenya has joined #ruby
srl295 has left #ruby [#ruby]
AnoHito has quit [Quit: Leaving]
etehtsea has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
noob has joined #ruby
kies has quit [Ping timeout: 268 seconds]
nobitanobi has joined #ruby
HoierM has quit [Ping timeout: 260 seconds]
zeddan_ has quit [Ping timeout: 260 seconds]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AnoHito has joined #ruby
flying has quit []
centrx has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
gusrub has quit [Remote host closed the connection]
hahuang61 has joined #ruby
patarr_ has joined #ruby
_djbkd has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 258 seconds]
lightheaded has joined #ruby
kies has joined #ruby
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
<yurikoles> The workaroun is simple: gem: --bindir /usr/local/bin in ~/.gemr
<yurikoles> *gemrc
pLaTo0n has joined #ruby
<pLaTo0n> moin
pLaTo0n has left #ruby [#ruby]
waltair has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
nowhere_man has joined #ruby
<yurikoles> pLaTo0n: Hallo!
<yurikoles> echo `brew --prefix`
<yurikoles> /usr/local
<yurikoles> it must be in /usr/local/bin
Mon_Ouie has joined #ruby
<dminuoso> adam12: I would keep them apart, but have the client introduce a group: :testing dependency on the API.
<dminuoso> adam12: That gives you the separation of concerns but keep them together for the part that matters: verifying things work.
despai has joined #ruby
muelleme has joined #ruby
despai has quit [Remote host closed the connection]
milardovich has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Quit: Outta here...]
milardovich has joined #ruby
synthroid has quit [Remote host closed the connection]
pabloh has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
Chagel has joined #ruby
greenhat_ has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
<havenwood> yurikoles: I don't see the path moved from brew's end in the 2.4.1 commit: https://github.com/Homebrew/homebrew-core/commit/a802eae778b2ca34c948d1ae0b8d0232352be89f
luckyruby has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
Chagel has quit [Remote host closed the connection]
D9 has quit [Excess Flood]
D9 has joined #ruby
gusrub has joined #ruby
<yurikoles> havenwood: so I went here to ask maybe someone knows why it may be broken in recent release?
<yurikoles> I'm the commiter btw
greenhat has joined #ruby
luckyruby has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12> dminuoso: Good idea - thanks.
enterprisey has quit [Read error: Connection reset by peer]
Chagel has joined #ruby
<matthewd> yurikoles: Hmm. Can you confirm (e.g. via `gem env`) that the default path has indeed changed between the versions?
lxsameer has quit [Quit: WeeChat 1.5]
<yurikoles> yes
olivi____ has quit [Remote host closed the connection]
devster31 has quit [Ping timeout: 255 seconds]
<matthewd> Okay, I guess I'd next try installing rubygems 2.6.11 in 2.4.0
lacrymology has quit [Ping timeout: 260 seconds]
<matthewd> It's almost certainly a change on the rubygems side, but worth checking
devster31 has joined #ruby
Chagel has quit [Client Quit]
paramourne has quit [Ping timeout: 264 seconds]
Rodya_ has joined #ruby
luckyruby has quit [Ping timeout: 240 seconds]
_djbkd has quit [Remote host closed the connection]
enterprisey has joined #ruby
_djbkd has joined #ruby
dopamean_ has joined #ruby
oliv_____ has joined #ruby
tercenya has quit [Remote host closed the connection]
renatosilva has joined #ruby
tercenya has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
nobitanobi has joined #ruby
<yurikoles> It seems to be definetly in ruby-lang https://gist.github.com/yurikoles/2408cc683fd16fe6f842a057af104727
oliv_____ has quit [Remote host closed the connection]
cdg has quit [Read error: Connection reset by peer]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
<matthewd> That's being set/overridden in GEM CONFIGURATION
workmad3 has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
renchan has joined #ruby
workmad3 has joined #ruby
User458764 has joined #ruby
ldnunes has quit [Ping timeout: 260 seconds]
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
muelleme_ has joined #ruby
olivi____ has quit [Ping timeout: 246 seconds]
muelleme has quit [Ping timeout: 264 seconds]
kons has joined #ruby
synthroid has joined #ruby
gusrub has quit []
arup_r has joined #ruby
ldnunes has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hxegon has quit [Quit: leaving]
hxegon has joined #ruby
gusrub has joined #ruby
arup_r has quit []
enterprisey has quit [Ping timeout: 260 seconds]
vadviktor_ has quit [Remote host closed the connection]
enterprisey has joined #ruby
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
Brak___________ has quit [Ping timeout: 255 seconds]
Brak___________ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Batholith has quit [Ping timeout: 255 seconds]
Batholith has joined #ruby
jshjsh has quit [Ping timeout: 264 seconds]
Yonk_ has quit [Ping timeout: 255 seconds]
_djbkd has quit [Remote host closed the connection]
petems has quit [Ping timeout: 255 seconds]
Yonk_ has joined #ruby
oliv_____ has joined #ruby
charles81_ has quit [Ping timeout: 255 seconds]
cstrahan has quit [Ping timeout: 255 seconds]
charles81_ has joined #ruby
cstrahan has joined #ruby
esObe_ has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
pLaTo0n has joined #ruby
nobitanobi has joined #ruby
jenrzzz has joined #ruby
croberts has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
houhoulis has quit [Remote host closed the connection]
cdg has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
synthroi_ has joined #ruby
User458764 has joined #ruby
synthroid has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
jgnagy has joined #ruby
nobitanobi has quit [Remote host closed the connection]
kirun has joined #ruby
cpruitt has joined #ruby
kitikonti has joined #ruby
lxsameer has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Pumukel has joined #ruby
patarr_ has quit [Ping timeout: 264 seconds]
loincloth has quit []
govg has quit [Ping timeout: 256 seconds]
Ishido has quit [Remote host closed the connection]
patarr has joined #ruby
Pumukel has quit [Ping timeout: 258 seconds]
petems has joined #ruby
govg has joined #ruby
Rodya_ has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
dlitvak has joined #ruby
nobitanobi has joined #ruby
ableto has quit [Quit: Leaving]
ol_______ has joined #ruby
avrelaun has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has quit [Ping timeout: 246 seconds]
__Yiota has joined #ruby
tolerablyjake has joined #ruby
cagomez has joined #ruby
avrelaun has joined #ruby
__Yiota has quit [Client Quit]
muelleme_ has quit [Ping timeout: 260 seconds]
avrelaun has quit [Ping timeout: 258 seconds]
avrelaun has joined #ruby
jobewan has joined #ruby
synthroid has joined #ruby
jgnagy has quit [Remote host closed the connection]
synthroi_ has quit [Ping timeout: 246 seconds]
ramortegui has quit [Quit: Ex-Chat]
Azure has quit [Read error: Connection reset by peer]
johnzorn has quit [Read error: Connection reset by peer]
pabloh has quit [Quit: Leaving]
johnzorn has joined #ruby
cdg has quit [Read error: Connection reset by peer]
centrx has joined #ruby
esObe_ has joined #ruby
cdg has joined #ruby
__Yiota has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
knight33 has joined #ruby
blackmesa has joined #ruby
jaruga has quit [Quit: jaruga]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34_ has joined #ruby
centrx has quit []
sneakerhax has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
incomprehensibly has quit [Ping timeout: 255 seconds]
incomprehensibly has joined #ruby
_djbkd has quit [Remote host closed the connection]
Pumukel has joined #ruby
yurikoles has quit [Remote host closed the connection]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toretore has quit [Quit: Leaving]
tvw has joined #ruby
davorb has quit [Read error: Connection reset by peer]
ascio has joined #ruby
_djbkd has joined #ruby
davorb has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zeddan has joined #ruby
jenrzzz_ has joined #ruby
ascio has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
montanonic has quit [Ping timeout: 268 seconds]
zeddan has quit [Ping timeout: 268 seconds]
zeddan has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
loincloth has joined #ruby
synthroi_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.5]
ldnunes has quit [Quit: Leaving]
_djbkd has quit [Remote host closed the connection]
synthroid has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
patarr has quit [Ping timeout: 260 seconds]
lightheaded has quit [Remote host closed the connection]
_djbkd has joined #ruby
lightheaded has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
blackmesa has joined #ruby
lheaded has joined #ruby
cyphase has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
montanonic has joined #ruby
renchan has quit [Remote host closed the connection]
zeddan has quit [Ping timeout: 264 seconds]
cyphase has quit [Ping timeout: 256 seconds]
<dysfigured> would you say that ruby allows for a lot of functional programming ideas? or is it mainly for oop-like code?
mooser has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
<hxegon> dysfigured: both
catbusters has joined #ruby
dopamean_ has quit [Quit: 1]
<hxegon> While it falls short of allowing natural functional programming 100%, it goes a lot farther than most other OO languages
mooser has quit [Client Quit]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<hxegon> OO and FP can somewhat coexist, and I think ruby has struck a pretty good balance.
JoshS has joined #ruby
<dysfigured> i'm coming from [mostly] javascript and i've learned a lot of FP from js, i guess i'm wondering how they compare
<hxegon> You can do 100% FP in js, but not ruby. You can however get a lot of milage out of FP ideas/techniques in ruby.
<allisio> The only thing Ruby lacks in that comparison is "first-class methods".
<hxegon> ^
<allisio> You *could* use lambdas for all your Ruby FP, but you'd run into walls early and often.
<hxegon> As someone who has tried to do this, it get's confusing/ugly very quick. Would not recommend. Learned a lot about procs/lambdas though
_djbkd has quit [Remote host closed the connection]
<dysfigured> oh, there's no first class functions in ruby? dang that's a bummer
montanonic has quit [Ping timeout: 260 seconds]
<hxegon> There is, sort of...
<hxegon> I don't think I can explain it super clearly, but for example
<dysfigured> i just learned about implicit blocks with yield and that almost seems to be the same..
<allisio> There's the Method and UnboundMethod classes, and you can receive and return Procs wherever you wish.
<hxegon> >> [1, 2, 3].map { |n| n * 2 }
<ruby[bot]> hxegon: # => [2, 4, 6] (https://eval.in/760990)
* dysfigured wonders if you can make a curried version of map in ruby
montanonic has joined #ruby
_djbkd has joined #ruby
<allisio> dysfigured: How do you mean? #map takes one argument.
<dysfigured> right, a curried version should take two, the block, and then the array
<dysfigured> in js with ramda you can do map(fn)(array)
<dysfigured> which means you can then `compose(map(fn), filter(fn))(array)
<allisio> Sounds like you'd want Proc#apply, and I do think that method's absence is conspicuous.
cagomez has quit []
cagomez has joined #ruby
zeddan has joined #ruby
_djbkd has joined #ruby
ResidentBiscuit has joined #ruby
_djbkd has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<allisio> dysfigured: Like hxegon suggested, it's a little gruesome: https://eval.in/760993
kitikonti has quit [Quit: Textual IRC Client: www.textualapp.com]
<allisio> Er, "doubles" should obviously be "triples" there.
Azure has joined #ruby
muelleme_ has joined #ruby
loincloth has quit []
cdg has quit [Ping timeout: 240 seconds]
<dysfigured> implementation seems a bit ugly but the usage doesn't seem terrible (albeit completely alien coming from js)
<hxegon> It's for sure possible, but not something you'd want to do in any real code
hxegon is now known as hxegon_afk
JoshS has quit [Ping timeout: 260 seconds]
ol_______ has quit [Remote host closed the connection]
synthroi_ has quit []
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
enterprisey has quit [Remote host closed the connection]
Pumukel has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34_ has quit [Ping timeout: 268 seconds]
paramourne has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
davix has joined #ruby
elifoster has joined #ruby
emerson has joined #ruby
kons has quit [Quit: kons]
Verity has joined #ruby
<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?
<ruby[bot]> Verity: as I told you already, please use https://gist.github.com
<Verity> if possible, I hint would be even better.... I've been trying to get this myself but no luck
ahrs has quit [Remote host closed the connection]
cagomez has joined #ruby
jgnagy has joined #ruby
hutch34_ has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cagomez has quit [Client Quit]
<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]
brent__ has joined #ruby
AndBobsYourUncle has joined #ruby
brent__ has quit [Ping timeout: 246 seconds]
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
_djbkd has quit [Quit: My people need me...]
tvw has quit [Remote host closed the connection]
joneshf-laptop has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Ping timeout: 260 seconds]
muelleme_ has quit [Ping timeout: 240 seconds]
ddffg has quit [Ping timeout: 246 seconds]
gusrub has quit [Remote host closed the connection]
kirun has quit [Quit: Konversation terminated!]
hays has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
gusrub has joined #ruby
<allisio> For reference, `p` is technically a shortcut for `(puts foo.inspect; foo)`, which makes it even more convenient.
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has joined #ruby
blackmesa has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgnagy has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
mikeiniowa has quit [Remote host closed the connection]
eclm has quit [Quit: WeeChat 1.4]
zeddan has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
kons has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
montanonic has quit [Ping timeout: 240 seconds]
renatosilva has quit [Quit: http://renatosilva.net]
houhoulis has joined #ruby
CloCkWeRX has joined #ruby
workmad3 has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
zacts has joined #ruby
ahrs has quit [Remote host closed the connection]
hutch34_ has joined #ruby
ahrs has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
__Yiota has joined #ruby
duckpupp1 has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
duckpupp1 has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 240 seconds]
teddysmoker has quit [Quit: Konversation terminated!]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
JeanCarloMachado has quit [Ping timeout: 246 seconds]
astrobunny has quit [Remote host closed the connection]
biberu has quit []
Pumukel has joined #ruby