chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
nankyokusei has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
chadwtaylor has quit [Remote host closed the connection]
MrBusiness has joined #ruby
Tempesta_ has quit [Quit: See ya!]
cyphase has joined #ruby
MrBusiness is now known as Guest99705
harai has quit [Ping timeout: 256 seconds]
A5101 has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
c0mrad3 has quit [Quit: Connection closed for inactivity]
gix has quit [Ping timeout: 240 seconds]
nonnatus has joined #ruby
cyphase has quit [Ping timeout: 256 seconds]
gix has joined #ruby
arescorpio has quit [Quit: Leaving.]
JoshS has joined #ruby
cyphase has joined #ruby
SteenJobs has joined #ruby
matp_ has quit [Ping timeout: 246 seconds]
SCHAAP137 has quit [Remote host closed the connection]
matp has joined #ruby
ta_ has joined #ruby
optiz0r has joined #ruby
spectrum has quit [Quit: Oh Shidd]
zacts has quit [Ping timeout: 240 seconds]
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jshjsh has joined #ruby
araujo has quit [Ping timeout: 260 seconds]
BlueDragons has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 258 seconds]
araujo has quit [Max SendQ exceeded]
tuxaddicted has quit [Ping timeout: 248 seconds]
troys_ is now known as troys
honore has quit [Quit: honore]
araujo has joined #ruby
Azure has joined #ruby
blackbombay has joined #ruby
araujo has quit [Max SendQ exceeded]
redpants has quit [Quit: leaving]
function has quit [Quit: found 1 in /dev/zero]
conta has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
MrBusiness2 has joined #ruby
function has joined #ruby
conta has quit [Ping timeout: 256 seconds]
matp has quit [Quit: ZZzzzZz...]
araujo has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: peaceee]
function has quit [Client Quit]
Guest99705 has quit [Ping timeout: 260 seconds]
ace05 has joined #ruby
harai has joined #ruby
bikram_ has quit [Quit: Lost terminal]
bikram__ has quit [Quit: Lost terminal]
ace05 has quit [Ping timeout: 256 seconds]
rohit has joined #ruby
tuxaddicted has joined #ruby
Jameser has joined #ruby
bitcycle has joined #ruby
BlueDragons has quit [Ping timeout: 268 seconds]
<bitcycle>
Hey all. Could someone here help me understand how I might break up a large single file web app into multiple files? I've got a Sinatra app with lots of handlers that I wanted to break into their own files ... but I don't know if I should use modules, or ... something else?
JoshS has joined #ruby
jshjsh has quit [Disconnected by services]
JoshS is now known as jshjsh
arnonhongklay has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
colstrom has quit [Ping timeout: 260 seconds]
ace05 has quit [Remote host closed the connection]
the-eat-scout has quit [Ping timeout: 260 seconds]
Iacobus_ has quit [Ping timeout: 260 seconds]
dmnd has quit [Ping timeout: 260 seconds]
troter__________ has quit [Ping timeout: 250 seconds]
AdamMeghji__ has quit [Ping timeout: 256 seconds]
olivierjanss has quit [Ping timeout: 258 seconds]
ramblinpeck has quit [Ping timeout: 260 seconds]
gmci has quit [Ping timeout: 250 seconds]
amitchellbullard has quit [Ping timeout: 256 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tycoon177 has quit [Ping timeout: 260 seconds]
SnowboardTechie has joined #ruby
arnonhongklay has joined #ruby
SnowboardTechie has quit [Quit: leaving]
harai has quit [Ping timeout: 245 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
c355e3b has quit [Quit: Connection closed for inactivity]
bonerwad has left #ruby ["WeeChat 1.6"]
dionysus69 has quit [Remote host closed the connection]
kechja has joined #ruby
arnonhongklay has quit [Ping timeout: 260 seconds]
rajdesai has quit [Read error: Connection reset by peer]
rajdesai has joined #ruby
elifoster has joined #ruby
djbkd has joined #ruby
poikon has quit [Ping timeout: 240 seconds]
Salih has quit [Quit: Leaving]
vuoto has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
poikon has joined #ruby
nobitanobi has joined #ruby
LoneHerm_ has joined #ruby
Vile` has quit [Ping timeout: 245 seconds]
jgt1 has joined #ruby
bitcycle has quit [Ping timeout: 268 seconds]
nchambers has quit [Disconnected by services]
telnet is now known as nchambers
rajdesai has quit [Remote host closed the connection]
lenwood has joined #ruby
rajdesai has joined #ruby
while{} has joined #ruby
ace05 has joined #ruby
gingray has joined #ruby
bluOxigen has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ace05 has quit [Remote host closed the connection]
rajdesai has quit [Ping timeout: 245 seconds]
blackbombay has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
gusrub_ has joined #ruby
while{} has quit [Ping timeout: 248 seconds]
gusrub_ has quit [Client Quit]
Ishido has joined #ruby
nobitanobi has quit [Remote host closed the connection]
blackbombay has joined #ruby
while{} has joined #ruby
ta_ has joined #ruby
dreinull has quit [Remote host closed the connection]
gingray has quit [Quit: leaving]
gingray has joined #ruby
dreinull has joined #ruby
gingray has quit [Client Quit]
gingray has joined #ruby
gingray has quit [Client Quit]
gingray has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
rafadc has quit [Ping timeout: 268 seconds]
LoneHermit has joined #ruby
rafadc has joined #ruby
LoneHermit has quit [Ping timeout: 248 seconds]
vuoto has quit [Remote host closed the connection]
kechja has quit [Quit: Ex-Chat]
claudiuinberlin has joined #ruby
Tempesta has joined #ruby
Derperperd has joined #ruby
firstdayonthejob has joined #ruby
ace05 has joined #ruby
ace05 has quit [Remote host closed the connection]
xsdg has quit [Ping timeout: 256 seconds]
kent\n has quit [Ping timeout: 240 seconds]
rohit has joined #ruby
xsdg has joined #ruby
kent\n has joined #ruby
ace05 has joined #ruby
blackbombay has quit [Ping timeout: 268 seconds]
palms has quit [Ping timeout: 260 seconds]
rajdesai has joined #ruby
nadir has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
lenwood has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nadir has joined #ruby
jgt1 has quit [Quit: WeeChat 1.4]
CloCkWeRX has joined #ruby
rajdesai has quit [Ping timeout: 260 seconds]
blackbombay has joined #ruby
beawesomeinstead has quit [Ping timeout: 268 seconds]
beawesomeinstead has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
poikon has quit [Ping timeout: 258 seconds]
while{} has quit [Ping timeout: 268 seconds]
blackbombay_ has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
Pongles has joined #ruby
f0rpaxe has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
rajdesai has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
poikon has joined #ruby
rippa has joined #ruby
djbkd has joined #ruby
nankyokusei has joined #ruby
<Pongles>
Hi there, I am having some ssl error issues with ruby gems. I have found this help document https://gist.github.com/luislavena/f064211759ee0f806c88 on the issue however it's for Ruby Gem versions 2.2.x or older and I am using version 2.4.5.1. Can anyone point me in the right direction to fix this?
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
blackbombay_ has quit [Ping timeout: 240 seconds]
A5101 has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
mtkd has joined #ruby
beawesomeinstead has quit [Ping timeout: 250 seconds]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
nadir has quit [Ping timeout: 256 seconds]
f0rpaxe has joined #ruby
muelleme has joined #ruby
poikon has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 260 seconds]
<Pongles>
I updated it to 2.6.8 manually and the issue appears to be resolved
<Pongles>
I have a new error, but at least it's not the old error
_djbkd has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
beawesomeinstead has joined #ruby
nadir has joined #ruby
f0rpaxe has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
poikon has joined #ruby
f0rpaxe has joined #ruby
beawesomeinstead has quit [Ping timeout: 268 seconds]
beawesomeinstead has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
harfangk has joined #ruby
alexherbo2 has joined #ruby
rafadc has quit [Ping timeout: 246 seconds]
blackbombay has quit [Quit: WeeChat 1.5]
rajdesai has quit [Ping timeout: 260 seconds]
blackbombay has joined #ruby
rafadc has joined #ruby
blackbombay has quit [Client Quit]
nanoz has joined #ruby
blackbombay has joined #ruby
f0rpaxe has left #ruby [#ruby]
blackbombay has quit [Changing host]
blackbombay has joined #ruby
blackbombay has quit [Client Quit]
blackbombay has joined #ruby
Robtop__ has joined #ruby
boadie_ has joined #ruby
honore has joined #ruby
rafadc has quit [Ping timeout: 244 seconds]
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
boadie has quit [Ping timeout: 260 seconds]
pandaant has joined #ruby
blackbombay has quit [Client Quit]
blackbombay has joined #ruby
rafadc has joined #ruby
matp has joined #ruby
symm- has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
matp has quit [Quit: ZZzzzZz...]
Sirithcam has joined #ruby
Devalo has joined #ruby
harai has joined #ruby
ace05 has quit [Remote host closed the connection]
jcao219_ has joined #ruby
blackbombay has quit [Quit: testing]
blackbombay has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
rohit has quit [Ping timeout: 244 seconds]
pwnd_nsfw` has joined #ruby
conta has joined #ruby
Robtop__ has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
doublemalt__ has joined #ruby
honore has quit [Quit: honore]
honore has joined #ruby
ur5us has quit [Remote host closed the connection]
doublemalt__ has quit [Quit: Leaving]
conta has quit [Ping timeout: 260 seconds]
TehGrub has joined #ruby
ruby-lang405 has joined #ruby
Savage has joined #ruby
<Savage>
im alive
<Pongles>
are you?
<Savage>
yeah
<Pongles>
cool
TehGrub has left #ruby [#ruby]
futilegames has joined #ruby
<ruby-lang405>
.
Silthias1 has quit [Ping timeout: 244 seconds]
shiru has joined #ruby
<Pongles>
..
Silthias has joined #ruby
ruby-lang405 has quit [Ping timeout: 260 seconds]
shiru has quit [Remote host closed the connection]
martynas_ has joined #ruby
cajone has left #ruby [#ruby]
honore has quit [Changing host]
honore has joined #ruby
Guest53319 has quit [Ping timeout: 256 seconds]
Satyajit has quit [Ping timeout: 256 seconds]
alxgsv has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 268 seconds]
cjk101010 has quit [Ping timeout: 260 seconds]
disavowed has quit [Quit: ¯\_(ツ)_/¯]
cibs has joined #ruby
xrlk has quit [Ping timeout: 248 seconds]
Silthias has quit [Ping timeout: 256 seconds]
cajone has joined #ruby
futilegames has quit [Quit: futilegames]
Silthias has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
cjk101010 has joined #ruby
Jackneill_ has joined #ruby
aidalgol has quit [Quit: zZzZZzz]
_djbkd has joined #ruby
matp has joined #ruby
dionysus69 has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
jarred has joined #ruby
miqlas-H has joined #ruby
djbkd has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
blackbom1 has joined #ruby
djbkd has joined #ruby
SCHAAP137 has joined #ruby
igniting has joined #ruby
djbkd_ has joined #ruby
blackbombay has quit [Ping timeout: 245 seconds]
toretore has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
dinoangelov has joined #ruby
Littlemyu_ has joined #ruby
dinoangelov has quit [Client Quit]
nankyokusei has joined #ruby
Littlemyu has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
djbkd_ has quit [Remote host closed the connection]
djbkd has joined #ruby
jcao219_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
optiz0r has quit [Quit: Leaving]
optiz0r has joined #ruby
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
govg has quit [Ping timeout: 244 seconds]
rohit has joined #ruby
bartek has joined #ruby
martynas_ has quit [Ping timeout: 260 seconds]
jackneill__ has joined #ruby
hightower3 has quit [Ping timeout: 252 seconds]
Salih has joined #ruby
Salih has quit [Changing host]
Salih has joined #ruby
Jackneill_ has quit [Ping timeout: 260 seconds]
govg has joined #ruby
kith has joined #ruby
shiru has joined #ruby
Littlemyu_ has quit [Ping timeout: 268 seconds]
cibs has quit [Ping timeout: 268 seconds]
symm- has quit [Ping timeout: 268 seconds]
zeroDi has joined #ruby
shiru has quit [Remote host closed the connection]
cibs has joined #ruby
symm- has joined #ruby
minimalism has quit [Quit: minimalism]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Kendos-Kenlen has joined #ruby
<Kendos-Kenlen>
Hi :)
<Kendos-Kenlen>
I'm trying to run a ruby script using "bundle exec" on windows, but I have the error "bundle: not executable". I don't really understand the problem as it perfeclty work on linux ...
miqlas-H has quit [Read error: Connection reset by peer]
conta has quit [Remote host closed the connection]
conta has joined #ruby
martynas_ has joined #ruby
<bikram_>
exit
<bikram_>
exit
bikram_ has quit [Quit: Lost terminal]
conta has quit [Ping timeout: 250 seconds]
palms has joined #ruby
honore has quit [Quit: zzz]
aswen has joined #ruby
aswen has quit [Client Quit]
palms has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
Silthias has quit [Ping timeout: 246 seconds]
Silthias has joined #ruby
brendan- has joined #ruby
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
futilegames has joined #ruby
futilegames has left #ruby [#ruby]
djbkd has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
djbkd has quit [Ping timeout: 246 seconds]
Silthias has joined #ruby
<leitz>
Compiled Ruby 2.3.1p112 from source, trying to use gem to install a MongoDB driver. Getting "ERROR: Loading command: install (LoadError) cannot load such file -- zlib" but server has base zlib installed.
jshjsh has quit [Ping timeout: 258 seconds]
miqlas-H has joined #ruby
<leitz>
Suggestions? Is there a separate gem/Ruby zlib to be compiled?
terlar has quit [Ping timeout: 248 seconds]
ace05 has joined #ruby
Helheim has quit [Remote host closed the connection]
harfangk has quit [Ping timeout: 245 seconds]
<toretore>
leitz: did you have zlib installed when building ruby?
claudiuinberlin has quit [Remote host closed the connection]
harfangk has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
tk__ has joined #ruby
<toretore>
leitz: zlib is part of stdlib, compiled along with ruby core
Silthias has joined #ruby
<leitz>
toretore, yes, it was already there.
<leitz>
zlib, that is.
<leitz>
I let RUby install itself via "make install" as root.
zeroDi has quit [Quit: WeeChat 1.6]
Vile` has joined #ruby
<leitz>
Redoing the configure and make, this time with a log.
<leitz>
Ah, getting a bunch of "Failed to configure", to include dbm, tk, readline, and zlib.
chadwtaylor has joined #ruby
<leitz>
Does the configure have to be run as root, too?
<leitz>
Or can newer ruby versions not use older zlibs?
c355e3b has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
muelleme has quit [Ping timeout: 256 seconds]
daed has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jarred has quit [Quit: Connection closed for inactivity]
lxsameer has quit [Quit: WeeChat 1.5]
akira_ has joined #ruby
GodFather has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
brendan- has joined #ruby
GodFather has quit [Client Quit]
symm- has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
Devalo has quit [Ping timeout: 256 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bumao has quit [Ping timeout: 246 seconds]
nonnatus has joined #ruby
brendan- has joined #ruby
blackbom1 has quit [Quit: WeeChat 1.5]
AlexRussia has joined #ruby
blackbombay has joined #ruby
bumao has joined #ruby
d0nn1e has quit [Ping timeout: 245 seconds]
d0nn1e has joined #ruby
pandaant has quit [Remote host closed the connection]
Devalo has joined #ruby
Silthias has quit [Read error: Connection timed out]
Devalo has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
AlexRussia has joined #ruby
ptx0 is now known as kash
Puffball has quit [Remote host closed the connection]
kash is now known as d[^_^]b
Devalo has quit [Ping timeout: 256 seconds]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
Puffball has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
harfangk has quit [Ping timeout: 265 seconds]
pilne has joined #ruby
bartek has quit [Ping timeout: 250 seconds]
SCHAAP137 has quit [Quit: Leaving]
harfangk has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
dinoangelov has joined #ruby
pragmaticus has joined #ruby
achamian has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
harai has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
Puffball_ has joined #ruby
martynas_ has quit [Ping timeout: 246 seconds]
Puffball has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
futilegames has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
achamian has quit []
jaguarmagenta has joined #ruby
futilegames has quit [Quit: futilegames]
workmad3 has quit [Ping timeout: 258 seconds]
ag4ve has joined #ruby
<ag4ve>
what's the: (foo ? bar : baz) operation called?
<apeiros>
ternary
<ag4ve>
not sure if it's documented or a bug, but it appears you can't start a new line w/ the '?' or ':' - you can end the line w/ it though
<apeiros>
technically it just means an operator with 3 operands, so there could be other ternary expressions. but in practice, that's the most often used and hence the one referred to as "ternary"
<apeiros>
ag4ve: the statement on the previous line is complete without the ?, so I'm not surprised by that. I'm a bit surprised by the :, though.
<ag4ve>
works in perl and c
<apeiros>
actually it seems your claim is incorrect. I can fold the : to the next line just fine.
<ag4ve>
well, i didn't try it w/ just the :
<apeiros>
you forgot that C terminates its statements explicitly with ;
<apeiros>
newlines are just whitespace to it.
<ag4ve>
i generally start lines w/ ? and : when doing that so they stand out like an if statement etc
gizmore has quit [Ping timeout: 248 seconds]
<ag4ve>
mmmm guess perl does too
gizmore has joined #ruby
<ag4ve>
so i guess that makes sense
<apeiros>
ruby *could* do it by looking ahead (started to do so for `.method` calls)
<ag4ve>
that's probably a good thing
<ag4ve>
wrt methods
<apeiros>
define "good". it makes the syntax more complex.
<apeiros>
and for me to read I find it harder too. means I have to read ahead too and can't make a conclusion at the end of the line.
j2k has joined #ruby
<apeiros>
it does look nicer. but it reads harder IMO.
tk__ has quit [Quit: ばいばい]
Puffball_ has quit [Remote host closed the connection]
djbkd has joined #ruby
<ag4ve>
it makes the code more obvious if you have: thing(blah).add(9).subtract(2).multiply(100).etc()
<ag4ve>
so you have each method on a newline
<ag4ve>
and then it's quite easy to see wtf is happening at a glanse
<Mon_Ouie>
You could do that before too, just go to a new line after the '.'
<apeiros>
^
Puffball has joined #ruby
<ag4ve>
meh, i guess it's not a big improvement then, but seeing a .thing() starting a line is faster to spot methods w/ than ending lines w/ them
<apeiros>
also if you chain tons of methods and it becomes unreadable mess - maybe assign to a variable once in a while so the partial results get a name?
<apeiros>
makes reading & understanding code a lot easier
<blackbombay>
subjective stuff.
<ag4ve>
probably
<ag4ve>
i just don't like my parser determining my style for me
<ag4ve>
(reason i don't really like python)
djbkd has quit [Ping timeout: 268 seconds]
ace05 has quit [Remote host closed the connection]
<apeiros>
funny enough I disliked python for that too. by now I think it's actually a good idea :-/
<blackbombay>
or a gofmt.
nankyokusei has joined #ruby
<blackbombay>
so many wasteful style arguments.
<apeiros>
yeah. at this point I care much more about consistent style than style fitting my preference.
<blackbombay>
same here. id just let a tool decide and call it done, then focus on stuff that matters.
<ag4ve>
i care about a workplace style guide, but generally don't care about community style decisions
<ag4ve>
like, i don't really prefer js and haskell preferring the comma in a data structure beginning lines
<daed>
i generally follow the standard ruby style guide
<ag4ve>
and i end my lines w/ a comma like perl, python, ruby tent to do
<ag4ve>
(and frankly, i'd prefer it be evaluated w/in the (....) block anyway)
<ag4ve>
ie, not caring about when/where i put newlines
allcentury has joined #ruby
cats has quit [Remote host closed the connection]
cats has joined #ruby
<ag4ve>
so should i consider this a bug?
<daed>
i avoid ternary where possible entirely
<daed>
decreases readability in my experience
<daed>
but if i do use ternary, it's all on 1 line
<daed>
result = some_condition ? something : something_else
<ag4ve>
yeah, someone else made the same comment (about it being on one line for them) but again, not documented that way and i don't like a parser determining my style for me
blackbombay has quit [Ping timeout: 265 seconds]
pwnd_nsfw` has joined #ruby
<daed>
that's probably a tradeoff you get for not having an explicit ; everywhere
<ag4ve>
also, i use it when i want a different if/else when not true the first time, ie: thing = (foo ? 0 : (bar ? 1 : 2))
<daed>
oi, i never use nested ternary
<daed>
last time i saw those was 7 years ago
<ag4ve>
too much code to start new if/else w/in the else
<daed>
in a php project, it was painful to work with
<ag4ve>
hehe, never done php
<daed>
nested ternary is frowned upon in my experience
<ag4ve>
(one language i refuse to touch)
<ag4ve>
they took perl, shoved a templating system w/in the language and fucked it up
<daed>
nested ternary would never pass a code review anywhere i've worked lately
pwnd_nsfw has quit [Ping timeout: 258 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pontiki has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bluOxigen has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
LoneHerm_ has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
aryaching has joined #ruby
c0mrad3 has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
JoshS has joined #ruby
Rodya_ has quit [Remote host closed the connection]
skweek has quit [Remote host closed the connection]
Derperperd has joined #ruby
skweek has joined #ruby
ruby has joined #ruby
dinoangelov has quit [Quit: (null)]
ruby is now known as Guest37071
allcentury has joined #ruby
lenwood has joined #ruby
ag4ve has quit [Ping timeout: 258 seconds]
LoneHerm_ has quit [Remote host closed the connection]
rubirc has quit [Quit: Lost terminal]
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
Snowy has joined #ruby
arnonhongklay has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
lenwood has quit [Ping timeout: 265 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
LoneHerm_ has joined #ruby
dionysus69 has joined #ruby
rafadc has joined #ruby
elifoster has joined #ruby
vuoto has quit [Remote host closed the connection]
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Moosashi has joined #ruby
Devalo has joined #ruby
unshadow has joined #ruby
symm- has quit [Read error: Connection reset by peer]
blackwind_123 has joined #ruby
solocshaw has joined #ruby
<unshadow>
Hi Guys, Does anyone have an idea why all OpenSSL messages (like protocol mismatch, unkownstate, etc..) are handled as Exceptions ? Also, why can't a socket.accept retry for a negotiation ? whey does a new connection and handeling has to be made ?
benlieb has quit [Quit: benlieb]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
nankyokusei has joined #ruby
symm- has joined #ruby
JeanCarloMachado has joined #ruby
palms has joined #ruby
ur5us has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
enterprisey has joined #ruby
Rodya_ has joined #ruby
banisterfiend has joined #ruby
benlieb has joined #ruby
nankyokusei has quit [Ping timeout: 268 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
dcluna has joined #ruby
dnicole_ has quit [Remote host closed the connection]
nonnatus has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
patteh_ has quit [Remote host closed the connection]
patteh has joined #ruby
queequeg1 has quit [Remote host closed the connection]
wpostma1 has joined #ruby
pawnbox has joined #ruby
benlieb has quit [Quit: benlieb]
kirun has joined #ruby
mlehrer has quit [Ping timeout: 248 seconds]
creat has quit [Quit: Leaving]
<ezio>
Anyone good with mocks and stubs. I just have a very basic understanding miss in the ol' brain engine. So I THINK I want to stub out HTTP.request login_request ... is that ... correct?
<ezio>
or maybe I should be creating an alias method and stubbing that out?
ag4ve has joined #ruby
enterprisey has quit [Quit: Leaving]
blackwind_123 has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
ace05 has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
benlieb has quit [Quit: benlieb]
Capela has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
LoneHerm_ has quit [Remote host closed the connection]
byte512 has joined #ruby
LoneHerm_ has joined #ruby
last_staff has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
LoneHerm_ has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
pawnbox has joined #ruby
dcluna has quit [Read error: Connection reset by peer]
Guest37071 has quit []
dcluna has joined #ruby
<ag4ve>
how do i pass the output of a function to a logger?
Capela has quit []
pawnbox has quit [Ping timeout: 248 seconds]
<ag4ve>
something like: message "#{pp foo}" ?
dcluna has quit [Client Quit]
wpostma1 has quit [Read error: Connection reset by peer]
<daed>
ag4ve: logger.info "#{pp foo}" ?
Xiti` has quit [Ping timeout: 260 seconds]
<ag4ve>
ah ty
wpostma1 has joined #ruby
<darix>
ag4ve: better
Xiti has joined #ruby
<darix>
logger.info foo.pretty_inspect
<daed>
or just logger.info pp foo
<daed>
or that, yeah
dionysus69 has joined #ruby
nchambers has quit [Quit: ZNC 1.6.3 - http://znc.in]
last_staff has quit [Ping timeout: 258 seconds]
<ag4ve>
oooo idk about pretty_inspect
Salih has quit [Quit: Leaving]
<daed>
i tend to use "awesome_print", the gem
<daed>
by default all my REPLs use that to output anything
lenwood has joined #ruby
last_staff has joined #ruby
<ag4ve>
i'm in chef, so if i don't have to do chef_gem and handle that, that's better for me
kobain has quit [Ping timeout: 260 seconds]
<daed>
ahh, gotcha
Salih has joined #ruby
nchambers has joined #ruby
<ag4ve>
(kinda segregated net so, that's more like: get gem, upload to gem server, make sure cert is present, chef_gem,....)
byte512 has quit [Ping timeout: 265 seconds]
<daed>
oi vey, i deal with environments like that too
<daed>
i've been looking into gemirror
moei has quit [Quit: Leaving...]
mwlang has joined #ruby
Guest22943 has quit [Changing host]
Guest22943 has joined #ruby
Guest22943 has joined #ruby
<ag4ve>
we use nexus (which handles gems, rpm, java, etc)
<ag4ve>
.... also $$$$$$
<daed>
oh, then we cant use it :P
ace05 has joined #ruby
<ag4ve>
it's kinda meh
nchambers has quit [Changing host]
nchambers has joined #ruby
Devalo has joined #ruby
<ag4ve>
i'd prefer using separate tools that handle stuff, but not my call
LoneHerm_ has quit [Remote host closed the connection]
last_staff has quit [Ping timeout: 248 seconds]
quazimodo has joined #ruby
ace05 has quit [Ping timeout: 246 seconds]
Devalo has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
last_staff has joined #ruby
Guest22943 is now known as giraffe
nankyokusei has quit [Ping timeout: 248 seconds]
wpostma1 has quit [Read error: Connection reset by peer]
wpostma1 has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
Moosashi has quit [Quit: Moosashi]
dagda1 has joined #ruby
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
wpostma1 has quit [Ping timeout: 258 seconds]
cdg has joined #ruby
jcao219_ has joined #ruby
alex0ptr has joined #ruby
ryez has quit [Ping timeout: 260 seconds]
<ezio>
Anyone good with mocks and stubs?
jaguarmagenta has quit [Remote host closed the connection]
<alex0ptr>
Hi everyone, newbie to ruby here. I'm trying to get an instantiation of a class with a redefinition of a single method. Is there a way without defining a new class? Can anyone point me to the right direction?
Moosashi has joined #ruby
<ezio>
i'm sort of a newb, too, but i think you're talking about overloading a function
<alex0ptr>
I guess, but only for a single instance.
<ezio>
a single instance of ... the class?
<alex0ptr>
Yes
tvw has quit []
<ezio>
that won't lead to multiple instances
JeanCarloMachado has quit [Ping timeout: 252 seconds]
<alex0ptr>
An instance of a class foo that has method bar. And I want to overload the implementation of bar.
<ezio>
yes
<alex0ptr>
How do I do that?
<ezio>
that will only be one instance of the class
<hanmac>
alex0ptr: for example you want this:
<hanmac>
>> class X; def meth1; "X"; end; end; y = X.new; def y.meth1; "Y"; end; y.meth1
<ezio>
overloading works on the function signature. that is to say a function with the same name but different parameters(and more generally in other languages, a different return type), during compilation, the proprocessor will figure out what one you mean based on how it's being claled
<alex0ptr>
Okay I guess this was exactly what I was looking for! Thank you!
<hanmac>
alex0ptr: for most objects of most classes, you can use their singleton class / eigenclass to define methods (and constants) too
<ezio>
for example calcTriangleArea base, width and calcTriangleArea base
<ezio>
one is for all triangles, the other is for equilateral
vuoto has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<alex0ptr>
ezio hanmac Thank you both for your help!
<ezio>
np
<hanmac>
ezio, ruby itself does not do overload, but there are some gems that does allow such thing
<ezio>
ah
palms has quit [Ping timeout: 260 seconds]
<ezio>
weird that they wouldn't write that into the preprocessor
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1_ has joined #ruby
<hanmac>
ezio: ruby does allow variable parameters, so you can use that like calcTriangleArea(base, width=nil)
<ezio>
ah
<ezio>
like php
kies has quit [Ping timeout: 268 seconds]
<ezio>
so ... who wants to help me with stubs
xrlk has joined #ruby
dnicole has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
futilegames has joined #ruby
terlar has quit [Quit: WeeChat 1.6]
enterprisey has joined #ruby
ace05 has joined #ruby
jackjackdripper has joined #ruby
ace05 has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
ace05 has joined #ruby
nonnatus has joined #ruby
LoneHerm_ has quit [Ping timeout: 258 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
aidalgol has joined #ruby
firstdayonthejob has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
<ezio>
noooooooooooooobody knows my troubles
b_ has joined #ruby
<ezio>
wtf. how was that not a permanent ban?
LoneHerm_ has joined #ruby
<daed>
help you with stubs how
Devalo has joined #ruby
Savage has quit [Quit: Connection closed for inactivity]
<ezio>
is that .. right? i'm just having trouble wrapping my head around it
enterprisey has quit [Quit: Leaving]
<daed>
there's a lot of hard-coding in there, your initialize function should take parameters to set those values, and not use constants at the class level
<daed>
and when you create your test, you no longer need to stub that part out
jaguarmagenta has joined #ruby
<daed>
that's #1 at least... but it goes beyond that
<ezio>
This only works with this specific domain, so if someone ever wanted to
<ezio>
they'd have to write something else
<daed>
yeah, but you are trying to make this testable right?
<ezio>
but maybe i can make it generic
<ezio>
yes
<daed>
then you should always remove any hard coded URLs/etc period
Devalo has quit [Ping timeout: 258 seconds]
<ezio>
okay
izaac has joined #ruby
help_m has joined #ruby
<daed>
but, stubbing will just replace a method on your "Jira" class to return a specific thing
<help_m>
has anyone here used ruby shoes?
<daed>
it doesn't actually test much
<help_m>
I'm having issues with my code
<ezio>
daed, so should i alias L25 and then stub the alias?
<daed>
ezio: i would separate that into multiple pieces of code personally, a data provider (in this case, jira http data), a parser (to handle cookies)
<apeiros>
handicraftsman: yes, you'll do it right now. or I'll ban the bot.
gusrub_ has joined #ruby
<handicraftsman>
@apeiros, no need. And i'll not do that right now because look:
<handicraftsman>
!leave #ruby
ruibot has left #ruby ["My master said that!"]
<apeiros>
that's an option too
dionysus69 has quit [Ping timeout: 258 seconds]
<daed>
haha
<daed>
i like cinch, FWIW
<daed>
i've hooked cinch up with activerecord with good success
vuoto has quit [Remote host closed the connection]
ace05 has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
ace05 has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
last_staff has joined #ruby
ruibot has joined #ruby
<handicraftsman>
!ruibot ruby RUBY_VERSION
<ruibot>
2.3.1
<handicraftsman>
Prefix is "!ruibot", not "!"
<daed>
what's the purpose of this bot
<handicraftsman>
Just testing cinch
<daed>
odd channel to test in
<handicraftsman>
Just2Show
<handicraftsman>
Next my bot will be archive-bot
<handicraftsman>
!ruibot exit
smtudor has quit [Ping timeout: 250 seconds]
<handicraftsman>
LEL
<handicraftsman>
!ruibot ruby exit
ruibot has quit [Remote host closed the connection]
<daed>
you can send it pure ruby code to execute?
<daed>
what could go wrong
lenwood has quit [Ping timeout: 260 seconds]
<handicraftsman>
Yes.
<daed>
nothing quite like evaluating/executing arbirtrary code found on irc channels
jshjsh has quit [Ping timeout: 258 seconds]
<daed>
YOLO
edwinvdg_ has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 245 seconds]
<daed>
does anybody here ever have to deal with ruby 1.8 in production anywhere?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<daed>
i just had to upgrade a set of legacy code to 2.1 just to be able to use ruby-kafka
Silthias has joined #ruby
elastix has joined #ruby
infernix has quit [Ping timeout: 245 seconds]
edwinvdgraaf has joined #ruby
moei has joined #ruby
ruibot has joined #ruby
<handicraftsman>
Awww. Bugged. Wait
ruibot has quit [Remote host closed the connection]
<daed>
> At RubyConf 2015 in San Antonio, Yukihiro "Matz" Matsumoto announced Ruby 3x3. The goal of Ruby 3x3 is to make Ruby 3 be 3 times faster than Ruby 2. At AppFolio, we think this is awesome and want to help.
<ezio>
i think one thing i should do is have an authorization interface
<ezio>
just as a practice
<ezio>
for dip
<daed>
yeah
<ezio>
so someone could have a finger scan
<ezio>
or an rsa
<ezio>
or password or mfa, etc
chwbacca has quit [Remote host closed the connection]
<daed>
that 'private' section, move those into the initialize function
<ezio>
ok. why? :p
<ezio>
delete the whole private section?
jackneill__ has quit [Remote host closed the connection]
<daed>
yeah might as well
harai_ has quit [Ping timeout: 245 seconds]
<daed>
i don't know that i have ever in my life seen class level variables outside a function scope
<daed>
i didn't even know that was possible
<ezio>
will they be exposed?
<daed>
no, attr_reader and attr_accessor
<daed>
are what you use to expose variables
<ezio>
okay
<daed>
so class Jira; attr_reader :logged_in
<daed>
for example
<ezio>
okay
LoneHerm_ has quit [Remote host closed the connection]
<ezio>
so first i'm going to implement CredentialsAuth
Immune has quit [Ping timeout: 260 seconds]
<ezio>
or should it be AuthCredentials
<daed>
whatever makes you happy
<daed>
Auth is probably better
<daed>
AuthCredentials, AuthKey, AuthWhatever
<ezio>
okay
<ezio>
and then i have an "interface" method called auth?
<daed>
sure
<ezio>
okay. any other tips before i travel down that road for a bit?
<daed>
what is all this for?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ezio>
well, our prof gives us these tasks we're supposed to complete. he wants us to do mock testing on this jira thing which I cracked which was also on a tangent. but now i'm just off on a major tangent to satisfy my own knowledge
<daed>
ahh
<daed>
school stuff, k
<ezio>
but the main thing is to get mocks
<ezio>
that's the school part
<daed>
if that's the case
<ezio>
i actually do work for a software company
<daed>
i'd just use what you have now
<daed>
and use webmock to stub stuff out
<ezio>
and i would like to know the solid principles
<daed>
ahh
<daed>
commendable
<ezio>
i actually graduated from what you guys would call "community college" for programming and went back to get my degree so i've had 8 years in the industry
pragmaticus has quit [Ping timeout: 265 seconds]
<ezio>
actually
<ezio>
i was supposed to do homework today
<daed>
i don't put much value on school personally
<ezio>
i haven't put in a single minute on anything that i can claim
askhat has joined #ruby
<ezio>
yeah. i want a law degree
<ezio>
i mean programming is my passion, but law is a close second
<daed>
that's funny
<ezio>
i'm actually in a mixed law/compsci dual degree
<daed>
4 years ago, the best developer i interviewed at that job and hired immediately, was a guy with a law degree and not much recent programming experience
<ezio>
so i've already done one year of law school. this is my last year for my undergrad
<daed>
he beat every other candidate
<ezio>
you know why?
<ezio>
predicate logic
<daed>
hahaha
<ezio>
it's the common theme
<daed>
get this
<daed>
back in january, facebook contacted me, since i was his manager
<daed>
i had to write a document up to recommend him to work at FB
<daed>
now he's an engineer there
<daed>
but he only has law degrees, no engineering degrees
<ezio>
lol some guy from our department is now working at facebook too
<Nilium>
You have to very carefully remove stuff from the stdlib using proguard.
<daed>
why not just use java at that point
<Nilium>
Anyway, the complexity of the language, and particularly the difficulty of actually getting through the docs for it (the collections library in particular is horrifying), sbt, etc. is just not great.
<daed>
have you heard of kotlin?
<ezio>
ruby still has a long way to go as a language
<Nilium>
Yes.
<daed>
ezio: no way.
<havenwood>
Nilium: If you have a penchant for static typing and Ruby you might give Crystal a look if you haven't already.
<Zarthus>
can't wait for kotlin to catch the major popularity
<daed>
the ruby language is amazing
<Nilium>
havenwood: It's somewhere on my list.
<daed>
ahh yeah, crystal is another
<Nilium>
There was another language, Mirah, that was interesting. Not sure where it's at now.