00:00
<
yakko >
mpapis: you mean inside the action itself?
00:02
<
mpapis >
I think yes ... not much of rails user in last years
00:02
davispuh has joined #rubygems
00:03
<
yakko >
mpapis: it's simple, you want to authorize the resource to the current user right after you've loaded it, putting it all in the action makes it very bad to read
00:05
<
yakko >
mpapis: that along with nested resources were my 2 main reasons why I decided to write this gem
00:05
<
mpapis >
yakko, putting it into action makes it happen i right place, keep before for all ... or am I missing something important except moving code to different place?
00:05
<
yakko >
mpapis: nah, you're not missing anything
00:05
huoxito has joined #rubygems
00:05
<
yakko >
it's really all it does, makes your code more readable
00:06
<
mpapis >
yakko, then I would register it on top level (above before....) and make them replace the def's
00:07
<
yakko >
from a readability perspective, when def update finds the resource AND updates it, it's hurting the Single Responsibility principle
00:08
<
yakko >
which is OK when you only have HTML
00:08
<
yakko >
gets acceptable when you have format.json
00:09
<
mpapis >
I do not care much for all the rules, just noticing duplication of the defs and your "definitions"
00:09
<
yakko >
but is turned into hell when you have situations with more complex logic than that
00:09
<
mpapis >
provide better dsl for it
00:10
huoxito has quit [Ping timeout: 245 seconds]
00:10
<
yakko >
that gem is an alternative to others such as inherited resources, for people like me who don't like too much magic in their code
00:10
<
qrush_ >
we're down
00:11
<
qrush_ >
evan: dwradcliffe vertis samkottler
00:11
<
dwradcliffe >
yup, looking now
00:11
<
qrush_ >
back alive
00:11
<
yakko >
qrush_: that was quick
00:11
<
mpapis >
yakko, moving code from defs to dsl in before... is magic for me
00:12
<
yakko >
mpapis: there's a scaffold_controller template to help you do that
00:12
<
qrush_ >
well thats fun
00:13
<
dwradcliffe >
still not really fixed
00:13
<
yakko >
mpapis: installing all my ruby dependencies, THAT magic is fucking awesome! <3
00:13
<
mpapis >
yakko, I mean before_action only(:index){} feels like duplication of def index
00:14
<
qrush_ >
dwradcliffe: what happened?
00:14
<
yakko >
mpapis: as I said, it's ACTUAL benefit is when you have to authorize loaded resources OR when you have nested resources
00:15
drbrain has joined #rubygems
00:15
<
mpapis >
yakko, 1) you still have to define all the methods, 2) you have part of code in only(:create) and in def create
00:15
fidothe___ has joined #rubygems
00:15
<
yakko >
mpapis: and if you think about it, most cases of nested resources require authorization logic
00:16
electrical_ has joined #rubygems
00:16
<
mpapis >
yakko, then your docs suck at explaining the difference
00:17
akahn_ has joined #rubygems
00:17
mjc__ has joined #rubygems
00:18
<
mpapis >
yakko, and even then, what's the difference, the before_... would do all the important stuff, show "diff -u" of old code and new code, how does it improve for auth
00:19
<
yakko >
mpapis: I value your input on documentation
00:19
<
mpapis >
yakko, just trying to understand why I should promote it, from the example pic and readme - I do not get the benefit of it
00:20
yo61_ has joined #rubygems
00:20
<
yakko >
mpapis: I will work on making it more explanatory, I have also been working on another open source project for Rails, I have a day job, and I'm newly married
00:21
fidothe__ has quit [Ping timeout: 272 seconds]
00:21
Fenhl has quit [Ping timeout: 272 seconds]
00:21
imslavko_ has quit [Ping timeout: 272 seconds]
00:21
electrical has quit [Ping timeout: 272 seconds]
00:21
Emily has quit [Ping timeout: 272 seconds]
00:21
akahn has quit [Ping timeout: 272 seconds]
00:21
yo61 has quit [Ping timeout: 272 seconds]
00:21
mjc_ has quit [Ping timeout: 272 seconds]
00:21
fidothe___ is now known as fidothe__
00:21
Emily_ has joined #rubygems
00:21
Emily_ is now known as Emily
00:21
Emily has quit [Changing host]
00:21
Emily has joined #rubygems
00:21
<
yakko >
my spouse is often unhappy with my absence, I try to make do
00:22
<
mpapis >
yakko, oh newly married, have a lot of fun as long as it lasts, all the other things get in the way later (OSS)
00:22
<
dwradcliffe >
qrush_: PG is overloaded at the moment
00:22
<
qrush_ >
anything i can help with?
00:22
Fenhl has joined #rubygems
00:22
electrical_ is now known as electrical
00:23
imslavko_ has joined #rubygems
00:24
akahn_ is now known as akahn
00:25
yo61_ is now known as yo61
00:25
mjc__ is now known as mjc_
00:25
thumpba has quit [Remote host closed the connection]
00:26
<
yakko >
mpapis: this is a gem to help beginners, thanks for pointing out my deficit on documentation, sometimes I get a little too much in my head and forget the presentation side
00:26
thumpba has joined #rubygems
00:27
<
mpapis >
yakko, is exactly the same thing I do - assume to much and think everybody knows what the hell I talk about
00:28
<
dwradcliffe >
qrush_: DDOS
00:29
<
dwradcliffe >
well really just DOS
00:29
<
dwradcliffe >
someone crawling the site
00:29
<
qrush_ >
can we block their ip?
00:29
<
dwradcliffe >
yeah already done
00:29
<
dwradcliffe >
recovering now
00:31
<
yakko >
crawlers should put a sleep call instead of multiple threads =/
00:35
Fenhl_ has joined #rubygems
00:38
<
mpapis >
qrush_, dwradcliffe nothing that fail2ban could handle with good rules?
00:38
ddd has quit [*.net *.split]
00:38
<
dwradcliffe >
yeah we're going to add some rate limiting in the next few days
00:39
<
dwradcliffe >
and also speed up our Time To Block
00:39
<
mpapis >
make sure to not rate limit travis, they already hit problems sometimes
00:39
<
dwradcliffe >
good call
00:45
Fenhl has quit [*.net *.split]
00:45
Fenhl_ is now known as Fenhl
00:46
luislavena has joined #rubygems
00:46
<
luislavena >
drbrain: hello
00:47
huoxito has joined #rubygems
00:49
ddd has joined #rubygems
00:49
ddd is now known as Guest95651
00:55
davispuh has quit [Remote host closed the connection]
00:56
Kaltiz has quit [Ping timeout: 252 seconds]
00:56
Fenhl_ has joined #rubygems
00:58
imslavko__ has joined #rubygems
00:58
freedrul1 has joined #rubygems
00:59
luislave_ has joined #rubygems
01:01
drbrain_ has joined #rubygems
01:01
luislave_ has quit [Client Quit]
01:02
mjc__ has joined #rubygems
01:03
yo61_ has joined #rubygems
01:04
fidothe___ has joined #rubygems
01:05
Kaltiz has joined #rubygems
01:06
Fenhl has quit [Ping timeout: 268 seconds]
01:06
shtirlic has quit [Ping timeout: 268 seconds]
01:06
imslavko_ has quit [Ping timeout: 268 seconds]
01:06
freedrull has quit [Ping timeout: 268 seconds]
01:06
6JTAAFV7U has quit [Ping timeout: 268 seconds]
01:06
luislavena has quit [Ping timeout: 268 seconds]
01:06
Emily has quit [Ping timeout: 268 seconds]
01:06
yo61 has quit [Ping timeout: 268 seconds]
01:06
mjc_ has quit [Ping timeout: 268 seconds]
01:06
drbrain has quit [Ping timeout: 268 seconds]
01:06
jamooo has quit [Ping timeout: 268 seconds]
01:06
shtirlic has joined #rubygems
01:07
Kaltiz has quit [Excess Flood]
01:07
fidothe__ has quit [Write error: Connection reset by peer]
01:07
jamooo_ has joined #rubygems
01:07
drbrain_ is now known as drbrain
01:07
fidothe___ is now known as fidothe__
01:07
[reed] has joined #rubygems
01:08
Emily has joined #rubygems
01:08
davispuh has joined #rubygems
01:08
Kaltiz has joined #rubygems
01:11
yo61_ is now known as yo61
01:13
electrical_ has joined #rubygems
01:13
yakko has quit [Ping timeout: 252 seconds]
01:14
akahn_ has joined #rubygems
01:15
jamooo has joined #rubygems
01:20
Emily_ has joined #rubygems
01:20
davispuh has quit [*.net *.split]
01:20
Emily has quit [*.net *.split]
01:20
[reed] has quit [*.net *.split]
01:20
jamooo_ has quit [*.net *.split]
01:20
akahn has quit [*.net *.split]
01:20
electrical has quit [*.net *.split]
01:20
Emily has joined #rubygems
01:20
dknox has quit [*.net *.split]
01:20
Emily_ is now known as Emily
01:20
Emily has quit [Changing host]
01:22
electrical_ is now known as electrical
01:22
akahn_ is now known as akahn
01:28
dknox has joined #rubygems
01:29
jamooo_ has joined #rubygems
01:32
drbrain has quit [Ping timeout: 276 seconds]
01:32
jamooo has quit [Ping timeout: 276 seconds]
01:32
morphis has quit [Ping timeout: 276 seconds]
01:32
77CAAFWVD has quit [Ping timeout: 276 seconds]
01:32
indirect has quit [Ping timeout: 276 seconds]
01:32
morphis has joined #rubygems
01:36
jamo_ has joined #rubygems
02:35
tenderlove has quit [Remote host closed the connection]
02:35
tenderlove has joined #rubygems
02:42
tenderlove has quit [Ping timeout: 276 seconds]
02:52
tenderlove has joined #rubygems
03:00
seanlinsley has joined #rubygems
03:00
tenderlove has quit [Quit: Leaving...]
03:30
denym_OFF has quit [Ping timeout: 260 seconds]
03:32
denym_OFF has joined #rubygems
03:46
yakko has joined #rubygems
04:03
huoxito has quit [Remote host closed the connection]
04:04
huoxito has joined #rubygems
04:04
huoxito has quit [Remote host closed the connection]
04:54
yakko is now known as thejamespinto
04:58
indirect has joined #rubygems
04:58
drbrain has joined #rubygems
04:58
[reed] has joined #rubygems
04:58
lsegal has joined #rubygems
04:59
[reed] has joined #rubygems
04:59
[reed] has quit [Changing host]
04:59
huoxito has joined #rubygems
05:03
Fenhl_ has quit [Changing host]
05:03
Fenhl_ has joined #rubygems
05:03
imslavko__ has quit [Changing host]
05:03
imslavko__ has joined #rubygems
05:03
mjc__ has joined #rubygems
05:03
mjc__ has quit [Changing host]
05:03
yo61 has joined #rubygems
05:03
yo61 has quit [Changing host]
05:03
fidothe__ has quit [Changing host]
05:03
fidothe__ has joined #rubygems
05:04
electrical has quit [Changing host]
05:04
electrical has joined #rubygems
05:04
akahn has joined #rubygems
05:04
akahn has quit [Changing host]
05:05
huoxito has quit [Ping timeout: 276 seconds]
05:21
cstrahan has quit [Ping timeout: 240 seconds]
05:21
dwradcliffe has quit [Ping timeout: 240 seconds]
05:23
dwradcliffe_ has joined #rubygems
05:24
cstrahan_ has joined #rubygems
05:31
mjc__ has quit [Ping timeout: 272 seconds]
05:32
ckrailo has quit [Ping timeout: 260 seconds]
05:32
johnmwilliams___ has quit [Ping timeout: 260 seconds]
05:32
davidjrice____ has quit [Ping timeout: 260 seconds]
05:32
JSharp has quit [Ping timeout: 260 seconds]
05:32
avdi has quit [Ping timeout: 260 seconds]
05:32
vertis has quit [Ping timeout: 260 seconds]
05:32
tmoore has quit [Ping timeout: 260 seconds]
05:33
yo61 has quit [Ping timeout: 252 seconds]
05:33
qrush_ has quit [Ping timeout: 240 seconds]
05:33
th2389____ has quit [Ping timeout: 240 seconds]
05:33
Guest85414______ has quit [Ping timeout: 260 seconds]
05:33
Shoffner__ has quit [Ping timeout: 260 seconds]
05:33
nz_________ has quit [Ping timeout: 260 seconds]
05:33
aquaranto has quit [Ping timeout: 260 seconds]
05:33
schisamo_ has quit [Ping timeout: 260 seconds]
05:33
guilleiguaran___ has quit [Ping timeout: 260 seconds]
05:33
jesser has quit [Ping timeout: 260 seconds]
05:33
whoojemaflip has quit [Ping timeout: 260 seconds]
05:33
tiagonobre_ has quit [Ping timeout: 260 seconds]
05:33
dwradcliffe_ has quit [Ping timeout: 268 seconds]
05:33
akahn has quit [Ping timeout: 272 seconds]
05:33
fidothe__ has quit [Ping timeout: 272 seconds]
05:33
imslavko__ has quit [Ping timeout: 272 seconds]
05:33
Fenhl_ has quit [Ping timeout: 272 seconds]
05:33
cstrahan_ has quit [Ping timeout: 268 seconds]
05:33
electrical has quit [Ping timeout: 268 seconds]
05:35
robotblake has joined #rubygems
05:44
jhass is now known as jhass|off
06:07
robotblake has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:12
ckrailo has joined #rubygems
07:12
akahn_ has joined #rubygems
07:15
Fenhl_ has joined #rubygems
07:15
guilleiguaran___ has joined #rubygems
07:16
qrush__ has joined #rubygems
07:17
Shoffner___ has joined #rubygems
07:17
imslavko__ has joined #rubygems
07:17
JSharp has joined #rubygems
07:18
yo61_ has joined #rubygems
07:18
vertis has joined #rubygems
07:18
electrical_ has joined #rubygems
07:18
tiagonobre_ has joined #rubygems
07:20
aquaranto_ has joined #rubygems
07:20
avdi has joined #rubygems
07:20
whoojemaflip_ has joined #rubygems
07:20
tmoore has joined #rubygems
07:20
johnmwilliams___ has joined #rubygems
07:21
davidjrice_____ has joined #rubygems
07:21
cstrahan_ has joined #rubygems
07:23
mjc__ has joined #rubygems
07:24
schisamo_ has joined #rubygems
07:24
nz_________ has joined #rubygems
07:25
Guest85414______ has joined #rubygems
07:26
th2389____ has joined #rubygems
07:27
dwradcliffe_ has joined #rubygems
07:27
jesser_ has joined #rubygems
07:28
fidothe___ has joined #rubygems
08:14
Fenhl_ is now known as Fenhl
08:24
JSharp has quit [Ping timeout: 252 seconds]
08:24
JSharp_ has joined #rubygems
08:24
freedrul1 has quit [Ping timeout: 252 seconds]
08:26
freedrull has joined #rubygems
08:32
thejamespinto has quit [Remote host closed the connection]
08:49
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
09:01
fidothe___ has quit [Ping timeout: 272 seconds]
09:01
JSharp_ has quit [Read error: Connection reset by peer]
09:01
davidjrice_____ has quit [Read error: Connection reset by peer]
09:01
Guest85414______ has quit [Read error: Connection reset by peer]
09:01
akahn_ has quit [Write error: Connection reset by peer]
09:02
fidothe___ has joined #rubygems
09:03
akahn_ has joined #rubygems
09:03
JSharp has joined #rubygems
09:05
Guest85414______ has joined #rubygems
09:05
davidjrice_____ has joined #rubygems
09:22
huoxito has joined #rubygems
09:22
huoxito has quit [Remote host closed the connection]
10:02
indirect has quit [Ping timeout: 245 seconds]
10:03
drbrain has quit [Ping timeout: 245 seconds]
10:03
indirect has joined #rubygems
10:04
drbrain has joined #rubygems
10:09
ckrailo has quit [Ping timeout: 245 seconds]
10:11
drbrain has quit [Ping timeout: 245 seconds]
10:12
ckrailo has joined #rubygems
10:12
drbrain has joined #rubygems
10:29
huoxito has joined #rubygems
10:30
cstrahan_ has quit [Ping timeout: 245 seconds]
10:32
cstrahan_ has joined #rubygems
10:34
huoxito has quit [Ping timeout: 250 seconds]
10:51
redmenace has joined #rubygems
10:52
imslavko__ has quit [Ping timeout: 268 seconds]
10:52
schisamo_ has quit [Ping timeout: 252 seconds]
10:52
guilleiguaran___ has quit [Ping timeout: 246 seconds]
10:52
nz_________ has quit [Ping timeout: 246 seconds]
10:53
mjc__ has quit [Ping timeout: 246 seconds]
10:54
yo61_ has quit [Ping timeout: 276 seconds]
10:54
tiagonobre_ has quit [Ping timeout: 276 seconds]
10:55
imslavko__ has joined #rubygems
10:57
yo61_ has joined #rubygems
10:58
tiagonobre_ has joined #rubygems
10:59
mjc__ has joined #rubygems
10:59
guilleiguaran___ has joined #rubygems
11:00
schisamo_ has joined #rubygems
11:00
nz_________ has joined #rubygems
11:09
jhass|off is now known as jhass
11:26
freedrul1 has joined #rubygems
11:29
freedrull has quit [Ping timeout: 252 seconds]
11:39
denym_OFF has quit [Ping timeout: 272 seconds]
11:47
denym_OFF has joined #rubygems
12:16
davispuh has joined #rubygems
12:21
thumpba_ has joined #rubygems
12:21
thumpba has quit [Ping timeout: 252 seconds]
13:18
dwknoxy has joined #rubygems
13:55
niska has quit [*.net *.split]
13:55
graphex has quit [*.net *.split]
13:55
imajes has quit [*.net *.split]
13:55
vlad_starkov has quit [*.net *.split]
13:55
alindeman has quit [*.net *.split]
13:55
vlad_starkov has joined #rubygems
13:55
Shoffner___ has quit [*.net *.split]
13:55
jamo_ has quit [*.net *.split]
13:55
shtirlic has quit [*.net *.split]
13:56
jamo_ has joined #rubygems
13:56
shtirlic has joined #rubygems
13:56
graphex has joined #rubygems
13:56
Kaltiz has quit [*.net *.split]
13:57
Shoffner___ has joined #rubygems
13:58
imajes has joined #rubygems
14:00
cstrahan_ has quit [Ping timeout: 272 seconds]
14:03
cstrahan_ has joined #rubygems
14:06
elia has joined #rubygems
14:13
Esya has joined #rubygems
14:14
thumpba_ has quit [Read error: Connection timed out]
14:14
thejamespinto has joined #rubygems
14:15
thumpba has joined #rubygems
14:25
dwknoxy has quit [*.net *.split]
14:26
drbrain has quit [*.net *.split]
14:26
Guest85414______ has quit [*.net *.split]
14:26
aquaranto_ has quit [*.net *.split]
14:26
avdi has quit [*.net *.split]
14:26
vertis has quit [*.net *.split]
14:26
electrical_ has quit [*.net *.split]
14:26
morphis has quit [*.net *.split]
14:26
vertis has joined #rubygems
14:26
aquaranto_ has joined #rubygems
14:26
drbrain has joined #rubygems
14:26
electrical_ has joined #rubygems
14:26
Guest85414______ has joined #rubygems
14:27
avdi has joined #rubygems
14:27
morphis has joined #rubygems
14:32
elia has quit [Quit: Computer has gone to sleep.]
15:16
alindeman has joined #rubygems
16:26
robotblake has joined #rubygems
16:28
mkristian has joined #rubygems
17:08
tbuehlmann has joined #rubygems
17:14
havenwood has joined #rubygems
17:29
niska has joined #rubygems
17:30
thejamespinto has quit [Remote host closed the connection]
17:41
dbussink has quit [Quit: bye]
17:41
huoxito has joined #rubygems
17:46
mkristian has quit [Quit: bye]
17:46
huoxito has quit [Ping timeout: 240 seconds]
18:43
redmenace has quit [Quit: leaving]
18:44
redmenace has joined #rubygems
18:44
dbussink has joined #rubygems
19:06
dbussink has quit [Ping timeout: 260 seconds]
19:18
thejamespinto has joined #rubygems
19:20
dbussink has joined #rubygems
19:23
thejamespinto has quit [Read error: Connection reset by peer]
19:24
thejamespinto has joined #rubygems
19:31
thejamespinto has quit [Read error: Connection reset by peer]
19:31
thejamespinto has joined #rubygems
19:36
huoxito has joined #rubygems
19:40
huoxito has quit [Remote host closed the connection]
19:40
huoxito has joined #rubygems
19:53
tbuehlmann has quit [Remote host closed the connection]
20:00
huoxito has quit [Remote host closed the connection]
20:03
nz_________ is now known as nz
20:10
huoxito has joined #rubygems
20:11
huoxito has quit [Remote host closed the connection]
20:52
huoxito has joined #rubygems
21:37
seanlinsley_ has joined #rubygems
21:38
huoxito_ has joined #rubygems
21:45
huoxito has quit [*.net *.split]
21:45
alindeman has quit [*.net *.split]
21:45
morphis has quit [*.net *.split]
21:45
seanlinsley has quit [*.net *.split]
21:45
seanlinsley_ is now known as seanlinsley
21:51
cstrahan_ is now known as cstrahan
21:52
_morphis has joined #rubygems
22:11
freedrull has joined #rubygems
22:11
jamooo has joined #rubygems
22:14
jamo_ has quit [Write error: Broken pipe]
22:14
freedrul1 has quit [Write error: Broken pipe]
22:14
jamooo_ has quit [Write error: Broken pipe]
22:14
lsegal has joined #rubygems
22:20
huoxito has joined #rubygems
22:21
drbrain_ has joined #rubygems
22:23
davispuhh has joined #rubygems
22:23
jamo_ has joined #rubygems
22:27
huoxito_ has quit [*.net *.split]
22:27
drbrain has quit [*.net *.split]
22:27
davispuh has quit [*.net *.split]
22:27
[reed] has quit [*.net *.split]
22:27
havenwood has quit [*.net *.split]
22:27
adam12 is now known as adam
22:27
drbrain_ is now known as drbrain
22:28
adam is now known as Guest66081
22:28
[reed] has joined #rubygems
22:35
huoxito has quit [Remote host closed the connection]
22:43
thumpba_ has joined #rubygems
22:46
thumpba has quit [Ping timeout: 246 seconds]
22:47
seanlinsley has quit [Quit: seanlinsley]
22:53
redmenace has quit [Ping timeout: 246 seconds]
22:53
tmoore has quit [Ping timeout: 246 seconds]
22:54
tmoore has joined #rubygems
22:54
redmenace has joined #rubygems
23:00
yo61_ is now known as yo61
23:14
tcopeland has joined #rubygems
23:44
huoxito has joined #rubygems
23:49
huoxito has quit [Ping timeout: 260 seconds]