ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
mroutis_ has joined #ruby
duckpuppy has quit [Ping timeout: 255 seconds]
mroutis has quit [Read error: Connection reset by peer]
agent_white has quit [Remote host closed the connection]
Janky has quit []
erlend has quit [Ping timeout: 240 seconds]
darkhanb has joined #ruby
erlend has joined #ruby
caleBOT has joined #ruby
arescorpio has quit [Quit: Leaving.]
cschneid_ has quit [Remote host closed the connection]
duckpuppy has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
cschneid_ has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
cschneid_ has quit [Remote host closed the connection]
Yxhuvud has quit [Client Quit]
Yxhuvud has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
donofrio has quit [Remote host closed the connection]
kriskropd has quit [Ping timeout: 264 seconds]
thedude has joined #ruby
thedude has quit [Max SendQ exceeded]
shuforov has joined #ruby
mroutis_ has quit [Read error: Connection reset by peer]
mroutis has joined #ruby
kriskropd has joined #ruby
shuforov has quit [Ping timeout: 255 seconds]
n3b has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
n3b has joined #ruby
oleo has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
sauvin has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
<JJonah>
For a method `test` with only keyword args, `p Test.method(:test).parameters` returns `[[:rest]]`. I'd like to get the actual names of the keywords. Is it possible?
physicist__ has joined #ruby
jnollette has quit [Read error: Connection reset by peer]
_aeris_ has quit [Write error: Connection reset by peer]
redlegion has quit [Write error: Connection reset by peer]
_aeris_ has joined #ruby
redlegion has joined #ruby
<havenwood>
JJonah: Kwargs *should* show the name of the keyword. What version of Ruby are you on?
<havenwood>
>> module Test; module_function; def test kwarg: :yup, aim: true; end end; Test.method(:test).parameters # JJonah
<havenwood>
JJonah: If you even did `*stuff` you'd get `[[:rest, :stuff]]` not `[[:rest, :stuff]]`.
<havenwood>
not `[[:rest]]`**
duckpuppy has joined #ruby
<havenwood>
I guess using double-splat for correction isn't great when talking about double splats. >.>
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<JJonah>
havenwood: ah, turns out i'd been mucking around and created my own `self.new` method for an unrelated experiment, and had forgotten that i'd done so. when i removed that it worked as it should. just dumb operator error.
<havenwood>
JJonah: aha!
caleBOT has quit [Ping timeout: 248 seconds]
duckpuppy has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
m27frogy has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
anisha_ has quit [Read error: Connection reset by peer]
anisha_ has joined #ruby
andikr has joined #ruby
saTchymotoo has joined #ruby
Burgestrand has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
TomyWork has joined #ruby
alfiemax_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dionysus69 has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
mn3m has joined #ruby
mn3m has quit [Max SendQ exceeded]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
amar has joined #ruby
<mikhael_k33hl_>
I'm using the 'rsync' gem, can I invoke it inside a class named Rsync?
clemens3_ has joined #ruby
<tbuehlmann>
mikhael_k33hl_: seems like that gem defines an Rsync module, so you can't have an Rsync class at the same time
<apeiros>
^
<apeiros>
and it's not a good idea to have your constants pollute global namespace. try to define a single toplevel namespace for your project and nest your stuff in there.
<tbuehlmann>
that's what I thought about the other day, btw: why aren't rails models namespaced within the application's module?
<apeiros>
you should ask dhh. rails has a couple of bad practices.
<apeiros>
some of them are being removed or replaced, but some remain
<mikhael_k33hl_>
tbuehlmann: Oh okay, hehe, I have a module for syncing, and rsync is one of the options I want to put there, and would like to wrap it inside an Rsync class. Anyway, i'll just name it differently
<tbuehlmann>
or namespace it, that'd work, too
<apeiros>
::Rsync and ::YourProject::Rsync can coexist just fine
<apeiros>
you just can't have to ::Rsync
<apeiros>
*two
<apeiros>
and I'll reiterate: having a single ::YourProject toplevel name is a good idea (or rather: not having it is a bad idea)
duckpuppy has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
amar has quit [Remote host closed the connection]
* dminuoso
sighs
<dminuoso>
Anyone care to write a babeljs plugin for me.
<apeiros>
hm? the only issue I found with indentation in sublime is that it's guessing algorithm is crap (the one figuring how many spaces one tab should be)
<apeiros>
bottom right in the window is where you can tell it what to do for the current file. though you should have a sane default config.
[diecast] has quit []
anisha has joined #ruby
[diecast] has joined #ruby
<mihael_k33hl>
apeiros: did not know that, thanks
Burgestrand has quit [Client Quit]
<dminuoso>
mihael_k33hl: My point is: If you submit something to gist, look through it before you share it.
<dminuoso>
You can still edit a gist if there's any issues.
kapowaz has quit []
quobo has joined #ruby
<apeiros>
the default settings are under: sublime text -> preferences -> settings
kapowaz has joined #ruby
<apeiros>
when you have a ruby file open, you can set ruby specific prefs under: sublime text -> preferences -> settings - syntax specific
<apeiros>
no need for expensive locking if it's just a scoping issue.
<apeiros>
also depending on how exactly you placed the mutex, you effectively serialized your futures
<apeiros>
(iow, killed your concurrency, which is probably the whole point of using a future…)
<elomatreb>
oooh, that's an interesting one
<elomatreb>
FWIW, if your futures are going to print, you will need something to handle that as the plain puts is not thread-safe (specifically the part that adds the newlines)
shiroeni has joined #ruby
<apeiros>
correct. $stdout is shared mutable state.
x77686d has quit [Quit: x77686d]
lytol has quit [Quit: lytol]
<mihael_k33hl>
apeiros: Placed the future creation on a separate method, that seems to fixed it, have to look into that lvar scope
shiroeni has quit [Ping timeout: 264 seconds]
duckpuppy has joined #ruby
<apeiros>
what happened was that the block was executed after your loop already having reached the second iteration
<mihael_k33hl>
apeiros: hmmm, so the future creation was executed before the second iteration, is that correct?
Burgestrand has joined #ruby
<apeiros>
no. the future creation happens in your main thread. but blocks can be executed any time.
<apeiros>
i.e. the block you pass to your future is not running in your main thread.
duckpuppy has quit [Ping timeout: 255 seconds]
ELLIOTTCABLE has quit []
ellcs has quit [Ping timeout: 255 seconds]
ELLIOTTCABLE has joined #ruby
ckrailo has joined #ruby
karapetyan has joined #ruby
jmhmccr has quit []
aufi has quit [Remote host closed the connection]
jmhmccr has joined #ruby
aufi has joined #ruby
jrgifford has quit []
jrgifford has joined #ruby
incomprehensibly has quit []
incomprehensibly has joined #ruby
shiroeni has joined #ruby
knowtheory has joined #ruby
erlend has quit [Ping timeout: 260 seconds]
erlend has joined #ruby
zautomata1 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
shiroeni has quit [Ping timeout: 268 seconds]
rflot has quit []
zapata has quit [Ping timeout: 256 seconds]
rflot has joined #ruby
z3uS has quit [Quit: /dev/null]
z3uS has joined #ruby
z3uS has quit [Client Quit]
tomphp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
z3uS has joined #ruby
hfp_work has quit [Quit: bye]
hfp_work has joined #ruby
tomphp has joined #ruby
colin2 has joined #ruby
colin2 has left #ruby [#ruby]
amatas has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
John_Ivan has joined #ruby
z3uS has quit [Quit: /dev/null]
nowhere_man has quit [Remote host closed the connection]
z3uS has joined #ruby
nowhere_man has joined #ruby
z3uS has quit [Client Quit]
z3uS has joined #ruby
John_Ivan has quit [Ping timeout: 276 seconds]
err_ok has quit []
err_ok has joined #ruby
ramfjord has joined #ruby
tomphp has quit [Ping timeout: 256 seconds]
TheBetr74 has joined #ruby
TheBetr74 has quit [Max SendQ exceeded]
amatas has quit [Quit: amatas]
TheBetrayer has quit [Ping timeout: 263 seconds]
alfiemax has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
braderhart has quit []
braderhart has joined #ruby
TheBetrayer has joined #ruby
TheBetrayer has quit [Max SendQ exceeded]
cschneid_ has joined #ruby
darix has quit [Quit: brb]
apparition has joined #ruby
graingert has quit []
amatas has joined #ruby
vondruch_ has joined #ruby
graingert has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
z3uS has quit [Quit: /dev/null]
vondruch has quit [Ping timeout: 255 seconds]
vondruch_ is now known as vondruch
z3uS has joined #ruby
duckpuppy has joined #ruby
duckpuppy has quit [Ping timeout: 248 seconds]
TheBetrayer has joined #ruby
TheBetrayer has quit [Max SendQ exceeded]
ricer2 has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Majost has quit []
Majost has joined #ruby
Cavallari has joined #ruby
mitsuhiko has quit []
mitsuhiko has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
gheegh has joined #ruby
beefjoe2 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
rabajaj is now known as rabajaj_afk
stephenh has quit []
stephenh has joined #ruby
shuforov has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
Burgestrand has joined #ruby
ta_ has quit [Remote host closed the connection]
ReinH has quit []
ReinH has joined #ruby
jeffreylevesque has quit [Ping timeout: 260 seconds]
quobo has quit [Quit: Connection closed for inactivity]
duckpuppy has joined #ruby
beefjoe2 has quit [Ping timeout: 240 seconds]
amatas has quit [Remote host closed the connection]
afisher has quit []
amatas has joined #ruby
afisher has joined #ruby
AJA4350 has joined #ruby
eddyready has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
raynold has quit [Quit: Connection closed for inactivity]
aufi has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
eddyready has quit [Client Quit]
eddyready has joined #ruby
duckpuppy has joined #ruby
eddyready has quit [Client Quit]
eddyready has joined #ruby
beefjoe2 has joined #ruby
plexigras has quit [Quit: WeeChat 2.1]
plexigras has joined #ruby
eddyready has quit [Client Quit]
shuforov has joined #ruby
jyaworski has joined #ruby
eddyready has joined #ruby
jyaworski has quit [Client Quit]
jyaworski has joined #ruby
ellcs has joined #ruby
eddyready has quit [Quit: leaving]
dionysus69 has quit [Ping timeout: 265 seconds]
Burgestrand has quit [Quit: Closing time!]
synthroid has joined #ruby
dionysus69 has joined #ruby
c0ncealed1 has quit [Remote host closed the connection]
eddyready has joined #ruby
duderonomy has joined #ruby
banisterfiend has joined #ruby
c0ncealed1 has joined #ruby
aufi has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
beefjoe2 has quit [Ping timeout: 276 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpterry_ has joined #ruby
rabajaj_afk is now known as rabajaj
beefjoe2 has joined #ruby
erlend has quit [Ping timeout: 255 seconds]
kent\n has quit [Ping timeout: 276 seconds]
chmurifr- has joined #ruby
erlend has joined #ruby
rabajaj has quit [Quit: Leaving]
beefjoe2 has quit [Remote host closed the connection]
beefjoe88 has joined #ruby
johnny56_ has quit [*.net *.split]
chmurifree has quit [*.net *.split]
jpterry has quit [*.net *.split]
c0ncealed1 has quit [*.net *.split]
eddyready has quit [*.net *.split]
karapetyan has quit [*.net *.split]
saTchymotoo has quit [*.net *.split]
sspreitz has quit [*.net *.split]
ricer2 has quit [*.net *.split]
aupadhye has quit [*.net *.split]
sammi` has quit [*.net *.split]
iceden has quit [*.net *.split]
yeticry has quit [*.net *.split]
HappyHappyFunFun has quit [*.net *.split]
hurricanehrndz has quit [*.net *.split]
axsuul has quit [*.net *.split]
hinbody has quit [*.net *.split]
eb0t has quit [*.net *.split]
eblip has quit [*.net *.split]
asio has quit [*.net *.split]
shaman42 has quit [*.net *.split]
Nilium has quit [*.net *.split]
lxsameer has quit [*.net *.split]
SirFunk has quit [*.net *.split]
Sammichmaker has quit [*.net *.split]
woodruffw has quit [*.net *.split]
ohcibi has quit [*.net *.split]
mluts has quit [*.net *.split]
helpa has quit [*.net *.split]
kt has quit [*.net *.split]
halbbalda has quit [*.net *.split]
Cyrus has quit [*.net *.split]
jsaak has quit [*.net *.split]
ozzloy has quit [*.net *.split]
phenom has quit [*.net *.split]
ptx0 has quit [*.net *.split]
xMopx has quit [*.net *.split]
j416 has quit [*.net *.split]
valkyr2e has quit [*.net *.split]
brainslug has quit [*.net *.split]
vdl has quit [*.net *.split]
llua has quit [*.net *.split]
Keltia has quit [*.net *.split]
r3dc0d3r has quit [*.net *.split]
chmurifr- is now known as chmurifree
jpterry_ is now known as jpterry
SynSynack has quit [Ping timeout: 240 seconds]
asio has joined #ruby
hurricanehrndz has joined #ruby
hinbody has joined #ruby
halbbalda has joined #ruby
eddyready has joined #ruby
woodruffw has joined #ruby
iceden has joined #ruby
vdl has joined #ruby
ptx0 has joined #ruby
c0ncealed1 has joined #ruby
brainslug has joined #ruby
HappyHappyFunFun has joined #ruby
Nilium has joined #ruby
xMopx has joined #ruby
shaman42 has joined #ruby
karapetyan has joined #ruby
valkyr2e has joined #ruby
ozzloy has joined #ruby
jsaak has joined #ruby
kt has joined #ruby
phenom has joined #ruby
sammi` has joined #ruby
ricer2 has joined #ruby
mluts has joined #ruby
helpa has joined #ruby
Cyrus has joined #ruby
SirFunk has joined #ruby
ohcibi has joined #ruby
r3dc0d3r has joined #ruby
yeticry has joined #ruby
aupadhye has joined #ruby
saTchymotoo has joined #ruby
j416 has joined #ruby
lxsameer has joined #ruby
llua has joined #ruby
sspreitz has joined #ruby
axsuul has joined #ruby
Sammichmaker has joined #ruby
Keltia has joined #ruby
SynSynack has joined #ruby
donofrio has joined #ruby
ptx0 has quit [Max SendQ exceeded]
GodFather has joined #ruby
caleBOT has joined #ruby
ptx0 has joined #ruby
Exagone313 has quit [Ping timeout: 260 seconds]
jerematic has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
exchgr has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sunya7a__ has quit [Ping timeout: 260 seconds]
eb0t has joined #ruby
exchgr has joined #ruby
erlend has joined #ruby
sunya7a has joined #ruby
eblip has joined #ruby
banisterfiend has joined #ruby
Exagone313 has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
caleBOT has quit [Ping timeout: 255 seconds]
kent\n has joined #ruby
darix has joined #ruby
guille-moe has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
sylario has joined #ruby
jeffreylevesque has joined #ruby
johnny56_ has joined #ruby
guille-moe has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
ramfjord has joined #ruby
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather_ has joined #ruby
k0mpa has joined #ruby
GodFather_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 263 seconds]
guille-moe has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
banisterfiend has joined #ruby
netherwolfe has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
nickjj has quit [Read error: Connection reset by peer]
<zeroward_>
after seeking to the position in the file where the time is
conta has joined #ruby
<apeiros>
Zeroward: yeah, you're doing too many steps there. that'd be binary -> hex-string -> integer -> time
<apeiros>
as you can see above, you can skip the step of going via hex-string.
aufi has quit [Remote host closed the connection]
<apeiros>
but you need to know whether your integer is little or big endian, and you need to know whether it's truly a unix epoch timestamp
<apeiros>
which is one of the reasons a couple of us asked you for an example in-/output :-p
<havenwood>
with Ruby 2.4+ you can use #unpack1 too
<zeroward_>
So the input is the wtmp file.
<zeroward_>
Lol..
<havenwood>
Z\xE0\x9C\xFB".unpack1("N"))
<apeiros>
havenwood: oooooooh! <3 TIL
* apeiros
has no idea what "the wtmp file" is
<apeiros>
havenwood: I always wondered why no such method existed
<zeroward_>
wtmp file is a log for unix. typically used to log successful logins.
<havenwood>
apeiros: yeah, the name is odd, but i'm glad it was added
Burgestrand has quit [Quit: Closing time!]
<marc__>
So as it seems to be the right channel: I try to retrieve the value of the first column from an item retrieved from a treeview using "item.get("#0")" but I got this error "RuntimeError: Display column #0 cannot be set"
dmnd has quit []
<apeiros>
zeroward_: you can make it easier for people who try to help you by providing actual values
ellcs has quit [Ping timeout: 264 seconds]
dmnd has joined #ruby
<havenwood>
marc__: do you have a gist that reproduces it? or can you link to the code?
<zeroward_>
Honestly, your solution worked..
amitchellbullard has quit []
amitchellbullard has joined #ruby
GodFather has joined #ruby
vondruch_ has joined #ruby
<zeroward_>
Like, very well. It gave me exactly what I wanted.
vondruch_ has quit [Client Quit]
vondruch_ has joined #ruby
<zeroward_>
But just to clarify, I'll try to explain it a little more. Apologies, I honestly have no clue what I'm doing, and kinda got this project pushed off onto me at work.
vondruch has quit [Ping timeout: 255 seconds]
vondruch_ is now known as vondruch
<zeroward_>
I was getting values of 7a65726f77617264 and such, but had no clue on how to convert it over.
<zeroward_>
But yeah, your solution worked, so many thanks!
tvw has quit [Remote host closed the connection]
ircmaxell has quit []
<marc__>
Hi havenwood, can I send you the file with the example to avoid to copy it on the channel?
cyberg has joined #ruby
ircmaxell has joined #ruby
<marc__>
just to avoid the space consuption
<havenwood>
marc__: most people use a gist and paste the link
<ruby[bot]>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<havenwood>
?gist
<marc__>
ok sorry I didn't know, I check how it works
<havenwood>
dionysus69: How long does this take?: time ruby -rresolv -e "Resolv::DNS.new.getresource '_rubygems._tcp.rubygems.org', Resolv::DNS::Resource::IN::SRV"
<havenwood>
dionysus69: I get: ruby -rresolv -e 0.07s user 0.02s system 86% cpu 0.103 total
<havenwood>
dionysus69: but yeah, seems like you might be having DNS issues
schneider has quit [Ping timeout: 264 seconds]
<dionysus69>
hmm
<dionysus69>
those 4 lines of errors took about 5 seconds by now there are over ~500 lines
amar has quit [Ping timeout: 248 seconds]
<al2o3-cr>
i get "real 0m0.096s user 0m0.064s sys 0m0.010s"
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has quit [Ping timeout: 260 seconds]
shuforov has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
venmx has joined #ruby
x77686d has quit [Quit: x77686d]
zeroward_ has quit [Ping timeout: 276 seconds]
orbyt_ has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
dionysus70 has joined #ruby
sundhell_away is now known as sundhell
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
sundhell is now known as sundhell_away
schneider has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
erlend has quit [Ping timeout: 260 seconds]
venmx has quit [Ping timeout: 248 seconds]
erlend has joined #ruby
nima has quit [Quit: nima]
deathwishdave has joined #ruby
banisterfiend has joined #ruby
nima has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
deathwishdave has quit [Client Quit]
_antares_ has quit [Quit: Connection closed for inactivity]
nima has quit [Client Quit]
new_nick has joined #ruby
lytol has joined #ruby
nowhere_man has quit [Remote host closed the connection]
schneider has joined #ruby
nowhere_man has joined #ruby
nadir has joined #ruby
rwb has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
n3b has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n3b has joined #ruby
ellcs has quit [Ping timeout: 248 seconds]
schneider has quit [Ping timeout: 260 seconds]
zeroward_ has joined #ruby
hinbody has quit [Quit: leaving]
cschneid_ has joined #ruby
<zeroward_>
So, hopefully the last question. And this one I actually know to explain.
ellcs has joined #ruby
schneider has joined #ruby
new_nick has quit [Quit: new_nick]
<zeroward_>
Anyone know of a way to basically delete a section of data from a file? Like, let's say the file is 1000 bytes, but I want to only delete bytes 200-300.
<apeiros>
you truncate the file and rewrite the rest
<apeiros>
that's the unsafe method
<zeroward_>
So, whenever I do that, the data somehow changes..
<apeiros>
the safe method: you rewrite the file on a different place, then move & remove the original
Zaab1t has quit [Quit: Zaab1t]
deathwishdave has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby[bot]>
c0lored: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
jeffreylevesque has quit [Ping timeout: 255 seconds]
stairmast0r has quit [Quit: bye]
clemens3_ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BH23 has joined #ruby
stairmast0r has joined #ruby
Azure has joined #ruby
synthroid has joined #ruby
synthroid has quit [Remote host closed the connection]
spiette has quit [Remote host closed the connection]
kapil___ has quit [Quit: Connection closed for inactivity]
jenrzzz_ has joined #ruby
erlend has quit [Ping timeout: 248 seconds]
physicist__ has quit [Remote host closed the connection]
erlend has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
mlkkk has joined #ruby
ellcs has joined #ruby
Zeroward has quit [Read error: Connection reset by peer]
Zeroward has joined #ruby
venmx has joined #ruby
Zeroward has quit [Read error: Connection reset by peer]
grilix has quit [Ping timeout: 256 seconds]
psychicist__ has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz_ has quit [Ping timeout: 265 seconds]
groussel has quit [Quit: Leaving.]
ldnunes has quit [Quit: Leaving]
pilne has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cyberg has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
zeroward_ has quit [Ping timeout: 265 seconds]
cyberg has joined #ruby
kapil___ has joined #ruby
amar has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
duckpuppy has quit [Ping timeout: 256 seconds]
marc__ has joined #ruby
alfiemax has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
x77686d has quit [Quit: x77686d]
quobo has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
rfoust has joined #ruby
morenoh149 has quit [Ping timeout: 268 seconds]
roshanavand1 has quit [Remote host closed the connection]
<hays>
if i have to be compatible with 1.9.3 should I just use options={} when I want to have something that is like kwargs?
<hays>
or is there a way to monkeypatch it in
amar has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
<weaksauce>
baweaver are you thinking that the pattern matching would be only for case statements or something more broad... i could see type hinting being a powerful thing with pattern matching in ruby
<apeiros>
that's weird… is const_defined? monkey-patched?
n008f4g_ has joined #ruby
<apeiros>
because with 2.5.1 I get `Object.const_defined? "Array"` # => true
sameerynho has quit [Ping timeout: 248 seconds]
<Radar>
apeiros: Not within this particular codebase from what I can tell -- it's dry-core.
<Radar>
Some bullshit with autoloading again I guess.
<aarkerio>
newbie question: why "statement = true and false" results in "false" ?
<apeiros>
Radar: interesting
<Radar>
Defining the constant as Test::Project = Class.new(Test::Parent) works, but using the traditional "module Test; class Project < Test::Parent; end; end" does not.
ur5us has quit []
<Radar>
aarkerio: because "true and false" is false.
<apeiros>
using Kernel#autoload, `const_defined? :Sym` => immediately returns true
<apeiros>
but const_defined? "Sym" -> tries to load the file
<apeiros>
might be related
alfiemax has quit [Ping timeout: 248 seconds]
<apeiros>
aarkerio: uh, `statement = true and false` will evaluate to false, but assign true to the variable "statement"
<apeiros>
(because evaluation precedence is `(statement = true) and false`
<aarkerio>
ooohh!! I see, thanks guys
tvw has joined #ruby
karapetyan has quit [Remote host closed the connection]
aarkerio has quit [Quit: Leaving]
tvw has quit [Remote host closed the connection]
karapetyan has joined #ruby
tvw has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
guille-moe has joined #ruby
dipnlik has joined #ruby
jready has quit []
dipnlik has quit [Client Quit]
guille-moe has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
Psybur has joined #ruby
eckhardt has joined #ruby
eckhardt has quit [Client Quit]
roshanavand has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
eckhardt_ has quit [Ping timeout: 265 seconds]
Yzguy has quit [Quit: Zzz...]
tomphp has joined #ruby
duckpuppy has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jyaworski has quit [Ping timeout: 268 seconds]
dr3w_ has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
erlend has quit [Ping timeout: 260 seconds]
dhollinger has quit [Ping timeout: 260 seconds]
jeen has joined #ruby
erlend has joined #ruby
dhollinger has joined #ruby
John_Ivan has quit [Ping timeout: 256 seconds]
Miron has quit [Ping timeout: 256 seconds]
Exagone313 has quit [Quit: see ya!]
codepete has quit [Read error: Connection reset by peer]
codepete has joined #ruby
ren0v0_ has quit [Ping timeout: 240 seconds]
Exagone313 has joined #ruby
Miron has joined #ruby
ren0v0 has joined #ruby
jeen has quit [Quit: This computer has gone to sleep]
nitric has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
jeen has joined #ruby
jyaworski has joined #ruby
poloych has joined #ruby
poloych has quit [Remote host closed the connection]
venmx has quit [Remote host closed the connection]
samort7 has quit []
phenom has quit [Ping timeout: 264 seconds]
jyaworski has quit [Ping timeout: 240 seconds]
x77686d has quit [Quit: x77686d]
ur5us has joined #ruby
tvw has quit []
apeiros has quit [Ping timeout: 240 seconds]
clemens3_ has quit [Ping timeout: 260 seconds]
quobo has quit [Quit: Connection closed for inactivity]
cpruitt has quit [Remote host closed the connection]
phenom has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
jready has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]