havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3; 2.2.6; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
sarbs_ is now known as sarbs
cschneid_ has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 260 seconds]
JammyHammy has joined #ruby
sandbags has quit []
pawnbox has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jhack has joined #ruby
CloCkWeRX has joined #ruby
frem_ has quit [Quit: Connection closed for inactivity]
Rodya_ has joined #ruby
johnzorn has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
skalfyfan has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
eb0t has quit [Quit: WeeChat 1.4]
careta has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 260 seconds]
skalfyfan has quit [Client Quit]
skalfyfan has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Immune has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
last_staff has quit [Quit: *poof*]
montanonic has joined #ruby
maokomioko has joined #ruby
maokomioko has quit [Client Quit]
jhooker has quit [Ping timeout: 260 seconds]
stamina has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
rodfersou has joined #ruby
hahuang65 has joined #ruby
brendan- has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
tulak_ has quit [Remote host closed the connection]
tulak has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
frozengeek____ has quit [Quit: frozengeek____]
bmurt has joined #ruby
jhooker has joined #ruby
tulak_ has joined #ruby
tulak has quit [Read error: Connection reset by peer]
tulak_ has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
skweek has joined #ruby
ruid has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smlocal has quit []
skalfyfan has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
nankyokusei has joined #ruby
marr has quit [Ping timeout: 250 seconds]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jcao219 has quit [Ping timeout: 265 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reverberations has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
arescorpio has joined #ruby
Devalo has joined #ruby
hahuang65 has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
jcao219 has joined #ruby
ta_ has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
finisherr has quit [Quit: finisherr]
<l33n> This is my ruby server: https://gist.github.com/anonymous/8b9b25a158e5f4d7bf977ab423f30d6d , this is my ajax request: https://gist.github.com/anonymous/2fa008f138eb748ee75163b77dcd09a5 , this is my server log after sending the request: https://gist.github.com/anonymous/976fd27b8bcb594b451f8c0c112cee75 , how do I access that data in my server script so that I can do something like this in my server script: https://gist.github.com/anonymous/1be
<l33n> 52de650e514fa8bad7ba3b3a27cb6
hahuang65 has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
<l33n> i don't think I can use params[:lat] and have that access the data i sent in my ajax...
<l33n> apreciate any pointers
bmurt has joined #ruby
pawnbox has quit [Remote host closed the connection]
<l33n> or if this is what is represented by socket.gets.split(" ")[1] "/?{%22lat%22:%2241.5573129%22,%22long%22:%22-82.6637969%22}" how can i get rid of the %22
platzhirsch has quit [Quit: WeeChat 1.4]
Devalo has joined #ruby
rwb has joined #ruby
PresidentBiscuit has joined #ruby
rodfersou has quit [Quit: leaving]
Devalo has quit [Ping timeout: 240 seconds]
Livecodingtv_Ale has quit [Quit: ChatZilla 0.9.93 [Firefox 51.0/20161124073320]]
marxarelli is now known as marxarelli|afk
Kero has quit [Ping timeout: 246 seconds]
jhack has quit [Quit: jhack]
jcao219 has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
Kero has joined #ruby
Snowy has quit [Remote host closed the connection]
tuxaddicted has joined #ruby
Snowy has joined #ruby
moei has quit [Quit: Leaving...]
CPngN has left #ruby ["The system is going down for reboot NOW!"]
Snowy has quit [Ping timeout: 240 seconds]
XV8 has joined #ruby
axl_ has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
harai has quit [Ping timeout: 260 seconds]
joebobjoe has quit [Ping timeout: 250 seconds]
jhack has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
eb0t has joined #ruby
ruby-lang989 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
montanonic has quit [Ping timeout: 245 seconds]
finisherr has joined #ruby
jarred has joined #ruby
JesseH has quit [Ping timeout: 240 seconds]
<l33n> blackbombay, do you know how I can access the json i sent with ajax, the server gets its as GET /?{%22lat%22:%2241.5573129%22,%22long%22:%22-82.6637969%22} HTTP/1.1
<l33n> so that's socket.gets
<l33n> but i want it without all that crap
postmodern has joined #ruby
djbkd has quit [Quit: My people need me...]
jenrzzz has quit [Ping timeout: 246 seconds]
houhoulis has joined #ruby
tuxaddicted has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
cdg has quit [Remote host closed the connection]
ruby-lang989 has quit [Ping timeout: 260 seconds]
whathappens has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
joebobjoe has joined #ruby
<jhack> How can i use sort_by on an object to sort from M to F or F to M
jaguarmagenta has joined #ruby
<jhack> doing something like array.sort_by { |person| person.gender }
<jhack> but I want to be able to do F first, or M first
splud has quit [Quit: splud]
bovis has quit [Quit: leaving]
jgnagy has joined #ruby
joebobjoe has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 256 seconds]
gandalf has joined #ruby
<l33n> jhack, do you have any idea? i sent a json with ajax, now its in this format GET /?{%22lat%22:%2241.5573129%22,%22long%22:%22-82.6637969%22} HTTP/1.1
<l33n> how do i access it?
<jhack> ur still on that?
<jhack> :0
<l33n> lol
<l33n> i can'
<jhack> yeah
<l33n> t believe it
jgnagy has quit [Ping timeout: 256 seconds]
<l33n> it feels like years
<jhack> whats the issue?
<jhack> what do u get back
perniciouscaffei has joined #ruby
<jhack> ok
<jhack> u did not read the link i sent u -.-
gandalf has quit [Client Quit]
<l33n> wait what?
<l33n> i get this from the server bbroadstone@debian:~/Ruby Projects/json_server$ ruby server.rb
<l33n> GET /?{%22lat%22:%2241.5573129%22,%22long%22:%22-82.6637969%22} HTTP/1.1
<jhack> You’re trying to get the data back from the server right?
<l33n> yeah
<jhack> you need a .done()
axl_ has quit [Quit: axl_]
<l33n> but isnt that for client side?
<l33n> yeah
<l33n> eventually i want that
<jhack> yeah
<l33n> but right now i just want to manipulate that data serverside
<jhack> I dont understand
<jhack> ok
<l33n> and it seems to get the data as per bbroadstone@debian:~/Ruby Projects/json_server$ ruby server.rb
<l33n> GET /?{%22lat%22:%2241.5573129%22,%22long%22:%22-82.6637969%22} HTTP/1.1
<jhack> and?
<l33n> so how do i get it back in json form?
<jhack> It is in json form
<jhack> do JSON.parse
<l33n> how do i access it though in my server script?
<jhack> try params ?
<l33n> i know how to do socket.gets
<l33n> when i did params before i got GET /?{%22lat%22:%2241.5573129%22,%22long%22:%22-82.6637969%22} HTTP/1.1
<l33n> server.rb:11:in `block in <main>': undefined local variable or method `params' for main:Object (NameError)
deadhound has joined #ruby
<deadhound> Hi can someone clearly explain to me what :symbols are for and what :: means in ruby? really stuck on these 2 things
jhass has quit [Ping timeout: 250 seconds]
<l33n> peace out world
<l33n> i need some drugs to erase this working-so-hard-for-days-to-try-and-print-a-variable-and-just-can't-fucking-do-it mess
joebobjoe has joined #ruby
jhass has joined #ruby
BreakThings has joined #ruby
finisherr has quit [Quit: finisherr]
l33n has quit [Quit: Leaving]
BreakThings has quit [Ping timeout: 245 seconds]
ruby-lang627 has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
joebobjoe has quit [Ping timeout: 268 seconds]
Derperperd has joined #ruby
d^sh has joined #ruby
ruby-lang627 has left #ruby [#ruby]
nikivi has quit [Quit: irc]
railssmith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joebobjoe has joined #ruby
amclain has quit [Quit: Leaving]
<deadhound> OK if :: is an accessor - why use it over dot notation? obj::method vs obj.method?
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<nofxx> deadhound, because it's ugly
<ineb> . notation is more convenient
<deadhound> is that actually the only reason? preference?
webguynow has quit [Ping timeout: 252 seconds]
<deadhound> because I see :: everywhere in Rails, Sinatra, etc. just wondering if that is just a stylistic choice or for a reason that I should know / follow
<nofxx> and also it's great to have that convention... you see :: you know it's a namespace thing, you see a dot and it's a method
<nofxx> least surprise
webguynow has joined #ruby
<deadhound> oooooo baweaver / nofxx
<deadhound> so I couldn't use dot notation to access things in other modules so :: is used in rails / sinatra to call those things?
<deadhound> to keep the namespace clean?
<baweaver> Google Ruby double colon
<baweaver> looks to be some good reading around
<ineb> use :: for namespace addressing and . notation when you call a method
<baweaver> but those two get the gist of it I'd think
<ineb> MyModule::MyClass.my_method or so
<baweaver> Honestly I'm fairly sure it's just a carryover from Perl
tmtwd has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
preyalone has joined #ruby
<deadhound> oh cool baweaver i had been looking around for a couple of days but those 2 links seemed to be really good. i think i've seen the 2nd one in the past but it finally clicked writing my own example
<deadhound> so dot notation can call methods but not variables in objects
<deadhound> makes sense
tuxaddicted has joined #ruby
<baweaver> use ctrl / cmd + f to look up double colon in there
<baweaver> basically used for package resolution in Perl and that carried over to Ruby.
xrlk has quit [Remote host closed the connection]
<baweaver> Ruby just has many ways of doing things, but there are a few subtle differences
<deadhound> ah nice. i'll prolly read that to learn some perl too thanks
<baweaver> in any case I didn't know any of this before I started looking a few minutes ago
xrlk has joined #ruby
<deadhound> haha!
<baweaver> I just assumed that :: was used for module diving and left it at that
<deadhound> thanks
enterprisey has joined #ruby
<deadhound> and final thing i just want to clarify - the # like in File#open just accesses a … method? in a module?
<deadhound> i see that a lot in rails regarding controllers and i know in the file "File" there is a method called "open" right?
<baweaver> Basically because documentation
jackjackdripper has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
<deadhound> so it's just a way to document Class#method but not used in code? light bulb didn't go off as brightly on that stackoverflow
d^sh has quit [Ping timeout: 245 seconds]
<baweaver> A good rule of thumb though for understanding odd things in Ruby: you can probably blame most odd conventions on Perl or tenderlove
davidt has quit []
<deadhound> I don't even know what tenderlove is
nelsonsar has quit [Remote host closed the connection]
<baweaver> who
<deadhound> ah
<baweaver> though that makes a magnificent quote for later out of context XD
<deadhound> hahaha
nelsonsar has joined #ruby
<baweaver> Mostly joking. Him and zenspider over in Seattle have some conventions on code formatting
<baweaver> and occasionally we poke fun at Seattle style Ruby
<deadhound> gotcha so that's the "convention" in ruby is all this :: # stuff that confuses new comers
<deadhound> the tough part with all the stuff i find confusing in ruby is i might go "oh ok that makes sense" but i never know when to apply it
<baweaver> Like?
<deadhound> :symbols
<baweaver> Think of them as strong light
<baweaver> string*
<baweaver> lite*
<baweaver> ....
<baweaver> wow
<deadhound> like?
<baweaver> A symbol is basically just a name tag
<deadhound> but why use it over a variable?
<baweaver> it doesn't really need to do anything else other than serve as a label
nelsonsar has quit [Ping timeout: 248 seconds]
<deadhound> or const
<baweaver> strings can be mutated as one part
<baweaver> you know a symbol will always be the same thing no matter where you are
<baweaver> (granted you can freeze a string)
<deadhound> what do you mean "as one part"?
<baweaver> as one reason
<baweaver> I'm typing all types of odd today
<deadhound> ooh
<deadhound> but symbols are values?
<baweaver> yep
<deadhound> like my_name = :deadhound ?
<baweaver> It's also one less character
<baweaver> yep
<deadhound> and i can call my_name OR :deadhound?
<baweaver> you don't even need my_name
<deadhound> i just declare :deadhound
<deadhound> and I can call :deadhound anywhere ?
<baweaver> it's a value
<baweaver> that's kinda like saying you declare 1
nankyokusei has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhack> any ideas how i can sort birthdays ascending? I’m not sure if this is right, array.sort { |a, b| a.dob <=> b.dob }
<jhack> birthday formats: 1/12/1923
<deadhound> so if it's a value it's a value that doesn't change. so like i declare it my_name = :deadhound and now i just use :deadhound to always refer to that? i just don't see why i wouldn't just use my_name ? i guess cos my_name doesn't change in reality
<deadhound> but then in that case, why not use CONST ?
<deadhound> cos CONST is still mutable?
<baweaver> ignore the fact you can set a variable equal to a symbol
<deadhound> OK
<baweaver> you can set one = 1
<baweaver> that doesn't mean one is accessible everywhere magically
<baweaver> it just means that 1 is 1 everywhere.
<deadhound> ok
<baweaver> Y'might take a look at that ^ deadhound
<deadhound> llua i actually tried watching that video last week and other than a symbol having the same object_id everywhere not sure why i would choose to use it over just declaring a var and passing it around, etc
<baweaver> forget variables
nankyokusei has quit [Ping timeout: 245 seconds]
<baweaver> because that infers the variable is accessible everywhere
<deadhound> so a symbol is accessible everywhere?
<baweaver> 1 is 1 the same as :symbol is :symbol no matter where you use it
<baweaver> they're values.
<baweaver> they just are.
<baweaver> you can assign 1 to a variable if you want and pass that around everywhere, but that's incredibly pointless when you can just say array[1] instead
<baweaver> the same as it'd be with hash[:symbol_key]
tdy has joined #ruby
Mia has joined #ruby
finisherr has joined #ruby
<deadhound> true
finisherr has quit [Client Quit]
tomchapin has joined #ruby
Axy has quit [Ping timeout: 260 seconds]
eb0t has quit [Ping timeout: 252 seconds]
<deadhound> thanks for all the info
JoshS has joined #ruby
eb0t has joined #ruby
warrshrike_ has quit [Ping timeout: 260 seconds]
montanonic has joined #ruby
webguynow has quit [Ping timeout: 260 seconds]
PresidentBiscuit has quit []
webguynow has joined #ruby
agent_white has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
jhack has quit [Quit: jhack]
libastral has quit [Ping timeout: 250 seconds]
houhoulis has quit [Remote host closed the connection]
whathappens has joined #ruby
libastral has joined #ruby
Rodya_ has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
whathappens has quit [Remote host closed the connection]
solocshaw has joined #ruby
Devalo has joined #ruby
pilne has quit [Quit: Quitting!]
railssmith has joined #ruby
domgetter has joined #ruby
webguynow has quit [Ping timeout: 260 seconds]
reverberations has joined #ruby
webguynow has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
Channel6 has joined #ruby
jhack has joined #ruby
chadhs has joined #ruby
whathappens has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
webguynow has quit [Ping timeout: 250 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
webguynow has joined #ruby
whathapp_ has joined #ruby
whathappens has quit [Ping timeout: 252 seconds]
antoniobeyah has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
enterprisey has quit [Quit: Leaving]
dviola has quit [Quit: WeeChat 1.6]
whathapp_ has joined #ruby
nuclearsandwich has quit [Quit: WeeChat 1.4]
eljimmy has joined #ruby
eljimmy has quit [Remote host closed the connection]
nelsonsar has joined #ruby
eljimmy has joined #ruby
eljimmy has quit [Remote host closed the connection]
BreakThings has joined #ruby
whathappens has quit [Ping timeout: 265 seconds]
arescorpio has quit [Quit: Leaving.]
nelsonsar has quit [Ping timeout: 252 seconds]
qwerty has joined #ruby
BreakThings has quit [Ping timeout: 250 seconds]
qwerty has left #ruby [#ruby]
aibot has quit [Remote host closed the connection]
shiver has quit [Read error: Connection reset by peer]
shiver has joined #ruby
shiver has joined #ruby
shiver has quit [Changing host]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
deadhound has quit [Quit: Leaving.]
brendan- has joined #ruby
shiver has quit [Remote host closed the connection]
dn`_ has joined #ruby
dn` has quit [Read error: Connection reset by peer]
dn`_ is now known as dn`
tdump has joined #ruby
statelesscode has quit [Ping timeout: 248 seconds]
statelesscode has joined #ruby
jaguarmagenta has joined #ruby
camilasan has quit [Remote host closed the connection]
chris2 has quit [Ping timeout: 260 seconds]
chris2 has joined #ruby
camilasan has joined #ruby
Anonymoose2 has joined #ruby
shiver_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Quit: Leaving.]
shiver_ has quit [Remote host closed the connection]
shiver_ has joined #ruby
sung has joined #ruby
reverberations has quit [Ping timeout: 260 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
antoniobeyah has quit [Quit: antoniobeyah]
<sung> stupid question: i'm using a regex to do some matching on on text. some of the text has some characters which are special (eg, \xFD). the regex results in an error with invalid byte sequence. i still need to have the regex work and match it. i'm doing a =(.*)$ and expect the string, including characters like \xFD to show up in $1. how can i do this? reencoding the string replaces the chracters with something
<sung> else.
buglessdr has joined #ruby
jhack has quit [Quit: jhack]
blackwind_123 has joined #ruby
<sung> hell, even if i'm not even trying to match the wacky characters, just trying a regex against a line that has wacky characters make it raise that exception.
millerti has joined #ruby
shiver_ has quit [Remote host closed the connection]
shiver_ has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
tdump has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Jayson_Virissimo has joined #ruby
jaguarmagenta has joined #ruby
shiver_ has quit [Read error: Connection reset by peer]
bturker has joined #ruby
<sung> okay. setting $KCODE to NONE did it.
shiver_ has joined #ruby
Rodya_ has joined #ruby
<sung> nope. that didnt do it. just forcing encoding to binary did it.
l33n has joined #ruby
<l33n> how can I remove the /?{"lat":"41.5573129","long":"-82.6637969"}
<l33n> from this string
<l33n> want to remove the /?
bturker has quit [Ping timeout: 256 seconds]
<somiaj> hmm, syntax question. In rouge there is this definition. def pop!(times=1) but unsure how to make times=2, the standard examples all just have :pop!, I've tried :pop(2)! :pop!(2) :pop!(times=2) with errors.
jaguarmagenta has quit [Remote host closed the connection]
Immune has joined #ruby
<l33n> just wanna get rid of that /?
<somiaj> l33n: the regex would be s/^\/\?// -- unsure the best way to do this in ruby though.
<somiaj> that will replace the start of the string /? with nothing.
<nofxx> l33n, put what you want to remove inside quotes... why isn't in your example string?
<nofxx> somiaj, pop! 2 or pop!(2)
<Jayson_Virissimo> >> "/?asdf".delete('/?')
<ruby[bot]> Jayson_Virissimo: # => "asdf" (https://eval.in/688117)
Rodya_ has quit [Ping timeout: 260 seconds]
hanmac has joined #ruby
<somiaj> nofxx: neither work. Though rouge is calling them as :pop! and unforuntally I can't find an example of doing this twice, but I see the definition in the code.
dnicole_ has quit [Remote host closed the connection]
<l33n> YES
<l33n> Jayson_Virissimo
<l33n> you da tyte one
tomchapin has quit [Read error: Connection reset by peer]
l33n has quit [Quit: Leaving]
gix has quit [Ping timeout: 244 seconds]
<Jayson_Virissimo> *makes cheezy 80s-style thumbs up gesture*
<nofxx> somiaj, there's no colon in method call... is that a parameter in a #send I suppose?
xall has joined #ruby
<somiaj> nofxx: The function definition is used internally it seems and though it accepts more than one input, I'm not seeing a way to give it to it.
<nofxx> just paste the line where there is ':pop!' and I'll tell you
matp_ is now known as matp
<somiaj> nofxx: Thanks, but it looks like the only way rouge is set up to call this function is through a predefined :pop! which doesn't call it. Okay
gix has joined #ruby
pawnbox has joined #ruby
<somiaj> nofxx: http://paste.debian.net/899763/ -- that make sense or need more?
<somiaj> seems even though the @stack.pop method can take multiple inputs, it is not configured to do so in the way I interface with it.
<somiaj> I mean take an optional input
chicken has joined #ruby
nelsonsar has joined #ruby
chicken is now known as aehrwyn
jaguarmagenta has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
luckyruby has joined #ruby
User458764 has joined #ruby
jaguarmagenta has joined #ruby
tomchapin has joined #ruby
nelsonsar has quit [Ping timeout: 260 seconds]
aehrwyn has left #ruby [#ruby]
blackbombay has quit [Ping timeout: 245 seconds]
aryaching_ has joined #ruby
shiver_ has quit [Quit: leaving]
shiver has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
blackbombay has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Jayson_Virissimo has quit []
aibot has joined #ruby
d^sh has joined #ruby
xall has quit [Ping timeout: 268 seconds]
tau has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
pawnbox has quit [Remote host closed the connection]
nowhereman has quit [Remote host closed the connection]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
gnufied has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
Channel6 has quit [Quit: Leaving]
jaguarmagenta has quit [Remote host closed the connection]
jenrzzz has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
jenrzzz has joined #ruby
xall has joined #ruby
baweaver is now known as baweaver_away
nankyokusei has quit [Ping timeout: 260 seconds]
matthewd has quit [Ping timeout: 268 seconds]
aryaching_ has quit [Read error: Connection reset by peer]
joebobjoe has quit [Quit: leaving]
aryaching has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
matthewd has joined #ruby
domgetter has quit [Ping timeout: 260 seconds]
william3 has joined #ruby
william3 has quit [Ping timeout: 250 seconds]
astrobunny has joined #ruby
baweaver_away is now known as baweaver
chadhs has quit [Quit: Textual IRC Client: www.textualapp.com]
jackjackdripper has joined #ruby
User458764 has joined #ruby
Rodya_ has joined #ruby
tmtwd has quit [Ping timeout: 244 seconds]
solocshaw has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
_sfiguser has quit [Ping timeout: 245 seconds]
nelsonsar has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blackbombay has quit [Ping timeout: 265 seconds]
BreakThings has joined #ruby
tmtwd has joined #ruby
saneax-_-|AFK is now known as saneax
nelsonsar has quit [Ping timeout: 244 seconds]
tomchapin has quit [Read error: Connection reset by peer]
BreakThings has quit [Ping timeout: 240 seconds]
whathapp_ has quit [Remote host closed the connection]
whathappens has joined #ruby
whathappens has quit [Ping timeout: 250 seconds]
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
_sfiguser has joined #ruby
pawnbox has joined #ruby
ur5us has quit [Remote host closed the connection]
whathappens has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
Fuzai has quit [Ping timeout: 268 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
d0nn1e has quit [Ping timeout: 260 seconds]
d0nn1e has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
JeroenDL has joined #ruby
benlieb has joined #ruby
xberg has joined #ruby
JeroenDL has quit [Client Quit]
preyalone has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Remote host closed the connection]
Sammichmaker has joined #ruby
jeffaustin81 has joined #ruby
tomchapin has joined #ruby
xberg has quit [Remote host closed the connection]
pawnbox has joined #ruby
jcao219 has joined #ruby
xberg has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
antoniobeyah has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
tomchapin has quit [Read error: Connection reset by peer]
bturker has joined #ruby
benlieb has quit [Quit: benlieb]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jenrzzz has joined #ruby
Rodya_ has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
buglessdr has quit [Ping timeout: 268 seconds]
nelsonsar has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
blackbombay has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
dnicole has joined #ruby
nelsonsar has quit [Ping timeout: 246 seconds]
tomchapin has joined #ruby
blackbombay has quit [Ping timeout: 256 seconds]
dnicole has quit [Ping timeout: 260 seconds]
tdump has joined #ruby
dionysus69 has joined #ruby
eggshke has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
nelsonsar has joined #ruby
b0g has joined #ruby
Devalo has joined #ruby
<b0g> what's the fastest/easiest way to strip all leading spaces (but not all whitespace: i want to keep newline characters) from a particular string?
antoniobeyah has quit [Quit: antoniobeyah]
tdump has quit [Remote host closed the connection]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nadir has joined #ruby
govg has joined #ruby
nelsonsar has quit [Ping timeout: 260 seconds]
<matthewd> b0g: sub
dionysus69 has quit [Ping timeout: 244 seconds]
tdump has joined #ruby
<b0g> matthewd: what's sub, dawg? just playing (what's sup). that's what i needed, thank you
tomchapin has joined #ruby
<b0g> matthewd: absolutely perfect. thanks again. the joys of learning the language in haste
nankyokusei has joined #ruby
tmtwd has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
astrobun_ has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
astrobunny has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
jarred has quit [Quit: Connection closed for inactivity]
last_staff1 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
pragmaticus has joined #ruby
TomyLobo has joined #ruby
fenre has joined #ruby
Altlock has joined #ruby
jshjsh has joined #ruby
last_staff has quit [Ping timeout: 248 seconds]
last_staff1 is now known as last_staff
eb0t has quit [Quit: WeeChat 1.4]
teclator_ has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
kassav has joined #ruby
Devalo has quit [Remote host closed the connection]
BreakThings has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
tomchapin has joined #ruby
Altlock has quit [Ping timeout: 258 seconds]
tmtwd has joined #ruby
nofxxx has joined #ruby
aufi has joined #ruby
conta has joined #ruby
BreakThings has quit [Ping timeout: 244 seconds]
nofxx has quit [Ping timeout: 248 seconds]
bocaneri has joined #ruby
zzxc has quit [Ping timeout: 248 seconds]
blackbombay has joined #ruby
Kero has quit [Ping timeout: 268 seconds]
eb0t has joined #ruby
Kero has joined #ruby
zzxc has joined #ruby
antoniobeyah has joined #ruby
DaveTaboola has quit [Ping timeout: 248 seconds]
blackbombay has quit [Ping timeout: 252 seconds]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
xall has quit [Ping timeout: 268 seconds]
teclator has quit [Read error: No route to host]
teclator has joined #ruby
JeroenDL has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has joined #ruby
blaxter has joined #ruby
circ-user-yMnNv has joined #ruby
foooobear has joined #ruby
circ-user-yMnNv is now known as brslv
brslv has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 250 seconds]
haraoka has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
TomyLobo has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
djbkd has quit []
codfection has joined #ruby
hfp_work has quit [Ping timeout: 244 seconds]
muelleme has joined #ruby
hfp_work has joined #ruby
circ-user-qwJsL has joined #ruby
circ-user-qwJsL is now known as brslv
tdump has quit [Quit: Leaving...]
PaulCapestany has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
yardenbar has joined #ruby
teclator has joined #ruby
tomchapin has quit [Ping timeout: 265 seconds]
danst has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
montanonic has joined #ruby
danst has joined #ruby
tomchapin has joined #ruby
TomyWork has joined #ruby
SesMan has joined #ruby
teclator has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
TvL2386 has joined #ruby
bturker has joined #ruby
beanHolez has joined #ruby
brslv has quit [Remote host closed the connection]
beanHolez has left #ruby [#ruby]
beanHolez has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
psycho_one has joined #ruby
psycho_one has quit [Client Quit]
riotjones has quit [Ping timeout: 250 seconds]
psycho_one has joined #ruby
djbkd has joined #ruby
mapass has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
blackbombay has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
dnicole has joined #ruby
xberg has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
muelleme has quit [Ping timeout: 252 seconds]
dnicole_ has joined #ruby
blackbombay has quit [Ping timeout: 258 seconds]
dnicole has quit [Ping timeout: 258 seconds]
shashin has joined #ruby
luckyruby has quit [Quit: Leaving...]
firstdayonthejob has joined #ruby
jcao219 has joined #ruby
tulak has joined #ruby
szu has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
<tobiasvl> what's updog?
<dminuoso> ?urbandictionary
<ruby[bot]> dminuoso: I don't know anything about urbandictionary
<dminuoso> If only I could throw rocks as far as Switzerland, apeiros would have some serious head wounds.
tulak has quit [Ping timeout: 268 seconds]
shashin has quit [Quit: Textual IRC Client: www.textualapp.com]
tulak has joined #ruby
tulak has quit [Read error: Connection reset by peer]
tulak has joined #ruby
xberg has joined #ruby
tulak has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
the_drow has joined #ruby
Tharbakim has quit [Quit: Something has gone terribly wrong. Send help.]
aufi has quit [Remote host closed the connection]
nowhere_man has joined #ruby
aufi has joined #ruby
xberg_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Tharbakim has joined #ruby
xberg has quit [Ping timeout: 246 seconds]
moei has joined #ruby
SCHAAP137 has joined #ruby
dionysus69 has joined #ruby
koooge has quit [Quit: Leaving...]
ponga has joined #ruby
nankyokusei has joined #ruby
claudiuinberlin has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
BreakThings has joined #ruby
salut has joined #ruby
<adaedra> got a problem dminuoso?
symm- has joined #ruby
BreakThings has quit [Ping timeout: 250 seconds]
ejnahc has joined #ruby
YaknotiS has joined #ruby
Humdai has joined #ruby
omphe has joined #ruby
govg has quit [Ping timeout: 246 seconds]
ixti has joined #ruby
sdwrage has joined #ruby
mim1k|work has quit [Read error: Connection reset by peer]
bturker has joined #ruby
Devalo has joined #ruby
kristofferR has joined #ruby
xberg_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
charliesome has joined #ruby
xberg has joined #ruby
mim1k|work has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
harai has joined #ruby
lxsameer has joined #ruby
nofxxx has quit [Ping timeout: 248 seconds]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toretore has joined #ruby
xberg has quit [Remote host closed the connection]
<apeiros> dminuoso: why'd you do that to me? :<
Rodya_ has joined #ruby
* apeiros brb
xberg has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
maattdd has joined #ruby
omphe has joined #ruby
charliesome has quit [Ping timeout: 245 seconds]
bayed has joined #ruby
ledestin has joined #ruby
jsrn_ has joined #ruby
wugy has joined #ruby
shashin has joined #ruby
pawnbox has joined #ruby
savage has joined #ruby
matp_ has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
agent_white has quit [Read error: Connection reset by peer]
BreakThings has joined #ruby
biberu has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
matp has quit [Ping timeout: 260 seconds]
riotjones has joined #ruby
elaptics has joined #ruby
BreakThings has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
kassav has quit [Read error: Connection reset by peer]
User458764 has quit [Client Quit]
djellemah has quit [Ping timeout: 250 seconds]
Snowy has joined #ruby
tomphp has joined #ruby
charliesome has joined #ruby
jcao219 has joined #ruby
JeroenDL has quit [Quit: JeroenDL]
astrobun_ has quit [Remote host closed the connection]
rodfersou has joined #ruby
astrobunny has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
dviola has joined #ruby
astrobunny has quit [Ping timeout: 244 seconds]
bturker has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
johnDoe111 has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
<TomyWork> is there a way to make ruby functions with keyword arguments?
hahuang65 has joined #ruby
Snowy has quit [Remote host closed the connection]
<TomyWork> in puppet 3.8
Eiam has quit [Ping timeout: 240 seconds]
Snowy has joined #ruby
charliesome has joined #ruby
careta has joined #ruby
<apeiros> no idea about puppet, but ruby has keyword args, yes.
<apeiros> `def foo(keyword_arg: "default", required_kwarg:)`
<TomyWork> well i want to implement a puppet function in ruby
joes has quit [Read error: Connection reset by peer]
_joes_ has quit [Read error: Connection reset by peer]
_joes__ is now known as _joes_
<apeiros> I suggest you ask in the puppet channel then
johnDoe111 has joined #ruby
<TomyWork> oops, i misclicked :D
Ferdroid has quit [Ping timeout: 246 seconds]
SCHAAP137 has quit [Quit: Leaving]
webguynow has quit [Ping timeout: 250 seconds]
Guest65040 has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
SCHAAP137 has joined #ruby
charliesome has quit [Ping timeout: 258 seconds]
JeroenDL has joined #ruby
Ferdroid has joined #ruby
Ariadeno has joined #ruby
Ariadeno is now known as Guest46272
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
krsh has joined #ruby
charliesome has joined #ruby
JeroenDL has quit [Client Quit]
william3 has joined #ruby
flying has joined #ruby
psychicist__ has joined #ruby
webguynow has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
aganov has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 258 seconds]
jackjackdripper has quit [Quit: Leaving.]
pawnbox has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
damoreno has joined #ruby
<damoreno> hi
<damoreno> how can I get network interfaces in ruby 2.0? Socket.getifaddrs is not available
kassav has joined #ruby
<TomyWork> apeiros question of curiosity, can i pass a hash/dict and have ruby fill in the arguments from it?
<TomyWork> kinda like foo(**kwargs) in python
haraoka has quit [Ping timeout: 245 seconds]
<toretore> TomyWork: try it
<TomyWork> yeah, i did, it doesnt work
<toretore> what did you try?
<TomyWork> foo(**{a: 1, b: 2})
XV8 has quit [Quit: Textual IRC Client: www.textualapp.com]
<TomyWork> def foo(a,b,c=4) puts a; puts b; puts c; end; foo(**{a: 1, b: 2})
<toretore> it's : not =
<toretore> >> def foo(a:, b:);[a,b];end; foo(**{a: 1, b: 2})
<ruby[bot]> toretore: # => [1, 2] (https://eval.in/688309)
<toretore> i mean : not nothing
pawnbox has joined #ruby
<toretore> kwargs are separate
charliesome has joined #ruby
<TomyWork> oh, i'm on ruby 1.9.3 here, damn
<TomyWork> i dont have keyword args
<matthewd> That's a very different function signature, though. The short answer is "no (but actually yes)".
ur5us has joined #ruby
tulak has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
william3 has quit [Remote host closed the connection]
<TomyWork> i'm afraid i cant rely on anything beyond ruby 1.8.7 on the target machine either :/
<TomyWork> it's old crummy sles11
<matthewd> TomyWork: So, for positional parameters, you can splat an array, but not a hash -- unlike python, positional parameters' names are a hidden detail, and unable to influence calling conventions
<toretore> 1.8.7 ...
tuxaddicted has quit [Ping timeout: 248 seconds]
User458764 has joined #ruby
symm- has joined #ruby
<TomyWork> matthewd understood
<apeiros> yeah, 1.8 = no kwargs. `foo(*{a: 1, b: 2}.values_at(:a, :b))` is the best you get for `def foo(a, b)`
YaknotiS has quit [Quit: Leaving]
bodgix has joined #ruby
workmad3 has joined #ruby
xall has quit [Ping timeout: 256 seconds]
<TomyWork> ah, good plan
charliesome has quit [Ping timeout: 258 seconds]
<apeiros> of course you can metaprogramm your way around, but it won't be nice. something like: `def foo(a, b); …; end; kwargs :foo, :a, :b` and then `kw_foo({a: 1, b: 2})`
johnmccabe has joined #ruby
<apeiros> where kw_foo is nothing but the above: `def kw_foo(kwargs); foo(*kwargs.values_at(:a, :b); end`
tulak has quit [Ping timeout: 248 seconds]
<TomyWork> i recently found out that there's %I{a b} to define an array of symbols. should i use it or is it bad form?
CausaMortis has joined #ruby
<matthewd> Not on 1.8 there's not
<TomyWork> oh, crap
Rodya_ has joined #ruby
<toretore> 1.8 is like 15 years ago at this point
<matthewd> You're living 10 years in the past
<rclsilver> hello, i'm trying to make a custom provider for puppet, and i've a ruby error, any idea about that: https://gist.github.com/anonymous/5ede5b5de6021e976bfd1d730c52f05f ? thanks !
<TomyWork> no, sles11 is
<toretore> ok, 8 years, almost the same
<apeiros> yeah, ruby ain't chrome. 1.8 vs. 2.3 is like chrome 180 vs. chrome 230 :)
maattdd has quit [Ping timeout: 245 seconds]
<apeiros> today is puppet day?
<TomyWork> they're that high already, with chrome, eh?
<matthewd> If you have to live in SLES11, then.. :)
<apeiros> no. they're moving that fast. they're around 50 iirc?
<apeiros> lost track
<adaedra> 54 i think
<TomyWork> yeah i was joking :)
<apeiros> rclsilver: probably better asked in the puppet channel
<TomyWork> rclsilver i think you threw a nil-wrench into puppet's cogs somewhere
Couch has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Ferdroid has quit [Ping timeout: 244 seconds]
<rclsilver> apeiros: already tried but nobody has answered to that :p
helpa has quit [Remote host closed the connection]
<TomyWork> try again now
<TomyWork> it's active right now
Tempesta_ has joined #ruby
helpa-bot has joined #ruby
<rclsilver> tried there is 5 mins ago
andrzeju_ has joined #ruby
Azure has joined #ruby
<TomyWork> actually you tried 22 minutes ago
<adaedra> so old already
<rclsilver> lol
Ferdroid has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
epochwolf has quit [Ping timeout: 258 seconds]
yardenbar has quit [Ping timeout: 244 seconds]
eggshke_ has joined #ruby
<rclsilver> done, lol
jcao219 has quit [Ping timeout: 246 seconds]
<rclsilver> i'll be kick xD
harai_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brixen has quit [Ping timeout: 258 seconds]
rideh has quit [Ping timeout: 258 seconds]
amitchellbullard has quit [Ping timeout: 258 seconds]
vircung has quit [Ping timeout: 258 seconds]
Batholith has quit [Ping timeout: 258 seconds]
ponga has quit [Ping timeout: 258 seconds]
d0nn1e has quit [Ping timeout: 258 seconds]
Papierkorb has quit [Ping timeout: 258 seconds]
teotwaki has quit [Ping timeout: 258 seconds]
Guest15043 has quit [Ping timeout: 258 seconds]
webnanners has quit [Ping timeout: 258 seconds]
zacts has quit [Ping timeout: 258 seconds]
valkyr2e has quit [Ping timeout: 258 seconds]
daveyboi[m] has quit [Ping timeout: 258 seconds]
philidor[m] has quit [Ping timeout: 258 seconds]
davix[matrix] has quit [Ping timeout: 258 seconds]
devster31 has quit [Ping timeout: 258 seconds]
alphor has quit [Ping timeout: 258 seconds]
Muz has quit [Ping timeout: 258 seconds]
D9 has quit [Ping timeout: 258 seconds]
jesk has quit [Ping timeout: 258 seconds]
jonadab has quit [Ping timeout: 258 seconds]
rob_ has quit [Ping timeout: 258 seconds]
tystr has quit [Ping timeout: 258 seconds]
eggshke has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 258 seconds]
Tempesta has quit [Ping timeout: 258 seconds]
Fernando-Basso has quit [Ping timeout: 258 seconds]
MrBusiness2 has quit [Ping timeout: 258 seconds]
edwardly has quit [Ping timeout: 258 seconds]
Cymew has quit [Ping timeout: 258 seconds]
ShoaibJahejo has quit [Ping timeout: 258 seconds]
TTilus has quit [Ping timeout: 258 seconds]
gmci has quit [Ping timeout: 258 seconds]
the-eat-scout has quit [Ping timeout: 258 seconds]
Talltree_ has quit [Ping timeout: 258 seconds]
Rabbit_ has quit [Ping timeout: 258 seconds]
silverdust has quit [Ping timeout: 258 seconds]
chrisarcand has quit [Ping timeout: 258 seconds]
levifig has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 258 seconds]
ironcamel has quit [Ping timeout: 258 seconds]
irick has quit [Ping timeout: 258 seconds]
tomchapin has quit [Read error: Connection reset by peer]
libastral has quit [Ping timeout: 258 seconds]
agit0 has quit [Ping timeout: 258 seconds]
A124 has quit [Ping timeout: 258 seconds]
jaiks has quit [Ping timeout: 258 seconds]
yeticry has quit [Ping timeout: 258 seconds]
andrzejku has quit [Ping timeout: 258 seconds]
kyle__ has quit [Ping timeout: 258 seconds]
flughafen has quit [Ping timeout: 258 seconds]
silky__ has quit [Ping timeout: 258 seconds]
lupine has quit [Ping timeout: 258 seconds]
mroth has quit [Ping timeout: 258 seconds]
pleiosaur has quit [Ping timeout: 258 seconds]
symm-_ has joined #ruby
foooobear has quit [Quit: (null)]
hahuang65 has quit [Ping timeout: 258 seconds]
harai has quit [Ping timeout: 258 seconds]
SirCmpwn has quit [Ping timeout: 258 seconds]
abc2 has quit [Ping timeout: 258 seconds]
fatbob has quit [Ping timeout: 258 seconds]
eam has quit [Ping timeout: 258 seconds]
Todd has quit [Ping timeout: 258 seconds]
Talltree has joined #ruby
levifig has joined #ruby
vircung has joined #ruby
jonadab has joined #ruby
dnicole has joined #ruby
Muz has joined #ruby
helpa-bot has quit [Remote host closed the connection]
webnanners has joined #ruby
silverdust has joined #ruby
helpa has joined #ruby
TTilus has joined #ruby
chrisarcand has joined #ruby
ironcamel has joined #ruby
Ikzi has joined #ruby
silverdust is now known as Guest43568
Rabbit_ has joined #ruby
lupine has joined #ruby
pleiosaur has joined #ruby
amitchellbullard has joined #ruby
yeticry has joined #ruby
tomphp_ has joined #ruby
_Suntzu has joined #ruby
fatbob has joined #ruby
jmcc has quit [Ping timeout: 250 seconds]
A124 has joined #ruby
tulak has joined #ruby
boxrick1 has quit [Ping timeout: 252 seconds]
maxmanders_ has joined #ruby
ghostlight has quit [Ping timeout: 256 seconds]
mroth has joined #ruby
alphor has joined #ruby
crankhar1er has joined #ruby
boshhead_ has joined #ruby
Yonk_ has joined #ruby
tubbo` has joined #ruby
gmci has joined #ruby
jmcc has joined #ruby
the-eat-scout has joined #ruby
krsh has quit [Quit: krsh]
Ferdroid has quit [Ping timeout: 260 seconds]
Papierkorb has joined #ruby
rideh has joined #ruby
d^sh has joined #ruby
D9 has joined #ruby
d0nn1e has joined #ruby
jaguarmagenta has joined #ruby
flujan has joined #ruby
tomchapin has joined #ruby
tystr has joined #ruby
teotwaki has joined #ruby
apeiros has joined #ruby
nadir_ has joined #ruby
devster31 has joined #ruby
boxrick1 has joined #ruby
<TomyWork> yeah now you're overdoing it
C0deMaver1ck has joined #ruby
ponga has joined #ruby
electrostat has quit [Quit: uwotm8]
Batholith has joined #ruby
APK has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
C0deMaver1ck is now known as Guest98979
electrostat has joined #ruby
roger_rabbit has quit [Ping timeout: 258 seconds]
Ikri has quit [Ping timeout: 258 seconds]
tabakhase has quit [Ping timeout: 258 seconds]
tomphp has quit [Ping timeout: 258 seconds]
bascht has quit [Ping timeout: 258 seconds]
AKPWD has quit [Ping timeout: 258 seconds]
StoBrendo has quit [Ping timeout: 258 seconds]
zeroDivisible has quit [Ping timeout: 258 seconds]
boshhead has quit [Ping timeout: 258 seconds]
sorah___ has quit [Ping timeout: 258 seconds]
papercod1 has quit [Ping timeout: 258 seconds]
nadir has quit [Ping timeout: 258 seconds]
colegatron_origi has quit [Ping timeout: 258 seconds]
Yonk has quit [Ping timeout: 258 seconds]
maxmanders has quit [Ping timeout: 258 seconds]
nchambers has quit [Ping timeout: 258 seconds]
dnicole_ has quit [Ping timeout: 258 seconds]
epochwolf has joined #ruby
tubbo has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 258 seconds]
erlend has quit [Ping timeout: 258 seconds]
Suntzu has quit [Ping timeout: 258 seconds]
paramourne has quit [Ping timeout: 258 seconds]
tabakhase__ has joined #ruby
tubbo` is now known as tubbo
_Suntzu is now known as Suntzu
nchambers has joined #ruby
SirCmpwn has joined #ruby
eam has joined #ruby
tulak has quit [Ping timeout: 246 seconds]
valkyr2e has joined #ruby
nadir_ is now known as nadir
libastral has joined #ruby
brixen has joined #ruby
JeroenDL has joined #ruby
<raz> anyone know a gem to serialize a hash to JSON according to a schema? like, the hash is deeply nested and i want only certain keys included. e.g. i want 'foo.bar.batz' to be included but not 'foo.bar.boo'
* raz has been looking to all kinds of 'serializer' gems.. but.. it's a forest
erlend has joined #ruby
papercod1 has joined #ruby
colegatron_origi has joined #ruby
zeroDivisible has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
djellemah has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
jaguarmagenta has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
epochwolf|2 has joined #ruby
bascht has joined #ruby
Ferdroid has joined #ruby
Ferdroid has joined #ruby
Ferdroid has quit [Changing host]
jcao219 has joined #ruby
todd1 has joined #ruby
sorah___ has joined #ruby
jaiks has joined #ruby
abc2 has joined #ruby
epochwolf has quit [Ping timeout: 258 seconds]
irick has joined #ruby
epochwolf|2 is now known as epochwolf
flughafen has joined #ruby
roger_rabbit has joined #ruby
flughafen has quit [*.net *.split]
irick has quit [*.net *.split]
rob_ has joined #ruby
daveyboi[m] has joined #ruby
davix[matrix] has joined #ruby
philidor[m] has joined #ruby
jesk has joined #ruby
silky__ has joined #ruby
kyle__ has joined #ruby
yardenbar has joined #ruby
tulak has joined #ruby
StoBrendo has joined #ruby
<antoniobeyah> raz: for your own classes, you could use json-pure and override the methods for serialization
flujan has quit [Quit: flujan]
<antoniobeyah> i don't know of any gem that lets you take an arbitary object and serialize it based on a parameter, though
electrostat has quit [Quit: uwotm8]
<raz> hmm yea i need the latter (the input is a hash)
<raz> anyway, gonna hack my way around it for now...
electrostat has joined #ruby
flughafen has joined #ruby
irick has joined #ruby
ShoaibJahejo has joined #ruby
flughafen has quit [Changing host]
flughafen has joined #ruby
ShoaibJahejo has joined #ruby
ShoaibJahejo has quit [Changing host]
ShoaibJahejo has quit [Max SendQ exceeded]
charliesome has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
ShoaibJahejo has joined #ruby
atmosx has joined #ruby
tulak has quit [Ping timeout: 248 seconds]
<antoniobeyah> i was thinking about writing a serializer to do it, seems there is a gem that may get you close to what you want: https://github.com/fotinakis/jsonapi-serializers
<antoniobeyah> (i've never used it, just googled for it)
tuxaddicted has joined #ruby
prestorium has joined #ruby
jinie has joined #ruby
zacts has joined #ruby
ghostlight has joined #ruby
tulak has joined #ruby
charliesome has quit [Ping timeout: 258 seconds]
bturker has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
nankyokusei has joined #ruby
paramourne has joined #ruby
flujan has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
xall has joined #ruby
ur5us has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
blaxter has quit [Quit: foo]
bturker has quit [Ping timeout: 256 seconds]
ixti has quit [Ping timeout: 252 seconds]
SpiffTR has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
tulak has quit [Ping timeout: 260 seconds]
jcao219 has quit [Ping timeout: 265 seconds]
MrLow has joined #ruby
<MrLow> hi
tulak has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
william3 has joined #ruby
charliesome has joined #ruby
<careta> hey guys
mikecmpbll has quit [Remote host closed the connection]
<careta> I need to start a process and let the user interact with it
<careta> how can I do that?
<careta> like if he was running it on a console
mikecmpbll has joined #ruby
<chrisseaton> careta: running it via Kernel#system should let you interact with it
MrBusiness2 has joined #ruby
MrLow has quit [Client Quit]
tulak has quit [Remote host closed the connection]
gnufied has joined #ruby
sdwrage_ has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
sdwrage has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
sdwrage_ has quit [Quit: Leaving]
tulak has joined #ruby
tvw has quit [Client Quit]
CausaMortis has quit [Ping timeout: 256 seconds]
Rodya_ has joined #ruby
gnufied has quit [Ping timeout: 245 seconds]
symm-_ has quit [Quit: Leaving...]
jaruga___ has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
jaruga has quit [Ping timeout: 246 seconds]
tomchapin has joined #ruby
platzhirsch has joined #ruby
xberg has quit [Read error: Connection reset by peer]
xberg has joined #ruby
<matthewd> careta: You probably want popen3
jcao219 has joined #ruby
gnufied has joined #ruby
Spiff_Proc has joined #ruby
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
SpiffTR has quit [Ping timeout: 260 seconds]
bturker has joined #ruby
cajone has quit [Remote host closed the connection]
tuxaddicted has quit [Ping timeout: 260 seconds]
cloaked1 has quit [Ping timeout: 244 seconds]
pandaant has quit [Remote host closed the connection]
raz has quit [Ping timeout: 260 seconds]
gtaylor1 has quit [Ping timeout: 260 seconds]
devyn has quit [Ping timeout: 260 seconds]
tenderlove has quit [Ping timeout: 256 seconds]
gtaylor1 has joined #ruby
tenderlove has joined #ruby
GodFather has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
codfection has quit [Quit: Leaving]
devyn has joined #ruby
raz has joined #ruby
raz has quit [Changing host]
raz has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
bturker has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
psychicist__ has quit [Ping timeout: 245 seconds]
tulak has quit [Remote host closed the connection]
stamina has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
tulak has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
cajone has joined #ruby
Snowy has joined #ruby
careta has quit [Ping timeout: 260 seconds]
maattdd has joined #ruby
xberg_ has joined #ruby
JeroenDL_ has joined #ruby
JeroenDL has quit [Ping timeout: 250 seconds]
JeroenDL_ is now known as JeroenDL
Spiff_Proc has quit [Read error: Connection reset by peer]
Spiff_Proc has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
xberg has quit [Ping timeout: 256 seconds]
boshhead_ is now known as boshhead
xall has quit [Ping timeout: 250 seconds]
cajone has quit [Remote host closed the connection]
tomchapin has joined #ruby
tomphp has joined #ruby
tomphp_ has quit [Read error: Connection reset by peer]
maattdd has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
gnufied has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
al2o3-cr has quit [Ping timeout: 265 seconds]
stamina has quit [Quit: WeeChat 1.6]
gnufied has joined #ruby
al2o3-cr has joined #ruby
jcao219 has quit [Ping timeout: 245 seconds]
Guest57513 has joined #ruby
stamina has joined #ruby
<Guest54181> Hi
aryaching has quit [Ping timeout: 245 seconds]
Guest54181 is now known as c-c
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
<apeiros> hi c-c
<c-c> In a ruby file inside a project subdirectory, there a nicer way to get project root than this: Dir.chdir(File.dirname(__FILE__)); Dir.chdir('..'); -- IOW how do You manage adding project dirs to rubypath?
<apeiros> c-c: I hope you don't do that from within the library
<apeiros> it's the executable's duty to manage the env
<apeiros> how I do it - depends. when developing stuff: ruby/pry/irb -I lib
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tulak has quit [Ping timeout: 265 seconds]
<apeiros> when testing stuff: test_setup.rb with $PATH = File.expand_path(__dir__, '../../lib') (or similar
Spiff_Proc has quit [Read error: Connection reset by peer]
<c-c> Ok, so its common to have the #! ruby executable to manipule project dirs into path.
<apeiros> in an application: I install it as a ruby gem. rubygems already manages $LOAD_PATH
leehambley has joined #ruby
<apeiros> not sure what you mean by "the #! ruby executable"
nowhere_man has joined #ruby
HammyJammy has joined #ruby
<leehambley> it's been a long time since I stretched my Ruby legs, but is it possible to hook/replace/prepend/modify `new` through a module? I've some shared behaviour (enabling Struct.new(with: "kwawrgs") to build helper classes) I'd like to share between three classes, but it relies on patching new to be a factory method?
CausaMortis has joined #ruby
<c-c> apeiros: I mean this type of "executable" approach: https://github.com/ryanb/ruby-warrior/blob/master/bin/rubywarrior
<c-c> leehambley: which 'new'?
<c-c> hehe
william3 has quit [Remote host closed the connection]
<apeiros> c-c: no. that's not ok.
<leehambley> c-c I'd like to be able to do something like `Foo = MyThing.new(with: 'kwargs', and: 'ya know', stuff: true)` - and get back a `Foo` with attr acessors, and sane defaults for the properties - https://gist.github.com/leehambley/cc686418ef0145bb5556a62e267fc511 is a non-moduel implementation
<leehambley> I'm trying to extract this into a reusable module
<apeiros> it should test for the existence of that dir. and then it only acts as a fallback.
<leehambley> thanks cc, I've tried that - I thought it would work too
<leehambley> but I'll keep digging
JammyHammy has quit [Ping timeout: 244 seconds]
<c-c> leehambley: do you have simple example pastie or gist?
<apeiros> oh god, that accepted answer is terrible :(
<leehambley> is waht i'm trying
<c-c> *I agree, its not the best answer
<leehambley> I'm getting "wrong number of args 1 for 0 on new, line 24"
<apeiros> it's not just not the best answer. it's terrible.
<leehambley> basicallt
CausaMortis has quit [Ping timeout: 240 seconds]
noodle has quit [Ping timeout: 248 seconds]
<apeiros> the answer is simply: `module Imodule; def imethod; "overridden"; end; end` + `class Some; extend Imodule; end`
<leehambley> I thought as much too
<apeiros> i.e. "define it as an instance method in Imodule, use extend instead of include". done.
<c-c> also, base.method?
<leehambley> that last thing you wrote is about 10x more helpful than the so post apeiros
<apeiros> leehambley: that said - overriding ::new is usually a bad idea. you should rather override initialize. any reason you go with ::new over #initialize?
xberg_ has quit []
xberg has joined #ruby
<leehambley> apeiros the `new` trick is lifted directly from Struct.new() in the std lib
CausaMortis has joined #ruby
<apeiros> (NB: it's not out of question - it's just often not "the right way")
<leehambley> since initialize would already give you back a *Struct*, overriding new to return an anonymous class with some special properties, and predefined innards is what Rubunius does for Struct.new(:prop1, :prop2)
<apeiros> leehambley: well, Struct.new is a fun thing in that it does not actually return an instance of Struct.
<leehambley> yaeh, indeed, that's what I'm trying to do here too
<apeiros> usually SomeClass.new.is_a?(SomeClass) # => true
<apeiros> Struct is the odd one there
<leehambley> absolutely, so I know I'm out of the bounds of "safety" relatively speaking
<apeiros> I think you should not. don't call it .new if it doesn't instantiate.
<apeiros> IMO with struct too, they should have called it .create or somesuch.
<leehambley> and I could just do a module method ThingFactory(**kwargs) which returns the anonymous synthetic class
<leehambley> I'd rend to agree, but it does *feel* really Rubyish
<apeiros> but it does break a very basic and common expectation
<leehambley> it does, but I've seen a lot of novices just accept it at face value
<leehambley> and it's only as one gets to be a better developer, that one starts to question why Struct is special
<apeiros> yeah, the same ones which will get really confused when they start to dig a tiny bit deeper than the barest surface :)
<apeiros> well, it's your code. .new is just a class method.
<apeiros> nothing special about it.
<leehambley> :) I thought as much
<c-c> cannot simply subclass?
<apeiros> extend adds a module on the singleton_class level, defining "class" methods.
<leehambley> there's no "extend" version of "prepent" is there?
<leehambley> "prepend*"
<leehambley> in this case, I'm not reopening the superclass really, I'm replacing it
<apeiros> extend is =~ singleton_class.include
<leehambley> so it doesn' tneed to respect the hierarchy, i'm just curious
Rodya_ has joined #ruby
<leehambley> got it
<apeiros> I guess you can infer how it'll work with prepend then ;-)
<apeiros> but you don't have to prepend unless your class overrides ::new too
<apeiros> (which in turn would raise new questions :-p)
<leehambley> right :D
<leehambley> thanks for talking me through that
<apeiros> yw
<leehambley> I appreciate it a lot
tulak has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
careta has joined #ruby
tulak has quit [Client Quit]
blackbombay has joined #ruby
william3 has joined #ruby
aryaching has joined #ruby
noodle has joined #ruby
xall has joined #ruby
salut has quit [Quit: salut]
salut has joined #ruby
last_staff has quit [Quit: last_staff]
careta has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
<c-c> Ah, theres require_relative
Sammichmaker has quit [Ping timeout: 250 seconds]
brendan- has joined #ruby
<apeiros> :-S
jaguarmagenta has joined #ruby
<apeiros> require_relative too puts the burden of knowing where a file is on the lib. not really its duty.
<apeiros> but not gonna talk you out of it. tired of that argument :)
<c-c> oh, too bad
<c-c> I know this isn't the most exciting ruby thing
blackbombay has quit [Ping timeout: 260 seconds]
<c-c> but I want to revisit it to see if someone has invented something other than the usual __FILE__ chdir(..) $:.unshift drill
dionysus69 has quit [Remote host closed the connection]
blackbombay has joined #ruby
dionysus69 has joined #ruby
sung has left #ruby [#ruby]
Spiff_Proc has joined #ruby
jaguarmagenta has quit [Ping timeout: 268 seconds]
ace_33 has joined #ruby
<matthewd> c-c: Well, people invented rubygems and bundler
Spiff_Proc has quit [Ping timeout: 268 seconds]
montanonic has quit [Ping timeout: 240 seconds]
<c-c> Indeed, this should probably use bundler
Spiff_Proc has joined #ruby
flujan has quit [Quit: flujan]
last_staff1 has joined #ruby
tvw has joined #ruby
last_staff has quit [Ping timeout: 260 seconds]
last_staff1 is now known as last_staff
tuxaddicted has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kobain has joined #ruby
terens has joined #ruby
nankyokusei has joined #ruby
Rodya_ has joined #ruby
psychicist__ has quit [Ping timeout: 268 seconds]
UserJosh has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
sparch has joined #ruby
GinoManWorks has joined #ruby
ncthom91 has joined #ruby
psychicist__ has joined #ruby
c355e3b has joined #ruby
JoshS has joined #ruby
jshjsh has quit [Ping timeout: 260 seconds]
nelsonsar has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
nelsonsa_ has joined #ruby
cajone has joined #ruby
skweek has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
UserJosh has quit [Ping timeout: 260 seconds]
william3 has quit [Remote host closed the connection]
jcao219 has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
nelsonsar has quit [Ping timeout: 260 seconds]
chris2 has quit [Ping timeout: 250 seconds]
cibs has joined #ruby
TvL2386 has quit [Ping timeout: 260 seconds]
cajone has quit [Remote host closed the connection]
cajone has joined #ruby
maattdd has joined #ruby
cajone has quit [Remote host closed the connection]
chris2 has joined #ruby
william3 has joined #ruby
johnmilton has joined #ruby
sdothum has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
TvL2386 has joined #ruby
jwheare has quit []
jwheare has joined #ruby
jwheare has quit [Client Quit]
_sfiguser has quit [Ping timeout: 240 seconds]
ace_33 has quit [Ping timeout: 244 seconds]
GBrawl has joined #ruby
jwheare has joined #ruby
deadnull has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
beanHolez has quit [Remote host closed the connection]
beanHolez has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beanHolez has quit [Ping timeout: 260 seconds]
cajone has joined #ruby
cajone has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 246 seconds]
leehambley has quit [Quit: Textual IRC Client: www.textualapp.com]
synthroid has joined #ruby
mikecmpb_ has joined #ruby
_sfiguser has joined #ruby
User458764 has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
nelsonsa_ has quit [Remote host closed the connection]
nelsonsar has joined #ruby
llaine has joined #ruby
glcx has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
sparch has quit [Ping timeout: 260 seconds]
aegis3121 has joined #ruby
nelsonsar has quit [Ping timeout: 240 seconds]
mikecmpb_ has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby
ace_33 has joined #ruby
pawnbox has quit [Remote host closed the connection]
Spiff_Proc has quit [Read error: Connection reset by peer]
Spiff_Proc has joined #ruby
aryaching has joined #ruby
byte512 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nelsonsar has joined #ruby
xall has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
Spiff_Proc has quit [Client Quit]
william3 has quit [Remote host closed the connection]
jcao219 has quit [Ping timeout: 258 seconds]
chwbacca has joined #ruby
cajone has joined #ruby
cajone has quit [Remote host closed the connection]
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
BillyTheKid has joined #ruby
skweek has quit [Ping timeout: 244 seconds]
xall has joined #ruby
Satyajit has joined #ruby
cajone has joined #ruby
BillyTheKid has quit [Remote host closed the connection]
jgnagy has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alxgsv has joined #ruby
omphe has joined #ruby
cajone has quit [Remote host closed the connection]
glcx has quit [Read error: Connection reset by peer]
_sfiguser has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
jgnagy has quit [Ping timeout: 258 seconds]
bounb has joined #ruby
nedbat has joined #ruby
<bounb> hi. i'm getting "undefined method name" on this line: https://github.com/redmine/redmine/blob/master/app/models/project.rb#L578
mim1k|wo1k has joined #ruby
<bounb> however, if i change project.name to self.name, it works
<bounb> but if you see just above the linked line, project is defined to be self
andikr has quit [Remote host closed the connection]
<bounb> what's going on?
<bounb> *undefined method 'name'
<nedbat> I'm basically a ruby n00b, though very good at Python. I have a handful of Vagrantfiles in a repo, and am copying and pasting code between them way more than I would like. Can anyone point me to how to keep common code in one central place, and use it from a few Vagrantfiles?
<matthewd> bounb: No, project is a parameter
kassav has quit [Read error: Connection reset by peer]
kassav has joined #ruby
<matthewd> ?vagrant nedbat
<ruby[bot]> nedbat: please join #vagrant for help with it.
<workmad3> bounb: can you gist the entire error message please?
mim1k|work has quit [Ping timeout: 260 seconds]
ace_33 has quit [Remote host closed the connection]
<nedbat> matthewd: thanks, but I think i'm looking for pure Ruby techniques, since Vagrantfiles are ruby programs.
<workmad3> nedbat: #vagrant will be able to help you with any techniques they've got as conventions for this use though
the_drow has quit [Quit: This computer has gone to sleep]
xberg_ has joined #ruby
<bounb> matthewd: i see. thanks
zel has joined #ruby
<bounb> actually hm
johnny56 has joined #ruby
zel is now known as Guest79799
johnny56_ has quit [Ping timeout: 246 seconds]
MrLow has joined #ruby
blackbom1 has joined #ruby
<bounb> no, i got it
jhack has joined #ruby
xberg has quit [Ping timeout: 246 seconds]
kassav has quit [Quit: kassav]
kassav_ has joined #ruby
kassav_ is now known as kassav
blackbombay has quit [Ping timeout: 244 seconds]
shinnya has joined #ruby
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
last_staff1 has joined #ruby
blackbombay has joined #ruby
_sfiguser has joined #ruby
_sfiguser has quit [Max SendQ exceeded]
_sfiguser has joined #ruby
_sfiguser has quit [Max SendQ exceeded]
deadnull has quit [Quit: Bye]
_sfiguser has joined #ruby
_sfiguser has quit [Max SendQ exceeded]
_sfiguser has joined #ruby
_sfiguser has quit [Max SendQ exceeded]
eggshke_ has quit []
_sfiguser has joined #ruby
_sfiguser has quit [Max SendQ exceeded]
blackbom1 has quit [Ping timeout: 244 seconds]
krsh has joined #ruby
_sfiguser has joined #ruby
skweek has joined #ruby
blackbom1 has joined #ruby
soc42 has joined #ruby
last_staff has quit [Ping timeout: 268 seconds]
xberg_ has quit [Remote host closed the connection]
MrLow has quit [Quit: MrLow]
sepp2k has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blackbombay has quit [Ping timeout: 240 seconds]
Salih has joined #ruby
last_staff1 has quit [Ping timeout: 265 seconds]
xberg has joined #ruby
eljimmy has joined #ruby
last_staff has joined #ruby
cajone has joined #ruby
millerti has joined #ruby
savage is now known as ButtMuffler
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
tvsutton has quit [Changing host]
tvsutton has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
nelsonsa_ has joined #ruby
cajone has quit [Read error: Connection reset by peer]
rfoust has joined #ruby
cajone has joined #ruby
kassav has quit [Read error: Connection reset by peer]
kassav_ has joined #ruby
kassav_ is now known as kassav
iMadper is now known as Madper|AFK
cajone has quit [Read error: Connection reset by peer]
nelsonsar has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
jaguarmagenta has joined #ruby
codfection has joined #ruby
cajone has joined #ruby
User458764 has joined #ruby
rodfersou is now known as rodfersou|lunch
cajone has quit [Read error: Connection reset by peer]
blackwind_123 has quit [Ping timeout: 250 seconds]
aegis3121 has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 258 seconds]
blackwind_123 has joined #ruby
soc42 has quit [Remote host closed the connection]
adavia has joined #ruby
danst has quit [Ping timeout: 250 seconds]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
jaguarmagenta has joined #ruby
danst has joined #ruby
<GeorgesLeYeti> Is it possible to find the value of a key (with the key) in a hash or any "sub" hash
tyang has joined #ruby
ramortegui has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
cdg has quit []
<apeiros> GeorgesLeYeti: yes
aegis3121 has joined #ruby
<GeorgesLeYeti> For example: myhash = {:a => 'hello', :b => "World', :c => {:d => "!!"}, :e => {:d => "!!"}}
ace_33 has joined #ruby
CloCkWeRX has joined #ruby
<matthewd> GeorgesLeYeti: Apart from #dig, there aren't really any methods to give special treatment to nested hashes, so you'll need to iterate it yourself
cdg has joined #ruby
<GeorgesLeYeti> Let say I want to value of d while d can be anywhere in the hash
<GeorgesLeYeti> matthewd, Ok
cajone has joined #ruby
jmignault has joined #ruby
saslam has joined #ruby
asdfg has joined #ruby
ace_33 has quit [Remote host closed the connection]
krsh has quit [Quit: krsh]
dionysus69 has quit [Ping timeout: 248 seconds]
BreakThings has joined #ruby
cdg has quit []
marr has joined #ruby
miqlas-H has joined #ruby
cdg has joined #ruby
fenre has quit [Remote host closed the connection]
arooni has quit [Quit: ZNC - http://znc.in]
saslam has quit [Ping timeout: 250 seconds]
claudiuinberlin has quit []
nankyokusei has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
harai_ has quit [Ping timeout: 246 seconds]
vasilakisfil_ has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
damoreno has quit [Quit: leaving]
jaguarmagenta has quit [Ping timeout: 260 seconds]
domgetter has joined #ruby
vasilakisfil has quit [Ping timeout: 250 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
CausaMortis-Work has joined #ruby
saneax is now known as saneax-_-|AFK
firstdayonthejob has quit [Quit: WeeChat 1.6]
careta has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 252 seconds]
cajone has quit [Quit: Leaving.]
arooni has joined #ruby
CausaMortis has quit [Ping timeout: 250 seconds]
johnmccabe_ has joined #ruby
dionysus69 has joined #ruby
skweek has joined #ruby
tvw has joined #ruby
johnmccabe has quit [Ping timeout: 250 seconds]
asdfg has quit [Quit: Page closed]
last_staff has quit [Quit: last_staff]
jhack has quit [Quit: jhack]
cajone has joined #ruby
bturker_ has joined #ruby
mapass has left #ruby [#ruby]
axl_ has joined #ruby
govg has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
jcao219 has joined #ruby
Cymew has joined #ruby
xall has joined #ruby
patarr has joined #ruby
aegis3121 has quit [Read error: Connection reset by peer]
OTORelic has joined #ruby
aegis3121 has joined #ruby
antoniobeyah has joined #ruby
<blackbom1> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<blackbom1> ?sinatra
<ruby[bot]> blackbom1: I don't know anything about sinatra
<blackbom1> jeeesh
agent_white has joined #ruby
<maattdd> GeorgesLeYeti: there is also #flatten(level)
careta has quit [Ping timeout: 246 seconds]
careta has joined #ruby
APK is now known as AKPWD
antoniobeyah has quit [Quit: antoniobeyah]
jaruga___ has quit [Quit: jaruga___]
cajone has quit [Read error: Connection reset by peer]
Madplatypus has quit [Quit: Connection closed for inactivity]
buglessdr has joined #ruby
cajone has joined #ruby
blackbombay has joined #ruby
<agent_white> Mornin' folks
tvw has quit [Ping timeout: 246 seconds]
<blackbombay> morning agent_white
CloCkWeRX has quit [Quit: Leaving.]
blackbom1 has quit [Ping timeout: 244 seconds]
jhack has joined #ruby
<patarr> Why does Net::HTTP require URI in both the request object and the HTTP.start() method?
xberg has quit [Ping timeout: 244 seconds]
mim1k|wo1k has quit [Quit: Reconnecting]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mim1k|work has joined #ruby
rippa has joined #ruby
xoo has joined #ruby
jbeeze has joined #ruby
nikivi has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
harai_ has joined #ruby
xoo has left #ruby [#ruby]
careta has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
dysoco has joined #ruby
pawnbox has joined #ruby
andikr has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
psychicist__ has quit [Ping timeout: 252 seconds]
JeroenDL has quit [Quit: JeroenDL]
yeticry has joined #ruby
william3 has quit [Remote host closed the connection]
lenwood has joined #ruby
GBrawl has quit [Quit: (null)]
cajone has quit [Remote host closed the connection]
antoniobeyah has joined #ruby
tau has joined #ruby
william3 has joined #ruby
xall has quit [Ping timeout: 245 seconds]
Derperperd has quit [Quit: Derperperd]
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
cajone has joined #ruby
borodin has joined #ruby
<c-c> patarr: do you have example gist?
<c-c> or pastie
shinnya has quit [Ping timeout: 260 seconds]
sparch has joined #ruby
manjaro-kde5 has joined #ruby
CausaMortis-Work has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
william3 has quit [Remote host closed the connection]
User458764 has joined #ruby
nelsonsa_ has quit [Remote host closed the connection]
nelsonsar has joined #ruby
lenwood has quit [Ping timeout: 268 seconds]
GeorgesLeYeti has quit [Quit: Leaving]
jgnagy has joined #ruby
manjaro-kde5 has quit [Remote host closed the connection]
manjaro-kde5 has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
nelsonsar has quit [Ping timeout: 250 seconds]
jgnagy has quit [Ping timeout: 245 seconds]
PaulCapestany has quit [Quit: .]
rippa has quit [Read error: Connection reset by peer]
nikivi has quit [Quit: irc]
mtkd has joined #ruby
antoniobeyah has joined #ruby
rodfersou|lunch is now known as rodfersou
troulouliou_div2 has joined #ruby
PaulCapestany has joined #ruby
<t-richards> patarr: That's interesting, hadn't noticed that before. Does Net::HTTP.get_response fit your use case? It doesn't require any URI duplication, if I recall correctly.
william3 has joined #ruby
manjaro-kde5 has quit [Ping timeout: 250 seconds]
tvw has joined #ruby
manjaro-kde5 has joined #ruby
<blackbombay> neither does start, it takes a host + port as strings.
<blackbombay> port as a fixnum*
<t-richards> I can think of one possible reason why the duplication exists: separating the start(host, port) method from the actual request URI might allow you to, for example, connect to foo.com port 8080, and issue a request to that server for http://example.com/something.txt
jcao219 has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has joined #ruby
william3 has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
manjaro-kde5 has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
<t-richards> If your server hostname/port and request hostname/port ever differ for whatever reason, Net::HTTP has got you covered.
nelsonsar has joined #ruby
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cajone has quit [Remote host closed the connection]
wugy has quit [Read error: Connection reset by peer]
cajone has joined #ruby
lenwood has quit [Client Quit]
Devalo has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
lenwood has joined #ruby
cajone has quit [Remote host closed the connection]
conta has quit [Ping timeout: 260 seconds]
terens has quit [Ping timeout: 265 seconds]
aegis3121 has quit [Ping timeout: 250 seconds]
preyalone has joined #ruby
Devalo has joined #ruby
andikr has quit [Ping timeout: 268 seconds]
TvL2386 has quit [Quit: Ex-Chat]
aegis3121 has joined #ruby
cajone has joined #ruby
cajone has quit [Remote host closed the connection]
william3 has joined #ruby
mhib has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
kassav has quit [Quit: kassav]
mhib has quit [Client Quit]
rippa has joined #ruby
<patarr> t-richards: aah makes sense
tuxaddicted has quit [Ping timeout: 245 seconds]
<patarr> I feel like I'm going in circles. I just gave faraday a try because it seemed simpler initially, but now I can't make sense of the docs. I'm reading https://github.com/lostisland/faraday#usage and I have no clue what's going on in that initializer block
Guest57513 has quit [Remote host closed the connection]
<patarr> What is faraday.response :logger ?
<aegis3121> Sets up a response middleware to log the response
cajone has joined #ruby
alan_w has quit [Ping timeout: 250 seconds]
cajone has quit [Remote host closed the connection]
<patarr> Is that calling a .response method with an argument of :logger? I don't have a :logger variable
<patarr> I tried passing it Rails.logger and it errored out.
<aegis3121> :logger is a symbol
<t-richards> :logger is not a variable, it's a symbol
william3 has quit [Remote host closed the connection]
<t-richards> You should provide exactly ':logger
<t-richards> ...as-is. (accidental quote there)
<patarr> t-richards: but I don't want it to log to stdout. I want to maintain unified logging across my app
cajone has joined #ruby
<TomyWork> is there a better way to express something like "blah blah blah#{" and classifier='#{classifier}'" unless classifier.empty?} blah blah blah"?
dionysus69 has quit [Ping timeout: 250 seconds]
lenwood has quit [Remote host closed the connection]
<patarr> I'm trying to analyze the syntax of what is going on there. The faraday object should be a ::Connection object. That has no response method.
<blackbombay> TomyWork: real code please.
<patarr> I'm scouring the docs to try finding the .response method but I can not
<TomyWork> blackbombay that's not very helpful, really, but ok
<TomyWork> file_version = REXML::XPath.first(doc, "/metadata/versioning/snapshotVersions/snapshotVersion[extension='#{packaging}'#{" and classifier='#{classifier}'" unless classifier.empty?}]/value/text()")
<blackbombay> you could build the string before you pass it to that method, and without using string interpolation.
<TomyWork> that'd separate the two parts of the xpath query
lenwood has joined #ruby
<blackbombay> yeah, but it'd be easier to read.
andikr has joined #ruby
<blackbombay> there's String#%, might be useful too.
<t-richards> patarr: The initializer block where you specify .response is a RackBuilder object: https://github.com/lostisland/faraday/blob/master/lib/faraday/rack_builder.rb#L95-L97
william3 has joined #ruby
aganov has quit [Remote host closed the connection]
<TomyWork> blackbombay i'm looking for a better way though, not worse :)
<t-richards> Here's an example of a logger middleware that looks like it supports Rails.logger by default: https://github.com/envylabs/faraday-detailed_logger
<TomyWork> one where there still i dont frankenstein a string from parts i precompose
z4phod has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
<patarr> t-richards: I see the example of Faraday::Connection.new. But I am working with the example Faraday.new. Can you tell me how you ascertained this? The docs say Faraday.new returns a Connection object
sparch has quit [Remote host closed the connection]
aufi has quit [Remote host closed the connection]
<aegis3121> Faraday.new calls Faraday::Connection.new
llaine has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Quit: Leaving]
<baweaver> TomyWork: one-lining everything is still Frankenstein
cajone has quit [Quit: Leaving.]
<baweaver> Make a string builder
<baweaver> because if you need to go back to this at any point to add more you're going to have a time of maintaining it.
cajone has joined #ruby
<patarr> aegis3121: ah.... wow. Thanks
BlueDragons has joined #ruby
<TomyWork> baweaver not like maven's metadata format is going to change any time soon :)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<baweaver> It might not, but if you need to add more parts to it putting conditional parts in variables will start becoming really handy
alex8022 has joined #ruby
<baweaver> Use a hash for the params
alex8022 is now known as Guest64127
lenwood has quit [Ping timeout: 250 seconds]
Guest64127 is now known as john333333333333
cajone has quit [Remote host closed the connection]
<baweaver> properties = {extension: packaging, classifier: classifier}.reject { |k,v| v.empty? }
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> properties.map { |k, v| "#{k}='#{v}'" }.join(' and ')
<baweaver> that way if you need any others you can just add it to that hash
llaine has joined #ruby
<baweaver> then just interpolate the result of it directly into that string and done.
<aegis3121> patarr: I believe you can do `faraday.reponse :logger, Rails.logger
cajone has joined #ruby
<TomyWork> i just noticed that i need to detect the absence of the classifier element as well
Dimik has joined #ruby
<baweaver> then that solution will work there as well.
cajone has quit [Remote host closed the connection]
<baweaver> y'might add a v.nil? guard in there as well though if you think that might come through.
omphe has joined #ruby
cajone has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
<TomyWork> i String() all of those values :)
<TomyWork> and i'm going with a separate if
cajone has quit [Remote host closed the connection]
<TomyWork> fileVersion = REXML::XPath.first(doc, "/metadata/versioning/snapshotVersions/snapshotVersion[extension='#{packaging}' and #{classifierCondition}]/value/text()")
<TomyWork> + an if to set the classifierCondition appropriately
jackjackdripper has joined #ruby
<baweaver> your call then
BlueDragons has quit [Quit: Leaving]
gtaylor1 has quit [Quit: WeeChat 1.5]
xall has joined #ruby
JeroenDL has joined #ruby
careta has joined #ruby
antoniobeyah has joined #ruby
john333333333333 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nankyokusei has joined #ruby
jaguarmagenta has joined #ruby
<patarr> aegis3121: i will give that a shot, thank you!
<patarr> I'm currently trying to figure out how I can just get the string representation of a URI.
davidt has joined #ruby
<aegis3121> ?
<aegis3121> An actual URI object?
<blackbombay> TomyWork: if it's easier to read and modify then i'd say it's better, but your call at the end of a day. i would implement a method that returned the string for a query.
nankyokusei has quit [Ping timeout: 250 seconds]
conta has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
<TomyWork> that'd make it harder to follow. It's not past that point where it's necessary to split things up yet
nowhere_man has quit [Ping timeout: 250 seconds]
<blackbombay> alright
jaguarmagenta has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
william3 has quit [Remote host closed the connection]
User458764 has joined #ruby
careta has quit [Ping timeout: 256 seconds]
jsrn_ has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
<antoniobeyah> >> require 'uri'; URI('https://www.google.com').to_s
<ruby[bot]> antoniobeyah: # => "https://www.google.com" (https://eval.in/688744)
<baweaver> ?
ButtMuffler is now known as bttmfflr
Fernando-Basso has joined #ruby
nfk has joined #ruby
<patarr> lol I literally just found that in my irb
<patarr> And came back here and thought "yup"
amclain has joined #ruby
terens has joined #ruby
xall has quit [Ping timeout: 250 seconds]
tvw has quit []
andikr has quit [Ping timeout: 258 seconds]
<antoniobeyah> patarr: yeah I chuckled a bit the way you described it. you nailed the technical definition of to_s :)
mtkd has quit [Read error: Connection reset by peer]
saslam has joined #ruby
mtkd has joined #ruby
railssmith has quit [Ping timeout: 250 seconds]
skweek has joined #ruby
sparch has joined #ruby
Puffball_ has joined #ruby
xberg has joined #ruby
Puffball has quit [Ping timeout: 268 seconds]
flying has quit []
fenre has joined #ruby
ivanskie has quit [Quit: Going offline, see ya! (www.adiirc.com)]
tomphp_ has joined #ruby
sparch has quit [Quit: Leaving]
conta has quit [Ping timeout: 250 seconds]
tomphp has quit [Ping timeout: 244 seconds]
nelsonsar has quit [Remote host closed the connection]
Couch has quit [Ping timeout: 252 seconds]
nelsonsar has joined #ruby
Eiam has joined #ruby
andikr has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
sparch has joined #ruby
andikr has quit [Remote host closed the connection]
llaine has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli has joined #ruby
djbkd has joined #ruby
fenre has quit [Remote host closed the connection]
rikai has quit [Quit: No Ping reply in 180 seconds.]
nelsonsar has quit [Ping timeout: 260 seconds]
rikai has joined #ruby
Xentil has joined #ruby
Coldblackice has joined #ruby
tomphp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
eljimmy has quit [Quit: This computer has gone to sleep]
augcesar has joined #ruby
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
nelsonsar has joined #ruby
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
nicokavts has joined #ruby
eljimmy has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
synthroid has quit [Remote host closed the connection]
aegis3121 has quit [Ping timeout: 260 seconds]
careta has joined #ruby
jaiks has quit [Ping timeout: 240 seconds]
Snowy has quit [Remote host closed the connection]
Derperperd has joined #ruby
Snowy has joined #ruby
byte512 has quit [Ping timeout: 265 seconds]
ldnunes has quit [Read error: Connection reset by peer]
nelsonsar has quit [Remote host closed the connection]
jgnagy has joined #ruby
Snowy has quit [Ping timeout: 248 seconds]
dysoco has quit [Ping timeout: 250 seconds]
ldnunes has joined #ruby
nelsonsar has joined #ruby
nikivi has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
tomphp has joined #ruby
TomyWork has quit [Remote host closed the connection]
splud has joined #ruby
JeroenDL has quit [Ping timeout: 240 seconds]
jgnagy has quit [Ping timeout: 268 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
tabakhase__ is now known as tabakhase
tabakhase has joined #ruby
tabakhase has quit [Changing host]
whathappens has joined #ruby
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
Humdai has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
chouhoul_ has quit [Ping timeout: 244 seconds]
lacour has joined #ruby
JeroenDL has joined #ruby
ohcibi has quit [Remote host closed the connection]
ohcibi has joined #ruby
ascarter has joined #ruby
terens is now known as Guest1011
<careta> I'm comparing Ruby's blowfish encryption with Python's, and the outputs are different for the same parameters
<careta> has anyone seen this before?
<Zarthus> got an ideone snippet or something?
<havenwood> careta: possible it's a newline difference?
<havenwood> careta: can you gist both?
hays__ has joined #ruby
<Zarthus> I know PHP had a comical error where whirlpool wasn't uppercased despite the spec saying it should be, but that's unlikely to be true in either ruby or python
hays has quit [Ping timeout: 260 seconds]
zacts has quit [Ping timeout: 245 seconds]
<careta> havenwood, sure, one sec
eb0t has quit [Quit: WeeChat 1.4]
JeroenDL has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
JeroenDL has joined #ruby
rontec76 has joined #ruby
jcao219 has joined #ruby
polishdub has joined #ruby
JeroenDL has quit [Client Quit]
benlieb has joined #ruby
Nilium has quit [Read error: Connection reset by peer]
Nilium has joined #ruby
maattdd has quit [Ping timeout: 260 seconds]
jcao219 has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 260 seconds]
rcvalle has joined #ruby
bodgix has quit [Quit: Leaving.]
bturker_ has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maryo has joined #ruby
<maryo> Which IDE for Ruby is recommended for a beginner?
<herwin> rubymine is the only IDE I know about
nikivi has quit [Quit: zzz]
<maryo> herwin, thank you.
zacts has joined #ruby
kirun has joined #ruby
<baweaver> You don't really need an IDE
<baweaver> Most tend to use Sublime Text or Atom
User458764 has joined #ruby
<baweaver> with some more grizzled types on Vim or Emacs
nikivi has joined #ruby
bttmfflr is now known as BUTTMUFFLER
<toretore> hey! that's... an accurate description
william3 has joined #ruby
tvsutton has left #ruby ["Textual IRC Client: www.textualapp.com"]
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
centrx has quit [Remote host closed the connection]
snguyen has joined #ruby
lenwood has joined #ruby
nankyokusei has joined #ruby
claudiuinberlin has joined #ruby
dionysus69 has joined #ruby
snguyen has quit [Client Quit]
jaguarmagenta has joined #ruby
pilne has joined #ruby
xberg has quit [Remote host closed the connection]
centrx has joined #ruby
TomyLobo has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
william3 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jaguarmagenta has quit [Ping timeout: 258 seconds]
_djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
adavia has quit [Ping timeout: 268 seconds]
JeroenDL has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
bturker has joined #ruby
william3 has joined #ruby
Salih has quit [Quit: Leaving]
miqlas-H has joined #ruby
gusrub has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
minimalism has joined #ruby
claudiuinberlin has quit [Ping timeout: 265 seconds]
saneax-_-|AFK is now known as saneax
chouhou__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
nelsonsar has quit [Ping timeout: 260 seconds]
chrisja has joined #ruby
ramfjord has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
_sfiguser has quit [Ping timeout: 258 seconds]
Puffball_ has quit [Ping timeout: 260 seconds]
lenwood has quit [Ping timeout: 250 seconds]
* Yxhuvud grizzled
bocaneri has quit [Read error: Connection reset by peer]
Puffball has joined #ruby
zeroDi has joined #ruby
claudiuinberlin has joined #ruby
lenwood has joined #ruby
rontec76 has quit []
nelsonsar has joined #ruby
FernandoBasso has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
zeroDivi1 has joined #ruby
zeroDivi1 has quit [Read error: Connection reset by peer]
JoshS has quit [Ping timeout: 268 seconds]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
Jackneill has joined #ruby
zeroDi has quit [Ping timeout: 245 seconds]
zeroDivi1 has joined #ruby
mdw has joined #ruby
pragmaticus has quit [Ping timeout: 260 seconds]
platzhirsch has quit [Quit: WeeChat 1.4]
nowhere_man has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
william3 has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
<patarr> is there a way to make keyword arguments automatically instance variables from a initialize()? It just seems like such tedious boilerplate to do @this = that, @foo = bar, etc etc.
synthroid has joined #ruby
saslam has quit [Read error: Connection reset by peer]
<domgetter> patarr you sort of can with a Struct
<domgetter> >> Point = Struct.new(x, y); my_point = Point.new(3, 4)
<ruby[bot]> domgetter: # => undefined local variable or method `x' for main:Object (NameError) ...check link for more (https://eval.in/688804)
<domgetter> >> Point = Struct.new(:x, :y); my_point = Point.new(3, 4)
<ruby[bot]> domgetter: # => #<struct Point x=3, y=4> (https://eval.in/688805)
<bougyman> hrm.
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
<bougyman> I can't remember what the right thing to replace !!proxy_host ^ !!proxy_port was
<bougyman> but I hate seeing that construct.
ur5us has joined #ruby
rclsilver has quit [Ping timeout: 260 seconds]
_djbkd has quit [Remote host closed the connection]
<eam> >> {"foo" => 2, "bar" => 3}.each_pair {|k,v| instance_variable_set "@"+k, v}; @bar
<eam> sigh
eam has quit [Changing host]
eam has joined #ruby
<eam> >> {"foo" => 2, "bar" => 3}.each_pair {|k,v| instance_variable_set "@"+k, v}; @bar
finisherr has joined #ruby
<ruby[bot]> eam: # => 3 (https://eval.in/688807)
railswebdev has joined #ruby
Guest69 has joined #ruby
Roa has quit [Remote host closed the connection]
pragmaticus has joined #ruby
johnmccabe_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_sfiguser has joined #ruby
william3 has joined #ruby
elaptics has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Roa has joined #ruby
brendan- has joined #ruby
Jammyham has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
gusrub has quit [Remote host closed the connection]
cibs has joined #ruby
HammyJammy has quit [Ping timeout: 248 seconds]
gusrub has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
lenwood has joined #ruby
<Guest69> Any suggestions for ways of adding license keys to a rails app?
<Guest69> gems, how-to's, etc..
d0nn1e has quit [Ping timeout: 250 seconds]
<Zarthus> ?Rails
<ruby[bot]> Zarthus: I don't know anything about Rails
<Zarthus> ?rails
<Zarthus> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
d0nn1e has joined #ruby
stamina has quit [Ping timeout: 250 seconds]
matp has joined #ruby
johnmilton has quit [Remote host closed the connection]
aegis3121 has joined #ruby
matp_ has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
<careta> havenwood, still there?
manjaro-kde5-- has joined #ruby
<havenwood> careta: yup
nchambers has quit [Changing host]
nchambers has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<careta> ruby and python scripts to do exactly the same
<careta> however the output is completely different
pragmaticus has quit [Ping timeout: 260 seconds]
<careta> spent hours looking at this, pretty sure it's some low level crypto problem
<careta> one of the implementations is incorrect
<careta> there's no other possible explanation
JeroenDL has quit [Ping timeout: 258 seconds]
lenwood has quit [Ping timeout: 246 seconds]
jgnagy has joined #ruby
sparch has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Client Quit]
mtkd has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
mtkd has joined #ruby
<ytti> have yuo verified that paylod is equal in them?
ldnunes has quit [Quit: Leaving]
<theRoUS> what app name does IRB use when initialising readline?
ramfjord has quit [Ping timeout: 246 seconds]
<ytti> i can't confirm or deny that the blowfish part of the code does the same
<ytti> i don't have that lib installed in python and can't be arsed
llaine has joined #ruby
JeroenDL has joined #ruby
<careta> ytti, it's exactly the same (the payload)
axl__ has joined #ruby
<careta> the problem is in the encryption routine
llaine has quit [Client Quit]
axl_ has quit [Ping timeout: 248 seconds]
axl__ is now known as axl_
nofxx has joined #ruby
JeroenDL_ has joined #ruby
jcao219 has joined #ruby
<ytti> it seems far more likely that you're not calling them right
<ytti> if you take the output
<ytti> and decrypt it
<ytti> do you get sensible answer in a) both implemtations b) neither c) each one gets sensible output in each owns implemntation but not others
JeroenDL has quit [Ping timeout: 250 seconds]
JeroenDL_ is now known as JeroenDL
<theRoUS> i basically want to add app-specific key bindings to my ~/.inputrc -- specific to irb, binding.pry, and irb-as-invoked-through-byebug
bturker has quit [Ping timeout: 256 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<careta> ytti, good call, didn't try that before. However I've just finished doing that, and both implementations encrypt and decrypt correctly
<careta> meaning plaintext = decrypted ciphertext
rcvalle_ has joined #ruby
<toretore> how do you define and determine = in this case?
<toretore> hm, nm
rcvalle has quit [Ping timeout: 248 seconds]
rcvalle_ is now known as rcvalle
<careta> something's off here
<careta> how can the same algo give different results
<careta> something's wrong in the implementation or default assumptions
<careta> so either ruby or python are "wrong"
nikivi has quit [Quit: zzz]
patientj has joined #ruby
<careta> I've updated both gists
last_staff has joined #ruby
saneax is now known as saneax-_-|AFK
ramfjord has joined #ruby
manjaro-kde5-- has quit [Ping timeout: 260 seconds]
johnmilton has joined #ruby
millerti has joined #ruby
millerti has quit [Client Quit]
rodfersou has quit [Quit: leaving]
<careta> ytti, maybe I should ask in a mailing list?
william3 has quit [Remote host closed the connection]
adavia has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
<ytti> careta, both implementations decrypt each crypted sample correctly?
lxsameer has joined #ruby
<careta> ytti, yes
<ytti> i don't know blowfish, but have you considered that decryption algorihm probably shouldn't produce deterministic output?
<ytti> s/decryptiong/encryption/
<ytti> some entropy is good
<careta> it's encryption, not hashing, so should always be deterministic
<ytti> because if same input => same output
<ytti> then without decrypting you know something about the data
<careta> same input must always be the same input if the input variables are the same
<ytti> you know when same data is being sent
<ytti> and that seems like weakness
<ytti> why?
<careta> but that's how encryption works
<ytti> it doesn't have to be like that
<careta> unless you use a different initialization vector
nikivi has joined #ruby
<careta> if the input parameters are the same, and the algorithm is the same, the output must be the same
<careta> else it would be impossible to interoperate
<ytti> i disagree
william3 has joined #ruby
<careta> i.e. a string encrypted using AES with CBC on Java must be decrypt to the same using AES CBC on Ruby
<careta> with the same key and IV
<ytti> i mean just adding random salt and including salt in payload
<ytti> would allow you to have different output for same data
<careta> ytti, yes, of course, or using IV
<careta> but that's not the algo that decides, it's the user of the algo
<ytti> maybe there ar some such assumptinos in the implemetnation
<ytti> which you didn't pass
<ytti> causing the implementation to do something random
<careta> ytti, maybe, hence why I'm asking here
<careta> but the python code interops with C code
uxp has joined #ruby
<careta> so I think something's off with my Ruby code; or the Ruby implementation
<careta> hopefully it's just me, but anyway I need to find out
<careta> because I need to interop with this C code
<careta> and I don't want to call a python script from ruby, that would be stupid
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
JeroenDL_ has joined #ruby
stamina has joined #ruby
johnmilton has quit [Remote host closed the connection]
<ytti> in both cases, are the keys same length?
<ytti> like no padding etc?
william3 has quit [Ping timeout: 250 seconds]
<careta> yes, all is the same
JeroenDL has quit [Ping timeout: 256 seconds]
JeroenDL_ is now known as JeroenDL
govg has quit [Ping timeout: 265 seconds]
<ytti> so both pad similarly?
<ytti> to same length?
govg has joined #ruby
<careta> yes
<careta> exactly the same
GBrawl has joined #ruby
firstdayonthejob has joined #ruby
nelsonsar has quit [Ping timeout: 260 seconds]
<ytti> i don't think you're calling the python in ECB mode
<ytti> but you are the ruby
Madplatypus has joined #ruby
GodFather has joined #ruby
<careta> Blowfish.new(secret_key, 1) -> the 1 is ECB mode
ramfjord has quit [Ping timeout: 240 seconds]
polishdub has quit [Quit: Leaving]
<ytti> ok
<ytti> for shit and giggles
<ytti> you could change they key to multiple of 8
mdw has quit [Quit: cya! http://www.somerobots.com]
nankyokusei has joined #ruby
nelsonsar has joined #ruby
gloscombe has joined #ruby
<ytti> or uhh, payload?
jaguarmagenta has joined #ruby
<ytti> or both while at it, just to be sure
nankyokusei has quit [Ping timeout: 256 seconds]
haxrbyte has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
SeepingN has joined #ruby
jgnagy has quit [Remote host closed the connection]
cdg has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
FernandoBasso has quit [Read error: Connection reset by peer]
FernandoBasso has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
j0n3 has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
fmcgeough has joined #ruby
vuoto has joined #ruby
benlieb has quit [Quit: benlieb]
nelsonsar has quit [Ping timeout: 258 seconds]
Puffball_ has joined #ruby
mim1k|work has quit [Ping timeout: 260 seconds]
jhack has quit [Ping timeout: 258 seconds]
Puffball has quit [Ping timeout: 258 seconds]
mim1k|work has joined #ruby
jhack has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
nelsonsar has joined #ruby
drorp24[m] has quit [Remote host closed the connection]
Luca[m] has quit [Remote host closed the connection]
Giphy[m] has quit [Remote host closed the connection]
TheGillies has quit [Remote host closed the connection]
kineticrootkit[m has quit [Write error: Connection reset by peer]
jomakasi[m] has quit [Read error: Connection reset by peer]
tobyn[m] has quit [Read error: Connection reset by peer]
daveyboi[m] has quit [Remote host closed the connection]
M-shine has quit [Read error: Connection reset by peer]
M-mistake has quit [Remote host closed the connection]
n[m] has quit [Write error: Connection reset by peer]
velu_aon[m] has quit [Read error: Connection reset by peer]
coreyja[m] has quit [Write error: Connection reset by peer]
eliotk[m] has quit [Write error: Connection reset by peer]
davix[matrix] has quit [Write error: Connection reset by peer]
fladson[m] has quit [Write error: Connection reset by peer]
vma[m] has quit [Write error: Connection reset by peer]
bascht has quit [Write error: Connection reset by peer]
M-manveru has quit [Write error: Connection reset by peer]
Michael5[m] has quit [Remote host closed the connection]
Donalmartin[m] has quit [Write error: Connection reset by peer]
serah[m] has quit [Write error: Connection reset by peer]
riotgsmport[m] has quit [Read error: Connection reset by peer]
philidor[m] has quit [Read error: Connection reset by peer]
cpfeilschifter[m has quit [Read error: Connection reset by peer]
h42r62[m] has quit [Read error: Connection reset by peer]
laithshadeed[m] has quit [Read error: Connection reset by peer]
meaggan[m] has quit [Write error: Connection reset by peer]
railssmith has joined #ruby
WebDawg has quit [Ping timeout: 252 seconds]
chwbacca has quit [Remote host closed the connection]
j0n3 has quit [Quit: Leaving]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ghostlight has quit [Ping timeout: 268 seconds]
vuoto has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
nicokavts has quit [Ping timeout: 256 seconds]
jcao219 has quit [Ping timeout: 268 seconds]
GBrawl has quit [Quit: (null)]
whathappens has quit [Remote host closed the connection]
ghostlight has joined #ruby
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
ramfjord has joined #ruby
whathappens has joined #ruby
jmignault has quit [Ping timeout: 268 seconds]
WebDawg has joined #ruby
whathapp_ has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
tyang has quit [Ping timeout: 244 seconds]
triangles2 has joined #ruby
triangles has joined #ruby
Synthead has joined #ruby
<Synthead> there's this gem out on rubygems.org https://rubygems.org/gems/nexpose_cyberark/
Asher has quit [Quit: Leaving.]
patarr_ has joined #ruby
<Synthead> when I do a gem install nexpose_cyberark, I get ERROR: Could not find a valid gem 'nexpose_cyberark' (>= 0) in any repository
<Synthead> I notice that the version is 0.0.7-java
<Synthead> does this mean that it's only for jruby?
patarr_ has quit [Client Quit]
<blackbombay> yes
Asher has joined #ruby
<Synthead> hm
<Zarthus> This is the official gem package for the JRuby Nexpose Cyberark Integration
<Zarthus> One would assume so.
codfection has quit [Remote host closed the connection]
bronson has joined #ruby
pragmaticus has joined #ruby
riotjones has joined #ruby
claudiuinberlin has quit []
careta has quit [Ping timeout: 256 seconds]
whathapp_ has quit [Quit: Leaving...]
tomphp has joined #ruby
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
symm- has quit [Quit: Leaving...]
GBrawl has joined #ruby
d10n-work has joined #ruby
JeroenDL has quit [Quit: JeroenDL]
ramfjord has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
skweek has quit [Ping timeout: 265 seconds]
nikivi has quit [Quit: irc]
whathappens has joined #ruby
pragmaticus has quit [Ping timeout: 265 seconds]
tvw has joined #ruby
Guest69 has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
railswebdev has joined #ruby
govg has quit [Ping timeout: 246 seconds]
sepp2k has quit [Quit: Leaving.]
govg has joined #ruby
_sfiguser has quit [Remote host closed the connection]
biberu has quit []
raul782 has joined #ruby
adavia has quit [Ping timeout: 250 seconds]
gnufied has quit [Read error: Connection reset by peer]
drorp24[m] has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
shashin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
SCHAAP137 has joined #ruby
gnufied has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
JoshS has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
montanonic has joined #ruby
nelsonsar has quit [Remote host closed the connection]
jenrzzz has joined #ruby
OTORelic has quit [Ping timeout: 244 seconds]
nelsonsar has joined #ruby
dnicole has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
<theRoUS> fwiw, IRB and friends use the app name 'Ruby' when setting up readline.
nelsonsar has quit [Ping timeout: 246 seconds]
kirun has quit [Quit: Konversation terminated!]
sepp2k has joined #ruby
<centrx> Thanks I'll write that down
govg has quit [Ping timeout: 250 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghostlight has quit [Ping timeout: 246 seconds]
jomakasi[m] has joined #ruby
davix[matrix] has joined #ruby
kineticrootkit[m has joined #ruby
Luca[m] has joined #ruby
Michael5[m] has joined #ruby
coreyja[m] has joined #ruby
laithshadeed[m] has joined #ruby
daveyboi[m] has joined #ruby
riotgsmport[m] has joined #ruby
tobyn[m] has joined #ruby
eliotk[m] has joined #ruby
TheGillies has joined #ruby
meaggan[m] has joined #ruby
Giphy[m] has joined #ruby
velu_aon[m] has joined #ruby
M-shine has joined #ruby
bascht has joined #ruby
philidor[m] has joined #ruby
M-mistake has joined #ruby
M-manveru has joined #ruby
n[m] has joined #ruby
cpfeilschifter[m has joined #ruby
Donalmartin[m] has joined #ruby
h42r62[m] has joined #ruby
serah[m] has joined #ruby
fladson[m] has joined #ruby
vma[m] has joined #ruby
Jackneill has quit [Remote host closed the connection]
jshjsh has joined #ruby
Sammichmaker has joined #ruby
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
ghostlight has joined #ruby
Didac has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 248 seconds]
synthroid has quit []
Kas1894 has joined #ruby
<Kas1894> Hello folks
<havenwood> Kas1894: hi
<Kas1894> so I'm running into a bit of strange issue with the Ruby Gem installer not being able to pull gems. Getting an SSL cert error. As I understand it, Gem versions after 2.4 got a fix for it?
centrx has quit []
<Kas1894> I'm on windows 10 and my gem version is reading at 2.5.1, so I'm not sure what the issue might be.
<havenwood> Kas1894: Ruby 2.2.6 and 2.3.2 shipped with new certs.
<Radar> Kas1894: that's not the latest RubyGems version. I'd recommend updating your RubyGems version (gem update --system)
<Kas1894> humm, that explains it. I have Ruby v2.3.1 installed
<baweaver> Radar: that's difficult y'know
<baweaver> whenever you can't install gems in the first place ;)
<Radar> baweaver: OR IS IT? (I honestly don't know)
<baweaver> Yeah, this gem issue is a fun can of worms
<Kas1894> Yea, I cant pull from http://rubygems.org/ at all, which I assume is where the update command would try to go to
johnmccabe has joined #ruby
<havenwood> Kas1894: https, but yes
<baweaver> Probably https
<Kas1894> I could at the non https site as source and use that as a workaround, but I'd rather not
<baweaver> victory is mine this day havenwood :D
<baweaver> Yeah, I get that feeling.
shashin has joined #ruby
<havenwood> baweaver: or is it?! buahahaha: http://logs.ryanbigg.com/ruby
<baweaver> hax
railswebdev has joined #ruby
<baweaver> Radar plz nerf
Guest69 has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
d5sx43 has joined #ruby
* baweaver is trying to find rubygems manual download again
preyalone has quit [Quit: Connection closed for inactivity]
jcao219 has joined #ruby
<Kas1894> huh...well this is intresting
<baweaver> You can download the gemfile and install it from that as one workaround
<Kas1894> the RubyInstaller installer only goes up to Ruby v 2.3.1.
<baweaver> https://gist.github.com/luislavena/f064211759ee0f806c88 - This guide goes over a lot of it.
electrostat has quit [Quit: uwotm8]
<havenwood> Kas1894: gem install --local C:\PATH_TO_DOWNLODED_FILE\rubygems-update-2.6.8.gem
<havenwood> Kas1894: RubyGems is itself a gem. Download the .gem file I linked above with your browser. Then install it as a gem locally.
<havenwood> Kas1894: Then run: update_rubygems
<havenwood> Kas1894: That should do the trick.
symm- has joined #ruby
electrostat has joined #ruby
<Kas1894> "WARNING: Unable to pull data from 'https://rubygems.org/': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
<Kas1894> 1 gem installed"
<Kas1894> oops
<Kas1894> got that at the end of the install
charliesome has joined #ruby
Nanuq has quit [Quit: brb]
jmignault has joined #ruby
<Kas1894> so do I run the update command exactly as I see here?
charliesome has quit [Client Quit]
d5sx43 has quit [Quit: Leaving...]
<Kas1894> nevermind, I think it works
nankyokusei has joined #ruby
adavia has joined #ruby
CloCkWeRX has joined #ruby
<havenwood> Kas1894: Did you install the downloaded RubyGems an run?: update_rubygems
<havenwood> and*
<Kas1894> Yep. It updated just fine
<havenwood> great
<Kas1894> I'm able to pull down gems now, so yea =-D
jaguarmagenta has joined #ruby
<Kas1894> Thanks for the help
<havenwood> Kas1894: You're welcome, happy hacking!
jmignault has quit [Ping timeout: 244 seconds]
zeroDivi1 has quit [Quit: WeeChat 1.6]
lxsameer has quit [Quit: WeeChat 1.6]
nankyokusei has quit [Ping timeout: 250 seconds]
eljimmy has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
<baweaver> havenwood: easy there avdi :P
_sfiguser has joined #ruby
ruid has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
domgetter has quit [Ping timeout: 244 seconds]
troulouliou_div2 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
toretore has quit [Ping timeout: 245 seconds]
jgnagy has joined #ruby
axl_ has quit [Quit: axl_]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgnagy has quit [Ping timeout: 245 seconds]
Derperperd has quit [Quit: Derperperd]
ResidentBiscuit has quit [Ping timeout: 244 seconds]
BUTTMUFFLER has quit [Quit: Connection closed for inactivity]
nunchuck has joined #ruby
jcao219 has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
rfoust has joined #ruby
zenspider has joined #ruby
zenspider has quit [Changing host]
zenspider has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
webguynow has quit [Ping timeout: 260 seconds]
shashin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
webguynow has joined #ruby
rfoust has quit [Client Quit]
aryaching has quit [Read error: Connection reset by peer]
patarr has quit [Ping timeout: 250 seconds]
GodFather has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.6]
marxarelli is now known as marxarelli|afk
GBrawl has quit [Quit: (null)]
Kas1894 has quit [Quit: Leaving]
jcao219 has joined #ruby
Derperperd has joined #ruby
whathappens has quit [Remote host closed the connection]
smlocal has joined #ruby
charliesome has joined #ruby
<zenspider> rawr
antoniobeyah has quit [Quit: antoniobeyah]
rcvalle has quit [Quit: rcvalle]
Didac has joined #ruby
<zenspider> updated to sierra and now I can't use my old ssh id_dsa... Is there a way to temporarily override that so I can inject my new pubkey into systems I don't have passwords on?
adavia has quit [Ping timeout: 260 seconds]
<zenspider> debug1: Skipping ssh-dss key /Users/ryan/.ssh/dead/id_dsa - not in PubkeyAcceptedKeyTypes
jcao219 has quit [Ping timeout: 246 seconds]
<lianj> zenspider: PubkeyAcceptedKeyTypes +ssh-dss but get off it
Synthead has quit [Remote host closed the connection]
<havenwood> zenspider: echo "PubkeyAcceptedKeyTypes=+ssh-dss" >> ~/.ssh/config
gloscombe has quit [Quit: gloscombe]
User458764 has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
alan_w has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
<zenspider> yeah. tenderlove just helped with that... it was the missing + that got me
<zenspider> fuuuck
jhack has quit [Quit: jhack]
bturker has joined #ruby
marxarelli|afk is now known as marxarelli
<zenspider> thanks guys. this worked: ./ssh-infect -i ~/.ssh/dead/id_dsa -o PubkeyAcceptedKeyTypes=+ssh-dss docs-push.seattlerb.org
jshjsh has quit [Quit: Leaving]
tvw has quit [Remote host closed the connection]
bturker has quit [Ping timeout: 256 seconds]
aryaching has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 250 seconds]
<zenspider> so I have this tool called debride (removal of dead tissue). It detects methods you might not use. I'm adding a new cmdline tool that actually removes all of it repeatedly until there's no more to remove
<zenspider> ... IMPORTANT question: what to name it?
symm- has joined #ruby
rwb has quit [Quit: rwb]
<zenspider> my initial name was autoclave... but that's not really what this does
jmignault has joined #ruby
troulouliou_div2 has quit [Ping timeout: 252 seconds]
Nanuq has joined #ruby
koooge has joined #ruby
antoniobeyah has joined #ruby
jmignault has quit [Ping timeout: 248 seconds]
<oddmunds> zenspider: maybe something with maggots
<oddmunds> they eat dead flesh
BillyTheKid has joined #ruby
<oddmunds> and are used to clean up wounds and stuff
symm- has quit [Quit: Leaving...]
<havenwood> Ubi pus, ibi evacua
<zenspider> haha
<zenspider> I... wow. "maggot" might actually be too much for my software :)
<zenspider> somehow "flay" is fine
railswebdev has quit [Read error: Connection reset by peer]
<baweaver> Kangal or Bonefish
<baweaver> They eat dead skin off your feet
<oddmunds> zenspider: :)
aegis3121 has quit [Ping timeout: 258 seconds]