<ericwood>
I have a friend who used bash on balls for something in the real world
<ericwood>
I worry about him sometimes
<ericwood>
(bash on balls is a bash web framework...)
<RickHull>
the future is distributed
<RickHull>
just unevenly
<whitequark>
RickHull: yay licensing
enebo has quit [Quit: enebo]
<whitequark>
you *used* to pay for, I think, a parallel instance of the interpreter or something
<whitequark>
back when mainframes were new hotness
charliesome has quit [Quit: zzz]
pikos has quit [Remote host closed the connection]
<RickHull>
yeah, cloud/AWS is the new mainframe. just charging for the machine and not the app
michaeldeol has joined #ruby-lang
arBmind has quit [Ping timeout: 250 seconds]
arBmind1 has joined #ruby-lang
havenwood has joined #ruby-lang
<RickHull>
wallerdev: FYI, your paste: zenspider.rb:51:in `block in <main>': undefined method `bench_range' for #<Class:0x00000001afba58> (NoMethodError)
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
<wallerdev>
haha oh well
<wallerdev>
i just searched pastebin for a usage
<RickHull>
you got this one straight from source. in 2010
<RickHull>
anywho, i'm still leaning towards a bug. drbrain or banisterfiend, do you mind confirming?
<RickHull>
(calling in some karma points hopefully)
usershell has quit [Remote host closed the connection]
duderonomy has joined #ruby-lang
oleo has quit [Quit: Verlassend]
Lewix has quit [Remote host closed the connection]
hagabaka has quit [Ping timeout: 244 seconds]
kaiwren has joined #ruby-lang
hagabaka has joined #ruby-lang
RobertBirnie has joined #ruby-lang
usershell has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Xzyx987X has quit [Ping timeout: 255 seconds]
kiyote23 has quit [Remote host closed the connection]
midhir has joined #ruby-lang
midhir has quit [Ping timeout: 252 seconds]
Mothore has quit [Quit: Be back later ...]
jo__ has quit [Quit: Connection closed for inactivity]
kiyote23 has joined #ruby-lang
Musashi007 has joined #ruby-lang
jxie has quit [Ping timeout: 245 seconds]
jxie has joined #ruby-lang
usershell has quit [Remote host closed the connection]
chancancode_ is now known as chancancode
emmesswhy has quit [Quit: This computer has gone to sleep]
Xzyx987X has joined #ruby-lang
drewxiu has joined #ruby-lang
centrx has quit [Quit: Did gyre and gymble in ye wabe]
ikrima has quit [Read error: Connection reset by peer]
ikrima has joined #ruby-lang
usershell has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
futilegames has joined #ruby-lang
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Ping timeout: 264 seconds]
fedexo has quit [Ping timeout: 250 seconds]
RobertBirnie has joined #ruby-lang
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
matsutomo has joined #ruby-lang
weaksauce has joined #ruby-lang
lapide_viridi has joined #ruby-lang
jeremie has quit [Quit: ChatZilla 0.9.91 [Firefox 33.1/20141106120505]]
JohnBat26 has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
hendranata has joined #ruby-lang
hendranata has quit [Client Quit]
hendranata has joined #ruby-lang
drewxiu has quit [Ping timeout: 244 seconds]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
matsutomo has quit [Quit: matsutomo]
Bwild has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
matsutomo has joined #ruby-lang
solars has joined #ruby-lang
ledestin has quit [Ping timeout: 240 seconds]
t_ has quit [Ping timeout: 258 seconds]
q_leonetti has joined #ruby-lang
ledestin has joined #ruby-lang
allomov has joined #ruby-lang
charliesome has quit [Quit: zzz]
usershell has quit [Remote host closed the connection]
hahuang62 has joined #ruby-lang
usershell has joined #ruby-lang
fusillicode has joined #ruby-lang
badeball_ is now known as badeball
hahuang62 has quit [Ping timeout: 258 seconds]
|jemc| has joined #ruby-lang
AKASkip has joined #ruby-lang
mistym has quit [Remote host closed the connection]
q_leonetti_ has joined #ruby-lang
Iskarlar has joined #ruby-lang
hendranata has quit [Read error: Connection reset by peer]
q_leonetti has quit [Ping timeout: 240 seconds]
q_leonetti_ is now known as q_leonetti
usershell has quit [Ping timeout: 256 seconds]
AndChat|377264 has joined #ruby-lang
usershell has joined #ruby-lang
kwd has joined #ruby-lang
midhir has joined #ruby-lang
qba73 has joined #ruby-lang
usershel_ has joined #ruby-lang
midhir has quit [Ping timeout: 245 seconds]
usershell has quit [Ping timeout: 250 seconds]
arBmind1 has quit [Quit: Leaving.]
hhatch has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
AndChat-377264 has joined #ruby-lang
AndChat|377264 has quit [Read error: Connection reset by peer]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
Bwild has quit [Quit: leaving]
lapide_viridi has quit [Ping timeout: 244 seconds]
RickHull has quit [Ping timeout: 246 seconds]
lapide_viridi has joined #ruby-lang
RbLeif has joined #ruby-lang
spastorino has joined #ruby-lang
AndChat-377264 has quit [Ping timeout: 255 seconds]
Quackmatic is now known as Elite6809
ur5us has joined #ruby-lang
ruby-lang775 has joined #ruby-lang
ruby-lang775 is now known as clemens
clemens is now known as clemens2
matsutomo has quit [Quit: matsutomo]
<clemens2>
Hello, I can't use gem install anymore, getting: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
<clemens2>
any ideas? (thanks!!)
Forgetful_Lion has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matp has quit [Remote host closed the connection]
faces has joined #ruby-lang
matp has joined #ruby-lang
face has quit [Ping timeout: 250 seconds]
<bnagy>
clemens2: probably you don't have the CA cert bundle anywhere ruby can find it
<bnagy>
google for your error along with your OS and possibly cacert.pem
caseydriscoll has quit [Read error: No route to host]
caseydriscoll has joined #ruby-lang
<yorickpeterse>
morning
vieq has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
vieq has joined #ruby-lang
hahuang62 has joined #ruby-lang
marr has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
usershel_ has quit [Remote host closed the connection]
<clemens2>
bnagy: yes, seems a mac and ruby 2.1 thingy.. continue googling..
allomov has quit [Ping timeout: 244 seconds]
hahuang62 has quit [Ping timeout: 244 seconds]
gss has joined #ruby-lang
micechal has joined #ruby-lang
transiency has joined #ruby-lang
micechal_ has quit [Ping timeout: 250 seconds]
<clemens2>
bnagy: worked around by using gem --source http instead of https.. ok, thanks!
futilegames has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby-lang
charliesome has joined #ruby-lang
arBmind has joined #ruby-lang
futilegames has quit [Ping timeout: 250 seconds]
gss_ has joined #ruby-lang
benlovell has joined #ruby-lang
gss has quit [Ping timeout: 244 seconds]
nofxx_ has quit [Ping timeout: 256 seconds]
futilegames has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
q_leonetti_ has joined #ruby-lang
q_leonetti has quit [Ping timeout: 244 seconds]
q_leonetti_ is now known as q_leonetti
skade has joined #ruby-lang
yfeldblum has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
futilegames has joined #ruby-lang
allomov has joined #ruby-lang
midhir has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
futilegames has quit [Ping timeout: 256 seconds]
micechal_ has joined #ruby-lang
chussenot has joined #ruby-lang
solars has quit [Quit: WeeChat 0.4.2]
solars has joined #ruby-lang
micechal has quit [Ping timeout: 272 seconds]
futilegames has joined #ruby-lang
[spoiler] has joined #ruby-lang
mkaesz has joined #ruby-lang
face has joined #ruby-lang
faces has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby-lang
futilegames has quit [Ping timeout: 244 seconds]
yusuf1 has left #ruby-lang [#ruby-lang]
chussenot has quit [Quit: chussenot]
futilegames has joined #ruby-lang
gss has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
gss_ has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby-lang
hhatch has quit [Read error: Connection reset by peer]
hhatch has joined #ruby-lang
kiyote23 has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
futilegames has joined #ruby-lang
kiyote23 has quit [Ping timeout: 244 seconds]
ldnunes has joined #ruby-lang
lapide_viridi has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
futilegames has quit [Ping timeout: 244 seconds]
midhir has quit [Remote host closed the connection]
futilegames has joined #ruby-lang
yfeldblum has joined #ruby-lang
chussenot has joined #ruby-lang
midhir has joined #ruby-lang
midhir_ has joined #ruby-lang
q_leonetti has quit [Quit: q_leonetti]
yfeldblum has quit [Ping timeout: 256 seconds]
futilegames has quit [Ping timeout: 256 seconds]
chussenot has quit [Client Quit]
futilegames has joined #ruby-lang
chussenot has joined #ruby-lang
clemens2 has quit [Ping timeout: 246 seconds]
<bnagy>
clemens2: you make me a sad panda 8:<
<bnagy>
fix your damn certs!
<zenspider>
haha
<zenspider>
I thought about chastizing and just sighed
elia has joined #ruby-lang
<bnagy>
omg I am grumpier than zenspider it's all over
<zenspider>
doooooooom
<zenspider>
doom and bed
<bnagy>
/o\
kaiwren has quit [Ping timeout: 258 seconds]
futilegames has quit [Ping timeout: 256 seconds]
Cyllpher has joined #ruby-lang
futilegames has joined #ruby-lang
ledestin has quit [Ping timeout: 255 seconds]
ikrima has quit [Read error: Connection reset by peer]
ikrima has joined #ruby-lang
ledestin has joined #ruby-lang
tzero has quit [Ping timeout: 256 seconds]
q_leonetti has joined #ruby-lang
q_leonetti has quit [Client Quit]
futilegames has quit [Ping timeout: 252 seconds]
elia has quit [Quit: Computer has gone to sleep.]
chussenot has quit [Quit: chussenot]
arBmind1 has joined #ruby-lang
kaiwren has joined #ruby-lang
midhir has quit [Remote host closed the connection]
elia has joined #ruby-lang
futilegames has joined #ruby-lang
chussenot has joined #ruby-lang
arBmind has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
caseydriscoll has joined #ruby-lang
faces has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
face has quit [Ping timeout: 255 seconds]
futilegames has quit [Ping timeout: 256 seconds]
mkaesz has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
iamninja has joined #ruby-lang
chussenot has quit [Quit: chussenot]
futilegames has joined #ruby-lang
tzero has joined #ruby-lang
dangerousdave has joined #ruby-lang
francisfish has joined #ruby-lang
midhir has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Ping timeout: 244 seconds]
fclausen has quit [Ping timeout: 272 seconds]
q_leonetti has joined #ruby-lang
futilegames has joined #ruby-lang
apeiros_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
futilegames has quit [Ping timeout: 245 seconds]
shazaum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 256 seconds]
futilegames has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 256 seconds]
hahuang62 has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
hahuang62 has quit [Ping timeout: 272 seconds]
benlovell has quit [Ping timeout: 250 seconds]
futilegames has joined #ruby-lang
allomov has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
allomov has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
ikrima has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby-lang
migbar has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
futilegames has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
GBrawl has joined #ruby-lang
futilegames has joined #ruby-lang
chussenot has joined #ruby-lang
ikrima has joined #ruby-lang
elimS has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
q_leonetti has quit [Quit: q_leonetti]
allomov has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
chussenot has quit [Quit: chussenot]
mkaesz has joined #ruby-lang
allomov has joined #ruby-lang
futilegames has joined #ruby-lang
chussenot has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
chussenot has quit [Client Quit]
jmrepetti has joined #ruby-lang
jmrepetti has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
chussenot has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
chussenot has quit [Client Quit]
ddd has joined #ruby-lang
elimS has quit [Quit: Be back later ...]
klmlfl has joined #ruby-lang
chussenot has joined #ruby-lang
stamina has joined #ruby-lang
benlovell has joined #ruby-lang
midhir has quit [Remote host closed the connection]
elimS has joined #ruby-lang
midhir has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
<ledestin>
The GROUP BY statement is used in conjunction with the aggregate functions to group the result-set by one or more columns.
francisfish has quit [Client Quit]
<yorickpeterse>
euh, seems your quoting is fucked up
<yorickpeterse>
unless Pg supports double quotes for columns
<ljarvis>
select distinct product_id, created_at from activities order by created_at desc limit 1; doesn't work?
<andrewvos>
yorickpeterse: yeah double quotes are for columns
drewxiu has quit [Ping timeout: 245 seconds]
<yorickpeterse>
oh TIL
<andrewvos>
ljarvis: Yeah but I want the entire model though
<andrewvos>
ljarvis: Oh limit 1 = no
<andrewvos>
I'm displaying a list of activities
ddd has joined #ruby-lang
<tbuehlmann>
andrewvos, have you read the actual error message?
<andrewvos>
tbuehlmann: yeah?
<tbuehlmann>
have you tried grouping with the id or aggregating it?
futilegames has joined #ruby-lang
<andrewvos>
tbuehlmann: Does not return distinct product_id: Activity.group(:product_id, :id).order(created_at: :desc)
<andrewvos>
And I wouldn't expect it to
<ljarvis>
select distinct on (product_id) * from activities order by product_id, created_at desc;
<ljarvis>
or something
kurko__ has joined #ruby-lang
emmesswhy has joined #ruby-lang
<andrewvos>
hmmmm
<tbuehlmann>
andrewvos, what exactly do you want the query to return?
kwd has quit [Quit: kwd]
<andrewvos>
The latest Activit{y,ies} with distinct product_ids
<ljarvis>
didn't my query work?
<andrewvos>
ljarvis: Still testing it out in rails
<andrewvos>
My tests are failing, so just double checking they're actually good tests
juuio has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
futilegames has quit [Ping timeout: 240 seconds]
jmrepetti has joined #ruby-lang
Guest35729 has quit [Ping timeout: 264 seconds]
<andrewvos>
ljarvis: So your query will only really sort by created_at when product_id is the same though?
oleo has joined #ruby-lang
<ljarvis>
right, it'll sort by product_id then created_at, you can switch those but iirc product_id needs to be in the query using distinct on expression, though i didn't test that
<andrewvos>
it does need to be in there
<andrewvos>
not sure if it needs to be first though...
<ljarvis>
right
nathanstitt has joined #ruby-lang
<andrewvos>
ah it must be first
<andrewvos>
god damnit
futilegames has joined #ruby-lang
<ljarvis>
andrewvos: I'd ask in #postgresql i can't really help without running queries which i cant do right now so it's guess work, smart people in there though
arooni-mobile has joined #ruby-lang
<andrewvos>
Cool thanks for the help though dude
godd2 has quit [Ping timeout: 240 seconds]
futilegames has quit [Ping timeout: 244 seconds]
ConstantineXVI has quit [Max SendQ exceeded]
RbLeif has quit []
midhir__ has quit [Remote host closed the connection]
<andrewvos>
ljarvis:
<andrewvos>
activities = Activity
<andrewvos>
.select("DISTINCT ON (product_id) product_id, activities.*")
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
klmlfl has joined #ruby-lang
sush24 has joined #ruby-lang
futilegames has joined #ruby-lang
sush24 has quit [Client Quit]
fijimunkii has joined #ruby-lang
michaeldeol has joined #ruby-lang
skade has joined #ruby-lang
djbkd has joined #ruby-lang
jeff_r has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
oleo__ has joined #ruby-lang
oleo is now known as Guest54174
jeff_r is now known as 77CAAVBHL
jeff_r has joined #ruby-lang
henrikhodne has quit [Ping timeout: 244 seconds]
skade has quit [Client Quit]
_dyrim has quit [Ping timeout: 244 seconds]
mistym has quit [Ping timeout: 244 seconds]
JoL1hAHN has quit [Ping timeout: 244 seconds]
Guest54174 has quit [Ping timeout: 250 seconds]
mistym has joined #ruby-lang
futilegames has joined #ruby-lang
_dyrim has joined #ruby-lang
henrikhodne has joined #ruby-lang
JoL1hAHN has joined #ruby-lang
straydogstudio has joined #ruby-lang
jimbach has joined #ruby-lang
fijimunkii has quit [Quit: leaving]
jimbach has quit [Read error: Connection reset by peer]
oleo__ has quit [Quit: Verlassend]
jimbach has joined #ruby-lang
imjacobclark has joined #ruby-lang
a[0] has quit [Quit: This computer has gone to sleep]
djbkd has quit [Remote host closed the connection]
skade has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
ruby-lang928 has joined #ruby-lang
ruby-lang928 has quit [Client Quit]
oop-learner has joined #ruby-lang
iamninja has joined #ruby-lang
jimbach has quit [Ping timeout: 258 seconds]
<oop-learner>
Hi guys, has anyone got a moment to answer some basic OOP design questions?
oleo__ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
oleo__ is now known as oleo
futilegames has joined #ruby-lang
a[0] has joined #ruby-lang
ta has quit [Quit: Leaving...]
<apeiros>
oop-learner: don't ask to ask. just ask.
<oop-learner>
Lets say I have a basic sales order application. I have an "orders" class. The instances need to be stored in an array to be later Marshal'd
<oop-learner>
Do I have another class (a singleton) "orders_list" to store the orders objects? Or does the object list go in the orders class as a global???
<oop-learner>
Sorry I mean Class variable
ur5us has joined #ruby-lang
<apeiros>
you could have Order and Order.all_orders
<apeiros>
or Order.all
<apeiros>
and store it in a class instance variable
allomov has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<oop-learner>
It my programming is long running, I guess on dumping and restoring the orders the class instance holding all the objects would be reset somehow?
yfeldblum has joined #ruby-lang
futilegames has quit [Ping timeout: 252 seconds]
chussenot has quit [Quit: chussenot]
ikrima has quit [Ping timeout: 272 seconds]
<oop-learner>
ok so now I have a @@all_orders class variable. In the initialize method I want to push the new instance object onto the @@all_orders array stack. How would I do this? (@@all_orders << self..?)
ldnunes has quit [Quit: Leaving]
Bwild has joined #ruby-lang
futilegames has joined #ruby-lang
postmodern has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
a[0] has quit [Quit: This computer has gone to sleep]
robbyoconnor has quit [Quit: Konversation terminated!]
wallerdev has quit [Quit: wallerdev]
godd2 has joined #ruby-lang
jimbach has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
nathanstitt has quit [Quit: Laters]
futilegames has joined #ruby-lang
a[0] has joined #ruby-lang
chouhoul_ has joined #ruby-lang
fusillicode has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Client Quit]
usershell has joined #ruby-lang
michaeldeol has joined #ruby-lang
Bwild has quit [Ping timeout: 244 seconds]
mistym has joined #ruby-lang
_fritchie has joined #ruby-lang
Bwild has joined #ruby-lang
chouhoulis has quit [Ping timeout: 264 seconds]
Bwild has quit [Client Quit]
djbkd has joined #ruby-lang
midhir has quit [Remote host closed the connection]
usershel_ has quit [Remote host closed the connection]
usershell has quit [Ping timeout: 264 seconds]
brownbathrobe has joined #ruby-lang
usershel_ has joined #ruby-lang
skade has joined #ruby-lang
arooni-mobile has joined #ruby-lang
mistym has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
nathanstitt has joined #ruby-lang
benlovell has quit [Ping timeout: 252 seconds]
amigo99 has quit [Quit: This computer has gone to sleep]
redgetan has joined #ruby-lang
1JTAA9G0W has joined #ruby-lang
fclausen has joined #ruby-lang
djbkd has joined #ruby-lang
arooni-mobile has quit [Quit: Leaving]
mistym_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
kurko__ has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Computer has gone to sleep.]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Client Quit]
redgetan has quit [Quit: This computer has gone to sleep]
kurko__ has joined #ruby-lang
geekygator has joined #ruby-lang
spetryk has joined #ruby-lang
<spetryk>
test
gianlucadv has quit [Ping timeout: 245 seconds]
kiyote23 has quit [Read error: Connection reset by peer]
kiyote23 has joined #ruby-lang
ta_ has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
chouhoul_ has joined #ruby-lang
diegoviola has joined #ruby-lang
usershel_ has quit [Remote host closed the connection]
spetryk has left #ruby-lang [#ruby-lang]
spetryk has joined #ruby-lang
usershell has joined #ruby-lang
chouhoulis has quit [Ping timeout: 244 seconds]
geekygator has quit [Quit: leaving]
midhir has joined #ruby-lang
hramrach_ has quit [Remote host closed the connection]
ta has joined #ruby-lang
hramrach_ has joined #ruby-lang
spetryk has left #ruby-lang [#ruby-lang]
spetryk has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
chouhoulis has joined #ruby-lang
redgetan has joined #ruby-lang
<ljarvis>
it works
emmesswhy has joined #ruby-lang
momomomomo has joined #ruby-lang
<spetryk>
What works?
nofxx__ has quit [Ping timeout: 265 seconds]
<ljarvis>
your test
voxxit has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
Musashi007 has joined #ruby-lang
voxxit has joined #ruby-lang
benlovell has joined #ruby-lang
GBrawl has joined #ruby-lang
djbkd has joined #ruby-lang
nofxx__ has joined #ruby-lang
a[0] has quit [Quit: Leaving]
jimbach has quit [Read error: Network is unreachable]
jimbach has joined #ruby-lang
spetryk is now known as stevenpetryk
benlovell has quit [Ping timeout: 245 seconds]
Mothore has quit [Quit: Be back later ...]
voxxit has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
setanta has quit [Quit: Leaving]
mustmodify has joined #ruby-lang
<mustmodify>
I was just going to fix a bug in my 'attr_accessor on steroids' gem, Valuable. I left some code uncommitted there... an incomplete thought... I'm trying to figure out why I would have written this 'metaclass' method. Any thoughts would be appreciated. :P https://gist.github.com/mustmodify/4dd0136bdc7fe9532a3e
<zenspider>
so you can make class methods dynamically?
allomov has joined #ruby-lang
hagabaka has quit [Ping timeout: 244 seconds]
GBrawl has quit [Quit: (null)]
<mustmodify>
zenspider: couldn't I do that via self.class rather than metaclass?
natevick has joined #ruby-lang
geekygator has joined #ruby-lang
hagabaka has joined #ruby-lang
bin7me has quit [Read error: Connection reset by peer]
stevenpetryk has quit [Quit: Lost terminal]
redgetan has quit [Quit: This computer has gone to sleep]
mistym_ has quit [Remote host closed the connection]
geekygator has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
1JTAA9G0W has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stevenpetryk has joined #ruby-lang
<zenspider>
mustmodify: not quite the same thing. the metaclass thing is the anonymous class for the instance of the class (eigenclass, whatever). look at minitest/mock for more examples
<mustmodify>
it's an anonymous stand-in for the instance of the class.
<mustmodify>
hm...
<mustmodify>
I guess I'm trying to figure out the differences in functionality. I'm writing some tests around it now and hopefully that'll help me figure it out.
<mustmodify>
zenspider: I'm fond of them. When I originally started this gem I was like, "I don't need no rspec, I'll use test-unit. That way no one will have to install dependencies!" I guess that was stupid but I feel like I'm writing in --- ok not C, but I feel like I've dropped down a few levels of abstraction to where really fast things happen.
<mustmodify>
I'm sure it's no faster but it feels less comfy and therefor slightly edgier. :P
<zenspider>
well, it's certainly faster than rspec
<zenspider>
measurably so
voxxit has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
dagda1 has joined #ruby-lang
x-light has joined #ruby-lang
PaulePan1er is now known as PaulePanter
voxxit has quit [Remote host closed the connection]
voxxit has joined #ruby-lang
kurko__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
77CAAVBHL has quit [Read error: Connection reset by peer]
kurko__ has joined #ruby-lang
arBmind has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
voxxit has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
<mustmodify>
so in short, if you use self.class you define the method on every class that inherits from your parent. Which can be problematic.
momomomomo has quit [Ping timeout: 245 seconds]
kurko__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kith has quit [Read error: Connection reset by peer]
kith has joined #ruby-lang
GBrawl has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 244 seconds]
skade has joined #ruby-lang
momomomomo has joined #ruby-lang
spetryk has joined #ruby-lang
miqui__ has quit [Ping timeout: 245 seconds]
futilegames has quit [Ping timeout: 256 seconds]
imjacobclark has quit [Remote host closed the connection]
GBrawl has quit [Ping timeout: 260 seconds]
imjacobclark has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
antoniusglock has quit [Quit: leaving]
antoniusglock has joined #ruby-lang
imjacobclark has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby-lang
RickHull has joined #ruby-lang
hhatch has quit [Ping timeout: 244 seconds]
whippythellama has quit [Quit: whippythellama]
jeff_r has joined #ruby-lang
jeff_r has quit [Read error: Connection reset by peer]
AKASkip has quit [Ping timeout: 258 seconds]
jeff_r has joined #ruby-lang
kurko__ has joined #ruby-lang
jeff_r has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
jeff_r has joined #ruby-lang
voxxit has joined #ruby-lang
futilegames has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby-lang
jeff_r has quit [Read error: Connection reset by peer]
jeff_r has joined #ruby-lang
brownbathrobe has quit [Remote host closed the connection]
jeff_r has quit [Read error: Connection reset by peer]
jeff_r has joined #ruby-lang
futilegames has joined #ruby-lang
Shazaum has joined #ruby-lang
jeff_r has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby-lang
apeiros_ has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
shambrarian has quit [Quit: bye!]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 244 seconds]
futilegames has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
nathanstitt has quit [Ping timeout: 258 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
futilegames has joined #ruby-lang
jxie has joined #ruby-lang
spetryk has quit [Quit: Be back later ...]
usershell has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
allomov has quit [Remote host closed the connection]
futilegames has quit [Ping timeout: 244 seconds]
futilegames has joined #ruby-lang
benlovell has joined #ruby-lang
fclausen has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
kiyote23 has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
emmesswhy has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
futilegames has quit [Ping timeout: 256 seconds]
futilegames has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]