<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>
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
<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
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>
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]
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?
<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
<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?
<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...
<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?
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>
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]
<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
<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]
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
<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.
<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]
<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]
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
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)
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
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]
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]