baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
vikaton has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
rgtk has quit [Ping timeout: 264 seconds]
jgt has quit [Ping timeout: 240 seconds]
<Joufflu> RIP irc2000
<Joufflu> anyone available to help with a noob, question ?
<Radar> shoot
rgtk has joined #ruby
djbkd has joined #ruby
neoncortex has quit [Disconnected by services]
<Radar> Joufflu: what's up?
cschneid_ has joined #ruby
<Joufflu> So I am playing with arrays in ruby and trying to understand each_with_index. I currently have https://repl.it/GX66/4
<Joufflu> Radar, thanks!
<Joufflu> and I wondering I can get the output in a new array
esObe__ has quit [Remote host closed the connection]
<Joufflu> how*
<Radar> Without modifying r?
<Joufflu> exactly
esObe_ has joined #ruby
<Joufflu> I"m thinking of just putting an empty array = []
charliesome has joined #ruby
<Radar> bbl
<Joufflu> Radar, i think you have to hit save then share the link
<Joufflu> kk
bkxd has joined #ruby
cschneid_ has quit [Ping timeout: 256 seconds]
esObe_ has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Excess Flood]
JeanCarloMachado has quit [Ping timeout: 256 seconds]
cfec0b8d has quit [Quit: Leaving.]
JeanCarloMachado has joined #ruby
skweek has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
<Joufflu> zip
__Yiota has joined #ruby
Lord_of_Life has joined #ruby
sebd has quit [Ping timeout: 258 seconds]
rgtk has quit [Ping timeout: 260 seconds]
cagmz has quit [Quit: Leaving]
toretore has quit [Ping timeout: 246 seconds]
JeanCarloMachado has quit [Ping timeout: 256 seconds]
JeanCarloMachado has joined #ruby
sebd has joined #ruby
dh64 has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
roamingdog has joined #ruby
roamingdog has quit [Ping timeout: 256 seconds]
dh64 has quit [Quit: Konversation terminated!]
mesamoo has joined #ruby
nOwz has joined #ruby
nOwz has quit [Ping timeout: 258 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maattdd has quit [Ping timeout: 240 seconds]
m4yfield has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
enterprisey has quit [Remote host closed the connection]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
montanonic has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
BTRE has quit [Read error: Connection reset by peer]
BTRRY has joined #ruby
marr has quit [Ping timeout: 258 seconds]
BTRRY is now known as BTRE
arescorpio has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
lightheaded has joined #ruby
milardovich has joined #ruby
knight33 has joined #ruby
ElDoggo has joined #ruby
usrben has joined #ruby
HoierM has quit [Quit: Leaving]
HoierM has joined #ruby
prometheanfire has left #ruby [#ruby]
houhoulis has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Remote host closed the connection]
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
ElDoggo has quit [Remote host closed the connection]
zeroDi has quit [Quit: WeeChat 1.7]
cschneid_ has joined #ruby
enterprisey has joined #ruby
nowhereman has quit [Remote host closed the connection]
lightheaded has quit [Ping timeout: 258 seconds]
lightheaded has joined #ruby
mzo has quit [Quit: :*]
rhyselsmore has quit [Ping timeout: 260 seconds]
<pytuger> I was using the class example in irb from https://www.ruby-lang.org/en/ and failed to get the posted output. I used 2 spaces for indentation after class and function definition statements, and typed the code exactly as it was
<pytuger> is my irb version to old? or is there a common logical mistake I am overlooking
<pytuger> too old*
jnr has joined #ruby
jnr has left #ruby [#ruby]
<pytuger> SyntaxError: (irb):24: class/module name must be CONSTANT
d^sh has quit [Ping timeout: 264 seconds]
d^sh has joined #ruby
nowhereman has joined #ruby
<havenwood> pytuger: It sounds like the "g" in your `class Greeter` isn't uppercase?
<pytuger> havenwood, you'd be correct. a major mistake on my part
knight33 has quit [Read error: Connection reset by peer]
milardovich has quit []
ddffg has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
cschneid_ has quit [Remote host closed the connection]
GodFather__ has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Quit: WeeChat 1.7]
nOwz has joined #ruby
hahuang65 has joined #ruby
nOwz has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
opt has quit [Ping timeout: 276 seconds]
haylon has quit [Ping timeout: 246 seconds]
enterprisey has quit [Ping timeout: 260 seconds]
pilne has quit [Quit: Quitting!]
oetjenj has joined #ruby
opt has joined #ruby
dviola has quit [Quit: WeeChat 1.7]
enterprisey has joined #ruby
cschneid_ has joined #ruby
Derperperd has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
minimalism has joined #ruby
houhoulis has joined #ruby
shakes has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
mzo has joined #ruby
libastral has quit [Ping timeout: 240 seconds]
libastral has joined #ruby
__Yiota has joined #ruby
mula has joined #ruby
oetjenj has quit [Quit: Textual IRC Client: www.textualapp.com]
ozcanesen has joined #ruby
shakes has quit [Quit: Leaving]
A124 has quit [Ping timeout: 240 seconds]
Limix has joined #ruby
mula has quit [Remote host closed the connection]
HoierM has quit [Ping timeout: 260 seconds]
Myk267 has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
Channel6 has quit [Quit: Leaving]
jenrzzz has joined #ruby
Trynemjoel has joined #ruby
Derperperd has quit [Max SendQ exceeded]
Derperperd has joined #ruby
bkxd has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
Trynemjoel has joined #ruby
alan_w has quit [Quit: WeeChat 1.4]
mzo has quit [Quit: :*]
pwnd_nsfw has joined #ruby
jamesaxl has joined #ruby
Blacink has joined #ruby
Blacink has quit [Client Quit]
pwnd_nsfw` has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
chouhoulis has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
roamingdog has joined #ruby
tristanp has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
roamingdog has joined #ruby
gix has quit [Ping timeout: 260 seconds]
gix has joined #ruby
jane_booty_doe has joined #ruby
ahrs has quit [Remote host closed the connection]
jeyraof^mbpr has joined #ruby
ahrs has joined #ruby
Derperperd has quit [Max SendQ exceeded]
nOwz has joined #ruby
Derperperd has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
arescorpio has quit [Quit: Leaving.]
nOwz has quit [Ping timeout: 240 seconds]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jshjsh has joined #ruby
JoshS has quit [Disconnected by services]
pwnd_nsfw` has joined #ruby
jshjsh is now known as JoshS
tmtwd has joined #ruby
tmtwd has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
nikivi has quit [Quit: ZNC 1.6.5 - http://znc.in]
Limix has quit [Quit: Limix]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby
saneax-_-|AFK is now known as saneax
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
saneax is now known as saneax-_-|AFK
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
saneax-_-|AFK is now known as saneax
Derperperd has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
HippoDippo has joined #ruby
<HippoDippo> I have not learned rails yet, and was wondering what people mean when they say "Rails has alot of magic".
<HippoDippo> are they saying that it is very abstract and is hard to tell why things do what they do
Gigi12 has joined #ruby
houhoulis has quit [Remote host closed the connection]
<Gigi12> Hi. Question: when an equal sign '=' appears inside a block comment, is the line following that equal sign actually evaluated?
dionysus69 has quit [Ping timeout: 240 seconds]
<elomatreb> Gigi12: Nothing in a comment should be evaluated
anisha has joined #ruby
<Gigi12> Thanks elomatreb. So for instance, in a rails proj, in app/assets/stylesheets/application.css , where there's a line: '*= require_tree' - that bit isn't evaluated. That's just another bit of comment?
HippoDippo has quit [Quit: Going offline, see ya! (www.adiirc.com)]
HippoDippo has joined #ruby
HippoDippo has quit [Client Quit]
renchan has joined #ruby
roflmyeggo has quit [Ping timeout: 260 seconds]
<elomatreb> Oh, that's something else. You're in a css file and (presumably) using Sprockets, that bit will include some other files.
<elomatreb> It's not a Ruby comment however
<elomatreb> Gigi12: ^
<Gigi12> elomatreb: sorry. of course! thanks for the clarification!
v1_ has joined #ruby
Gigi12 has quit [Quit: Bye]
nothingnew has quit [Remote host closed the connection]
_whitelogger has joined #ruby
jgt has joined #ruby
bkxd has joined #ruby
dionysus69 has joined #ruby
Derperperd has joined #ruby
Alina-malina has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
djbkd has quit [Quit: Leaving...]
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
ddrmanxbxfr has quit [Remote host closed the connection]
adgtl- has quit [Remote host closed the connection]
lightheaded has quit [Ping timeout: 258 seconds]
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
nOwz has joined #ruby
rhyselsmore has joined #ruby
Alina-malina has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
nOwz has quit [Ping timeout: 256 seconds]
jnoob22 has quit [Ping timeout: 246 seconds]
nowhereman has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
nowhereman has joined #ruby
lightheaded has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.7]
CloCkWeRX has joined #ruby
jnoob22 has joined #ruby
jshjsh has joined #ruby
ta_ has quit [Remote host closed the connection]
JoshS has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 246 seconds]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
al2o3-cr has joined #ruby
UserJosh has joined #ruby
tomphp has joined #ruby
jgt has quit [Quit: WeeChat 1.4]
jshjsh has quit [Ping timeout: 268 seconds]
willardg has joined #ruby
Pumukel has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
enterprisey has quit [Remote host closed the connection]
bkxd has joined #ruby
CloCkWeRX has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
bigkevmcd has joined #ruby
Chagel has quit [Ping timeout: 258 seconds]
roamingdog has quit []
last_staff has joined #ruby
cschneid_ has joined #ruby
govg has quit [Ping timeout: 260 seconds]
kernelPaniq has joined #ruby
conta has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
__Yiota has joined #ruby
dionysus69 has joined #ruby
yaewa has joined #ruby
moei has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
uncertainty has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
vondruch has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has quit [Read error: Connection reset by peer]
lightheaded has quit [Remote host closed the connection]
mark_66 has joined #ruby
Mortomes|Work has joined #ruby
lightheaded has joined #ruby
andikr has joined #ruby
nowhereman has quit [Remote host closed the connection]
jaruga________ has joined #ruby
Joufflu has quit [Ping timeout: 260 seconds]
willardg has quit [Quit: Textual IRC Client: www.textualapp.com]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pandaant has joined #ruby
nOwz has joined #ruby
Qommand0r has quit [Quit: WeeChat 1.7]
SCHAAP137 has quit [Read error: Connection reset by peer]
nOwz has quit [Client Quit]
jestjb has joined #ruby
pandaant has quit [Remote host closed the connection]
ta_ has joined #ruby
uncertainty has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
UserJosh is now known as JoshS
antgel has joined #ruby
esObe_ has joined #ruby
stan has joined #ruby
maattdd has joined #ruby
lenwood has joined #ruby
aganov has joined #ruby
vondruch has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
teclator has quit [Remote host closed the connection]
peirama has joined #ruby
stan has quit [Read error: Connection reset by peer]
Silthias has quit [Ping timeout: 240 seconds]
stan has joined #ruby
ddffg has joined #ruby
charliesome has joined #ruby
uncertainty has joined #ruby
__Yiota has joined #ruby
Qommand0r has joined #ruby
fivmo has joined #ruby
__Yiota has quit [Client Quit]
peirama has quit [Quit: WeeChat 1.7]
peirama has joined #ruby
SCHAAP137 has joined #ruby
lightheaded has quit [Remote host closed the connection]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
lightheaded has joined #ruby
jaruga________ is now known as jaruga
ElDoggo has joined #ruby
teclator has joined #ruby
ElDoggo has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 258 seconds]
peirama has quit [Quit: WeeChat 1.7]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peirama has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
uncertainty has quit [Ping timeout: 260 seconds]
TheVip has joined #ruby
mesamoo has quit [Ping timeout: 256 seconds]
last_staff has quit [Quit: last_staff]
aufi has joined #ruby
uncertainty has joined #ruby
Burgestrand has joined #ruby
itarato has joined #ruby
TheVip has quit [Read error: Connection reset by peer]
xen0fon has quit [Quit: xen0fon]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
tomphp has joined #ruby
uncertainty has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
toretore has joined #ruby
itarato has quit [Ping timeout: 256 seconds]
itarato has joined #ruby
kies has joined #ruby
jsrn_ has joined #ruby
flying has joined #ruby
maattdd_ has joined #ruby
adgtl has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
vondruch has quit [Quit: vondruch]
vali has joined #ruby
tens0r has joined #ruby
maattdd has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
Beams has joined #ruby
nofxxx has joined #ruby
Burgestrand has joined #ruby
marr has joined #ruby
dionysus69 has quit [Quit: dionysus69]
uncertainty has joined #ruby
dionysus69 has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
nofxxxx has quit [Ping timeout: 256 seconds]
astrobunny has quit [Remote host closed the connection]
vondruch has joined #ruby
xenops has joined #ruby
mark_66 has quit [Quit: Leaving.]
mark_66 has joined #ruby
charliesome has joined #ruby
gregf_ has joined #ruby
yqt has joined #ruby
rhyselsmore has joined #ruby
nobitanobi has joined #ruby
GinoManWrx has joined #ruby
Kug3lis has joined #ruby
DoubleMalt has joined #ruby
GinoManWorks has quit [Ping timeout: 246 seconds]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xen0fon has joined #ruby
xen0fon has quit [Client Quit]
tvw has joined #ruby
ferr1 has joined #ruby
jeyraof^mbpr has quit [Quit: Leaving]
snickers has joined #ruby
snickers has quit [Quit: leaving]
snickers has joined #ruby
flying has quit [Remote host closed the connection]
peirama has quit [Quit: WeeChat 1.7]
rhyselsmore has joined #ruby
<snickers> Hi I try to extend migration generator for some model and I write something like this https://gist.github.com/pwojcieszonek/63923c58347039084adf5cc3e250ba40, but i get error like in last line
xen0fon has joined #ruby
xen0fon has quit [Client Quit]
czeq has joined #ruby
<herwin> sounds like a question for #rails
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edliss has joined #ruby
flying has joined #ruby
harfangk has joined #ruby
xen0fon has joined #ruby
Chagel has joined #ruby
GodFather has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
lenwood has quit [Ping timeout: 264 seconds]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
bkxd has joined #ruby
minimalism has quit [Quit: minimalism]
lenwood has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
Chagel has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
raul782 has quit [Read error: Connection reset by peer]
xen0fon has quit [Quit: xen0fon]
coatezy has quit [Ping timeout: 256 seconds]
larcara has joined #ruby
disem has joined #ruby
coatezy has joined #ruby
Fernando-Basso has joined #ruby
huddy has joined #ruby
flying has quit [Remote host closed the connection]
ghoti has quit [Ping timeout: 264 seconds]
ghoti has joined #ruby
Chagel has quit [Ping timeout: 264 seconds]
Chagel has joined #ruby
milardovich has joined #ruby
lxsameer has joined #ruby
flying has joined #ruby
xen0fon has joined #ruby
__Yiota has joined #ruby
tvw has quit [Remote host closed the connection]
larcara has quit [Remote host closed the connection]
tvw has joined #ruby
larcara has joined #ruby
jameser has joined #ruby
uncertainty has quit [Ping timeout: 264 seconds]
disem has quit []
<Bish> since webassembly is here, has anyone ever tried compiling ruby to it?
<Bish> i googled for it , ofc, but it's all pretty fishy
<Bish> there is opal, which is really great, i tried doing things with it, but i ended up having super large .js files, which made it impractical
<Bish> so, if there is webassembly, pretty soon, i wonder if there could be the all-ruby-webapplication, without disadvantages
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Chagel has quit [Ping timeout: 260 seconds]
uncertainty has joined #ruby
ldnunes has joined #ruby
Zequal has quit [Ping timeout: 240 seconds]
HoierM has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CloCkWeRX has left #ruby [#ruby]
uncertainty has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
jameser has quit [Client Quit]
bkxd has joined #ruby
cullaloe has joined #ruby
JeanCarloMachado has joined #ruby
coatezy has quit [Ping timeout: 258 seconds]
cullaloe has quit [Client Quit]
jameser has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 260 seconds]
coatezy has joined #ruby
larcara has quit [Remote host closed the connection]
larcara has joined #ruby
dionysus69 has joined #ruby
jestjb has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 256 seconds]
edliss has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
larcara has quit [Ping timeout: 258 seconds]
<allisio> Bish: Did you try passing the Opal-generated JS through Google's Closure Compiler?
synthroi_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
edliss has joined #ruby
astrobunny has joined #ruby
uncertainty has joined #ruby
umdstu has joined #ruby
<umdstu> how would I convert a datetime value to a 64bit unsigned integer
synthroid has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
astrobunny has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edliss has quit [Ping timeout: 256 seconds]
herbmillerjr has joined #ruby
<Bish> allisio: would that make it 1/10 of the size?
<allisio> Bish: Try it.
<Bish> otherwise, not feasible
<Bish> is that the correct word, no clue
jameser has joined #ruby
<allisio> umdstu: To what end?
Qchmqs has joined #ruby
<Burgestrand> umdstu DateTime doesn't necessarily have a numerical representation. Time does, however, and you can #to_time on DateTime.
tens0r has quit [Quit: tens0r]
lhambley has joined #ruby
fivmo has quit [Ping timeout: 260 seconds]
<lhambley> hi all, looking for a sanity check - Time.strptime(Time.now.strftime('%s%6N'), "%s%6N") blows up with 'ArgumentError: invalid strptime format - `%s%6N'' how else is one supposed to parse microseconds without losing resolution ?
Derperperd has quit [Ping timeout: 268 seconds]
__Yiota has joined #ruby
edliss has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cibs has quit [Ping timeout: 256 seconds]
<allisio> Everything has a numerical representation.
<Burgestrand> Like pie.
lightheaded has quit [Remote host closed the connection]
cibs has joined #ruby
edliss has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swills has quit [Quit: Leaving]
Kug3lis has joined #ruby
<Burgestrand> lhambley Can't tell you why you receive that error, but you can get creative and use Time.at with Rational.
<Burgestrand> lhambley Rational allows you to express a fractional value without losing precision.
jameser has joined #ruby
<Burgestrand> >> Time.at(Rational(Time.now.strftime("%s%6N"), "1000000"))
<ruby[bot]> Burgestrand: # => 2017-03-20 12:24:32 +0000 (https://eval.in/757549)
<lhambley> thanks, that looks interesting
<lhambley> another thing that works is:
<lhambley> >> Time.strptime(Time.now.strftime('%s%6N')*1000, "%N")
<ruby[bot]> lhambley: # => undefined method `strptime' for Time:Class (NoMethodError) ...check link for more (https://eval.in/757550)
jameser has quit [Client Quit]
lightheaded has joined #ruby
Derperperd has joined #ruby
daBee has joined #ruby
swills has joined #ruby
pwnd_nsfw` has joined #ruby
<Burgestrand> lhambley Wow, that's so obvious I find it funny I didn't think of it :)
<lhambley> :) indeed
raul782 has quit [Ping timeout: 240 seconds]
<lhambley> I suppose "%s" is "greedy", hence the problem parsing things back in
<Burgestrand> lhambley Just make sure you convert it to an integer first, or you'll get quite a surprising result!
<Burgestrand> >> "Hello" * 5
<ruby[bot]> Burgestrand: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<lhambley> quite :)
daBee has quit [Quit: daBee]
<Burgestrand> lhambley Maybe, but my version of Ruby complains about "%6N" but it's lonesome too.
<lhambley> I think then the simpler answer might be that strptime doesn't accept all the same tokens as strftime, which is a shame, since they link each other in the docs
<lhambley> but fair enough, we both learned something today ;-)
pwnd_nsfw has quit [Ping timeout: 260 seconds]
larcara has joined #ruby
raul782 has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
ghoti has quit [Ping timeout: 264 seconds]
<Burgestrand> lhambley Yeah, it's possible that the documented supported formats contains a copy-paste error :)
<Burgestrand> lhambley i.e. the documentation lies
<lhambley> documentation always lies :D
<Burgestrand> ;)
nobitanobi has joined #ruby
cibs has quit [Ping timeout: 246 seconds]
jane_booty_doe has quit [Quit: Leaving]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edliss has joined #ruby
cibs has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
raul782 has quit [Ping timeout: 258 seconds]
t-recx has joined #ruby
tvw has quit []
sepp2k has joined #ruby
hutch34 has joined #ruby
Kug3lis has joined #ruby
bkxd has joined #ruby
psychicist__ has joined #ruby
unshadow has joined #ruby
Derperperd has joined #ruby
edliss has quit [Ping timeout: 264 seconds]
edliss has joined #ruby
hutch34 has quit [Ping timeout: 256 seconds]
hutch34 has joined #ruby
vifino has quit [Quit: Who turned this off?! D:<]
<unshadow> Hi Guys, looking at the chan's rules I dont see any issues with writing thise here (If i'm mistaken please notify me and I wont do it again), The company I work at is looking for a "pure" Ruby dev, no rails, no web, full back-end and network, we are ok with working remote. see job desc here: https://www.linkedin.com/jobs/view/249908166/ (cv can be sent to hr@safe-t.com)
raul782 has joined #ruby
mzo has joined #ruby
bmurt has joined #ruby
uncertainty has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 256 seconds]
hutch34 has quit [Read error: Connection reset by peer]
Tempesta has quit [Quit: See ya!]
rgr has joined #ruby
uncertainty has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
dionysus69 has quit [Remote host closed the connection]
yeticry_ has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
yeticry has joined #ruby
chouhoulis has joined #ruby
raul782 has quit [Ping timeout: 256 seconds]
teddysmoker has joined #ruby
czeq has quit [Ping timeout: 246 seconds]
houhoulis has quit [Ping timeout: 246 seconds]
Tempesta has joined #ruby
raul782 has joined #ruby
<Bish> i like how job offers in irc are getting more common
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
Olipro has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Remote host closed the connection]
hutch34 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Olipro has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
DLSteve has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
baked__beans has joined #ruby
raul782 has quit [Ping timeout: 256 seconds]
ElDoggo has joined #ruby
ElDoggo has quit [Remote host closed the connection]
sleetdrop has joined #ruby
ElDoggo has joined #ruby
ElDoggo has quit [Remote host closed the connection]
GodFather has joined #ruby
<unshadow> Bish: do they ?
<jpleau> they think that if you can connect to irc chances are you might maybe have a brain!
patarr has joined #ruby
<unshadow> Hm... TBH it's just a big group I usually hang in and It's a Ruby group , which is what we are serching for :)
vali has quit [Quit: vali]
larcara has quit [Read error: No route to host]
larcara has joined #ruby
Lord_of_Life has quit [Excess Flood]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Lord_of_Life has joined #ruby
mwlang has quit [Read error: Connection reset by peer]
mwlang has joined #ruby
atom3_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
atom3 has quit [Ping timeout: 264 seconds]
ozcanesen has joined #ruby
millerti has joined #ruby
tomphp has joined #ruby
Pumukel has joined #ruby
Derperperd has quit [Max SendQ exceeded]
agent_white has joined #ruby
mula has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
yaewa has quit [Quit: Leaving...]
Derperperd has joined #ruby
gnufied has joined #ruby
moei has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
govg has joined #ruby
Chagel has joined #ruby
charliesome has joined #ruby
raul782 has joined #ruby
hutch34 has joined #ruby
SirFunk has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 260 seconds]
<Bish> unshadow: well, i saw it yesterday and today, so i figured maybe it's just luck
<agent_white> Mornin' folks
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mostlybadfly> Might be more a Ruby thing. In case rails isn't the correct channel
<mostlybadfly> 9:09 AM <mostlybadfly> hello all, I keep getting this error when installing puma, but haven't been able to get a good response with info by googling, any thoughts? https://gist.github.com/mostlybadfly/5b06f3ac0320bc3670352f1ee7e16254
<mostlybadfly> I thought based on looking online that openssl needs to be installed but it is, but perhaps I have this installed incorrectly
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
ElDoggo has joined #ruby
esObe_ has quit [Remote host closed the connection]
vifino has joined #ruby
xen0fon has quit [Quit: xen0fon]
duckpuppy has joined #ruby
<matthewd> mostlybadfly: Yeah, sounds like it doesn't like your openssl. Might be happier with 1.0?
Fernando-Basso has quit [Quit: WeeChat 1.7]
<herwin> yes, openssl 1.1.0 introduced a number of backwards incompatibilities
ghoti has joined #ruby
mula has quit [Remote host closed the connection]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe_ has joined #ruby
<mostlybadfly> I see , I'll give that a shot thanks!
Kug3lis has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
Burgestrand has joined #ruby
lenwood has joined #ruby
lmc has joined #ruby
chouhoulis has joined #ruby
chouhoul_ has joined #ruby
tvw has joined #ruby
raul782 has quit [Ping timeout: 260 seconds]
muelleme has joined #ruby
yehowyada has joined #ruby
synthroi_ has quit [Remote host closed the connection]
hxegon_afk has quit [Quit: leaving]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 256 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
ElDoggo has quit [Remote host closed the connection]
akahn has joined #ruby
Kug3lis has joined #ruby
saneax is now known as saneax-_-|AFK
milardovich has quit [Ping timeout: 268 seconds]
hxegon has joined #ruby
patarr_ has joined #ruby
uncertainty has quit [Ping timeout: 240 seconds]
be_______ has joined #ruby
raspado has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Derperperd has quit [Max SendQ exceeded]
ngqvhx has joined #ruby
patarr has quit [Ping timeout: 256 seconds]
synthroid has joined #ruby
rippa has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
ben___ has quit [Ping timeout: 246 seconds]
terens has quit [Remote host closed the connection]
Derperperd has joined #ruby
LyndsySimon has joined #ruby
uncertainty has joined #ruby
<LyndsySimon> Is it possible to delete a class after you're created it in Ruby?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LyndsySimon> I'm testing a metaclass, and I want to create a new subclass for each test run.
chouhoulis has quit [Ping timeout: 246 seconds]
<hxegon> LyndsySimon: Maybe an anonymous class would work. What test framework you using?
<LyndsySimon> rspec. I'm 99% sure anonymous classes are the way.
<LyndsySimon> I can set the test subject to be a "fresh" subclass each time.
snickers has quit [Ping timeout: 240 seconds]
<hxegon> LyndsySimon: probably, can you link to a gist?
SuperLag has quit [Quit: reboot]
Derperperd has quit [Ping timeout: 256 seconds]
mim1k has joined #ruby
yeticry_ has joined #ruby
<LyndsySimon> hxegon: Yep, as soon as I get a working spec here, I can at least paste the spec. I don't know if I can paste the object under test or not.
milardovich has joined #ruby
ngqvhx has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
Blacink has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 256 seconds]
montanonic has joined #ruby
cibs has joined #ruby
yeticry_ has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 260 seconds]
mula has joined #ruby
yeticry has joined #ruby
bkxd has joined #ruby
ElDoggo has joined #ruby
Cohedrin has joined #ruby
raul782 has joined #ruby
<LyndsySimon> hxegon: Here you go - it's just the spec, but it works. I get a "fresh" subclass for each example: https://gist.github.com/lyndsysimon/dd979841a23e4f3794aadb4f9a78df5a
anisha has quit [Quit: Leaving]
Cohedrin has quit [Client Quit]
<LyndsySimon> The `class_eval` blocks are spurious for this, but I wanted the syntax of the tests to mirror the actual usage as closely as possible so they can also serve as documentation.
BSaboia has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
saneax-_-|AFK has quit [Ping timeout: 246 seconds]
snickers has joined #ruby
Derperperd has joined #ruby
cdg has joined #ruby
blackpajamas has quit [Quit: WeeChat 1.7]
SuperLag has joined #ruby
naprimer_2 has joined #ruby
Snowy has joined #ruby
bmurt has quit [Read error: No route to host]
bmurt_ has joined #ruby
pandaant has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
naprimer has quit [Ping timeout: 256 seconds]
<hxegon> LyndsySimon: so BaseDatatable is intended to be a superclass?
<LyndsySimon> hxegon: Correct. Never instantiated or used directly.
admin1 is now known as roger_rabbit
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
<LyndsySimon> hxegon: If I were writing Python, BaseDatatable would be an ABC (Abstract Base Class). I don't know of an analogue to that in Ruby though.
BSAlb has joined #ruby
<hxegon> LyndsySimon: Looks good to me
teclator has quit [Remote host closed the connection]
<LyndsySimon> 👍
mwlang has quit [Quit: mwlang]
<LyndsySimon> I'm going to write up a quick Jupyter Notebook showing how it works - it wasn't very easy to search for a solution.
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
BSaboia has quit [Disconnected by services]
BSAlb is now known as BSaboia
<hxegon> LyndsySimon: Just for my own personal curiosity, can I see the BaseDatatable class?
<LyndsySimon> It's a mess, contains a bit of business logic, and has a couple of TODOs left. If you're OK with that, I can strip the business logic and send you a link. One sec.
tvw has quit []
minimalism has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
montanonic has quit [Ping timeout: 240 seconds]
<LyndsySimon> There is also a view helper that builds a <table> element, and an associated javascript file that initializes it properly and hooks it up to the AJAX data source.
marr123 has joined #ruby
marr is now known as Guest80359
marr123 is now known as marr
Guest80359 has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
Chagel has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
unshadow has quit [Quit: leaving]
milardovich has joined #ruby
username1 has joined #ruby
username2 has joined #ruby
Cohedrin has joined #ruby
<hxegon> LyndsySimon: I've seen far worse messes :)
<hxegon> LyndsySimon: I would suggest a couple of things though; remove get_ from method names, and think about extracting a column class
<LyndsySimon> OOoh, I like the idea of extracting a column class. I'm doing quite a bit of logic on manipulating what would be its internal data, and I see more logic like that in the near future. That would make it much easier to test.
<LyndsySimon> I agree on get_*, but I'm extended a gem with this work (ajax-datatables-rails). They're using that convention so I stuck with it.
LuckyABA has joined #ruby
benlieb has joined #ruby
<LyndsySimon> Generally speaking if I have setters/getters on a class I prefer to hide that from the consumer. In Ruby that means writing `*=` methods; in Python that means writing property methods and setters.
<LyndsySimon> Thanks!
Alina-malina has quit [Ping timeout: 260 seconds]
tvw has quit []
bmurt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 240 seconds]
uncertainty has quit [Ping timeout: 260 seconds]
amclain has joined #ruby
antoniobeyah has joined #ruby
d0nn1e has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
Alina-malina has joined #ruby
mwlang has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<hxegon> yw LyndsySimon, I'll have to look into juypter notebooks more.
d0nn1e has joined #ruby
raul782 has quit [Remote host closed the connection]
chouhoulis has joined #ruby
milardovich has quit [Remote host closed the connection]
raul782 has joined #ruby
muelleme has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
Qchmqs has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
marr has quit [Ping timeout: 264 seconds]
viuo has joined #ruby
sid_fules has joined #ruby
<LyndsySimon> hxegon: I use them extensively for learning, teaching, and for recording ideas that I might want to refer to later.
<LyndsySimon> It's easier to push a new notebook file to GitHub than to write a blog post :)
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hxegon> My programmer instincts say, why not both? Make a script that uploads to github and publishes to blog :)
SeepingN has joined #ruby
Antiarc has joined #ruby
<baweaver> Norvig does it a lot
aganov has quit [Remote host closed the connection]
<LyndsySimon> baweaver: I actually didn't know that. That's awesome :)
<LyndsySimon> I've been using Jupyter since it was iPython, before the notebook functionality was available.
<LyndsySimon> hxegon: Well... my blog is mostly dead. At some point I'll get around to revitalizing it, and once I do I'm not sure if it will still be a traditional blog.
milardovich has joined #ruby
<LyndsySimon> hxegon: I'm thinking it will be more like a tumblog, but with content ranging from code snippets to programming essays to photography to random jokes and such.
saneax-_-|AFK has joined #ruby
<LyndsySimon> hxegon: I'd actually like to abandon Facebook at that point.
Burgestrand has quit [Quit: Closing time!]
raspado has quit [Read error: Connection reset by peer]
raspado has joined #ruby
Beams has quit [Quit: .]
milardovich has quit [Ping timeout: 256 seconds]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
gusrub has joined #ruby
doublemalt_ has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
rgr has quit [Remote host closed the connection]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgr has joined #ruby
DoubleMalt has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
rgr has quit [Remote host closed the connection]
rgr has joined #ruby
lenwood has joined #ruby
lightheaded has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Client Quit]
Pumukel has joined #ruby
mark_66 has quit [Remote host closed the connection]
dlitvak has joined #ruby
FooMunki has quit [Quit: FooMunki]
Blacink has quit [Quit: This computer has gone to sleep]
conta has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
FooMunki has joined #ruby
Derperperd has quit [Ping timeout: 256 seconds]
tlaxkit has joined #ruby
lacrymology has joined #ruby
<lacrymology> does anyone know what's going on here? http://dpaste.com/3151PTC
enterprisey has joined #ruby
<baweaver> bundle exec rake --version
teclator has joined #ruby
mula has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
mminski has joined #ruby
<mminski> ops
hutch34 has joined #ruby
<mminski> any awesome ruby progammers here?
<Eiam> awesome, definitely not
<Eiam> did you have an actual question though?
sid_fules has quit [Quit: Leaving...]
<ytti_> my mom says i'm awesome
HoierM has quit [Ping timeout: 240 seconds]
<ytti_> pretty sure she's authority on the matter
<Eiam> (I mean, im not awesome, I'd say baweaver, radar and some others are pretty awesome tho)
<Eiam> mminski: but I bet someone, regardless of how awesome they are, might be able to answer a question with more substance =)
flying has quit []
<mminski> i want to program a ruby game
<mminski> educational game
<mminski> need some people who want to join the project
<mminski> using 'gosu' gem
duderonomy has quit [Ping timeout: 268 seconds]
FooMunki has quit [Quit: FooMunki]
lightheaded has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
FooMunki has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
xen0fon has joined #ruby
blackmesa has joined #ruby
[Butch] has joined #ruby
<hxegon> mminski: what are you trying to teach with it? Do you have a game design in mind?
akahn has quit [Quit: Connection closed for inactivity]
Beams_ has joined #ruby
<mminski> yeah teaching ruby game
nobitanobi has quit [Remote host closed the connection]
<hxegon> ah, I see what you mean.
<mminski> i already scrabed the data for it
<mminski> from rubydocs
AnomalousBit has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
<mminski> datamined it
<hxegon> mminski: do you have a game design in mind?
<mminski> hxegon: yes
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
graft has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
HoierM has joined #ruby
andikr has quit [Remote host closed the connection]
<hxegon> could you describe it?
blackmesa has quit [Ping timeout: 264 seconds]
xen0fon has quit [Quit: xen0fon]
<mminski> youre in or out?
bkxd has joined #ruby
graft has joined #ruby
<mminski> we could just open a bitbucket repo (git) or subversion whatever
aufi has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
<mminski> and start coding ^__^
<canton7> noone's going to commit their time without more info :P
dionysus69 has quit [Ping timeout: 256 seconds]
<hxegon> mminski: depends on the game design. I don't need a technical document, but I'd like to know what you're idea for it is before I commit to anything :)
fearoffish has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
<hxegon> your*
jsrn_ has quit [Quit: Leaving]
<mminski> something like super mario
<Bish> i remember someone saying there is a shortcut to get the folder of the running file
muelleme has joined #ruby
<Bish> something like __DIR__
<matthewd> Bish: __dir__
<mminski> File.dirname(__FILE__)
<adam12> I wonder the logic behind the downcase version
<Bish> minimalism: >shortcut
<Bish> matthewd: *
mula has joined #ruby
anisha has joined #ruby
<Bish> sorry minimalism your nick would've told me that you know
hahuang65 has joined #ruby
<mminski> the game should teach the player all ruby objects and their methods
<mminski> collecting the right method-to-object relations
edliss has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hxegon> mminski: hmm... alright, I'm at least a bit in. Can't promise much because I'm busy right now, but if you want to start a github or bitbucket repo or whatever, we can start making a design doc
rt has quit [Ping timeout: 258 seconds]
Snowy has quit [Remote host closed the connection]
<mminski> awesome programmer
<mminski> i'll send you the link
Snowy has joined #ruby
tomphp has quit [Ping timeout: 240 seconds]
mula has quit [Remote host closed the connection]
gregf_ has joined #ruby
mula has joined #ruby
Snowy_ has joined #ruby
jgnagy has joined #ruby
<canton7> adam12, __FILE__ is a constant, __dir__ is a method
baked__beans has quit [Ping timeout: 260 seconds]
<adam12> canton7: Makes sense - thanks for the clarification.
jamesaxl has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
Snowy has quit [Ping timeout: 264 seconds]
jamesaxl has joined #ruby
itarato has quit [Quit: WeeChat 1.4]
enterprisey has quit [Remote host closed the connection]
<lacrymology> baweaver: sorry, didn't see that
<lacrymology> 14:00 $ bundle exec rake --version
<lacrymology> rake, version 10.5.0
<baweaver> bundle exec rails s
rt has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
mula has quit [Remote host closed the connection]
kirun has joined #ruby
<dminuoso> baweaver: That is not needed.
<dminuoso> baweaver: Rails will hold your hands for you.
<dminuoso> Just to be sure you really never know when to need bundle exec and when not.
<dminuoso> :|
huddy has quit [Quit: Connection closed for inactivity]
Beams_ has quit [Quit: .]
mim1k has quit [Ping timeout: 260 seconds]
edliss has joined #ruby
drale2k has quit [Quit: ZNC - http://znc.in]
Pumukel has joined #ruby
drale2k has joined #ruby
renchan has quit [Quit: Leaving...]
<lacrymology> baweaver: that seems to work
benlieb has quit [Quit: benlieb]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
montanonic has joined #ruby
TomyLobo2 has joined #ruby
Snowy_ has quit [Remote host closed the connection]
edliss has quit [Ping timeout: 240 seconds]
baked__beans has joined #ruby
ElDoggo has quit [Remote host closed the connection]
kith has joined #ruby
muelleme has quit [Ping timeout: 268 seconds]
patarr_ has quit [Ping timeout: 256 seconds]
cdg has quit [Remote host closed the connection]
ElDoggo has joined #ruby
kies has quit [Ping timeout: 240 seconds]
esObe_ has quit [Remote host closed the connection]
hahuang62 has joined #ruby
cibs has quit [Ping timeout: 258 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
anisha has quit [Quit: This computer has gone to sleep]
millerti has joined #ruby
aufi has quit [Quit: Leaving]
_whitelogger has joined #ruby
mistym has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
milardovich has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mistym has joined #ruby
mistym has quit [Changing host]
mistym has joined #ruby
cdg has joined #ruby
Limix has joined #ruby
kies has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has joined #ruby
patarr has joined #ruby
cdg has quit [Read error: No route to host]
benlieb has joined #ruby
benlieb has quit [Client Quit]
mzo has quit [Quit: :*]
ramfjord has joined #ruby
Snowy has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kristoff_ has quit [Read error: Connection reset by peer]
xen0fon has joined #ruby
ElDoggo has quit [Remote host closed the connection]
ElDoggo has joined #ruby
kristofferR has joined #ruby
cpruitt has joined #ruby
ElDoggo has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 246 seconds]
renchan has joined #ruby
patarr has joined #ruby
esObe_ has joined #ruby
A124 has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has quit [Ping timeout: 240 seconds]
bocaneri has quit [Read error: Connection reset by peer]
mminski has quit [Ping timeout: 240 seconds]
graft has quit [Ping timeout: 260 seconds]
graft has joined #ruby
hutch34 has joined #ruby
millerti has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
mminski has joined #ruby
jaruga has quit [Quit: jaruga]
ElDoggo has joined #ruby
ElDoggo has quit [Remote host closed the connection]
ElDoggo has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
rahul_bajaj has joined #ruby
catenthusiast has joined #ruby
Snowy has quit [Remote host closed the connection]
Vingador has joined #ruby
mula has joined #ruby
edliss has joined #ruby
mminski has quit [Ping timeout: 260 seconds]
Vingador has quit [Remote host closed the connection]
bastrud has joined #ruby
muelleme has joined #ruby
mula has quit [Remote host closed the connection]
dionysus69 has joined #ruby
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
muelleme has quit [Ping timeout: 260 seconds]
lhambley has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has quit [Quit: Lost terminal]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
JeanCarl1Machado has joined #ruby
sergio_101 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
lenwood has quit [Ping timeout: 258 seconds]
xzhao has joined #ruby
__Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
__Yiota has joined #ruby
[Butch] has joined #ruby
jenrzzz has joined #ruby
marr has joined #ruby
nobitanobi has joined #ruby
bastrud has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
xen0fon has quit [Quit: xen0fon]
nobitanobi has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
bmurt has joined #ruby
lxsameer has joined #ruby
psychicist__ has joined #ruby
psychicist__ has quit [Client Quit]
bkxd has quit [Ping timeout: 260 seconds]
Derperperd has joined #ruby
Blacink has joined #ruby
bastrud has joined #ruby
raul782 has quit [Read error: Connection reset by peer]
raul782 has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
Puffball has quit [Remote host closed the connection]
uncertainty has joined #ruby
rgtk has joined #ruby
psychicist__ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
squarebracket has quit [Quit: WeeChat 1.4]
hutch34 has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
bastrud has quit [Ping timeout: 240 seconds]
username2 has quit [Ping timeout: 240 seconds]
username1 has quit [Ping timeout: 240 seconds]
<snickers> What is the correct approach to test unit which connect to external api. Should it be tested on real api, or better monkey patch function that connect to api that it will return expected value?
cfec0b8d has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Fin1te has joined #ruby
yehowyada has quit [Quit: Textual IRC Client: www.textualapp.com]
devyn has joined #ruby
minimalism has quit [Quit: minimalism]
failshell has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<failshell> hello. i need to send commands into an interactive prompt from Ruby. the CLI is similar to the MySQL cli, run the command, then you get to run commands. is there a gem that exists to wrap this ? i could do it with bash and EOFs, but meh
bastrud has joined #ruby
bastrud has quit [Max SendQ exceeded]
bastrud has joined #ruby
patarr has joined #ruby
centrx has quit []
postmodern has joined #ruby
enterprisey has joined #ruby
Kug3lis has joined #ruby
Pumukel has joined #ruby
nobitanobi has joined #ruby
haylon has joined #ruby
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edliss has quit [Ping timeout: 240 seconds]
Kug3lis has quit [Quit: Textual IRC Client: www.textualapp.com]
<matthewd> failshell: Open3, in stdlib
Pumukel has quit [Ping timeout: 246 seconds]
<rob_> failshell: look up REPL (read-eval-print loop) - should give you lots of information about how to write what you want
<failshell> thanks guys, googling
blackmesa has quit [Ping timeout: 264 seconds]
millerti has joined #ruby
rahul_bajaj has quit [Quit: Leaving]
<allisio> failshell: Because we appreciate that sort of thing around here: https://eval.in/757891
<allisio> Gotta love the symmetry.
<failshell> i need to write some ruby to run some python. that's how meta my day is so far hehe
xenops has joined #ruby
Limix has quit [Quit: Limix]
renatosilva has joined #ruby
Blacink has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
<baweaver> Snickers: VCR
lacrymology has quit [Ping timeout: 256 seconds]
<baweaver> Record a response from the actual and use that to replay to tests.
jenrzzz has joined #ruby
<baweaver> Also I tend to put all external calls into their own methods so they're easier to stub
MasterNayru has quit [Read error: Connection reset by peer]
MasterNayru has joined #ruby
lacrymology has joined #ruby
nobitanobi has quit [Remote host closed the connection]
bastrud has quit [Remote host closed the connection]
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
ramfjord has joined #ruby
nobitanobi has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
lightheaded has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Ping timeout: 268 seconds]
failshell has quit []
zapata has quit [Quit: WeeChat 1.7]
username has joined #ruby
edliss has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
Xeago has joined #ruby
username1 has joined #ruby
zapata has joined #ruby
lhambley has joined #ruby
<dminuoso> baweaver: That's like.. efficient. What excuse do you have to slack off when your boss comes in?
<dminuoso> It can't be "its compiling" because it's ruby, and it can't be "it's testing" because you use VCR..
<baweaver> I'm done
<al2o3-cr> hehe
chouhoul_ has joined #ruby
<baweaver> I finished everything
<baweaver> So now I get to watch conference talks and experiment for a bit
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhou__ has joined #ruby
ta_ has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 258 seconds]
Fernando-Basso has joined #ruby
xen0fon has joined #ruby
chouhoul_ has quit [Ping timeout: 258 seconds]
BSAlb has joined #ruby
jshjsh has joined #ruby
FooMunki has quit [Quit: FooMunki]
drale2k_ has joined #ruby
zenguy_pc2 has joined #ruby
kenichi_ has joined #ruby
agent_wh1te has joined #ruby
eboaz_ has joined #ruby
Pisuke has joined #ruby
FooMunki has joined #ruby
knowtheory_ has joined #ruby
maattdd has joined #ruby
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
gsnedder1 has joined #ruby
baked__b1ans has joined #ruby
badeball_ has joined #ruby
phansch_ has joined #ruby
ichthys has joined #ruby
wnd_ has joined #ruby
cout_ has joined #ruby
knight- has joined #ruby
vadviktor_ has joined #ruby
D9- has joined #ruby
utkarsh_ has joined #ruby
teotwaki_ has joined #ruby
_chee has joined #ruby
Toledo has joined #ruby
coatezy_ has joined #ruby
dyyylan- has joined #ruby
gbailey- has joined #ruby
ishigoya- has joined #ruby
alphor_ has joined #ruby
atmosx_aws has joined #ruby
nowhereman has joined #ruby
shadeslayer_ has joined #ruby
d0nn1e_ has joined #ruby
ccooke_ has joined #ruby
NightMonkey_ has joined #ruby
bauruine_ has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
optiz0r_ has joined #ruby
DefV_ has joined #ruby
gse_ has joined #ruby
prions_ has joined #ruby
psychicist__ has joined #ruby
apeiros_ has joined #ruby
MyMind has quit [Excess Flood]
PaulePan1er has joined #ruby
caw__ has joined #ruby
chee has quit [Disconnected by services]
darix- has joined #ruby
DenSchub_ has joined #ruby
_chee is now known as chee
mistym- has joined #ruby
maattdd_ has quit [Ping timeout: 264 seconds]
FastJack_ has joined #ruby
byyte512 has joined #ruby
DenSchub has quit [Disconnected by services]
sonOfRa_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
DenSchub_ is now known as DenSchub
cyphase_eviltwin has joined #ruby
adgtl- has joined #ruby
BackEndCoder_ has joined #ruby
certainty has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcluna_ has joined #ruby
Snowy has joined #ruby
daed_ has joined #ruby
varesa_ has joined #ruby
ahrs_ has joined #ruby
jokke1 has joined #ruby
scottschecter_ has joined #ruby
psmolen_ has joined #ruby
thejoecarroll_ has joined #ruby
crankhar1er has joined #ruby
yorickpeterse1 has joined #ruby
matthewd_ has joined #ruby
Rodya_ has joined #ruby
leah2_ has joined #ruby
iooner- has joined #ruby
mlehrer_ has joined #ruby
KrzaQ- has joined #ruby
dminuoso_ has joined #ruby
Soulcutter has joined #ruby
sonne_ has joined #ruby
veloutin_ has joined #ruby
kke has joined #ruby
leah2 has quit [Disconnected by services]
Fin1te has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sheepman_ has joined #ruby
leah2_ is now known as leah2
Elysia has joined #ruby
vqrs has joined #ruby
yo61_ has joined #ruby
nekomune_ has joined #ruby
JeanCarloMachado has joined #ruby
tekku has joined #ruby
bastilian_ has joined #ruby
banisterfiend has joined #ruby
danzilio_ has joined #ruby
devyn has quit [Remote host closed the connection]
TheMoonMaster_ has joined #ruby
bastilian_ has quit [Client Quit]
jenrzzz has quit [Ping timeout: 268 seconds]
uncertainty has quit [*.net *.split]
JeanCarl1Machado has quit [*.net *.split]
mistym has quit [*.net *.split]
baked__beans has quit [*.net *.split]
drale2k has quit [*.net *.split]
AnomalousBit has quit [*.net *.split]
d0nn1e has quit [*.net *.split]
BSaboia has quit [*.net *.split]
agent_white has quit [*.net *.split]
sepp2k has quit [*.net *.split]
herbmillerjr has quit [*.net *.split]
coatezy has quit [*.net *.split]
araujo has quit [*.net *.split]
adgtl has quit [*.net *.split]
ahrs has quit [*.net *.split]
byte512 has quit [*.net *.split]
dcluna has quit [*.net *.split]
phansch has quit [*.net *.split]
matthewd has quit [*.net *.split]
szulak has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
optiz0r has quit [*.net *.split]
cyphase has quit [*.net *.split]
kenichi has quit [*.net *.split]
jokke has quit [*.net *.split]
ishigoya has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
knowtheory has quit [*.net *.split]
midacts has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
bauruine has quit [*.net *.split]
dyyylan has quit [*.net *.split]
alphor has quit [*.net *.split]
veloutin has quit [*.net *.split]
flopsec has quit [*.net *.split]
eboaz has quit [*.net *.split]
gsnedders has quit [*.net *.split]
croberts has quit [*.net *.split]
psmolen has quit [*.net *.split]
darix has quit [*.net *.split]
FastJack has quit [*.net *.split]
vqrs_ has quit [*.net *.split]
bastilian has quit [*.net *.split]
atmosx has quit [*.net *.split]
zenguy_pc has quit [*.net *.split]
knight_ has quit [*.net *.split]
gbailey has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
D9 has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
skmp has quit [*.net *.split]
bathtub_shark has quit [*.net *.split]
tessi_zz has quit [*.net *.split]
teotwaki has quit [*.net *.split]
roger_rabbit has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
caw has quit [*.net *.split]
danzilio has quit [*.net *.split]
yo61 has quit [*.net *.split]
sheepman has quit [*.net *.split]
kke_ has quit [*.net *.split]
vadviktor has quit [*.net *.split]
scottschecter has quit [*.net *.split]
utkarsh has quit [*.net *.split]
mlehrer has quit [*.net *.split]
cout has quit [*.net *.split]
tekk has quit [*.net *.split]
johnkpaul has quit [*.net *.split]
prions has quit [*.net *.split]
nekomune has quit [*.net *.split]
iooner has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
DefV has quit [*.net *.split]
badeball has quit [*.net *.split]
apeiros has quit [*.net *.split]
sonne has quit [*.net *.split]
crankharder has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
ccooke has quit [*.net *.split]
dminuoso has quit [*.net *.split]
wnd has quit [*.net *.split]
daed has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
gse has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
varesa has quit [*.net *.split]
KillerFox has quit [*.net *.split]
FastJack_ is now known as FastJack
darix- is now known as darix
forgot has quit [*.net *.split]
sonOfRa_ is now known as sonOfRa
sheepman_ is now known as sheepman
teotwaki_ is now known as teotwaki
KrzaQ- is now known as KrzaQ
dcluna_ is now known as dcluna
matthewd_ is now known as matthewd
NightMonkey_ is now known as NightMonkey
iooner- is now known as iooner
agent_wh1te is now known as agent_white
coatezy_ is now known as coatezy
herbmillerjr has joined #ruby
bastilian_ has joined #ruby
bastilian_ is now known as bastilian
knowtheory_ is now known as knowtheory
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
roger_rabbit has joined #ruby
skmp has joined #ruby
boxrick1 has quit [Ping timeout: 253 seconds]
sepp2k has joined #ruby
GinoManWrx has quit [Ping timeout: 246 seconds]
Iacobus has quit [Ping timeout: 240 seconds]
johnkpaul has joined #ruby
jhill__ has quit [Ping timeout: 258 seconds]
boxrick1 has joined #ruby
davidmichaelkarr has quit [Ping timeout: 256 seconds]
danzilio_ is now known as danzilio
ahrs_ has quit [Ping timeout: 240 seconds]
Iacobus has joined #ruby
Fin1te has joined #ruby
despai has joined #ruby
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
caw__ is now known as caw
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
davidmichaelkarr has joined #ruby
nachoman has joined #ruby
yo61_ is now known as yo61
ahrs has joined #ruby
jhill__ has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
username2 has joined #ruby
wnd_ is now known as wnd
brent__ has quit [Remote host closed the connection]
xelkarin has joined #ruby
larcara has quit []
xen0fon has quit [Quit: xen0fon]
tessi_zz has joined #ruby
KillerFox has joined #ruby
jamesaxl has joined #ruby
jottr has joined #ruby
millerti has joined #ruby
<lacrymology> what's a good interactve debugger? I'm used to pdb in python, which is very much like gdb
montanonic has joined #ruby
<lacrymology> they use pry in my project, but I can't figure out how to step out of the current method, navigate the stacktrace, etc
<Disavowed> lacrymology: I like pry.
<Disavowed> ah
Pumukel has joined #ruby
<matthewd> pry-byebugf
<lacrymology> Disavowed: any good use guides?
<nofxxx> lacrymology, test > debugging ... but in anyways.. binding.irb (2.4.0) or pry
vqrs has quit [Ping timeout: 240 seconds]
dagelf has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Ping timeout: 240 seconds]
is_null has quit [Ping timeout: 240 seconds]
chouhou__ has quit [Remote host closed the connection]
<matthewd> s/f$//
<nofxxx> or byebug
<Disavowed> lacrymology: I think you want this: https://github.com/deivid-rodriguez/pry-byebug
chouhoulis has joined #ruby
<Disavowed> as matthewd noted
<Disavowed> (don't want to take credit!)
is_null has joined #ruby
<nofxxx> test also keeps paying dividends... =D
rgtk has quit [Ping timeout: 240 seconds]
enterprisey has quit [Quit: Leaving]
forgot has joined #ruby
dagelf has joined #ruby
vqrs has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
FooMunki has quit [Quit: FooMunki]
SCHAAP137 has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
lhambley has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lacrymology> Disavowed, matthewd: it's weird, it seems like it's installed but some documented commands don't work: up, down, backtrace
<matthewd> Maybe it hasn't been required?
synthroid has quit []
jaequery has joined #ruby
szulak has joined #ruby
Snowy has quit [Ping timeout: 264 seconds]
flopsec has joined #ruby
graft has quit [Ping timeout: 260 seconds]
mzo has joined #ruby
zeroDi has joined #ruby
sergio_101 has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has quit [Ping timeout: 258 seconds]
renchan has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
milardovich has quit []
certainty has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gigetoo has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
rgtk has joined #ruby
cdg has quit [Remote host closed the connection]
<lacrymology> matthewd: "including" is doing `gem 'byebug'` somewhere appropriate in the Gemfile, right?
shintaro has joined #ruby
cdg has joined #ruby
<matthewd> No, for several reasons
shintaro has quit [Client Quit]
<matthewd> Firstly, if you want debugger commands in pry, you need pry-byebug, not regular byebug
bkxd has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
<lacrymology> ah, gotcha. Sorry
<lacrymology> got confused
jottr has quit [Quit: WeeChat 1.7]
tolerablyjake has joined #ruby
ldnunes has quit [Quit: Leaving]
marxarelli is now known as marxarelli|afk
t-recx has quit [Quit: t-recx]
bkxd has quit [Ping timeout: 240 seconds]
xen0fon has joined #ruby
nofxxxx has joined #ruby
workmad3 has joined #ruby
Limix has joined #ruby
Limix has quit [Client Quit]
nofxxx has quit [Ping timeout: 260 seconds]
rgr has quit [Quit: Leaving]
yqt has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
bastrud has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
xen0fon has quit [Quit: xen0fon]
ramfjord_ has joined #ruby
jsaak has quit [Ping timeout: 240 seconds]
jsaak has joined #ruby
jamesaxl has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 246 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
mikeric has joined #ruby
blackmesa has joined #ruby
enterprisey has joined #ruby
Pumukel has joined #ruby
despai has quit [Ping timeout: 240 seconds]
haylon has quit [Quit: Leaving]
oncall-pokemon has joined #ruby
bastrud has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
scottschecter_ is now known as scottschecter
nowhereman has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman has joined #ruby
anisha has joined #ruby
gsnedder1 is now known as gsnedders
agent_white has quit [Quit: bbl]
anisha has quit [Client Quit]
lmc has quit [Quit: Leaving...]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
ccooke_ is now known as ccooke
Lord_of_Life has quit [Excess Flood]
zeroDi has quit [Quit: WeeChat 1.7]
[Butch] has quit [Quit: I'm out . . .]
Lord_of_Life has joined #ruby
Fin1te has quit [Quit: Later, tater.]
hutch34 has joined #ruby
jokke1 is now known as jokke
JeanCarloMachado has joined #ruby
__Yiota has joined #ruby
hxegon is now known as hxegon_afk
devyn has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
viuo has quit [Quit: leaving]
baked__b1ans has quit [Ping timeout: 256 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
<ddffg> why i needto return hash value in the end of block
<ddffg> text.scan(/\w/).inject(Hash.new(0)){|h, c| h[c] += 1; h}
<ddffg> code doesnt work without 'h'
kristofferR has quit [Read error: Connection reset by peer]
alibby1 has joined #ruby
<baweaver> inject / reduce set the last implied return value as the new accumulator (in this case h)
<baweaver> use #each_with_object if you want to invert that
tomphp has joined #ruby
<baweaver> text.scan(/\w/).each_with_object(Hash.new(0)) { |c, h| h[c] += 1 }
Nicmavr has quit [Ping timeout: 268 seconds]
<baweaver> notice the args are reversed though
<baweaver> ddffg ^
kristofferR has joined #ruby
alibby has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
PaulePan1er is now known as PaulePanter
LuckyABA has joined #ruby
ddffg has quit [Quit: Leaving]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
mzo has quit [Quit: :*]
workmad3 has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
unknown1 has joined #ruby
v1_ has quit [Ping timeout: 240 seconds]
pytuger has quit [Ping timeout: 268 seconds]
xelkarin has quit [Quit: WeeChat 1.4]
Pumukel has joined #ruby
workmad3 has joined #ruby
montanonic has quit [Ping timeout: 256 seconds]
JoshS has quit [Quit: Leaving]
Pumukel has quit [Ping timeout: 246 seconds]
unknown1_ has joined #ruby
<allisio> Ruby needs `flip`.
<Radar> what does flip do>?
<baweaver> flip?
unknown1_ has quit [Read error: Connection reset by peer]
unknow___ has joined #ruby
* baweaver shakes fist at Radar
<lupine> "u".flip => "n"
<Radar> lupine: lol
JeanCarloMachado has quit [Ping timeout: 260 seconds]
sepp2k has quit [Ping timeout: 260 seconds]
psychicist__ has quit [Ping timeout: 240 seconds]
<eam> allisio: isn't #reverse a general case of #flip?
<allisio> eam: Is there a Proc#reverse?
<baweaver> Unless you're programming with straight lambdas, not easily.
<SeepingN> ʎʃʃıs ʎʃǝʇǝʃdɯoɔ sı ʇɐɥʇ
__Yiota has joined #ruby
Silthias has joined #ruby
unknown1 has quit [Ping timeout: 260 seconds]
<eam> why would it be on Proc?
<allisio> No, yeah, dedicated syntax for flipping blocks would be even better.
JeanCarloMachado has joined #ruby
<rizonz> I'm sooo Ruby today
mikecmpbll has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
<baweaver> >> class Proc; def reverse; -> (*args) { self.call(args.reverse) } end; end; pr=Proc.new{|x,y|x**y}; [pr.call(2,3),pr.reverse.call(2,3)]
<ruby[bot]> baweaver: # => [8, 9] (https://eval.in/757983)
<baweaver> :D
<baweaver> allisio ^
<matthewd> Doesn't seem very useful to me.. I think you'd need dedicated syntax for partial function application first
<baweaver> &ri #curry
<baweaver> Like that?
<allisio> matthewd: We can just abuse the fact that Procs don't check arity?
<matthewd> allisio: Doesn't that make it *harder*?
<allisio> It's really not an improvement without syntactic support, though: https://eval.in/757985
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
davidmichaelkarr has quit [Changing host]
davidmichaelkarr has joined #ruby
jhill__ has quit [Changing host]
jhill__ has joined #ruby
tessi_zz has joined #ruby
tessi_zz has quit [Changing host]
szulak has quit [Changing host]
flopsec has joined #ruby
flopsec has quit [Changing host]
szulak has joined #ruby
oncall-pokemon has joined #ruby
oncall-pokemon has quit [Changing host]
Lord_of_Life has joined #ruby
Lord_of_Life has quit [Changing host]
<allisio> Plus, y'know, the argument order for #each_with_object makes perfect sense.
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edliss has quit [Ping timeout: 268 seconds]
unknow___ has quit [Remote host closed the connection]
unknown1 has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.7]
claw has quit [Ping timeout: 246 seconds]
claw has joined #ruby
unknown1 has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
rkoller has joined #ruby
rkoller has quit [Client Quit]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
blackmesa has quit [Quit: WeeChat 1.6]
JeanCarloMachado has joined #ruby
rhyselsmore has joined #ruby
montanonic has joined #ruby
usrben has quit [Quit: leaving]
teddysmoker has quit [Read error: Connection reset by peer]
cfec0b8d has quit [Ping timeout: 260 seconds]
enterprisey has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kirun has quit [Quit: Konversation terminated!]
hutch34 has joined #ruby
CloCkWeRX has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 240 seconds]
kristofferR has quit [Read error: Connection reset by peer]
kristofferR has joined #ruby
alphor_ is now known as alphor
patarr has quit [Ping timeout: 264 seconds]
toretore has quit [Ping timeout: 256 seconds]
hutch34 has joined #ruby
alan_w has joined #ruby
prometheanfire has joined #ruby
ElDoggo has quit [Remote host closed the connection]
<prometheanfire> trying to figure out why I'm getting 'undefined method '[]' for nil.NilClass for this line of code :|
<prometheanfire> result_fields = %w{category pn pv pr slot pfx sfx}
hutch34 has quit [Ping timeout: 240 seconds]
choke has joined #ruby
<SeepingN> must not be for that line
<SeepingN> or if you're in irb/rails console, restart
<prometheanfire> ya, it's not
<prometheanfire> it's this line
<prometheanfire> search_output = qatom_bin *([@resource[:name], '--format', output_format])
minimalism has joined #ruby
pytuger has joined #ruby
pytuger has quit [Changing host]
pytuger has joined #ruby
Vingador has joined #ruby
<prometheanfire> seems it can't access @resource
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<prometheanfire> so, how do I access outer variables and methods when making a 'self' method
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
__Yiota has joined #ruby
rgtk has quit [Ping timeout: 258 seconds]
BadAtom has quit [Remote host closed the connection]
__Yiota has quit [Client Quit]
duderonomy has joined #ruby
<allisio> prometheanfire: Instance variables belong to instances.
BadAtom has joined #ruby